/* =====================================================================
   Ported 1:1 from the design board (board.css):
     · .bk scoping wrapper removed
     · [data-mode] dark  -> html[data-theme="dark"]
     · [data-bp="mobile"] -> @media (max-width:700px)
   Plus production chrome: loader, custom cursor, animation states.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1 · RESET
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

/* Lenis smooth-scroll baseline */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------------------------------------------------------------------
   2 · DESIGN TOKENS  (light default + desktop type scale)
   --------------------------------------------------------------------- */
:root {
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* colour — light "material" palette (default) */
  --bg:   #f2eee6;   /* Paper */
  --surface: #e6dfd2; /* Travertine */
  --ink:  #17150f;   /* Ink Charcoal */
  --d1:   #4a4844;   /* Graphite — body/secondary */
  --d2:   #78726a;
  --d3:   #a7a29a;   /* Concrete */
  --terra: #1d3fd8;  /* accent — royal blue (BKI) */
  --blue: #1d3fd8;
  --blue-deep: #132ca3;
  --line:   rgba(23, 21, 15, .15);
  --line-2: rgba(23, 21, 15, .08);

  /* margin grid + type scale — desktop */
  --m: 88px;
  --hero: 48px;
  --display: 40px;
  --h2: 28px;
  --row: 26px;
  --body: 16px;

  color-scheme: light;
}

/* colour — dark (straight token inversion) */
html[data-theme="dark"] {
  --bg:   #0e0e0d;   /* Onyx */
  --surface: #17150f;
  --ink:  #f2eee6;   /* Paper */
  --d1:   #b8b2a6;
  --d2:   #a7a29a;
  --d3:   #78726a;
  --terra: #5b78f0;  /* royal blue on dark (legibility) */
  --blue: #5b78f0;
  --blue-deep: #1d3fd8;
  --line:   rgba(242, 238, 230, .14);
  --line-2: rgba(242, 238, 230, .08);

  color-scheme: dark;
}

/* Tablet: collapse nav to mobile pattern around 860px (handled in masthead) */
/* Mobile margin + type scale */
@media (max-width: 700px) {
  :root {
    --m: 24px;
    --hero: 28px;
    --display: 25px;
    --h2: 22px;
    --row: 20px;
    --body: 15px;
  }
}

/* ---------------------------------------------------------------------
   3 · BASE
   --------------------------------------------------------------------- */
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

/* ---- Typography primitives (from board.css) ------------------------ */
.mono {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra);
}
.mono-s {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--d2);
}
@media (max-width: 700px) {
  .mono { font-size: 10px; letter-spacing: .1em; }
}

.num {
  font-family: var(--mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.it { font-style: italic; }

/* ---- Shared frame: outer margin grid ------------------------------- */
.frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--m);
}
.rule   { height: 0; border: 0; border-top: 1px solid var(--line); }
.rule-2 { height: 0; border: 0; border-top: 1px solid var(--line-2); }

/* =====================================================================
   4 · LOADER  —  luxury full-screen intro
   ===================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 var(--m);
  will-change: transform;
}
.loader__inner {
  width: 100%;
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.loader__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.loader__name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.18;            /* room for descenders inside the overflow mask */
  font-size: clamp(30px, 5vw, 58px);
  overflow: hidden;
  padding-bottom: .04em;
  text-transform: uppercase;
}
.loader__name .ln {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.loader__name .it { font-style: italic; }
.loader__bar {
  position: relative;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0 100% 0 0;          /* scaled via transform from JS */
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--ink);
  width: 100%;
}
.loader__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.loader__pct { font-variant-numeric: tabular-nums; }

/* Lock scroll while loader is up */
html.is-loading,
html.is-loading body { overflow: hidden; height: 100%; }

/* =====================================================================
   5 · CUSTOM CURSOR  (pointer devices only)
   ===================================================================== */
.cursor,
.cursor-dot { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor,
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    mix-blend-mode: difference;
  }
  /* outer ring */
  .cursor {
    display: block;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid #fff;            /* difference blend -> adapts to bg */
    transition: width .3s ease, height .3s ease, margin .3s ease,
                background .3s ease, opacity .3s ease;
    will-change: transform;
  }
  /* inner dot */
  .cursor-dot {
    display: block;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: #fff;
    will-change: transform;
  }
  /* magnetic / interactive hover */
  .cursor.is-hover {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: rgba(255, 255, 255, .12);
  }
  .cursor.is-hidden { opacity: 0; }

  /* hide native cursor on interactive bits so ours leads */
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor .magnetic { cursor: none; }
}

/* =====================================================================
   6 · MASTHEAD  (sticky, shared chrome)
   ===================================================================== */
.mast {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 0 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.mast__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mast__mark { width: 18px; height: 18px; flex: none; display: block; }
.mast__wordmark {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
::selection { background: var(--terra); color: #f2eee6; }
::-moz-selection { background: var(--terra); color: #f2eee6; }
.mast__nav {
  display: flex;
  gap: 26px;
  justify-self: center;
}
.mast__nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--d1);
  text-decoration: none;
  transition: color .3s ease;
}
.mast__nav a.on,
.mast__nav a:hover { color: var(--ink); }
.mast__meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* theme toggle */
.toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  background: none;
  padding: 0;
  cursor: pointer;
}
.toggle span {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--d2);
  transition: background .3s ease, color .3s ease;
}
.toggle span svg { width: 12px; height: 12px; }
html:not([data-theme="dark"]) .toggle .s-l { background: var(--ink); color: var(--bg); }
html[data-theme="dark"]      .toggle .s-d { background: var(--ink); color: var(--bg); }

/* hamburger (mobile) */
.burger {
  display: none;
  align-items: center;
  gap: 11px;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.burger__label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: currentColor; transition: color .35s ease; }
.burger__label::before { content: "Menu"; }
body.nav-open .burger__label::before { content: "Close"; }
.burger__lines { display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 26px; height: 16px; }
.burger__lines span { display: block; height: 1.4px; width: 100%; background: currentColor;
  transition: transform .35s ease, opacity .35s ease; }
body.nav-open .burger__lines span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
body.nav-open .burger__lines span:nth-child(2) { opacity: 0; }
body.nav-open .burger__lines span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

