@import url("../fonts/fonts.css");

/* ============================================================
   EARTH RECYCLER — DESIGN SYSTEM
   Concept: "The Ledger" — a precision instrument crossed with an
   annual report. Deliberately rejects the category's green-gradient,
   seedling-in-cupped-hands visual convention.

   COLOUR MODEL
   Components never reference raw palette values. They reference
   semantic tokens (--bg, --surface, --line, --tx*). Any region with
   .dark / .hero / .ftr / .tool flips those tokens, so every component
   inside is automatically correct on dark without a variant rule.
   ============================================================ */

:root {
  /* --- Fixed palette (never flips) --- */
  --c-ink:      #0A100E;
  --c-ink-2:    #131B18;
  --c-ink-3:    #1F2B27;
  --c-paper:    #F4F1E9;
  --c-paper-2:  #EAE6DB;
  --c-paper-3:  #D9D3C4;
  --c-white:    #FCFAF6;

  --brand:      #00A651;   /* exact logo green — identity use */
  --green:      #007037;   /* accessible accent, derived from brand hue */
  --green-2:    #00994B;
  --signal:     #C4F04B;
  --signal-dim: #7E9E2A;
  --clay:       #C4633A;   /* rule/border use only */
  --clay-tx:    #9E4B29;   /* text + badge fill on light surfaces */

  /* --- Semantic tokens (light default) --- */
  --bg:       var(--c-paper);
  --surface:  var(--c-white);
  --line:     var(--c-paper-3);
  --tx-hi:    #0A100E;
  --tx:       #2E3934;
  --tx-lo:    #56635D;
  --accent:   var(--green);
  --btn-bg:   var(--c-ink);
  --btn-fg:   var(--c-paper);

  /* --- Type --- */
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  /* --- Metrics --- */
  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 2px;
  --r-lg: 4px;
  /* --- Motion language -------------------------------------------------
     Four curves and five durations, assigned by intent. Anything over 500ms
     uses --e-out and nothing else; that single rule is most of what makes
     long movements feel considered rather than slow. */
  /* Curves are the CSS equivalents of the GSAP eases used on the reference
     site (htarchitecte.com): expo.out, power4.inOut, power3.out, power2.out.
     Long movements all use --e-out; that consistency is what makes them read
     as considered rather than slow. */
  --e-out:   cubic-bezier(.16, 1, .3, 1);        /* expo/power4 out — entrances */
  --e-io:    cubic-bezier(.77, 0, .175, 1);      /* power4.inOut — A to B */
  --e-soft:  cubic-bezier(.25, .46, .45, .94);   /* power2.out — colour, opacity */
  --e-mid:   cubic-bezier(.215, .61, .355, 1);   /* power3.out — mid-weight moves */
  --e-drama: cubic-bezier(.85, 0, .15, 1);       /* curtains and overlays */
  --ease:    var(--e-out);                       /* legacy alias */

  --t-xs: 300ms;   /* nav links, table rows, small colour shifts */
  --t-s:  400ms;   /* buttons, cards, arrows, tabs */
  --t-m:  600ms;   /* menus, panels, tooltips, accordions */
  --t-l:  1200ms;  /* reveals, bar fills, line masks */
  --t-xl: 2000ms;  /* hero settle, image wipes */
  --stagger: 40ms; /* between siblings — tight, like the reference */
}

/* --- Inverted scope --------------------------------------------------- */
.dark, .hero, .ftr, .tool, .commit, .logoband, .duo-tx, .ch-plate {
  --clay-tx: #D4784E;   /* brighter clay for text on dark */
  --bg:      var(--c-ink);
  --surface: var(--c-ink-2);
  --line:    var(--c-ink-3);
  --tx-hi:   #F4F1E9;
  --tx:      #B7C2BD;
  --tx-lo:   #90A099;
  --accent:  var(--signal);
  --btn-bg:  var(--c-paper);
  --btn-fg:  var(--c-ink);
}
/* --- Recessed light scope --------------------------------------------- */
.tint { --bg: var(--c-paper-2); --surface: var(--c-paper); }

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
    /* Duration is ignored on a timeline-driven animation, so the line above
       does not stop scroll-driven motion. This does. */
    animation-timeline: none !important;
  }
}
body {
  font-family: var(--sans);
  font-size: 17px; line-height: 1.6;
  color: var(--tx); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Two-tone focus ring: an ink outline over a signal halo, so it is visible on
   both the light paper sections and the dark ink ones (WCAG 2.4.7 / 1.4.11).
   The signal-only ring measured ~1.2:1 against paper. */
:focus-visible { outline: 2px solid #0A100E; outline-offset: 2px; box-shadow: 0 0 0 4px #C4F04B; border-radius: 3px; }
::selection { background: var(--signal); color: var(--c-ink); }

/* ============================================================ LAYOUT */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 860px; }
section { position: relative; }
/* Section rhythm. One uniform value everywhere is what makes a page read as a
   stack of modules. Three gives it pace: --sec-s groups related sections
   together, --sec-xl gives one idea per page room to breathe. */
:root { --sec-s: clamp(40px, 5vw, 68px); --sec-m: clamp(64px, 9vw, 128px); --sec-xl: clamp(96px, 14vw, 208px); }
.sec { padding-block: var(--sec-m); }
.sec-sm { padding-block: var(--sec-s); }
.sec-xl { padding-block: var(--sec-xl); }
/* Consecutive sections on the same background belong together — close the gap
   between them so they read as one movement rather than two modules. */
.sec + .sec:not(.tint):not(.dark) { padding-top: var(--sec-s); }
.tint + .tint { padding-top: var(--sec-s); }
.dark, .tint { background: var(--bg); color: var(--tx); }
.grid { display: grid; gap: clamp(24px, 3vw, 46px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .stack-md { grid-template-columns: 1fr !important; } }

/* ============================================================ TYPE */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; letter-spacing: -.028em; color: var(--tx-hi); text-wrap: balance; }
.d1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); font-weight: 800; letter-spacing: -.042em; line-height: .94; }
.d2 { font-size: clamp(2.1rem, 4.9vw, 3.9rem); font-weight: 700; letter-spacing: -.036em; line-height: 1.02; }
.d3 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.d4 { font-size: clamp(1.18rem, 1.7vw, 1.48rem); letter-spacing: -.022em; line-height: 1.22; }
.ed { font-family: var(--sans); font-weight: 700; letter-spacing: -.034em; line-height: 1.06; color: var(--tx-hi); }
.ed em { font-style: normal; color: var(--accent); }
.src-note a { color: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.3rem); line-height: 1.52; color: var(--tx-lo); max-width: 62ch; text-wrap: pretty; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
.small { font-size: .875rem; line-height: 1.55; }
.tiny  { font-size: .78rem; line-height: 1.5; }
.muted { color: var(--tx-lo); }
strong { color: var(--tx-hi); font-weight: 600; }

.eyebrow {
  font-family: var(--mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tx-lo);
  display: flex; align-items: center; gap: .65em;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .55; flex: none; }
.eyebrow.no-rule::before { display: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================ RULES */
.rule { height: 1px; background: var(--line); border: 0; }

/* ============================================================ BUTTONS */
.btn {
  --bg-b: var(--btn-bg); --fg-b: var(--btn-fg); --bd-b: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 26px; background: var(--bg-b); color: var(--fg-b);
  border: 1px solid var(--bd-b); border-radius: var(--r);
  font-size: .93rem; font-weight: 600; letter-spacing: -.01em; cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform .28s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-signal { --bg-b: var(--signal); --fg-b: var(--c-ink); --bd-b: var(--signal); }
.btn-signal:hover { --bg-b: #d3fb64; --bd-b: #d3fb64; }
.btn-ghost { --bg-b: transparent; --fg-b: var(--tx-hi); --bd-b: var(--line); }
.btn-ghost:hover { --bd-b: var(--tx-hi); }
.btn-sm { padding: 10px 17px; font-size: .84rem; }

.tlink {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .93rem; color: var(--tx-hi);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease);
}
.tlink:hover { background-size: 100% 2.5px; }
.tlink .arw { transition: transform .28s var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }

/* ============================================================ BADGES */
.badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--tx-lo); background: transparent;
}
.badge-live { border-color: rgba(196,240,75,.42); color: var(--signal); }
.badge-new { background: var(--clay-tx); border-color: var(--clay-tx); color: #fff; }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.8);} }

/* ============================================================ CARDS */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 34px); position: relative; overflow: hidden; display: block;
  transition: border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
a.card:hover, .card-hov:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--tx-lo); position: absolute; top: 18px; right: 20px; }

/* ============================================================ STAT */
.statv {
  font-size: clamp(2.2rem, 4.3vw, 3.6rem); font-weight: 700; letter-spacing: -.045em;
  line-height: .96; color: var(--tx-hi); font-variant-numeric: tabular-nums;
}
.statv .u { font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: var(--accent); margin-left: .14em; }
.statl { font-family: var(--mono); font-size: .71rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-lo); margin-top: 10px; }
.statn { font-size: .81rem; color: var(--tx-lo); margin-top: 6px; }

/* ============================================================ SPEC TABLE */
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th:first-child, .spec td:first-child { padding-left: 0; }
.spec thead th {
  font-family: var(--mono); font-size: .67rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx-lo); padding-block: 11px; white-space: nowrap;
}
.spec tbody tr { transition: background .18s; }
.spec tbody tr:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.spec td.num, .spec th.num { font-family: var(--mono); white-space: nowrap; }
/* Table body copy is read, not skimmed — the muted token is too light here. */
.spec td.muted { color: var(--tx); }
.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-scroll table { min-width: 720px; }

/* Definition list */
.dl { display: grid; grid-template-columns: minmax(140px, 36%) 1fr; }
.dl dt, .dl dd { padding: 13px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-family: var(--mono); font-size: .71rem; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-lo); padding-right: 20px; }
.dl dd { font-weight: 500; color: var(--tx-hi); }
.dl.plain dt { font-family: var(--sans); font-size: .89rem; letter-spacing: 0; text-transform: none; color: var(--tx); }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 2px; } }

