/* Damasca · ثلاث رؤى — chapters.
   Signature: the triptych. Three apertures open on one building (the preloader), the one image becomes
   three worlds (the reveal), the comparison is read as three panels, and the choice widens one of three. */

/* ---------- worlds: each chapter carries its own ground. Entering one, its ground opens from an inset
   panel to the full width over the previous world's ground (--open 0 → 1, driven by scroll). ---------- */
.world { --open: 1; position: relative; isolation: isolate; background: var(--prev-ground, var(--ground)); color: var(--ink); }
.world::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ground);
  clip-path: inset(0 calc((1 - var(--open)) * 4.5vw) 0 calc((1 - var(--open)) * 4.5vw) round calc((1 - var(--open)) * 36px));
}
[data-ground="wall"] { --ground: var(--wall); }
[data-ground="dawn"] { --ground: var(--dawn); }
[data-ground="navy"] { --ground: var(--navy); }
[data-ground="night"] { --ground: var(--night); --accent: var(--bronze); }
[data-ground="deep"] { --ground: var(--deep); }

/* ---------- reveal (only where it helps reading) ---------- */
html.js:not(.rm) [data-reveal],
html.js:not(.rm) [data-reveal-group] > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
html.js:not(.rm) [data-reveal].is-in,
html.js:not(.rm) [data-reveal-group].is-in > * { opacity: 1; transform: none; }
html.js:not(.rm) [data-reveal-group].is-in > *:nth-child(2) { transition-delay: .08s; }
html.js:not(.rm) [data-reveal-group].is-in > *:nth-child(3) { transition-delay: .16s; }
html.js:not(.rm) [data-reveal-group].is-in > *:nth-child(4) { transition-delay: .24s; }
html.js:not(.rm) [data-reveal-group].is-in > *:nth-child(5) { transition-delay: .32s; }

/* =========================================================================================
   01 · UNVEILING
   ========================================================================================= */
.unveil { min-height: 100svh; }
.unveil__stage {
  position: relative; height: 100svh; min-height: 540px;
  display: grid; grid-template-rows: var(--hdr) minmax(0, 1fr) auto;
  padding: 0 var(--tri-edge) clamp(18px, 3.4vh, 44px);
}
.tri, .tri-guides {
  grid-row: 2; grid-column: 1;
  --gap: clamp(6px, .8vw, 14px);
  display: flex; gap: var(--gap);
  width: 100%; max-width: var(--max); margin-inline: auto; height: 100%;
  container-type: inline-size;
}
.tri__panel {
  --pw: calc((100cqw - 2 * var(--gap)) / 3);
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: block;
  background: var(--wall-2);
}
.tri__render, .tri__shot { position: absolute; inset: 0; overflow: hidden; }
/* one photograph across the three panels: each panel shows its own slice of it */
.tri__render img {
  position: absolute; top: 0; height: 100%; width: 100cqw; max-width: none;
  right: calc(var(--i) * -1 * (var(--pw) + var(--gap)));
  object-fit: cover; object-position: 50% 38%;
  transform-origin: 50% 60%;
}
.tri__shot { clip-path: inset(100% 0 0 0); }
.tri__shot picture { position: absolute; inset: 0; }
.tri__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.tri__label {
  position: absolute; inset-inline: 0; bottom: 0;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline;
  padding: 16px 20px 18px; background: var(--wall); color: var(--navy);
  transform: translateY(101%);
}
.tri__label .num { grid-row: span 2; font-size: 15px; }
.tri__label b { font-weight: 400; font-size: clamp(22px, 2.1vw, 36px); line-height: 1.35; }
[data-door="d1"] .tri__label b { font-family: var(--f-v1); }
[data-door="d2"] .tri__label b { font-family: var(--f-v2); font-weight: 300; }
[data-door="d3"] .tri__label b { font-family: var(--f-v3); font-weight: 500; }
.tri__label em { font-style: normal; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.tri__panel:focus-visible { outline-offset: -4px; }

.tri-guides { pointer-events: none; }
.guide { position: relative; flex: 1 1 0; }
.guide i {
  position: absolute; left: 50%; top: 18%; bottom: 24%; width: 1px; margin-left: -.5px;
  background: var(--navy); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .75s var(--ease-io);
}
.guide em {
  position: absolute; left: 50%; bottom: calc(24% - 40px); transform: translateX(-50%);
  font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--terra-ink);
  opacity: 0; transition: opacity .6s;
}
.guide::before {
  content: ''; position: absolute; left: 50%; top: 18%; bottom: 24%; width: 1px; margin-left: -.5px;
  background: var(--navy); opacity: 0; animation: guide-track 1.2s .35s var(--ease) forwards;
}
@keyframes guide-track { to { opacity: .12; } }
.guide.is-drawn i { transform: scaleY(1); }
.guide.is-drawn em { opacity: 1; }
html:not(.is-intro) .tri-guides { display: none; }