@media (max-width: 860px) {
  .mast { grid-template-columns: 1fr auto; }
  .mast__nav { display: none; }
  .burger { display: flex; }
  /* over the dark overlay, the masthead turns transparent + light */
  body.nav-open .mast {
    background: transparent; border-bottom-color: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  body.nav-open .mast__brand .wm__l,
  body.nav-open .mast__brand .wm__it { color: #f4f5f8; }
  body.nav-open .burger { color: #f4f5f8; }
  body.nav-open .toggle,
  body.nav-open .mast__portal { opacity: 0; pointer-events: none; }
}
/* keep the meta from crowding the brand on small screens */
@media (max-width: 560px) {
  .mast__meta { gap: 16px; }
  .mast__meta > .mono-s { display: none; }   /* hide "Cairo, EG" — it's in the kicker */
}

/* =====================================================================
   Mobile nav — cinematic overlay (curtain wipe + masked type reveal)
   ===================================================================== */
.navmenu {
  position: fixed; inset: 0; z-index: 85;   /* below sticky mast (90) so Close stays tappable */
  background: #08080b; color: #f4f5f8;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 104px) var(--m) calc(env(safe-area-inset-bottom) + 36px);
  opacity: 0; visibility: hidden; pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s cubic-bezier(.76,0,.24,1), opacity .3s ease, visibility .6s;
}
.navmenu::before {   /* blue glow — echoes the hero tower */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(72% 48% at 80% 20%, rgba(94,124,255,.20), transparent 64%);
}
body.nav-open { overflow: hidden; }
body.nav-open .navmenu { opacity: 1; visibility: visible; pointer-events: auto; clip-path: inset(0 0 0% 0); }

.navmenu__list { position: relative; display: flex; flex-direction: column; }
.navmenu__row {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 0 16px; padding: clamp(11px,2.5vw,17px) 0;
  border-top: 1px solid rgba(244,245,248,.13);
  text-decoration: none; color: #f4f5f8;
  opacity: 0; transition: opacity .5s ease; transition-delay: var(--d);
}
.navmenu__list .navmenu__row:last-child { border-bottom: 1px solid rgba(244,245,248,.13); }
body.nav-open .navmenu__row { opacity: 1; }
.navmenu__i { color: #6f8cff; font-size: 12px; align-self: center; }
.navmenu__t { overflow: hidden; display: block; }
.navmenu__t > span {
  display: inline-block; font-family: var(--serif); font-optical-sizing: auto; font-weight: 300;
  font-size: clamp(38px,12.5vw,66px); line-height: 1.02; letter-spacing: -.02em;
  transform: translateY(116%);
  transition: transform .8s cubic-bezier(.19,1,.22,1); transition-delay: var(--d);
}
body.nav-open .navmenu__t > span { transform: translateY(0); }
.navmenu__x { justify-self: end; align-self: center; color: rgba(244,245,248,.46); font-size: 10px; }
.navmenu__row:active .navmenu__t > span,
.navmenu__row:hover  .navmenu__t > span { color: #9fb2ff; }

.navmenu__foot {
  position: relative; margin-top: clamp(28px,6vw,48px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d);
}
body.nav-open .navmenu__foot { opacity: 1; transform: none; }
.navmenu__portal {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(21px,5.5vw,27px); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.navmenu__portal .navmenu__arw { color: #6f8cff; font-style: normal; }
.navmenu__loc { color: rgba(244,245,248,.46); }

/* =====================================================================
   7 · FOOTER strip
   ===================================================================== */
.foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.foot .c { justify-self: center; }
.foot .r { justify-self: end; }
/* 69MNKYS handoff — muted line spanning the full footer width */
.foot-mnkys {
  grid-column: 1 / -1; justify-self: center; margin-top: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--d3); text-decoration: none; transition: color .3s ease; white-space: nowrap;
}
.foot-mnkys:hover { color: var(--d1); }
@media (max-width: 700px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .c { display: none; }
  .foot-mnkys { font-size: 9px; letter-spacing: .08em; }
}

/* discreet 69MNKYS note under the contact form */
.contact-mnkys { margin-top: 24px; font-size: 13px; line-height: 1.65; color: var(--d2); max-width: 48ch; }
.contact-mnkys a { color: var(--d1); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: color .3s ease; }
.contact-mnkys a:hover { color: var(--ink); }

/* =====================================================================
   LANGUAGE TOGGLE + ARABIC / RTL
   ===================================================================== */
.lang-toggle {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--d1); background: none; border: 0; cursor: pointer; padding: 0;
  transition: color .3s ease; white-space: nowrap;
}
.lang-toggle:hover { color: var(--ink); }

/* availability scarcity signal (understated, in the masthead) */
.availability {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--d1); white-space: nowrap;
}
.availability i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
@media (max-width: 980px) { .availability { display: none; } }

body.ar {
  --sans: 'IBM Plex Sans Arabic', 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Sans Arabic', 'IBM Plex Mono', ui-monospace, monospace;
}
/* Arabic does not use Latin letter-spacing or italics */
body.ar .mono, body.ar .mono-s, body.ar .lang-toggle,
body.ar .mast__brand, body.ar .mast__nav a, body.ar .mast__portal { letter-spacing: .03em; }
body.ar h1, body.ar h2, body.ar h3,
body.ar .home__statement, body.ar .shead h1, body.ar .contact__big,
body.ar .case__name, body.ar .bcase__title, body.ar .work-group__title,
body.ar .login h1 { letter-spacing: 0; }
body.ar .it { font-style: normal; }
/* flip the inline directional arrows in RTL */
body.ar .go, body.ar .toc__row .x ~ .go { display: inline-block; transform: scaleX(-1); }

/* =====================================================================
   8 · HOME — contents-page hero + horizontal index
   ===================================================================== */
.home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  padding: 40px 0 0;
}
.home__kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 24px;
  flex-wrap: wrap;   /* stop the two labels colliding on narrow screens */
}
.home__statement {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.07;
  font-size: var(--hero);
  max-width: 28ch;
  margin: auto 0;
  padding: 48px 0;
}
.home__statement .it { font-style: italic; }

/* hero lead — statement full width; clients in a framed marquee plate below */
.home__lead { margin: auto 0; }
.home__lead .home__statement { margin: 0; }

/* Selected-clients — curtain-wipe cycler (one name at a time, Terra wipe) */
.clients { margin-top: clamp(40px, 5vw, 62px); }
.clients__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: clamp(8px, 1.4vw, 16px);
}
.clients__cap { color: var(--terra); }
.clients__idx { color: var(--d2); }
.clients__stage { position: relative; overflow: hidden; height: clamp(72px, 9vw, 108px); }
.clients__logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: clamp(28px, 3.4vw, 40px); width: auto; max-width: 78%; object-fit: contain;
  filter: brightness(0); opacity: .82; z-index: 1;
}
.clients__logo[src*=".svg"] { height: clamp(46px, 5.4vw, 64px); }
html[data-theme="dark"] .clients__logo { filter: brightness(0) invert(1); }
.clients__wipe {
  position: absolute; inset: 0; background: var(--terra);
  transform: scaleX(0); transform-origin: left center; z-index: 2;
}
@media (prefers-reduced-motion: reduce) { .clients__wipe { display: none; } }

.home__metarow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
}
.home__metarow > div { text-align: center; }   /* centered grid cells */
.home__metarow .k { display: block; margin-bottom: 11px; }
.home__metarow .v { font-size: 15px; color: var(--ink); }

/* horizontal index strip */
.toc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.toc__row {
  display: flex;
  flex-direction: column;
  align-items: center;            /* centered grid cell */
  justify-content: center;        /* balanced now that the index number is gone */
  text-align: center;
  padding: 26px 20px 30px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  min-height: 150px;
  transition: background .35s ease;
}
.toc__row:last-child { border-right: 0; }
.toc__row .n { font-family: var(--mono); font-size: 11px; color: var(--d2); margin-bottom: auto; }
.toc__row .t {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 31px;
  letter-spacing: -.006em;
  color: var(--ink);
  line-height: 1.04;
  margin-bottom: 12px;
}
.toc__row .x {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--d2);
}
.toc__row:hover .n { color: var(--ink); }

@media (max-width: 700px) {
  /* clamp so the longest word never clips the right margin on small phones */
  .home__statement { max-width: none; padding: 36px 0; font-size: clamp(23px, 6.6vw, var(--hero)); line-height: 1.16; }
  .home__metarow {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
  }
  .home__metarow::-webkit-scrollbar { display: none; }   /* WebKit */
  .home__metarow > div {
    flex: 0 0 auto;
    min-width: 46%;
    scroll-snap-align: start;
    padding-right: 20px;
  }
  .toc { grid-template-columns: 1fr; }
  .toc__row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;            /* row layout reads left-to-right on mobile */
    gap: 18px;
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .toc__row .n { margin-bottom: 0; }
  .toc__row .t { font-size: 28px; flex: 1; margin-bottom: 0; }
}

/* =====================================================================
   8b · LOGOS / PRACTICE-AREAS MARQUEE (home)
   ===================================================================== */
.marquee {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  margin-top: 30px;
}
.marquee__cap {
  flex: none;
  color: var(--d2);
}
.marquee__viewport {
  position: relative;
  flex: 1;
  min-width: 0;                 /* allow the flex item to clip its overflow */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: bk-marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  flex: 0 0 auto;               /* never shrink/wrap — keep both groups in one row */
  flex-wrap: nowrap;
  align-items: center;
}
.marquee__item {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 26px;
}
.marquee__sep {
  font-size: 11px;
  color: var(--d3);
  transform: translateY(-2px);
}
@keyframes bk-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .marquee { gap: 16px; padding: 18px 0; margin-top: 22px; }
  .marquee__item { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =====================================================================
   9 · SECTION HEAD (interior sections)
   ===================================================================== */
.shead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 96px 0 0;
}
.shead__id {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 38px;
}
.shead h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: var(--display);
  letter-spacing: -.01em;
  line-height: 1.07;
  max-width: 18ch;
}
.shead h1 .it { font-style: italic; }
/* balance heading lines so a single word never sits alone on its own line */
.home__statement, .shead h1, .contact__big, .case__name, .case__lede,
.case__quote blockquote, .work-group__title, .bcase__title, .toc__row .t {
  text-wrap: balance;
}
.shead__lede {
  margin-top: 30px;
  max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--d1);
}
.scluster { padding: 44px 0 96px; }
@media (max-width: 700px) {
  .shead { grid-template-columns: 1fr; gap: 0; padding: 48px 0 0; }   /* stack heading + lede on mobile */
  .shead__id { margin-bottom: 18px; }
  .shead h1 { line-height: 1.08; max-width: none; }
  .shead__lede { margin-top: 20px; font-size: 16px; max-width: none; }
  .scluster { padding: 34px 0 64px; }
}

/* =====================================================================
   10 · WORK — index table
   ===================================================================== */
/* work bar — filter chips + summary count */
.work-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 6px 0 22px; }
.work-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.work-filters span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--d1); border: 1px solid var(--line-2); padding: 8px 13px; white-space: nowrap; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.work-filters span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work-count { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--d2); white-space: nowrap; }

/* index table — real-estate projects */
.idx { border-top: 1px solid var(--ink); }
.idx__cols { grid-template-columns: 50px 1.8fr .7fr 1fr 60px 28px; }
.idx__h { display: grid; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.idx__h span { justify-self: start; }
.idx__row {
  display: grid; gap: 24px; align-items: center; padding: 30px 0;
  border-bottom: 1px solid var(--line); position: relative; text-decoration: none;
  transition: padding .4s ease, background .4s ease, color .4s ease;
}
.idx__row .n { font-family: var(--mono); font-size: 12px; color: var(--d2); }
.idx__row .pj { display: flex; flex-direction: column; gap: 6px; }
.idx__row .t { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: var(--row); letter-spacing: -.004em; color: var(--ink); line-height: 1.04; }
.idx__row .cap { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--d2); }
.idx__row .disc { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--d1); text-transform: uppercase; }
.idx__row .yr { font-family: var(--mono); font-size: 12px; color: var(--d1); }
.idx__row .loc { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--d1); text-transform: uppercase; }
.idx__row .go { font-family: var(--mono); font-size: 14px; color: var(--d2); justify-self: end; transition: transform .4s ease; }
/* full-row invert on hover */
.idx__row:hover { padding-left: 16px; padding-right: 16px; background: var(--ink); }
.idx__row:hover .n, .idx__row:hover .t, .idx__row:hover .cap,
.idx__row:hover .disc, .idx__row:hover .loc, .idx__row:hover .yr, .idx__row:hover .go { color: var(--bg); }
.idx__row:hover .go { transform: translateX(4px); }
.idx__row.is-hidden { display: none; }   /* filtered out by the chips */

@media (max-width: 700px) {
  .work-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .idx__h { display: none; }
  .idx__row { grid-template-columns: 1fr auto !important; gap: 8px 14px; padding: 24px 0; }
  .idx__row .n { order: 1; }
  .idx__row .go { order: 2; justify-self: end; }
  .idx__row .pj { order: 3; grid-column: 1 / -1; }
  .idx__row .disc { order: 4; }
  .idx__row .loc { order: 5; }
  .idx__row .yr { order: 6; justify-self: end; }
}

