:root { --ink:#0B0B0C; --muted:#55565a; --line:#e6e6e3; }
* { box-sizing:border-box; }
html, body { margin:0; background:#fff; color:var(--ink); font:16px/1.55 "Inter Tight", system-ui, sans-serif; }

/* the darkness that spreads out of a product's lens, above everything */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

.nav { position:absolute; top:0; left:0; right:0; z-index:3; display:flex; align-items:center; justify-content:space-between; padding:26px clamp(20px,6vw,88px); }
/* the main pages' header stays on screen, so Contact is always one click away; once the page has moved it gets a white bar (SiteNav.astro sets .stuck) */
.nav[data-sitenav] { position:fixed; z-index:20; transition:padding .2s ease, background-color .2s ease, box-shadow .2s ease; }
.nav[data-sitenav].stuck { padding-top:14px; padding-bottom:14px; background:rgba(255,255,255,.94); backdrop-filter:blur(10px); box-shadow:0 1px 0 rgba(11,11,12,.1); }
@media (prefers-reduced-motion:reduce) { .nav[data-sitenav] { transition:none; } }
/* The homepage only (data-glass): once the page has moved, the bar becomes a floating glass pill, and dark glass with white type while a dark
   section is behind it (.on-dark, SiteNav.astro). The wordmark is smaller and 2px up there: its lowercase body sits under the middle of its box. */
/* Both states are centred (left and right 0, auto margins) with a width in numbers, so the bar shrinks into the pill from both
   sides. Never transition:all here: left, right and width going to or from auto jump instead of moving. */
.nav[data-glass] { box-sizing:border-box; width:100%; margin:0 auto; border-radius:0; transition:top .25s ease, width .25s ease, padding .25s ease, border-radius .25s ease, background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
.nav[data-glass] .brand img { transition:filter .25s ease, height .25s ease, translate .25s ease; }
.nav[data-glass] > nav > a { transition:color .25s ease, background-color .25s ease; }
.nav[data-glass].stuck { top:12px; width:min(960px, calc(100% - 24px)); padding:14px 14px 14px 28px; border-radius:40px;
  background:rgba(255,255,255,.68); -webkit-backdrop-filter:blur(18px) saturate(1.6); backdrop-filter:blur(18px) saturate(1.6); box-shadow:inset 0 0 0 1px rgba(11,11,12,.07), 0 8px 24px -16px rgba(11,11,12,.25); }
.nav[data-glass].stuck .brand img { height:20px; translate:0 -2px; }
.nav[data-glass].stuck .nc { top:calc(100% + 8px); }
.nav[data-glass].stuck.on-dark { background:rgba(11,11,12,.62); box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); }
.nav[data-glass].on-dark .brand img { filter:brightness(0) invert(1); }
.nav[data-glass].on-dark > nav > a { color:#fff; }
.nav[data-glass].on-dark > nav > a.pill { background:#fff; color:var(--ink); }
@media (prefers-reduced-motion:reduce) { .nav[data-glass], .nav[data-glass] .brand img, .nav[data-glass] > nav > a { transition:none; } }
.brand { color:var(--ink); display:inline-flex; }
.brand img { height:24px; width:auto; display:block; }
.brand svg path { fill:currentColor; }
nav a { color:var(--ink); text-decoration:none; font-weight:500; font-size:15px; margin-left:28px; }
nav a.pill { background:var(--ink); color:#fff; padding:10px 18px; border-radius:999px; }
@media (max-width:820px){ nav a:not(.pill){ display:none; } }

main { position:relative; z-index:2; pointer-events:none; }
.sec { position:relative; height:100vh; min-height:640px; }
.sec.short { height:90vh; }
.ctas { position:absolute; left:0; top:0; display:flex; gap:12px; pointer-events:auto; }
.btn { display:inline-flex; align-items:center; height:50px; padding:0 24px; border-radius:999px; font-weight:600; font-size:15px; text-decoration:none; }
.btn.primary { background:var(--ink); color:#fff; }
.btn.ghost { border:1px solid #d4d4d0; color:var(--ink); background:rgba(255,255,255,.7); backdrop-filter:blur(6px); }


.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.hud { position:fixed; right:14px; bottom:14px; z-index:5; background:rgba(11,11,12,.86); color:#fff; font:12px/1.5 ui-monospace,Menlo,monospace; padding:10px 12px; border-radius:8px; white-space:pre; pointer-events:none; }
.hud .dbg { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; white-space:normal; }
.hud .dbg span { min-width:120px; }
.hud .dbg input { width:140px; accent-color:#fff; }

/* Products: names are real links (hover/scroll picks the one shown in the glass) */
.sec.products { height:auto; min-height:100vh; padding:16vh 0 14vh; }
.prod-wrap { position:relative; margin-left:clamp(20px,6vw,88px); width:min(46vw,620px); pointer-events:auto; }
.eyebrow { margin:0 0 18px; font-size:13px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.prod-list, .nb-list { list-style:none; margin:0; padding:0; }
.prod { display:grid; grid-template-columns:auto 1fr; align-items:baseline; column-gap:14px; text-decoration:none; color:var(--ink); padding:6px 0; }
.pname { font-size:clamp(48px,6.2vw,96px); font-weight:600; letter-spacing:-.045em; line-height:1.02; color:#c9c9c5; transition:color .35s ease; }
.pby { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); opacity:0; transition:opacity .35s ease; }
.pby svg { height:11px; width:auto; display:block; } .pby svg path { fill:currentColor; }
.pdesc { grid-column:1 / -1; font-size:19px; color:var(--muted); max-height:0; overflow:hidden; transition:max-height .45s ease, margin .45s ease; }
.prod.active .pname { color:var(--ink); }
.prod.active .pby { opacity:1; }
.prod.active .pdesc { max-height:40px; margin:4px 0 10px; }

.nb-divider { display:flex; align-items:center; gap:16px; margin:56px 0 8px; font-size:13px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.nb-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.nb-list li { display:grid; grid-template-columns:140px 1fr auto; align-items:baseline; column-gap:18px; row-gap:2px; padding:16px 0; border-bottom:1px solid var(--line); }
.nbname { font-size:22px; font-weight:600; letter-spacing:-.02em; }
.nbdesc { color:var(--muted); font-size:16px; }
.tag { font-size:12px; font-weight:600; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 10px; white-space:nowrap; }
.nb-list a { grid-column:2 / -1; color:var(--ink); font-weight:600; font-size:15px; text-decoration:none; justify-self:start; border-bottom:1px solid var(--ink); }

@media (max-width:820px){
  .sec.products { padding-top:46vh; }
  .prod-wrap { width:auto; margin-right:20px; }
  .nb-list li { grid-template-columns:1fr auto; }
  .nb-list .nbdesc, .nb-list a { grid-column:1 / -1; }
  .tag { justify-self:start; }
}

.copy { position:relative; margin:0 clamp(20px,6vw,88px); padding-top:20vh; max-width:640px; pointer-events:auto; }
.copy h1 { font-size:clamp(44px,6.8vw,108px); line-height:1.02; letter-spacing:-.04em; margin:20px 0; }
.copy h2 { font-size:clamp(40px,5vw,76px); line-height:1.05; margin:20px 0; }
.copy p { font-size:20px; }
html:not(.enhanced) .sec { height:auto; min-height:90vh; padding-bottom:80px; }
html:not(.enhanced) .ctas { position:relative; margin:30px clamp(20px,6vw,88px); transform:none !important; flex-wrap:wrap; }
html:not(.enhanced) .products { padding-top:60px; }
html:not(.enhanced) .prod-wrap { width:auto; max-width:720px; }
html:not(.enhanced) .pname { color:var(--ink); }
html:not(.enhanced) .pdesc { max-height:none; margin:8px 0 20px; }
.enhanced .copy { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.prod { border:0; background:none; font:inherit; text-align:left; cursor:pointer; width:100%; }
.pby img { height:11px; width:auto; }
.skip { position:fixed; left:20px; top:-100px; z-index:50; background:white; color:black; padding:12px; }
.skip:focus { top:12px; }
:focus-visible { outline:3px solid #4C12A1; outline-offset:5px; }
::selection { background:#ddd1f0; color:#0B0B0C; }
@media(max-width:820px) { nav a:not(.pill) { display:inline-block; margin-left:16px; } .copy { padding-top:18vh; } .copy p { font-size:17px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition:none !important; animation:none !important; } }
