/* ============================================================
   REFRAME — "Luxe Journey"
   Dark NY-luxury consulting × fluid high-craft motion ×
   the prism spectrum as a living, flowing accent.
   ============================================================ */
:root {
  --bg:      #0a0a0e;
  --bg-2:    #101016;
  --bg-3:    #16161f;
  --fg:      #f4f3ef;       /* warm white */
  --fg-2:    #b9b8b2;
  --muted:   #76757d;
  --line:    rgba(244,243,239,0.14);
  --line-soft: rgba(244,243,239,0.07);

  /* prism spectrum */
  --s-red:#ff5e7e; --s-orange:#ff9a4d; --s-yellow:#ffd24d; --s-green:#4dffa6;
  --s-cyan:#43e0ff; --s-indigo:#6b8bff; --s-violet:#c46bff;
  --prism: linear-gradient(100deg,
    var(--s-red), var(--s-orange), var(--s-yellow), var(--s-green),
    var(--s-cyan), var(--s-indigo), var(--s-violet), var(--s-red));

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Archivo', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.2rem, 4vw, 3.5rem);
  --maxw: 92rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.55; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lock { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
svg { display: block; }
::selection { background: var(--s-indigo); color: #0a0a0e; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* text accents — clean solid (corporate); no spectrum on type */
.prism-text { color: var(--fg); -webkit-text-fill-color: currentColor; }
@keyframes prismflow { to { background-position: 220% center; } }
.prism-rule { height: 1px; background: var(--line); border: 0; }

/* ── Preloader ───────────────────────────────────────────── */
.preloader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease); }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__brand { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.04em; }
.preloader__bar { width: min(280px, 56vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader__bar i { position: absolute; inset: 0 100% 0 0; background: var(--s-indigo); transition: right 0.2s linear; }
.preloader__pct { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--muted); }

/* ── Cursor ──────────────────────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); transform: translate(-50%,-50%); pointer-events: none; z-index: 250; mix-blend-mode: difference; transition: width .25s var(--ease), height .25s var(--ease); }
.cursor-ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 250; transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease); opacity: 0; }
.cursor-ring.is-hot { width: 64px; height: 64px; border-color: var(--s-indigo); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ── Nav ─────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.15rem var(--pad); transition: background .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10,10,14,0.72); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em; }
.brand__mark { width: 22px; height: 22px; color: var(--fg); }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); justify-self: center; }
.nav__links a { font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .16em; position: relative; padding-bottom: 3px; color: var(--fg-2); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--s-indigo); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--fg); } .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta { justify-self: end; display: flex; align-items: center; gap: 1.1rem; }
.nav__clock { font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
@media (max-width: 880px) { .nav__links, .nav__clock { display: none; } .nav { grid-template-columns: 1fr auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; padding: .85rem 1.4rem; border-radius: 999px; position: relative; border: 1px solid var(--line); color: var(--fg); transition: color .3s var(--ease), border-color .3s var(--ease); will-change: transform; }
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--s-indigo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s var(--ease); }
.btn:hover { border-color: transparent; } .btn:hover::before { opacity: 1; }
.btn--sm { padding: .6rem 1rem; font-size: .68rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(2.5rem, 6vh, 5rem); overflow: hidden; }
.hero__aura { position: absolute; inset: -20% -10% 0; z-index: 0; pointer-events: none; filter: blur(90px); opacity: 0.55; }
.hero__aura b { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; mix-blend-mode: screen; }
.hero__aura b:nth-child(1) { background: radial-gradient(circle, var(--s-indigo), transparent 60%); top: -6%; left: 6%; animation: drift1 22s var(--ease) infinite; }
.hero__aura b:nth-child(2) { background: radial-gradient(circle, var(--s-violet), transparent 60%); top: 10%; right: 2%; animation: drift2 26s var(--ease) infinite; }
.hero__aura b:nth-child(3) { background: radial-gradient(circle, var(--s-cyan), transparent 62%); bottom: -10%; left: 32%; animation: drift3 30s var(--ease) infinite; }
@keyframes drift1 { 50% { transform: translate(8%, 10%) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-10%, 6%) scale(0.9); } }
@keyframes drift3 { 50% { transform: translate(6%, -8%) scale(1.1); } }
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__eyebrow { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; transform: translateY(110%); }
.is-in .hero h1 .ln > span { transform: translateY(0); transition: transform 1.1s var(--ease-out); }
.is-in .hero h1 .ln:nth-child(2) > span { transition-delay: .09s; }
.is-in .hero h1 .ln:nth-child(3) > span { transition-delay: .18s; }
.hero__sub { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 5vw, 3.5rem); align-items: end; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--fg-2); max-width: 42ch; }
.hero__lead b { color: var(--fg); font-weight: 600; }
.hero__cue { justify-self: end; text-align: right; }
@media (max-width: 760px) { .hero__sub { grid-template-columns: 1fr; } .hero__cue { justify-self: start; text-align: left; } }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1rem; white-space: nowrap; }
.marquee__t { display: inline-flex; gap: 2.5rem; animation: scroll 30s linear infinite; }
.marquee__t span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; text-transform: uppercase; }
.marquee__t span::after { content: "/"; margin-left: 2.5rem; color: var(--muted); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Journey chapters ────────────────────────────────────── */
.section { padding-block: clamp(5rem, 12vw, 10rem); }
.chap { display: grid; grid-template-columns: 4.5rem 1fr; gap: clamp(1rem, 3vw, 3rem); padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.chap__no { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); padding-top: .6rem; }
.chap__title { font-size: clamp(1.5rem, 3.2vw, 2.75rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 20ch; }
.chap__lead { margin-top: clamp(1.25rem, 2.5vw, 2rem); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--fg-2); max-width: 44ch; }
@media (max-width: 640px) { .chap { grid-template-columns: 1fr; gap: 1rem; } }

/* Capabilities */
.caps { border-top: 1px solid var(--fg); }
.cap { display: grid; grid-template-columns: 4rem 1fr auto; gap: clamp(1rem, 3vw, 3rem); align-items: center; padding-block: clamp(1.4rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); cursor: pointer; }
.cap__no { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.cap__title { font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1.05; letter-spacing: -0.02em; transition: transform .45s var(--ease); }
.cap__desc { font-size: .95rem; color: var(--fg-2); max-width: 34ch; opacity: .5; transition: opacity .45s var(--ease); }
.cap:hover .cap__title { transform: translateX(16px); }
.cap:hover .cap__desc { opacity: 1; }
.cap__arrow { font-family: var(--font-mono); opacity: 0; transition: opacity .45s var(--ease); }
.cap:hover .cap__arrow { opacity: 1; }
@media (max-width: 760px) { .cap { grid-template-columns: 2.4rem 1fr; } .cap__desc, .cap__arrow { display: none; } }

/* Proof */
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof-cell { background: var(--bg); padding: clamp(1.5rem,3vw,2.5rem); }
.proof-cell__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,3.4vw,2.8rem); letter-spacing: -0.03em; line-height: 1; }
.proof-cell__l { margin-top: .6rem; font-size: .9rem; color: var(--fg-2); }
@media (max-width: 860px) { .proof-grid { grid-template-columns: repeat(2,1fr); } }
.standards { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(2rem,4vw,3rem); }
.std { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); }
.bigquote { border-top: 1px solid var(--fg); padding-top: clamp(2rem,4vw,3rem); margin-top: clamp(3rem,7vw,6rem); }
.bigquote blockquote { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,4vw,3rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 24ch; margin: 0; }
.bigquote cite { display: block; margin-top: 1.5rem; font-style: normal; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* Closer */
.closer { padding-block: clamp(6rem,16vw,13rem); text-align: center; border-top: 1px solid var(--fg); }
.closer h2 { font-size: clamp(1.75rem, 4vw, 3.25rem); line-height: 1.04; letter-spacing: -0.02em; }
.closer .btn { margin-top: clamp(2rem,4vw,3rem); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: clamp(2.5rem,5vw,4rem); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,3vw,2.4rem); letter-spacing: -0.03em; }
.foot h4 { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.foot a { display: block; padding: .3rem 0; font-size: .95rem; color: var(--fg-2); transition: color .25s var(--ease); }
.foot a:hover { color: var(--fg); }
.foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

a:focus-visible, button:focus-visible, .cap:focus-visible { outline: 2px solid var(--s-indigo); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prism-text, .prism-rule, .btn::before { animation: none; }
  .marquee__t { animation: none; }
  .hero__aura b { animation: none; }
  .hero h1 .ln > span { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .cursor-ring, .preloader { display: none; }
}

/* ============================================================
   PRISM-SPACE — fixed WebGL background + readability layering
   ============================================================ */
#space { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.space-veil {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 42%, transparent 30%, rgba(10,10,14,0.5) 78%, rgba(10,10,14,0.82) 100%),
    linear-gradient(180deg, rgba(10,10,14,0.35), transparent 14%, transparent 86%, rgba(10,10,14,0.55));
}
/* content rides above the field */
.nav { z-index: 100; }
main, .foot { position: relative; z-index: 2; }
.preloader { z-index: 300; }
.cursor, .cursor-ring { z-index: 250; }

/* when the field is live, drop the CSS auras (the canvas is the atmosphere) */
body.has-space .hero__aura { display: none; }

/* keep section copy legible over the moving field — local scrims behind text blocks */
body.has-space .hero__inner,
body.has-space .chap,
body.has-space .caps,
body.has-space #proof,
body.has-space .closer { position: relative; }
body.has-space .chap::before,
body.has-space #proof::before {
  content: ""; position: absolute; inset: -1.5rem -2rem; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 80% at 30% 50%, rgba(10,10,14,0.6), transparent 75%);
  filter: blur(10px);
}

