/* Self-hosted fonts (SIL Open Font License): Schibsted Grotesk, Inter, Geist Mono. Latin + Latin Extended only. */
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* NetB — "mission control": a dark operations room lit by the logo's sun-to-ember orbit.
   Wide display type for statements, mono readouts for facts, one orbit motif throughout. */
:root {
  --ink: #0e0d0a;
  --ink-2: #16140f;
  --ink-3: #1f1c15;
  --line: #2c2820;
  --paper: #f2eee3;
  --muted: #a39c8b;
  --sun: #ffcb05;
  --ember: #ec7c22;
  --glow: rgba(255, 186, 20, .14);
  --grad: linear-gradient(100deg, var(--sun), var(--ember));

  --f-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-xs: .75rem;
  --s-sm: .875rem;
  --s-md: 1.0625rem;
  --s-lg: clamp(1.15rem, 1rem + .6vw, 1.375rem);
  --s-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --s-2xl: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --s-3xl: clamp(2.4rem, 1.2rem + 5.4vw, 5.6rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--s-md)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* grain + glow atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(236, 124, 34, .12), transparent 60%),
    radial-gradient(50rem 30rem at -10% 30%, rgba(255, 203, 5, .06), transparent 60%),
    var(--ink);
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-stretch: var(--f-stretch, normal); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--s-2xl); }
h3 { font-size: var(--s-lg); line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun);
}
.eyebrow::before { content: ""; width: 1.6em; height: 1px; background: currentColor; }
.lead { font-size: var(--s-lg); color: var(--muted); max-width: 60ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--f-mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(14, 13, 10, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 8px 14px; text-decoration: none;
  font-size: var(--s-sm); font-weight: 500; color: var(--muted); transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px;
  font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: .08em;
}
.lang a, .lang span { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: var(--paper); color: var(--ink); }
.lang a:hover { color: var(--paper); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--paper); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 13, 10, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links a { padding: 14px 0; font-size: var(--s-md); border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .site-header.open .nav-links { display: flex; }
  .site-header.open { background: rgba(14, 13, 10, .97); }
  .site-header.open .menu-btn span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .site-header.open .menu-btn span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: var(--s-3xl); font-weight: 700; letter-spacing: -.035em; line-height: .98; max-width: 13ch; margin-top: 22px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero .lead { margin-top: 28px; animation: fade 1s .45s var(--ease) both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.status {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font: 400 var(--s-xs)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  animation: fade 1s .65s var(--ease) both; max-width: 760px;
}
.status span { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 0 rgba(57, 217, 138, .6); animation: ping 2.4s infinite; }
.status .dot.sun { background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 203, 5, .6); animation-delay: .8s; }
.status time { color: var(--paper); font-variant-numeric: tabular-nums; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(57, 217, 138, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(57, 217, 138, 0); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; position: relative; }
.marquee-label { font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; gap: 56px; padding: 0 28px; margin: 0; list-style: none; }
.marquee-track li {
  font: 600 clamp(1.25rem, 1rem + 1.2vw, 2rem)/1 var(--f-display); letter-spacing: -.02em; color: var(--paper); opacity: .78; white-space: nowrap;
  display: flex; align-items: center; gap: 56px;
}
.marquee-track li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }

/* expertise cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; grid-column: span 3; min-width: 0;
  padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .3s, transform .5s var(--ease);
  scroll-margin-top: 96px;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(28rem circle at var(--mx) var(--my), var(--glow), transparent 45%);
}
.card:hover { border-color: #4a4234; }
.card:hover::before { opacity: 1; }
.card.wide, .card.narrow { grid-column: span 3; }
.card-kicker { font: 500 var(--s-xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.card h3 { font-size: var(--s-xl); max-width: 18ch; }
.card p { color: var(--muted); max-width: 58ch; }
.card .icon { width: 44px; height: 44px; margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.tags li { font: 400 var(--s-xs)/1 var(--f-mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); opacity: .85; }
.card a.ext { color: var(--paper); text-decoration-color: var(--sun); text-underline-offset: 3px; }
.card a.ext:hover { color: var(--sun); }
@media (max-width: 900px) {
  .card, .card.wide, .card.narrow { grid-column: 1 / -1; }
}

/* method */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 23px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps .progress { position: absolute; top: 23px; left: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--grad); box-shadow: 0 0 12px var(--sun); transition: width .2s linear; }
.step { position: relative; padding: 0 clamp(12px, 2vw, 28px) 0 0; min-width: 0; }
.step-dot {
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--ink); border: 1px solid var(--line); font: 500 var(--s-xs)/1 var(--f-mono); color: var(--muted);
  transition: border-color .5s, color .5s, box-shadow .5s;
}
.step.lit .step-dot { border-color: var(--sun); color: var(--sun); box-shadow: 0 0 0 6px rgba(255, 203, 5, .08); }
.step h3 { margin-top: 26px; font-size: var(--s-lg); }
.step p { margin-top: 12px; color: var(--muted); font-size: var(--s-sm); max-width: 30ch; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .steps::before, .steps .progress { top: 0; bottom: 0; left: 23px; right: auto; width: 1px; height: auto; }
  .steps .progress { height: calc(var(--p, 0) * 100%); bottom: auto; transition: height .2s linear; }
  .step { display: grid; grid-template-columns: 47px 1fr; column-gap: 22px; padding: 0; }
  .step h3 { margin-top: 10px; grid-column: 2; }
  .step p { grid-column: 2; max-width: 52ch; }
  .step-dot { grid-row: span 2; }
}