.unveil__copy {
  grid-row: 3; grid-column: 1;
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: clamp(16px, 2.6vh, 34px) clamp(4px, 1vw, 12px) 0;
}
.unveil__copy--a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); align-items: end;
  column-gap: clamp(24px, 5vw, 96px); row-gap: 10px;
}
.unveil__copy--a .eyebrow { grid-column: 1 / -1; }
.unveil__title { font-size: clamp(44px, 5.9vw, 116px); line-height: 1.16; display: flex; flex-wrap: wrap; column-gap: .26em; }
@media (min-width: 900px) { .unveil__copy--a .unveil__title { flex-wrap: nowrap; white-space: nowrap; } }
.unveil__title .mask { display: block; overflow: hidden; padding-block: .06em .12em; margin-block: -.06em -.12em; }
.unveil__title .mask > * { display: block; }
.unveil__aside { display: grid; gap: 16px; padding-bottom: .5em; }
.unveil__aside .lead { font-size: clamp(16px, 1.2vw, 20px); }
.cue { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; justify-self: start; }
.cue i { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); overflow: hidden; transition: background-color .35s, border-color .35s; }
.cue i::before { content: ''; position: absolute; left: 50%; top: 11px; width: 1.5px; height: 20px; margin-left: -.75px; background: currentColor; animation: cue 2.4s var(--ease-io) infinite; }
.cue:hover i { background: var(--navy); border-color: var(--navy); color: #fff; }
@keyframes cue { 0% { transform: translateY(-26px); } 45%, 55% { transform: translateY(0); } 100% { transform: translateY(30px); } }

.unveil__copy--b { visibility: hidden; opacity: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); align-items: end; column-gap: clamp(24px, 5vw, 96px); }
.unveil__title--b { font-size: clamp(34px, 4.4vw, 84px); }
.unveil__copy--b .lead { font-size: clamp(16px, 1.2vw, 20px); padding-bottom: .6em; }