/* =====================================================================
   11 · ABOUT
   ===================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 8px;
}
.about__lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.28;
  letter-spacing: -.018em;
  color: var(--ink);
}
.about__body p { font-size: 16px; line-height: 1.74; color: var(--d1); margin-bottom: 1.2em; }
.about__body p:last-child { margin-bottom: 0; }

.principles { border-top: 1px solid var(--ink); margin-top: 64px; }
.principles .p {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.principles .p .n { font-family: var(--mono); font-size: 12px; color: var(--d2); }
.principles .p h3 { font-family: var(--sans); font-weight: 300; font-size: 22px; letter-spacing: -.015em; margin-bottom: 8px; }
.principles .p p  { font-size: 14px; color: var(--d1); line-height: 1.6; }

@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .principles { margin-top: 44px; }
}

/* =====================================================================
   12 · SERVICES
   ===================================================================== */
.srv { border-top: 1px solid var(--ink); }
.srv__row {
  display: grid;
  grid-template-columns: 54px 1.2fr 1.4fr;
  gap: 30px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.srv__row .n  { font-family: var(--mono); font-size: 12px; color: var(--d2); }
.srv__row h3  { font-family: var(--sans); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; }
.srv__row .d  { font-size: 15px; line-height: 1.66; color: var(--d1); }
.srv__row .cap { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.srv__row .cap span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--d2); }
.srv__foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 26px; }

/* =====================================================================
   PRICING CALCULATOR
   ===================================================================== */
.calc { display: grid; grid-template-columns: 1fr 380px; gap: 64px; border-top: 1px solid var(--ink); padding-top: 44px; align-items: start; }
.calc__group { border: 0; padding: 0 0 38px; }
.calc__group legend { display: block; margin-bottom: 20px; color: var(--d2); }
.calc__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__opts--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__opts--stack { flex-direction: column; }
.calc__opt {
  font-family: var(--sans); font-size: 14px; letter-spacing: -.01em; color: var(--d1);
  background: transparent; border: 1px solid var(--line-2); padding: 13px 18px; cursor: pointer;
  text-align: left; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.calc__opt:hover { border-color: var(--ink); color: var(--ink); }
.calc__opt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.calc__opt--row { display: flex; flex-direction: column; gap: 5px; padding: 16px 20px; width: 100%; }
.calc__opt--row .t { font-size: 17px; color: inherit; }
.calc__opt--row .d { font-size: 12.5px; color: var(--d1); }
.calc__opt--row.on .d { color: rgba(255,255,255,.62); }
html[data-theme="dark"] .calc__opt--row.on .d { color: rgba(13,13,12,.6); }

/* estimate panel */
.calc__panel { position: sticky; top: 96px; }
.calc__panelin { border: 1px solid var(--line-2); padding: 30px 30px 26px; }
.calc__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; }
.calc__cur { display: inline-flex; border: 1px solid var(--line-2); }
.calc__cur-opt { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--d2); background: transparent; border: 0; padding: 7px 9px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.calc__cur-opt + .calc__cur-opt { border-left: 1px solid var(--line-2); }
.calc__cur-opt.on { background: var(--ink); color: var(--bg); }
.calc__from { display: flex; align-items: baseline; gap: 12px; }
.calc__from > span:last-child { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: 46px; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.calc__range { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--d1); margin-top: 12px; }
.calc__summary { list-style: none; margin: 24px 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.calc__line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.calc__line .l { color: var(--d1); }
.calc__line .v { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.calc__line--head { padding-bottom: 11px; margin-bottom: 3px; border-bottom: 1px solid var(--line-2); }
.calc__line--head .l, .calc__line--head .v { color: var(--ink); }
.calc__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.calc__cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: center;
  padding: 15px 18px; text-decoration: none; background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: opacity .25s ease, background .25s ease, color .25s ease;
}
.calc__cta:hover { opacity: .82; }
.calc__cta--ghost { background: transparent; color: var(--ink); }
.calc__cta--ghost:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.calc__note { font-size: 12px; line-height: 1.6; color: var(--d2); margin-top: 18px; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .calc__opts--grid { grid-template-columns: 1fr 1fr; }
  #pricing .scluster { padding-bottom: 116px; }   /* clear the fixed bar */

  /* estimate → fixed bottom bar, always visible while selecting */
  .calc__panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; margin: 0; }
  .calc__panelin {
    border: 0; border-top: 1px solid var(--line-2); background: var(--bg);
    box-shadow: 0 -12px 30px -18px rgba(0,0,0,.5);
    padding: 12px var(--m) calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "cur cur" "price cta";
    align-items: center; column-gap: 16px; row-gap: 9px;
  }
  .calc__head { grid-area: cur; margin: 0; justify-content: flex-start; }
  .calc__head > span.mono { display: none; }
  .calc__from { grid-area: price; align-items: baseline; gap: 8px; }
  .calc__from > span:last-child { font-size: 28px; }
  .calc__actions { grid-area: cta; margin: 0; }
  .calc__range, .calc__cta--ghost, .calc__summary, .calc__note { display: none; }
  .calc__cta { padding: 14px 22px; }
}

@media (max-width: 700px) {
  .srv__row { display: flex; flex-direction: column; gap: 14px; padding: 34px 0; }
  .srv__row .n { font-size: 11px; }
  .srv__row h3 { font-size: 30px; }
  .srv__row > div { width: 100%; }
}

/* =====================================================================
   13 · POLICY — terms of engagement (numbered clauses)
   ===================================================================== */
.policy { border-top: 1px solid var(--ink); }
.policy__row {
  display: grid;
  grid-template-columns: 64px 1.1fr 1.5fr;
  gap: 30px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.policy__row .n { font-family: var(--mono); font-size: 12px; color: var(--d2); padding-top: 6px; }
/* heading + its tag sit on one line (tag beside the heading, not under it) */
.policy__row > div:first-of-type { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.policy__row h3 { font-family: var(--sans); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.018em; }
.policy__row p  { font-size: 15px; line-height: 1.7; color: var(--d1); margin-bottom: .9em; }
.policy__row p:last-child { margin-bottom: 0; }
.policy__row .tag {
  display: inline-block;
  margin-top: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--d2);
  border: 1px solid var(--line-2);
  padding: 5px 10px;
}
.policy__note { display: flex; justify-content: space-between; align-items: baseline; padding-top: 28px; }

@media (max-width: 700px) {
  .policy__row { grid-template-columns: 40px 1fr; gap: 8px 14px; }
  .policy__row > div:last-child { grid-column: 1 / -1; }
}

/* =====================================================================
   14 · CONTACT
   ===================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding-top: 8px;
}
.contact__big {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: var(--display);
  letter-spacing: -.01em;
  line-height: 1.07;
  max-width: 12ch;
}
.contact__big .it { font-style: italic; }
.contact__meta { margin-top: 38px; border-top: 1px solid var(--line); }
.contact__meta .r {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact__meta .r .v { font-size: 14px; color: var(--ink); }

/* form fields — real inputs (bottom-border only) */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--d1);
  margin-bottom: 10px;
}
.field .in,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .3s ease;
}
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.field select option { color: #111; }   /* native menu stays readable in both themes */
.field textarea { resize: vertical; min-height: 46px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--d2); }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-color: var(--ink); }
/* honeypot — visually hidden, off the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 24px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .35s ease, color .35s ease, opacity .3s ease;
}
.btn:hover { opacity: .82; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.form-note {
  margin-top: 16px;
  min-height: 1em;
  color: var(--d1);
}
.form-note.err { color: #c0392b; }
html[data-theme="dark"] .form-note.err { color: #ff6b6b; }

@media (max-width: 700px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

/* =====================================================================
   15 · PORTAL — login (separate page)
   ===================================================================== */
.login {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid var(--line);
}
.login__box { width: 100%; max-width: 340px; }
.login h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 46px;
  letter-spacing: -.01em;
  margin: 16px 0 44px;
}
.login h1 .it { font-style: italic; }
.login .field { text-align: left; }
.login__note { margin-top: 22px; }

/* =====================================================================
   16 · ANIMATION STATES
   Hidden only when JS is active; without JS everything is visible.
   ===================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }

/* clip-path wipe for headings/rules */
.js [data-wipe] { clip-path: inset(0 100% 0 0); will-change: clip-path; }

/* line-mask for hero statement words */
.js .home__statement,
.js .contact__big { }
.js [data-lines] .line-mask { overflow: hidden; display: block; }
.js [data-lines] .line-inner { display: block; transform: translateY(110%); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal],
  .js [data-wipe] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-lines] .line-inner { transform: none !important; }
  .loader { display: none !important; }
}

/* print: clean B&W document */
@media print {
  .loader, .cursor, .cursor-dot, .toggle, .burger, .navmenu, .mast, .page-transition { display: none !important; }
  body { color: #000; background: #fff; }
}

/* =====================================================================
   17 · MASTHEAD PORTAL LINK  (client access on every page)
   ===================================================================== */
.mast__portal {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--d1);
  text-decoration: none;
  transition: color .3s ease;
  white-space: nowrap;
}
.mast__portal:hover { color: var(--ink); }
@media (max-width: 560px) { .mast__portal { display: none; } } /* lives in the menu instead */

