/* Schibsted Grotesk (variable, 400–500), hosted here instead of Google Fonts: no visitor IP goes to Google */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin.woff2) format('woff2'); }
/* Current Cycle – plain text on black, floating pills behind (bg.js). Nothing else. */
:root {
  --fg: #f5f7fa;
  --dim: #a9b4bc;          /* ~9:1 on black, readable over the scene */
  --ice: #8fe3ff;
  --warn: #ffc978;
  --err: #ff8f9c;
  --f: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { background: #000; overflow-y: auto; scrollbar-gutter: stable; }
body { color: var(--fg); font: 400 14px/1.5 var(--f); min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
::selection { background: var(--fg); color: #000; }
:focus-visible { outline: 2px solid #5eead4; outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: #222 transparent; }
a { color: inherit; text-decoration: none; }
input, textarea, button { font: inherit; color: inherit; background: none; border: 0; caret-color: var(--fg); }
button { cursor: pointer; padding: 0; text-align: inherit; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
/* Dark column behind the text so the floating objects never cross it */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - 400px), rgba(0,0,0,.9) calc(50% - 300px), rgba(0,0,0,.9) calc(50% + 300px), transparent calc(50% + 400px)); }

/* One centered column, same width on every page, so nothing shifts between pages */
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 16px calc(80px + env(safe-area-inset-bottom)); }
nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 48px; }
.narrow { max-width: 380px; margin: 0 auto; }
nav a { color: var(--dim); transition: color .2s; }
nav a:hover, nav a.on { color: var(--fg); }
.dim { color: var(--dim); }

/* ── Motion: same hues as the floating pills (bg.js), used only as light, never as boxes ── */
:root { --c-aas: 255,122,147; --c-pep: 143,227,255; --c-anc: 185,162,255; --c-hair: 127,255,200; --c-skin: 255,201,120; }

/* Page rises in softly on first load (opacity + transform only, cheap for the GPU) */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.wrap > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.wrap > nav { animation-duration: .5s; }
html.leaving body { opacity: 0; transition: opacity .18s ease; }
/* Arriving through the native cross-fade: skip the entry motion, the cross-fade already moves */
html.vt .wrap > *, html.vt .row { animation: none; }

/* Nav: glowing dot under the current page, soft glow on hover */
nav a { position: relative; transition: color .2s, text-shadow .3s; }
nav a:hover { text-shadow: 0 0 12px rgba(255,255,255,.35); }
nav a::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--fg); box-shadow: 0 0 8px 1px rgba(255,255,255,.6); transform: translateX(-50%) scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
nav a.on::after { transform: translateX(-50%) scale(1); }


