/* ONOTO brand.css: the one stylesheet for every ONOTO web page (Night Floor).
   Tokens, base, and every website component: pill nav, buttons, hero, portholes with camera pills and
   corner brackets, stats, spec rows, accordion, segmented switch, cards, offers, framed ask, lists, forms,
   footer, reveals. Pages link it first and keep only their own layout in their own file.
   The live catalogue of every element is ui/ (the brand's UI page). Layout patterns after T1 Energy's site. */
:root {
  --canvas: #0f0e12; --ink: #eeece6; --muted: #8d8a85; --line: #26242a;
  --card: #17161b; --art: #1b1a20; --inv: #eeece6; --inv-ink: #0f0e12;
  --sans: var(--font-sohne); --display: var(--font-sohne);
  --display-w: 300; --display-lh: 1.0; --display-track: -0.025em;
  --good: #69dfcf; --good-ink: #0f0e12; --warn: #ff7a3d; --warn-ink: #0f0e12;
  --hl: #69dfcf; --hl-ink: #0b2a26;
  --art-shadow: 0 0 0 1px #2a2830, 0 20px 40px -10px rgba(0,0,0,.6);
  --btn: #eeece6; --btn-ink: #0f0e12;
  --nav-bg: #1b1a20; --nav-ink: #8d8a85; --nav-on: #eeece6; --nav-on-ink: #0f0e12;
  --r-card: 24px; --r-small: 12px; --r-pill: 100px; --r-nav: 16px; --r-tag: 10px;

  /* site rhythm, measured from T1 at 1440: 120 px text gutter, 8 px media gutter, 80 px porthole radius */
  --gut: clamp(16px, 8.333vw, 120px);
  --edge: clamp(8px, 0.56vw, 8px);
  --r-port: clamp(36px, 5.56vw, 80px);
  --sp: clamp(112px, 11.1vw, 168px);
  --glass: rgba(46, 45, 51, .55); /* T1's flat glass (rgba 23,23,23,.5 over their bright footage), lifted to graphite so it reads on onyx */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --h2: clamp(30px, 3.05vw, 44px); /* founder, Nov 5: hero max 72 px, section headlines max 44 px, big numbers max 64 px */
  --lead: clamp(17px, 1.32vw, 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2 { font-family: var(--display); font-weight: var(--display-w); letter-spacing: var(--display-track); text-wrap: balance; }
h2 { font-size: var(--h2); line-height: 1.04; }
p { text-wrap: pretty; }
.dim { color: var(--muted); }
.good { color: var(--good); }
.warn { color: var(--warn); }
:focus-visible { outline: 2px solid var(--good); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 12px; font-weight: 500; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sp) 0 0; }
.lead { font-size: var(--lead); line-height: 1.55; color: var(--muted); max-width: 36em; }
/* T1's two-column module: headline in the left half, the line under it in the right half */
.cols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.cols > :first-child { padding-right: clamp(24px, 4.2vw, 60px); }
.head { margin-bottom: clamp(48px, 5vw, 72px); }
.head .lead { padding-top: .45em; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* After T1 Energy (measured Nov 5): rounded rectangles with 16 px corners, regular weight, dark glass or a 1 px outline,
   and no colour change on hover. Mint and orange are never button colours: they mean work and waiting. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--r-nav); background: var(--btn); color: var(--btn-ink); font-size: 15px; font-weight: 400; letter-spacing: 0; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), transform .5s var(--ease); }
