/* =========================================================
   MaiWater AI · product page (v2)
   Palette: CGIAR AI Hub colours only. Type: Noto Sans (+ Noto Serif for reading lines).
   Visual language follows the AI Hub site proposal: light display type,
   square markers, hairline grids, photo bands.
   ========================================================= */
:root {
  --deep: #033529;
  --green: #065F4A;
  --mint: #17F1BD;
  --mint-2: #57FAD3;
  --tint: #D9F5EC;
  --ink: #2B3331;
  --muted: #5B6B66;
  --line: #E2E0DF;
  --white: #fff;

  --on-dark: rgba(255,255,255,.74);
  --hair-dark: rgba(255,255,255,.16);
  --soft: rgba(217,245,236,.38);      /* mint tint, light */
  --deepest: #021f18;                 /* deep green, darker shade for video/photo wells */

  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Noto Serif", Georgia, serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr: 84px;
  --sub: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sub) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
em { font-style: normal; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--deep); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--mint); color: var(--deep); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.3 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; }
.eyebrow--mint { color: var(--mint); }
.eyebrow--muted { color: var(--muted); }
.title { font: 300 clamp(38px, 4.6vw, 64px)/1.04 var(--sans); letter-spacing: -.03em; color: var(--deep); text-wrap: balance; }
.eyebrow + .title { margin-top: 18px; }
.serif-title { font: 400 clamp(28px, 3vw, 40px)/1.2 var(--serif); color: var(--deep); max-width: 18em; }

.head2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head2__p { font-size: 18px; color: var(--muted); max-width: 34em; }
.head2--dark .head2__p { color: var(--on-dark); }

.sec { padding: clamp(80px, 9vw, 128px) 0; position: relative; }
.sec--tint { background: var(--soft); }
.band { padding: clamp(80px, 9vw, 128px) 0; position: relative; color: #fff; }
.band--deep { background: var(--deep); }
.band .title { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15.5px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn--mint { background: var(--mint); color: var(--deep); }
.btn--mint:hover { background: var(--mint-2); }
.btn--dark { background: var(--deep); color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--mint); color: var(--mint-2); }
.arrow { display: inline-flex; gap: 8px; margin-top: 30px; font-weight: 600; color: var(--mint); text-decoration: none; }
.arrow span { transition: transform .3s var(--ease); }
.arrow:hover span { transform: translateX(5px); }

/* =========================================================
   HEADER
   ========================================================= */
.hdr { background: #fff; position: relative; z-index: 30; }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 22px; }
.hdr__brand img { width: 132px; }
.hdr__sep { width: 1px; height: 40px; background: var(--line); }
.hdr__hub { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hdr__hub img { width: 118px; }
.hdr__cta { margin-left: auto; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--deep); min-height: max(620px, calc(100svh - var(--hdr))); display: flex; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,53,41,.55) 0%, rgba(3,53,41,.12) 34%, rgba(3,53,41,.45) 62%, rgba(3,53,41,.96) 100%),
    linear-gradient(90deg, rgba(3,53,41,.55), transparent 60%);
}
.hero__in { position: relative; z-index: 2; display: flex; flex-direction: column; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(150px, 22vh, 260px); }
.hero__title { margin-top: 22px; font: 300 clamp(52px, min(8.4vw, 15vh), 132px)/.96 var(--sans); letter-spacing: -.04em; color: #fff; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; }
.hero__title .ln:nth-child(2) > span { animation-delay: .12s; }
.hero__title em { color: var(--mint); }
@keyframes lineUp { to { transform: none; } }
.hero__eb { opacity: 0; animation: fadeIn .8s var(--ease) .1s forwards; }
.hero__row {
  margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.28);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
  opacity: 0; animation: fadeUp 1s var(--ease) .5s forwards;
}
.hero__title { margin-bottom: clamp(40px, 7vh, 88px); }
.hero__intro { font-size: 17.5px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 50em; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- product shot rising out of the hero ---------- */
.shot { position: relative; z-index: 3; margin-top: calc(clamp(130px, 20vh, 230px) * -1); }
.shot__fig { position: relative; max-width: 1180px; margin: 0 auto; perspective: 2000px; }
.frame {
  position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 50px 100px -40px rgba(3,53,41,.65), 0 0 0 1px rgba(3,53,41,.08);
  transform: rotateX(var(--rx, 10deg)) scale(var(--sc, .94)); transform-origin: 50% 0;
}
.frame__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; background: var(--ink); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.frame__bar span { margin: 0 auto; transform: translateX(-24px); padding: 2px 16px; border-radius: 6px; font-size: 11.5px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.frame img { width: 100%; }
.shot__fig figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }

.kge {
  position: absolute; right: -12px; top: 22%;
  display: grid; gap: 4px; padding: 18px 20px; min-width: 210px; border-radius: 14px;
  color: #fff; background: rgba(3,53,41,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(23,241,189,.4); box-shadow: 0 30px 60px -24px rgba(3,53,41,.8);
  opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s;
}
.shot.is-in .kge { opacity: 1; transform: none; }
.kge__lab { font: 600 11px/1.3 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.66); }
.kge__val { font: 300 40px/1 var(--sans); letter-spacing: -.03em; color: var(--mint); }
.kge__val b { font-weight: 300; font-variant-numeric: tabular-nums; }
.kge__spark { width: 120px; height: 32px; margin-top: 6px; }
.kge__spark path { fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.6s var(--ease) .9s; }
.shot.is-in .kge__spark path { stroke-dashoffset: 0; }