/* ============================================================ HEADER */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.hdr.stuck { border-bottom-color: var(--c-paper-3); }
/* Header height and logo scale are tied together through one variable so they
   cannot drift apart. Raised by a third from the original 70px / 38px. */
:root { --hdr-h: 94px; --logo-h: 51px; }
@media (max-width: 900px) { :root { --hdr-h: 82px; --logo-h: 45px; } }
@media (max-width: 560px) { :root { --hdr-h: 72px; --logo-h: 40px; } }
.hdr-in { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { width: auto; height: var(--logo-h); display: block; }
.ftr .logo img { height: 58px; }
/* Anchor targets clear the sticky header instead of hiding under it. */
html { scroll-padding-top: var(--hdr-h); } /* sections land flush under the sticky header */
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav > .has-menu > button {
  display: flex; align-items: center; gap: .35em; padding: 9px 13px; border-radius: var(--r);
  font-size: .9rem; font-weight: 500; color: #2E3934; background: none; border: 0; cursor: pointer;
  transition: color .18s, background .18s; white-space: nowrap;
}
.nav > a:hover, .nav > .has-menu > button:hover, .nav > a[aria-current] { color: var(--c-ink); background: rgba(10,16,14,.055); }
.nav > a[aria-current] { font-weight: 600; }
.has-menu { position: relative; }
.has-menu > button .chev { transition: transform .25s var(--ease); opacity: .5; }
.has-menu[data-open="true"] > button .chev { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  background: var(--c-white); border: 1px solid var(--c-paper-3); border-radius: var(--r-lg);
  padding: 10px; width: max-content; max-width: min(660px, 92vw);
  box-shadow: 0 26px 60px -26px rgba(10,16,14,.34);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-menu[data-open="true"] .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-grid { display: grid; gap: 2px; }
.menu-grid.two { grid-template-columns: 1fr 1fr; }
.menu-h { grid-column: 1 / -1; margin: 10px 13px 2px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #5F6D67; }
.menu-h:first-child { margin-top: 4px; }
.mnav-sub { font-size: .78rem; font-weight: 600; color: var(--c-ink); margin: 12px 0 2px; }
.menu a { display: block; padding: 11px 13px; border-radius: var(--r); transition: background .16s; }
.menu a:hover { background: var(--c-paper-2); }
.menu a strong { display: block; font-size: .89rem; font-weight: 600; color: var(--c-ink); letter-spacing: -.018em; }
.menu a span { display: block; font-size: .77rem; color: #5F6D67; margin-top: 2px; line-height: 1.4; max-width: 30ch; }
.hdr-cta { display: flex; align-items: center; gap: 9px; flex: none; margin-left: 6px; }
.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 1px solid var(--c-paper-3); border-radius: var(--r); cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--c-ink); position: relative; transition: .25s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--c-ink); transition: .25s var(--ease); }
.burger span::before { top: -5.5px; } .burger span::after { top: 5.5px; }
body.mnav .burger span { background: transparent; }
body.mnav .burger span::before { top: 0; transform: rotate(45deg); }
body.mnav .burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1140px) { .nav, .hdr-cta { display: none; } .burger { display: flex; } }
.mnav-panel {
  position: fixed; inset: var(--hdr-h) 0 0; background: #fff; color: #2E3934; z-index: 89;
  overflow-y: auto; padding: 12px var(--gut) 60px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .28s var(--ease);
}
body.mnav .mnav-panel { opacity: 1; visibility: visible; transform: none; }
body.mnav { overflow: hidden; }
.mnav-panel .ftr-h, .mnav-panel h4 { font-family: var(--mono); font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; color: #5F6D67; margin: 24px 0 4px; font-weight: 500; }
.mnav-panel a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid var(--c-paper-3); font-size: 1.04rem; font-weight: 600; letter-spacing: -.022em; color: var(--c-ink); }
.mnav-panel .btn { margin-top: 22px; width: 100%; }

/* ============================================================ HERO */
.hero { background: var(--bg); color: var(--tx); position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 92px); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--c-ink-3) 1px, transparent 1px), linear-gradient(90deg, var(--c-ink-3) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 95% 70% at 72% 8%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 95% 70% at 72% 8%, #000 0%, transparent 74%);
}
.hero-glow { position: absolute; width: 880px; height: 880px; right: -260px; top: -400px; pointer-events: none;
  background: radial-gradient(circle, rgba(23,128,90,.28) 0%, rgba(23,128,90,0) 66%); }
.hero .wrap { position: relative; z-index: 2; }

/* ============================================================ HERO PHOTO
   The photograph runs at full brightness. Legibility comes from the plate
   the copy sits in, never from dimming the image — same principle as the
   Level 1 chapters. A shallow seam band top and bottom only.
   ------------------------------------------------------------------------ */
.hero-photo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  opacity: 1; filter: contrast(1.04) saturate(1.02);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,16,14,.72) 0%, rgba(10,16,14,.22) 12%, rgba(10,16,14,0) 26%),
    linear-gradient(to top,    rgba(10,16,14,.66) 0%, rgba(10,16,14,.14) 14%, rgba(10,16,14,0) 28%);
}
.hero.has-photo { padding-block: clamp(64px, 9vw, 128px) clamp(64px, 8vw, 116px); }
.hero.has-photo .hero-grid-bg,
.hero.has-photo .hero-glow { opacity: 0; }

/* The hero plate — wider than a chapter plate, because it carries the stat row. */
.hero-plate { max-width: min(64rem, 94%); }
.hero-plate .statv { color: #F4F1E9; }
.hero-plate .statl { color: #98A6A0; }
@media (max-width: 700px) { .hero-plate { max-width: 100%; } }

/* Credit line — small, honest, always present on a stock image */
.credit {
  position: absolute; right: var(--gut); bottom: 14px; z-index: 3;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .09em;
  text-transform: uppercase; color: #C7D0CB;
  background: rgba(10,16,14,.62); padding: 5px 10px; border-radius: var(--r);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.credit a { color: #E4E9E6; text-decoration: none; }
.credit a:hover { color: var(--signal); }
@media (max-width: 700px) {
  .credit { position: static; display: block; margin: 12px var(--gut) 0; text-align: left;
            background: transparent; backdrop-filter: none; padding: 0; color: var(--tx-lo); }
  .credit a { color: var(--tx); }
}

/* Full-bleed texture band between sections */
.band { position: relative; height: clamp(160px, 22vw, 300px); overflow: hidden; background: var(--c-ink); }
.band img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.5) contrast(1.1); }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0A100E 0%, rgba(10,16,14,.35) 45%, rgba(10,16,14,.55) 100%);
}
.band-tx {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
  padding-inline: var(--gut); max-width: var(--maxw); margin-inline: auto;
}
.band-tx p { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.3rem, 3vw, 2.4rem); line-height: 1.12;
  color: #F4F1E9; max-width: 24ch; letter-spacing: -.015em; }

/* Inline figure (light sections) */
.figure { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-ink); }
.figure img { width: 100%; display: block; }
.figure figcaption {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-lo); padding-top: 10px;
}
.figure figcaption a { color: var(--tx-lo); }

/* ============================================================ DOORS */
.doors { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 980px) { .doors { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } }
.door { padding: 26px 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; transition: background .3s var(--ease); display: block; }
.door:last-child { border-right: 0; }
@media (max-width: 980px) { .door:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .door { border-right: 0; } }
.door::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.door:hover { background: var(--surface); }
.door:hover::after { transform: scaleX(1); }
.door-i { color: var(--signal); margin-bottom: 15px; }
.door h3 { font-size: 1.03rem; letter-spacing: -.026em; margin-bottom: 7px; }
.door p { font-size: .835rem; color: var(--tx-lo); line-height: 1.5; }
.door .go { display: flex; align-items: center; gap: .4em; margin-top: 15px; font-size: .76rem; font-weight: 500;
  color: var(--signal); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.door .go .arw { transition: transform .3s var(--ease); }
.door:hover .go .arw { transform: translateX(4px); }

/* ============================================================ TICKER */
.ticker { border-block: 1px solid var(--c-ink-3); overflow: hidden; padding-block: 14px; background: var(--c-ink); }
.ticker-tr { display: flex; width: max-content; animation: slide 52s linear infinite; }
.ticker:hover .ticker-tr { animation-play-state: paused; }
.ticker-i { display: flex; align-items: center; gap: 13px; padding-inline: 28px; white-space: nowrap;
  font-family: var(--mono); font-size: .73rem; letter-spacing: .09em; color: #A2B0AA; text-transform: uppercase; }
.ticker-i b { color: #F4F1E9; font-weight: 500; }
.ticker-i::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--signal); opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================ ACCORDION */
.acc { border-top: 1px solid var(--line); }
.acc-i { border-bottom: 1px solid var(--line); }
.acc-b {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
  padding: 21px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(1rem, 1.3vw, 1.14rem); font-weight: 600; letter-spacing: -.024em; color: var(--tx-hi);
}
.acc-b .pm { flex: none; width: 18px; height: 18px; position: relative; margin-top: 5px; }
.acc-b .pm::before, .acc-b .pm::after { content: ""; position: absolute; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.acc-b .pm::before { top: 8.5px; left: 0; width: 18px; height: 1.5px; }
.acc-b .pm::after { left: 8.5px; top: 0; height: 18px; width: 1.5px; }
.acc-i[data-open="true"] .pm::after { transform: rotate(90deg); opacity: 0; }
.acc-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.acc-i[data-open="true"] .acc-p { grid-template-rows: 1fr; }
.acc-p > div { overflow: hidden; }
.acc-p .inner { padding-bottom: 25px; max-width: 74ch; color: var(--tx-lo); }

/* ============================================================ TOOL */
.tool { background: var(--bg); color: var(--tx); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.tool-hd { padding: 19px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tool-bd { padding: 24px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-family: var(--mono); font-size: .69rem; letter-spacing: .11em; text-transform: uppercase; color: var(--tx-lo); margin-bottom: 8px; }
.inp {
  width: 100%; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--tx-hi); font-family: var(--mono); font-size: .94rem; transition: border-color .2s;
}
.inp:focus { border-color: var(--signal); outline: none; }
.inp::placeholder { color: var(--tx-lo); opacity: .6; }
select.inp { font-family: var(--sans); cursor: pointer; }
.result { margin-top: 21px; padding: 21px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); border-left: 3px solid var(--signal); }
.result.warn { border-left-color: var(--clay); }
.result.ok { border-left-color: var(--green-2); }
.result-v { font-size: clamp(1.4rem, 2.8vw, 2.15rem); font-weight: 700; letter-spacing: -.036em; color: var(--tx-hi); line-height: 1.06; }
.result-l { font-family: var(--mono); font-size: .69rem; letter-spacing: .11em; text-transform: uppercase; color: var(--tx-lo); margin-bottom: 9px; }
.result a.btn { text-decoration: none; }

/* ============================================================ FORM */
.f-field { margin-bottom: 19px; }
.f-field label { display: block; font-family: var(--mono); font-size: .69rem; letter-spacing: .11em; text-transform: uppercase; color: var(--tx-lo); margin-bottom: 8px; }
.f-inp { width: 100%; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); font-size: .95rem; color: var(--tx-hi); transition: border-color .2s; }
.f-inp:focus { border-color: var(--accent); outline: none; }
textarea.f-inp { min-height: 118px; resize: vertical; font-family: inherit; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: flex; align-items: center; gap: 9px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--r); cursor: pointer; font-family: var(--sans); font-size: .89rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--tx); margin: 0; transition: .2s var(--ease);
}
.seg label::before { content: ""; width: 13px; height: 13px; border: 1.5px solid var(--line); border-radius: 50%; flex: none; transition: .2s; }
.seg input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--tx-hi); }
.seg input:checked + label::before { border-color: var(--accent); border-width: 4px; }
.seg input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ============================================================ FOOTER */
.ftr { background: var(--bg); color: var(--tx); padding-block: clamp(54px, 7vw, 92px) 30px; }
.ftr-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: clamp(28px,3vw,52px); padding-bottom: 48px; }
@media (max-width: 900px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr-top { grid-template-columns: 1fr; } }

