@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0c16;
  --bg-2: #12142b;
  --panel: #151834;
  --line: rgb(255 255 255 / .12);
  --text: #f3efe6;
  --muted: #a9acc6;
  --nova: #ffc845;
  --violet: #8b6cff;
  --accent: var(--nova);
  --accent-ink: #1a1406;
  --radius: 28px;
  --gutter: clamp(1.1rem, 4.5vw, 4.5rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 400 1.0625rem/1.6 "Bricolage", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 680; text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: clamp(2.9rem, 6.6vw, 6.4rem); line-height: .95; letter-spacing: -.05em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.3rem); line-height: 1; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.15; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--nova); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto; }
.label { font: 500 .78rem/1.5 "JB Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--text); max-width: 38ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 50; padding: .6rem 1rem; background: var(--nova); color: #111; border-radius: 99px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* header */
.mast { position: sticky; top: 0; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.mast.is-stuck { background: rgb(11 12 22 / .72); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { width: clamp(118px, 12vw, 160px); }
nav { display: flex; gap: clamp(.4rem, 2vw, 2rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .35rem; text-decoration: none; font-weight: 560; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--text); }

/* buttons, pills */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.4rem; border-radius: 99px; font-weight: 640; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn-line { border: 1px solid var(--line); }
.btn-line:hover { background: rgb(255 255 255 / .06); }
.btn-ghost { border: 1px dashed rgb(255 255 255 / .3); color: var(--muted); cursor: default; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 99px; border: 1px solid var(--line); font: 500 .72rem/1.4 "JB Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill-testing::before { color: #ffc845; } .pill-live::before { color: #46d6b4; } .pill-production::before { color: #ff7a59; } .pill-lab::before { color: #7cc4ff; }
.pill-testing::before, .pill-live::before, .pill-production::before, .pill-lab::before { background: currentColor; }
.link-btn { background: none; border: 0; padding: .5rem 0; min-height: 44px; color: var(--text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); min-height: calc(100svh - 4.5rem); padding-block: clamp(2rem, 5vw, 4rem); }
.hero h1 { margin-block: 1.1rem 1.4rem; }
.demo { position: relative; padding: clamp(1rem, 2vw, 1.5rem); border-radius: var(--radius); background: linear-gradient(160deg, #1a1d44, #0f1127 70%); border: 1px solid var(--line); box-shadow: 0 40px 120px -40px rgb(139 108 255 / .45), inset 0 1px 0 rgb(255 255 255 / .08); }
.demo::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgb(255 200 69 / .55), transparent 35%, transparent 65%, rgb(139 108 255 / .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.demo-top, .demo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo figcaption { margin-top: .75rem; min-height: 44px; }
.demo-status { font-size: .95rem; color: var(--muted); }
.hearts { color: #ff6b8a; letter-spacing: .2em; font-size: 1.1rem; }
.hearts span { transition: opacity .3s, transform .3s; display: inline-block; }
.hearts span.lost { opacity: .18; transform: scale(.7); }
.board { margin-top: .75rem; aspect-ratio: 1; border-radius: 18px; background: #0c0e22; overflow: hidden; }
.board svg { width: 100%; height: 100%; display: block; touch-action: manipulation; }
.board .dot { fill: rgb(255 255 255 / .09); }
.board .arrow { cursor: pointer; outline: none; }
.board .arrow .hit { fill: transparent; }
.board .arrow .body { fill: none; stroke-linecap: round; stroke-width: 10; }
.board .arrow:hover .body, .board .arrow:focus-visible .body { filter: brightness(1.25) drop-shadow(0 0 6px currentColor); }
.board .arrow:focus-visible .hit { stroke: #fff; stroke-width: 2; stroke-dasharray: 4 4; }
.board.is-won { animation: win 1s var(--ease); }
@keyframes win { 40% { box-shadow: inset 0 0 80px rgb(255 200 69 / .45); } }

/* ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1rem; background: rgb(255 255 255 / .02); }
.ticker-in { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { font: 500 .85rem/1 "JB Mono", monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-inline: 2.2rem; position: relative; }
.ticker span::after { content: "✦"; position: absolute; right: -.4rem; color: var(--nova); }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
.section { padding-block: var(--section) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin-top: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 44px; padding: .5rem 1.1rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 560; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgb(255 255 255 / .3); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, opacity .35s; }
.card:hover { box-shadow: 0 30px 70px -30px var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.card.is-hidden { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 40%, #000)); }
.card-art { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-art { transform: scale(1.05); }
.card-glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9rem; font-weight: 800; color: var(--accent-ink); opacity: .85; letter-spacing: -.06em; }
.card-icon { position: absolute; left: 1rem; bottom: 1rem; width: 56px; border-radius: 14px; box-shadow: 0 10px 25px rgb(0 0 0 / .45); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.5rem; flex: 1; }
.card-body > p:not(.label) { color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.card-go { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: transform .3s var(--ease); }
.card:hover .card-go { transform: rotate(45deg); }

/* phone spotlight */
.spot { position: relative; margin-top: var(--section); padding-block: var(--section); }
.spot-phone { background: radial-gradient(60rem 40rem at 85% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); border-block: 1px solid var(--line); }
.spot-grid { display: grid; grid-template-columns: 1fr minmax(16rem, 22rem); gap: clamp(2rem, 8vw, 8rem); }
.spot-intro img { width: 72px; border-radius: 18px; margin-bottom: 1.25rem; }
.spot-intro h2 { margin-top: .5rem; color: var(--accent); }
.step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; gap: .8rem; max-width: 34rem; opacity: .28; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step h3 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.step p:last-child { color: var(--muted); font-size: 1.15rem; }
.phone-wrap { position: sticky; top: 14vh; align-self: start; }
.phone { position: relative; border-radius: 40px; padding: 10px; background: linear-gradient(145deg, #2a2d4f, #07080f); box-shadow: 0 50px 100px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .08), 0 0 90px -20px var(--accent); }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 288 / 512; object-fit: cover; transition: opacity .35s; }
.phone img.is-swapping { opacity: 0; }
.phone-note { text-align: center; margin-top: 1rem; }

/* day spotlight (Ollie) */
.spot-day { color: #1c1640; background: linear-gradient(180deg, var(--bg) 0%, #24316b 14%, #8fc7f2 40%, #fff4d6 82%, #fff9ec 100%); overflow: clip; }
.spot-day .label { color: #4d4688; }
.spot-day h2 { margin-block: .5rem 1rem; color: #3a1f9e; }
.spot-day .lede { color: #2a2456; }
.day-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; padding-top: clamp(6rem, 16vw, 14rem); }
.lockup { width: min(100%, 26rem); border-radius: 18px; margin-bottom: 1.5rem; box-shadow: 0 20px 50px -20px rgb(58 31 158 / .5); }
.owl { width: min(100%, 30rem); justify-self: center; filter: drop-shadow(0 30px 40px rgb(58 31 158 / .35)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-2deg); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-block: 2rem; }
.stats dt { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 750; line-height: 1; color: #3a1f9e; letter-spacing: -.04em; }
.stats dd { font-size: .9rem; color: #4d4688; margin-top: .35rem; }
.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker { position: absolute; width: clamp(56px, 7vw, 110px); transform: translateY(var(--py, 0)); filter: drop-shadow(0 10px 14px rgb(0 0 0 / .18)); }
.s0 { left: 6%; top: 22%; } .s1 { right: 8%; top: 16%; } .s2 { left: 46%; top: 30%; } .s3 { left: 3%; bottom: 8%; } .s4 { right: 4%; bottom: 12%; }
.spot-day .btn-accent { --accent: #6d4cff; --accent-ink: #fff; }
.spot-day :focus-visible { outline-color: #3a1f9e; }
.spot-day + .section { padding-top: var(--section); }

/* stories */
.tales { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.5rem; }
.tale { position: relative; display: flex; flex-direction: column; align-items: start; gap: .9rem; padding: clamp(1.75rem, 3vw, 2.75rem); min-height: 20rem; border-radius: var(--radius); text-decoration: none; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), var(--panel) 60%); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease); }
.tale::after { content: ""; position: absolute; width: 18rem; height: 18rem; right: -6rem; top: -6rem; border-radius: 50%; background: var(--accent); opacity: .18; filter: blur(30px); transition: opacity .35s; }
a.tale:hover { transform: translateY(-4px); }
a.tale:hover::after { opacity: .35; }
.tale h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.tale > p:not(.label) { color: var(--muted); max-width: 40ch; }
.tale .pill { margin-top: auto; }

/* log + principles */
.log-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.log-grid h2 { margin-block: .6rem 1rem; }
.log { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.log li { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0 0 2rem 1.75rem; }
.log li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--nova); box-shadow: 0 0 12px var(--nova); }
.log time { font: 500 .85rem/1.6 "JB Mono", monospace; color: var(--text); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.principles article { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgb(255 255 255 / .025); }
.principles h3 { margin-block: .9rem .5rem; }
.principles p { color: var(--muted); }
.principle-n { font: 500 .85rem "JB Mono", monospace; color: var(--accent); }
.hello { text-align: center; padding-bottom: var(--section); }
.hello h2 { margin-block: .75rem 1.5rem; }
.hello-mail { display: inline-block; font-size: clamp(1.15rem, 3.6vw, 2.6rem); font-weight: 650; letter-spacing: -.03em; color: var(--nova); overflow-wrap: anywhere; text-decoration-thickness: 2px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--muted); font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; }
.foot img { width: 140px; opacity: .85; }

/* game page */
.crumb { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; margin-bottom: 1.5rem; }
.crumb:hover { color: var(--text); }
.g-hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
.g-icon { width: 96px; border-radius: 24px; margin-bottom: 1.5rem; box-shadow: 0 20px 50px -15px var(--accent); }
.g-hero h1 { margin-block: .75rem 1rem; }
.g-hero .muted { margin-top: 1rem; max-width: 46ch; }
.g-art img { border-radius: var(--radius); aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: 0 50px 100px -40px var(--accent); }
.g-art figcaption { margin-top: .75rem; text-align: right; }
.g-facts { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); }
.g-facts h2 { margin-top: .6rem; }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 650; }
.facts dd { color: var(--muted); }
.shots { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.shot { flex: 0 0 clamp(13rem, 22vw, 17rem); scroll-snap-align: start; }
.shot img { border-radius: 26px; border: 8px solid #07080f; box-shadow: 0 0 0 1px var(--line); }
.g-support { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding-bottom: var(--section); }
.g-support h2 { margin-block: .6rem 1rem; }
.legal-links { margin-top: 1.25rem; }
.legal-links span { color: var(--muted); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding-block: 1.1rem; font-weight: 640; list-style-position: outside; min-height: 44px; }
details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 60ch; }

/* legal + support pages */
.legal { max-width: 46rem; padding-block: clamp(2rem, 6vw, 5rem) var(--section); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-block: .5rem 1.5rem; }
.legal h2 { font-size: 1.6rem; margin-block: 2.5rem .75rem; }
.legal h3 { font-size: 1.2rem; margin-block: 1.75rem .5rem; }
.legal p, .legal ul { margin-bottom: 1rem; color: #d9d6e8; }
.legal li { margin-bottom: .4rem; }
.legal .lede { max-width: none; margin-bottom: 2rem; }
.draft { padding: 1rem 1.25rem; border-radius: 16px; border: 1px solid var(--nova); background: rgb(255 200 69 / .08); color: var(--nova) !important; margin-block: 1rem 2rem; }
.sup-list { display: grid; gap: .75rem; }
.sup-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.sup-row:hover { background: rgb(255 255 255 / .04); }
.sup-row img { border-radius: 12px; }
.sup-row > span:nth-child(2) { display: grid; }

/* reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero, .g-hero, .day-grid, .log-grid, .g-facts, .g-support { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .demo { max-width: 32rem; width: 100%; justify-self: center; }
  .spot-grid { grid-template-columns: 1fr; }
  .phone-wrap { position: static; width: min(70%, 18rem); margin-inline: auto; order: -1; }
  .step { min-height: auto; opacity: 1; padding-block: 1.5rem; border-top: 1px solid var(--line); }
  .spot-intro { margin-bottom: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .owl { width: min(70%, 20rem); }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  nav a[href$="#log"], nav a[href$="#stories"] { display: none; }
  .log li { grid-template-columns: 1fr; gap: .2rem; }
  .facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .s2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .btn, .chip, .card { border: 1px solid CanvasText; } }