/* ---------- partner logos (hairline grid) ---------- */
.logos { display: flex; align-items: center; gap: 32px; margin-top: clamp(48px, 6vw, 80px); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__lab { flex: none; padding-right: 32px; font-size: 14px; color: var(--muted); }
.logos ul { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); }
.logos li { display: flex; align-items: center; justify-content: center; height: 76px; padding: 0 16px; border-left: 1px solid var(--line); }
.logos img { width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.logos li:hover img { filter: none; opacity: 1; }
.lg-iwmi { height: 28px; } .lg-ai71 { height: 36px; } .lg-aus { height: 40px; } .lg-limcom { height: 52px; } .lg-iao { height: 44px; }

/* =========================================================
   STICKY IN-PAGE MENU
   ========================================================= */
.subnav { position: sticky; top: 0; z-index: 40; margin-top: clamp(40px, 5vw, 64px); background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.subnav__in { height: var(--sub); display: flex; align-items: center; gap: 16px; }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; height: 100%; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul a { display: flex; align-items: center; height: 100%; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.subnav li:first-child a { padding-left: 0; }
.subnav ul a:hover { color: var(--green); }
.subnav ul a.is-on { color: var(--green); border-color: var(--green); }
.subnav__bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--green), var(--mint)); transform-origin: 0; transform: scaleX(var(--p, 0)); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   2. STATEMENT
   ========================================================= */
.statement { overflow: hidden; }
.statement::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; background: radial-gradient(closest-side, rgba(23,241,189,.12), transparent 70%); pointer-events: none; }
.statement__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "a m" "b b"; gap: clamp(32px, 5vw, 80px); align-items: center; }
.statement__approved { grid-area: a; font: 400 clamp(19px, 1.6vw, 22px)/1.6 var(--serif); color: rgba(255,255,255,.88); padding-left: 24px; border-left: 2px solid var(--mint); }
.statement__map { grid-area: m; }
.statement__map img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.statement__big {
  grid-area: b; padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--hair-dark);
  font: 300 clamp(32px, 4.4vw, 62px)/1.12 var(--sans); letter-spacing: -.028em; color: #fff; text-wrap: pretty;
}
.statement__big .w { color: rgba(255,255,255,.18); transition: color .45s var(--ease); }
.statement__big .w.is-on { color: #fff; }

/* =========================================================
   3. BEFORE / AFTER
   ========================================================= */
.ba__head, .ba__row { display: grid; grid-template-columns: 220px 1fr 1.15fr; gap: 32px; }
.ba__head { padding-bottom: 22px; }
.ba__col { font: 300 clamp(28px, 3vw, 44px)/1.05 var(--sans); letter-spacing: -.025em; }
.ba__col--old { color: var(--muted); }
.ba__col--new { color: var(--deep); display: flex; align-items: center; gap: 14px; }
.ba__col--new::before { content: ""; width: 14px; height: 14px; background: var(--mint); flex: none; }
.ba__row { padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ba__row:last-child { border-bottom: 1px solid var(--line); }
.ba__row dt { font: 600 12px/1.4 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); }
.ba__old { font-size: 19px; color: var(--muted); }
.strike { background: linear-gradient(var(--muted), var(--muted)) 0 58% / 0 1.5px no-repeat; transition: background-size .9s var(--ease) .35s; }
.ba__row.is-in .strike { background-size: 100% 1.5px; }
.ba__new { font: 400 clamp(21px, 2vw, 27px)/1.3 var(--sans); letter-spacing: -.01em; color: var(--deep); position: relative; padding-left: 28px; transition: color .3s; }
.ba__new::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; background: var(--mint); transform: scale(0); transition: transform .5s var(--ease) .9s; }
.ba__row.is-in .ba__new::before { transform: none; }
.ba__row:hover .ba__new { color: var(--green); }

/* =========================================================
   4. PRODUCT TOUR
   ========================================================= */
.tour__title { font: 300 clamp(32px, 3.8vw, 54px)/1.1 var(--sans); letter-spacing: -.025em; color: #fff; max-width: 21em; text-wrap: balance; }
.tabs__list { display: flex; gap: 8px; margin: 44px 0 20px; flex-wrap: wrap; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--sans); color: var(--on-dark); background: transparent; border: 1px solid var(--hair-dark);
  transition: color .3s, background-color .3s, border-color .3s;
}
.tabs__tab i { font-style: normal; font-size: 12px; letter-spacing: 1px; opacity: .6; }
.tabs__tab:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.tabs__tab[aria-selected="true"] { color: var(--mint); background: rgba(23,241,189,.12); border-color: rgba(23,241,189,.5); }