.ftr .ftr-h { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-lo); font-weight: 500; margin-bottom: 15px; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 1px; }
.ftr ul a { display: inline-block; padding-block: 4px; font-size: .89rem; color: var(--tx); transition: color .18s; }
.ftr ul a:hover { color: var(--signal); }
.ftr-btm { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 30px;
  align-items: center; justify-content: space-between; font-size: .79rem; color: var(--tx-lo); }
.ftr-btm .mono { font-size: .72rem; letter-spacing: .05em; }
.ftr-btm a:hover { color: var(--signal); }

/* ============================================================ MISC */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-cell { background: var(--surface); aspect-ratio: 2.5/1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.logo-cell .ph { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; color: var(--tx-lo); opacity: .6; text-transform: uppercase; text-align: center; }
.note { border-left: 2px solid var(--clay); padding: 3px 0 3px 18px; color: var(--tx-lo); }
.tile-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--surface); padding: 18px 16px; }
.tile-k { font-weight: 600; letter-spacing: -.02em; color: var(--tx-hi); }
.tile-v { font-family: var(--mono); font-size: .67rem; color: var(--tx-lo); letter-spacing: .1em; margin-top: 3px; text-transform: uppercase; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--c-ink); color: var(--c-paper);
  padding: 11px 18px; border-radius: var(--r); font-size: .88rem; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.rv { opacity: 0; transform: translateY(18px);
  transition: opacity var(--t-l) var(--e-out), transform var(--t-l) var(--e-out); }
.rv.on, .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* Utilities */
.flow > * + * { margin-top: 1.05em; }
.mt1{margin-top:8px}.mt2{margin-top:16px}.mt3{margin-top:24px}.mt4{margin-top:36px}.mt5{margin-top:52px}.mt6{margin-top:76px}
.mb2{margin-bottom:16px}.mb3{margin-bottom:24px}.mb4{margin-bottom:36px}.mb5{margin-bottom:52px}
.tac{text-align:center}
.flex{display:flex}.aic{align-items:center}.aie{align-items:flex-end}.ais{align-items:flex-start}
.jcb{justify-content:space-between}.fw{flex-wrap:wrap}.gap1{gap:8px}.gap2{gap:16px}.gap3{gap:26px}
.sticky-side { position: sticky; top: 96px; }
@media (max-width: 900px) { .sticky-side { position: static; } }

/* ============================================================================
   VISUAL SYSTEM — image-led components
   Built against the structural patterns used by Tadweer, BEEAH and Imdaad:
   full-viewport hero carousel, scroll-linked value chain, hover spotlight,
   offset mosaic, gradient numerals, section overlap. See HANDOVER §6.
   ============================================================================ */

/* ---------------------------------------------------------------- HERO SLIDER */
/* ============================================================================
   LEVEL SYSTEM — three depths of information
   L1 Story (cinematic) · L2 Work (practical) · L3 Evidence (technical)

   IMAGE PRINCIPLE: photographs run at full brightness. Text never sits on an
   undimmed photo — it sits in its own panel, band or plate beside or below it.
   Dimming the whole picture to make type legible is what made the last build
   look washed out.
   ============================================================================ */

/* ------------------------------------------------------------ DEPTH SWITCH */
/* ------------------------------------------------------------ GRADIENT NUMERALS */
.gnum {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; line-height: .88; letter-spacing: -.05em;
  background-image: linear-gradient(96deg, var(--brand) 4%, var(--signal) 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums; display: inline-block;
}
.gnum-l { display: block; font-family: var(--mono); font-size: .71rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--tx-lo); margin-top: 14px; max-width: 22ch; }

/* --------------------------------------------------------------- VALUE CHAIN */
.chain { position: relative; }
.chain-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.chain-spine i { position: absolute; inset: 0 auto 0 0; width: 2px; height: 0;
  background: linear-gradient(180deg, var(--brand), var(--signal)); transition: height .1s linear; }
.chain-step { position: relative; padding-left: clamp(28px, 5vw, 64px); padding-block: clamp(36px, 5vw, 72px); }
.chain-dot { position: absolute; left: -7px; top: clamp(42px, 5.4vw, 80px); width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); transition: .4s var(--ease); }
.chain-step.on .chain-dot { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 7px rgba(196,240,75,.14); }
.chain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .chain-grid { grid-template-columns: 1fr; } }
.chain-n { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--tx-lo); }
.chain-step h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -.032em; margin-top: 10px; }
.chain-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 26px; }
.chain-stat b { display: block; font-family: var(--mono); font-size: 1.28rem; color: var(--accent); font-weight: 500; }
.chain-stat span { display: block; font-size: .74rem; font-family: var(--mono); letter-spacing: .09em;
  text-transform: uppercase; color: var(--tx-lo); margin-top: 5px; }
.chain-img { border-radius: 12px; overflow: hidden; position: relative; }
.chain-img img { width: 100%; display: block; transition: transform .8s var(--ease); }
.chain-step:hover .chain-img img { transform: scale(1.045); }

/* ------------------------------------------------------------ HOVER SPOTLIGHT */

/* ------------------------------------------------------------ IMAGE CARD GRID */
.icard { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.icard:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -20px rgba(10,16,14,.34); border-color: var(--accent); }
.dark .icard:hover { box-shadow: 0 26px 52px -18px rgba(0,0,0,.6); }
.icard-img { position: relative; overflow: hidden; aspect-ratio: 1.44 / 1; background: var(--c-ink); }
.icard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.icard:hover .icard-img img { transform: scale(1.07); }
.icard-bd { padding: clamp(18px, 2vw, 26px); }
.icard-bd h3 { font-size: 1.13rem; letter-spacing: -.025em; }
.icard-bd p { font-size: .85rem; color: var(--tx-lo); margin-top: 8px; line-height: 1.5; }
/* caption overlaid variant */
.icard-over { position: relative; border-radius: var(--r-lg); overflow: hidden; display: block; aspect-ratio: 1.44/1; background: var(--c-ink); }
.icard-over img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.icard-over:hover img { transform: scale(1.07); }
.icard-over::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,16,14,.97) 0%, rgba(10,16,14,.94) 26%, rgba(10,16,14,.58) 52%, rgba(10,16,14,.10) 100%); }
.icard-over .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.icard-over .cap h3 { color: #F4F1E9; font-size: 1.08rem; letter-spacing: -.025em; }
.icard-over .cap p { color: #CFD8D3; font-size: .8rem; margin-top: 5px; }

/* ------------------------------------------------------------- OFFSET MOSAIC */
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 26px); align-items: start; }
.mosaic figure { border-radius: 12px; overflow: hidden; margin: 0; background: var(--c-ink); }
.mosaic img { width: 100%; display: block; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic .c1 { margin-top: 58px; }
.mosaic .c2 { margin-top: 0; display: grid; gap: clamp(12px, 1.6vw, 26px); }
.mosaic .c3 { margin-top: 92px; }
.mosaic .c4 { margin-top: 20px; display: grid; gap: clamp(12px, 1.6vw, 26px); }
.mosaic .c5 { margin-top: 66px; }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic > * { margin-top: 0 !important; } .mosaic .c5 { display: none; } }

/* ---------------------------------------------------------------- OVERLAP */
.pull-up { margin-top: clamp(-160px, -9vw, -60px); position: relative; z-index: 3; }
.pull-up-sm { margin-top: clamp(-90px, -5vw, -40px); position: relative; z-index: 3; }

/* -------------------------------------------------------------- SPLIT FEATURE */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-img { position: relative; min-height: 420px; overflow: hidden; background: var(--c-ink); }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-tx { padding: clamp(36px, 6vw, 96px) clamp(24px, 5vw, 84px); display: flex; flex-direction: column; justify-content: center; }

/* ------------------------------------------------------------- LOGO WALL BAND */
.logoband { background: var(--c-ink); }
.logoband .logo-wall { background: rgba(244,241,233,.09); border-color: rgba(244,241,233,.09); }
.logoband .logo-cell { background: var(--c-ink); }