/* ============================================================
   AI-AT-WORK — code-typing background (variant)
   ============================================================ */
.codewall { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0.2; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--fg-2); }
.codewall .col { position: absolute; top: -1.5rem; padding: 0 1.4rem; white-space: pre; }
.codewall .ln { overflow: hidden; text-overflow: clip; }
.codewall .kw { color: var(--s-cyan); font-style: normal; }
.codewall .str { color: var(--s-green); font-style: normal; }
.codewall .cm { color: var(--muted); font-style: normal; }
.codewall .caret { display: inline-block; width: 6px; height: 1em; transform: translateY(2px); margin-left: 1px; background: var(--s-indigo); animation: caretblink 1s steps(2,start) infinite; }
@keyframes caretblink { 50% { opacity: 0; } }

/* custom cursor removed per request — native cursor only */
.cursor, .cursor-ring { display: none !important; }

/* ============================================================
   INTERIOR — shared patterns (solutions / process / tooling)
   ============================================================ */
.pg-hero { padding: clamp(9rem,18vh,13rem) 0 clamp(2.5rem,6vw,4.5rem); }
.pg-hero h1 { font-size: clamp(2.1rem,5vw,4rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 18ch; }
.pg-hero .lede { margin-top: 1.25rem; font-size: clamp(1.05rem,1.5vw,1.35rem); color: var(--fg-2); max-width: 50ch; }
.section-head h2 { font-size: clamp(1.6rem,3.4vw,2.8rem); letter-spacing: -0.02em; max-width: 22ch; }
.section-head .body { margin-top: 1rem; color: var(--fg-2); max-width: 50ch; }
.section-head { margin-bottom: clamp(1.5rem,3vw,2.5rem); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1rem; margin-top: clamp(1.5rem,3vw,2.5rem); }
.feature-card { border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; background: rgba(255,255,255,0.02); position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
.feature-card .k { font-family: var(--font-mono); font-size: .7rem; color: var(--s-indigo); text-transform: uppercase; letter-spacing: .08em; }
.feature-card h3 { font-size: 1.12rem; margin: .7rem 0 .5rem; }
.feature-card p { color: var(--fg-2); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: clamp(1.5rem,3vw,2.5rem); }
.step { background: var(--bg); padding: 1.5rem; }
.step .n { font-family: var(--font-mono); font-size: .7rem; color: var(--s-cyan); }
.step h4 { font-size: 1.02rem; margin: .5rem 0 .4rem; }
.step p { color: var(--fg-2); font-size: .85rem; }

/* dual mandate split (homepage) */
.mandates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(1.5rem,3vw,2.5rem); }
.mandate { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.8rem,3vw,2.6rem); background: rgba(255,255,255,0.02); overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease); display: block; }
.mandate:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
.mandate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--prism); }
.mandate .k { font-family: var(--font-mono); font-size: .72rem; color: var(--s-indigo); text-transform: uppercase; letter-spacing: .08em; }
.mandate h3 { font-size: clamp(1.4rem,2.6vw,2rem); margin: .7rem 0 .6rem; }
.mandate p { color: var(--fg-2); max-width: 40ch; }
.mandate .arrow { margin-top: 1.3rem; font-family: var(--font-mono); font-size: .8rem; color: var(--s-cyan); }
@media (max-width: 760px) { .mandates { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE NAV — hamburger + overlay (injected by nav.js)
   ============================================================ */
.nav__burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,14,0.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease); }
.nav__overlay.open { opacity: 1; visibility: visible; }
.nav__overlay-links { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; padding: 2rem; }
.nav__overlay-links a { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem,7vw,2.4rem); letter-spacing: -0.02em; color: var(--fg); }
.nav__overlay-links a.nav__overlay-cta { margin-top: 1.2rem; align-self: center; font-family: var(--font-body); font-weight: 600; font-size: .95rem; padding: .85rem 1.6rem; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 880px) { .nav__burger { display: inline-flex; } }
/* touch targets */
.btn--sm { min-height: 40px; }