.btn:hover { background: #fff; color: var(--btn-ink); }
.btn:active { transform: scale(.98); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn.glass { background: var(--glass); color: var(--ink); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: none; }
.btn.glass:hover { background: rgba(66, 65, 72, .6); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(238,236,230,.28); }
.btn.ghost:hover { background: rgba(238,236,230,.08); color: var(--ink); }
.ic { width: 18px; height: 18px; }

/* ---------- floating pill nav ---------- */
.nav { position: fixed; z-index: 50; top: 24px; right: 24px; left: 24px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 16px; border-radius: var(--r-nav); background: var(--glass); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: none; transition: background-color .4s var(--ease); }
.nav.solid .pill { background: rgba(23, 23, 23, .86); }
.lock { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 17px; letter-spacing: -.015em; line-height: 1; margin-right: 18px; }
.lock .mk { width: 21px; height: 21px; color: var(--ink); }
.links { display: flex; gap: 2px; margin-right: 6px; }
.links a { font-size: 14px; color: rgba(238,236,230,.72); padding: 8px 12px; border-radius: 10px; transition: color .3s var(--ease), background-color .3s var(--ease); }
.links a:hover, .links a.on, .links a[aria-current="page"] { color: var(--ink); background: rgba(238,236,230,.07); }
.menu { display: none; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border-radius: 10px; font-size: 14px; background: rgba(238,236,230,.08); }
.menu i { position: relative; width: 14px; height: 8px; }
.menu i::before, .menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu i::before { top: 0; } .menu i::after { top: 6.5px; }
.menu[aria-expanded="true"] i::before { top: 3.25px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i::after { top: 3.25px; transform: rotate(-45deg); }
.drawer { pointer-events: auto; margin-top: 8px; width: 100%; padding: 10px; border-radius: var(--r-nav); background: rgba(27, 26, 32, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: grid; gap: 2px; }
.drawer[hidden] { display: none; }
.drawer a:not(.btn) { padding: 14px 12px; font-size: 18px; border-radius: 10px; }
.drawer a:not(.btn):hover { background: rgba(238,236,230,.06); }
.drawer .btn { margin-top: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 70% 40%, #1d1c23 0%, var(--canvas) 70%); }
.hero-world { position: absolute; inset: 0; z-index: -2; }
.hero-world canvas, .am.world canvas { opacity: 0; animation: fade-in .9s var(--ease) forwards; }
/* The hero's opening frame as a picture, on screen with the text; the live floor opens on the same moment with the
   same camera and fades in over it. The picture is rendered without shift and wider than the screen: --shift-d
   (the element's data-shift) and --shift-m (the phone's) slide it to where the live view sits. */
.hero-world { --shift: var(--shift-d, 0); }
.hero-world .poster { position: absolute; inset: 0; overflow: hidden; }
.hero-world .poster img { position: absolute; top: 0; left: calc((.5 + var(--shift)) * 100%); height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.hero-world canvas { position: relative; }
@media (max-width: 640px) { .hero-world { --shift: var(--shift-m, 0); } }
@keyframes fade-in { to { opacity: 1; } }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(to top, rgba(15,14,18,.92) 0%, rgba(15,14,18,.55) 26%, rgba(15,14,18,0) 52%),
  linear-gradient(to right, rgba(15,14,18,.7) 0%, rgba(15,14,18,0) 44%),
  linear-gradient(to bottom, rgba(15,14,18,.5) 0%, rgba(15,14,18,0) 18%); }
.hero-copy { position: absolute; left: var(--gut); bottom: clamp(48px, 10.7vh, 96px); max-width: min(640px, calc(100% - 2 * var(--gut))); }
.hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: .98; }
.hero-copy p { margin-top: 22px; max-width: 26em; font-size: clamp(17px, 1.32vw, 19px); color: rgba(238,236,230,.74); }
.hero-copy .btns { margin-top: 32px; }
.hero-corner { position: absolute; right: 24px; bottom: clamp(48px, 10.7vh, 96px); display: flex; align-items: center; gap: 18px; width: 372px; padding: 8px 8px 8px 20px; border-radius: var(--r-nav); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: none; transition: background-color .35s var(--ease); }
.hero-corner:hover { background: rgba(66, 65, 72, .6); }
.hc-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: rgba(238,236,230,.7); }
.hc-txt b { display: block; font-weight: 500; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.hc-txt em { font-style: normal; color: var(--warn); font-weight: 500; font-variant-numeric: tabular-nums; }
.hc-txt em small { font-size: 1em; }
.hero-corner .hc-media { position: relative; flex: none; width: 104px; height: 104px; border-radius: 10px; }
.nw { white-space: nowrap; }
@media (max-width: 980px) { .dk { display: none; } .framed h2 { max-width: 10.5em; } }



/* ---------- portholes: footage, camera labels, corner-bracket detections ---------- */
.port { position: relative; overflow: hidden; border-radius: var(--r-port); background: #141318; isolation: isolate; }
.port > video, .port > img.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.port.xl { margin: 0 var(--edge); height: min(calc(100vw * 9 / 16 - 9px), 92vh); min-height: 420px; }
.port::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 20%, transparent 72%, rgba(0,0,0,.4)); }
.hc-media::after { display: none; }
.osd { position: absolute; z-index: 3; top: clamp(20px, 2.8vw, 40px); display: inline-flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1; color: #fff; background: var(--glass); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); padding: 10px 16px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; white-space: nowrap; }
.osd.tl { left: clamp(20px, 3.3vw, 48px); } .osd.tr { right: clamp(20px, 3.3vw, 48px); }
.osd i { display: none; } /* no recording dot: the camera name is enough (T1 labels media with plain glass pills) */
.det { position: absolute; z-index: 2; --c: var(--warn); --ci: var(--warn-ink); --b: 3px; --s: 20px; }
.det.good { --c: var(--good); --ci: var(--good-ink); }
.det.good::before { display: none; } /* work: mint corners and a short tag, no fill, no clock */
.det i { position: absolute; width: var(--s); height: var(--s); border: 0 solid var(--c); }
.det i:nth-child(1) { left: 0; top: 0; border-width: var(--b) 0 0 var(--b); border-top-left-radius: 7px; }
.det i:nth-child(2) { right: 0; top: 0; border-width: var(--b) var(--b) 0 0; border-top-right-radius: 7px; }
.det i:nth-child(3) { right: 0; bottom: 0; border-width: 0 var(--b) var(--b) 0; border-bottom-right-radius: 7px; }
.det i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 var(--b) var(--b); border-bottom-left-radius: 7px; }
.det::before { content: ""; position: absolute; inset: 0; background: var(--c); opacity: .1; border-radius: 7px; animation: det 2.4s ease-in-out infinite; }
@keyframes det { 50% { opacity: .2; } }
.det.sm { --b: 2px; --s: 12px; }
.det.sm i { border-radius: 0; }
.det.sm i:nth-child(1) { border-top-left-radius: 4px; } .det.sm i:nth-child(2) { border-top-right-radius: 4px; }
.det.sm i:nth-child(3) { border-bottom-right-radius: 4px; } .det.sm i:nth-child(4) { border-bottom-left-radius: 4px; }
.det .tag { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(calc(-50% + var(--nudge, 0px))); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1; background: var(--c); color: var(--ci); padding: 9px 14px; border-radius: var(--r-tag); box-shadow: none; }
.det .tag b { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .82; }
.det .tag b.usd { opacity: 1; padding-left: 10px; border-left: 1px solid rgba(15,14,18,.25); }
.port.xl .det { --b: 4px; --s: 28px; }
.port.xl .det .tag { font-size: clamp(14px, 1.18vw, 17px); padding: 11px 18px; bottom: calc(100% + 16px); }
.scrub { position: absolute; z-index: 3; left: clamp(28px, 4.4vw, 64px); right: clamp(28px, 4.4vw, 64px); bottom: clamp(22px, 2.8vw, 40px); display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.scrub .bar { position: relative; flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); }
.scrub .bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: rgba(255,255,255,.72); }
.scrub .bar i.w { background: var(--warn); }
.scrub .bar b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.22); left: 55%; animation: head 24s linear infinite; }
@keyframes head { from { left: 52%; } to { left: 61%; } }

