/* SYNTAX — base. Requires tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 1.5px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

/* ---------- type ---------- */
.display, h1, h2, .h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-variation-settings: var(--display-opsz);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-track);
  line-height: .98;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--t-h1); }
h2, .h2 { font-size: var(--t-h2); line-height: 1.02; }
.h3, h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-family: var(--f-display); font-weight: 400; font-variation-settings: var(--display-opsz); font-stretch: var(--display-stretch); text-wrap: balance; }
h1 em, h2 em, .display em, .h1 em, .h2 em, h3 em { font-style: italic; font-weight: calc(var(--display-weight) + 0); }
:root[data-type="b"] h1 em, :root[data-type="b"] h2 em, :root[data-type="b"] .display em { font-style: normal; color: var(--signal); }

.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--bone-2); max-width: 46ch; text-wrap: pretty; }
.body-2 { color: var(--bone-2); }
.small { font-size: var(--t-small); }
p { text-wrap: pretty; }

.mono, .k {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 450;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-3);
  line-height: 1.4;
}
.k { display: inline-flex; align-items: center; gap: .9em; }
.k::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; opacity: .9; }
.k.sig { color: var(--signal); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.stack > * + * { margin-top: var(--stack, 24px); }

/* section heading block: label / title / lede */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 28px; align-items: end; }
.head .k { grid-column: 1 / -1; }
.head h2 { grid-column: 1 / span 8; }
.head .lede { grid-column: 9 / span 4; justify-self: end; }
@media (max-width: 900px) { .head h2, .head .lede { grid-column: 1 / -1; justify-self: start; } }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px;
  font-family: var(--f-sans); font-size: 15px; font-weight: 550; letter-spacing: -.005em;
  white-space: nowrap;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn .arr { display: inline-block; transition: transform .45s var(--ease-out); font-family: var(--f-mono); font-weight: 400; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--bone); color: var(--void); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-3); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.link-u:hover { background-size: 100% 1px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), transform .6s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 5, 6, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; gap: 32px; }
.nav .brand { display: flex; align-items: center; height: 26px; flex: none; }
.nav .brand img { height: 24px; width: auto; }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a { position: relative; padding: 8px 12px; font-size: 14.5px; color: var(--bone-2); transition: color .3s; border-radius: 999px; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--bone); }
.nav .links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 3px; height: 3px; background: var(--signal); transform: translateX(-50%); }
.nav .clock { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--bone-3); text-transform: uppercase; white-space: nowrap; }
.nav .clock b { color: var(--bone-2); font-weight: 450; }
.nav .menu-btn { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.nav .menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--bone); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav .menu-btn i:nth-child(1) { top: 16px; } .nav .menu-btn i:nth-child(2) { top: 23px; }
.nav.open .menu-btn i:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }
@media (max-width: 1080px) { .nav .clock { display: none; } }
@media (max-width: 900px) {
  .nav .links, .nav .cta { display: none; }
  .nav .menu-btn { display: block; }
  .nav.open { background: var(--void); height: 100svh; align-items: flex-start; padding-top: 14px; }
  .nav.open .wrap { flex-wrap: wrap; }
  .nav.open .links { display: flex; flex-direction: column; width: 100%; margin: 40px 0 0; gap: 0; order: 3; }
  .nav.open .links a { font-family: var(--f-display); font-weight: 300; font-size: 44px; letter-spacing: -.03em; color: var(--bone); padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.open .cta { display: inline-flex; order: 4; margin-top: 32px; }
}

/* ---------- HUD frame: the logo's brackets as a viewfinder ---------- */
.frame { position: relative; isolation: isolate; background: var(--ink-0); overflow: hidden; }
.frame > canvas, .frame > .stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame .c { position: absolute; width: 14px; height: 14px; z-index: 5; pointer-events: none; transition: transform .6s var(--ease-out); }
.frame .c.tl { top: 10px; left: 10px; border-top: 1.5px solid var(--b-red); border-left: 1.5px solid var(--b-red); }
.frame .c.tr { top: 10px; right: 10px; border-top: 1.5px solid var(--b-green); border-right: 1.5px solid var(--b-green); }
.frame .c.bl { bottom: 10px; left: 10px; border-bottom: 1.5px solid var(--b-teal); border-left: 1.5px solid var(--b-teal); }
.frame .c.br { bottom: 10px; right: 10px; border-bottom: 1.5px solid var(--b-cyan); border-right: 1.5px solid var(--b-cyan); }
.frame:hover .c.tl { transform: translate(-3px, -3px); } .frame:hover .c.tr { transform: translate(3px, -3px); }
.frame:hover .c.bl { transform: translate(-3px, 3px); } .frame:hover .c.br { transform: translate(3px, 3px); }
.frame .hud {
  position: absolute; z-index: 4; left: 32px; right: 32px; top: 13px;
  display: flex; justify-content: space-between; gap: 16px; pointer-events: none;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3);
}
.frame .hud .hud-l { color: var(--bone-2); }
.frame .hud .hud-r { font-variant-numeric: tabular-nums; text-align: right; }
.frame .hud-b {
  position: absolute; z-index: 4; left: 32px; right: 32px; bottom: 12px;
  display: flex; justify-content: space-between; gap: 16px; pointer-events: none;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3);
}
.frame .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bone-3); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- bracket cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; width: 0; height: 0; }
.cursor i { position: absolute; width: 8px; height: 8px; transition: opacity .3s; }
.cursor i:nth-child(1) { border-top: 1.5px solid var(--b-red); border-left: 1.5px solid var(--b-red); }
.cursor i:nth-child(2) { border-top: 1.5px solid var(--b-green); border-right: 1.5px solid var(--b-green); }
.cursor i:nth-child(3) { border-bottom: 1.5px solid var(--b-teal); border-left: 1.5px solid var(--b-teal); }
.cursor i:nth-child(4) { border-bottom: 1.5px solid var(--b-cyan); border-right: 1.5px solid var(--b-cyan); }
.cursor .dot { position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: var(--signal); border-radius: 50%; }
.cursor .lbl { position: absolute; left: 18px; top: 14px; white-space: nowrap; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); opacity: 0; transition: opacity .3s; }
.cursor.has-lbl .lbl { opacity: 1; }
.cursor.hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor] { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }

/* ---------- reveals ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="fade"] { transform: none; filter: none; }
.split-line { display: block; overflow: hidden; padding: .14em .06em .1em 0; margin: -.14em -.06em -.1em 0; }
.split-line > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.in .split-line > span, .split-line.in > span { transform: none; }
[data-scrub-words] .w { color: var(--bone-4); transition: color .35s linear; }
[data-scrub-words] .w.on { color: var(--bone); }
[data-scrub-words] em .w.on, [data-scrub-words] .w.on em { color: var(--bone); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split-line > span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ---------- grain: kills flat digital black ---------- */
.grain { position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- footer ---------- */
.foot { position: relative; padding: clamp(80px, 10vw, 140px) 0 36px; border-top: 1px solid var(--line); background: var(--void); overflow: hidden; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot h3 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 450; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 18px; }
.foot li + li { margin-top: 10px; }
.foot li a { color: var(--bone-2); font-size: 14.5px; transition: color .3s; }
.foot li a:hover { color: var(--bone); }
.foot .pitch { font-family: var(--f-display); font-weight: 300; font-variation-settings: var(--display-opsz); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.025em; max-width: 14ch; }
.foot .wordmark { position: relative; margin-top: clamp(64px, 9vw, 120px); height: clamp(120px, 22vw, 340px); }
.foot .legal { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3); }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- intro + viewport frame (homepage) ---------- */
.vframe { position: fixed; inset: 0; z-index: 1001; pointer-events: none; }
.vframe i { position: absolute; left: 0; top: 0; border: 0 solid var(--c); box-sizing: border-box; will-change: transform; }
.intro { position: fixed; inset: 0; z-index: 1000; background: var(--void); display: grid; place-items: center; transition: opacity .9s cubic-bezier(.65,0,.35,1) .15s, backdrop-filter .9s; }
.intro.out { opacity: 0; }
.intro-s { opacity: 0; transform: scale(.86); filter: blur(6px); transition: opacity .55s var(--ease-out) .25s, transform .9s var(--ease-out) .25s, filter .55s var(--ease-out) .25s; }
.intro-s.on { opacity: 1; transform: scale(1); filter: none; }
.intro-s.off { opacity: 0; transform: scale(.7); filter: blur(4px); transition-delay: 0s; transition-duration: .35s; }

/* ---------- skip link ---------- */
.skip { position: fixed; left: 16px; top: -64px; z-index: 2000; padding: 12px 18px; border-radius: 999px; background: var(--bone); color: var(--void); font-weight: 550; font-size: 14px; transition: top .3s var(--ease-out); }
.skip:focus { top: 14px; outline-offset: 3px; }

/* HUD: the label gives way first; readouts keep their numbers. Bottom captions may wrap. */
.frame .hud > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.frame .hud .hud-l { flex: 1 1 auto; }
.frame .hud .hud-r { flex: 0 1 auto; max-width: 78%; }
.frame .hud-b > span { min-width: 0; }
@media (max-width: 640px) { .frame .hud { left: 28px; right: 28px; font-size: 9.5px; letter-spacing: .1em; } }

/* ---------- misc utilities ---------- */
.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; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-2); }
.tag .led { width: 6px; height: 6px; border-radius: 50%; background: var(--b-green); box-shadow: 0 0 0 3px rgba(137, 190, 67, .18); }
.sample { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