/* divider + secondary link inside the mobile overlay */
.navmenu__sep { height: 0; border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.navmenu .navmenu__minor { font-size: clamp(16px, 4.5vw, 20px); color: var(--d1); }
.navmenu .navmenu__minor .num { font-size: 11px; }

/* =====================================================================
   17b · CASE STUDY (project) page
   ===================================================================== */
.case { padding: 48px 0 0; }
.case__back { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--d1); text-decoration: none; display: inline-block; margin-bottom: 44px; transition: color .3s ease; }
.case__back:hover { color: var(--ink); }
.case__kicker { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.case__kicker .l { display: flex; gap: 14px; align-items: baseline; }
.case__name { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: var(--hero); letter-spacing: -.01em; line-height: 1.06; max-width: 14ch; }
.case__name .it { font-style: italic; }
.case__sub { margin-top: 30px; max-width: 50ch; }

/* image plates — real <img> when supplied, elegant empty plate until then */
.shot { display: block; width: 100%; background: color-mix(in srgb, var(--ink) 5%, var(--bg)); border: 1px solid var(--line); overflow: hidden; position: relative; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot--hero { aspect-ratio: 16/9; margin-top: 48px; }
.shot--g { aspect-ratio: 4/5; }
.shot--w { aspect-ratio: 3/2; }
.shot__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.shot__empty span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--d2); }
.fig { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 13px; }
.case__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.case__specs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 54px; }
.case__spec { padding: 22px 18px 26px; border-right: 1px solid var(--line); text-align: center; }
.case__spec:last-child { border-right: 0; }
.case__spec .k { display: block; margin-bottom: 13px; }
.case__spec .v { font-size: 15px; color: var(--ink); }

.case__lede { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(24px, 2.9vw, 38px); line-height: 1.28; letter-spacing: -.005em; color: var(--ink); max-width: 22ch; padding: 80px 0; }
.case__lede .it { font-style: italic; }

.case__narr { border-top: 1px solid var(--ink); }
.case__narr .row { display: grid; grid-template-columns: 64px 1.1fr 1.5fr; gap: 30px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start; }
.case__narr .n { font-family: var(--mono); font-size: 12px; color: var(--d2); padding-top: 6px; }
.case__narr h3 { font-family: var(--sans); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.018em; }
.case__narr p { font-size: 15px; line-height: 1.72; color: var(--d1); }

.case__label { display: block; margin-bottom: 24px; }
.case__phases { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.case__phase { padding: 34px 24px 38px; border-right: 1px solid var(--line); text-align: center; }
.case__phase:last-child { border-right: 0; }
.case__phase .pn { font-family: var(--sans); font-weight: 300; font-size: 40px; color: var(--d3); letter-spacing: -.03em; line-height: 1; }
.case__phase .pt { font-family: var(--sans); font-weight: 300; font-size: 21px; letter-spacing: -.015em; margin: 20px 0 8px; }
.case__phase .pd { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--d2); }

.case__scope { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding-top: 8px; }
.case__scope .lab { display: block; }
.scope-list { list-style: none; border-top: 1px solid var(--ink); }
.scope-list li { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-size: 16px; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
.scope-list li span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--d2); }

.case__quote { border-top: 1px solid var(--ink); padding: 80px 0; }
.case__quote blockquote { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-style: italic; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.005em; color: var(--ink); max-width: 22ch; }
.case__quote .cite { margin-top: 30px; }

.case__next { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 42px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; transition: padding .4s ease; }
.case__next:hover { padding-left: 14px; padding-right: 14px; }
.case__next .t { font-family: var(--sans); font-weight: 300; font-size: var(--row); letter-spacing: -.02em; color: var(--ink); }
.case__next .go { font-family: var(--mono); font-size: 16px; color: var(--d1); }

@media (max-width: 700px) {
  .case__kicker { flex-direction: column; gap: 8px; }
  .case__gallery { grid-template-columns: 1fr; gap: 18px; }
  .case__specs { grid-template-columns: 1fr 1fr; }
  .case__spec { padding: 20px 16px 22px 0; border-bottom: 1px solid var(--line); }
  .case__spec:nth-child(2n) { border-right: 0; }
  .case__lede { padding: 56px 0; max-width: none; }
  .case__narr .row { grid-template-columns: 40px 1fr; gap: 8px 14px; }
  .case__narr .row > div:last-child { grid-column: 1 / -1; }
  .case__phases { grid-template-columns: 1fr 1fr; }
  .case__phase:nth-child(2n) { border-right: 0; }
  .case__scope { grid-template-columns: 1fr; gap: 24px; }
}

/* =====================================================================
   17c · WORK — Brands group (second section on /work)
   ===================================================================== */
.work-group { padding-top: clamp(64px, 8vw, 104px); }
.work-group__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.work-group__id { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.work-group__title { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(26px, 3vw, 34px); line-height: 1.04; letter-spacing: -.006em; }
.work-group__title .it { font-style: italic; }
@media (max-width: 700px) { .work-group__head { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* =====================================================================
   17d · BRAND CASE STUDY (text-only)
   ===================================================================== */
.bcase { padding: 0; }
.crumb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 48px 0 0; }
.crumb a, .crumb span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.crumb a { color: var(--d1); transition: color .3s ease; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--d3); }
.crumb .cur { color: var(--ink); }
.bcase__title { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(32px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.01em; margin-top: 30px; max-width: 16ch; }
.bcase__title .it { font-style: italic; }
.bcase__pos { margin-top: 30px; max-width: 42ch; }
.bcase__hero { margin: clamp(40px, 5vw, 64px) 0 0; }
.bcase__wide { margin: clamp(24px, 3vw, 40px) 0 0; }

/* =====================================================================
   JOURNAL + FAQ + PROCESS (extras)
   ===================================================================== */
.journal { border-top: 1px solid var(--ink); }
.jnote { padding: clamp(40px, 5vw, 66px) 0; border-bottom: 1px solid var(--line); }
.jnote__meta { display: flex; gap: 14px; margin-bottom: 22px; }
.jnote__title { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.01em; max-width: 20ch; text-wrap: balance; }
.jnote__title .it { font-style: italic; }
.jnote__body { margin-top: 26px; }
.jnote__body p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.72; color: var(--d1); margin-bottom: 1em; max-width: 62ch; }
.jnote__body p:last-child { margin-bottom: 0; }
.journal__foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 28px; gap: 16px; }
.journal__foot a { text-decoration: none; color: var(--d1); transition: color .3s ease; }
.journal__foot a:hover { color: var(--ink); }