/* -------------------------------------------------------------- COMMITMENT */
.commit { position: relative; overflow: hidden; background: var(--c-ink); }
.commit-img { position: absolute; inset: 0; }
.commit-img img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.commit-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(10,16,14,.95), rgba(10,16,14,.72)); }
.commit .wrap { position: relative; z-index: 2; }
.commit h2 { font-size: clamp(2rem, 5.4vw, 4.4rem); letter-spacing: -.042em; line-height: 1.02; max-width: 20ch; color: #F4F1E9; }
.commit h2 em { font-style: normal; color: var(--signal); }

/* ============================================================ L1 — CINEMA */
.reel { position: relative; background: var(--c-ink); }

/* Full-bleed chapter. Image at FULL opacity; copy sits in a solid plate. */
.ch { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
/* The opening frame. Tall enough to be cinematic, short enough that the story
   slider below it is visibly the next thing rather than a surprise. */
.ch-open { min-height: min(88svh, 780px); }
.ch-img { position: absolute; inset: 0; }
.ch-img img { width: 100%; height: 100%; object-fit: cover; }
/* The photograph is NOT dimmed. A shallow foot-band only, for the seam between
   chapters — everything above 26% of the frame is the untouched image. */
.ch-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,16,14,.62) 0%, rgba(10,16,14,.18) 14%, rgba(10,16,14,0) 26%); }
.ch-in { position: relative; z-index: 2; width: 100%; padding-block: clamp(44px, 7vw, 96px); }

/* The copy lives in its own plate. Guaranteed legibility without touching the
   image, and it reads as a deliberate editorial device rather than a wash. */
.ch-plate { position: relative; max-width: min(52rem, 88%); padding: clamp(26px, 2.6vw, 42px) clamp(24px, 2.6vw, 44px);
  border-radius: var(--r-lg); border-left: 3px solid var(--signal);
  background: linear-gradient(178deg, rgba(6,11,9,.90) 0%, rgba(6,11,9,.955) 100%);
  backdrop-filter: blur(16px) saturate(.85); -webkit-backdrop-filter: blur(16px) saturate(.85);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
@media (max-width: 700px) { .ch-plate { max-width: 100%; } }
.ch-n { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--signal); }
.ch h2, .ch h1 { font-size: clamp(2.1rem, 5.2vw, 4.5rem); font-weight: 800; line-height: .98; letter-spacing: -.04em;
  color: #F4F1E9; max-width: 17ch; margin-top: 18px; }
.ch h2 em, .ch h1 em { font-style: normal; color: var(--signal); }
.ch .ed { font-family: var(--sans); font-weight: 700; letter-spacing: -.034em; }
.ch p.lede { color: #DCE3E0; max-width: 54ch; margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.28rem); }
.ch-figure { position: absolute; right: var(--gut); top: 50%; translate: 0 -50%; z-index: 3;
  background: rgba(10,16,14,.82); backdrop-filter: blur(10px); border: 1px solid rgba(244,241,233,.14);
  border-radius: var(--r-lg); padding: 26px 30px; max-width: 300px; }
@media (max-width: 1000px) { .ch-figure { display: none; } }
.ch-figure .v { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -.045em; line-height: .95;
  background-image: linear-gradient(96deg, var(--brand) 4%, var(--signal) 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ch-figure .l { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: #98A6A0; margin-top: 10px; }

/* ================================================== HORIZONTAL CHAPTER REEL
   The five chapters used to be five stacked full-viewport sections, which made
   the homepage feel like a five-page document before you reached anything. They
   are now one section you move through left to right — native scroll-snap, so
   trackpad, touch swipe, arrow keys and the buttons all drive the same thing.
   -------------------------------------------------------------------------- */
.reel2 { background: var(--c-ink); padding-block: clamp(48px, 6vw, 88px) clamp(30px, 3.5vw, 48px);
  --clay-tx: #D4784E; --bg: var(--c-ink); --surface: var(--c-ink-2); --line: var(--c-ink-3);
  --tx-hi: #F4F1E9; --tx: #B7C2BD; --tx-lo: #90A099; --accent: var(--signal);
  --btn-bg: var(--c-paper); --btn-fg: var(--c-ink); color: var(--tx); }
.reel2-head { margin-bottom: clamp(20px, 2.4vw, 34px); }
.reel2-head h2 { color: var(--tx-hi); }

.reel2-track { display: flex; gap: clamp(14px, 1.6vw, 26px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding-inline: var(--gut); padding-bottom: 4px; }
.reel2-track::-webkit-scrollbar { display: none; }
.reel2-track:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .reel2-track { scroll-behavior: auto; } }

.rslide { position: relative; flex: 0 0 min(1180px, 88vw); scroll-snap-align: center;
  height: clamp(430px, 62vw, 620px); border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: flex-end; background: var(--c-ink); }
@media (max-width: 820px) { .rslide { flex-basis: 88vw; height: clamp(460px, 108vw, 620px); } }
.rslide-img { position: absolute; inset: 0; }
.rslide-img img { width: 100%; height: 100%; object-fit: cover; }
/* Shallow foot band for the seam only. The photograph itself is untouched. */
.rslide-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,16,14,.55) 0%, rgba(10,16,14,.12) 16%, rgba(10,16,14,0) 32%); }
.rslide-in { position: relative; z-index: 2; width: 100%; padding: clamp(18px, 2vw, 30px); }
.rslide .ch-plate { max-width: min(40rem, 100%); }
.rslide h2 { font-size: clamp(1.7rem, 3.1vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: #F4F1E9; max-width: 18ch; margin-top: 14px; }
.rslide h2 em { font-style: normal; color: var(--signal); }
.rslide p.lede { color: #DCE3E0; max-width: 52ch; margin-top: 14px; font-size: clamp(.95rem, 1.1vw, 1.1rem); }
.rslide-fig { display: flex; align-items: baseline; gap: 12px; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid rgba(244,241,233,.16); }
.rslide-fig b { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.04em;
  color: var(--signal); line-height: 1; }
.rslide-fig span { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: #A9B6B0; }

.reel2-ui { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(18px, 2vw, 28px); }
.reel2-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.reel2-tab { display: inline-flex; align-items: center; gap: .55em; padding: 7px 13px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: #90A099; cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 600; letter-spacing: -.01em; transition: .25s var(--ease); }
.reel2-tab i { font-family: var(--mono); font-style: normal; font-size: .64rem; opacity: .8; }
.reel2-tab:hover { color: #F4F1E9; background: rgba(244,241,233,.07); }
.reel2-tab[aria-current="true"] { color: var(--c-ink); background: var(--signal); border-color: var(--signal); }
.reel2-tab[aria-current="true"] i { opacity: .7; }
@media (max-width: 900px) { .reel2-tabs { display: none; } }

.reel2-arrows { display: flex; gap: 8px; flex: none; }
.reel2-b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244,241,233,.24); background: transparent; color: #F4F1E9; transition: .25s var(--ease); }
.reel2-b:hover:not(:disabled) { background: var(--signal); border-color: var(--signal); color: var(--c-ink); }
.reel2-b:disabled { opacity: .3; cursor: default; }
@media (max-width: 900px) { .reel2-ui { justify-content: center; } }

.reel2-bar { height: 2px; background: rgba(244,241,233,.13); margin: clamp(18px, 2vw, 26px) var(--gut) 0; }
.reel2-bar i { display: block; height: 100%; width: 20%; background: var(--signal);
  transition: width .35s var(--ease), transform .35s var(--ease); transform-origin: left; }

/* Two-up cinematic split: photo full-bleed one side, ink panel the other */
.duo { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 84svh; }
.duo.flip { grid-template-columns: .9fr 1.1fr; }
.duo.flip .duo-img { order: 2; }
@media (max-width: 940px) { .duo, .duo.flip { grid-template-columns: 1fr; } .duo.flip .duo-img { order: 0; } }
.duo-img { position: relative; overflow: hidden; min-height: 52svh; background: var(--c-ink); }
.duo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo-tx { background: var(--c-ink); color: #B7C2BD; padding: clamp(36px, 5.5vw, 88px) clamp(26px, 4.5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; }
.duo-tx h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); letter-spacing: -.04em; line-height: 1.02; color: #F4F1E9; }
.duo-tx > .tlink, .duo-tx > .eyebrow { align-self: flex-start; }
.duo-tx.paper { background: var(--c-paper); color: #2E3934;
  --clay-tx: #9E4B29; --bg: var(--c-paper); --surface: var(--c-paper-2); --line: rgba(10,16,14,.12);
  --tx-hi: #0A100E; --tx: #2E3934; --tx-lo: #56635D; --accent: var(--green);
  --btn-bg: var(--c-ink); --btn-fg: var(--c-paper); }
.duo-tx.paper h2 { color: var(--tx-hi); }

/* Full-brightness image strip with captions underneath (never over) */
.strip { display: grid; gap: clamp(10px, 1.2vw, 18px); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 780px) { .strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }
.strip figure { margin: 0; }
.strip .im { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--c-ink); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.strip figure:hover img { transform: scale(1.07); }
.strip figcaption { margin-top: 12px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tx-lo); }
.strip figcaption b { display: block; font-family: var(--sans); font-size: .95rem; letter-spacing: -.02em;
  text-transform: none; color: var(--tx-hi); font-weight: 600; margin-bottom: 4px; }

/* ============================================================ BEFORE/AFTER */
.ba { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9;
  background: var(--c-ink); cursor: ew-resize; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--signal); z-index: 3; }
.ba-bar::after { content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 44px; height: 44px; border-radius: 50%; background: var(--signal); box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.ba-bar i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 2; color: var(--c-ink);
  font-family: var(--mono); font-size: .8rem; font-style: normal; }
.ba-lab { position: absolute; bottom: 14px; z-index: 4; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; color: #F4F1E9; background: rgba(8,13,11,.86);
  padding: 5px 11px; border-radius: var(--r); backdrop-filter: blur(4px); }
.ba-lab.l { left: 14px; } .ba-lab.r { right: 14px; }

/* ============================================================ INDIA MAP */
.mapwrap { position: relative; width: 100%; }
.indiamap { width: 100%; height: auto; overflow: visible; }
.map-land { stroke: var(--line); stroke-width: 1.4; stroke-linejoin: round; }
.dark .map-land, .reel .map-land { stroke: rgba(244,241,233,.22); }
.pin { cursor: default; }
.pin-link { cursor: pointer; }
.pin-halo { fill: var(--signal); opacity: 0; transition: opacity .3s var(--ease); }
.pin-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 1.6; transition: .3s var(--ease); }
.pin-hq .pin-dot { fill: var(--signal); }
.pin-lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; fill: var(--tx);
  transition: .3s var(--ease); pointer-events: none; paint-order: stroke;
  stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.dark .pin-lbl, .reel .pin-lbl { fill: #C6D0CB; stroke: #0A100E; }
.pin-link:hover .pin-halo, .pin-link:focus-visible .pin-halo, .pin-on .pin-halo { opacity: .22; }
.pin-link:hover .pin-dot, .pin-link:focus-visible .pin-dot, .pin-on .pin-dot { fill: var(--signal); r: 7; }
.pin-link:hover .pin-lbl, .pin-link:focus-visible .pin-lbl, .pin-on .pin-lbl { fill: var(--tx-hi); font-weight: 700; }
.dark .pin-link:hover .pin-lbl, .reel .pin-link:hover .pin-lbl { fill: #F4F1E9; }
/* Phones: the map renders at ~0.55x, which shrank pins to ~5px dots and ~6px
   labels. Draw them larger in map units so they land at a tappable size;
   the invisible halo doubles as a 24px+ touch target. */
@media (max-width: 640px) {
  .pin-dot { r: 8; stroke-width: 2.4; }
  .pin-hq .pin-dot { r: 10; }
  .pin-halo { r: 24; }
  .pin-lbl { font-size: 19px; stroke-width: 4.5px; }
  .pin-lbl { transform: translate(4px, 2px); }
  .pin-lbl[text-anchor="end"] { transform: translate(-4px, 2px); }
  /* Spread the crowded south and east labels at this size. */
  .pin[data-city="Hyderabad"] .pin-lbl { transform: translate(2px, -17px); }
  .pin[data-city="Bengaluru"] .pin-lbl { transform: translate(-4px, -8px); }
  .pin[data-city="Mysuru"] .pin-lbl { transform: translate(-4px, -2px); }
  .pin[data-city="Coimbatore"] .pin-lbl { transform: translate(-6px, 4px); }
  .pin[data-city="Kochi"] .pin-lbl { transform: translate(-4px, 14px); }
  .pin-link:hover .pin-dot, .pin-link:focus-visible .pin-dot, .pin-on .pin-dot { r: 11; }
}
/* Hover card. Fixed structure — heading, two labelled rows, optional link —
   so it reads the same for every city. Width is fixed for the same reason. */
.map-tip { position: absolute; z-index: 5; pointer-events: none; width: 244px;
  background: #0A100E; color: #F4F1E9; border: 1px solid #2A3733; border-radius: var(--r-lg);
  padding: 13px 15px 12px; box-shadow: 0 20px 44px -14px rgba(0,0,0,.66);
  transform: translate(-50%, -100%); }
.map-tip.below { transform: translate(-50%, 0); }
.map-tip::after { content: ""; position: absolute; left: 50%; translate: -50% 0;
  border: 6px solid transparent; border-top-color: #0A100E; bottom: -12px; }
.map-tip.below::after { bottom: auto; top: -12px; border-top-color: transparent; border-bottom-color: #0A100E; }
.map-tip-h { padding-bottom: 9px; border-bottom: 1px solid #1E2925; }
.map-tip strong { display: block; font-size: .98rem; letter-spacing: -.025em; font-weight: 650; }
.map-tip-st { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: #90A099; margin-top: 4px; }
.map-tip-dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 9px 0 0; }
.map-tip-dl dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: #90A099; align-self: center; }
.map-tip-dl dd { margin: 0; font-size: .8rem; font-weight: 600; text-align: right; color: #F4F1E9;
  line-height: 1.3; }
.map-tip-go[hidden] { display: none; }
.map-tip-go { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid #1E2925;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); }

/* ============================================================ STREAM EXPLORER */
.streams { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 860px) { .streams { grid-template-columns: 1fr; } }
.stream-list { display: grid; gap: 2px; }
.stream-b { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px;
  background: none; border: 0; border-left: 2px solid var(--line); cursor: pointer; color: var(--tx-lo);
  font-size: .95rem; font-weight: 500; transition: .25s var(--ease); }
.stream-b:hover { color: var(--tx-hi); background: color-mix(in srgb, var(--tx-hi) 4%, transparent); }
.stream-b[aria-selected="true"] { border-left-color: var(--signal); color: var(--tx-hi); font-weight: 700;
  background: color-mix(in srgb, var(--accent) 8%, transparent); }
.stream-b .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.stream-panel { display: none; }
.stream-panel[data-on="1"] { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stream-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
@media (max-width: 720px) { .stream-flow { grid-template-columns: 1fr 1fr; } }
.flow-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
  position: relative; }
.flow-step .k { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-lo); }
.flow-step .v { font-weight: 600; letter-spacing: -.02em; margin-top: 6px; color: var(--tx-hi); }

/* ============================================================ MISC */
.fullbleed { width: 100vw; margin-left: 50%; translate: -50% 0; }
.imgblock { border-radius: var(--r-lg); overflow: hidden; background: var(--c-ink); }
.imgblock img { width: 100%; display: block; }
.cap-under { margin-top: 12px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tx-lo); }

/* ============================================================ CITY PAGES */
/* Two-column definition list — the regulator block reads as a spec sheet
   rather than a long single column. */
@media (min-width: 900px) {
  .dl-2 { grid-template-columns: minmax(130px, 18%) 1fr minmax(130px, 18%) 1fr; column-gap: 0; }
  .dl-2 dt { padding-right: 18px; }
  .dl-2 dd { padding-right: clamp(24px, 4vw, 60px); }
  .dl-2 > :nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dl-2 > :nth-last-child(-n+2) { border-bottom: 0; }
}

/* Three-up image band on city pages */
.strip-3 { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 780px) { .strip-3 { grid-auto-flow: row; grid-template-columns: 1fr; } }

/* Horizontal bar comparison. Real data, no library. */
.bars { display: grid; gap: 2px; margin-top: clamp(28px, 3vw, 44px); }
.bar { display: grid; grid-template-columns: minmax(88px, 15%) 1fr minmax(96px, auto);
  align-items: center; gap: clamp(12px, 2vw, 26px); padding: 14px 0;
  border-bottom: 1px solid var(--line); transition: .3s var(--ease); }
.bar:last-child { border-bottom: 0; }
.bar:hover { background: var(--surface); }
.bar-k { font-weight: 600; color: var(--tx-hi); letter-spacing: -.02em; font-size: .96rem; }
.bar-t { position: relative; height: 26px; border-radius: 4px; background: var(--line);
  overflow: hidden; display: flex; align-items: center; }
.bar-t i { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--green) 100%);
  transition: width 1.1s var(--ease); }
.bar-t b { position: absolute; left: 10px; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tx); font-weight: 400;
  background: var(--bg); padding: 2px 7px; border-radius: 3px; }
.bar-v { font-family: var(--mono); font-size: .95rem; font-weight: 600; color: var(--tx-hi);
  text-align: right; white-space: nowrap; }
.bar-v em { font-style: normal; font-size: .66rem; color: var(--tx-lo); margin-left: 5px; letter-spacing: .08em; }
.bar-on { background: var(--surface); }
.bar-on .bar-k { color: var(--clay-tx); }
.bar-on .bar-t i { background: linear-gradient(90deg, var(--green) 0%, var(--signal) 100%); }
.bar-none .bar-t { background: repeating-linear-gradient(135deg,
  var(--line) 0 6px, transparent 6px 12px); }
@media (max-width: 640px) {
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "k v" "t t"; row-gap: 8px; }
  .bar-k { grid-area: k; } .bar-v { grid-area: v; } .bar-t { grid-area: t; height: 20px; }
}

/* ============================================================ OUR WORK */
/* Empty client grid. Deliberately reads as reserved space rather than as a
   design flourish — the page argues that an unconsented logo wall is worse
   than no logo wall, so the slots should look like what they are. */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.2vw, 18px); }
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-slot { aspect-ratio: 1.9/1; border: 1px dashed var(--line); border-radius: var(--r);
  display: grid; place-items: center; background: var(--surface); }
.logo-slot span { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--tx-lo); }

/* Figure attached to an engagement card */
.workstat { display: flex; align-items: baseline; gap: 10px; padding-top: 14px;
  border-top: 1px solid var(--line); }
.workstat b { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; color: var(--tx-hi); }
.workstat span { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tx-lo); }

