/* A family of objects, not a repeated hero. */
/* Scene space is reserved in HTML before the renderer starts. Policy figures
   keep their existing dimensions and do not receive these scene-only rules. */
.object-stage--editorial .object-viewport {
  inset: -8px -3% 36px;
  -webkit-mask-image: linear-gradient(#000 88%, transparent);
  mask-image: linear-gradient(#000 88%, transparent);
}
@media (max-width: 760px) {
  .editorial-hero .object-stage.object-stage--editorial {
    height: clamp(295px, 78vw, 355px);
    margin-top: 12px;
  }
  .object-stage--editorial .object-motion-toggle {
    top: 0;
    right: 8px;
  }
}
.object-motion-toggle {
  position: absolute;
  right: 8px;
  top: 0;
  z-index: 3;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  font: 10px/1.4 var(--mono);
  cursor: pointer;
}
.object-motion-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.object-stage--compact .object-motion-toggle {
  right: 0;
  top: -16px;
  font-size: 9px;
  padding-inline: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .object-motion-toggle {
    display: none;
  }
}
.editorial-hero {
  --object-accent: #b66b4a;
  padding-top: 34px;
  isolation: isolate;
}
.hero-wayfinding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero-wayfinding .breadcrumb {
  margin: 0;
}
.hero-edition {
  font-size: 9px;
  color: var(--muted);
}
.editorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 590px;
  padding: 45px 0 40px;
}
.editorial-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.editorial-hero-copy .eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
}
.editorial-hero h1 {
  font-size: clamp(64px, 7.1vw, 115px);
  letter-spacing: -0.07em;
  line-height: 1.03;
  margin: 28px 0 28px;
  padding-bottom: 0.07em;
  animation: arrive 0.9s var(--ease) both;
}
.editorial-hero h1 em {
  color: var(--object-accent);
  line-height: 1;
  letter-spacing: -0.045em;
}
.editorial-hero-copy > p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 370px;
}
.hero-page-link {
  margin-top: 23px;
  min-height: 44px;
  gap: 48px;
}
.editorial-hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 19px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.editorial-hero-foot .micro {
  font-size: 9px;
}
.hero-foot-note {
  display: flex;
  align-items: center;
  gap: 50px;
}
.hero-foot-note > span {
  font-size: 16px;
  color: var(--object-accent);
}
.object-stage {
  --scroll-turn: 0deg;
  --scroll-lift: 0px;
  --pointer-turn: 0deg;
  --pointer-tilt: 0deg;
  position: relative;
  width: 100%;
  height: 510px;
  min-width: 0;
  margin: 0;
  isolation: isolate;
  perspective: 1000px;
}
.object-viewport {
  position: absolute;
  inset: 0 0 36px;
  isolation: isolate;
}
.object-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(var(--scroll-lift)) rotateY(var(--pointer-turn));
  transition:
    opacity 0.7s,
    transform 0.6s var(--ease);
}
.object-viewport canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s;
}
.object-stage.is-ready canvas {
  opacity: 1;
}
.object-stage.is-ready .object-fallback {
  opacity: 0;
}
.object-cross {
  position: absolute;
  color: #b6bdab;
  font: 18px var(--mono);
  pointer-events: none;
}
.object-cross--a {
  top: 12%;
  left: 7%;
}
.object-cross--b {
  bottom: 18%;
  right: 6%;
}
.object-stage figcaption {
  position: absolute;
  bottom: 8px;
  left: 8%;
  right: 7%;
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font: 9px/1.65 var(--mono);
}
.object-stage--about {
  transform: translateY(12px);
}
.editorial-hero--about .editorial-hero-foot {
  border-top-color: #c7cfbe;
}
.editorial-hero--contact .editorial-hero-foot {
  border-top-color: #dbc5b6;
}
.editorial-hero--policy .editorial-hero-grid {
  min-height: 510px;
}
.editorial-hero--policy h1 {
  font-size: clamp(58px, 6.4vw, 102px);
}
.editorial-hero--policy .object-stage {
  height: 430px;
}
.object-stage--compact {
  height: 230px;
  max-width: 320px;
  margin: 0 auto;
}
.object-stage--compact figcaption {
  font-size: 8px;
  left: 0;
  right: 0;
  gap: 10px;
}
.object-stage--compact .object-viewport {
  inset: 0 0 22px;
}
.error-page > .object-stage {
  height: 230px;
  margin: -25px auto 25px;
}
.service-heading-copy {
  max-width: 310px;
}
.service-stage .section-heading {
  gap: 50px;
}
.service-stage .object-stage--compact {
  margin-top: 8px;
}
.service-stage .section-heading h2 {
  font-size: clamp(49px, 6.2vw, 96px);
}
.hero--signature .hero-art:after {
  content: '';
  position: absolute;
  width: 1px;
  height: 60%;
  top: 16%;
  right: 15%;
  background: linear-gradient(transparent, #b7bca54d, transparent);
  transform: rotate(32deg);
  z-index: -1;
}
.hero-object-number {
  position: absolute;
  right: -1%;
  top: 2%;
  font: 150px/0.9 var(--serif);
  color: #d8dccc70;
  letter-spacing: -0.07em;
  z-index: -1;
}
.hero-vertical-note {
  position: absolute;
  left: -28px;
  top: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #8b907f;
}
.hero--signature .hero h1 {
  position: relative;
}
.hero--signature .hero-actions {
  position: relative;
}
.hero--signature .hero-description {
  line-height: 1.8;
}
/* Small editorial annotations give the main pages their own composition. */
.object-stage--services:before {
  content: 'REGISTER / RENEW / TRANSFER';
  position: absolute;
  right: 0;
  top: 18%;
  writing-mode: vertical-rl;
  font: 8px var(--mono);
  letter-spacing: 0.12em;
  color: #8c917f;
}
.object-stage--about:before {
  content: 'JAMKANDORANA';
  position: absolute;
  left: 1%;
  top: 16%;
  font: 8px var(--mono);
  letter-spacing: 0.07em;
  color: #839176;
}
.object-stage--about:after {
  content: 'DHORAJI';
  position: absolute;
  right: 0;
  bottom: 24%;
  font: 8px var(--mono);
  letter-spacing: 0.07em;
  color: #ac7156;
}
.object-stage--contact:before {
  content: 'A QUESTION → A CLEAR NEXT STEP';
  position: absolute;
  top: 10%;
  left: 12%;
  font: 8px var(--mono);
  letter-spacing: 0.07em;
  color: #ab7a60;
  transform: rotate(-5deg);
}
.editorial-hero--about .object-cross--a,
.editorial-hero--contact .object-cross--a {
  display: none;
}
.service-stage .service-number {
  transition:
    color 0.4s,
    transform 0.4s;
}
.service-stage .service-row:focus-visible .service-number {
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .service-stage .service-row:hover .service-number {
    transform: rotate(-12deg);
    color: var(--ink);
  }
}
/* Mobile navigation: the panel fades; the links appear one at a time. */
@media (max-width: 760px) {
  .js .main-nav,
  .js .main-nav.is-open {
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease 0.2s,
      visibility 0s 0.42s;
    padding: 16px var(--gutter) 24px;
    gap: 0;
    background: var(--paper);
  }
  .js .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 0.18s ease,
      visibility 0s;
  }
  .js .main-nav > a {
    opacity: 0;
    transform: none;
    transition: opacity 0.18s ease;
    transition-delay: calc((3 - var(--nav-order, 0)) * 35ms);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0;
    font-size: clamp(23px, 6vw, 34px);
    font-weight: 400;
    line-height: 1.2;
    padding: 19px 0;
    min-height: 65px;
    border-bottom: 1px solid var(--line);
  }
  .js .main-nav.is-open > a {
    opacity: 1;
    transition-duration: 0.38s;
    transition-delay: calc(70ms + var(--nav-order, 0) * 80ms);
  }
  .js .main-nav > a:before,
  .js .main-nav > a:after {
    display: none !important;
  }
  .menu-toggle span {
    display: inline-block;
    transition: transform 0.25s;
  }
  .menu-toggle[aria-expanded='true'] span {
    transform: rotate(180deg);
  }
  .editorial-hero {
    padding-top: 24px;
  }
  .editorial-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 0;
    padding: 32px 0 28px;
  }
  .editorial-hero-copy {
    display: contents;
  }
  .editorial-hero-copy > .eyebrow {
    order: 1;
    font-size: 9px;
  }
  .editorial-hero h1 {
    order: 2;
    font-size: clamp(52px, 10.6vw, 77px);
    line-height: 1.04;
    margin: 22px 0 0;
    max-width: 600px;
    padding-bottom: 0.09em;
  }
  .editorial-hero-grid > .object-stage {
    order: 3;
    height: clamp(290px, 52vw, 380px);
    width: min(100%, 580px);
    justify-self: center;
    margin: 0 0 16px;
    transform: none;
  }
  .editorial-hero-copy > p {
    order: 4;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.8;
  }
  .editorial-hero-copy > .hero-page-link {
    order: 5;
    justify-self: start;
    margin-top: 18px;
    font-size: 13px;
  }
  .object-stage figcaption {
    left: 5%;
    right: 5%;
    font-size: 8px;
  }
  .object-stage .object-viewport {
    inset: -5px 0 28px;
  }
  .hero-wayfinding .breadcrumb {
    font-size: 9px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hero-edition {
    font-size: 8px;
  }
  .editorial-hero-foot {
    padding: 17px 0;
    gap: 20px;
  }
  .editorial-hero-foot .micro {
    font-size: 8px;
  }
  .hero-foot-note {
    gap: 12px;
  }
  .editorial-hero--policy .editorial-hero-grid {
    min-height: 0;
    padding-top: 28px;
  }
  .editorial-hero--policy h1 {
    font-size: clamp(47px, 9.8vw, 71px);
  }
  .editorial-hero--policy .object-stage {
    height: 270px;
  }
  .editorial-hero--copyright h1 {
    font-size: clamp(43px, 9.1vw, 66px);
  }
  .service-stage .section-heading {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 25px;
  }
  .service-stage .section-heading h2 {
    font-size: clamp(43px, 6vw, 60px);
  }
  .service-stage .object-stage--compact {
    height: 165px;
  }
  .object-stage--compact figcaption {
    font-size: 7px;
  }
  .hero-vertical-note {
    display: none;
  }
  .hero-object-number {
    font-size: 110px;
    top: 5%;
    right: 4%;
  }
  .hero--signature .hero-art {
    margin-top: 5px;
  }
  .hero--signature .hero-art:after {
    display: none;
  }
}
@media (max-width: 480px) {
  .editorial-hero-grid {
    padding-top: 27px;
  }
  .editorial-hero h1 {
    font-size: clamp(43px, 12.6vw, 60px);
    letter-spacing: -0.065em;
    margin-top: 20px;
  }
  .editorial-hero--policy h1 {
    font-size: clamp(39px, 11.8vw, 55px);
  }
  .editorial-hero--copyright h1 {
    font-size: clamp(35px, 10.5vw, 50px);
  }
  .editorial-hero--about h1 {
    font-size: clamp(43px, 12.5vw, 60px);
  }
  .editorial-hero .object-stage {
    height: 260px;
    margin: 2px -8px 17px;
    width: calc(100% + 16px);
  }
  .editorial-hero--policy .object-stage {
    height: 240px;
  }
  .object-stage .object-viewport {
    inset: 0 0 24px;
  }
  .object-stage figcaption {
    font-size: 7px;
    gap: 12px;
  }
  .editorial-hero-foot {
    align-items: center;
  }
  .hero-foot-note {
    font-size: 0 !important;
    gap: 0;
  }
  .hero-foot-note > span {
    font-size: 18px;
  }
  .hero-edition {
    display: none;
  }
  .editorial-hero-copy > p {
    font-size: 13px;
    max-width: 345px;
  }
  .hero-page-link {
    font-size: 12px;
  }
  .hero--signature .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero--signature .hero-copy {
    display: contents;
  }
  .hero--signature h1 {
    order: 1;
    font-size: clamp(60px, 19vw, 82px);
    margin-top: 29px;
    max-width: 100%;
  }
  .hero--signature .hero-art {
    order: 2;
    min-height: 0;
    height: 290px;
    margin: 2px -17px 12px;
  }
  .hero--signature .hero-description {
    order: 3;
    font-size: 13px;
    max-width: 330px;
    margin: 0 0 22px;
  }
  .hero--signature .hero-actions {
    order: 4;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }
  .hero--signature .hero-actions .button {
    flex: 1 1 auto;
    min-height: 48px;
    max-width: 310px;
  }
  .hero--signature .hero-actions .micro {
    font-size: 8px;
  }
  .hero--signature .art-coordinate {
    left: 8%;
    top: 8%;
    font-size: 8px;
  }
  .hero--signature .art-caption {
    font-size: 8px;
    right: 7%;
    bottom: 13%;
  }
  .hero--signature .scene-controls {
    left: 8%;
    bottom: 4%;
  }
  .hero--signature .scene-host {
    inset: -5px 0 4px;
  }
  .hero-object-number {
    font-size: 93px;
    right: 7%;
    top: 6%;
  }
  .service-stage .section-heading {
    display: block;
  }
  .service-heading-copy {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 135px;
    gap: 18px;
    margin-top: 22px;
  }
  .service-stage .section-heading h2 {
    font-size: clamp(43px, 12vw, 58px);
  }
  .service-stage .object-stage--compact {
    height: 145px;
    width: 135px;
    margin: 0;
  }
  .service-stage .object-stage--compact figcaption {
    display: none;
  }
  .service-stage .object-cross {
    font-size: 12px;
  }
  .error-page > .object-stage {
    width: 100%;
    height: 240px;
    margin: -15px auto 20px;
  }
}
@media (max-width: 350px) {
  .editorial-hero h1 {
    font-size: 40px;
  }
  .editorial-hero--policy h1 {
    font-size: 38px;
  }
  .editorial-hero--copyright h1 {
    font-size: 33px;
  }
  .editorial-hero .object-stage {
    height: 230px;
  }
  .hero--signature h1 {
    font-size: 59px;
  }
  .hero--signature .hero-art {
    height: 255px;
  }
  .hero--signature .hero-actions .micro {
    font-size: 8px;
  }
  .hero--signature .hero-topline .eyebrow {
    font-size: 9px;
  }
  .hero--signature .hero-bottom .location-pair {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-hero h1 {
    animation: none;
  }
  .js .main-nav,
  .js .main-nav.is-open,
  .js .main-nav > a,
  .js .main-nav.is-open > a {
    transition: none !important;
  }
  .object-fallback {
    transform: none;
  }
  .menu-toggle span {
    transition: none;
  }
}
@media print {
  .object-stage,
  .hero-object-number,
  .hero-vertical-note {
    display: none !important;
  }
  .editorial-hero-grid {
    display: block;
    min-height: 0;
  }
  .editorial-hero h1 {
    font-size: 42px;
  }
  .editorial-hero {
    padding-top: 20px;
  }
}