/* Native cross-fade between the pages (Chrome/Edge/Safari); the nav stays put. The pill field is part of the
   page snapshot on purpose: as its own layer it would paint over the dark text column and flash. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: cubic-bezier(.4,0,.2,1); }
nav { view-transition-name: nav; }



/* ── guns.lol-style touches, kept quiet ── */
/* Key numbers: plain (the silver sheen was removed); the current nav page keeps its look */
.shimmer { color: var(--fg); }
nav a.on { background: linear-gradient(100deg, #e9e9e6 40%, #ffffff 50%, #8d8d88 55%, #e9e9e6 65%) 0 50% / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; }
nav a.on:hover { text-shadow: none; }
@keyframes shimmer { to { background-position: 100% 50%; } }

/* The nav dot breathes */
nav a.on::after { animation: dot 2.6s ease-in-out infinite; }
@keyframes dot { 50% { box-shadow: 0 0 12px 3px rgba(255,255,255,.75); } }



/* ── Layout 2026-11: bar on top, big headline left, glowing particle object right (orb.js) ── */
:root { --edge: max(20px, calc(50vw - 600px)); --pill: #5eead4; --amber: #7dd3fc;   /* names kept: accent (mint) and its lighter partner (ice) */ }
body::before { display: none; }
/* Warm glow rising from the bottom, like light over the field */
html { background: radial-gradient(90% 60% at 70% 120%, rgba(56,189,248,.08), transparent 60%) fixed, radial-gradient(60% 50% at 0% -10%, rgba(94,234,212,.05), transparent 60%) fixed, #000; }
nav { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 68px; margin: 0; padding: 0 var(--edge) env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,0)); }
nav a { padding: 6px 13px; border-radius: 999px; font-size: 13.5px; transition: color .2s, background .3s, box-shadow .3s; }
nav a::after { display: none; }
nav a.on { background: var(--pill); color: #03201c; -webkit-background-clip: border-box; background-clip: border-box; animation: none;
  box-shadow: 0 0 22px -4px rgba(94,234,212,.7); }
nav a.on:hover { color: #03201c; }
nav .brand { margin-right: auto; padding-left: 0; color: var(--fg); font-weight: 500; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
nav .brand::before { content: ''; width: 18px; height: 8px; border-radius: 4px; transform: rotate(-35deg);
  background: linear-gradient(90deg, #5eead4 50%, #e8fbff 50%); box-shadow: 0 0 10px rgba(94,234,212,.7); }
nav .brand:hover { text-shadow: none; }

.wrap { max-width: 620px; margin: 0 0 0 var(--edge); padding-top: calc(130px + env(safe-area-inset-top)); padding-left: 0; padding-right: 0; }
.narrow { margin-left: 0; }
h1.hero { font: 400 clamp(44px, 6.2vw, 92px)/.98 var(--f); letter-spacing: -.035em; margin: 0 0 48px; color: #fff; }
h1.hero em { font-style: normal; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
/* Titles: white into ice and mint, the gradient drifts slowly */
.ln > span { display: inline-block; animation: lineup 1s cubic-bezier(.16,.84,.24,1) both, gradshift 9s ease-in-out 1s infinite alternate;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 35%, #d6fbf3 65%, #8ef0dc 100%) 0 50% / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes gradshift { to { background-position: 100% 50%; } }
@keyframes lineup { from { transform: translateY(105%); } }
/* Content follows the headline in a soft cascade */
.wrap > :nth-child(4) { animation-delay: .35s; } .wrap > :nth-child(5) { animation-delay: .45s; } .wrap > :nth-child(n+6) { animation-delay: .55s; }
.wrap > * { animation-duration: .9s; }
@keyframes wobble { 0%, 100% { transform: rotate(-35deg); } 50% { transform: rotate(-20deg) translateY(-1px); } }
nav .brand::before { animation: wobble 3.4s ease-in-out infinite; }
nav a:not(.on):hover { background: rgba(255,255,255,.07); color: var(--fg); }
nav a.on { animation: pillglow 3s ease-in-out infinite; }
@keyframes pillglow { 50% { box-shadow: 0 0 30px -2px rgba(94,234,212,.95); } }

/* Cards: plain dark surface with a thin rim – no sheen, no light sweep, no pointer glow */
.glass { position: relative; padding: 6px 0; border-radius: 0;   /* no boxes anywhere: content sits straight on the background */
  background: none; box-shadow: none; }

/* The scene (field.js): one canvas behind everything */
canvas.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

@media (max-width: 900px) {
  nav { padding: 0 16px; }
  nav a { padding: 5px 10px; font-size: 13px; }
  nav .brand { font-size: 0; gap: 0; }
  .wrap { margin: 0 auto; padding: calc(84px + env(safe-area-inset-top)) 16px calc(80px + env(safe-area-inset-bottom)); }
  h1.hero { margin-bottom: 28px; }
}


/* ── Background: 3D point field (bg3d.js, WebGL) behind the object canvas; nothing else ── */
html { background: #020506; }
canvas.bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }

/* Discord: icon only, at the end of the menu (link goes through /discord, the invite never shows) */
nav a.dc { display: inline-flex; align-items: center; padding: 6px 8px; }
nav a.dc svg { width: 18px; height: 18px; fill: currentColor; transition: fill .2s; }
nav a.dc:hover svg { fill: #8b9bff; }
/* Phones: every tab stays visible in one row that scrolls sideways (no hidden menu); nav.js scrolls the current page into view */
nav .menu-btn { display: none; }
@media (max-width: 560px) {
  nav { justify-content: flex-start; padding: env(safe-area-inset-top) 12px 0 14px; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; flex: none; }
  nav .brand { position: sticky; left: -14px; z-index: 1; margin: 0 4px 0 -14px; padding: 0 8px 0 14px; align-self: stretch; background: linear-gradient(90deg, #020506 80%, transparent); }
}
/* Brand logo in the menu: two Cs (ice blue outside, mint inside) instead of the tilted pill */
nav .brand::before { width: 22px; height: 22px; border-radius: 0; transform: none; box-shadow: none; filter: drop-shadow(0 0 6px rgba(94,234,212,.45));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke-linecap='round'%3E%3Cpath d='M24.5 7.5A12 12 0 1 0 24.5 24.5' stroke='%2390d5ff' stroke-width='4'/%3E%3Cpath d='M20.2 11A6.5 6.5 0 1 0 20.2 21' stroke='%235eead4' stroke-width='3.6'/%3E%3C/svg%3E") center / contain no-repeat; }