.pp { position: relative; border-radius: 18px; overflow: hidden; background: var(--deepest); animation: ppIn .7s var(--ease); }
@keyframes ppIn { from { opacity: 0; } }
.pp__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.pp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,53,41,.97) 0%, rgba(3,53,41,.8) 50%, rgba(3,53,41,.45) 100%); }
.pp__in { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 4vw, 56px); align-items: center; min-height: 560px; padding: clamp(28px, 4vw, 56px); }
.pp__name { font: 300 clamp(40px, 4vw, 58px)/1 var(--sans); letter-spacing: -.03em; color: #fff; }
.pp__line { margin-top: 16px; font: 400 clamp(19px, 1.6vw, 22px)/1.4 var(--serif); color: rgba(255,255,255,.92); }
.pp__p { margin-top: 20px; font-size: 16.5px; color: var(--on-dark); }
.pp__list { margin-top: 26px; border-top: 1px solid var(--hair-dark); }
.pp__list li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--hair-dark); font-size: 15.5px; color: rgba(255,255,255,.9); animation: fadeUp .7s var(--ease) backwards; }
.pp__list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--mint); transform: translateY(-2px); }
.pp__list li:nth-child(1) { animation-delay: .15s; }
.pp__list li:nth-child(2) { animation-delay: .25s; }
.pp__list li:nth-child(3) { animation-delay: .35s; }
.pp__vis { animation: fadeUp .9s var(--ease) .15s backwards; }
.pp__vis img { border-radius: 10px; border: 1px solid var(--hair-dark); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }

.chat { display: grid; gap: 14px; max-width: 520px; margin-left: auto; padding: 26px; border-radius: 14px; background: rgba(2,31,24,.78); border: 1px solid var(--hair-dark); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.sk { display: block; height: 10px; border-radius: 5px; background: rgba(255,255,255,.22); }
.w40 { width: 40%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.chat__q { justify-self: end; width: 64%; display: grid; gap: 8px; justify-items: end; padding: 16px 18px; border-radius: 14px 14px 3px 14px; background: #fff; animation: fadeUp .6s var(--ease) .2s backwards; }
.chat__q .sk { background: var(--line); }
.chat__a { width: 88%; display: grid; gap: 10px; padding: 18px; border-radius: 14px 14px 14px 3px; background: var(--green); animation: fadeUp .6s var(--ease) .45s backwards; }
.chat__plot { width: 100%; height: 80px; margin: 6px 0; }
.chat__area { fill: rgba(23,241,189,.18); }
.chat__l1 { fill: none; stroke: var(--mint); stroke-width: 2; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.8s var(--ease) .5s forwards; }
.chat__l2 { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.4; stroke-dasharray: 3 5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chat__stage { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed rgba(23,241,189,.6); border-radius: 10px; animation: fadeUp .6s var(--ease) .75s backwards; }
.chat__sq { width: 10px; height: 10px; flex: none; background: var(--mint); animation: breathe 2.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.chat__stage .sk { flex: 1; }
.chat__ok { flex: none; width: 72px; height: 30px; border-radius: 999px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.3l3.3 3.3 6.7-7' fill='none' stroke='%23033529' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* =========================================================
   5. DIGITAL TWIN
   ========================================================= */
.dash { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(3,53,41,.7), 0 0 0 1px rgba(3,53,41,.1); }
.dash img { width: 100%; }
.pin {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer;
  font: 700 15px/1 var(--sans); color: var(--deep); background: var(--mint);
  box-shadow: 0 0 0 6px rgba(23,241,189,.25), 0 10px 24px -6px rgba(0,0,0,.6);
  transform: scale(0); transition: transform .55s cubic-bezier(.34,1.7,.5,1), box-shadow .3s;
}
.dash.is-in .pin { transform: scale(1); }
.dash.is-in .pin[data-pin="1"] { transition-delay: .5s; }
.dash.is-in .pin[data-pin="2"] { transition-delay: .7s; }
.dash.is-in .pin[data-pin="3"] { transition-delay: .9s; }
.dash.is-in .pin[data-pin="4"] { transition-delay: 1.1s; }
.pin::after { content: ""; position: absolute; inset: -7px; border: 1.5px solid var(--mint); opacity: 0; }
.dash .pin.is-hot { transform: scale(1.18); transition-delay: 0s; box-shadow: 0 0 0 10px rgba(23,241,189,.3), 0 10px 24px -6px rgba(0,0,0,.6); }
.pin.is-hot::after { animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }

.callouts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-top: 1px solid var(--line); }
.callouts li { position: relative; padding: 24px 28px 6px 0; font-size: 15.5px; color: var(--muted); cursor: default; outline-offset: -2px; transition: color .3s; }
.callouts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.callouts li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: 0; transition: transform .6s var(--ease); }
.callouts li.is-hot::before { transform: scaleX(1); }
.callouts li.is-hot { color: var(--ink); }
.callouts__n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; font-weight: 700; font-size: 13px; color: var(--deep); background: var(--mint); }
.callouts b { display: block; margin-bottom: 6px; font-size: 18px; color: var(--deep); }

.twin__foot { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 6vw, 88px); align-items: end; }
.ph__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--deep); }
.ph__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph:hover .ph__img img { transform: scale(1.05); }
.ph figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font-size: 15.5px; font-weight: 600; color: var(--deep); }
.ph figcaption::before { content: ""; width: 8px; height: 8px; background: var(--green); flex: none; }
.big { font: 300 clamp(72px, 8vw, 116px)/.9 var(--sans); letter-spacing: -.05em; color: var(--green); font-variant-numeric: tabular-nums; }
.twin__figt { margin: 10px 0 26px; font-size: 18px; color: var(--ink); }