/* AI */
.ai { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ai > * { min-width: 0; }
.ai-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.ai-list li { border-top: 1px solid var(--line); padding-top: 14px; }
.ai-list strong { display: block; font-weight: 600; font-size: var(--s-md); }
.ai-list span { color: var(--muted); font-size: var(--s-sm); }
.console {
  border: 1px solid var(--line); border-radius: var(--radius); background: #0a0907; overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(236, 124, 34, .35);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 400 var(--s-xs)/1 var(--f-mono); color: var(--muted); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.console-bar b { margin-left: auto; font-weight: 400; color: #39d98a; }
.console-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.console-phases { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; font: 500 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.console-phases::-webkit-scrollbar { display: none; }
.console-phases span { flex: none; padding: 6px 8px; border-radius: 6px; color: #6f6857; border: 1px solid transparent; transition: color .4s, border-color .4s, background .4s; }
.console-phases span.done { color: var(--muted); }
.console-phases span.done::before { content: "✓ "; color: #39d98a; }
.console-phases span.on { color: var(--sun); border-color: rgba(255, 203, 5, .35); background: rgba(255, 203, 5, .06); }
.console-body {
  height: 440px; overflow-y: auto; overflow-x: hidden; padding: 14px 18px 18px;
  font: 400 .78rem/1.75 var(--f-mono); scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
}
.console-body .ln { display: grid; grid-template-columns: 6.6em 8.4em minmax(0, 1fr); gap: 10px; }
.console-body .ts { color: #6f6857; font-variant-numeric: tabular-nums; white-space: nowrap; }
.console-body .who { color: var(--sun); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-body .who.orch { color: var(--ember); }
.console-body .who.team { color: #39d98a; }
.console-body .msg { color: var(--paper); opacity: .88; overflow-wrap: anywhere; }
.console-body .ok { color: #39d98a; }
.console-body .warn { color: var(--sun); }
.console-body .no { color: #e5674f; }
.console-body .ph { color: var(--muted); margin: 14px 0 6px; white-space: nowrap; overflow: hidden; letter-spacing: .04em; }
.console-body .ph:first-child { margin-top: 0; }
.console-body .tbl { white-space: pre; color: var(--paper); opacity: .8; padding-left: calc(6.6em + 10px); overflow: hidden; }
.console-body .wait { display: grid; grid-template-columns: 6.6em auto minmax(40px, 1fr) 3.2em; gap: 10px; align-items: center; color: var(--muted); }
.console-body .wait .bar { height: 6px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.console-body .wait .bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.console-body .wait .pct { text-align: right; font-variant-numeric: tabular-nums; }
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: var(--sun); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .ai { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ai-list { grid-template-columns: 1fr; }
  .console-body { height: 400px; padding: 12px 14px 16px; }
  .console-body .ln { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; margin-bottom: 4px; }
  .console-body .ln .msg { grid-column: 1 / -1; }
  .console-body .tbl { padding-left: 0; font-size: .72rem; }
  .console-body .wait { grid-template-columns: auto minmax(40px, 1fr) 3em; }
  .console-body .wait .lbl { grid-column: 1 / -1; grid-row: 1; }
}

/* team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.team > * { min-width: 0; }
.team-copy p + p { margin-top: 18px; }
.orbit {
  position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; max-width: 100%; container-type: inline-size;
  border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.orbit:focus-visible { outline: 2px solid var(--sun); outline-offset: 10px; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed #3a3428; transition: border-color .5s; }
.orbit .ring.r2 { inset: 17%; border-style: solid; border-color: var(--line); }
.orbit .spin { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; animation: spin 40s linear infinite; }
.orbit .node {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 18px rgba(255, 203, 5, .55);
  transform: rotate(var(--a)) translateY(calc(-50cqw * var(--r, 1)));
  transition: box-shadow .35s, transform .6s var(--ease);
}
.orbit .node::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.orbit .out { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translateY(-31px); }
.orbit .tagw { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: spin 40s linear infinite reverse; }
.orbit .tag {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  transform-origin: 0 0; transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%);
  padding: 4px 7px 4px 5px; border-radius: 7px; border: 1px solid var(--line); background: rgba(14, 13, 10, .94);
  font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; color: var(--paper);
  opacity: 0; transition: opacity .35s, color .25s, border-color .25s, background .25s;
  pointer-events: none;
}
.orbit .flag { flex: none; width: 16px; height: 11px; border-radius: 2px; clip-path: inset(0 round 2px); }
.orbit .core { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.orbit .core > div { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.orbit .core b { display: block; font: 800 clamp(3.2rem, 2rem + 4vw, 5.2rem)/.9 var(--f-display); letter-spacing: -.04em; margin-bottom: 8px; }
.orbit .core span { font: 400 var(--s-xs)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.orbit .hint { display: block; margin-top: 10px; font: 400 .6875rem/1.3 var(--f-mono); font-style: normal; color: #6f6857; letter-spacing: .06em; }
.orbit .hint-touch { display: none; }
@media (hover: none) { .orbit .hint-hover { display: none; } .orbit .hint-touch { display: block; } }
.orbit .core-list { opacity: 0; transform: scale(.94); width: 62cqw; text-align: left; pointer-events: auto; }
.orbit .core-list p { font: 500 .625rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; text-align: center; }
.orbit .core-list ul { list-style: none; margin: 0; padding: 0; }
.orbit .core-list li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 3px 8px; border-radius: 6px; font-size: clamp(.72rem, .62rem + .4vw, .8125rem); line-height: 1.3;
  transition: background .2s, color .2s;
}
.orbit .core-list li.always time { color: var(--sun); }
.orbit .core-list li span { font: inherit; letter-spacing: 0; text-transform: none; color: var(--paper); }
.orbit .core-list time { font: 400 .75rem/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.orbit .core-list time::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4a4436; }
.orbit .core-list li.day time::before { background: #39d98a; box-shadow: 0 0 8px rgba(57, 217, 138, .6); }
.orbit .core-list li.hl { background: rgba(255, 203, 5, .08); }
.orbit .core-list li.hl span { color: var(--sun); }

/* revealed state: hover, keyboard focus, or tap on touch screens */
.orbit:hover .spin, .orbit:hover .tagw, .orbit:focus-within .spin, .orbit:focus-within .tagw, .orbit.show .spin, .orbit.show .tagw { animation-play-state: paused; }
.orbit:hover .tag, .orbit:focus-within .tag, .orbit.show .tag { opacity: 1; }
.orbit:hover .ring, .orbit:focus-within .ring, .orbit.show .ring { border-color: rgba(255, 203, 5, .35); }
.orbit:hover .core-default, .orbit:focus-within .core-default, .orbit.show .core-default { opacity: 0; transform: scale(.9); }
.orbit:hover .core-list, .orbit:focus-within .core-list, .orbit.show .core-list { opacity: 1; transform: none; }
.orbit .node.hl { box-shadow: 0 0 0 5px rgba(255, 203, 5, .18), 0 0 28px rgba(255, 203, 5, .9); }
.orbit .node.hl .tag { color: var(--ink); background: var(--sun); border-color: var(--sun); }
.orbit:hover .node, .orbit:focus-within .node, .orbit.show .node { --r: 1 !important; }
.orbit .ring.r2 { transition: opacity .5s; }
.orbit:hover .ring.r2, .orbit:focus-within .ring.r2, .orbit.show .ring.r2 { opacity: .25; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } .orbit { width: min(100% - 76px, 340px); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: var(--s-sm); color: var(--muted); }
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.foot img { height: 34px; width: auto; }
.foot address { font-style: normal; line-height: 1.7; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.foot-links a, .foot-links button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot-links a:hover, .foot-links button:hover { color: var(--paper); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 400 var(--s-xs)/1.5 var(--f-mono); letter-spacing: .04em; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* ---------- legal / text pages ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 100px) 32px; }
.page-hero h1 { font-size: var(--s-2xl); margin-top: 18px; }
.page-hero p { margin-top: 18px; color: var(--muted); }
.prose { max-width: 72ch; padding-bottom: clamp(64px, 8vw, 120px); }
.prose h2 { font-size: var(--s-lg); margin: 44px 0 14px; letter-spacing: -.01em; }
.prose p, .prose li { color: #cfc9bb; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 14px 0; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration-color: var(--sun); text-underline-offset: 3px; }
.prose a:hover { color: var(--sun); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--s-sm); margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 var(--s-xs)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ---------- consent banner ---------- */
.consent {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 440px; margin-left: auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); font-size: var(--s-sm);
  animation: fade .5s var(--ease) both;
}
.consent strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--s-md); margin-bottom: 6px; }
.consent p { color: var(--muted); }
.consent p a { color: var(--paper); text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent button {
  font: 600 var(--s-sm)/1 var(--f-body); padding: 12px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--ink-3); color: var(--paper); transition: border-color .2s, background .2s;
}
.consent button:hover { border-color: var(--sun); }

/* ---------- reveal ---------- */
.pre { opacity: 0; transform: translateY(26px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* 404 */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 8vw, 110px); }
.nf-code { display: flex; align-items: center; justify-content: center; font: 800 clamp(6rem, 3rem + 12vw, 12rem)/.9 var(--f-display); letter-spacing: -.05em; }
.nf-zero { position: relative; flex: none; width: .7em; height: .7em; border-radius: 50%; border: .12em solid var(--paper); margin-inline: .06em; }
.nf-zero::before { content: ""; position: absolute; inset: -.3em; border-radius: 50%; border: 2px dashed rgba(255, 203, 5, .45); transform: rotate(-24deg) scaleY(.36); }
.nf-sat { position: absolute; inset: -.3em; animation: spin 3.2s linear infinite; }
.nf-sat i { position: absolute; top: -.05em; left: 50%; width: .14em; height: .14em; margin-left: -.07em; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px var(--sun); }
.nf h1 { font-size: var(--s-2xl); margin-top: 18px; }
.nf .lead { margin-top: 18px; }
.nf-log { margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; background: #0a0907; padding: 16px 18px; font: 400 .8rem/1.8 var(--f-mono); }
.nf-log div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; opacity: 0; animation: fade .5s var(--ease) forwards; }
.nf-log div:nth-child(2) { animation-delay: .7s; }
.nf-log div:nth-child(3) { animation-delay: 1.4s; }
.nf-log div:nth-child(4) { animation-delay: 2.1s; }
.nf-log div:nth-child(5) { animation-delay: 2.8s; }
.nf-log b { font-weight: 400; color: var(--sun); }
.nf-log b.team { color: #39d98a; }
.nf-log .ok { color: #39d98a; }
.nf-log .no { color: #e5674f; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font: 500 var(--s-sm)/1 var(--f-mono); }
.nf-links a { color: var(--sun); text-underline-offset: 4px; }
@media (max-width: 820px) { .nf { grid-template-columns: 1fr; } .nf-code { justify-content: flex-start; } }
@media (max-width: 480px) { .nf-log div { grid-template-columns: 1fr; gap: 0; margin-bottom: 6px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pre { opacity: 1; transform: none; }
}

.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--paper); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--sun); }