/* ============================================================
   READABILITY — content over the city background
   ============================================================ */
/* dim the city so it reads as atmosphere, not foreground */
body.has-space #space { opacity: 0.5; }

/* stronger, content-backing veil */
.space-veil {
  background:
    radial-gradient(130% 95% at 50% 38%, transparent 14%, rgba(7,7,11,0.5) 68%, rgba(7,7,11,0.9) 100%),
    linear-gradient(180deg, rgba(7,7,11,0.55) 0%, rgba(7,7,11,0.3) 24%, rgba(7,7,11,0.45) 60%, rgba(7,7,11,0.85) 100%);
}

/* legibility shadow on text that sits directly over the city */
body.has-space main h1, body.has-space main h2, body.has-space main h3, body.has-space main h4,
body.has-space main p, body.has-space main li, body.has-space main .label,
body.has-space main .cap__title, body.has-space main .cap__desc, body.has-space main .chap__lead {
  text-shadow: 0 1px 14px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.6);
}

/* descriptions were hover-reveal (50%) — too faint over a busy bg */
.cap__desc { opacity: 0.82; }
.cap:hover .cap__desc { opacity: 1; }

/* cards become solid reading panels over the city */
body.has-space .feature-card, body.has-space .mandate, body.has-space .firm .card { background: rgba(12,12,18,0.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* team grid */
.team-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; margin-top:2.5rem; }
.team-card { background:rgba(12,12,18,0.7); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); border:1px solid rgba(244,243,239,0.1); border-radius:6px; padding:1.5rem; text-align:left; transition:border-color .2s,transform .2s; }
.team-card:hover { border-color:var(--s-cyan); transform:translateY(-3px); }
.team-card img { width:84px; height:84px; border-radius:50%; object-fit:cover; filter:grayscale(1); transition:filter .3s; }
.team-card:hover img { filter:grayscale(0); }
.team-card h3 { font-size:1.05rem; margin:1rem 0 .15rem; }
.team-card .role { font-family:var(--mono,monospace); font-size:.72rem; letter-spacing:.04em; color:var(--s-cyan); text-transform:uppercase; }
.team-card .li { display:inline-flex; align-items:center; gap:.4rem; margin-top:.9rem; font-size:.82rem; color:var(--muted,#8a93a8); text-decoration:none; }
.team-card .li:hover { color:var(--fg); }
.team-card .li svg { width:15px; height:15px; fill:currentColor; }
@media (max-width:900px){ .team-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .team-grid { grid-template-columns:1fr; } }

/* local scrim behind the un-carded list sections (caps / disc / gate / chap) */
body.has-space .caps, body.has-space .disc, body.has-space .gate, body.has-space .chap, body.has-space .section-head, body.has-space .pg-hero, body.has-space .closer { position: relative; isolation: isolate; }
body.has-space .caps::before, body.has-space .disc::before, body.has-space .gate::before, body.has-space .chap::after, body.has-space .pg-hero::before {
  content: ""; position: absolute; inset: -1rem -1.5rem; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,11,0.78), rgba(7,7,11,0.5) 60%, rgba(7,7,11,0.2));
  filter: blur(8px); border-radius: 16px;
}