/* ============================================================ MOTION
   Everything below is progressive enhancement. If a browser does not
   support view transitions or scroll-driven timelines it gets the static
   layout, which is the same layout — nothing here carries meaning.
   ------------------------------------------------------------------------ */

/* --- Page-to-page. 29 static pages that used to hard-cut. ---------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 260ms var(--e-soft) both; }
::view-transition-new(root) { animation: vtIn 420ms var(--e-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
/* The header is the same object on every page, so it should not cross-fade. */
.hdr { view-transition-name: hdr; }
::view-transition-group(hdr) { animation-duration: 320ms; }

/* --- Opening frame: the image settles, the headline rises in lines ------- */
.ch-open .ch-img img { animation: heroSettle var(--t-xl) var(--e-out) both; }
@keyframes heroSettle { from { transform: scale(1.07); } to { transform: scale(1); } }

.ch-open .ch-plate > * { animation: heroRise 900ms var(--e-out) both; }
.ch-open .ch-plate > :nth-child(1) { animation-delay: 180ms; }
.ch-open .ch-plate > :nth-child(2) { animation-delay: 280ms; }
.ch-open .ch-plate > :nth-child(3) { animation-delay: 380ms; }
.ch-open .ch-plate > :nth-child(4) { animation-delay: 480ms; }
.ch-open .ch-figure { animation: heroRise 900ms var(--e-out) 620ms both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } }

/* The plate itself wipes open from its own left rule. */
.ch-open .ch-plate { animation: plateOpen 1100ms var(--e-out) both; }
@keyframes plateOpen {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* --- Parallax on full-bleed photography --------------------------------- */
/* Scroll-driven, so it runs off the main thread and costs no scroll handler.
   Unsupported browsers simply get a still image. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .duo-img img, .hero-photo img {
      animation: parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      will-change: transform;
    }
    @keyframes parallax { from { transform: scale(1.14) translateY(-3.5%); }
                          to   { transform: scale(1.14) translateY(3.5%); } }

    /* Chapter slides dim and shrink when they are not the one you are on,
       which turns a strip of panels into a focus system. */
    .rslide { animation: slideFocus linear both; animation-timeline: view(inline); }
    @keyframes slideFocus {
      entry 45%, exit 55% { opacity: 1; transform: scale(1); }
      entry 0%,  exit 100% { opacity: .4; transform: scale(.94); }
    }
  }
}

/* --- Reveal: a wipe for images, a rise for text ------------------------- */
/* Stagger is per group, set from the container, so an element on its own
   never waits behind a delay it did not earn. */
.rv { transition-delay: calc(var(--i, 0) * var(--stagger)); }

.rv-wipe { clip-path: inset(0 0 100% 0); transition: clip-path var(--t-xl) var(--e-out); }
.rv-wipe.on, .rv.on .rv-wipe { clip-path: inset(0 0 0 0); }
.rv-wipe img { transform: scale(1.1); transition: transform 1.8s var(--e-out); }
.rv-wipe.on img, .rv.on .rv-wipe img { transform: scale(1); }

/* --- Section seam: the outgoing band eases away instead of butt-joining -- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seam { animation: seam linear both; animation-timeline: view();
            animation-range: exit 0% exit 100%; }
    @keyframes seam { to { opacity: .55; transform: scale(.985); } }
  }
}

/* ============================================================ PAGE HERO
   Inner pages. Photograph full-bleed and unretouched above the fold line;
   the type sits in the bottom third where a directional scrim carries it.
   Measured, not guessed — see HANDOVER §5.
   ------------------------------------------------------------------------ */
.phero { position: relative; overflow: hidden; background: var(--bg);
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 68px); }
.phero.has-photo {
  min-height: min(74svh, 720px); display: flex; align-items: flex-end;
  padding-block: clamp(120px, 16vw, 220px) clamp(38px, 4.5vw, 62px);
  --clay-tx: #D4784E; --bg: var(--c-ink); --surface: var(--c-ink-2); --line: var(--c-ink-3);
  --tx-hi: #F4F1E9; --tx: #B7C2BD; --tx-lo: #90A099; --accent: var(--signal);
  --btn-bg: var(--c-paper); --btn-fg: var(--c-ink);
}
.phero-in { position: relative; z-index: 2; }
.phero.has-photo .phero-in { max-width: 62rem; }
.phero.has-photo h1 { color: #F4F1E9; max-width: 17ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .99; letter-spacing: -.042em;
  text-shadow: 0 2px 30px rgba(6,11,9,.55); }