/* =========================================================
   6. HOW IT WORKS · "The learning method is AI"
   Layout after maiwater-landing-b: pinned scene, scroll-drawn stage track.
   ========================================================= */
:root { --soft-solid: #F1FBF8; --rule: rgba(3,53,41,.16); }
.how { background: var(--soft-solid); padding: clamp(80px, 9vw, 128px) 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(40px, 8vw, 128px); align-items: start; }
.how-side { position: sticky; top: calc(var(--sub) + 40px); }
.how-head .head2__p { margin-top: 24px; }
.viz { margin-top: clamp(20px, 3.5vh, 36px); background: #fff; border-radius: 18px; padding: clamp(10px, 1.4vw, 18px); box-shadow: 0 1px 2px rgba(3,53,41,.06), 0 24px 48px -32px rgba(3,53,41,.3); }
.viz canvas { display: block; width: 100%; aspect-ratio: 5 / 3; touch-action: pan-y; }
html:not(.js) .viz { display: none; }

.track { position: relative; padding-left: 46px; }
.track::before, .track::after { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; }
.track::before { background: var(--rule); }
.track::after { background: var(--deep); transform-origin: top; transform: scaleY(var(--p, 1)); }
.stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; align-content: start; padding-bottom: clamp(34px, 4.5vw, 56px); cursor: pointer; }
.stage:last-child { padding-bottom: 0; }
.stage::before {
  content: ""; position: absolute; left: -46px; top: 6px; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--soft-solid); border: 2px solid var(--deep);
  transition: background-color .35s, box-shadow .45s, transform .45s var(--ease);
}
.stage.is-rules::before { border-style: dashed; }
.stage.is-ai::before { background: var(--mint); box-shadow: 0 0 0 5px rgba(23,241,189,.3); }
.stage-n { font: 300 clamp(26px, 2.5vw, 34px)/1.1 var(--sans); letter-spacing: -.02em; color: var(--deep); transition: color .3s; }
.stage-tag { justify-self: start; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--deep); border: 1.5px solid var(--deep); white-space: nowrap; }
.is-rules .stage-tag { border-style: dashed; }
.is-ai .stage-tag { background: var(--mint); border-color: var(--mint); }
.stage-body { grid-column: 1 / -1; margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 30em; }
.stage-body strong { display: block; margin-bottom: 3px; font-size: 19px; color: var(--deep); }
.stage > * { transition: opacity .5s ease; }
.js .stage:not(.is-on) > * { opacity: .3; }
.js .stage:not(.is-on)::before { background: var(--soft-solid); box-shadow: none; transform: scale(.72); }
.js .stage.is-on.is-physics::before { background: var(--deep); }
.js .stage.is-now .stage-n { color: var(--green); }

/* large screens: the section pins while the six stages play */
@media (min-width: 901px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  .js .how { padding-top: 0; }
  .js .how-pin { height: calc(100vh + 390vh); }
  .js .how-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--sub); }
  .js .how-sticky .how-grid { width: 100%; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
  .js .how-sticky .how-side { position: static; }
  .js .how-sticky .title { font-size: clamp(28px, min(3vw, 5.4vh), 46px); }
  .js .how-sticky .head2__p { margin-top: clamp(12px, 2.2vh, 22px); max-width: 40em; font-size: 17px; }
  .js .how-sticky .viz { width: min(100%, calc((100vh - 372px) * 5 / 3)); margin-top: clamp(16px, 3vh, 32px); }
  .js .how-sticky .stage { padding-bottom: clamp(8px, 2.3vh, 28px); }
  .js .how-sticky .stage-n { font-size: clamp(20px, 3vh, 30px); }
  .js .how-sticky .stage::before { top: calc(clamp(20px, 3vh, 30px) * .55 - 9px); }
  .js .how-sticky .stage-body { margin-top: clamp(4px, 1vh, 10px); font-size: 15px; line-height: 1.45; }
  .js .how-sticky .stage-body strong { display: inline; margin: 0; font-size: 16px; }
}
/* phones and short screens: the drawing sticks under the menu while the stages scroll past */
@media (max-width: 900px), (max-height: 719px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-side { display: contents; }
  .viz { position: sticky; top: var(--sub); z-index: 3; margin: 22px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter); border-radius: 0; background: var(--soft-solid); box-shadow: 0 14px 18px -16px rgba(3,53,41,.4); }
  .viz canvas { width: min(100%, calc(34vh * 5 / 3)); margin-inline: auto; background: #fff; border-radius: 14px; }
  .track { margin-top: 28px; }
  .js .stage { min-height: 42vh; }
  .js .stage:last-child { min-height: 30vh; }
}