/* ---------- 2 · what it is ---------- */
.what .statement { font-size: clamp(30px, 3.05vw, 44px); line-height: 1.06; max-width: 14.5em; position: sticky; top: 120px; }
.plugs-txt { position: sticky; top: 120px; }
.stats { display: grid; gap: 0; }
.stat { padding: 28px 0 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 24px; }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat b { font-family: var(--display); font-weight: var(--display-w); letter-spacing: var(--display-track); font-size: clamp(44px, 4.44vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { font-size: var(--lead); color: var(--muted); max-width: 18em; }

/* ---------- spec rows: a big light number, a short line under it ---------- */
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.8vw, 40px); margin-top: clamp(48px, 5vw, 72px); }
.spec.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp { border-top: 1px solid var(--line); padding-top: 26px; }
.sp .n { display: block; font-family: var(--display); font-weight: var(--display-w); letter-spacing: var(--display-track); font-size: clamp(36px, 3.6vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp .n small { font-family: var(--sans); font-size: .4em; letter-spacing: 0; color: var(--muted); margin-left: .1em; }
.sp .n em { font-style: normal; color: var(--warn); }
.sp .n .ar { color: var(--muted); font-size: .7em; }
.sp .n.warn { color: var(--warn); }
.sp .n.good { color: var(--good); }
.sp > span { display: block; margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 26em; }
[data-money] small { font-size: .55em; }

/* ---------- 4 · how it works: porthole left, accordion right ---------- */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.acc-media { position: relative; margin-left: var(--edge); aspect-ratio: 1 / 1; max-height: 92vh; border-radius: var(--r-port); overflow: hidden; background: var(--art); isolation: isolate; }
.am { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; border-radius: 0; }
.am.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.am.port { border-radius: 0; }
.am .chip { position: absolute; z-index: 3; left: clamp(20px, 3.3vw, 48px); bottom: clamp(20px, 3.3vw, 48px); display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-radius: var(--r-nav); background: rgba(15,14,18,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; color: rgba(255,255,255,.74); }
.am .chip b { color: #fff; font-weight: 500; font-size: 16px; }
.am.world { background: var(--canvas); }
.am.brief { display: grid; place-items: center; padding: clamp(24px, 4vw, 64px); background: radial-gradient(90% 80% at 50% 0%, #24232b 0%, var(--art) 70%); }
/* the brief is product UI, so it is drawn Steep-white like the dashboard windows */
.b-card { width: 100%; max-width: 480px; background: #fff; color: #17191c; border-radius: 22px; padding: 26px 26px 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 80px -30px rgba(0,0,0,.8); }
.b-hd { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #777b86; line-height: 1.3; }
.b-hd b { display: block; color: #17191c; font-weight: 500; font-size: 16px; }
.b-av { width: 40px; height: 40px; border-radius: 50%; background: #0f0e12; display: grid; place-items: center; flex: none; }
.b-av .mk { width: 20px; height: 20px; color: #eeece6; }
.b-t { margin-left: auto; font-variant-numeric: tabular-nums; }
.b-h { margin: 22px 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; color: #17191c; }
.b-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #ececec; line-height: 1.35; }
.b-row b { display: block; font-size: 15px; font-weight: 500; }
.b-row span { display: block; font-size: 13px; color: #777b86; }
.b-row i { margin-left: auto; font-style: normal; font-size: 13px; padding: 7px 13px; border-radius: var(--r-pill); background: #17191c; color: #fff; font-weight: 500; }
.acc-side { padding: 0 var(--gut) 0 clamp(40px, 8.3vw, 120px); }
.acc-side h2 { max-width: 12em; }
.acc { margin-top: clamp(36px, 4.4vw, 64px); max-width: 480px; }
.ai { border-top: 1px solid var(--line); }
.ai:last-child { border-bottom: 1px solid var(--line); }
.ai h3 { font: inherit; }
.ai-h { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; text-align: left; font-size: clamp(20px, 1.67vw, 24px); font-weight: 300; letter-spacing: -.012em; line-height: 1.2; color: var(--muted); transition: color .35s var(--ease); }
.ai-h:hover, .ai.open .ai-h { color: var(--ink); }
.tg { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(238,236,230,.08); transition: background-color .35s var(--ease), transform .5s var(--ease); }
.tg::before, .tg::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.tg::after { transform: rotate(90deg); }
.ai.open .tg { background: var(--ink); color: var(--canvas); transform: rotate(180deg); }
.ai.open .tg::after { transform: rotate(0deg); }
.ai-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.ai-b > div { overflow: hidden; }
.ai.open .ai-b { grid-template-rows: 1fr; }
.ai-b p { padding: 0 64px 26px 0; font-size: 16px; color: var(--muted); }

/* ---------- 5 · the morning brief: Steep-style white windows inside a big rounded frame ---------- */
.dash { --k: .9; --top: clamp(88px, 7.8vw, 112px); position: relative; margin: 0 var(--edge); height: calc(var(--top) + 880px * var(--k) * .9); min-height: 360px; border-radius: var(--r-port); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 50% 0%, #2a2a33 0%, #1b1a20 55%, #141318 100%); }
.dash::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(40% 50% at 50% 8%, rgba(105,223,207,.10), transparent 70%); }
.dwin { position: absolute; z-index: 1; left: var(--wx, 0px); top: var(--top); width: calc(1200px * var(--k)); height: calc(880px * var(--k)); margin-left: 0; border-radius: calc(26px * var(--k) + 6px); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 50px 100px -30px rgba(0,0,0,.85); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s; }
.dwin.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.dwin iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; pointer-events: none; }
.dash.phone { aspect-ratio: 4 / 5.6; }
.dash.phone .dwin { left: 0; right: 0; top: var(--top); bottom: 0; width: auto; height: auto; border-radius: 22px 22px 0 0; }
.seg { position: absolute; z-index: 3; left: 50%; width: max-content; top: calc((var(--top) - 48px) / 2); transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-nav); background: rgba(15,14,18,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.seg button { position: relative; z-index: 1; height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; color: rgba(238,236,230,.8); white-space: nowrap; transition: color .4s var(--ease); }
.seg button[aria-selected="true"] { color: var(--canvas); }
.seg .marker { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--ink); transition: transform .55s var(--ease); }
.dash[data-on="1"] .seg .marker { transform: translateX(100%); }

/* ---------- 6 · floors: update cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 var(--edge); }
.card .port { aspect-ratio: 4 / 5; border-radius: clamp(24px, 2.8vw, 40px); }
.card .osd { top: 18px; font-size: 13px; padding: 8px 12px; } .card .osd.tl { left: 18px; }
.card .det .tag { font-size: 13px; padding: 8px 12px; gap: 8px; bottom: calc(100% + 10px); }
.card figcaption { padding: 24px 12px 0; }
.card h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.015em; font-size: clamp(22px, 1.67vw, 24px); line-height: 1.2; }
.card .usd { margin-top: 14px; font-family: var(--display); font-weight: 300; letter-spacing: var(--display-track); font-size: clamp(32px, 2.78vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.card .usd + p { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 22em; }

/* ---------- 7 · plugs into: a spec list ---------- */
.plugs-txt .lead { margin-top: 24px; }
.sys li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0 21px; border-top: 1px solid var(--line); }
.sys li:last-child { border-bottom: 1px solid var(--line); }
.sys b { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; font-size: clamp(24px, 2.22vw, 32px); line-height: 1.1; }
.sys span { font-size: 15px; color: var(--muted); text-align: right; }
.sys li.cam b { color: var(--good); }

/* ---------- 8 · privacy: text left, tall porthole right ---------- */
.priv-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.priv-txt { padding: 0 clamp(40px, 8.3vw, 120px) 0 var(--gut); display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
.priv-txt h2 .dim { display: block; }
.rows li { padding: 22px 0; border-top: 1px solid var(--line); font-size: var(--lead); color: var(--muted); max-width: 30em; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows b { color: var(--ink); font-weight: 500; }
.port.tall { margin-right: var(--edge); aspect-ratio: 712 / 820; max-height: 94vh; }

/* ---------- 9 · the path ---------- */
.path h2 { max-width: 15em; }
.steps { margin-top: clamp(56px, 6.1vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 28px; }
.step.on { border-color: var(--good); }
.step .when { display: block; font-family: var(--display); font-weight: 300; letter-spacing: var(--display-track); font-size: clamp(40px, 3.9vw, 56px); line-height: 1; white-space: nowrap; }
.step.on .when { color: var(--ink); }
.step:not(.on) .when { color: rgba(238,236,230,.62); }
.step .what { display: block; margin-top: 26px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.step p { margin-top: 8px; font-size: 16px; color: var(--muted); max-width: 20em; }

/* ---------- 10 · construction sites ---------- */
.sites-panel { margin: 0 var(--edge); border-radius: var(--r-port); background: var(--art); overflow: hidden; position: relative; isolation: isolate; }
.sites-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 100%, rgba(105,223,207,.08), transparent 60%); }
.sites-in { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0; padding: clamp(56px, 7.8vw, 112px) calc(var(--gut) - var(--edge)) 0; }
.sites-in h2 { padding-right: clamp(24px, 4.2vw, 60px); max-width: 13em; font-size: clamp(32px, 3.05vw, 44px); line-height: 1.06; }
.sites-r .btn { margin-top: 28px; }
.sites-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.8vw, 40px); padding: clamp(48px, 5.6vw, 80px) calc(var(--gut) - var(--edge)) clamp(48px, 5.6vw, 80px); }
.sites-spec > div { border-top: 1px solid #2e2c34; padding-top: 22px; }
.sites-spec b { display: block; font-family: var(--display); font-weight: 300; letter-spacing: -.02em; font-size: clamp(24px, 2.08vw, 30px); line-height: 1.1; }
.sites-spec span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 22em; }

/* ---------- 11 · offer and ask ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.of { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: clamp(28px, 3.3vw, 48px); border-radius: var(--r-card); background: var(--art); }
.of .t { font-family: var(--display); font-weight: 300; letter-spacing: var(--display-track); font-size: clamp(32px, 3.05vw, 44px); line-height: 1.02; }
.of .when { margin-top: 12px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.of p { margin-top: auto; padding-top: 40px; font-size: var(--lead); color: var(--muted); max-width: 26em; }
.of.hl { background: var(--hl); color: var(--hl-ink); }
.of.hl .when, .of.hl p { color: var(--hl-ink); opacity: .74; }
.ask { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(40px, 6vw, 96px); margin-top: clamp(96px, 10vw, 152px); padding-bottom: var(--sp); }
.framed { position: relative; justify-self: start; width: fit-content; padding: clamp(28px, 3.6vw, 52px) clamp(28px, 4.2vw, 60px) clamp(32px, 4vw, 58px); margin-left: calc(-1 * clamp(28px, 4.2vw, 60px)); --b: clamp(4px, .42vw, 6px); --s: clamp(36px, 4.2vw, 60px); }
.framed i { position: absolute; width: var(--s); height: var(--s); border: 0 solid var(--good); }
.framed i:nth-child(1) { left: 0; top: 0; border-width: var(--b) 0 0 var(--b); border-top-left-radius: 18px; }
.framed i:nth-child(2) { right: 0; top: 0; border-width: var(--b) var(--b) 0 0; border-top-right-radius: 18px; }
.framed i:nth-child(3) { right: 0; bottom: 0; border-width: 0 var(--b) var(--b) 0; border-bottom-right-radius: 18px; }
.framed i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 var(--b) var(--b); border-bottom-left-radius: 18px; }
.framed h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; max-width: none; text-wrap: initial; }
.ask-r { padding-bottom: clamp(32px, 4vw, 58px); }
.ask-r p { margin-top: 18px; font-size: 16px; color: var(--muted); }
.ask-r p a { color: var(--ink); border-bottom: 1px solid rgba(238,236,230,.3); transition: border-color .3s var(--ease); }
.ask-r p a:hover { border-color: var(--good); }

/* ---------- onyx footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(56px, 6.1vw, 88px) 0 32px; background: var(--canvas); }
.foot-top { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; }
.foot-top li + li { margin-top: 10px; }
.foot-top a { font-size: 15px; color: rgba(238,236,230,.72); transition: color .3s var(--ease); }
.foot-top a:hover { color: var(--ink); }
.foot-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(96px, 11vw, 160px); }
.big-lock { width: min(46vw, 640px); height: auto; }
.legal { text-align: right; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- scroll reveals ---------- */
.rv-on .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv-on .port.rv, .rv-on .dash.rv, .rv-on .acc-media.rv, .rv-on .sites-panel.rv { transform: translateY(40px) scale(.985); }
.rv-on .port.rv.in, .rv-on .dash.rv.in, .rv-on .acc-media.rv.in, .rv-on .sites-panel.rv.in { transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .links a { padding: 8px 9px; }
  .links a:nth-child(5) { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .stat { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 980px) {
  .links, .pill > .btn { display: none; }
  .menu { display: inline-flex; }
  .pill { width: 100%; justify-content: space-between; padding: 0 8px 0 16px; }
  .cols, .acc-grid, .priv-grid, .sites-in, .ask { grid-template-columns: 1fr; }
  .cols > :first-child { padding-right: 0; }
  .head .lead { padding-top: 20px; }
  .what .stats { margin-top: 48px; }
  .stat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .plugs .sys { margin-top: 48px; }
  .acc-grid { display: flex; flex-direction: column; align-items: stretch; }
  .acc-side { display: contents; }
  .acc-side h2 { order: 1; padding: 0 var(--gut); }
  .acc-media { order: 2; margin: 40px var(--edge) 0; aspect-ratio: 4 / 3.4; }
  .acc { order: 3; margin: 32px var(--gut) 0; }
  .acc { max-width: none; }
  .priv-txt { padding: 0 var(--gut); gap: 40px; }
  .port.tall { margin: 56px var(--edge) 0; aspect-ratio: 4 / 3.6; }
  .sites-in { gap: 28px; }
  .what .statement, .plugs-txt { position: static; }
  .ask { gap: 8px; }
  .framed { margin-left: 0; }
  .ask-r { padding-left: clamp(28px, 4.2vw, 60px); }
  .hero-corner { display: none; }
}
/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --edge: 8px; }
  .nav { top: 12px; left: 12px; right: 12px; }
  .pill { height: 48px; }
  .hero { min-height: 600px; max-height: none; }
  .hero-shade { background: linear-gradient(to top, rgba(15,14,18,.96) 0%, rgba(15,14,18,.75) 34%, rgba(15,14,18,0) 62%), linear-gradient(to bottom, rgba(15,14,18,.55) 0%, rgba(15,14,18,0) 20%); }
  .hero-copy { bottom: 32px; }
  .hero-copy .btns { margin-top: 26px; }
  .hero-copy .btn { flex: 1 1 auto; }
  .port.xl { height: auto; min-height: 0; aspect-ratio: 4 / 4.6; }
  .osd.tr { display: none; }
  .port.xl .det .tag { font-size: 13px; padding: 9px 13px; gap: 8px; }
  .scrub { left: 24px; right: 24px; }
  .spec, .spec.two { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .sp { padding: 22px 0 26px; }
  .stat { grid-template-columns: 1fr; gap: 10px; padding: 24px 0 26px; }
  .acc-media { aspect-ratio: 1 / 1.05; }
  .am.brief { padding: 16px; }
  .b-card { padding: 20px 18px 6px; }
  .b-h { font-size: 19px; }
  .ai-b p { padding-right: 8px; }
  .dash { --top: 28px; height: auto; aspect-ratio: 4 / 5.1; min-height: 0; }
  .seg { top: auto; bottom: 22px; }
  .cards { grid-template-columns: 1fr; row-gap: 40px; }
  .card .port { aspect-ratio: 4 / 3.6; }
  .card figcaption { padding: 20px 8px 0; }
  .sys li { flex-direction: column; gap: 4px; padding: 16px 0 17px; }
  .sys span { text-align: left; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 22px 0 30px; }
  .step .what { margin-top: 16px; }
  .offers { grid-template-columns: 1fr; }
  .sites-spec { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .sites-spec > div { padding: 18px 0 20px; }
  .hero-world { top: -18svh; bottom: 18svh; }
  .of { min-height: 260px; }
  .framed { padding: 28px 24px 32px; }
  .ask-r { padding-left: 0; padding-top: 24px; }
  .ask-r .btn { width: 100%; }
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-bot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .big-lock { width: 100%; max-width: 360px; }
  .legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-world canvas, .am.world canvas { opacity: 1; animation: none; }
}

/* ---------- home: the lines of work, three cards that are links ---------- */
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.card { display: block; color: inherit; }
a.card .port > video, a.card .port > img.media { transition: transform 1.2s var(--ease); }
a.card:hover .port > img.media { transform: scale(1.03); }
.card .cap { padding: 24px 12px 0; }
.card .cap p { margin-top: 10px; font-size: var(--lead); color: var(--muted); max-width: 24em; }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .3s var(--ease), gap .4s var(--ease); }
a.card:hover .more { color: var(--good); gap: 12px; }
@media (max-width: 980px) {
  .cards.three { grid-template-columns: 1fr; row-gap: 48px; }
  .cards.three .card .port { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 640px) {
  .card .cap { padding: 20px 8px 0; }
}

/* ---------- button states, shown still (the UI page shows them side by side) ---------- */
.btn.is-hover { background: #fff; color: var(--btn-ink); }
.btn.glass.is-hover { background: rgba(66, 65, 72, .6); color: var(--ink); }
.btn.ghost.is-hover { background: rgba(238,236,230,.08); color: var(--ink); }
.btn.is-focus { outline: 2px solid var(--good); outline-offset: 3px; }
.btn.is-active { transform: scale(.98); }
.btn[disabled], .btn.is-disabled { background: rgba(238,236,230,.12); color: rgba(238,236,230,.4); pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .3s var(--ease), gap .4s var(--ease); }
.link:hover, .link.is-hover { color: var(--good); gap: 12px; }

/* ---------- chips: small glass labels over media or on graphite ---------- */
.chip-s { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--r-tag); font-size: 14px; color: var(--ink); background: rgba(238,236,230,.07); box-shadow: inset 0 0 0 1px rgba(238,236,230,.06); white-space: nowrap; }
.chip-s i { width: 8px; height: 8px; border-radius: 2px; background: var(--good); }
.chip-s.warn i { background: var(--warn); }

/* ---------- forms: graphite fields, a mint focus ring; errors are said in words, never in a third colour ---------- */
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: var(--r-small); background: var(--art); color: var(--ink); font: 400 16px/1.4 var(--sans); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), background-color .3s var(--ease); -webkit-appearance: none; appearance: none; }
.textarea { height: auto; min-height: 132px; padding: 15px 18px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(238,236,230,.36); }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px #3a3840; }
.input:focus, .select:focus, .textarea:focus, .input.is-focus { outline: none; box-shadow: inset 0 0 0 1px var(--good), 0 0 0 3px rgba(105,223,207,.18); }
.select { padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.field.bad .input, .input.is-bad { box-shadow: inset 0 0 0 1.5px var(--ink); }
.field .msg { font-size: 14px; color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; background: var(--art); box-shadow: inset 0 0 0 1px #3a3840; -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color .25s var(--ease); }
.check input:checked { background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f0e12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: none; }
.check input:focus-visible { outline: 2px solid var(--good); outline-offset: 3px; }

/* ---------- toast: a glass pill that says what just happened ---------- */
.toast { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px 0 16px; border-radius: var(--r-nav); background: rgba(27,26,32,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(238,236,230,.06), 0 20px 40px -12px rgba(0,0,0,.6); font-size: 15px; color: var(--ink); }
.toast i { width: 20px; height: 20px; border-radius: 6px; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f0e12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.toast span { color: var(--muted); }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.toast p { margin: 0; padding: 14px 0; line-height: 1.4; }
.toast i { flex: none; }

/* ---------- paper ----------
   Print and "Save as PDF". Every page after the first used to come out as a black sheet with a "Skip to content"
   button on it, for three reasons: text waits for the scroll to reveal it, and paper never scrolls; the skip link and
   the nav are fixed boxes, and a fixed box is printed again on every page; and with backgrounds off (the print
   dialog's default) the pale text would land on white paper. */
@media print {
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .skip, .nav { display: none !important; }
  .rv-on .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* a card, a number or a picture is not cut across two sheets */
  .card, .stat, .step, .port, .dash, .acc-media, .sites-panel { break-inside: avoid; page-break-inside: avoid; }
}
/* a footage block off screen holds its animated marks still (site.js sets .anim-off): they repainted it every frame */
.anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
