/* =========================================================
   NicoMach — travertine / brushed-gold design system
   ========================================================= */
:root {
  /* palette sampled from the reference imagery */
  --cream: #F3EDE4;
  --travertine: #E8DFD1;
  --stone: #D6C8B4;
  --sand: #C4B096;
  --ink: #1E1913;
  --ink-2: #574D43;      /* 7.4:1 on cream */
  --ink-3: #7A6E61;      /* 4.6:1 on cream — small labels only */
  --gold: #B8955E;
  --gold-deep: #8C6A38;  /* 4.7:1 on cream */
  --terracotta: #B4643B;
  --espresso: #241D17;
  --espresso-2: #33291F;
  --on-dark: #F1E9DD;
  --on-dark-2: #BFB2A0;
  --ok: #4F6B45;
  --bad: #A0412A;

  --f-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --z-grain: 90; --z-nav: 100; --z-menu: 110; --z-cursor: 200; --z-loader: 300;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--cream); }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.defs { position: absolute; width: 0; height: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.eyebrow--light { color: var(--on-dark-2); }

.h2 {
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: .98;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.h2 em { color: var(--gold-deep); letter-spacing: -0.02em; }
.h2--light { color: var(--on-dark); }
.h2--light em { color: var(--gold); }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.fine { font-size: 13px; color: var(--ink-3); }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--lg { width: 30px; height: 30px; stroke-width: 1.3; color: var(--gold-deep); }

/* ---------- buttons ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark::before { background: var(--gold-deep); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light::before { background: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { color: var(--cream); }
.btn .i { transition: transform .4s var(--ease-out); }
.btn:hover .i { transform: translateX(4px); }

.link-u {
  position: relative; text-decoration: none; font-size: 15px; padding: 12px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-u:hover { background-size: 0 1px; background-position: 100% calc(100% - 8px); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: var(--z-loader); pointer-events: none; background: var(--cream); }
.loader__inner {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto 1fr auto; padding: 28px var(--gutter);
}
.loader__brand { font-weight: 500; font-size: 18px; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 12px; }
.loader__mark { width: 56px; height: 47px; }
.loader__mark .nm-n { --logo-n: var(--gold-deep); }
.loader__count {
  align-self: end; justify-self: start;
  font-size: clamp(96px, 22vw, 340px); line-height: .8; letter-spacing: -0.06em; font-weight: 300;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.loader__count::after { content: "%"; font-family: var(--f-serif); font-style: italic; font-size: .35em; color: var(--gold-deep); margin-left: .05em; }
.loader__note { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 20px; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s, color .4s, backdrop-filter .4s;
  color: var(--cream);
}
.nav.is-scrolled { background: rgba(243, 237, 228, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--ink); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-dark { color: var(--on-dark); background: rgba(36, 29, 23, .7); }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
/* logo mark: N stays cream on photo/dark, turns deep gold on light surfaces so it never disappears */
.brand__mark { width: 44px; height: 37px; flex: none; filter: drop-shadow(0 1px 6px rgba(30,25,19,.18)); transition: transform .6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.nav.is-scrolled:not(.is-dark) .brand__mark { --logo-n: var(--gold-deep); filter: none; }
.brand__word { font-size: 21px; font-weight: 600; letter-spacing: -0.045em; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { text-decoration: none; font-size: 14px; padding: 10px 14px; border-radius: 999px; transition: background-color .3s; }
.nav__links a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.nav__links a.is-active { background: color-mix(in srgb, currentColor 14%, transparent); }
.nav .btn--dark { background: var(--cream); color: var(--ink); }
.nav .btn--dark:hover { color: var(--cream); }
.nav.is-scrolled .btn--dark { background: var(--ink); color: var(--cream); }
.nav.is-dark .btn--dark { background: var(--on-dark); color: var(--ink); }
.nav__toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; margin-left: auto; z-index: calc(var(--z-menu) + 1); }
.nav__toggle i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.nav__toggle i:nth-of-type(1) { top: 20px; }
.nav__toggle i:nth-of-type(2) { top: 27px; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) { top: 23.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) { top: 23.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--espresso); color: var(--on-dark);
  display: flex; align-items: flex-end; padding: 96px var(--gutter) 48px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu nav { display: grid; gap: 4px; }
.menu a { font-size: clamp(36px, 10vw, 64px); line-height: 1.05; letter-spacing: -0.04em; text-decoration: none; padding: 4px 0; }
.menu a:last-child { font-family: var(--f-serif); font-style: italic; color: var(--gold); }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  body.menu-open .nav { color: var(--on-dark); background: transparent; backdrop-filter: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; color: var(--cream); overflow: hidden; background: var(--cream); }
.hero__media { position: absolute; inset: 0; clip-path: inset(0% 0% 0% 0% round 0px); will-change: clip-path; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(30,25,19,.35) 0%, rgba(30,25,19,0) 30%, rgba(30,25,19,0) 45%, rgba(30,25,19,.62) 100%); }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(28px, 5vh, 56px);
  max-width: var(--max); margin-inline: auto;
}
.hero__eyebrow { color: var(--cream); margin-bottom: 18px; text-shadow: 0 1px 12px rgba(30,25,19,.5); }
.hero__title {
  font-size: clamp(56px, 11.4vw, 196px);
  line-height: .9; letter-spacing: -0.058em; font-weight: 500;
  text-shadow: 0 2px 40px rgba(30,25,19,.25);
}
.hero__title em { letter-spacing: -0.03em; color: #F6E7CC; }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: clamp(24px, 4vh, 44px); }
.hero__lede { max-width: 460px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(243,237,228,.92); }
.hero__actions { display: flex; align-items: center; gap: 28px; }
.hero__actions .link-u { color: var(--cream); }
.hero__scroll { position: absolute; right: var(--gutter); top: 50%; z-index: 2; writing-mode: vertical-rl; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; color: rgba(243,237,228,.8); }
.hero__scroll span { width: 1px; height: 64px; background: rgba(243,237,228,.35); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- problem ---------- */
.problem { padding: clamp(110px, 16vw, 220px) 0 0; position: relative; background: var(--cream); }
.problem__statement {
  font-size: clamp(30px, 4.3vw, 66px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400;
  max-width: 22ch; text-wrap: pretty;
}
.problem__statement .sw { opacity: .16; transition: none; }
.problem__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; margin-top: clamp(64px, 9vw, 140px); }
.problem__card { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.3; }
.problem__card img { width: 100%; height: 118%; object-fit: cover; object-position: 70% 50%; }
.problem__costs { display: grid; }
.problem__costs li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 28px 0; border-top: 1px solid var(--stone); }
.problem__costs li:last-child { border-bottom: 1px solid var(--stone); }
.problem__costs h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.problem__costs p { color: var(--ink-2); max-width: 38ch; }
.num { font-family: var(--f-mono); font-size: 12px; color: var(--gold-deep); padding-top: 9px; letter-spacing: .08em; }
@media (max-width: 820px) { .problem__grid { grid-template-columns: 1fr; } }

.marquee { margin-top: clamp(90px, 12vw, 180px); overflow: hidden; white-space: nowrap; border-block: 1px solid var(--stone); padding: 18px 0; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span { font-size: clamp(56px, 9vw, 150px); line-height: 1; letter-spacing: -0.05em; font-weight: 300; padding-right: .3em; }
.marquee__track i { font-style: normal; font-family: var(--f-serif); color: var(--gold); }

/* ---------- netting ---------- */
.netting { background: var(--travertine); }
.netting__pin {
  min-height: 100svh; max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: 96px var(--gutter) 48px;
}
.netting__steps { margin: 36px 0 32px; display: grid; gap: 4px; counter-reset: s; }
.netting__steps li {
  position: relative; padding: 14px 0 14px 40px; color: var(--ink-3);
  border-top: 1px solid var(--stone); transition: color .5s var(--ease-out);
  max-width: 44ch; font-size: 15.5px;
}
.netting__steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: 17px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.netting__steps li b { display: block; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; color: inherit; margin-bottom: 2px; }
.netting__steps li.is-active { color: var(--ink); }
.netting__steps li.is-active::before { color: var(--gold-deep); }
.netting__stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-bottom: 14px; }
.netting__stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.netting__stats dd { font-size: clamp(34px, 4vw, 60px); letter-spacing: -0.05em; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.netting__stage { position: relative; }
.graph { width: 100%; height: auto; max-height: 82svh; overflow: visible; }
.graph text { font-family: var(--f-sans); }
.g-edge path.line { fill: none; stroke: var(--ink-2); stroke-width: 1.3; color: var(--ink-2); }
.g-edge .amt { font-family: var(--f-mono); font-size: 12px; fill: var(--ink-2); }
.g-edge .amt-bg { fill: var(--travertine); }
.g-net path.line { fill: none; stroke: #9A7642; stroke-width: 4; stroke-linecap: round; }
.g-net .amt { font-family: var(--f-mono); font-size: 15px; fill: var(--ink); font-weight: 500; }
.g-net .amt-bg { fill: var(--cream); stroke: var(--gold); stroke-width: 1; }
.g-node circle.disc { fill: var(--cream); stroke: var(--sand); stroke-width: 1.2; }
.g-node circle.ring { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: 0; }
.g-node .name { font-size: 15px; font-weight: 500; fill: var(--ink); letter-spacing: -0.02em; }
.g-node .role { font-family: var(--f-mono); font-size: 10.5px; fill: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.g-node .bal { font-family: var(--f-mono); font-size: 13px; font-weight: 500; opacity: 0; }
.g-node .bal.pos { fill: var(--ok); }
.g-node .bal.neg { fill: var(--bad); }
.g-node .ini { font-size: 17px; font-weight: 600; fill: var(--ink); letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .netting__pin { grid-template-columns: 1fr; padding-top: 88px; gap: 8px; align-content: center; }
  .netting__steps { margin: 18px 0 14px; }
  .netting__steps li { padding: 8px 0 8px 34px; font-size: 14px; }
  .netting__steps li::before { top: 11px; }
  /* collapse (not display:none) so the CSS counter still numbers 01/02/03 correctly */
  .netting__steps li:not(.is-active) { height: 0; padding: 0; border: 0; overflow: hidden; }
  .netting__stage { order: -1; }
  .graph { max-height: 44svh; }
  .netting .h2 { font-size: clamp(32px, 8vw, 44px); }
  .netting .eyebrow { margin-bottom: 12px; }
  .netting__stats dd { font-size: 30px; }
}

/* ---------- how ---------- */
.how { background: var(--cream); overflow-x: clip; }
.how__pin { background: var(--cream); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 3.5vh, 48px); padding: 92px 0 40px; }
.how .h2 { font-size: clamp(40px, 5vw, 80px); }
.how__head { padding-inline: var(--gutter); max-width: var(--max); width: 100%; margin-inline: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.how__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.how__progress { width: min(260px, 30vw); height: 1px; background: var(--stone); position: relative; margin-bottom: 14px; }
.how__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.how__track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.step {
  width: clamp(300px, 30vw, 440px); flex: none;
  background: var(--travertine); border-radius: var(--r-lg); padding: 32px 30px 30px;
  display: flex; flex-direction: column; min-height: clamp(440px, 58svh, 540px);
  transition: background-color .5s var(--ease-out), transform .6s var(--ease-out);
}
.step:hover { background: var(--stone); }
.step__n { font-family: var(--f-serif); font-style: italic; font-size: 56px; line-height: 1; color: var(--gold-deep); margin-bottom: 18px; }
.step h3 { font-size: 34px; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 10px; line-height: 1; }
.step > p { color: var(--ink-2); font-size: 15.5px; max-width: 36ch; }

.mock { margin-top: auto; padding-top: 28px; }
.mock > * + * { margin-top: 8px; }
.mock__file { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; background: var(--cream); padding: 8px 12px; border-radius: 999px; }
.mock__row { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; background: var(--cream); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; }
.mock__row span:first-child { color: var(--ink-3); font-family: var(--f-mono); font-size: 11px; }
.mock__row.ok { box-shadow: inset 3px 0 0 var(--ok); }
.mock__row.bad { box-shadow: inset 3px 0 0 var(--bad); }
.mock__alert { font-size: 13px; background: #F3DDD2; color: #7A2F1C; padding: 10px 12px; border-radius: var(--r-sm); }
.mock__alert--soft { background: var(--cream); color: var(--ink-2); }
.mock__label { font-size: 13px; color: var(--ink-2); }
.mock__big { font-size: 40px; letter-spacing: -0.04em; line-height: 1.1; }
.mock__btns { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--sand); font-size: 13px; }
.chip--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: #DCE3D3; color: #33472B; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--gold { background: rgba(184,149,94,.18); color: var(--gold); }
.mock__tabs { display: inline-flex; background: var(--cream); padding: 4px; border-radius: 999px; gap: 2px; font-family: var(--f-mono); font-size: 12px; }
.mock__tabs span { padding: 6px 12px; border-radius: 999px; color: var(--ink-3); }
.mock__tabs .is-on { background: var(--ink); color: var(--cream); }
.mock__compute { display: flex; align-items: baseline; gap: 8px; padding-top: 6px; }
.mock__compute .mono { font-size: 48px; letter-spacing: -0.05em; line-height: 1; }
.mock__compute small { color: var(--ink-3); font-size: 12px; }
.mock__compute .i { align-self: center; color: var(--gold-deep); }
.mock__bar { height: 6px; background: var(--cream); border-radius: 999px; overflow: hidden; }
.mock__bar span { display: block; height: 100%; width: var(--w); background: var(--gold); border-radius: inherit; }
.mock__people { display: flex; }
.mock__people .p { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--cream); border: 2px solid var(--travertine); margin-left: -8px; position: relative; color: var(--ink-3); }
.mock__people .p:first-child { margin-left: 0; }
.mock__people .p.on { background: var(--ink); color: var(--cream); }
.mock__people .p.on::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat; border: 2px solid var(--travertine); }
.mock--doc { background: var(--cream); border-radius: var(--r-md); padding: 18px; margin-top: auto; }
.mock--doc .mock__row { background: var(--travertine); }
.mock--stamp { display: grid; justify-items: start; gap: 14px; }
.stamp { font-family: var(--f-serif); font-style: italic; font-size: 54px; color: var(--gold-deep); border: 2px solid var(--gold); border-radius: 999px; padding: 4px 30px 10px; transform: rotate(-6deg); line-height: 1; }

@media (max-width: 900px) {
  .how__pin { padding: 96px 0 40px; }
  .how__head { grid-template-columns: 1fr; }
  .how__progress { display: none; }
  .how__track { flex-direction: column; width: auto; }
  .step { width: 100%; min-height: 0; }
}

/* ---------- product zoom ---------- */
.zoom { background: var(--espresso); position: relative; }
.zoom__pin { position: relative; height: 100svh; overflow: hidden; background: var(--espresso); }
.zoom__scene {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 179vh); aspect-ratio: 1024 / 572;
  transform: translate(-50%, -50%);
}
.zoom__scene img { width: 100%; height: 100%; object-fit: cover; transform-origin: 67.6% 52.5%; will-change: transform; }
.zoom__caption {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 7vh, 72px); z-index: 2; max-width: 640px;
  text-shadow: 0 2px 30px rgba(20,15,10,.45);
}
.zoom__caption .eyebrow { color: rgba(241,233,221,.8); }
.zoom__pin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(36,29,23,.55), rgba(36,29,23,0) 55%); }

.dash {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  width: min(1120px, calc(100vw - 2 * var(--gutter))); height: min(660px, calc(100svh - 140px));
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 210px 1fr;
  background: #1A1612; color: var(--on-dark); border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(241,233,221,.1);
  box-shadow: 0 40px 120px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden;
}
.dash__side { background: #F1E9DD; color: var(--ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dash__side span { padding: 9px 12px; border-radius: 10px; color: var(--ink-2); }
.dash__side .is-on { background: var(--travertine); color: var(--ink); font-weight: 500; }
.dash__logo { font-weight: 600; letter-spacing: -0.04em; font-size: 19px; color: var(--ink) !important; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; padding-left: 4px !important; }
.dash__mark { width: 30px; height: 25px; --logo-n: var(--gold-deep); }
.dash__main { padding: clamp(18px, 2.4vw, 34px); display: flex; flex-direction: column; gap: clamp(14px, 2vh, 24px); min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dash__top small, .dash__kpis small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 4px; }
.dash__top b { font-size: clamp(18px, 2vw, 26px); font-weight: 500; letter-spacing: -0.03em; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash__kpis > div { background: #26201A; border: 1px solid rgba(241,233,221,.07); border-radius: 14px; padding: clamp(12px, 1.6vw, 20px); }
.dash__kpis b { font-size: clamp(20px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.04em; }
.dash__kpis > div:nth-child(2) b { color: var(--gold); }
.dash__table { background: #26201A; border-radius: 14px; border: 1px solid rgba(241,233,221,.07); overflow: hidden; }
.dash__row { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid rgba(241,233,221,.06); font-size: 14px; }
.dash__row--h { border-top: 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.dash .tag { background: rgba(184,149,94,.16); color: #D9BC8A; }
@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; height: auto; max-height: calc(100svh - 120px); }
  .dash__side { display: none; }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .dash__row { grid-template-columns: 1fr 1fr auto; font-size: 12.5px; padding: 12px; }
  .dash__row > :nth-child(4) { display: none; }
}

/* ---------- who ---------- */
.who { padding: clamp(110px, 14vw, 200px) 0; position: relative; }
.who__head { display: grid; grid-template-columns: 1fr; max-width: 1100px; margin-bottom: clamp(48px, 7vw, 96px); }
.who__head .h2 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; }
.who__list li {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto auto; align-items: center; gap: 20px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--stone); isolation: isolate;
}
/* in-row photo: opens from a thin slit on hover, stays put (no cursor chasing) */
.who__img {
  width: clamp(120px, 14vw, 220px); aspect-ratio: 16 / 10; border-radius: 999px; overflow: hidden;
  clip-path: inset(50% 0 50% 0 round 999px); transition: clip-path .7s var(--ease-out);
}
.who__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transition: transform 1s var(--ease-out); }
.who__list li:hover .who__img { clip-path: inset(0 0 0 0 round 14px); }
.who__list li:hover .who__img img { transform: scale(1); }
.who__list li { border-top: 0; }
.who__list li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink-3); transform: scaleX(var(--rule, 1)); transform-origin: 0 50%; }
.who__list li:last-child { border-bottom: 1px solid var(--stone); }
.who__list li::before { content: ""; position: absolute; inset: 0; background: var(--travertine); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease-out); z-index: -1; }
.who__list li:hover::before { transform: scaleY(1); }
.who__n { font-family: var(--f-serif); font-style: italic; font-size: 24px; color: var(--gold-deep); padding-left: 8px; }
.who__t { font-size: clamp(40px, 7.4vw, 120px); line-height: .95; letter-spacing: -0.055em; font-weight: 400; transition: transform .7s var(--ease-out), color .4s; }
.who__list li:hover .who__t { transform: translateX(24px); }
.who__d { color: var(--ink-2); font-size: 15px; max-width: 26ch; text-align: right; padding-right: 8px; }
@media (hover: none), (max-width: 760px) { .who__img { display: none; } }
@media (max-width: 760px) {
  .who__list li { grid-template-columns: 36px 1fr; }
  .who__d { grid-column: 2; text-align: left; padding: 0; }
}

/* ---------- ink-blot transition ---------- */
.blot { height: 220svh; position: relative; background: var(--espresso); }
.blot__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.blot__text {
  position: relative; z-index: 2; text-align: center; color: var(--on-dark);
  font-size: clamp(40px, 7.4vw, 124px); line-height: .98; letter-spacing: -0.05em; font-weight: 400;
  opacity: 0; padding-inline: var(--gutter);
}
.blot__text em { color: var(--gold); }

/* ---------- what we're not ---------- */
.not { background: var(--espresso); color: var(--on-dark); padding: clamp(60px, 8vw, 120px) 0 clamp(110px, 14vw, 200px); }
.not__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.not__lead { font-family: var(--f-serif); font-style: italic; font-size: clamp(28px, 3vw, 44px); color: var(--gold); margin-bottom: 10px; }
.not__list li { font-size: clamp(38px, 5.8vw, 92px); line-height: 1.04; letter-spacing: -0.05em; font-weight: 400; }
.not__list span { position: relative; display: inline-block; color: var(--on-dark); transition: color .6s; }
.not__list span::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: .07em; background: var(--gold); transform: scaleX(var(--strike, 0)); transform-origin: 0 50%; }
.not__list li.is-struck span { color: rgba(241,233,221,.42); }
.not__body { margin-top: 44px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; color: var(--on-dark-2); max-width: 36ch; }
.not__figure figcaption { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.arch { border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 3 / 4; }
.arch img { width: 100%; height: 116%; object-fit: cover; object-position: 55% 50%; }
@media (max-width: 860px) { .not__grid { grid-template-columns: 1fr; } .arch { max-width: 420px; } }

/* ---------- trust ---------- */
.trust { padding: clamp(110px, 14vw, 200px) 0; background: var(--cream); }
.trust__head { margin-bottom: clamp(48px, 6vw, 88px); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tile {
  background: var(--travertine); border-radius: var(--r-lg); padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: transform .6s var(--ease-out), background-color .4s;
}
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 24px; letter-spacing: -0.035em; font-weight: 500; line-height: 1.1; }
.tile p { color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.tile .i--lg { margin-bottom: auto; }
.tile--img { grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; padding: 0; color: var(--cream); }
.tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tile--img:hover img { transform: scale(1.05); }
.tile--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,25,19,0) 40%, rgba(30,25,19,.72)); }
.tile__over { position: relative; z-index: 1; padding: 34px; margin-top: auto; }
.tile--img h3 { font-size: clamp(28px, 3vw, 44px); }
.tile--img p { color: rgba(243,237,228,.88); font-size: 16px; }
.tile--gold { background: var(--ink); color: var(--cream); }
.tile--gold p { color: var(--on-dark-2); }
.tile__big { font-size: clamp(54px, 6vw, 86px); letter-spacing: -0.05em; line-height: 1; color: var(--gold); margin-bottom: auto; }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile--img { grid-row: span 1; min-height: 440px; } .tile--gold { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile--img, .tile--gold { grid-column: auto; grid-row: auto; } .tile--img { min-height: 420px; } }

/* ---------- cta ---------- */
.cta { position: relative; padding: clamp(110px, 14vw, 200px) 0; overflow: hidden; background: var(--cream); isolation: isolate; }
.cta__bg { position: absolute; inset: -10% 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(243,237,228,.94) 0%, rgba(243,237,228,.82) 50%, rgba(243,237,228,.5) 100%); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.cta__title { font-size: clamp(54px, 8.4vw, 140px); line-height: .92; letter-spacing: -0.055em; font-weight: 500; }
.cta__title em { color: var(--gold-deep); }
.cta__lede { margin-top: 28px; font-size: 19px; color: var(--ink-2); max-width: 34ch; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  background: rgba(243,237,228,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(214,200,180,.8); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 38px);
}
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; }
.field label span { color: var(--bad); }
.field label small { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--stone); border-radius: 12px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(140,106,56,.18); }
.field.has-error input { border-color: var(--bad); }
.field__err { font-size: 13px; color: var(--bad); min-height: 0; }
.field__err:empty { display: none; }
.form__submit { grid-column: 1 / -1; justify-content: center; }
.form__submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form__status { grid-column: 1 / -1; font-size: 15px; color: var(--ok); }
.form__status:empty { display: none; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--espresso); color: var(--on-dark); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; position: sticky; bottom: 0; z-index: 0; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: grid; gap: 28px; justify-items: start; }
.footer__mark { width: 88px; height: 74px; }
.footer__line { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.footer__line em { color: var(--gold); }
.footer__links { display: grid; gap: 2px; }
.footer__links a { text-decoration: none; color: var(--on-dark-2); padding: 6px 0; transition: color .3s; }
.footer__links a:hover { color: var(--on-dark); }
.footer__word {
  font-size: 23.5vw; line-height: .78; letter-spacing: -0.075em; font-weight: 500; text-align: center;
  margin-top: clamp(60px, 8vw, 120px); color: var(--on-dark); white-space: nowrap; overflow: hidden; padding-bottom: .04em;
}
/* gradient lives on each letter: background-clip:text on the parent won't paint transformed children */
.footer__word .ch {
  display: inline-block; will-change: transform;
  background: linear-gradient(180deg, #F1E9DD 25%, #A9844C 115%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid rgba(241,233,221,.1); font-size: 13px; color: var(--on-dark-2); }
.footer__legal p:first-child { max-width: 70ch; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .grain { display: none; }
  .problem__statement .sw { opacity: 1; }
  .blot { height: auto; }
  .blot__pin { position: relative; height: auto; padding: 120px 0 20px; background: var(--espresso); }
  .blot__text { opacity: 1; }
  .dash { position: relative; left: auto; top: auto; transform: none; opacity: 1; visibility: visible; margin: 40px auto; }
  .zoom__pin { height: auto; padding: 120px 0 80px; }
  .zoom__scene { display: none; }
  .zoom__caption { position: relative; left: auto; bottom: auto; padding-inline: var(--gutter); }
  .zoom__pin::after { display: none; }
  .loader { display: none; }
}

/* =========================================================
   Scene transitions (v2): each section slides over the last
   ========================================================= */
main { position: relative; z-index: 1; }
main > section { position: relative; }
.who, .layers { background: var(--cream); }
/* the receding scene darkens under the incoming one */
.dimmer { position: absolute; inset: 0; z-index: 60; background: var(--espresso); opacity: 0; pointer-events: none; }
/* clip-path driven transitions are painted on the compositor-friendly path */
[data-edge] { will-change: clip-path; }

/* ---------- problem collage ---------- */
.collage { position: absolute; inset: 0 0 auto 0; height: 120svh; pointer-events: none; z-index: 0; }
.problem .wrap { position: relative; z-index: 1; }
.collage__tile { position: absolute; margin: 0; overflow: hidden; border-radius: 14px; will-change: transform; }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; }
.collage__tile.c1 { width: clamp(140px, 15vw, 240px); aspect-ratio: 4 / 5; right: 7vw; top: 14svh; }
.collage__tile.c2 { width: clamp(170px, 19vw, 300px); aspect-ratio: 16 / 11; right: 24vw; top: 58svh; }
.collage__tile.c3 { width: clamp(110px, 11vw, 170px); aspect-ratio: 1; right: 3vw; top: 72svh; border-radius: 999px; }
@media (max-width: 900px) { .collage { display: none; } }

/* ---------- how: rolling step counter ---------- */
.how__meter { display: grid; grid-template-columns: auto auto; align-items: end; gap: 6px 10px; justify-items: start; }
.how__count { height: 1em; overflow: hidden; font-size: clamp(54px, 6vw, 96px); line-height: 1; letter-spacing: -0.06em; font-weight: 300; font-variant-numeric: tabular-nums; }
.how__digits { display: flex; flex-direction: column; will-change: transform; }
.how__digits b { font-weight: inherit; height: 1em; display: block; }
.how__of { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); color: var(--gold-deep); padding-bottom: .2em; }
.how__meter .how__progress { grid-column: 1 / -1; margin-bottom: 14px; }
@media (max-width: 900px) { .how__meter { display: none; } }

/* ---------- anatomy: exploded instruction layers ---------- */
.layers__pin {
  min-height: 100svh; max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: 96px var(--gutter) 48px; background: var(--cream);
}
.layers__steps { margin-top: 36px; display: grid; gap: 4px; counter-reset: l; }
.layers__steps li {
  position: relative; padding: 14px 0 14px 40px; color: var(--ink-3); border-top: 1px solid var(--stone);
  max-width: 46ch; font-size: 15.5px; transition: color .5s var(--ease-out);
}
.layers__steps li::before { counter-increment: l; content: "0" counter(l); position: absolute; left: 0; top: 17px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.layers__steps li b { display: block; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 2px; }
.layers__steps li.is-active { color: var(--ink); }
.layers__steps li.is-active::before { color: var(--gold-deep); }

.layers__stage { position: relative; height: min(78svh, 680px); perspective: 2200px; display: grid; place-items: center; }
.stack {
  position: relative; width: min(30vw, 400px); aspect-ratio: 1 / 1.18;
  transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-38deg);
}
.plate { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.plate__face {
  position: absolute; inset: 0; background: var(--cream); border: 1px solid var(--sand); border-radius: 6px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: background-color .5s var(--ease-out);
}
.plate[data-plate="0"] .plate__face { background: #E2D6C3; }
.plate[data-plate="1"] .plate__face { background: #E9DFD0; }
.plate[data-plate="2"] .plate__face { background: #EFE7DB; }
.plate--top .plate__face { background: #F7F2EA; border-color: var(--gold); }
.plate__side { position: absolute; background: #C9B79D; }
.plate__side--s { left: 0; right: 0; top: 100%; height: 10px; transform-origin: top; transform: rotateX(-90deg); }
.plate__side--e { top: 0; bottom: 0; left: 100%; width: 10px; transform-origin: left; transform: rotateY(90deg); background: #B9A58A; }
.plate.is-dim .plate__face { background: #DCD0BE; }
.plate__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.plate__rows { display: grid; gap: 7px; }
.plate__rows i { display: block; height: 7px; border-radius: 4px; background: rgba(87,77,67,.22); }
.plate__rows i:nth-child(3n) { width: 72%; }
.plate__rows i:nth-child(4n) { width: 86%; }
.plate__nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plate__nodes i { font-style: normal; font-family: var(--f-mono); font-size: 12px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--sand); background: var(--cream); }
.plate__nodes .pos { color: var(--ok); }
.plate__nodes .neg { color: var(--bad); }
.plate__seals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.plate__seals i { font-style: normal; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--ink); color: var(--cream); }
.plate__doc { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; border-top: 1px solid var(--stone); padding-top: 12px; }
.plate__doc b { font-weight: 500; }
.plate__doc--sub { font-size: 13px; color: var(--ink-2); }
.plate__seal { position: absolute; right: 18px; bottom: 16px; width: 64px; height: 54px; --logo-n: var(--gold-deep); }
.plate__seal svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .layers__pin { grid-template-columns: 1fr; padding-top: 88px; gap: 0; align-content: center; }
  .layers__stage { order: -1; height: 42svh; }
  .stack { width: 46vw; }
  .layers__steps { margin-top: 16px; }
  .layers__steps li { padding: 8px 0 8px 34px; font-size: 14px; }
  .layers__steps li::before { top: 11px; }
  .layers__steps li:not(.is-active) { height: 0; padding: 0; border: 0; overflow: hidden; }
  .layers .h2 { font-size: clamp(32px, 8vw, 44px); }
}

/* ---------- reduced motion: everything settles in place ---------- */
@media (prefers-reduced-motion: reduce) {
  .footer { position: relative; }
  .who__img { display: none; }
}

/* =========================================================
   v3: blur transitions, depth of field, 3D city, rebuilt lower sections
   ========================================================= */

/* ---------- interactive 3D netting ---------- */
.netting__stage { min-height: min(78svh, 700px); }
.net3d { position: absolute; inset: -6% -8% -6% -4%; display: none; touch-action: pan-y; }
.netting__stage.is-3d .net3d { display: block; }
.netting__stage.is-3d .graph { visibility: hidden; }
.net3d canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.net3d.is-dragging canvas { cursor: grabbing; }
.net3d.is-hovering canvas { cursor: pointer; }
.net3d.is-hovering.is-dragging canvas { cursor: grabbing; }
.net3d__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.net3d__label {
  position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 1px; text-align: center;
  padding: 7px 11px 8px; border-radius: 10px; background: rgba(243, 237, 228, .82); border: 1px solid rgba(214, 200, 180, .9);
  white-space: nowrap; opacity: 0; will-change: transform, opacity;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.net3d__label b { font-weight: 500; font-size: 13px; letter-spacing: -0.02em; }
.net3d__label span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.net3d__label em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.net3d__label.show-net em { max-height: 18px; }
.net3d__label em.pos { color: var(--ok); }
.net3d__label em.neg { color: var(--bad); }
.net3d__label.is-hot { background: var(--ink); border-color: var(--ink); }
.net3d__label.is-hot b { color: var(--cream); }
.net3d__label.is-hot span { color: var(--on-dark-2); }
.net3d__label.is-hot em.pos { color: #A9C79B; }
.net3d__label.is-hot em.neg { color: #E4A58B; }
.net3d__hint {
  position: absolute; right: 8%; bottom: 7%; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: 8px 12px; border: 1px solid var(--stone); border-radius: 999px; background: rgba(243, 237, 228, .6);
}
@media (max-width: 900px) {
  .netting__stage { min-height: 0; height: 50svh; }
  .net3d { inset: 0 calc(-1 * var(--gutter)); }
  .net3d__hint { right: 50%; transform: translateX(50%); bottom: 0; }
}

/* ---------- depth of field accents ---------- */
.collage__tile.c2 { filter: blur(2.5px); }          /* far */
.collage__tile.c1 { filter: blur(0.8px); }          /* mid */
.not__list li span { transition: color .6s, filter .8s var(--ease-out), opacity .8s; }
.not__list li.is-struck span { filter: blur(1.6px); }
.plate.is-dim .plate__face { filter: blur(1.4px); }
.plate .plate__face { transition: background-color .5s var(--ease-out), filter .6s var(--ease-out); }

/* ---------- who: depth-of-field list + sticky arch ---------- */
.who__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.who__head { max-width: 760px; }
.who__list li { grid-template-columns: 52px 1fr; row-gap: 6px; padding: clamp(20px, 2.6vw, 34px) 0; }
.who__list .who__d { grid-column: 2; text-align: left; padding: 0; max-width: 40ch; }
.who__t { font-size: clamp(40px, 5.6vw, 92px); }
.who__list li .who__t, .who__list li .who__d, .who__list li .who__n {
  transition: opacity .7s var(--ease-out), filter .7s var(--ease-out), transform .7s var(--ease-out), color .5s;
  opacity: .3; filter: blur(2.5px);
}
.who__list li.is-focus .who__t, .who__list li.is-focus .who__d, .who__list li.is-focus .who__n { opacity: 1; filter: blur(0); }
.who__list li.is-focus .who__t { transform: translateX(14px); }
.who__list li:hover .who__t { transform: translateX(14px); }
.who__list li::before { display: none; }
.who__visual { position: sticky; top: 14svh; height: 72svh; }
.who__frame { position: relative; height: 100%; border-radius: 999px 999px 20px 20px; overflow: hidden; background: var(--travertine); }
.who__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .who__grid { grid-template-columns: 1fr; }
  .who__visual { display: none; }
  .who__list li .who__t, .who__list li .who__d, .who__list li .who__n { filter: none; opacity: 1; }
}

/* ---------- trust: pinned principles in haze ---------- */
.trust { padding: 0; background: var(--cream); }
.trust__pin { position: relative; height: 100svh; overflow: hidden; display: grid; align-items: center; background: var(--cream); }
.trust__bg { position: absolute; inset: 0; }
.trust__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(.9); transform: scale(1.04); }
.trust__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(243,237,228,.97) 0%, rgba(243,237,228,.9) 46%, rgba(243,237,228,.62) 100%); }
.trust__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: 80px; }
.trust__head .h2 { font-size: clamp(40px, 5vw, 80px); }
.trust__stage { position: relative; min-height: 300px; }
.principle { position: absolute; inset: 0 0 auto 0; will-change: transform, filter, opacity; }
.principle__n { display: block; font-family: var(--f-serif); font-style: italic; font-size: clamp(64px, 7vw, 112px); line-height: .9; color: var(--gold-deep); margin-bottom: 18px; }
.principle h3 { font-size: clamp(30px, 3.2vw, 50px); letter-spacing: -0.04em; font-weight: 500; line-height: 1.02; margin-bottom: 14px; }
.principle p { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 34ch; }
.trust__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6svh; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.trust__rail i { height: 2px; background: var(--stone); position: relative; overflow: hidden; }
.trust__rail i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.trust__rail i.is-on::after { transform: scaleX(1); }
@media (max-width: 900px) {
  .trust__inner { grid-template-columns: 1fr; gap: 20px; align-content: center; }
  .trust__stage { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .trust__pin { height: auto; padding: 120px 0 80px; }
  .trust__stage { min-height: 0; display: grid; gap: 40px; }
  .principle { position: relative; }
  .trust__rail { display: none; }
  .who__list li .who__t, .who__list li .who__d, .who__list li .who__n { filter: none; opacity: 1; }
}


/* ---------- how it works: a cycling deck of six cards ---------- */
.how__track:not(.is-deck) { flex-wrap: wrap; width: auto; max-width: var(--max); margin-inline: auto; }
@media (min-width: 901px) {
  .how__pin {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center;
    column-gap: clamp(40px, 7vw, 140px); max-width: var(--max); margin-inline: auto; padding: 92px var(--gutter) 40px;
  }
  .how__head { padding-inline: 0; grid-template-columns: 1fr; gap: 28px; }
  .how__head .h2 { font-size: clamp(48px, 5.6vw, 96px); }
}
.how__track.is-deck {
  position: relative; display: block; width: 100%; padding: 0; margin-top: 70px; /* room for the cards peeking above */
}
.how__track.is-deck .step {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; min-height: 0;
  transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 70px -40px rgba(36,29,23,.45);
  transition: background-color .5s var(--ease-out), filter .7s var(--ease-out);
}
.how__track.is-deck.is-measuring .step { height: auto; min-height: clamp(440px, 56svh, 540px); }
/* cards waiting behind the front one sit out of focus (a state with a transition, not a per-frame filter) */
.how__track.is-deck .step.is-back { filter: blur(5px); background: var(--stone); }
@media (max-width: 900px) {
  .how__pin { padding: 84px var(--gutter) 28px; gap: 0; justify-content: center; }
  .how__head { padding-inline: 0; }
  .how .h2 { font-size: clamp(34px, 9vw, 48px); }
  .how__track.is-deck { margin-top: 74px; }
  .how__track.is-deck .step { padding: 24px 22px 22px; }
  .how__track.is-deck.is-measuring .step { min-height: 0; }
  .how__track.is-deck .step .step__n { font-size: 40px; margin-bottom: 10px; }
  .how__track.is-deck .step h3 { font-size: 28px; }
  .how__track.is-deck .mock { padding-top: 18px; }
}

/* scene transitions: the incoming section's soft leading edge */
.scene-feather {
  position: absolute; left: 0; right: 0; top: -24vh; height: 24.2vh; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--feather) 55%, transparent) 55%, var(--feather) 100%);
}

/* =========================================================
   v5: one continuous warm-cream background, and a calmer, ~12% smaller scale
   (after the user's reference: one consistent ground under every section, so the eye rests)
   ========================================================= */
:root { --max: 1280px; --gutter: clamp(16px, 3.6vw, 52px); }
.netting, .blot, .not, .footer, .who, .layers, .trust, .cta, .how, .problem { background: var(--cream); }
.netting__pin, .how__pin, .trust__pin { background: transparent; }
/* the dark interlude is now ink on cream */
.blot__text { color: var(--ink); }
.blot__text em { color: var(--gold-deep); }
.not { color: var(--ink); }
.not .eyebrow--light { color: var(--ink-3); }
.not__lead { color: var(--gold-deep); }
.not__list span { color: var(--ink); }
.not__list li.is-struck span { color: rgba(30, 25, 19, .36); }
.not__body, .not__figure figcaption { color: var(--ink-2); }
/* the footer reads as the end of the same page */
.footer { color: var(--ink); box-shadow: 0 -1px 0 var(--stone); }
.footer__mark { --logo-n: var(--ink); }   /* set on the svg: the letter lives inside a <use> shadow tree and inherits it */
.footer__line em { color: var(--gold-deep); }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }
.footer__word { color: var(--ink); opacity: .92; }
.footer__legal { color: var(--ink-3); border-top-color: var(--stone); }
@media (prefers-reduced-motion: reduce) { .blot__pin { background: var(--cream); } }

/* scale: display type and section rhythm come down a notch */
.h2 { font-size: clamp(36px, 5.2vw, 80px); }
.hero__title { font-size: clamp(50px, 9.6vw, 164px); }
.problem__statement { font-size: clamp(28px, 3.7vw, 56px); }
.marquee__track span { font-size: clamp(48px, 7.6vw, 124px); }
.netting__stats dd { font-size: clamp(30px, 3.4vw, 50px); }
.how .h2, .trust__head .h2 { font-size: clamp(36px, 4.3vw, 68px); }
@media (min-width: 901px) { .how__head .h2 { font-size: clamp(42px, 4.8vw, 80px); } }
.how__count { font-size: clamp(46px, 5vw, 80px); }
.who__head .h2 { font-size: clamp(30px, 3.9vw, 60px); }
.who__t { font-size: clamp(36px, 4.8vw, 78px); }
.blot__text { font-size: clamp(36px, 6.2vw, 104px); }
.not__list li { font-size: clamp(34px, 4.9vw, 78px); }
.principle__n { font-size: clamp(54px, 6vw, 94px); }
.principle h3 { font-size: clamp(26px, 2.7vw, 42px); }
.cta__title { font-size: clamp(48px, 7.1vw, 118px); }
.footer__line { font-size: clamp(30px, 3.7vw, 54px); }
.footer__word { font-size: 20vw; }
.step { padding: 28px 26px 26px; }
.step__n { font-size: 48px; }
.step h3 { font-size: 30px; }
.problem { padding-top: clamp(96px, 13vw, 180px); }
.who, .cta { padding-block: clamp(96px, 11.5vw, 168px); }
.not { padding-block: clamp(52px, 7vw, 100px) clamp(96px, 11.5vw, 168px); }

/* ---------- at a glance: a helix of cards (espresso + gold, after the user's card reference) ---------- */
.helix { position: relative; padding-top: clamp(96px, 11vw, 160px); overflow: hidden; background: var(--cream); }
.helix__inner { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; position: relative; z-index: 2; }
.helix__lede { color: var(--ink-2); max-width: 30ch; font-size: clamp(16px, 1.3vw, 19px); padding-bottom: .6em; }
/* until the helix is built (no JS, reduced motion) the facts read as a plain list */
.helix__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 32px; }
.helix__facts li { background: var(--espresso); color: var(--on-dark); border-radius: 14px; padding: 18px 20px; font-size: 15px; }
.helix.is-built .helix__facts { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.helix__stage {
  --cw: clamp(124px, 12.5vw, 200px);
  position: relative; height: clamp(560px, 94svh, 940px); margin-top: -2vh;
  perspective: 1500px; perspective-origin: 50% 46%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.helix:not(.is-built) .helix__stage { display: none; }
.helix__spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateZ(-17deg) rotateX(-7deg); }
.hcard {
  position: absolute; width: var(--cw); height: calc(var(--cw) * 1.4); left: calc(var(--cw) * -.5); top: calc(var(--cw) * -.7);
  transform-style: preserve-3d; will-change: transform; transition: filter .45s var(--ease-out);
}
.hcard.b1 { filter: blur(1.5px); }
.hcard.b2 { filter: blur(4px); }
.hcard.b3 { filter: blur(9px); }
.hcard.b4 { filter: blur(15px); }
.hcard__face, .hcard__back { position: absolute; inset: 0; border-radius: calc(var(--cw) * .07); -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.hcard__face {
  background: radial-gradient(120% 90% at 30% 10%, #2E261F 0%, var(--espresso) 60%, #1A1511 100%);
  box-shadow: inset 0 0 0 1px rgba(214,178,106,.65), inset 0 0 0 calc(var(--cw) * .03) var(--espresso), inset 0 0 0 calc(var(--cw) * .036) rgba(214,178,106,.22);
  color: #D6B26A; display: grid; place-items: center; align-content: center; gap: .5em; text-align: center; padding: 18% 12%;
}
.hcard__face b { font-weight: 500; font-size: calc(var(--cw) * .2); line-height: 1; letter-spacing: -0.04em; }
.hcard__face b.is-long { font-size: calc(var(--cw) * .115); letter-spacing: -0.02em; }
.hcard__face small { font-family: var(--f-mono); font-size: calc(var(--cw) * .052); line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: rgba(214,178,106,.72); }
.hcard__ix { position: absolute; left: 9%; top: 6%; display: grid; justify-items: center; font-family: var(--f-serif); font-size: calc(var(--cw) * .11); line-height: 1; color: #D6B26A; }
.hcard__ix svg { width: calc(var(--cw) * .09); height: calc(var(--cw) * .075); margin-top: 2px; }
.hcard__ix--br { left: auto; top: auto; right: 9%; bottom: 6%; transform: rotate(180deg); }
.hcard__back {
  transform: rotateY(180deg); display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(214,178,106,.07) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(214,178,106,.07) 0 2px, transparent 2px 12px),
    #221B15;
  box-shadow: inset 0 0 0 1px rgba(214,178,106,.6), inset 0 0 0 calc(var(--cw) * .05) #221B15, inset 0 0 0 calc(var(--cw) * .056) rgba(214,178,106,.4);
}
.hcard__back svg { width: 42%; height: auto; opacity: .9; }
@media (max-width: 900px) {
  .helix__inner { grid-template-columns: 1fr; }
  .helix__stage { --cw: clamp(104px, 30vw, 150px); height: 78svh; }
}

/* ---------- laptop zoom, light: it sits on the common cream ground ---------- */
.zoom, .zoom__pin { background: var(--cream); }
.zoom__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(10% 6% 10% 6% round 28px); will-change: clip-path; }
.zoom__wash { position: absolute; inset: 0; z-index: 2; background: var(--cream); opacity: 0; pointer-events: none; }
.zoom__pin::after { background: linear-gradient(90deg, rgba(243,237,228,.82), rgba(243,237,228,.35) 38%, rgba(243,237,228,0) 60%); z-index: 1; }
.zoom__caption { text-shadow: none; z-index: 3; left: calc(var(--gutter) + 6vw); bottom: calc(10% + clamp(24px, 5vh, 56px)); }
.zoom__caption .eyebrow { color: var(--ink-3); }
.zoom__caption .h2 em { color: var(--gold-deep); }
.dash { background: #FBF8F3; color: var(--ink); border-color: var(--stone); box-shadow: 0 40px 100px -30px rgba(36,29,23,.28); }
.dash__side { background: var(--travertine); }
.dash__side .is-on { background: var(--cream); }
.dash__top small, .dash__kpis small, .dash__row--h { color: var(--ink-3); }
.dash__kpis > div, .dash__table { background: var(--cream); border-color: rgba(30,25,19,.07); }
.dash__kpis > div:nth-child(2) b { color: var(--gold-deep); }
.dash__row { border-top-color: rgba(30,25,19,.07); }
.dash .tag { background: rgba(184,149,94,.18); color: var(--gold-deep); }
@media (max-width: 900px) { .zoom__frame { clip-path: inset(14% 4% 14% 4% round 22px); } .zoom__caption { left: calc(var(--gutter) + 4vw); } }

/* ---------- helix, extended: pinned, with the NicoMach tower on its axis ---------- */
.helix.is-built { height: 100svh; padding-top: 0; }
.helix.is-built .helix__inner { position: absolute; left: 0; right: 0; top: clamp(84px, 11vh, 120px); z-index: 4; pointer-events: none; }
.helix.is-built .helix__stage { position: absolute; inset: 0; height: auto; margin: 0; }
.helix__space { position: absolute; inset: 0; transform-style: preserve-3d; }
.helix__spin { pointer-events: none; }
.hcard { pointer-events: none; }
/* the tower sits at z = 0 inside the same 3D space, so the near turn of cards passes in front of it and the far turn behind */
.tower3d {
  position: absolute; left: 50%; top: 50%; width: clamp(260px, 24vw, 380px); height: clamp(420px, 62svh, 640px);
  transform: translate(-50%, -54%) translateZ(0); touch-action: pan-y; opacity: 0; transition: opacity .8s var(--ease-out);
}
.tower3d.is-ready { opacity: 1; }
.tower3d canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.tower3d.is-hovering canvas { cursor: pointer; }
.tower3d.is-dragging canvas { cursor: grabbing; }
.helix__cta { position: absolute; left: 50%; bottom: clamp(24px, 5vh, 56px); transform: translateX(-50%); z-index: 6; display: grid; justify-items: center; gap: 12px; }
.helix__hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.helix:not(.is-built) .helix__cta { position: relative; left: auto; bottom: auto; transform: none; margin: 40px auto 80px; }
.helix:not(.is-built) .helix__hint, .helix:not(.is-built) .tower3d { display: none; }
/* the savings estimate */
.savings {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100vw - 2 * var(--gutter))); background: #FBF8F3; color: var(--ink);
  border: 1px solid var(--stone); border-radius: 22px; padding: 24px 24px 22px; display: grid; gap: 16px;
  box-shadow: 0 40px 90px -30px rgba(36,29,23,.35);
}
.savings[hidden] { display: none; }
.savings .eyebrow { margin: 0; }
.savings__close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.savings__close:hover { background: var(--travertine); }
.savings__field { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; color: var(--ink-2); align-items: baseline; }
.savings__field output { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.savings__field input { grid-column: 1 / -1; width: 100%; accent-color: var(--gold-deep); }
.savings__result { background: var(--travertine); border-radius: 14px; padding: 14px 16px; }
.savings__result p { font-size: 15px; }
.savings__result b { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.savings__pct { margin-top: 2px; font-family: var(--f-serif); font-style: italic; font-size: 22px !important; color: var(--gold-deep); }
.savings__note { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.savings .btn { justify-self: start; }
@media (max-width: 900px) {
  .tower3d { width: 62vw; height: 52svh; }
  .helix.is-built .helix__inner { top: 76px; }
}
@media (max-width: 900px) {
  .helix.is-built .helix__inner { padding-bottom: 28px; background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 72%, rgba(243,237,228,0) 100%); top: 60px; padding-top: 16px; }
}

/* =========================================================
   v6: NicoMach City. "Enter the city" button + first-person explore layer (js/city/explore.js)
   ========================================================= */
.net3d__enter {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.net3d__enter.is-on { opacity: 1; pointer-events: auto; }
.net3d__enter-dot {
  position: relative; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(243, 237, 228, .9);
  box-shadow: 0 0 0 1.5px var(--gold), 0 10px 30px -10px rgba(30, 25, 19, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--ease-out), background .4s var(--ease-out);
}
.net3d__enter-dot::after {   /* a slow gold pulse: this is a door */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--gold); opacity: 0;
  animation: nm-enter-pulse 2.6s var(--ease-out) infinite;
}
@keyframes nm-enter-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
.net3d__enter svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.net3d__enter-label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(243, 237, 228, .88); white-space: nowrap;
}
.net3d__enter:hover .net3d__enter-dot, .net3d__enter:focus-visible .net3d__enter-dot { transform: scale(1.08); background: var(--ink); }
.net3d__enter:hover svg, .net3d__enter:focus-visible svg { stroke: var(--cream); }
.net3d__enter:focus-visible { outline: none; }
.net3d__enter:focus-visible .net3d__enter-dot { box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(184, 149, 94, .45); }

html.is-exploring, html.is-exploring body { overflow: hidden; overscroll-behavior: none; }
.cityx { position: fixed; inset: 0; z-index: 1000; touch-action: none; user-select: none; -webkit-user-select: none; color: var(--ink); }
.cityx[hidden] { display: none; }
.cityx__view { position: absolute; inset: 0; }
.cityx__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.cityx.is-locked .cityx__view canvas { cursor: none; }
.cityx__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(60, 40, 20, .18)); }

.cityx__hud { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.cityx__hud.is-on { opacity: 1; }
.cityx__hud.is-on > * { pointer-events: auto; }
.cityx__brand, .cityx__quest, .cityx__exit, .cityx__hint, .cityx__tower, .cityx__card {
  background: rgba(243, 237, 228, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(30, 25, 19, .08), 0 18px 40px -22px rgba(30, 25, 19, .5);
}
.cityx__brand { position: absolute; left: 20px; top: 20px; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; }
.cityx__mark { width: 28px; height: 28px; --logo-n: var(--ink); color: var(--gold-deep); }
.cityx__brand b { display: block; font-weight: 500; font-size: 14px; letter-spacing: -0.02em; }
.cityx__brand span { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cityx__quest { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.cityx__qlabel { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.cityx__qdots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cityx__qdots li { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(140, 106, 56, .5); color: var(--ink-2); transition: background .4s, color .4s; }
.cityx__qdots li.is-done { background: var(--gold-deep); color: var(--cream); box-shadow: none; }
.cityx__qcount { font-family: var(--f-mono); font-size: 12px; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.cityx__exit { position: absolute; right: 20px; top: 20px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; border: 0; border-radius: 999px; font: 500 14px/1 var(--f-sans); color: var(--ink); cursor: pointer; }
.cityx__exit:hover, .cityx__exit:focus-visible { background: var(--ink); color: var(--cream); outline: none; }
.cityx kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 6px; font: 500 11px/1 var(--f-mono); background: rgba(30, 25, 19, .08); color: inherit; margin: 0 1px; }
.cityx__exit:hover kbd, .cityx__exit:focus-visible kbd { background: rgba(243, 237, 228, .18); }
.cityx__map { position: absolute; right: 20px; bottom: 20px; width: 160px; height: 160px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px rgba(243, 237, 228, .75), 0 18px 40px -18px rgba(30, 25, 19, .55); }
.cityx__hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 9px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: opacity .8s var(--ease-out); }
.cityx__hint.is-gone { opacity: 0; }
.cityx__cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 250, 240, .9); box-shadow: 0 0 0 1px rgba(30, 25, 19, .35); opacity: 0; pointer-events: none !important; }
.cityx.is-locked .cityx__cross { opacity: 1; }
.cityx__joy { position: absolute; left: 24px; bottom: 28px; width: 124px; height: 124px; border-radius: 50%; background: rgba(243, 237, 228, .35); box-shadow: inset 0 0 0 1.5px rgba(243, 237, 228, .9); touch-action: none; }
.cityx__knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(243, 237, 228, .95); box-shadow: 0 0 0 1.5px var(--gold), 0 8px 20px -8px rgba(30, 25, 19, .5); }

.cityx__card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); padding: 30px 30px 28px; border-radius: var(--r-lg); animation: cityx-in .6s var(--ease-out); }
.cityx__card[hidden], .cityx__tower[hidden] { display: none; }
.cityx__card h2 { font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.04em; line-height: 1.02; margin: 10px 0 14px; }
.cityx__card h2 em, .cityx__tower h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.cityx__card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.cityx__card .eyebrow { margin: 0; color: var(--gold-deep); }
.cityx__keys { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.cityx__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cityx .btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(30, 25, 19, .25); }
.cityx .btn--ghost::before { background: var(--ink); }
.cityx .btn--ghost:hover, .cityx .btn--ghost:focus-visible { color: var(--cream); }
.cityx__xfers { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.cityx__xfers li { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; padding: 8px 12px; border-radius: 12px; background: rgba(184, 149, 94, .12); }
.cityx__xfers i { font-style: normal; color: var(--gold-deep); }
.cityx__xfers b { font-family: var(--f-mono); font-weight: 500; color: var(--gold-deep); }
.cityx__small { font-size: 12.5px !important; color: var(--ink-3) !important; }
@keyframes cityx-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); } to { opacity: 1; transform: translate(-50%, -50%); } }

.cityx__tower { position: absolute; right: 20px; top: 84px; width: min(340px, calc(100vw - 40px)); padding: 20px 22px; border-radius: var(--r-md); animation: cityx-side .5s var(--ease-out); }
@keyframes cityx-side { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.cityx__tower .eyebrow { margin: 0; color: var(--gold-deep); font-size: 10.5px; }
.cityx__tower h3 { font-size: 30px; letter-spacing: -0.02em; margin: 4px 0 14px; line-height: 1; }
.cityx__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cityx__lbl { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cityx__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.cityx__cols li { display: flex; justify-content: space-between; gap: 8px; }
.cityx__cols li b { font-family: var(--f-mono); font-weight: 500; }
.cityx__net { margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid rgba(30, 25, 19, .1); display: flex; justify-content: space-between; font-size: 13px; }
.cityx__net b { font-family: var(--f-mono); font-size: 15px; }
.cityx__net.pos b { color: var(--ok); }
.cityx__net.neg b { color: var(--bad); }
.cityx__tower .cityx__small { margin: 0; }

@media (max-width: 760px) {
  .cityx__brand { left: 12px; top: 12px; padding: 6px 12px 6px 8px; }
  .cityx__brand span { display: none; }
  .cityx__exit { right: 12px; top: 12px; height: 40px; }
  .cityx__exit kbd { display: none; }
  .cityx__quest { top: 64px; padding: 7px 12px; gap: 8px; }
  .cityx__qlabel { display: none; }
  .cityx__qdots li { padding: 3px 6px; font-size: 8.5px; }
  .cityx__map { right: 14px; bottom: 28px; width: 110px; height: 110px; }
  .cityx__hint { display: none; }
  .cityx__tower { top: auto; bottom: 170px; right: 12px; left: 12px; width: auto; padding: 16px 18px; }
  .cityx__tower h3 { font-size: 24px; margin-bottom: 10px; }
  .cityx__card { padding: 24px 22px 22px; }
  .cityx__xfers li { grid-template-columns: 1fr auto; }
  .cityx__xfers li i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .net3d__enter-dot::after { animation: none; }
  .cityx__card, .cityx__tower { animation: none; }
}

/* ==========================================================================
   v7 — NicoMach City cinematic entry: letterbox, title, loading, skip, sound
   (the bars are the one dark element: they frame the film, then leave)
   ========================================================================== */
.cityx { --lb: max(56px, min(12vh, calc((100vh - 100vw / 2.39) / 2))); --film: #0E0B08; --film-ink: #F6EEDF; --film-gold: #E2BD72; }
.cityx__bars { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cityx__bar { position: absolute; left: 0; right: 0; height: var(--lb); background: var(--film); transition: transform 1.1s var(--ease-out); }
.cityx__bar--t { top: 0; transform: translateY(-101%); }
.cityx__bar--b { bottom: 0; transform: translateY(101%); }
.cityx.is-cine .cityx__bar, .cityx.is-loading .cityx__bar { transform: none; }

.cityx__title { position: absolute; z-index: 4; left: clamp(24px, 6vw, 96px); bottom: calc(var(--lb) + clamp(24px, 6vh, 72px)); max-width: min(640px, calc(100vw - 48px));
  color: var(--film-ink); pointer-events: none; opacity: 0; transform: translateY(14px); filter: blur(8px);
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out), filter 1.4s var(--ease-out); text-shadow: 0 2px 30px rgba(20, 12, 4, .45); }
.cityx.is-titled .cityx__title { opacity: 1; transform: none; filter: none; }
.cityx__title-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: #EBD9B8; }
.cityx__title-eyebrow svg { width: 22px; height: 22px; --logo-n: var(--film-ink); color: var(--film-gold); }
.cityx__title h2 { font-weight: 400; font-size: clamp(34px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.045em; margin: 14px 0 14px; }
.cityx__title h2 em { color: #F3D9A4; }
.cityx__title-sub { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(246, 238, 223, .84); max-width: 44ch; }

.cityx__load { position: absolute; z-index: 5; left: 50%; bottom: calc(var(--lb) / 2); transform: translate(-50%, 50%); width: min(280px, 60vw); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cityx__load[hidden] { display: none; }
.cityx__load-line { position: relative; display: block; width: 100%; height: 1px; background: rgba(226, 189, 114, .25); overflow: hidden; }
.cityx__load-line i { position: absolute; inset: 0; background: var(--film-gold); transform-origin: left center; transform: scaleX(0); transition: transform .35s linear; }
.cityx__load-txt { font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #D9C7A5; }
.cityx__load-txt b { font-weight: 500; color: #F3D9A4; font-variant-numeric: tabular-nums; }

.cityx__skip { position: absolute; z-index: 5; right: clamp(16px, 3vw, 40px); bottom: calc(var(--lb) / 2); transform: translateY(50%);
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(246, 238, 223, .08); color: #EFE3CB; font: 500 13px/1 var(--f-sans); box-shadow: inset 0 0 0 1px rgba(226, 189, 114, .35);
  transition: background .3s, color .3s; }
.cityx__skip:hover, .cityx__skip:focus-visible { background: var(--film-gold); color: var(--ink); outline: none; }
.cityx__skip kbd { background: rgba(246, 238, 223, .12); }
.cityx__skip[hidden] { display: none; }

.cityx__sound { position: absolute; z-index: 6; right: 20px; top: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(243, 237, 228, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(30, 25, 19, .08), 0 18px 40px -22px rgba(30, 25, 19, .5); transition: background .3s, color .3s, opacity .5s; }
.cityx__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cityx__sound svg path:first-child { fill: currentColor; stroke: none; }
.cityx__sound .x { display: none; }
.cityx__sound.is-muted .w1, .cityx__sound.is-muted .w2 { display: none; }
.cityx__sound.is-muted .x { display: inline; }
.cityx__sound:hover, .cityx__sound:focus-visible { background: var(--ink); color: var(--cream); outline: none; }
.cityx.is-cine .cityx__sound, .cityx.is-loading .cityx__sound { top: calc(var(--lb) / 2); transform: translateY(-50%); background: rgba(246, 238, 223, .08); color: #EFE3CB; box-shadow: inset 0 0 0 1px rgba(226, 189, 114, .35); }
.cityx.is-play .cityx__sound { top: auto; right: 196px; bottom: 78px; }

/* the first card sits low on the left, so the first view of the city stays clear */
.cityx__card--start { left: clamp(20px, 4vw, 56px); top: auto; bottom: clamp(20px, 5vh, 56px); transform: none; width: min(400px, calc(100vw - 40px)); animation: cityx-rise .7s var(--ease-out); }
@keyframes cityx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .cityx__title { left: 20px; bottom: calc(var(--lb) + 20px); }
  .cityx__title-sub { font-size: 14px; }
  .cityx__skip kbd { display: none; }
  .cityx.is-play .cityx__sound { right: 136px; bottom: 61px; }
  .cityx__card--start { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cityx__bar, .cityx__title { transition: none; }
  .cityx__card--start { animation: none; }
}