/* six functionalities: illustrated cards; each line drawing draws itself in */
.sub-title { margin-top: clamp(80px, 9vw, 128px); font: 300 clamp(30px, 3.4vw, 48px)/1.1 var(--sans); letter-spacing: -.025em; color: var(--deep); max-width: 16em; }
.funcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.funcs li {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 26px 16px;
  padding: clamp(24px, 2.4vw, 32px); border-radius: 16px; background: #fff; border: 1px solid var(--rule); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.funcs li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--mint)); transform: scaleX(0); transform-origin: 0; transition: transform .6s var(--ease); }
.funcs li:hover { transform: translateY(-4px); border-color: rgba(6,95,74,.3); box-shadow: 0 30px 50px -34px rgba(3,53,41,.45); }
.funcs li:hover::after { transform: scaleX(1); }
.func-n { grid-column: 2; grid-row: 1; align-self: start; font: 600 12px/1 var(--sans); letter-spacing: 1.2px; color: var(--muted); }
.funcs p { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.funcs strong { display: block; margin-bottom: 8px; font: 400 21px/1.25 var(--sans); letter-spacing: -.01em; color: var(--deep); }

/* the drawings */
.fg { grid-column: 1; grid-row: 1; width: 120px; height: 64px; overflow: visible; color: var(--deep); }
.fg * { vector-effect: non-scaling-stroke; }
.fg-l { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fg-m { stroke: var(--green); stroke-width: 2; }
.fg-dots circle, .fg-f { fill: currentColor; }
.fg-c { fill: #fff; stroke: currentColor; stroke-width: 1.6; }
.fg-half { fill: currentColor; }
.fg-x { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.fg-b { fill: var(--tint); stroke: currentColor; stroke-width: 1.4; transform-box: fill-box; transform-origin: bottom; }
.fg-bm { fill: var(--mint); }
.fg-sq { fill: var(--deep); }
.fg-lay { fill: #fff; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.fg-laym { fill: var(--mint); }
.fg-ring { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .5; }
.fg-core { fill: var(--deep); }
.fg-orbit { fill: var(--mint); stroke: var(--deep); stroke-width: 1.2; transform-box: view-box; transform-origin: 60px 32px; }
@media (prefers-reduced-motion: no-preference) {
  .fg-orbit { animation: orbit 14s linear infinite; }
  .funcs li:hover .fg-orbit { animation-duration: 4s; }
  .fg-run { stroke-dasharray: .14 .1; animation: run 1.6s linear infinite; }
  .js .funcs li .fg-l:not(.fg-run) { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 300ms); }
  .js .funcs.is-in li .fg-l:not(.fg-run) { stroke-dashoffset: 0; }
  .js .funcs li .fg-b { transform: scaleY(0); transition: transform .9s var(--ease); }
  .js .funcs li .fg-b:nth-of-type(1) { transition-delay: calc(var(--i, 0) * 110ms + 300ms); }
  .js .funcs li .fg-b:nth-of-type(2) { transition-delay: calc(var(--i, 0) * 110ms + 380ms); }
  .js .funcs li .fg-b:nth-of-type(3) { transition-delay: calc(var(--i, 0) * 110ms + 460ms); }
  .js .funcs li .fg-b:nth-of-type(4) { transition-delay: calc(var(--i, 0) * 110ms + 540ms); }
  .js .funcs li .fg-b:nth-of-type(5) { transition-delay: calc(var(--i, 0) * 110ms + 620ms); }
  .js .funcs.is-in li .fg-b { transform: none; }
  .js .funcs li { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .5s var(--ease), border-color .3s; transition-delay: calc(var(--i, 0) * 110ms); }
  .js .funcs.is-in li { opacity: 1; transform: none; }
  .js .funcs.is-in li:hover { transform: translateY(-4px); transition-delay: 0s; }
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes run { to { stroke-dashoffset: -.24; } }

.built-on { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); margin-top: clamp(20px, 3vw, 36px); padding-top: 26px; border-top: 1px solid var(--rule); }
.built-on-label { flex: none; font-weight: 600; color: var(--deep); }
.built-on ul { display: flex; flex-wrap: wrap; gap: 8px 0; }
.built-on li { padding: 0 16px; border-left: 1px solid var(--rule); font-size: 15.5px; font-weight: 450; color: var(--muted); }
.built-on li:first-child { padding-left: 0; border-left: 0; }
.js .built-on li { opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.js .built-on.is-in li { opacity: 1; }

@media (max-width: 1080px) { .funcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .funcs { grid-template-columns: minmax(0, 1fr); }
  .built-on { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .built-on li { opacity: 1; }
}

/* =========================================================
   7. DEMOS (scroll-driven film)
   ========================================================= */
.film { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.film__stage { order: 2; position: sticky; top: calc(var(--sub) + 8vh); }
.film__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--deepest); border: 1px solid var(--hair-dark); box-shadow: 0 50px 100px -40px rgba(0,0,0,.85); }
.film__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--deepest); opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.film__v.is-on { opacity: 1; transform: none; z-index: 1; }
.film__segs { position: absolute; z-index: 3; left: 14px; right: 14px; top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.film__segs i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; }
.film__segs i::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform-origin: 0; transform: scaleX(var(--t, 0)); }
.film__pp { position: absolute; z-index: 3; right: 14px; bottom: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(3,53,41,.8); }
.film__pp span { position: absolute; inset: 0; }
.film__pp span::before, .film__pp span::after { content: ""; position: absolute; top: 13px; width: 4px; height: 14px; background: #fff; border-radius: 1px; }
.film__pp span::before { left: 14px; } .film__pp span::after { left: 22px; }
.film__pp.is-paused span::before { left: 16px; top: 12px; width: 0; height: 0; background: none; border-radius: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.film__pp.is-paused span::after { display: none; }

.film__chaps { order: 1; padding: 4vh 0 16vh; }
.chap { min-height: 52vh; padding: 28px 0 28px 26px; border-left: 2px solid var(--hair-dark); opacity: .32; cursor: pointer; transition: opacity .6s var(--ease), border-color .6s; display: flex; flex-direction: column; justify-content: center; }
.chap.is-on { opacity: 1; border-color: var(--mint); }
.chap:hover { opacity: .75; }
.chap.is-on:hover { opacity: 1; }
.chap__meta { display: flex; align-items: center; gap: 14px; font: 600 12px/1 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; font: 600 11.5px/1 var(--sans); letter-spacing: .6px; text-transform: uppercase; }
.tag::before { content: ""; width: 7px; height: 7px; }
.tag--live { color: var(--deep); background: var(--mint); }
.tag--live::before { background: var(--deep); animation: breathe 2.8s ease-in-out infinite; }
.tag--exp { color: var(--mint-2); border: 1px dashed var(--mint-2); }
.tag--exp::before { border: 1.5px solid var(--mint-2); }
.chap__t { margin-top: 18px; font: 300 clamp(28px, 2.6vw, 38px)/1.12 var(--sans); letter-spacing: -.02em; color: #fff; }
.chap__p { margin-top: 14px; font: 400 18px/1.55 var(--serif); color: rgba(255,255,255,.8); max-width: 30em; }
.chap__slot { display: none; }

/* =========================================================
   8. WHO IT'S FOR
   ========================================================= */
.who__grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.who__grid li { position: relative; display: flex; flex-direction: column; padding: 36px 48px 40px 0; border-bottom: 1px solid var(--line); }
.who__grid li:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.who__grid li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: 0; transition: transform .7s var(--ease); }
.who__grid li:hover::before { transform: scaleX(1); }
.who__q { margin-top: 20px; font: 400 clamp(23px, 2.2vw, 30px)/1.3 var(--serif); color: var(--deep); text-wrap: balance; }
.who__a { margin-top: auto; padding-top: 24px; display: flex; gap: 14px; font-size: 16.5px; color: var(--muted); }
.who__a::before { content: "→"; color: var(--green); font-weight: 600; }

/* =========================================================
   9. PROOF
   ========================================================= */
.valid { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px 9px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; color: var(--deep); }
.valid svg { width: 22px; height: 22px; flex: none; }
.valid svg path:first-child { fill: var(--green); }
.valid .ck { fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.photos { display: grid; grid-template-columns: 1.5fr 1fr .8fr; grid-template-rows: 260px 260px; gap: 12px; }
.photos figure { overflow: hidden; border-radius: 12px; background: var(--deep); }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.photos figure:hover img { transform: scale(1.04); }
.photos__a { grid-column: 1; grid-row: 1 / span 2; }
.photos__b { grid-column: 2; grid-row: 1; }
.photos__c { grid-column: 2; grid-row: 2; }
.photos__d { grid-column: 3; grid-row: 1 / span 2; }
.photos__c img { object-position: 30% 30%; }
.photos__d img { object-position: 50% 30%; }

.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin-top: clamp(48px, 5vw, 72px); }
.nums > div { padding-top: 20px; border-top: 1px solid rgba(6,95,74,.25); }
.nums dt { font: 300 clamp(40px, 4.2vw, 60px)/1 var(--sans); letter-spacing: -.035em; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nums__pre, .nums__unit { font-size: .5em; letter-spacing: 0; color: var(--deep); font-weight: 400; }
.nums dd { margin-top: 10px; font-size: 15.5px; color: var(--ink); max-width: 18em; }
.nums__swap .was { color: var(--muted); position: relative; }
.nums__swap .was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--muted); transform: scaleX(0); transform-origin: 0; transition: transform .8s var(--ease) .5s; }
.nums__swap.is-in .was::after { transform: scaleX(1); }
.nums__swap .arr { display: inline-block; font-size: .6em; vertical-align: .2em; transform: translateX(-8px); opacity: 0; transition: transform .8s var(--ease) .9s, opacity .8s .9s; }
.nums__swap.is-in .arr { transform: none; opacity: 1; }

.quotes { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: clamp(48px, 5vw, 72px); }
.q { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 40px); border-radius: 16px; background: #fff; border: 1px solid rgba(6,95,74,.14); }
.q blockquote { font: 400 20px/1.5 var(--serif); color: var(--deep); }
.q figcaption { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--muted); }
.q figcaption b { color: var(--deep); }
.q--feat { grid-row: span 2; background: var(--deep); border-color: var(--deep); }
.q--feat blockquote { margin-top: 22px; font-size: clamp(20px, 1.75vw, 25px); line-height: 1.5; color: #fff; }
.q--feat figcaption { color: rgba(255,255,255,.66); border-top: 1px solid var(--hair-dark); margin-top: 32px; }
.q--feat figcaption b { color: var(--mint); }

/* =========================================================
   10. ACCESS, PARTNERS AND QUESTIONS
   Layout after maiwater-landing-b: a deep-green facts card, questions set large on a 2x2 grid.
   ========================================================= */
.access { background: var(--soft-solid); }
.access-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(32px, 4.5vw, 60px); align-items: start; }
.facts { position: relative; overflow: hidden; margin: 0; background: var(--deep); color: #fff; border-radius: 18px; padding: clamp(10px, 1.4vw, 16px) clamp(22px, 2.8vw, 40px) clamp(14px, 1.8vw, 22px); }
.facts::after {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 19px, rgba(23,241,189,.14) 19px 20px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.facts > div { position: relative; z-index: 1; display: grid; grid-template-columns: 7.25em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { padding-top: .1em; font-size: 15px; font-weight: 500; color: var(--mint); }
.facts dd { font-size: 16px; color: #fff; overflow-wrap: anywhere; }
.facts a { color: #fff; text-underline-offset: 3px; text-decoration-color: var(--mint); }
.facts > div:first-child { display: block; padding: 22px 0 26px; }
.facts > div:first-child dd { margin-top: 6px; }
.facts > div:first-child a {
  display: inline-block; padding-bottom: 10px; text-decoration: none;
  font: 300 clamp(32px, 3.6vw, 48px)/1.1 var(--sans); letter-spacing: -.028em;
  background: linear-gradient(var(--mint), var(--mint)) no-repeat left bottom / 2.2rem 2px; transition: background-size .5s var(--ease);
}
.facts > div:first-child a:hover, .facts > div:first-child a:focus-visible { background-size: 100% 2px; }
.facts :focus-visible { outline-color: var(--mint); }
.facts__logo { display: block; width: 150px; margin-top: 12px; border-radius: 3px; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3.4vw, 52px); align-content: start; margin: 0; }
.faq > div { position: relative; padding: 22px 0 clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--rule); }
.faq > div::before { content: ""; position: absolute; left: 0; top: -2px; width: 2.2rem; height: 3px; background: var(--deep); transition: width .5s var(--ease), background-color .3s; }
.faq > div:hover::before { width: 100%; background: var(--green); }
.faq dt { font: 300 clamp(21px, 1.9vw, 26px)/1.22 var(--sans); letter-spacing: -.016em; color: var(--deep); }
.faq dd { margin-top: 12px; font-size: 16.5px; color: var(--muted); }

.js .facts > div, .js .faq > div { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 200ms); }
.js .facts.is-in > div, .js .faq.is-in > div { opacity: 1; transform: none; }
.js .facts { clip-path: inset(0 0 100% 0 round 18px); transition: clip-path 1.1s var(--ease); }
.js .facts.is-in { clip-path: inset(0 0 0 0 round 18px); }

@media (max-width: 900px) {
  .access-grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .facts, .js .facts > div, .js .faq > div { opacity: 1; transform: none; clip-path: none; }
}

/* =========================================================
   11. CLOSE
   ========================================================= */
.close { position: relative; overflow: hidden; color: #fff; background: var(--deep); }
.close__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.12)); }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,53,41,.5) 0%, rgba(3,53,41,.7) 40%, rgba(3,53,41,.97) 78%); }
.close__in { position: relative; z-index: 1; padding-top: clamp(120px, 16vw, 220px); padding-bottom: clamp(64px, 7vw, 96px); }
.close__title { font: 300 clamp(48px, 7vw, 108px)/.98 var(--sans); letter-spacing: -.04em; max-width: 11em; }

.acts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(255,255,255,.3); }
.acts li + li { border-left: 1px solid rgba(255,255,255,.3); }
.acts a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 28px 28px 30px; text-decoration: none; color: var(--on-dark); }
.acts li:first-child a { padding-left: 0; }
.acts a::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--mint); transform: scaleX(0); transform-origin: 0; transition: transform .6s var(--ease); }
.acts a:hover::before, .acts a.is-main::before { transform: scaleX(1); }
.acts__n { font: 600 12px/1 var(--sans); letter-spacing: 1.2px; color: var(--mint); margin-bottom: 14px; }
.acts b { font: 400 26px/1.2 var(--sans); letter-spacing: -.01em; color: #fff; }
.acts em { margin-top: 22px; font-weight: 600; color: var(--mint); display: inline-flex; gap: 8px; }
.acts em span { transition: transform .3s var(--ease); }
.acts a:hover em span { transform: translateX(5px); }

.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; margin-top: clamp(56px, 6vw, 88px); }
.tl li { position: relative; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.2); font-size: 15px; line-height: 1.45; color: var(--on-dark); }
.tl li::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--mint); transform: scaleX(0); transform-origin: 0; transition: transform .8s var(--ease); transition-delay: var(--d, 0s); }
.tl.is-in li.is-done::before { transform: scaleX(1); }
.tl time { display: block; margin-bottom: 4px; font: 700 12px/1.3 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tl li.is-done time { color: var(--mint); }
.tl li.is-next { border-top-color: #fff; color: #fff; }
.tl li.is-next time { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.tl li.is-next time::after { content: ""; width: 8px; height: 8px; background: var(--mint); animation: breathe 2.8s ease-in-out infinite; }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { background: var(--deep); color: #fff; padding: 56px 0 48px; border-top: 1px solid var(--hair-dark); }
.ftr__top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--hair-dark); }
.ftr__top img { width: 132px; }
.ftr__top p { font-size: 21px; font-weight: 300; }
.ftr__bot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; }
.ftr__hub { display: flex; align-items: center; gap: 16px; font-size: 14.5px; font-weight: 600; }
.ftr__hub img { width: 150px; }
.ftr__links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14.5px; }
.ftr__links a { color: rgba(255,255,255,.7); text-decoration: none; }
.ftr__links a:hover { color: var(--mint); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .callouts { grid-template-columns: repeat(2, 1fr); }
  .callouts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .logos { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logos ul { width: 100%; }
  .logos li:first-child { border-left: 0; }
  .hdr__hub span { display: none; }
}
@media (max-width: 900px) {
  :root { --hdr: 68px; --sub: 54px; }
  body { font-size: 17px; }
  .hdr__brand img { width: 108px; }
  .hdr__hub img { width: 96px; }
  .hdr__cta { padding: 10px 16px; font-size: 14px; }
  .hero { min-height: 0; }
  .hero__in { padding-bottom: 160px; }
  .hero__title { font-size: clamp(46px, 12vw, 80px); }
  .hero__row { grid-template-columns: 1fr; gap: 24px; }
  .hero__btns { justify-content: flex-start; }
  .shot { margin-top: -120px; }
  .kge { position: relative; right: auto; top: auto; margin: -36px 16px 0 auto; width: fit-content; }
  .frame { --rx: 0deg; --sc: 1; }
  .logos ul { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .logos li:nth-child(4) { border-left: 0; }
  .subnav .btn { display: none; }
  .head2, .statement__grid, .pp__in, .access__grid, .film { grid-template-columns: 1fr; }
  .statement__grid { grid-template-areas: "a" "m" "b"; }
  .statement__map { max-width: 520px; }
  .ba__head, .ba__row { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .ba__head > span:first-child { display: none; }
  .ba__row dt { grid-column: 1 / -1; }
  .ba__old { font-size: 16px; }
  .pp__in { min-height: 0; }
  .pp__vis { order: -1; }
  .chat { margin: 0; max-width: none; }
  .twin__foot { grid-template-columns: 1fr 1fr; }
  .twin__fig { grid-column: 1 / -1; }
  .pin { width: 28px; height: 28px; font-size: 12px; }
  .film__stage { display: none; }
  .film__chaps { padding: 0; }
  .chap { min-height: 0; opacity: 1; padding: 0 0 48px 20px; }
  .chap__slot { display: block; margin-top: 20px; }
  .chap__slot .film__v { position: static; opacity: 1; transform: none; width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: 1px solid var(--hair-dark); }
  .who__grid { grid-template-columns: 1fr; }
  .who__grid li, .who__grid li:nth-child(even) { padding: 30px 0 32px; border-left: 0; }
  .photos { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 180px 220px; }
  .photos__a { grid-column: 1 / -1; grid-row: 1; }
  .photos__b { grid-column: 1; grid-row: 2; }
  .photos__c { grid-column: 2; grid-row: 2; }
  .photos__d { grid-column: 1 / -1; grid-row: 3; }
  .nums { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .quotes { grid-template-columns: 1fr; }
  .q--feat { grid-row: auto; }
  .acts { grid-template-columns: 1fr; }
  .acts li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  .acts a { padding-left: 0; }
  .tl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hdr__sep, .hdr__hub { display: none; }
  .callouts { grid-template-columns: 1fr; }
  .callouts li, .callouts li + li { padding: 20px 0 10px; border-left: 0; }
  .callouts li + li { border-top: 1px solid var(--line); }
  .twin__foot { grid-template-columns: 1fr; }
  .ba__head { display: none; }
  .ba__row { grid-template-columns: 1fr; }
  .ba__old .sr-only, .ba__new .sr-only { position: static !important; width: auto; height: auto; clip: auto; display: block; margin-bottom: 4px; font: 600 11px/1.3 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .ba__new .sr-only { color: var(--green); }
  .ba__new { padding-left: 0; }
  .ba__new::before { display: none; }
  .nums { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; }
  .logos li { height: 60px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none; }
  .frame { --rx: 0deg; --sc: 1; }
  .statement__big .w { color: #fff; }
}

/* =========================================================
   CALM MOTION LAYER
   One-time reveals only; nothing loops except slow "live" markers.
   ========================================================= */
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: no-preference) {
  /* headings rise out of a mask */
  .js .reveal.title, .js .reveal.tour__title, .js .reveal.close__title, .js .reveal.sub-title {
    opacity: 1; transform: translateY(.35em); clip-path: inset(0 0 100% 0);
    transition: clip-path 1s var(--ease), transform 1s var(--ease);
  }
  .js .reveal.is-in.title, .js .reveal.is-in.tour__title, .js .reveal.is-in.close__title, .js .reveal.is-in.sub-title {
    transform: none; clip-path: inset(-12% -4% -30% -4%);
  }
  /* photos and images wipe up and settle */
  .js .photos figure.reveal, .js .ph.reveal .ph__img, .js .dash.reveal {
    opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 12px);
    transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s);
  }
  .js .photos figure.reveal.is-in, .js .ph.reveal.is-in .ph__img, .js .dash.reveal.is-in { clip-path: inset(0 0 0 0 round 12px); }
  .js .photos figure.reveal img, .js .ph.reveal .ph__img img, .js .dash.reveal > img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
  .js .photos figure.reveal.is-in img, .js .ph.reveal.is-in .ph__img img, .js .dash.reveal.is-in > img { transform: none; }
  .js .photos figure.reveal.is-in:hover img, .js .ph.reveal.is-in:hover .ph__img img { transform: scale(1.04); }
  /* the basin map draws in */
  .js .statement__map.reveal { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease), opacity .6s; }
  .js .statement__map.reveal.is-in { clip-path: inset(-10% -10% -10% -10%); }
}