/* preloader */
.intro { display: none; }
html.is-intro .intro {
  display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.intro__logo {
  position: absolute; left: 0; right: 0; margin-inline: auto; top: calc(var(--hdr) + 4vh); width: clamp(150px, 13vw, 210px); height: auto;
  aspect-ratio: 170 / 52; color: var(--navy);
  /* revealed in the reading direction at full colour: never a pale, half-transparent logo */
  clip-path: inset(-10% -10% -10% 110%); animation: logo-in .7s .04s var(--ease-io) forwards;
}
@keyframes logo-in { to { clip-path: inset(-10% -10% -10% -10%); } }
.intro__line {
  position: absolute; left: 50%; bottom: clamp(70px, 13vh, 150px); transform: translateX(-50%);
  white-space: nowrap; font-family: var(--f-display); font-weight: 300; font-size: clamp(18px, 1.6vw, 26px); color: var(--navy);
  opacity: 0; transition: opacity .8s var(--ease);
}
html.fonts-in .intro__line { opacity: 1; }
@keyframes ds-fade { to { opacity: 1; } }
html.is-intro .tri__panel { clip-path: inset(18% 50% 24% 50%); }
/* during the opening the header keeps its colour and place; only its logo waits for the flying one, and the
   navigation fades in after it */
html.is-intro .hdr__logo { visibility: hidden; }
html.is-intro .hdr__nav, html.is-intro .hdr__cta, html.is-intro .hdr__menu, html.is-intro .unveil__copy--a { opacity: 0; }
html.is-intro body { overflow: hidden; }
/* scripts never arrived: show the page anyway */
html.is-intro .hdr__nav, html.is-intro .hdr__cta, html.is-intro .hdr__menu, html.is-intro .unveil__copy--a, html.is-intro .tri__panel { animation: ds-failsafe 0s 9s forwards; }
html.is-intro .hdr__logo { animation: ds-failsafe-v 0s 9s forwards; }
@keyframes ds-failsafe { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes ds-failsafe-v { to { visibility: visible; } }

/* =========================================================================================
   02 · VISION
   ========================================================================================= */
.vision { padding-top: clamp(80px, 10vh, 130px); padding-bottom: clamp(90px, 12vh, 160px); }
.vision__head {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); column-gap: clamp(32px, 6vw, 120px); row-gap: 28px; align-items: end;
}
.vision__head .eyebrow { grid-column: 1 / -1; }
.vision__title span, .vision__title b { display: block; }
.vision__context { display: grid; gap: 14px; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.85; padding-bottom: .7em; }
.vision__band {
  position: relative; overflow: hidden;
  width: calc(100% - 2 * var(--tri-edge)); max-width: var(--max); margin: clamp(56px, 8vh, 96px) auto 0;
  height: clamp(300px, 62vh, 700px);
}
.vision__band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.goals {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(-150px, -11vh, -80px) clamp(0px, 3vw, 56px) 0;
  padding: clamp(28px, 3.4vw, 52px) clamp(20px, 2.6vw, 44px) 0;
  background: var(--wall);
}
.goal { padding: 6px clamp(16px, 1.7vw, 30px) 10px; border-inline-start: 1px solid var(--rule); }
.goal:first-child { border-inline-start: 0; padding-inline-start: 0; }
.goal .num { font-size: 15px; }
.goal h3 { margin-top: 14px; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.45vw, 25px); line-height: 1.4; }
.goal p { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

.directions-anchor { position: relative; top: -2px; height: 0; }

/* =========================================================================================
   03 · HALLS (shared bones, varied compositions)
   ========================================================================================= */
.hall { padding-block: clamp(120px, 18vh, 220px) clamp(110px, 14vh, 180px); }
.hall__open {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  column-gap: clamp(32px, 6vw, 120px); align-items: end;
}
.hall__kicker { grid-column: 1 / -1; }
.hall__name {
  grid-column: 1; margin-top: clamp(10px, 2vh, 24px);
  font-size: clamp(64px, 11vw, 214px); line-height: 1.32; font-weight: 400; letter-spacing: 0;
}
.hall__name .write { display: inline-block; padding-block: .1em .2em; margin-block: -.1em -.2em; }
.hall__thesis { grid-column: 1; margin-top: clamp(16px, 2.6vh, 32px); font-size: clamp(21px, 2vw, 34px); line-height: 1.62; max-width: 21em; }
.hall__note { grid-column: 1; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.plaque { grid-column: 2; grid-row: 2 / span 3; align-self: end; font-size: 14px; line-height: 1.7; border-top: 1px solid var(--ink); }
.plaque div { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.plaque dt { font-weight: 700; color: var(--ink); }
.plaque dd { color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 10px; padding: 3px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #0B0F14; background: var(--d3-accent);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--sm { font-size: 12px; padding: 1px 10px; }

/* name written in its own hand: revealed in the reading direction */
html.js:not(.rm) .hall__name .write { clip-path: inset(-30% 0 -30% 100%); }
html.js:not(.rm) .hall__name.is-in .write { clip-path: inset(-30% 0 -30% 0); transition: clip-path 1.6s var(--ease-io); }

/* browser frame */
.frame { margin-top: clamp(56px, 8vh, 110px); cursor: zoom-in; }
.frame__bar {
  display: flex; align-items: center; justify-content: center; height: 36px; padding-inline: 16px;
  background: #F4F6F7; border-radius: 12px 12px 0 0; border-bottom: 1px solid rgba(0, 37, 62, .07);
}
.frame__bar span { font-size: 12px; font-weight: 500; color: #5B656E; background: rgba(0, 37, 62, .05); border-radius: 999px; padding: 2px 18px; }
.frame__bar i { display: none; }
.frame--dark .frame__bar { background: #0F1B26; border-bottom-color: rgba(255, 255, 255, .06); }
.frame--dark .frame__bar span { color: rgba(241, 238, 230, .62); background: rgba(255, 255, 255, .06); }
.frame__view {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 0 0 12px 12px;
  box-shadow: 0 50px 100px -50px rgba(0, 22, 41, .45);
}
.frame--dark .frame__view { box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .7); }
.frame__view img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption, .day__item figcaption, .verbs__panel figcaption, .cascade figcaption {
  margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--ink-2); max-width: 46em;
}
[data-lb-item] { position: relative; }
.zoom-hint {
  position: absolute; top: 52px; left: 16px; z-index: 2; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 22, 41, .72); color: #fff; font-size: 12px; font-weight: 600;
  opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none;
}
[data-lb-item]:hover .zoom-hint { opacity: 1; transform: none; }

/* day track (direction 01) */
.day { margin-top: clamp(100px, 14vh, 170px); }
.day__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 10px 32px; margin-bottom: 30px; }
.day__head .muted { font-size: 15px; padding-bottom: .35em; }
.day__ctrl { display: flex; gap: 10px; }
.day__track {
  display: flex; gap: clamp(14px, 1.8vw, 28px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding-inline: var(--edge); padding-bottom: 6px;
  scrollbar-width: none; contain: layout paint; cursor: grab;
}
.day__track::-webkit-scrollbar { display: none; }
.day__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.day__track.is-drag * { pointer-events: none; }
.day__item { flex: 0 0 min(62vw, 1060px); scroll-snap-align: start; }
.day__item:last-child { margin-inline-end: var(--edge); }
.day__time { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.4vw, 23px); margin-bottom: 12px; }
.day__time::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.day__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; box-shadow: 0 40px 80px -46px rgba(0, 22, 41, .5); cursor: zoom-in; }
.day__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.day__img:hover img { transform: scale(1.015); }
.day__scale {
  position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 34px;
  border-top: 1px solid var(--rule);
}
.day__scale::before {
  content: ''; position: absolute; top: -1px; right: 0; height: 1.5px; width: var(--day-p, 0%); background: var(--navy);
  transition: width .6s var(--ease);
}
.day__scale button {
  position: relative; width: 100%; padding: 14px 0 4px; text-align: start; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .3s;
}
.day__scale button::before {
  content: ''; position: absolute; top: -4px; right: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dawn); border: 1.5px solid var(--navy-300); transition: background .3s, border-color .3s;
}
.day__scale button.is-current { color: var(--ink); font-weight: 700; }
.day__scale button.is-current::before { background: var(--navy); border-color: var(--navy); }