/* ============================================================
   SCROLL PROGRESS — prism bar across the top
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; background: rgba(255,255,255,0.05); }
.scroll-progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--prism); box-shadow: 0 0 12px 1px rgba(107,123,255,0.5); transition: transform 80ms linear; }

/* code-wall pages (engineering): make the background visible, lighten the veil */
.codewall { opacity: 0.3; }
body:not(.has-space) .space-veil {
  background: linear-gradient(180deg, rgba(10,10,14,0.28), transparent 18%, transparent 82%, rgba(10,10,14,0.55));
}

/* ============================================================
   BRAND LOGO MORPH — wordmark → bracket-frame "R" on scroll
   ============================================================ */
.brand__mark { overflow: visible; }
.brand__brackets { transition: transform .5s var(--ease); transform-origin: 32px 32px; }
.brand__r { opacity: 0; transform: scale(0.6); transform-origin: 32px 32px; transition: opacity .45s var(--ease), transform .5s var(--ease); }
.brand__wm { display: inline-block; max-width: 9rem; overflow: hidden; white-space: nowrap; opacity: 1; transition: max-width .55s var(--ease), opacity .4s var(--ease), transform .5s var(--ease); }
.nav.is-scrolled .brand__brackets { transform: scale(0.82); }
.nav.is-scrolled .brand__r { opacity: 1; transform: scale(1); }
.nav.is-scrolled .brand__wm { max-width: 0; opacity: 0; transform: translateX(-6px); }
@media (prefers-reduced-motion: reduce) { .brand__brackets, .brand__r, .brand__wm { transition: none; } }

/* ============================================================
   FOOTER — richer company footer (office, social, legal)
   ============================================================ */
.foot__grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr 1fr; }
.foot__social { display: flex; gap: 1rem; margin-top: 1.1rem; }
.foot__social a { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); }
.foot__social a:hover { color: var(--fg); }
.foot__addr { font-style: normal; color: var(--fg-2); font-size: .9rem; line-height: 1.65; }
.foot__addr a { color: var(--s-cyan); }
@media (max-width: 1000px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }
