/* Valtier NYC homepage. One black and white film under the page.
   Base layer = a plain, readable page (no JS, Reduce Motion). `.cine` on <html> turns on the scroll film. */

@font-face { font-family: "Valtier Display"; font-style: normal; font-display: swap; font-weight: 700; src: url(/cine/fonts/archivo-700-w72.woff2) format("woff2"); }
@font-face { font-family: "Valtier Head"; font-style: normal; font-display: swap; font-weight: 600; src: url(/cine/fonts/archivo-600-w80.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/_astro/ibm-plex-sans-latin-400-normal.CDDApCn2.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/_astro/ibm-plex-sans-latin-500-normal.6ng42L7E.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/_astro/ibm-plex-mono-latin-400-normal.DMJ8VG8y.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/_astro/ibm-plex-mono-latin-500-normal.DSY6xOcd.woff2) format("woff2"); }

:root {
  --ink: #070707;
  --ink-2: #111;
  --paper: #f4f4f2;
  --white: #fff;
  --mid: #8b8b8b;
  --fg: var(--white);
  --bg: var(--ink);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.16);
  --glass: rgba(10,10,10,.55);
  --display: "Valtier Display", "Arial Narrow", Impact, sans-serif;
  --head: "Valtier Head", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.1,1);
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --vh: 1svh;
  color-scheme: dark;
}
@supports not (height: 1svh) { :root { --vh: 1vh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; transition: background-color .6s var(--ease), color .6s var(--ease); overflow-x: clip; }
html[data-tone="light"] body { --bg: var(--paper); --fg: var(--ink); --muted: rgba(0,0,0,.6); --line: rgba(0,0,0,.14); --glass: rgba(255,255,255,.7); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.nav :focus-visible { outline-color: #fff; }
.cine { scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Type */
.label { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.display { font: 700 clamp(40px, 7vw, 104px)/.92 var(--display); letter-spacing: 0; text-wrap: balance; }
.statement { font: 600 clamp(28px, 4.2vw, 60px)/1.02 var(--head); letter-spacing: -.01em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
em { font-style: normal; color: var(--mid); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid currentColor; background: var(--fg); color: var(--bg); font: 500 14px/1 var(--body); letter-spacing: .01em; text-decoration: none; transition: background-color .25s, color .25s; }
.btn:hover { background: transparent; color: var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.arrow { width: 13px; height: 13px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.round { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.round svg { width: 14px; }
.chip { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 5px 8px; }

/* Nav: white with difference blending, so it reads on black and on white footage */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gut-r) 14px var(--gut); color: #fff; mix-blend-mode: difference; }
.nav__brand { width: 150px; flex: none; }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav__links a { text-decoration: none; opacity: .85; }
.nav__links a:hover { opacity: 1; }
.nav__clock { opacity: .7; }
.nav__cta { background: #fff; color: #000; }
.nav__cta:hover { background: transparent; color: #fff; }
.nav__menu { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.nav__menu i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav__menu i:first-of-type { top: 17px; } .nav__menu i:last-of-type { top: 25px; }
.nav__menu[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu[hidden] { display: none; }
.menu { position: fixed; inset: 0; background: #000; color: #fff; padding: 96px var(--gut-r) 40px var(--gut); display: grid; align-content: space-between; mix-blend-mode: normal; }
.menu ul { display: grid; gap: 6px; }
.menu li a { display: flex; gap: 16px; align-items: baseline; font: 700 40px/1.1 var(--display); text-decoration: none; }
.menu .btn { background: #fff; color: #000; justify-self: start; }

/* Loader */
.loader { display: none; }
/* Loading state: a hairline across the top while the opening frames arrive. The still and headline show at once. */
.cine.is-loading .loader, .cine .loader.is-out { display: block; position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; transition: opacity .6s var(--ease); }
.loader__bar { display: block; height: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.loader.is-out { opacity: 0; pointer-events: none; }

/* ---------- Scenes, base layer (static stills) ---------- */
.scene { position: relative; isolation: isolate; }
.pin { position: relative; min-height: calc(100 * var(--vh)); display: grid; }
.scene--flow > .pin { min-height: calc(56 * var(--vh)); }
.stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.scene--light .stage { background: var(--paper); }
.stage .poster, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage canvas { display: none; }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,.55)); }
.scrim--hero { background: radial-gradient(120% 90% at 30% 70%, rgba(0,0,0,.6), rgba(0,0,0,.05) 70%); }
.scrim--strong { background: rgba(0,0,0,.62); }
.scrim--side { background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.45) 50%, rgba(0,0,0,.15)); }
.scrim--bottom { background: linear-gradient(180deg, rgba(0,0,0,.1) 40%, rgba(0,0,0,.85)); }
.scrim--top { background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.1) 55%); }
.scrim--light { background: linear-gradient(90deg, rgba(244,244,242,.92), rgba(244,244,242,.6) 48%, rgba(244,244,242,0) 75%); }
.ov { position: relative; align-self: center; width: 100%; max-width: 1320px; margin: 0 auto; padding: 120px var(--gut-r) 80px var(--gut); }
.flow { position: relative; padding-top: 120px; padding-bottom: 120px; }
.band { position: relative; padding: 96px 0; }
.band--dark { background: var(--ink); color: #fff; }
.cine .band--dark { background: rgba(7,7,7,.84); }
.band--light { background: var(--paper); color: var(--ink); --fg: var(--ink); --bg: var(--paper); --muted: rgba(0,0,0,.6); --line: rgba(0,0,0,.14); }
.scene--light { --fg: var(--ink); --bg: var(--paper); --muted: rgba(0,0,0,.6); --line: rgba(0,0,0,.14); color: var(--ink); }

/* Hero */
.hero { align-self: end; display: grid; gap: 22px; padding-bottom: 18vh; }
.hero__title { max-width: 11ch; }
.hero__sub { font-size: clamp(17px, 1.5vw, 21px); max-width: 38ch; color: rgba(255,255,255,.8); }
.hero__hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 0 var(--gut-r) 28px var(--gut); align-self: end; max-width: none; opacity: .75; }
.hero__cue { display: inline-flex; align-items: center; gap: 10px; }
.hero__cue i { width: 1px; height: 28px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Before/After */
.ba { display: grid; gap: 48px; }
.ba__line { display: grid; gap: 14px; max-width: min(100%, 980px); }
.ba__line .statement { display: block; max-width: 15ch; }
.ba__line .statement { font-size: clamp(32px, 5vw, 72px); }
.ba__line + .ba__line { justify-self: end; text-align: right; }
.ba__line + .ba__line .statement { margin-left: auto; }

/* Leakage + timesheet */
.leak { display: grid; gap: 22px; }
.leak__title { max-width: 18ch; }
.ts { border: 1px solid var(--line); background: rgba(0,0,0,.5);  padding: 20px; display: grid; gap: 18px; max-width: 920px; }
.ts__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); }
.ts__cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ts__cell { display: grid; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--line); font-size: 20px; }
.ts__cell:last-child { border-right: 0; }
.ts__cell--total { background: rgba(255,255,255,.06); }
.ts__ot { font-style: normal; font-size: 13px; color: #fff; background: rgba(255,255,255,.14); padding: 1px 4px; }
.ts__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ts__big { font-size: clamp(22px, 3vw, 36px); }
.ts__big small { font-size: .45em; color: var(--muted); }
.ts__loss .ts__big { color: #fff; }
.ts__note { font-size: 13px; color: var(--muted); }
.ts__note a { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.stat { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--line); padding-top: 20px; }
.stat__num { font-size: clamp(48px, 6vw, 84px); line-height: 1; }
.stat__num span { color: var(--mid); }
.source { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); justify-self: start; }
.leaks { display: grid; gap: 10px; }
.leaks li { display: flex; gap: 14px; }
.leaks .num { color: var(--mid); }
.proof { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-top: 72px; }
.proof__line { font: 600 clamp(24px, 3vw, 40px)/1.1 var(--head); max-width: 26ch; }

/* Systems */
.sys { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.sys__head { display: grid; gap: 20px; align-content: start; }
.sys__count { color: var(--muted); }
.sys__count b { color: #fff; font-weight: 500; }
.sys__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card a { display: grid; gap: 10px; height: 100%; padding: 22px; border: 1px solid var(--line); background: rgba(8,8,8,.86);  text-decoration: none; transition: border-color .3s; }
.card a:hover { border-color: rgba(255,255,255,.5); }
.card h3 { font: 600 24px/1.05 var(--head); }
.card p { color: var(--muted); font-size: 15px; }
.readout { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; font-size: 12px; color: rgba(255,255,255,.78); }
.readout p { display: flex; justify-content: space-between; gap: 12px; }
.readout .t { border-top: 1px solid var(--line); padding-top: 4px; color: #fff; }
.readout .flag { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.readout--two { grid-template-columns: 1fr 1fr; gap: 16px; }
.readout--two > div { display: grid; gap: 4px; }
.readout--bars { grid-template-columns: repeat(4, 1fr); align-items: end; height: 96px; gap: 10px; }
.readout--bars p { display: grid; gap: 6px; align-content: end; height: 100%; }
.readout--bars i { display: block; height: calc(var(--v) * 64px); min-height: 3px; background: rgba(255,255,255,.75); }
.readout--tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding-left: 0; margin-bottom: 0; }
.readout--tags li { border: 1px solid var(--line); padding: 4px 8px; font: 500 11px/1 var(--mono); }
.spark { width: 100%; height: 60px; }
.spark polyline, .pv__chart polyline { stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark__min { stroke: currentColor; stroke-dasharray: 3 4; opacity: .5; vector-effect: non-scaling-stroke; }

/* Calculator */
.calcsec { display: grid; gap: 40px; }
.calcsec__head { display: grid; gap: 16px; max-width: 640px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; max-width: 980px; background: rgba(0,0,0,.14); border: 1px solid rgba(0,0,0,.14); }
.calc__in, .calc__out { margin: 0; border: 0; background: rgba(250,250,248,.95);  padding: 28px; display: grid; gap: 24px; align-content: start; min-width: 0; }
.calc__in legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.ctl { display: grid; gap: 10px; }
.ctl__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ctl output, .ctl__edit { font-size: 18px; }
.ctl__edit input { width: 4.2em; font: inherit; font-size: 18px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(0,0,0,.3); padding: 2px 0; }
.stepper { display: flex; align-items: stretch; border: 1px solid rgba(0,0,0,.25); width: max-content; }
.stepper button { width: 48px; min-height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: inherit; }
.stepper input { width: 64px; text-align: center; font-size: 20px; border: 0; border-left: 1px solid rgba(0,0,0,.2); border-right: 1px solid rgba(0,0,0,.2); background: transparent; color: inherit; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button, .ctl__edit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #000 var(--p, 50%), rgba(0,0,0,.18) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #000; margin-top: -10px; border: 3px solid var(--paper); box-shadow: 0 0 0 1px #000; }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(0,0,0,.18); }
input[type="range"]::-moz-range-progress { height: 2px; background: #000; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #000; border: 3px solid var(--paper); box-shadow: 0 0 0 1px #000; }
.calc__out { gap: 20px; }
.calc__statement { font: 600 clamp(24px, 2.6vw, 34px)/1.15 var(--head); }
.calc__big { display: block; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; margin: 6px 0; letter-spacing: -.03em; }
.calc__hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid rgba(0,0,0,.14); padding-top: 16px; }
.calc__hud dd { font-size: 20px; margin-top: 4px; }
.calc__foot { font: 400 12px/1.4 var(--mono); color: rgba(0,0,0,.72); }
.scene--light .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.scene--light .btn:hover, .scene--light .btn--ghost, .band--light .btn--ghost { background: transparent; color: var(--ink); }
.scene--light .btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Demos */
.demos__intro { align-self: end; padding-bottom: 14vh; color: var(--ink); }
.demos { padding-top: 24px; overflow: hidden; }
.demos__ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.demos__ctrl p { margin-right: auto; color: rgba(0,0,0,.55); }
.demos__ctrl b { color: var(--ink); font-weight: 500; }
.demos__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 860px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); padding: 0 var(--gut-r) 8px var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.demos__track::-webkit-scrollbar { display: none; }
.dcard { scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid rgba(0,0,0,.14); background: #fff; }
.pv { background: var(--ink); color: rgba(255,255,255,.85); padding: 20px; display: grid; gap: 12px; align-content: start; min-height: 340px; font-size: 12px; }
.pv__bar { display: flex; justify-content: space-between; gap: 8px; color: rgba(255,255,255,.6); }
.pv__rows { display: grid; gap: 3px; }
.pv__rows p { display: grid; grid-template-columns: .9fr 1fr .6fr 1.1fr; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.pv__rows p span:last-child { text-align: right; }
.pv__rows .flag { color: #fff; background: rgba(255,255,255,.08); }
.pv__rows--inv p { grid-template-columns: 1.4fr 1fr .8fr; }
.pv__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); }
.pv__foot b { font-size: 20px; color: #fff; font-weight: 500; }
.pv__to { color: rgba(255,255,255,.55); }
.pv__chart { width: 100%; height: 180px; color: #fff; }
.pv__chart circle { fill: #fff; }
.dcard__body { padding: 28px; display: grid; gap: 14px; align-content: start; }
.dcard__top { display: flex; justify-content: space-between; align-items: center; }
.dcard h3 { font: 700 40px/1 var(--display); }
.dcard__body p { color: rgba(0,0,0,.68); }
.dcard .btn { justify-self: start; margin-top: 8px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dcard .btn:hover { background: transparent; color: var(--ink); }
.rail { height: 1px; background: rgba(0,0,0,.14); margin-top: 24px; }
.rail i { display: block; height: 100%; width: 33.333%; background: var(--ink); transition: transform .4s var(--ease); }

/* Process */
.proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: start; }
.proc__title { grid-column: 1; }
.proc__tabs { grid-column: 1; position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-self: end; padding-bottom: 14px; }
.proc__tabs button { min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line); color: rgba(255,255,255,.7); font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.proc__tabs button[aria-selected="true"] { background: #fff; color: #000; border-color: #fff; }
.proc__rail { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.proc__rail b { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.proc__steps { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 28px; }
.pstep { display: grid; gap: 12px; border: 1px solid var(--line); background: rgba(8,8,8,.86);  padding: 26px; }
.pstep__s { font-size: 19px; }
.pstep__price { color: var(--muted); }
.pstep dl { display: grid; gap: 12px; margin-top: 6px; }
.pstep dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.pstep dt { color: var(--muted); }
.pstep dd { margin: 0; font-size: 15px; }

/* Team */
.settle { display: none; }
.team { display: grid; gap: 40px; }
.team__title { max-width: 16ch; }
.dean { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px 40px; padding: 28px; border: 1px solid var(--line); background: rgba(8,8,8,.88);  }
.dean__portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.dean__id { display: grid; gap: 10px; align-content: end; }
.dean__id h3 { font-size: clamp(40px, 5vw, 72px); }
.dean__title { font-size: 18px; }
.dean__current { color: var(--muted); max-width: 52ch; }
.dstats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.dstats dd { margin: 0; display: grid; gap: 6px; }
.dstats b { font-size: clamp(28px, 3vw, 40px); font-weight: 500; }
.dstats span { font-size: 13px; color: var(--muted); }
.creds { grid-column: 1 / -1; display: grid; gap: 10px; }
.creds li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 15px; }
.creds .label { color: var(--muted); padding-top: 3px; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; }
.certs span { border: 1px solid var(--line); padding: 4px 10px; font-size: 13px; }
.roles { display: grid; gap: 18px; }
.roles__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.role { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid var(--line); background: rgba(8,8,8,.88);  }
.mono { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); font: 700 20px/1 var(--display); letter-spacing: .02em; }
.role h3 { display: grid; gap: 2px; margin-bottom: 8px; }
.role__name { font: 600 22px/1.1 var(--head); }
.role__r { font-size: 15px; }
.role__where { color: var(--muted); }
.role p { font-size: 14px; color: var(--muted); }
.roles .btn { justify-self: start; }

/* Pricing */
.pricing { display: grid; gap: 22px; }
.pricing > h2 { max-width: 14ch; margin-bottom: 20px; }
.floor { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); background: rgba(8,8,8,.86);  max-width: 860px; }
.floor__name { font: 600 28px/1.05 var(--head); }
.floor__price { font-size: clamp(26px, 3vw, 38px); }
.floor__price small { font-size: .5em; color: var(--muted); }
.floor > p:not(.label):not(.floor__name):not(.floor__price) { color: var(--muted); }
.floor .btn { justify-self: start; margin-top: 6px; }
.tiers { display: grid; gap: 22px; }
.range { position: relative; height: 40px; max-width: 860px; margin: 6px 0; }
.range i { position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.2), #fff); }
.range span { position: absolute; top: 16px; color: var(--muted); white-space: nowrap; }
.range span:last-child { transform: translateX(-100%); left: 100% !important; }
.pricing__line { margin-top: 30px; }

/* Closing */
.final { align-self: start; padding-top: 22vh; display: grid; gap: 28px; }
.final h2 { max-width: 14ch; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 96px 0 calc(40px + env(safe-area-inset-bottom, 0px)); position: relative; z-index: 1; }
.footer__mark { display: grid; gap: 12px; max-width: 520px; margin-bottom: 64px; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__grid ul { display: grid; gap: 2px; margin-top: 10px; }
.footer__grid li a { display: inline-block; padding: 8px 0; }
.footer__grid a { text-decoration: none; opacity: .85; }
.footer__grid a:hover { opacity: 1; text-decoration: underline; }
.footer address { font-style: normal; margin-top: 14px; color: rgba(255,255,255,.62); }
.footer__clock { font-size: 28px; margin: 14px 0 6px; }
.footer__clock small, .footer .label { color: rgba(255,255,255,.55); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 72px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; }

/* HUD + grain */
.hudline { position: fixed; left: var(--gut); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; gap: 14px; color: #fff; mix-blend-mode: difference; opacity: .7; }
.grain { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; opacity: .07; } .grain::before { content: ""; position: absolute; inset: -160px; will-change: transform; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Film mode ---------- */
.cine .scene--pin { height: calc(var(--len, 200) * var(--vh)); }
/* A pin taller than the screen scrolls until its last line shows, then holds (JS sets a negative top). */
.cine .scene--pin > .pin { position: sticky; top: var(--pin-top, 0px); min-height: calc(100 * var(--vh)); overflow: hidden; }
.cine .scene--flow > .pin { position: sticky; top: 0; height: calc(100 * var(--vh)); min-height: 0; margin-bottom: calc(-100 * var(--vh)); z-index: -1; }
.cine .stage canvas { display: block; }
.cine .stage.has-frames .poster { visibility: hidden; }
/* Faded-out overlays also leave the tab order and the accessibility tree (visibility flips after the fade). */
.cine [data-ov] { opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s linear .7s; }
.cine [data-ov].is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cine .ba { position: absolute; inset: 0; align-content: center; }
.cine .hudline { display: flex; }
.grain::before { animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-37px,21px); } 40% { transform: translate(29px,-17px); } 60% { transform: translate(-13px,-41px); } 80% { transform: translate(43px,11px); } 100% { transform: translate(0,0); } }

/* Systems: one card at a time, swapped as each room passes */
.cine .sys__cards { display: grid; grid-template-columns: minmax(0, 1fr); }
.cine .sys .card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.cine .sys .card.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cine .sys .card a { padding: 32px; }
.cine .sys .card h3 { font-size: clamp(30px, 3vw, 44px); }

/* Process: tabs pick the step */
.cine .proc__steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.cine .pstep { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.cine .pstep.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Team: the film plays out over the spacer, then the cards rise over Dean's frame */
.cine .settle { display: block; height: calc(130 * var(--vh)); }

/* Leakage: overtime cells light up with the counter */
.cine .ts__ot { opacity: .25; transition: opacity .3s; }
.cine .ts.is-ot .ts__ot { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sys, .proc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .proc__steps { grid-column: 1; grid-row: auto; }
  .sys__cards { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .scrim--light { background: rgba(244,244,242,.55); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav { gap: 12px; }
  .nav__brand { width: 120px; }
  .nav__links, .nav__clock, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .ov { padding-top: 96px; padding-bottom: 56px; }
  .flow { padding-top: 88px; padding-bottom: 88px; }
  .band { padding: 72px 0; }
  .hero { padding-bottom: 14svh; }
  .hero__hud span:nth-child(2) { display: none; }
  .ba__line + .ba__line { justify-self: start; text-align: left; }
  .ts { padding: 14px; }
  .ts__cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ts__cell { font-size: 17px; border-bottom: 1px solid var(--line); }
  .ts__cell:nth-child(4n) { border-right: 0; }
  .ts__foot { grid-template-columns: 1fr 1fr; }
  .ts__foot > div:first-child { grid-column: 1 / -1; }
  .card a, .cine .sys .card a { padding: 20px; }
  .readout { display: none; }
  .calc__in, .calc__out { padding: 20px; }
  .calc__hud { grid-template-columns: 1fr 1fr; }
  .demos__track { grid-auto-columns: 86vw; }
  .dcard { grid-template-columns: minmax(0, 1fr); }
  .pv { min-height: 0; }
  .pv__rows p:nth-child(n+7) { display: none; }
  .proc__tabs button { padding: 0 10px; font-size: 12px; }
  .pstep { padding: 20px; }
  .pstep dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dean { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .dean__portrait { max-width: 260px; }
  .dstats { grid-template-columns: 1fr 1fr; }
  .creds li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cine .settle { height: calc(110 * var(--vh)); }
  input, select, textarea { font-size: 16px; }
}

/* Reduce Motion never gets film mode, and nothing moves on its own */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}

/* Phones: shorter pins, so no scene overstays its welcome */
@media (max-width: 760px) {
  .cine .scene--pin { height: max(calc(130 * var(--vh)), calc(var(--len, 200) * .7 * var(--vh))); }
}

/* ---------- Disclosures and legal pages: quiet by design ---------- */
.footer__law { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer__law a { text-decoration: none; color: inherit; padding: 6px 0; }
.footer__law a:hover { text-decoration: underline; }
.demo-cap { font: 400 10.5px/1.4 var(--mono); letter-spacing: .06em; color: rgba(255,255,255,.62); margin-top: -4px; }
.legal { padding: calc(120px + env(safe-area-inset-top, 0px)) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 700 clamp(40px, 6vw, 72px)/.95 var(--display); margin-bottom: 14px; }
.legal__date { color: var(--muted); margin-bottom: 48px; }
.legal h2 { font: 600 24px/1.15 var(--head); margin: 44px 0 12px; }
.legal h3 { font: 500 16px/1.4 var(--body); margin: 24px 0 8px; }
.legal p, .legal li { color: rgba(255,255,255,.82); max-width: 66ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.legal a { text-underline-offset: 3px; }
.legal .confirm { font-family: var(--mono); font-size: .86em; background: rgba(255,255,255,.12); padding: 1px 6px; color: #fff; }
.legal .note { border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 40px; color: var(--muted); }

/* ---------- One fixed film screen behind the whole page (no seams between scenes) ---------- */
.film { display: none; }
.cine .film { display: block; position: fixed; inset: 0; z-index: 0; background: var(--ink); pointer-events: none; }
html.cine[data-tone="light"] .film { background: var(--paper); }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film.has-frames .film__poster { visibility: hidden; }
.film__scrim { position: absolute; inset: 0; transition: opacity .5s var(--ease), background .5s var(--ease); }
.cine main { position: relative; z-index: 1; }
.cine .footer { position: relative; z-index: 1; }
.cine .scene .stage { display: none; }

/* Leadership: one even row per person, same columns for everyone */
.roles__list { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; border-top: 1px solid var(--line); }
.role { grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.role h3 { margin-bottom: 0; }
.role p { max-width: 62ch; }
.roles { padding: 24px 28px 28px; border: 1px solid var(--line); background: rgba(8,8,8,.88); }
@media (max-width: 760px) {
  .roles { padding: 18px 18px 22px; }
}

/* ---------- Hero: the VALTIER NYC wordmark leads ---------- */
.hero { gap: 18px; }
.hero__mark { margin: 0; line-height: 0; }
.hero__wm { width: min(88vw, 1180px); height: auto; color: #fff; }
.hero__city { margin-top: 6px; }
.hero__headline { font: 600 clamp(24px, 3.2vw, 44px)/1.04 var(--head); letter-spacing: -.005em; max-width: 22ch; text-wrap: balance; }
html.intro-hold .hero__mark { visibility: hidden; }

/* ---------- Intro: particles assemble into the wordmark, counter runs, screen lifts ---------- */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 70; background: var(--ink); cursor: pointer; transition: opacity .6s var(--ease); }
html.intro-on body { overflow: hidden; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__count { position: absolute; left: var(--gut); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); color: #fff; font-size: 13px; }
.intro__skip { position: absolute; right: var(--gut-r); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); color: rgba(255,255,255,.55); }
.intro.bg-out { background: transparent; pointer-events: none; transition: background .6s var(--ease), opacity .6s var(--ease); }
.intro.is-out { opacity: 0; pointer-events: none; }
html.intro-on .loader { display: none !important; }

/* Mobile menu: solid background, and the nav stops blending while it is open */
.nav.menu-open { mix-blend-mode: normal; }
.menu { background: #070707; }

/* Slower walk to Dean */
.cine .settle { height: calc(260 * var(--vh)); }
@media (max-width: 760px) { .cine .settle { height: calc(200 * var(--vh)); } .hero__wm { width: 92vw; } }

/* ---------- Page transitions ---------- */
html.vt-screen-in::after, html.vt-slide-in::after { content: ""; position: fixed; inset: 0; z-index: 999; background: #070707; }
.vt { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #070707; color: #fff; pointer-events: none; }
.vt--screen { clip-path: inset(100% 0 0 0); transition: clip-path .55s cubic-bezier(.65,0,.35,1); }
.vt--screen.is-on { clip-path: inset(0 0 0 0); }
.vt--screen.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.65,0,.35,1) .05s; }
.vt__inner { display: grid; justify-items: center; gap: 18px; }
.vt__mark { width: min(56vw, 640px); height: auto; color: #fff; opacity: 0; transform: scale(.965); transition: opacity .45s cubic-bezier(.2,.7,.1,1) .18s, transform .9s cubic-bezier(.2,.7,.1,1) .18s; }
.vt.is-on .vt__mark { opacity: 1; transform: none; }
.vt.is-still, .vt.is-still .vt__mark, .vt.is-still .vt__line { transition: none !important; }
.vt.is-leaving .vt__mark { opacity: 0; transform: translateY(-14px); transition: opacity .35s ease, transform .6s ease; }
.vt__line { display: block; width: min(56vw, 640px); height: 1px; background: rgba(255,255,255,.22); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.7,.1,1) .25s; }
.vt.is-on .vt__line { transform: scaleX(1); }
.vt--slide { clip-path: inset(0 0 0 100%); transition: clip-path .3s cubic-bezier(.65,0,.35,1); }
.vt--slide.is-on { clip-path: inset(0 0 0 0); }
.vt--slide.is-leaving { clip-path: inset(0 100% 0 0); transition: clip-path .5s cubic-bezier(.65,0,.35,1); }
@media (prefers-reduced-motion: reduce) { .vt, html.vt-screen-in::after, html.vt-slide-in::after { display: none !important; } }
.nav:has(.menu:not([hidden])) { mix-blend-mode: normal; }

/* Leadership rows share the stats grid above them: same columns, same edges */
.role { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 8px; align-items: start; padding: 22px 0; }
.role > .role__who { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.role__who .mono { width: 48px; height: 48px; font-size: 18px; }
.role__who h3 { display: grid; gap: 2px; margin: 0; }
.role > p { grid-column: 2 / span 3; margin: 0; max-width: none; padding-top: 2px; }
@media (max-width: 1080px) {
  .role { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .role > p { grid-column: 2; }
}
@media (max-width: 760px) {
  .role { grid-template-columns: minmax(0, 1fr); }
  .role > p { grid-column: 1; padding-left: 62px; }
}

/* ---------- Motion rhythm: arrive slow (decelerate), leave fast (accelerate), lines stagger in ---------- */
.cine [data-ov] { transition: opacity .38s cubic-bezier(.55,0,.75,.2), transform .38s cubic-bezier(.55,0,.75,.2), visibility 0s linear .38s; }
.cine [data-ov].is-on { transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), visibility 0s; }
.cine [data-ov] > * { opacity: 0; transform: translateY(14px); transition: opacity .3s cubic-bezier(.55,0,.75,.2), transform .3s cubic-bezier(.55,0,.75,.2); }
.cine [data-ov].is-on > * { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.cine [data-ov].is-on > :nth-child(2) { transition-delay: 60ms; }
.cine [data-ov].is-on > :nth-child(3) { transition-delay: 120ms; }
.cine [data-ov].is-on > :nth-child(4) { transition-delay: 180ms; }
.cine [data-ov].is-on > :nth-child(5) { transition-delay: 240ms; }
.cine [data-ov].is-on > :nth-child(n+6) { transition-delay: 300ms; }
/* The hero is on screen from the first frame: no entrance stagger there except after the intro */
html.cine:not(.intro-on) .hero > * { transition-delay: 0s; }

/* Phones: the film screen is sized to the full screen height, so it never resizes as the address bar moves */
.cine .film { bottom: auto; height: 100vh; height: 100lvh; }