/* phone frames */
.phone {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 390 / 844; padding: 9px;
  border-radius: 46px; background: #0C1117;
  box-shadow: inset 0 0 0 1.5px #2A333D, 0 60px 90px -50px rgba(0, 18, 34, .55);
}
.phone::before {
  content: ''; position: absolute; z-index: 2; top: 18px; left: 50%; width: 27%; height: 20px; transform: translateX(-50%);
  border-radius: 999px; background: #0C1117;
}
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: #000; }
.phone__screen picture { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.phone__screen picture.is-on { opacity: 1; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.phone--sm { width: 250px; border-radius: 40px; padding: 8px; }
.phone--sm .phone__screen { border-radius: 33px; }
.phone--sm::before { top: 16px; height: 17px; }
.phone--xs { width: 196px; border-radius: 32px; padding: 7px; }
.phone--xs .phone__screen { border-radius: 26px; }
.phone--xs::before { top: 13px; height: 14px; }

.hall__duo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  column-gap: clamp(40px, 9vw, 180px); align-items: center; margin-top: clamp(110px, 15vh, 190px);
}
.hall__duo > .phone-stage, .hall__duo > .phone-pair { grid-column: 2; grid-row: 1; justify-self: center; }
.hall__duo > .hall__traits { grid-column: 1; grid-row: 1; }
.hall__duo--rev { grid-template-columns: minmax(300px, 520px) minmax(0, 1fr); }
.hall__duo--rev > .phone-pair { grid-column: 1; }
.hall__duo--rev > .hall__traits { grid-column: 2; }
.phone-stage { display: grid; justify-items: center; gap: 22px; }
.phone-stage__cap { font-size: 14px; color: var(--ink-2); text-align: center; max-width: 24em; }
.phone-pair { display: flex; gap: clamp(14px, 2vw, 28px); align-items: flex-start; }
.phone-pair .phone:nth-child(2) { margin-top: 70px; }

.traits { margin-top: 26px; border-top: 1px solid var(--ink); }
.traits li { display: grid; grid-template-columns: 2.6em 1fr; column-gap: 10px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.traits .num { grid-row: span 2; font-size: 15px; padding-top: .3em; }
.traits h4 { font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.4vw, 24px); line-height: 1.45; }
.traits p { margin-top: 6px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); max-width: 36em; }
.traits--row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; margin-top: 0; }
.traits--row li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding: 22px clamp(14px, 1.6vw, 28px) 0 0; }
.traits--row li:first-child { padding-inline-start: 0; }
.traits--row li + li { padding-inline-start: clamp(14px, 1.6vw, 28px); }
.traits--row .num { grid-row: auto; padding: 0 0 10px; }
.hall__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.status { margin-top: 22px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 10px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }

/* ---------- hall 01 · dawn ---------- */
.hall--1 .hall__name { font-size: clamp(66px, 11.4vw, 220px); line-height: 1.42; }