.phero.has-photo .eyebrow { color: #B9C6C0; }

/* Scrim. Directional rather than a full-frame wash: the ink runs in from the
   left edge, behind the type, and clears completely by 72% across. The right
   half of every hero photograph is untouched — which is the point. Measured
   worst case with the type hidden, not estimated. */
.phero.has-photo .hero-photo::after {
  background:
    linear-gradient(101deg, rgba(8,13,11,.95) 0%,  rgba(8,13,11,.93) 30%,
                            rgba(8,13,11,.72) 48%, rgba(8,13,11,.30) 62%,
                            rgba(8,13,11,0)   74%),
    linear-gradient(to top,  rgba(8,13,11,.55) 0%, rgba(8,13,11,0) 30%),
    linear-gradient(to bottom, rgba(8,13,11,.45) 0%, rgba(8,13,11,0) 14%);
}
@media (max-width: 900px) {
  .phero.has-photo { min-height: min(78svh, 620px); }
  /* Stacked: the type spans the width, so the wash has to come from below. */
  .phero.has-photo .hero-photo::after {
    background: linear-gradient(to top, rgba(8,13,11,.96) 0%, rgba(8,13,11,.93) 32%,
                                        rgba(8,13,11,.66) 48%, rgba(8,13,11,0) 70%),
                linear-gradient(to bottom, rgba(8,13,11,.45) 0%, rgba(8,13,11,0) 14%);
  }
}

/* The band under the frame carries the standfirst and the figures — on solid
   ink, so legibility never depends on what the photograph happens to contain. */
.phero-meta { background: var(--c-ink); border-bottom: 1px solid var(--c-ink-3); }
.phero-meta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 68px); padding-block: clamp(30px, 3.4vw, 48px); align-items: start; }
@media (max-width: 940px) { .phero-meta .wrap { grid-template-columns: 1fr; } }
.phero-lede { font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.55; color: #C9D3CF; max-width: 56ch; }
.phero-lede em { font-style: normal; color: #F4F1E9; }
.phero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
@media (max-width: 620px) { .phero-stats { grid-template-columns: 1fr 1fr; row-gap: 22px; } }
.phero-meta b { display: block; font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 700;
  letter-spacing: -.04em; line-height: 1; color: #F4F1E9; font-variant-numeric: tabular-nums; }
.phero-meta span { display: block; margin-top: 8px; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: #90A099; line-height: 1.45; }

/* Entrance, same language as the homepage opening. */
.phero.has-photo .hero-photo img { animation: heroSettle var(--t-xl) var(--e-out) both; }
.phero-in > * { animation: heroRise 820ms var(--e-out) both; }
.phero-in > :nth-child(1) { animation-delay: 140ms; }
.phero-in > :nth-child(2) { animation-delay: 230ms; }
.phero-in > :nth-child(3) { animation-delay: 320ms; }


/* --- Service blocks: a hairline between them instead of alternating tints.
   Nine sections flipping between two backgrounds is the clearest possible
   signal that a page is made of modules. A rule does the same job silently. */
.sv { padding-block: var(--sec-m); border-top: 1px solid var(--line); }
.sv:first-of-type { border-top: 0; }


/* Card imagery uses the same wipe, driven by the card's own reveal so the
   picture resolves as the card arrives rather than after it. */
.icard-img, .icard-over > picture { clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-xl) var(--e-out); }
.rv.on .icard-img, .icard.on .icard-img,
.rv.on > picture, .icard-over.on > picture { clip-path: inset(0 0 0 0); }
.icard-img img, .icard-over > picture img { transform: scale(1.09);
  transition: transform 1.9s var(--e-out); }
.rv.on .icard-img img, .rv.on > picture img { transform: scale(1); }
/* Anything that never receives .on (no JS, reduced motion) must still show. */
.no-js .icard-img, .no-js .icard-over > picture { clip-path: none; }

/* Map card: it used to pop in via [hidden]. */
.map-tip { opacity: 0; transform: translate(-50%, -96%) scale(.97);
  transition: opacity var(--t-s) var(--e-out), transform var(--t-s) var(--e-out); }
.map-tip:not([hidden]) { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.map-tip.below { transform: translate(-50%, 4%) scale(.97); }
.map-tip.below:not([hidden]) { transform: translate(-50%, 0) scale(1); }
.pin-dot { transition: fill var(--t-s) var(--e-soft), r var(--t-s) var(--e-out); }

/* Ticker: slower, and faded at both ends so it reads as a band of information
   passing rather than a marquee starting and stopping at a hard edge. */
.ticker { --tick-dur: 78s;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
.ticker-tr { animation-duration: var(--tick-dur) !important; }
.ticker:hover .ticker-tr { animation-play-state: paused; }

/* A bordered box repeated nine times down a page is nine boxes. A rule and a
   label says the same thing and lets the page breathe. */
.verify { border-left: 2px solid var(--accent); padding: 2px 0 2px 18px; }
.verify span { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx-lo); }
.verify p { margin-top: 7px; font-weight: 500; color: var(--tx-hi); max-width: 52ch; }

/* ============================================================ LINE MASKS
   Headlines arrive a line at a time from behind their own baseline. The
   wrappers are created by JS after fonts settle; without JS the headline is
   simply a headline, which is why nothing here sets an initial hidden state
   on the element itself. */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln-i { display: block; will-change: transform; }
.has-lines .ln-i { transform: translateY(105%); }
.has-lines.lines-in .ln-i {
  transform: translateY(0);
  transition: transform var(--t-l) var(--e-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
@media (prefers-reduced-motion: reduce) {
  .has-lines .ln-i { transform: none !important; transition: none !important; }
}

/* ============================================================ STAGED LOAD
   State lives on <html>; JS only flips the flag. */
html.is-loading body { opacity: 0; }
html.is-ready body { opacity: 1; transition: opacity 420ms var(--e-soft); }
@media (prefers-reduced-motion: reduce) { html.is-loading body { opacity: 1; } }

/* ============================================================ STICKY HEROES
   The opening frame stays put and the page slides up over it, rather than the
   frame scrolling away — the defining move on htarchitecte.com.

   The catch: `position: sticky` on a direct child of <main> is bounded by
   <main>, so the frame stays pinned for the whole page. Everything after it
   therefore has to be opaque and in a higher stacking context, or the page
   scrolls *underneath* the hero instead of over it. `background: var(--bg)`
   resolves per scope, so .dark and .tint sections keep their own colour.
   ------------------------------------------------------------------------ */
#main > .ch-open:first-child,
#main > .phero.has-photo:first-child { position: sticky; top: 0; z-index: 0; }

/* :where() zeroes the specificity, so any section that declares its own
   background (the ink meta band, the ticker, the reel) keeps it. Without that
   this rule repaints them paper and their light text disappears. */
:where(#main > .ch-open:first-child ~ *),
:where(#main > .phero.has-photo:first-child ~ *) {
  position: relative; z-index: 1; background: var(--bg);
}
/* The seam where the page first covers the frame. */
#main > .ch-open:first-child + *,
#main > .phero.has-photo:first-child + * { box-shadow: 0 -34px 64px -30px rgba(0,0,0,.55); }

@supports not (position: sticky) {
  #main > .ch-open:first-child, #main > .phero.has-photo:first-child { position: relative; }
}
/* Sticky and a scroll-driven parallax on the same element fight each other. */
@supports (animation-timeline: view()) {
  .phero.has-photo .hero-photo img { animation: none; }
}

/* Smooth scrolling is JS-driven; the native behaviour would double up on it. */
html.has-smooth-scroll { scroll-behavior: auto; }

/* A headline that has been split into masked lines already has an entrance —
   it must not also ride the plate's staggered rise, or it plays twice. */
.ch-open .ch-plate > .has-lines,
.phero-in > .has-lines { animation: none; }

/* ============================================================ ABOUT — journey + mission */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline-y { font-family: var(--mono); font-size: .95rem; font-weight: 500; color: var(--accent); }
.timeline-t { font-size: 1.02rem; color: var(--tx-hi); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ============================================================ NEWS */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 9rem 1fr; gap: clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.news-date { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-lo); padding-top: 6px; }
.news-item h3 { margin: 8px 0 0; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.rslide-src { margin-top: 10px; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: rgba(244,241,233,.62); }
.rslide-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rslide-src a:hover { color: var(--c-paper); }
.reel2-track.is-dragging { cursor: grabbing; user-select: none; }
.reel2-track.is-dragging a { pointer-events: none; }
.ticker-tr { will-change: transform; }

/* ============================================================ ACCESSIBILITY PASS (V2) */
/* Footer bottom-row links: at least 24px tall to tap (WCAG 2.5.8). */
.ftr-btm a { display: inline-block; padding-block: 4px; }
/* Compliance timeline: two columns on wider screens, stacked on phones. */
.tl-row { grid-template-columns: 170px 1fr; }
@media (max-width: 560px) { .tl-row { grid-template-columns: 1fr; gap: 6px !important; } }
/* Minimum label size. Several mono labels rendered at 9.9–10.9px, which is
   hard to read on a phone; floor them at ~11.5px. */
.credit, .credit a, .rslide-src, .rslide-fig span, .ba-lab, .workstat span,
.spec thead th, .phero-stats span, .tile-k, .card-num, .eyebrow, .ch-n,
.reel2-tab i, .news-date, .menu-h, .ftr .ftr-h, .mnav-panel .ftr-h, .ftr-btm .mono,
.bar-t b, .verify span, .dg-haz, .icard-bd .mono { font-size: max(0.72rem, 11.5px) !important; }
/* Ticker pause control. */
.ticker { position: relative; }
.ticker.is-paused .ticker-tr { animation-play-state: paused !important; }
.ticker-pause { position: absolute; right: 8px; top: 50%; translate: 0 -50%; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--c-ink); border: 1px solid rgba(244,241,233,.3); color: #F4F1E9; }
.ticker-pause span { width: 10px; height: 11px; border-inline: 3px solid currentColor; }
.ticker.is-paused .ticker-pause span { width: 0; height: 0; border-inline: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; margin-left: 3px; }
.ticker-pause:hover { background: var(--signal); color: var(--c-ink); border-color: var(--signal); }
/* Open instantly for visibility (fade still runs), so a fast Tab after Enter always lands inside the menu. */
.has-menu[data-open="true"] .menu { transition-property: opacity, transform; }
/* Text links: a little vertical padding so they clear the 24px target minimum. */
.tlink { padding-block: 2px; }

/* ============================================================ BAND DEPTH
   Tinted and dark bands get a faint brand watermark (the logomark, used as
   a mask so it takes the band's accent colour), ripple rings and a soft glow,
   so moving between bands has some character rather than a flat colour step.
   overflow: clip (not hidden) so sticky columns inside still work. */
section.tint, section.sec.dark { position: relative; isolation: isolate; overflow: clip; }
section.tint > *, section.sec.dark > * { position: relative; z-index: 1; }
section.tint::before, section.sec.dark::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: clamp(320px, 42vw, 640px); aspect-ratio: 1; right: -9%; top: 50%;
  translate: 0 calc(-50% + var(--wm-shift, 0px));
  background: var(--green);
  -webkit-mask: url(../img/logomark.png) center / contain no-repeat;
          mask: url(../img/logomark.png) center / contain no-repeat;
  opacity: .055; rotate: var(--wm-rot, 0deg);
}
section.tint::after, section.sec.dark::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 96% 50%, transparent 0 46px, rgba(0,112,55,.07) 46px 47px),
    radial-gradient(60% 80% at 96% 50%, rgba(0,112,55,.10), transparent 70%),
    linear-gradient(to bottom, rgba(10,16,14,.05), transparent 56px);
  -webkit-mask: radial-gradient(70% 90% at 96% 50%, #000 30%, transparent 75%);
          mask: radial-gradient(70% 90% at 96% 50%, #000 30%, transparent 75%);
}
section.tint:nth-of-type(even)::before, section.sec.dark:nth-of-type(even)::before { right: auto; left: -9%; }
section.tint:nth-of-type(even)::after, section.sec.dark:nth-of-type(even)::after {
  background:
    repeating-radial-gradient(circle at 4% 50%, transparent 0 46px, rgba(0,112,55,.07) 46px 47px),
    radial-gradient(60% 80% at 4% 50%, rgba(0,112,55,.10), transparent 70%),
    linear-gradient(to bottom, rgba(10,16,14,.05), transparent 56px);
  -webkit-mask: radial-gradient(70% 90% at 4% 50%, #000 30%, transparent 75%);
          mask: radial-gradient(70% 90% at 4% 50%, #000 30%, transparent 75%);
}
section.sec.dark::before { content: none; } /* no logo watermark on dark bands — rings and glow only */
section.sec.dark::after {
  background:
    repeating-radial-gradient(circle at 96% 50%, transparent 0 46px, rgba(196,240,75,.06) 46px 47px),
    radial-gradient(60% 80% at 96% 50%, rgba(196,240,75,.08), transparent 70%);
}
section.sec.dark:nth-of-type(even)::after {
  background:
    repeating-radial-gradient(circle at 4% 50%, transparent 0 46px, rgba(196,240,75,.06) 46px 47px),
    radial-gradient(60% 80% at 4% 50%, rgba(196,240,75,.08), transparent 70%);
}
section.sec-sm.tint::before { width: clamp(200px, 24vw, 360px); }
@media (max-width: 700px) {
  section.tint::before, section.sec.dark::before { width: 280px; right: -40%; opacity: .045; }
  section.tint:nth-of-type(even)::before, section.sec.dark:nth-of-type(even)::before { left: -40%; }
}
@media print { section.tint::before, section.tint::after, section.sec.dark::before, section.sec.dark::after { display: none; } }

/* ============================================================ SCROLL MOTION
   site.js tags headings, copy, cards and list rows as .ar. They rise and
   un-blur into view, and fade back out as they leave — in both directions.
   Without JS nothing is tagged, so nothing is hidden. */
.ar {
  opacity: 0; transform: translateY(26px); filter: blur(5px);
  transition: opacity .8s var(--e-out), transform .9s var(--e-out), filter .8s var(--e-out);
  transition-delay: calc(var(--ai, 0) * 70ms);
}
.ar.ar-in { opacity: 1; transform: none; filter: none; }
.ar.ar-past { opacity: 0; transform: translateY(-18px); filter: blur(3px); transition-delay: 0ms; }
h2.ar:not(.ar-in):not(.ar-past), .d1.ar:not(.ar-in):not(.ar-past), .d2.ar:not(.ar-in):not(.ar-past) { transform: translateY(34px); }
.card.ar:not(.ar-in):not(.ar-past), .tile.ar:not(.ar-in):not(.ar-past), .icard-over.ar:not(.ar-in):not(.ar-past), .door.ar:not(.ar-in):not(.ar-past) { transform: translateY(30px) scale(.985); }
.btn.ar.ar-in:hover { transform: translateY(-2px); }
a.card.ar.ar-in:hover, .card-hov.ar.ar-in:hover { transform: translateY(-3px); }
.ar.ar-in { transition-property: opacity, transform, filter; }
.ar.ar-in:hover { transition-delay: 0ms; transition-duration: .25s; }
@media (prefers-reduced-motion: reduce) { .ar, .ar.ar-past { opacity: 1 !important; transform: none !important; filter: none !important; } }
@media print { .ar { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* ============================================================ PAGE TRANSITIONS
   A thin progress bar runs while a page loads and when you leave one; the page
   fades out on internal navigation and back in on arrival. */
.pg-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300; pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--signal)); transform-origin: 0 50%; transform: scaleX(0); }
html.is-loading .pg-bar { animation: pgLoad 1.2s var(--e-out) forwards; }
html.is-ready .pg-bar { transform: scaleX(1); opacity: 0; transition: opacity .5s .15s, transform .3s; }
html.is-nav .pg-bar { opacity: 1; transition: none; animation: pgLoad .6s var(--e-out) forwards; }
html.is-leaving body { opacity: 0; transform: translateY(-8px); transition: opacity .28s ease, transform .28s ease; }
@keyframes pgLoad { from { transform: scaleX(0); } to { transform: scaleX(.85); } }
@media (prefers-reduced-motion: reduce) { html.is-leaving body { transform: none; } .pg-bar { display: none; } }

/* ============================================================ CLIENT LOGOS
   Files in assets/img/clients/, list in src/data-clients.js. Shown greyscale
   and evened out; full colour on hover. .cl-marquee scrolls (homepage),
   .cl-grid is the full wall (Our work). */
.cl-cell { min-width: 0; display: flex; align-items: center; justify-content: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 2 / 1; padding: 16px 20px; }
.cl-cell img { max-width: 100%; max-height: 46px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .3s, opacity .3s; }
.cl-cell img.cl-tall { max-height: 60px; }
.cl-cell:hover img { filter: none; opacity: 1; }
.cl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); }
@media (max-width: 1000px) { .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-marquee { display: grid; gap: 14px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cl-row { display: flex; gap: 14px; width: max-content; animation: clScroll var(--cl-dur, 70s) linear infinite; }
.cl-row.rev { animation-direction: reverse; }
.cl-row .cl-cell { width: 188px; flex: none; }
.cl-marquee:hover .cl-row { animation-play-state: paused; }
@keyframes clScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cl-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cl-row [aria-hidden="true"] { display: none; }
}

/* Client industry filter (Our work) */
.cl-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-filter button { font: inherit; font-size: .84rem; font-weight: 500; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface, #fff); color: var(--tx-hi); transition: background .2s, color .2s, border-color .2s; }
.cl-filter button i { font-style: normal; font-family: var(--mono); font-size: .7rem; opacity: .6; margin-left: 4px; }
.cl-filter button:hover { border-color: var(--accent); }
.cl-filter button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.cl-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-count { margin-top: 14px; }
.cl-grid .cl-cell { transition: opacity .35s var(--e-out), transform .35s var(--e-out); }
.cl-grid .cl-cell.cl-out { opacity: 0; transform: scale(.96); }
.cl-grid .cl-cell[hidden] { display: none; }
@media (max-width: 600px) { .cl-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .cl-filter button { flex: none; } }

@media (max-width: 600px) { .cl-cell { padding: 12px 14px; } .cl-cell img, .cl-cell img.cl-tall { max-height: 40px; } }

/* Footer separation: a slightly deeper tone than the dark bands above, a thin
   hairline and a faint lime glint along the top edge. */
.ftr { background: #050807; border-top: 1px solid rgba(244,241,233,.12); position: relative; }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(196,240,75,.55) 50%, transparent); }

/* Footer office cards: city first, role label, address block, then contact
   lines in the same order for every office, divided by a hairline. */
.ftr-office { padding-block: 0 18px; }
.ftr-office + .ftr-office { padding-top: 18px; border-top: 1px solid rgba(244,241,233,.1); }
.ftr-city { font-size: 1rem; font-weight: 600; color: #F4F1E9; letter-spacing: -.01em; display: flex; flex-direction: column; gap: 3px; }
.ftr-city span { font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.ftr address { font-style: normal; font-size: .84rem; line-height: 1.6; color: var(--tx-lo); margin-top: 10px; }
.ftr ul.ftr-reach { margin-top: 10px; gap: 2px; }
.ftr ul.ftr-reach a { display: inline-flex; align-items: center; gap: 9px; padding-block: 3px; font-size: .86rem; }
.ftr ul.ftr-reach svg { flex: none; opacity: .6; transition: opacity .18s; }
.ftr ul.ftr-reach a:hover svg { opacity: 1; }

/* ============================================================ BRAND GRADIENT
   The logo-green → lime gradient used on the hero figures ("450+", "Dubai"),
   applied to every lime highlight that used to be a flat colour: headline
   accents, primary buttons, story figures and labels, plate bars and the
   active story tab. */
:root {
  --grad: linear-gradient(96deg, var(--brand) 4%, var(--signal) 88%);
  --grad-btn: linear-gradient(100deg, var(--brand) 0%, #74d64a 48%, var(--signal) 100%);
  --grad-v: linear-gradient(180deg, var(--signal) 0%, var(--brand) 100%);
}
/* text accents */
.ch h1 em, .ch h2 em, .rslide h2 em, .commit h2 em, .rslide-fig b, .ch-n {
  background-image: var(--grad); background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ch-n { display: inline-block; }
/* split headline words share one gradient: site.js sets each piece's slice */
.ch h1 em, .ch h2 em, .rslide h2 em { background-size: var(--gw, 100%) 100%; background-position: var(--gx, 0px) 0; background-repeat: no-repeat; }
/* primary buttons */
.btn-signal { background-image: var(--grad-btn); background-size: 170% 100%; background-position: 0 50%;
  border-color: transparent; transition: transform .22s var(--ease), background-position .5s var(--ease), box-shadow .3s var(--ease); }
.btn-signal:hover { background-position: 100% 50%; box-shadow: 0 10px 26px -12px rgba(0,166,81,.55); }
/* bar down the left of each text plate */
.ch-plate { border-left-color: transparent; }
.ch-plate::before { content: ""; position: absolute; top: 0; bottom: 0; left: -3px; width: 3px; pointer-events: none;
  border-radius: var(--r-lg) 0 0 var(--r-lg); background: var(--grad-v); }
/* story tabs and progress */
.reel2-tab[aria-current="true"] { background-image: var(--grad-btn); border-color: transparent; }
.reel2-b:hover:not(:disabled) { background-image: var(--grad-btn); border-color: transparent; }
.reel2-bar i { background-image: var(--grad); }
.pg-bar { background: var(--grad); }

/* Four "doors": title, description and link share rows across the cards
   (CSS subgrid), so every title, paragraph and link starts on the same line
   however long the title is. Flex fallback pins the link to the bottom. */
.door { display: flex; flex-direction: column; }
.door .go { margin-top: auto; padding-top: 18px; }
.door p { margin-bottom: 0; }
@supports (grid-template-rows: subgrid) {
  .doors { grid-auto-rows: auto; row-gap: 0; }
  .door { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .door h3 { align-self: start; margin-bottom: 10px; }
  .door p { align-self: start; }
  .door .go { align-self: end; margin-top: 0; }
}
.door::after { background: var(--grad); }

/* Contact page office cards — same order as the footer: city, role, address,
   then one contact method per line with an icon. Light-band version. */
.office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); max-width: 920px; }
@media (max-width: 680px) { .office-grid { grid-template-columns: 1fr; } }
.office-card { background: var(--c-paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; }
.office-city { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--tx-hi); display: flex; flex-direction: column; gap: 6px; }
.office-city span { font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.office-card address { font-style: normal; font-size: .95rem; line-height: 1.6; color: var(--tx); margin-top: 16px; }
.office-reach { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.office-reach a { display: inline-flex; align-items: center; gap: 10px; padding-block: 4px; font-size: .92rem; font-weight: 500; color: var(--tx-hi); transition: color .18s; }
.office-reach a:hover { color: var(--accent); }
.office-reach svg { flex: none; color: var(--accent); }

/* ============================================================ V4 PALETTE
   Matches the main Earth Recycler site (earthrecycler.com): logo green → teal →
   royal blue instead of green → lime. Rectangular buttons with white text, gradient
   figures and accents, and dark bands lit by a green glow top-left and a blue
   glow bottom-right. Everything above stays as V3; these rules override it. */
:root {
  --g-green: #16B36A;  --g-teal: #1A93A6;  --g-blue: #2F52E8;
  --signal: #2BD08A;            /* solid accent on dark: bright brand green */
  --signal-dim: #1C8E5E;
  --grad: linear-gradient(96deg, #12B064 0%, #1A93A6 52%, #3A5CF2 100%);
  --grad-btn: linear-gradient(100deg, #3FA662 0%, #2C7FA4 52%, #2442CC 100%);
  --grad-v: linear-gradient(180deg, #16B36A 0%, #2442CC 100%);
}
::selection { background: #2F52E8; color: #fff; }

/* Buttons keep V3's rectangular shape; primary = green→blue with white text */
.btn-signal { --fg-b: #fff; color: #fff; }
.btn-signal:hover { box-shadow: 0 12px 30px -12px rgba(36,66,204,.6); }

/* Interactive pieces that sat on solid lime */
.reel2-tab[aria-current="true"], .reel2-b:hover:not(:disabled), .ticker-pause:hover { color: #fff; }
.ba-bar { background: var(--grad-v); }
.ba-bar::after { background: var(--grad-btn); }
.ba-bar i { color: #fff; }
.chain-step.on .chain-dot { background: var(--g-green); border-color: var(--g-green); box-shadow: 0 0 0 7px rgba(22,179,106,.16); }

/* Eyebrows on dark bands read as gradient labels, like "OUR IMPACT" */
.dark .eyebrow, .sec.dark .eyebrow, .duo-tx .eyebrow {
  background-image: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; display: inline-block; }

/* Dark bands: green glow top-left, blue glow bottom-right (replaces the rings) */
section.sec.dark::after, section.sec.dark:nth-of-type(even)::after {
  background:
    radial-gradient(55% 75% at 0% 0%, rgba(22,179,106,.24), transparent 62%),
    radial-gradient(50% 70% at 100% 100%, rgba(36,66,204,.30), transparent 62%) !important;
  -webkit-mask: none !important; mask: none !important; }
.ch-plate { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

/* Light bands keep the logo watermark; tint the rings and glow towards blue */
section.tint::after {
  background:
    repeating-radial-gradient(circle at 96% 50%, transparent 0 46px, rgba(36,66,204,.06) 46px 47px),
    radial-gradient(60% 80% at 96% 50%, rgba(22,179,106,.10), transparent 70%),
    linear-gradient(to bottom, rgba(10,16,14,.05), transparent 56px); }
section.tint:nth-of-type(even)::after {
  background:
    repeating-radial-gradient(circle at 4% 50%, transparent 0 46px, rgba(36,66,204,.06) 46px 47px),
    radial-gradient(60% 80% at 4% 50%, rgba(22,179,106,.10), transparent 70%),
    linear-gradient(to bottom, rgba(10,16,14,.05), transparent 56px); }

/* Footer edge glint and filter pills follow the new palette */
.ftr::before { background: linear-gradient(90deg, transparent, rgba(22,179,106,.6) 35%, rgba(47,82,232,.6) 65%, transparent); }
.cl-filter button[aria-pressed="true"] { background: var(--grad-btn); border-color: transparent; color: #fff; }
.ch-figure .v, .gnum { background-image: var(--grad); }
.btn-signal { background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }

/* Story chapter tabs: rectangular (same radius as buttons), even padding and
   gaps, a faint outline on every tab so spacing reads evenly; the active tab
   is filled edge to edge. */
.reel2-tabs { gap: 8px; }
.reel2-tab { border-radius: var(--r); padding: 10px 16px; gap: 10px; line-height: 1;
  border: 1px solid rgba(244,241,233,.12); background-repeat: no-repeat; background-origin: border-box; }
.reel2-tab i { font-size: .66rem; letter-spacing: .06em; }
.reel2-tab:hover { border-color: rgba(244,241,233,.28); }
.reel2-tab[aria-current="true"] { border-color: transparent; background-size: 100% 100%; }

/* Buttons and text links never animate with scroll (no blur / fade on exit),
   so they stay steady and keep their hover lift. */
.btn.ar, .tlink.ar { opacity: 1 !important; transform: none !important; filter: none !important; }
.btn:hover { transform: translateY(-2px); }