/* FAQ — reuses the policy clause rhythm */
.faq { border-top: 1px solid var(--ink); margin-top: clamp(40px, 5vw, 64px); }
.faq__q { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.faq__q .n { font-family: var(--mono); font-size: 12px; color: var(--d2); padding-top: 5px; }
.faq__q h3 { font-family: var(--sans); font-weight: 400; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -.01em; margin-bottom: 12px; }
.faq__q p { font-size: 15px; line-height: 1.7; color: var(--d1); max-width: 64ch; }
.faq__lead { margin: clamp(40px, 5vw, 64px) 0 8px; }

/* How we work — phase journey */
.phases { border-top: 1px solid var(--ink); }
.phase { display: grid; grid-template-columns: 54px 1.1fr 1.5fr; gap: 30px; padding: clamp(30px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.phase .n { font-family: var(--mono); font-size: 12px; color: var(--d2); }
.phase h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.006em; line-height: 1.05; }
.phase p { font-size: 15px; line-height: 1.66; color: var(--d1); }
.phase__cap { margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--d2); }
@media (max-width: 700px) {
  .faq__q { grid-template-columns: 1fr; gap: 6px; }
  .faq__q .n { display: none; }
  .phase { grid-template-columns: 1fr; gap: 10px; }
  .phase .n { font-size: 11px; }
}
.mstrip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: clamp(44px, 6vw, 72px); }
.mstrip .cell { padding: 22px 18px 26px; border-right: 1px solid var(--line); text-align: center; }
.mstrip .cell:last-child { border-right: 0; }
.mstrip .cell .k { display: block; margin-bottom: 13px; }
.mstrip .cell .v { font-size: 16px; color: var(--ink); }
.blocks { padding: clamp(20px, 3vw, 40px) 0 0; }
.block { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.block:first-child { border-top: 1px solid var(--line); }
.block__l { display: flex; flex-direction: column; gap: 14px; }
.block__n { font-family: var(--mono); font-size: 12px; color: var(--d2); letter-spacing: .06em; }
.block__lab { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.block__r p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.74; color: var(--d1); max-width: 60ch; }
.block__r p + p { margin-top: 1.1em; }
.block__r strong { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) {
  .mstrip { grid-template-columns: 1fr 1fr; }
  .mstrip .cell { padding: 20px 16px 22px 0; border-bottom: 1px solid var(--line); }
  .mstrip .cell:nth-child(2n) { border-right: 0; }
  .block { grid-template-columns: 1fr; gap: 18px; }
}

/* =====================================================================
   18 · PAGE TRANSITION  (between routes)
   ===================================================================== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--ink);
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
}

/* =====================================================================
   19 · CLIENT DASHBOARD
   ===================================================================== */
.dash { flex: 1; display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.dash__side { border-right: 1px solid var(--line); padding: 34px 0; }
.dash__side .lab { padding: 0 26px 24px; }
.dash__side a {
  display: block;
  padding: 12px 26px;
  font-size: 14px;
  color: var(--d1);
  text-decoration: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.dash__side a:hover { color: var(--ink); }
.dash__side a.on { color: var(--ink); border-left-color: var(--ink); }
.dash__main { padding: 42px 48px; }
.dash__crumbs { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.dash__panel { display: none; }
.dash__panel.on { display: block; }
.prog__row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.prog__t { font-family: var(--sans); font-weight: 300; font-size: 36px; letter-spacing: -.02em; }
.prog__bar { height: 2px; background: var(--line); position: relative; margin-bottom: 44px; }
.prog__bar i { position: absolute; left: 0; top: 0; height: 100%; width: 58%; background: var(--ink); }
.miles { border-top: 1px solid var(--line); }
.miles .m { display: grid; grid-template-columns: 18px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.miles .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); }
.miles .dot.f { background: var(--ink); }
.miles .mt { font-size: 14px; color: var(--ink); }
.miles .ms { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--d2); }
/* simple list used by Assets / Deliverables / Comments panels */
.dlist { border-top: 1px solid var(--line); }
.dlist .d { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dlist .d .dt { font-size: 14px; color: var(--ink); }
.dlist .d .dm { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--d2); }
@media (max-width: 700px) {
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: flex; gap: 4px 18px; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .dash__side .lab { width: 100%; padding: 0 0 6px; }
  .dash__side a { padding: 8px 0; border-left: 0; border-bottom: 2px solid transparent; }
  .dash__side a.on { border-left: 0; border-bottom-color: var(--ink); }
  .dash__main { padding: 28px 0; }
}

/* =====================================================================
   20 · ADMIN CONSOLE  (managing dashboard)
   ===================================================================== */
.admin { flex: 1; display: grid; grid-template-columns: 218px 1fr; border-top: 1px solid var(--line); }
.admin__side { border-right: 1px solid var(--line); padding: 30px 0; display: flex; flex-direction: column; }
.admin__side .grp { padding: 0 24px; margin-bottom: 8px; }
.admin__side .grp .lab { display: block; margin: 22px 0 8px; }
.admin__side a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 24px; font-size: 14px; color: var(--d1);
  text-decoration: none; border-left: 2px solid transparent; cursor: pointer;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.admin__side a:hover { color: var(--ink); }
.admin__side a.on { color: var(--ink); border-left-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.admin__side a .badge { font-family: var(--mono); font-size: 10px; color: var(--d2); }
.admin__side .who { margin-top: auto; padding: 18px 24px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.admin__side .who .av { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); flex: none; }
.admin__side .who .nm { font-size: 13px; color: var(--ink); }
.admin__side .who .rl { display: block; }
.admin__main { padding: 34px 44px; }
.admin__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
.admin__top h2 { font-family: var(--sans); font-weight: 300; font-size: 34px; letter-spacing: -.02em; }
.admin__top .sub { margin-top: 8px; }
.admin__actions { display: flex; gap: 10px; }
.abtn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 18px; border: 1px solid var(--line-2); color: var(--ink);
  display: inline-flex; align-items: center; gap: .6em; background: none; cursor: pointer;
  border-radius: 0; transition: opacity .3s ease;
}
.abtn:hover { opacity: .8; }
.abtn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* stat cards */
.admin__cards { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 36px; }
.admin__card { padding: 22px 24px; border-right: 1px solid var(--line); text-align: center; }
.admin__card:last-child { border-right: 0; }
.admin__card .k { display: block; margin-bottom: 14px; }
.admin__card .v { font-family: var(--sans); font-weight: 300; font-size: 38px; letter-spacing: -.02em; line-height: 1; }
.admin__card .vsub { font-family: var(--mono); font-size: 10px; color: var(--d2); margin-top: 8px; display: block; }
/* table */
.tbl { border-top: 1px solid var(--ink); }
.tbl__h, .tbl__r { display: grid; gap: 20px; align-items: center; }
.tbl__h { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tbl__r { padding: 18px 0; border-bottom: 1px solid var(--line); }
.tbl__h .end, .tbl__r .end { justify-self: end; }
.tbl__r .nm { font-size: 15px; color: var(--ink); }
.tbl__r .sec { font-size: 13px; color: var(--d1); }
.tbl__r .em { font-family: var(--mono); font-size: 12px; color: var(--d1); }
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border: 1px solid var(--line-2); color: var(--d1); justify-self: start; }
.pill.ok { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tbl__r .act { font-family: var(--mono); font-size: 11px; color: var(--d1); text-align: right; justify-self: end; cursor: pointer; }
.edit-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block; margin-right: 7px; vertical-align: middle; }
.admin__view { display: none; }
.admin__view.on { display: block; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side {
    flex-direction: row; flex-wrap: wrap; gap: 2px 16px;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0;
  }
  .admin__side .grp { padding: 0; margin: 0; display: flex; gap: 14px; align-items: center; }
  .admin__side .grp .lab { margin: 0; }
  .admin__side .who { margin: 8px 0 0; padding: 12px 0 0; width: 100%; }
  .admin__main { padding: 24px 0; }
  .admin__cards { grid-template-columns: 1fr 1fr; }
  .admin__top { flex-direction: column; gap: 18px; }
  .admin__actions { width: 100%; }
  .abtn { flex: 1; justify-content: center; }
}
/* stack table rows into cards on mobile */
@media (max-width: 700px) {
  .tbl__h { display: none !important; }
  .tbl__r { grid-template-columns: 1fr auto !important; gap: 8px 14px; padding: 20px 0; }
  .tbl__r .nm { font-size: 17px; order: 1; }
  .tbl__r .pill { order: 2; justify-self: end; align-self: start; }
  .tbl__r .sec { order: 3; grid-column: 1 / -1; }
  .tbl__r .em { order: 4; grid-column: 1 / -1; }
  .tbl__r .act { order: 5; grid-column: 1 / -1; justify-self: start !important; text-align: left; padding-top: 4px; }
}

/* ===== Admin CRM pipeline (enquiries) ===== */
.crm__filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.crm__chip{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--d1);background:transparent;border:1px solid var(--line-2);border-radius:999px;padding:7px 13px;cursor:pointer;transition:color .2s ease,background .2s ease,border-color .2s ease;display:inline-flex;gap:7px;align-items:center}
.crm__chip span{color:var(--d2)}
.crm__chip:hover{color:var(--ink);border-color:var(--ink)}
.crm__chip.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.crm__chip.on span{color:var(--bg);opacity:.7}
.crm{display:grid;gap:14px}
.crm__card{border:1px solid var(--line);border-radius:4px;padding:18px 20px;transition:border-color .2s ease}
.crm__card:hover{border-color:var(--line-2)}
.crm__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:9px}
.crm__who{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crm__who .nm{font-size:16px;font-weight:500}
.crm__who .tag{padding:2px 9px;border:1px solid var(--line-2);border-radius:999px}
.crm__dot{width:8px;height:8px;border-radius:50%;background:var(--d2);flex:0 0 auto}
.crm__card[data-status="new"] .crm__dot{background:var(--ink)}
.crm__card[data-status="contacted"] .crm__dot{background:var(--d1)}
.crm__card[data-status="qualified"] .crm__dot{background:#c79a3e}
.crm__card[data-status="proposal"] .crm__dot{background:#4a78c2}
.crm__card[data-status="won"] .crm__dot{background:#3f9a5f}
.crm__card[data-status="lost"] .crm__dot{background:transparent;border:1px solid var(--line-2)}
.crm__card[data-status="won"]{border-color:rgba(63,154,95,.42)}
.crm__card[data-status="lost"]{opacity:.58}
.crm__meta{margin-bottom:11px;line-height:1.7}
.crm__meta a{color:var(--d1)}
.crm__meta a:hover{color:var(--ink)}
.crm__msg{font-size:14.5px;color:var(--d1);line-height:1.62;margin-bottom:14px;white-space:pre-wrap}
.crm__bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.crm__status{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);background:var(--bg);border:1px solid var(--line-2);border-radius:3px;padding:7px 11px;cursor:pointer}
.crm__actions{display:flex;gap:16px;align-items:center}
.crm__actions a{color:var(--d1);cursor:pointer}
.crm__actions a:hover{color:var(--ink)}
.crm__notes{width:100%;margin-top:14px;min-height:38px;resize:vertical;font-family:var(--sans);font-size:13.5px;color:var(--ink);background:transparent;border:0;border-top:1px solid var(--line);padding:12px 0 0;line-height:1.5}
.crm__notes::placeholder{color:var(--d2)}
.crm__notes:focus{outline:none}

/* ===== Printable proposal (pricing → save as PDF) ===== */
.proposal{display:none}
.proposal__sheet{color:#0d0d0c;background:#fff;font-family:var(--sans);max-width:780px;margin:0 auto;padding:0}
.proposal__top{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid #0d0d0c;margin-bottom:28px}
.proposal__brand{font-size:17px;font-weight:600;line-height:1.25;display:flex;flex-direction:column}
.proposal__brand span{font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:#777;font-weight:400;margin-top:5px}
.proposal__ref{text-align:right;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#0d0d0c;line-height:1.7}
.proposal__ref span{display:block;color:#aaa;margin-bottom:3px}
.proposal__title{font-family:var(--serif);font-weight:400;font-size:33px;line-height:1.05;margin-bottom:9px}
.proposal__lede{font-size:13px;color:#555;max-width:62ch;line-height:1.55;margin-bottom:30px}
.proposal__cols{display:grid;grid-template-columns:1.1fr 1fr;gap:38px;margin-bottom:18px}
.proposal h2{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#0d0d0c;margin:0 0 12px;font-weight:600;padding-bottom:7px;border-bottom:1px solid #0d0d0c}
.proposal__col h2:not(:first-child){margin-top:24px}
.proposal__list{list-style:none;margin:0;padding:0}
.proposal__list li{font-size:13.5px;line-height:1.5;padding:7px 0 7px 16px;position:relative;border-bottom:1px solid #eee}
.proposal__list li::before{content:'';position:absolute;left:0;top:14px;width:5px;height:5px;border-radius:50%;background:#0d0d0c}
.proposal__invest{border:1px solid #0d0d0c;border-radius:4px;padding:18px;margin-bottom:8px;display:flex;flex-direction:column;gap:4px}
.proposal__invest span{font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:#999}
.proposal__invest strong{font-family:var(--serif);font-weight:400;font-size:25px;line-height:1.1}
.proposal__invest em{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:#777;font-style:normal}
.proposal__phases{list-style:none;margin:0;padding:0}
.proposal__phases li{display:grid;grid-template-columns:26px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid #eee}
.proposal__phases li>span{font-family:var(--mono);font-size:10px;color:#bbb}
.proposal__phases strong{display:block;font-size:13px;margin-bottom:2px;font-weight:600}
.proposal__phases div{font-size:11.5px;color:#666;line-height:1.45}
.proposal__terms{list-style:none;margin:0 0 26px;padding:0}
.proposal__terms li{font-size:11.5px;color:#555;line-height:1.5;padding:5px 0 5px 16px;position:relative}
.proposal__terms li::before{content:'—';position:absolute;left:0;color:#bbb}
.proposal__foot{border-top:1px solid #0d0d0c;padding-top:14px;font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:#777}
@media print{
  @page{margin:16mm 15mm}
  html,body{background:#fff !important}
  body.printing-proposal *{visibility:hidden !important}
  body.printing-proposal .proposal,body.printing-proposal .proposal *{visibility:visible !important}
  body.printing-proposal .proposal{display:block !important;position:absolute;left:0;top:0;width:100%}
}

/* ===== Case study — Proof block (quiet metrics + client line) ===== */
.proof{ padding-top:72px; }
.proof__label{ color:var(--d2); display:block; margin-bottom:26px; }
.proof__in{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.proof__metrics{ display:flex; flex-direction:column; gap:26px; }
.proof__metric{ display:flex; flex-direction:column; gap:8px; border-top:1px solid var(--line); padding-top:18px; }
.proof__val{ font-family:var(--serif); font-weight:400; font-size:clamp(32px,3.8vw,50px); line-height:1; letter-spacing:-.01em; color:var(--ink); }
.proof__lab{ color:var(--d2); }
.proof__quote{ border-left:1px solid var(--line-2); padding-left:32px; align-self:center; }
.proof__quote blockquote{ font-family:var(--serif); font-weight:300; font-style:italic; font-size:clamp(20px,2.2vw,27px); line-height:1.34; letter-spacing:-.01em; color:var(--ink); }
.proof__quote figcaption{ color:var(--d2); margin-top:18px; }
@media (max-width:760px){
  .proof{ padding-top:52px; }
  .proof__in{ grid-template-columns:1fr; gap:32px; }
  .proof__quote{ padding-left:22px; }
}

/* ===== Testimonials — client words ===== */
.words{ padding:96px 0 40px; border-top:1px solid var(--line); }
.words__head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:54px; }
.words__head .mono{ color:var(--d2); }
.words__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:54px; }
.word blockquote{ font-family:var(--serif); font-weight:300; font-style:italic; font-size:clamp(19px,1.55vw,23px); line-height:1.4; letter-spacing:-.01em; color:var(--ink); margin-bottom:24px; }
.word figcaption{ display:flex; flex-direction:column; gap:5px; border-top:1px solid var(--line); padding-top:16px; }
.word__name{ font-size:15px; letter-spacing:-.005em; color:var(--ink); }
.word figcaption .mono-s{ color:var(--d2); }
@media (max-width:880px){
  .words{ padding:64px 0 24px; }
  .words__grid{ grid-template-columns:1fr; gap:40px; }
  .words__head{ margin-bottom:38px; }
}

/* ===== The First Impression — live composition ===== */
.fi{ padding:104px 0 110px; border-top:1px solid var(--line); }
.fi__head{ max-width:none; margin-bottom:48px; }
.fi__id{ color:var(--d2); display:block; margin-bottom:26px; }
.fi__title{ font-family:var(--serif); font-weight:300; letter-spacing:-.02em; line-height:1.02; font-size:clamp(34px,5.4vw,68px); margin-bottom:22px; }
.fi__title .it{ font-style:italic; }
.fi__lede{ font-size:clamp(15px,1.25vw,18px); line-height:1.5; color:var(--d1); max-width:60ch; }
.fi__form{ margin-bottom:8px; }
.fi__types{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.fi__type{ font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--d1); background:transparent; border:1px solid var(--line-2); border-radius:999px; padding:9px 17px; cursor:pointer; transition:color .2s ease,background .2s ease,border-color .2s ease; }
.fi__type:hover{ color:var(--ink); border-color:var(--ink); }
.fi__type.on{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.fi__inputrow{ display:flex; align-items:stretch; gap:0; border-bottom:1px solid var(--ink); }
.fi__inputrow input{ flex:1 1 auto; min-width:0; background:transparent; border:0; color:var(--ink); font-family:var(--sans); font-size:clamp(18px,2vw,24px); letter-spacing:-.01em; padding:16px 0; }
.fi__inputrow input::placeholder{ color:var(--d2); }
.fi__inputrow input:focus{ outline:none; }
.fi__go{ flex:0 0 auto; align-self:center; font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); background:transparent; border:0; padding:10px 0 10px 28px; cursor:pointer; transition:opacity .2s ease; white-space:nowrap; }
.fi__go:hover{ opacity:.6; }
.fi__go:disabled{ cursor:default; color:var(--d2); }
.fi__form.is-busy .fi__go{ letter-spacing:.2em; }
.fi__output{ min-height:1.2em; margin-top:40px; font-family:var(--serif); font-weight:300; font-style:italic; font-size:clamp(22px,3vw,40px); line-height:1.28; letter-spacing:-.01em; color:var(--ink); max-width:24ch; }
.fi__output:empty{ margin-top:0; }
.fi__output.is-live::after{ content:'▌'; font-style:normal; margin-left:2px; opacity:.5; animation:fi-blink 1s steps(1) infinite; }
@keyframes fi-blink{ 50%{ opacity:0; } }
.fi__cta{ display:flex; align-items:center; gap:26px; margin-top:40px; flex-wrap:wrap; }
.fi__cta[hidden]{ display:none; }
.fi__cta .mono{ color:var(--d2); }
.fi__ctabtn{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--ink); padding-bottom:3px; transition:opacity .2s ease; }
.fi__ctabtn:hover{ opacity:.6; }
@media (max-width:880px){
  .fi{ padding:64px 0 72px; }
  .fi__head{ margin-bottom:34px; }
  .fi__inputrow input{ font-size:18px; padding:14px 0; }
  .fi__go{ padding-left:18px; }
  .fi__output{ font-size:22px; max-width:none; margin-top:32px; }
  .fi__cta{ gap:16px; margin-top:32px; }
}

/* ===== Architecture brand — square edges + Terra accent ===== */
.fi__type, .crm__chip { border-radius: 0; }
.marquee__sep { color: var(--terra); }
.marquee__cap, .vslider__cap, .clients__cap { color: var(--terra); }

/* ===== Work index — image-led project plates ===== */
.works { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px); margin-top: clamp(28px, 3vw, 44px); }
.proj { display: block; text-decoration: none; color: var(--ink); }
.proj.is-hidden { display: none; }
.proj__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.proj__cat { color: var(--terra); }
.proj__detail { color: var(--d2); }
.proj__plate { position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface); }
.proj__plate--onyx { background: #0e0e0d; }
.proj__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.proj:hover .proj__img { transform: scale(1.035); }
.proj__mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.proj__mark img { max-width: 40%; max-height: 46%; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.proj:hover .proj__mark img { transform: scale(1.04); }
.proj__mark--empty .mono { color: rgba(242,238,230,.5); }
.proj__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-top: 20px; }
.proj__title { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.02em; }
.proj__cap { display: block; margin-top: 9px; color: var(--d1); font-size: clamp(14px, 1.1vw, 16px); }
.proj__go { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); white-space: nowrap; align-self: end; padding-bottom: 4px; }
.proj__plate .reg { position: absolute; width: 13px; height: 13px; z-index: 2; }
.proj__plate .reg::before, .proj__plate .reg::after { content: ''; position: absolute; background: var(--terra); }
.proj__plate .reg::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.proj__plate .reg::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.proj__plate .reg--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.proj__plate .reg--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.proj__plate .reg--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.proj__plate .reg--br { bottom: 0; right: 0; transform: translate(50%, 50%); }
@media (max-width: 700px) {
  .proj__plate { aspect-ratio: 4 / 3; }
  .proj__foot { grid-template-columns: 1fr; gap: 12px; }
  .proj__go { justify-self: start; }
}

/* ===== Case study — mounted-plate images + cinematic editorial ===== */
.case__name { font-size: clamp(40px, 6vw, 84px); line-height: 1.01; max-width: 16ch; }
.plate-fig { display: block; margin: 0; }
.plate-fig--hero { margin-top: clamp(40px, 5vw, 64px); }
.plate-fig--wide { margin-top: clamp(28px, 4vw, 56px); }
.plate { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate--onyx { background: #0e0e0d; }
.plate--onyx .proj__mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.plate--onyx .proj__mark img { width: auto; height: auto; max-width: 34%; max-height: 44%; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.plate-fig--hero .plate { aspect-ratio: 16 / 9; }
.plate-fig--wide .plate { aspect-ratio: 3 / 2; }
.plate-fig--g .plate { aspect-ratio: 4 / 5; }
.plate__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; }
.plate__cap .mono { color: var(--d2); }
.plate__folio { color: var(--terra); }
.plate .reg { position: absolute; width: 13px; height: 13px; z-index: 2; }
.plate .reg::before, .plate .reg::after { content: ''; position: absolute; background: var(--terra); }
.plate .reg::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.plate .reg::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.plate .reg--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.plate .reg--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.plate .reg--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.plate .reg--br { bottom: 0; right: 0; transform: translate(50%, 50%); }
.case__views { padding-top: clamp(48px, 6vw, 80px); }
.bcase__hero, .bcase__wide { margin-top: clamp(32px, 4vw, 56px); }



/* ===== Stacked wordmark logo — BASEL / Elkafafy / INNOVATIONS ===== */
.mast__brand { display: inline-flex; align-items: center; text-decoration: none; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm__l { font-family: 'Bricolage Grotesque', var(--sans); font-weight: 800; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.wm__it { font-family: 'Immortel', var(--serif); font-weight: 400; font-style: italic; font-size: 14px; line-height: .92; letter-spacing: 0; text-transform: none; color: var(--ink); margin: -1px 0; }

/* royal-blue primary CTAs — fixed deep blue + ivory text (high contrast in both themes) */
.btn, .calc__cta:not(.calc__cta--ghost), .fi__ctabtn {
  background: #1d3fd8; color: #f4efe6; border: 1px solid #1d3fd8;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover, .calc__cta:not(.calc__cta--ghost):hover, .fi__ctabtn:hover { background: #132ca3; border-color: #132ca3; color: #f4efe6; }
/* dark-mode: keep the accent blue readable on onyx */
html[data-theme="dark"] { --terra: #7f97f6; --blue: #7f97f6; }

/* ===== Selected Clients — draggable physics toy (Matter.js) ===== */
.playground { margin-top: clamp(40px, 6vh, 90px); }
.playground__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: clamp(14px, 2vw, 22px); }
.playground__hint { color: var(--terra); }
/* fallback / pre-init: a clean static logo row */
.playground__stage { position: relative; border: 1px solid var(--line); display: flex; flex-wrap: wrap;
  align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(22px, 3vw, 40px); min-height: 96px; }
.chip { display: flex; align-items: center; justify-content: center; }
.chip img { height: clamp(24px, 2.6vw, 34px); width: auto; object-fit: contain;
  filter: grayscale(1) brightness(0); opacity: .4; }
/* physics on: chips become free bodies inside a tall stage */
.playground__stage.physon { display: block; gap: 0; padding: 0; overflow: hidden;
  height: clamp(320px, 44vw, 460px); cursor: grab; touch-action: none; -webkit-user-select: none; }
.playground__stage.physon:active { cursor: grabbing; }
.playground__stage.physon .chip { position: absolute; top: 0; left: 0; will-change: transform;
  padding: 14px 22px; background: var(--bg); border: 1px solid var(--line); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.playground__stage.physon .chip img { opacity: .72; pointer-events: none; }
/* dark mode: flip the logos to WHITE so they show on the dark chips (not black-on-dark) */
html[data-theme="dark"] .chip img { filter: grayscale(1) brightness(0) invert(1) !important; }
@media (max-width: 640px) {
  .playground__stage { gap: 18px 26px; }
  .chip img { height: 20px; }
  .playground__stage.physon { height: 300px; }   /* modest box on phones so it's not a big scroll-trap */
  .playground__stage.physon .chip { padding: 6px 9px; }   /* smaller chips for the narrow space */
  .playground__stage.physon .chip img { height: 14px; max-width: 88px; }   /* cap wide wordmarks */
}
/* Qatari Diar is a dense negative-space seal (a black square with the mark cut out) —
   render it larger + full-opacity so "QATARI DIAR" actually reads at chip size */
.playground__stage .chip img[src*="qatari"] { height: clamp(38px, 3.6vw, 44px); opacity: .95; max-width: none; }
@media (max-width: 640px) { .playground__stage .chip img[src*="qatari"] { height: 26px; } }

/* ===== Bolder royal-blue accent (play pass) ===== */
.home__statement .it, .shead h1 .it, .fi__title .it, .case__name .it, .bcase__title .it,
.jnote__title .it, .about__lede .it, h1 .it, h2 .it { color: var(--terra) !important; }
.mast__nav a:hover, .mast__portal:hover { color: var(--terra) !important; }
.toc__row:hover .t { color: var(--terra); }
.toc__row:hover .x { color: var(--terra); }
.marquee__sep { color: var(--terra); }
.home__metarow .k, .shead__id .mono, .fi__id, .clients__cap, .playground__hint,
.home__kicker .mono:first-child, .proj__cat, .case__spec .k { color: var(--terra) !important; }
.fi__go, .fi__ctabtn, .calc__cta:not(.calc__cta--ghost) { background: var(--terra) !important; color: #f4efe6 !important; border-color: var(--terra) !important; }
.fi__type.on { border-color: var(--terra) !important; color: var(--terra) !important; }
.toc__row .n { color: var(--terra); }
a.case__back:hover, .case__next:hover .t { color: var(--terra); }

/* ===== Selected Clients — normal logo marquee ===== */
.logomarq { margin-top: clamp(38px, 5vh, 72px); }
.logomarq__cap { display: block; margin-bottom: clamp(16px, 2vw, 24px); }
.logomarq__vp { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 36px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logomarq__track { display: flex; align-items: center; gap: clamp(48px, 7vw, 110px); width: max-content; animation: logomarq 34s linear infinite; }
.logomarq:hover .logomarq__track { animation-play-state: paused; }
.logomarq__track img { height: clamp(22px, 2.3vw, 30px); width: auto; object-fit: contain; filter: grayscale(1) brightness(0); opacity: .4; transition: opacity .3s; }
.logomarq__track img:hover { opacity: .85; }
.logomarq__track img[src*="qatari"] { height: clamp(32px, 3.2vw, 42px); }
html[data-theme="dark"] .logomarq__track img { filter: grayscale(1) brightness(0) invert(1); opacity: .55; }
@keyframes logomarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logomarq__track { animation: none; } }

/* ===== Loader — cleaner, centred ===== */
.loader__inner--min { align-items: center; text-align: center; gap: 24px; max-width: 560px; }
.loader__inner--min .wm--loader { align-items: center; }
.loader__inner--min .loader__bar { width: min(300px, 62vw); }

/* colours: keep blue deliberate — revert metarow + marquee sep to muted */
.home__metarow .k { color: var(--d1) !important; }
.marquee__sep { color: var(--d2) !important; }

/* ===== Fix home hero spacing (was vertically centred in 100vh) ===== */
.home { min-height: 0 !important; padding: clamp(34px, 5vw, 60px) 0 clamp(18px, 3vw, 36px) !important; }
.home__lead { margin: clamp(42px, 6vw, 82px) 0 clamp(36px, 5vw, 58px) !important; }
.home__lead .home__statement, .home__statement { margin: 0 !important; }

/* ===== Higher-contrast palette (cleaner off-white + near-black) ===== */
:root { --bg: #F7F5EF !important; --ink: #0C0B09 !important; --d1: #3B3934 !important; --d2: #6B665D !important; }
html[data-theme="dark"] { --bg: #09090A !important; --ink: #F7F5EF !important; --d1: #C7C2B8 !important; --d2: #8f8a80 !important; }

/* ===== Creative loader — full-screen royal-blue curtain + live count ===== */
.loader--blue { background: #1D3FD8 !important; color: #F4EFE6; justify-content: center; align-items: center; gap: 0; padding: 40px; }
.loader--blue .loader__wm { overflow: hidden; }
.loader--blue .wm--loader { align-items: center; }
.loader--blue .wm__l { color: #F4EFE6 !important; opacity: .9; }
.loader--blue .wm__it { color: #FFFFFF !important; }
.loader__count { display: flex; align-items: flex-start; justify-content: center; margin-top: clamp(14px, 3vw, 34px);
  font-family: var(--serif); font-weight: 300; line-height: .9; letter-spacing: -.05em; color: #F4EFE6; }
.loader__count #loaderPct { font-size: clamp(90px, 22vw, 260px); font-variant-numeric: tabular-nums; }
.loader__pctsign { font-size: clamp(28px, 5vw, 60px); font-style: italic; margin-top: .35em; opacity: .8; }
.loader--blue .loader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgba(244,239,230,.25); }
.loader--blue .loader__bar i { background: #F4EFE6; }
@media (prefers-reduced-motion: reduce) { .loader__count #loaderPct { }  }

/* ===== Crisp white + near-black + royal blue (final palette) ===== */
:root {
  --bg: #FFFFFF !important; --ink: #0A0A0A !important;
  --d1: #333333 !important; --d2: #737373 !important; --d3: #737373 !important;
  --line: rgba(0,0,0,.11) !important; --line-2: rgba(0,0,0,.055) !important;
  --terra: #1D3FD8 !important;
}
html[data-theme="dark"] {
  --bg: #0A0A0B !important; --ink: #FAFAFA !important;
  --d1: #C9C9C9 !important; --d2: #8A8A8A !important; --d3: #8A8A8A !important;
  --line: rgba(255,255,255,.13) !important; --line-2: rgba(255,255,255,.07) !important;
  --terra: #5E7CFF !important;
}
/* logo marquee reads on white */
.logomarq__track img { opacity: .34; }
.logomarq__track img:hover { opacity: .8; }

/* ===== Work index — text-only rows (images live on the case-study page) ===== */
.works { display: block; }
.proj--text { display: block; border-top: 1px solid var(--line); padding: clamp(24px,3vw,44px) 4px;
  transition: padding-left .4s cubic-bezier(.2,.7,.2,1); }
.proj--text:first-child { border-top: 0; }
.proj--text:hover { padding-left: clamp(8px,1.4vw,18px); }
.proj--text .proj__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: clamp(10px,1.4vw,18px); flex-wrap: wrap; }
.proj--text .proj__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.proj--text .proj__tw { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.proj--text .proj__title { font-family: var(--serif); font-weight: 300; font-size: clamp(28px,4vw,56px); line-height: 1; letter-spacing: -.02em; margin: 0; transition: color .25s; }
.proj--text:hover .proj__title { color: var(--terra); }
.proj--text .proj__cap { font-size: 14px; color: var(--d2); }
.proj--text .proj__go { color: var(--terra); white-space: nowrap; font-size: 13px; }
@media (max-width: 640px) { .proj--text .proj__foot { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* =====================================================================
   FLAGSHIP CASE — immersive, cinematic real-estate case study (.xc)
   Full-bleed hero + scroll-scrubbed parallax + editorial chapters.
   ===================================================================== */
.xc { display: block; }
.xc__back {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--d2);
  text-decoration: none; padding: clamp(16px,2.4vw,30px) 0 0;
  transition: color .3s ease;
}
.xc__back:hover { color: var(--terra); }

/* full-bleed breakout of the padded .frame */
.xhero, .xfull { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }

/* ---- HERO ---- */
.xhero {
  height: min(92vh, 900px); min-height: 520px; overflow: hidden;
  display: flex; align-items: flex-end; margin-top: clamp(14px,2vw,26px);
  background: #06080c;
}
.xhero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.xhero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.14); will-change: transform;
}
.xhero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(6,8,12,.86) 0%, rgba(6,8,12,.34) 44%,
    rgba(6,8,12,.08) 72%, rgba(6,8,12,.30) 100%);
}
.xhero__in {
  position: relative; z-index: 2; width: 100%; color: #fff;
  padding: 0 clamp(24px,6vw,110px) clamp(34px,5vw,80px);
}
.xhero__kicker { display: block; color: rgba(255,255,255,.72); margin-bottom: clamp(16px,2vw,26px); }
.xhero__title {
  font-family: var(--serif); font-weight: 300; color: #fff;
  font-size: clamp(52px,11vw,168px); line-height: .92; letter-spacing: -.02em; margin: 0;
}
.xhero__title .it { font-style: italic; color: #fff; }
.xhero__lede {
  font-family: var(--serif); font-weight: 300; color: rgba(255,255,255,.9);
  font-size: clamp(17px,2vw,25px); line-height: 1.5; max-width: 46ch;
  margin-top: clamp(18px,2vw,30px);
}
.xhero__cue {
  position: absolute; right: clamp(24px,6vw,110px); bottom: clamp(34px,5vw,80px);
  z-index: 2; color: rgba(255,255,255,.6); writing-mode: vertical-rl; letter-spacing: .3em;
}

/* ---- SPECS band ---- */
.xspecs {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: clamp(40px,6vw,90px); padding: clamp(22px,2.6vw,34px) 0;
}
.xspecs__row { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(16px,2vw,30px); }
.xspec { display: flex; flex-direction: column; gap: 8px; }
.xspec .k { color: var(--d2); }
.xspec .v { font-family: var(--serif); font-weight: 300; font-size: clamp(16px,1.5vw,21px); color: var(--ink); }

/* ---- STATEMENT ---- */
.xstate { padding: clamp(90px,15vw,220px) 0; text-align: center; }
.xstate__p {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(30px,5.2vw,74px); line-height: 1.08; letter-spacing: -.02em;
  max-width: 20ch; margin: 0 auto;
}
.xstate__p .it { font-style: italic; color: var(--terra); }

/* ---- CHAPTER (narrative) ---- */
.xchap {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr);
  gap: clamp(20px,4vw,90px); padding: clamp(54px,8vw,120px) 0; align-items: start;
}
.xchap__n { color: var(--terra); padding-top: .55em; }
.xchap__p {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(22px,2.6vw,38px); line-height: 1.34; letter-spacing: -.01em;
}
.xchap__p .it { font-style: italic; color: var(--terra); }

/* ---- FULL-BLEED figure ---- */
.xfull { height: min(86vh, 860px); overflow: hidden; }
.xfull img { width: 100%; height: 122%; object-fit: cover; display: block; will-change: transform; }
.xfull__cap { position: absolute; left: clamp(24px,6vw,110px); bottom: clamp(22px,3vw,42px); z-index: 2; }
.xfull__cap .mono, .xduo__fig figcaption {
  color: #fff; background: rgba(6,8,12,.36); -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 2px;
}

/* ---- TWO-UP gallery ---- */
.xduo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px,1.4vw,22px); padding: clamp(8px,2vw,26px) 0; }
.xduo__fig { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.xduo__fig img { width: 100%; height: 118%; object-fit: cover; display: block; will-change: transform; }
.xduo__fig figcaption { position: absolute; left: 14px; bottom: 13px; }

/* ---- QUOTE ---- */
.xquote { padding: clamp(90px,14vw,200px) 0; text-align: center; max-width: 26ch; margin: 0 auto; }
.xquote blockquote {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(30px,5vw,68px); line-height: 1.1; letter-spacing: -.02em;
}
.xquote .it { font-style: italic; color: var(--terra); }
.xquote cite { display: block; font-style: normal; margin-top: clamp(22px,3vw,44px); color: var(--d2); }

/* ---- NEXT ---- */
.xnext {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px 30px;
  flex-wrap: wrap; border-top: 1px solid var(--line);
  padding: clamp(40px,6vw,90px) 0; text-decoration: none; color: var(--ink);
}
.xnext__k { color: var(--d2); }
.xnext__t {
  font-family: var(--serif); font-weight: 300; font-size: clamp(30px,5vw,64px);
  letter-spacing: -.02em; transition: color .3s ease;
}
.xnext:hover .xnext__t { color: var(--terra); }
.xnext__go { color: var(--terra); }

/* proof block sits comfortably inside the flagship flow */
.xc .proof { padding-top: clamp(30px,4vw,60px); padding-bottom: clamp(30px,4vw,60px); }

/* ---- mobile ---- */
@media (max-width: 760px) {
  .xhero { height: min(84vh, 720px); }
  .xhero__title { font-size: clamp(44px,15vw,90px); }
  .xhero__cue { display: none; }
  .xspecs__row { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .xchap { grid-template-columns: 1fr; gap: 14px; padding: clamp(44px,12vw,80px) 0; }
  .xduo { grid-template-columns: 1fr; }
  .xduo__fig { aspect-ratio: 4 / 3; }
  .xfull { height: 64vh; }
  .xstate__p { font-size: clamp(28px,8vw,44px); }
  .xquote blockquote { font-size: clamp(28px,8vw,44px); }
}

/* =====================================================================
   HERO — signature line-drawn architectural tower (homepage)
   ===================================================================== */
.hero { min-height: calc(100vh - 96px); display: flex; align-items: center;
  padding: clamp(16px,3vw,52px) 0 clamp(28px,5vw,72px); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px,5vw,84px); align-items: center; width: 100%; }
.hero__copy { display: flex; flex-direction: column; }
.hero__copy .home__kicker { margin-bottom: clamp(20px,2.4vw,34px); }
.hero__statement { margin: 0; }
.hero__sub { font-family: var(--serif); font-weight: 300; color: var(--d1);
  font-size: clamp(17px,1.55vw,22px); line-height: 1.5; max-width: 40ch;
  margin-top: clamp(20px,2.2vw,32px); }
.hero__cue { display: inline-block; margin-top: clamp(28px,4vw,52px);
  color: var(--d2); letter-spacing: .18em; }

.hero__art { position: relative; height: min(78vh, 780px); min-height: 420px;
  display: flex; align-items: flex-end; justify-content: center; will-change: transform; }
.tower { width: 100%; height: 100%; display: block; overflow: visible; }
.tower line, .tower path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tower [data-l="floor"]  { stroke: var(--ink);   stroke-width: 1;   opacity: .14; }
.tower [data-l="mull"]   { stroke: var(--ink);   stroke-width: 1;   opacity: .09; }
.tower [data-l="ctx"]    { stroke: var(--ink);   stroke-width: 1;   opacity: .09; }
.tower [data-l="ground"] { stroke: var(--ink);   stroke-width: 1;   opacity: .24; }
.tower [data-l="tick"]   { stroke: var(--ink);   stroke-width: 1;   opacity: .16; }
.tower [data-l="edge"]   { stroke: var(--terra); stroke-width: 1.6; opacity: .9; }
.tower [data-l="spire"]  { stroke: var(--terra); stroke-width: 1.6; opacity: 1; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: clamp(12px,4vw,30px); }
  .hero__grid { grid-template-columns: 1fr; gap: clamp(20px,6vw,40px); }
  .hero__art { order: 2; height: min(56vh, 460px); min-height: 320px; }
  .hero__copy { order: 1; }
  .hero__cue { display: none; }
}

/* ---- 3D hero canvas (WebGL tower) ---- */
.tower-gl { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  display: block; pointer-events: none; }
.gl-on .hero__art .tower { display: none; }               /* hide SVG fallback */
.hero__art::before { content: ""; position: absolute; inset: -12% -8%; z-index: 0;
  pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.gl-on .hero__art::before { opacity: 1; }
html[data-theme="dark"] .hero__art::before {
  background: radial-gradient(58% 54% at 58% 40%, rgba(94,124,255,.18), transparent 72%); }
html:not([data-theme="dark"]) .hero__art::before {
  background: radial-gradient(58% 54% at 58% 40%, rgba(29,63,216,.06), transparent 72%); }