/* ---------- hall 02 · navy ---------- */
.hall__open--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hall__open--center .hall__kicker { justify-content: center; }
.hall__open--center .hall__name, .hall__open--center .hall__thesis { grid-column: 1; }
.hall__open--center .plaque {
  grid-column: 1; grid-row: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px;
  width: 100%; max-width: 1100px; margin-top: clamp(36px, 5vh, 60px); text-align: start; border-top-color: var(--rule);
}
.hall__open--center .plaque div { grid-template-columns: 1fr; gap: 2px; border-bottom: 0; }
.hall--2 .hall__name { font-size: clamp(84px, 15vw, 290px); line-height: 1.28; color: #F1EEE6; font-weight: 200; }
.hall--2 .hall__thesis { max-width: 24em; }
.verbs { margin-top: clamp(110px, 15vh, 190px); }
.verbs__grid {
  display: grid; grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  grid-template-areas: "head head" "list stage"; column-gap: clamp(36px, 5vw, 96px); row-gap: 36px;
}
.verbs__head { grid-area: head; display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: end; }
.verbs__head .muted { font-size: 15px; padding-bottom: .4em; }
.verbs__list { grid-area: list; display: grid; align-content: start; border-top: 1px solid var(--rule); }
.verbs__list button {
  position: relative; display: grid; gap: 0; padding: 9px 0 11px; text-align: start; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); transition: color .4s;
}
.verbs__list b { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.1vw, 36px); line-height: 1.32; transition: font-weight .4s; }
.verbs__list span { font-size: 13.5px; }
.verbs__list button::after {
  content: ''; position: absolute; right: 0; bottom: -1px; height: 1.5px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.verbs__list button:hover { color: var(--ink); }
.verbs__list button[aria-selected="true"] { color: var(--ink); }
.verbs__list button[aria-selected="true"] b { font-weight: 700; color: var(--gold); }
.verbs__list button[aria-selected="true"]::after { transform: scaleX(1); }
.verbs__stage { grid-area: stage; position: relative; display: grid; }
.verbs__panel { grid-area: 1 / 1; cursor: zoom-in; }
.verbs__panel picture { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .65); }
.verbs__panel img { width: 100%; height: 100%; object-fit: cover; }
html.js .verbs__panel { opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
html.js .verbs__panel.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
html.js .verbs__panel[hidden] { display: block !important; }
html.js .verbs__panel.is-on img { animation: verb-in 1.4s var(--ease) both; }
@keyframes verb-in { from { transform: scale(1.045); } }
.trio { display: flex; justify-content: center; gap: clamp(16px, 4vw, 90px); margin-top: clamp(110px, 15vh, 190px); }
.trio .phone--sm { width: clamp(180px, 22vw, 250px); }
.trio__item { display: grid; justify-items: center; gap: 18px; cursor: zoom-in; }
.trio__item:nth-child(2) { margin-top: -50px; }
.trio__item figcaption { font-size: 14px; color: var(--ink-2); text-align: center; }
.hall__foot { margin-top: clamp(100px, 13vh, 170px); }

/* ---------- hall 03 · its own world, from the --d3-* tokens ---------- */
.hall--3 { --ground: var(--d3-ground); --accent: var(--d3-accent); }
.hall--3 .hall__name { font-size: clamp(76px, 12.5vw, 240px); line-height: 1.35; color: var(--d3-ink); }
.hall--3 .hall__thesis { color: var(--d3-ink); }
.hall--3 .plaque { border-top-color: var(--d3-ink); }
/* Direction 03's moments, plain layout: a stepped grid, each column a step lower than the last (the scene in
   scenes.css replaces it with the staircase) */
.steps { margin-top: clamp(100px, 14vh, 170px); }
.steps__head { display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: end; margin-bottom: 30px; }
.steps__head .muted { font-size: 15px; padding-bottom: .4em; }
.cascade {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(14px, 1.8vw, 28px); row-gap: 40px;
  width: 100%; max-width: calc(var(--max) + 2 * var(--edge)); margin-inline: auto; padding-inline: var(--edge);
}
.cascade__step { cursor: zoom-in; margin: 0; }
.cascade__step:nth-child(3n + 2) { margin-top: clamp(40px, 5vw, 90px); }
.cascade__step:nth-child(3n + 3) { margin-top: clamp(80px, 10vw, 180px); }
.cascade__step picture { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; box-shadow: 0 50px 100px -50px #000; }
.cascade__step img { width: 100%; height: 100%; object-fit: cover; }
.cascade__step figcaption { margin-top: 12px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.cascade__step figcaption b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.3vw, 21px); color: var(--ink); margin-bottom: 2px; }
.phone-steps { display: flex; gap: clamp(12px, 1.6vw, 24px); align-items: flex-start; }
.phone-steps .phone:nth-child(2) { margin-top: 56px; }
.phone-steps .phone:nth-child(3) { margin-top: 112px; }
.phone-steps .phone--sm { width: clamp(150px, 13vw, 210px); }
.hall__duo--rev > .phone-steps { grid-column: 1; grid-row: 1; justify-self: center; }

/* =========================================================================================
   04 · COMPARISON
   ========================================================================================= */
.compare { padding-block: clamp(120px, 17vh, 210px) clamp(80px, 10vh, 130px); }
.compare__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); column-gap: clamp(32px, 6vw, 120px); row-gap: 24px; align-items: end; }
.compare__head .eyebrow { grid-column: 1 / -1; }
.compare__head .lead { font-size: clamp(16px, 1.2vw, 19px); padding-bottom: .6em; }
.aspects {
  display: flex; gap: 8px; margin-top: clamp(40px, 6vh, 70px); overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px; contain: layout paint;
}
.aspects::-webkit-scrollbar { display: none; }
.aspects button {
  flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--rule);
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .35s, color .35s, border-color .35s;
}
.aspects button:hover { color: var(--ink); border-color: var(--ink); }
.aspects button[aria-selected="true"] { background: var(--navy); color: #F6F8F8; border-color: var(--navy); }
.cmp {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, .9vw, 14px);
  margin-top: 30px;
}
.cmp__col { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.cmp__who { display: flex; align-items: flex-end; gap: 12px; min-height: 66px; padding: 0 0 12px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.cmp__who .num { padding-bottom: .55em; }
.cmp__who .badge { margin-bottom: .7em; }
.cmp__who b { font-size: clamp(24px, 2.2vw, 36px); line-height: 1.3; }
.cmp__who .voice-2 { font-weight: 300; }
.cmp__views { display: grid; }
.cmp__view { grid-area: 1 / 1; min-width: 0; }
/* views change by a wipe in the reading direction (the other way when going back), column after column; the
   outgoing view stays underneath until it is covered, so a picture never fades over the light ground */
html.js .cmp__view { visibility: hidden; z-index: 0; transition: visibility 0s 1.2s; }
html.js .cmp__view.is-on { visibility: visible; z-index: 2; transition: none; }
html.js .cmp__view.is-off { visibility: visible; z-index: 1; transition: none; }
html.js .cmp__view > picture, html.js .cmp__view > .phone { clip-path: inset(0 0 0 100%); transition: clip-path .95s var(--ease-io) var(--d, 0s); }
html.js [data-dir="back"] .cmp__view > picture, html.js [data-dir="back"] .cmp__view > .phone { clip-path: inset(0 100% 0 0); }
html.js .cmp__view.is-on > picture, html.js .cmp__view.is-on > .phone, html.js .cmp__view.is-off > picture, html.js .cmp__view.is-off > .phone { clip-path: inset(-20px -20px -20px -20px); }
html.js .cmp__view figcaption { opacity: 0; transition: opacity .35s; }
html.js .cmp__view.is-on figcaption { opacity: 1; transition: opacity .6s var(--ease) calc(var(--d, 0s) + .35s); }
html.js .cmp__view.is-off figcaption { opacity: 0; }
html:not(.js) .cmp__view:not(.is-on) { display: none; }
.cmp__view:not(.cmp__view--phone) picture { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--wall-2); }
.cmp__view picture { cursor: zoom-in; }
.cmp__view img { width: 100%; height: 100%; object-fit: cover; }
.cmp__view figcaption { margin-top: 16px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); max-width: 30em; }
/* typography: a closer look at each headline */
.cmp__view--type1 img { object-fit: cover; transform: scale(2.1); transform-origin: 84% 42%; }
.cmp__view--type2 img { object-fit: cover; transform: scale(1.75); transform-origin: 72% 58%; }
.cmp__view--type3 img { object-fit: cover; transform: scale(1.9); transform-origin: 74% 32%; }
.cmp__view--phone { display: grid; justify-items: center; }
.cmp__view--phone .phone { margin-block: 4px; }
.cmp__view--phone figcaption { justify-self: stretch; }

/* =========================================================================================
   05 · CHOICE
   ========================================================================================= */
.choose { padding-block: clamp(120px, 17vh, 210px) clamp(90px, 12vh, 150px); }
.choose__head { display: grid; justify-items: center; text-align: center; gap: 24px; }
.choose__head .eyebrow { justify-content: center; }
.choose__title { font-size: clamp(42px, 6.2vw, 120px); color: #F1EEE6; }
.choose__title b { color: var(--gold); }
.choose__head .lead { max-width: 32em; }
.pick { margin-top: clamp(56px, 8vh, 96px); }
.pick__doors {
  display: flex; gap: clamp(8px, .9vw, 14px); border: 0; padding: 0; margin: 0 auto; min-width: 0;
  width: calc(100% - 2 * var(--tri-edge)); max-width: var(--max); height: clamp(400px, 62vh, 680px);
}
.door {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; border-radius: 4px;
  transition: flex-grow 1s var(--ease-io), filter .8s var(--ease);
  background: #0A1622;
}
.door input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.door__img { position: absolute; inset: 0; }
.door__img picture { position: absolute; inset: 0; }
.door__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.door[data-pick-door="d1"] .door__img img { object-position: 24% 50%; }
.door[data-pick-door="d2"] .door__img img { object-position: 34% 50%; }
.door[data-pick-door="d3"] .door__img img { object-position: 40% 50%; }
.door:hover .door__img img { transform: scale(1.025); }
.door__txt {
  position: absolute; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline;
  padding: 18px 22px 20px; background: var(--deep); color: #F1EEE6;
}
.door__txt .num { grid-row: span 2; color: var(--gold); }
.door__txt b { font-size: clamp(24px, 2.4vw, 42px); line-height: 1.35; white-space: nowrap; }
.door__txt .voice-2 { font-weight: 300; }
.door__txt em { font-style: normal; font-size: 14px; color: rgba(241, 238, 230, .66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.door__tick {
  position: absolute; top: 18px; left: 18px; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(241, 238, 230, .7); background: rgba(0, 22, 41, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .4s, border-color .4s, transform .5s var(--ease);
}
.door__tick::after {
  content: ''; position: absolute; left: 50%; top: 46%; width: 15px; height: 8px;
  border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translate(-50%, -50%) rotate(-45deg) scale(0); transition: transform .45s var(--ease) .1s;
}
.door.is-picked { flex-grow: 2.3; }
.pick.has-pick .door:not(.is-picked) { flex-grow: .7; filter: grayscale(.55) brightness(.62); }
.door.is-picked .door__tick { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.door.is-picked .door__tick::after { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
.door:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.door::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border: 1.5px solid transparent; border-radius: inherit; transition: border-color .5s;
}
.door.is-picked::after { border-color: var(--gold); }
.pick__panel {
  display: grid; justify-items: center; text-align: center; row-gap: 22px;
  width: calc(100% - 2 * var(--edge)); max-width: 980px; margin: clamp(44px, 6vh, 72px) auto 0;
}
.pick__now { min-height: 6.6em; display: grid; align-content: center; justify-items: center; color: #F1EEE6; }
.pick__hint { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2vw, 32px); color: rgba(241, 238, 230, .72); }
.pick__now small { font-size: 14px; font-weight: 600; color: rgba(241, 238, 230, .62); }
.pick__name { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin-top: 2px; }
.pick__name .num { color: var(--gold); font-size: clamp(16px, 1.3vw, 20px); }
.pick__name b { font-size: clamp(44px, 5.4vw, 92px); line-height: 1.3; color: var(--gold); font-weight: 400; }
.pick__name .voice-2 { font-weight: 200; }
.pick__name .voice-3 { font-weight: 500; }
.pick__now em { font-style: normal; font-size: clamp(15px, 1.15vw, 18px); color: rgba(241, 238, 230, .72); }
.pick__now em .badge { margin-inline-start: 8px; vertical-align: middle; }
.pick__now.is-new > * { animation: pick-in .9s var(--ease) both; }
.pick__now.is-new > *:nth-child(2) { animation-delay: .08s; }
.pick__now.is-new > *:nth-child(3) { animation-delay: .16s; }
@keyframes pick-in { from { opacity: 0; transform: translateY(14px); } }
.pick__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pick__honest { font-size: 14px; line-height: 1.8; color: rgba(241, 238, 230, .58); max-width: 40em; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 15px; font-weight: 600;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================================
   CLOSING
   ========================================================================================= */
.end { padding-top: clamp(110px, 16vh, 200px); }
.end__plate { display: grid; justify-items: center; text-align: center; gap: 26px; padding-inline: var(--edge); }
.end__logo { width: clamp(170px, 15vw, 250px); height: auto; aspect-ratio: 170 / 52; color: var(--ivory); }
.end__line { font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 4.6vw, 86px); line-height: 1.3; color: var(--ivory); }
.end__line b { font-weight: 800; }
.end__line span, .end__line b { display: inline-block; }
.end__img {
  --gap: 0px; display: flex; gap: var(--gap); container-type: inline-size;
  width: calc(100% - 2 * var(--tri-edge)); max-width: var(--max);
  margin: clamp(56px, 8vh, 100px) auto 0; height: clamp(360px, 80vh, 860px);
}
.end__slice { --pw: calc((100cqw - 2 * var(--gap)) / 3); position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.end__slice img {
  position: absolute; top: 0; height: 100%; width: 100cqw; max-width: none;
  right: calc(var(--i) * -1 * (var(--pw) + var(--gap)));
  object-fit: cover; object-position: 50% 62%;
}
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 28px 34px; font-size: 13px; color: rgba(241, 238, 230, .55); }

/* =========================================================================================
   Responsive compositions
   ========================================================================================= */
@media (max-width: 1199px) {
  .goals { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .goal:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .traits--row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .traits--row li:nth-child(3) { padding-inline-start: 0; }

}
@media (max-width: 1023px) {
  .hall__duo, .hall__duo--rev { grid-template-columns: 1fr; row-gap: 70px; }
  .hall__duo > .phone-stage, .hall__duo > .phone-pair, .hall__duo--rev > .phone-pair, .hall__duo--rev > .phone-steps { grid-column: 1; grid-row: 2; }
  .hall__duo > .hall__traits, .hall__duo--rev > .hall__traits { grid-column: 1; grid-row: 1; }
}
@media (max-width: 899px) {
  .unveil__copy--a, .unveil__copy--b { grid-template-columns: 1fr; }
  .unveil__aside { padding-bottom: 0; }
  .unveil__title { font-size: clamp(42px, 11.6vw, 84px); line-height: 1.16; }
  .vision__head, .compare__head { grid-template-columns: 1fr; }
  .hall__open { grid-template-columns: 1fr; }
  .plaque { grid-column: 1; grid-row: auto; margin-top: 32px; }
  .hall__open--center .plaque { grid-template-columns: 1fr; }
  .hall__open--center .plaque div { grid-template-columns: 5.2em 1fr; gap: 12px; border-bottom: 1px solid var(--rule); }
  .verbs__grid { grid-template-columns: 1fr; grid-template-areas: "head" "list" "stage"; row-gap: 22px; }
  .verbs__head { grid-template-columns: 1fr; }
  .verbs__list { display: flex; gap: 8px; overflow-x: auto; border-top: 0; scrollbar-width: none; contain: layout paint; padding-bottom: 4px; }
  .verbs__list::-webkit-scrollbar { display: none; }
  .verbs__list button { flex: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 18px; }
  .verbs__list b { font-size: 18px; }
  .verbs__list span { display: none; }
  .verbs__list button::after { display: none; }
  .verbs__list button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); }
  .verbs__list button[aria-selected="true"] b { color: var(--navy); }
  .day__head { grid-template-columns: 1fr auto; }
  .day__head .muted { grid-column: 1 / -1; grid-row: 2; }
  .day__item { flex-basis: 84vw; }
  .day__scale { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .day__scale button { font-size: 12px; }
  .cmp { grid-template-columns: 1fr; row-gap: 56px; }
  .cmp__view--phone .phone { width: 220px; }
  .cmp__view--type1 img { transform: scale(1.7); transform-origin: 86% 40%; }
  .cmp__view--type2 img { transform: scale(1.45); transform-origin: 70% 58%; }
  .cmp__view--type3 img { transform: scale(1.55); transform-origin: 74% 30%; }
  .cascade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cascade__step:nth-child(n) { margin-top: 0; }
  .cascade__step:nth-child(2n) { margin-top: 60px; }
  .steps__head { grid-template-columns: 1fr; }
  .hall__duo--rev > .phone-steps { grid-column: 1; grid-row: 2; }
}
@media (max-width: 699px) {
  .unveil__stage { padding-inline: 10px; }
  .unveil__copy--a .eyebrow { font-size: 12.5px; }
  .unveil__copy--a .eyebrow .sep, .unveil__copy--a .eyebrow .eyebrow__more { display: none; }
  .tri__label { padding: 10px 10px 12px; grid-template-columns: 1fr; }
  .tri__label .num { grid-row: auto; font-size: 12px; }
  .tri__label b { font-size: clamp(17px, 5vw, 24px); }
  .tri__label em { display: none; }
  .goals { grid-template-columns: 1fr; margin-inline: 0; padding-inline: 0; padding-top: 30px; row-gap: 0; }
  .goal, .goal:nth-child(4) { border-inline-start: 0; border-top: 1px solid var(--rule); padding: 18px 0 20px; display: grid; grid-template-columns: 2.6em 1fr; }
  .goal .num { grid-row: span 2; padding-top: .3em; }
  .goal h3 { margin-top: 0; }
  .goals { margin-top: -40px; padding-inline: 18px; }
  .traits--row { grid-template-columns: 1fr; }
  .traits--row li, .traits--row li + li { padding-inline-start: 0; }
  .trio { width: auto; max-width: none; gap: 14px; overflow-x: auto; justify-content: flex-start; padding-inline: var(--edge); margin-inline: 0; scroll-snap-type: x mandatory; scrollbar-width: none; contain: layout paint; padding-top: 50px; }
  .trio::-webkit-scrollbar { display: none; }
  .trio__item { scroll-snap-align: center; }
  .trio .phone--sm { width: 210px; }
  .phone-pair { justify-content: center; }
  .phone-pair .phone--sm { width: calc((100vw - 2 * var(--edge) - 16px) / 2); }
  .phone-steps { justify-content: center; gap: 10px; }
  .phone-steps .phone--sm { width: calc((100vw - 2 * var(--edge) - 20px) / 3); border-radius: 22px; padding: 5px; }
  .phone-steps .phone--sm .phone__screen { border-radius: 18px; }
  .phone-steps .phone--sm::before { top: 9px; height: 9px; }
  .phone-steps .phone:nth-child(2) { margin-top: 30px; }
  .phone-steps .phone:nth-child(3) { margin-top: 60px; }
  .cascade__step picture { aspect-ratio: 390 / 844; }
  .cascade__step img { object-position: 50% 0; }
  .phone-pair .phone:nth-child(2) { margin-top: 44px; }
  .pick__doors { flex-direction: column; height: auto; }
  .door { flex: none; height: 168px; transition: height .9s var(--ease-io), filter .8s var(--ease); }
  .door.is-picked { height: 340px; }
  .pick.has-pick .door:not(.is-picked) { height: 112px; }
  .door__txt { padding: 12px 16px 14px; }
  .door__tick { top: 12px; left: 12px; width: 40px; height: 40px; }
  .end__img { height: 62vh; }
  .end__img img { object-position: 52% 60%; }
  .foot { flex-direction: column; }
  .day__scale button { font-size: 0; padding-top: 12px; }
  .day__scale button.is-current { font-size: 12px; white-space: nowrap; }
  .hall__name .write { white-space: nowrap; }
  .toast { white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; border-radius: 16px; }
}

/* reduced motion: no pinned scenes, everything at rest */
html.rm .tri__shot { clip-path: none; display: none; }
html.rm .unveil__copy--b { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}
html.is-quick .guide i { transition-duration: .45s; }

.btn--live[aria-disabled="true"] {
  --b-bg: transparent; --b-fg: var(--ink-2); --b-bd: var(--rule); border-style: dashed; opacity: 1; cursor: default;
}
.btn--live[aria-disabled="true"] i { display: none; }
.pick__act .btn:disabled {
  --b-bg: transparent; --b-fg: rgba(241, 238, 230, .5); --b-bd: rgba(241, 238, 230, .26); border-style: dashed; opacity: 1;
}

/* chapter labels carry a rule, not a number: numbers belong to the three directions */
.eyebrow--rule::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .55; }
.choose__head .eyebrow--rule::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .55; }
.menu__list .num:empty { visibility: hidden; }
@media (max-width: 699px) {
  .hall__kicker { flex-wrap: wrap; row-gap: 10px; white-space: nowrap; }
  .hall__kicker .badge { margin-inline-start: 0; flex-basis: auto; }
}
/* after a scroll scene the hall continues without a second pause */
.day + .hall__duo, .steps + .hall__duo { margin-top: clamp(60px, 9vh, 120px); }
