/* ALINA OS: one stylesheet. The palette and type follow the product film. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #070b16;
  --bg-2: #0a1020;
  --panel: rgba(13, 20, 38, 0.72);
  --panel-solid: #0d1426;
  --line: rgba(148, 163, 214, 0.14);
  --line-2: rgba(148, 163, 214, 0.24);
  --text: #e6e9f5;
  --muted: #9aa3bf;
  --dim: #69728f;
  --violet: #a78bfa;
  --violet-2: #8b5cf6;
  --blue: #60a5fa;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --cyan: #67e8f9;
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* Sky: a violet glow over navy, plus a sparse starfield. */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(139, 92, 246, 0.20), transparent 60%),
    radial-gradient(900px 600px at 100% 40%, rgba(96, 165, 250, 0.08), transparent 60%),
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(1px 1px at 33% 68%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(1px 1px at 88% 74%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(1px 1px at 58% 42%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(180deg, #080d1b 0%, var(--bg) 40%, #060914 100%);
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: #c4b5fd; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { font-size: 0.88em; color: #d8ccff; background: rgba(139, 92, 246, 0.12); padding: 0.1em 0.4em; border-radius: 6px; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--panel-solid); padding: 8px 14px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand:hover { color: #fff; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span b { color: var(--violet); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .new::after { content: "new"; margin-left: 6px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(74, 222, 128, .35); border-radius: 999px; padding: 2px 6px; vertical-align: 2px; }
.btn-gh { display: inline-flex; align-items: center; gap: 8px; color: var(--text) !important; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 12px; background: rgba(255,255,255,.03); }
.btn-gh:hover { border-color: rgba(167, 139, 250, .55); }
.btn-gh svg { width: 16px; height: 16px; fill: currentColor; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 18px; background: rgba(7, 11, 22, .97); border-bottom: 1px solid var(--line); }
  .nav a { padding: 10px 0; width: 100%; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 7px 11px; font: 500 13px var(--mono); cursor: pointer; }
}

/* ---------- type ---------- */
.eyebrow { font: 500 12.5px/1.2 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 12px var(--violet); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: #f1f3fb; }
h1 { font-size: clamp(42px, 6.6vw, 82px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.grad { background: linear-gradient(92deg, #c4b5fd 0%, var(--violet) 40%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 720px; line-height: 1.55; }
.lede strong, p strong { color: var(--text); font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 112px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 20px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.rule { border: 0; height: 1px; margin: 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 980px; margin-bottom: 26px; }
.hero .lede { margin-bottom: 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #9f7aea, var(--violet-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { color: #fff; }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.03); }
.btn-ghost:hover { color: #fff; border-color: rgba(167, 139, 250, .5); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* status bar of islands, as on the desktop */
.islands { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 64px; }
.island { display: inline-flex; align-items: center; gap: 12px; font: 500 14px var(--mono); color: #cfd5ea; background: rgba(10, 16, 32, .8); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 16px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.9); }
.island .k { color: var(--dim); }
.island .v { color: var(--violet); }
.island.focus { border-color: rgba(167, 139, 250, .55); box-shadow: 0 0 0 1px rgba(167,139,250,.15), 0 0 40px -8px rgba(139, 92, 246, .55); }
.island .ws { display: inline-flex; gap: 6px; }
.island .ws i { width: 14px; height: 14px; border-radius: 50%; background: #1f2a44; }
.island .ws i.on { width: 28px; border-radius: 999px; background: var(--blue); }
.orb { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #c4b5fd, var(--violet-2)); box-shadow: 0 0 18px rgba(139, 92, 246, .6); }
.orb svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--mono); border-radius: 999px; padding: 6px 10px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--green); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .06); }
.pill.built { color: var(--blue); border-color: rgba(96, 165, 250, .35); background: rgba(96, 165, 250, .06); }
.pill.next { color: var(--amber); border-color: rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .05); }
.pill.plan { color: var(--dim); }
.pill.violet { color: var(--violet); border-color: rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .08); }

/* ---------- cards & panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px -50px rgba(0,0,0,.9); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line-2); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.card p + p { margin-top: .8em; }
.card .label { font: 500 11.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; display: block; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } section { padding: 80px 0; } }

/* "new" feature cards */
.feature-new { position: relative; overflow: hidden; padding: 36px; border-radius: 20px; background: linear-gradient(180deg, rgba(20, 26, 52, .85), rgba(11, 16, 32, .85)); border: 1px solid rgba(167, 139, 250, .28); }
.feature-new::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(167,139,250,.6), transparent 40%, transparent 70%, rgba(96,165,250,.45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.feature-new.blue { border-color: rgba(96, 165, 250, .28); }
.feature-new h3 { font-size: 30px; letter-spacing: -0.025em; margin: 16px 0 14px; }
.feature-new p { color: var(--muted); }
.feature-new .more { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; }
.feature-new .more::after { content: "→"; transition: transform .15s ease; }
.feature-new .more:hover::after { transform: translateX(3px); }

/* window chrome */
.split > *, .grid > * { min-width: 0; }
.win { max-width: 100%; background: rgba(9, 14, 28, .92); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.95); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 400 13px var(--mono); color: var(--dim); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3350; }
.win-bar i:nth-child(1) { background: #6b3a46; } .win-bar i:nth-child(2) { background: #6a5a35; } .win-bar i:nth-child(3) { background: #2f5a43; }
.win-bar span { margin-left: 8px; }
.win-bar .tag { margin-left: auto; font-size: 11px; letter-spacing: .1em; border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; }
.term { margin: 0; padding: 20px 22px 24px; font: 400 13px/1.75 var(--mono); color: #c6cce0; overflow-x: auto; white-space: pre; }
.term .p { color: var(--violet); user-select: none; }
.term .c { color: var(--dim); }
.term .ok { color: var(--green); }
.term .w { color: var(--amber); }
.term .x { color: var(--red); }
.term .b { color: var(--blue); }
.term .v { color: var(--violet); }
.term .h { color: #f1f3fb; }
.demo-note { font: 400 12px var(--mono); color: var(--dim); margin-top: 10px; letter-spacing: .04em; }

/* key/value receipt rows */
.kv { display: grid; grid-template-columns: 120px 1fr; font-size: 15px; }
.kv dt { font: 500 13px var(--mono); color: var(--green); padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); color: #cfd5ea; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.refusal { margin-top: 16px; font: 500 13.5px var(--mono); color: var(--red); background: rgba(248, 113, 113, .07); border: 1px solid rgba(248, 113, 113, .35); border-radius: 10px; padding: 11px 14px; }
.refusal::before { content: "× "; }
.approved { font: 500 13.5px var(--mono); color: var(--green); background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .35); border-radius: 10px; padding: 11px 14px; }

/* split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 22px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } .split.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }

/* ---------- loom mesh diagram ---------- */
.mesh { padding: 28px; }
.mesh svg { width: 100%; height: auto; display: block; }
.mesh text { font-family: var(--mono); }
.mesh .wire { stroke: rgba(167, 139, 250, .55); stroke-width: 1.5; stroke-dasharray: 3 7; animation: wire 1.6s linear infinite; }
.mesh .wire.in { stroke: rgba(251, 191, 36, .5); }
.mesh .pair { stroke: rgba(148, 163, 214, .12); stroke-width: 1; }
@keyframes wire { to { stroke-dashoffset: -20; } }

/* phases timeline */
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: ph; }
.phase { position: relative; padding: 22px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.phase .n { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .14em; }
.phase h4 { margin: 10px 0 8px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; color: #eef0f8; }
.phase p { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.phase.done { border-color: rgba(74, 222, 128, .3); }
.phase.mid { border-color: rgba(96, 165, 250, .3); }
@media (max-width: 1000px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } }

/* harness chips */
.harnesses { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.harnesses li { font: 500 13.5px var(--mono); padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.025); color: #d5daea; }
.harnesses li.no { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(248,113,113,.6); }

/* ---------- layers (nixos) ---------- */
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.layer .who { font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.layer h4 { margin: 0 0 4px; font-size: 16.5px; font-weight: 650; color: #eef0f8; }
.layer p { margin: 0; font-size: 14.5px; color: var(--muted); }
.layer.l-personal { border-color: rgba(167, 139, 250, .35); } .layer.l-personal .who { color: var(--violet); }
.layer.l-team { border-color: rgba(96, 165, 250, .3); } .layer.l-team .who { color: var(--blue); }
.layer.l-machine .who { color: var(--amber); }
.layer.l-product { border-color: rgba(74, 222, 128, .28); } .layer.l-product .who { color: var(--green); }
@media (max-width: 680px) { .layer { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- pillars ---------- */
.pillar { padding: 32px; }
.pillar .q { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
.pillar h3 { font-size: 26px; margin: 12px 0 14px; }
.pillar ul { margin: 18px 0 0; padding: 0; list-style: none; }
.pillar li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.pillar li strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

/* council seats */
.seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.seat { padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(9,14,28,.85); }
.seat b { display: block; font-size: 15px; }
.seat small { display: block; font: 400 11.5px/1.5 var(--mono); color: var(--dim); margin-top: 4px; }
.seat .bar { height: 3px; border-radius: 3px; margin-top: 12px; }
.seat:nth-child(1) .bar { background: var(--violet); } .seat:nth-child(2) .bar { background: var(--blue); } .seat:nth-child(3) .bar { background: var(--green); }

/* agent fleet */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.agent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.agent .sw { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; box-shadow: 0 0 10px currentColor; background: currentColor; }
.agent b { display: block; font: 600 13.5px var(--mono); letter-spacing: .06em; color: #eef0f8; }
.agent span { font-size: 13.5px; color: var(--muted); }

/* factory flow */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.step { position: relative; padding: 22px 18px; border: 1px solid var(--line); background: var(--panel); }
.step:first-child { border-radius: 14px 0 0 14px; }
.step:last-child { border-radius: 0 14px 14px 0; }
.step + .step { border-left: 0; }
.step .n { font: 500 11.5px var(--mono); color: var(--dim); letter-spacing: .14em; }
.step h4 { margin: 8px 0 6px; font-size: 15.5px; font-weight: 650; color: #eef0f8; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .step, .step:first-child, .step:last-child { border-radius: 0; border-left: 1px solid var(--line); } .step + .step { border-top: 0; } .step:first-child { border-radius: 14px 14px 0 0; } .step:last-child { border-radius: 0 0 14px 14px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.stat { padding: 30px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* architecture stack */
.stack { display: grid; gap: 10px; }
.stack .row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); align-items: center; }
.stack .row b { font-size: 15.5px; }
.stack .row span { color: var(--muted); font-size: 14.5px; }
.stack .row.base { border-color: rgba(74, 222, 128, .3); background: linear-gradient(90deg, rgba(74,222,128,.06), transparent); }
.stack .row.new { border-color: rgba(167, 139, 250, .35); }
@media (max-width: 680px) { .stack .row { grid-template-columns: 1fr; gap: 4px; } }

/* film */
.film { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; background: #050810; box-shadow: 0 60px 120px -60px rgba(139, 92, 246, .55); }
.film img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; opacity: .92; }
.film:hover img { transform: scale(1.02); opacity: 1; }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; }
.film .play span { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 999px; background: rgba(7, 11, 22, .78); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; backdrop-filter: blur(8px); }
.film .play svg { width: 18px; height: 18px; fill: #fff; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* repos */
.repo { display: block; padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.repo:hover { border-color: rgba(167, 139, 250, .45); color: var(--text); }
.repo b { font: 600 14.5px var(--mono); color: #eef0f8; }
.repo p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* callout */
.callout { padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, .28); background: rgba(251, 191, 36, .04); color: var(--muted); font-size: 15px; }
.callout strong { color: var(--amber); font-weight: 600; }
.callout.violet { border-color: rgba(167, 139, 250, .3); background: rgba(139, 92, 246, .05); }
.callout.violet strong { color: var(--violet); }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0 16px 12px 0; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.tbl td:first-child { color: var(--text); font-weight: 550; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

/* closing */
.closing { text-align: center; padding: 140px 0 120px; }
.closing h2 { font-size: clamp(36px, 5vw, 64px); max-width: 900px; margin: 0 auto 24px; }
.closing .cta { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* page hero for subpages */
.page-hero { padding: 88px 0 40px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 24px; max-width: 960px; }
.crumb { font: 500 13px var(--mono); color: var(--dim); margin-bottom: 22px; display: inline-block; }
.crumb:hover { color: var(--muted); }

/* reveal on scroll (site.js adds .in) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce), print { .reveal { opacity: 1; transform: none; } }

/* small screens: dark scrollbars on code, stacked tables */
.term { scrollbar-color: #2a3350 transparent; scrollbar-width: thin; }
.term::-webkit-scrollbar { height: 6px; }
.term::-webkit-scrollbar-thumb { background: #2a3350; border-radius: 6px; }
@media (max-width: 680px) {
  .term { font-size: 12px; padding: 16px 16px 20px; }
  .pill { white-space: normal; line-height: 1.35; }
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl td { display: block; border: 0; padding: 2px 0; white-space: normal; }
  .tbl td:first-child { margin-bottom: 4px; }
}

/* Keep the council diagram readable on narrow phones. */
@media (max-width: 400px) { .seats { grid-template-columns: 1fr; } }

/* ---------- north star: art-led sections ---------- */
.hero-art { position: relative; isolation: isolate; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: 30%; z-index: -1; background: url("/assets/img/north-star-hero.webp") 66% center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 22%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 22%, #000 45%); }
.hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-art h1, .hero-art .lede { text-shadow: 0 2px 30px rgba(7, 11, 22, .85); }
.hero-art .lede { max-width: 640px; }
@media (max-width: 900px) { .hero-art::before { left: 0; opacity: .38; background-position: 60% center; -webkit-mask-image: none; mask-image: none; } }

.art { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-solid); box-shadow: 0 40px 100px -50px rgba(139, 92, 246, .55); }
.art img { display: block; width: 100%; height: auto; }
.art figcaption { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .08em; padding: 10px 16px; border-top: 1px solid var(--line); }

.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.tri .card h3 { margin: 10px 0 10px; }
.tri .kind { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.tri .k-ep { color: var(--violet); } .tri .k-se { color: var(--blue); } .tri .k-pa { color: var(--cyan); }
@media (max-width: 900px) { .tri { grid-template-columns: minmax(0, 1fr); } }

.invert { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: stretch; }
.invert .arrow { align-self: center; font: 600 28px var(--mono); color: var(--violet); }
.invert .card.then { opacity: .82; }
.invert .card.soon { border-color: rgba(167, 139, 250, .45); box-shadow: 0 0 60px -30px rgba(139, 92, 246, .8); }
@media (max-width: 900px) { .invert { grid-template-columns: minmax(0, 1fr); } .invert .arrow { justify-self: center; transform: rotate(90deg); } }

.ladder { display: grid; gap: 8px; }
.ladder .rung { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr) 150px; gap: 20px; align-items: center; padding: 15px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ladder .rung > .pill { justify-self: end; }
.ladder .rung .n { font: 500 13px var(--mono); color: var(--dim); }
.ladder .rung b { font-size: 15.5px; font-weight: 600; color: #eef0f8; }
.ladder .rung span { font-size: 14px; color: var(--muted); }
.ladder .rung.done { border-color: rgba(74, 222, 128, .3); }
.ladder .rung.next { border-color: rgba(251, 191, 36, .28); }
@media (max-width: 900px) { .ladder .rung { grid-template-columns: 44px minmax(0, 1fr); } .ladder .rung span, .ladder .rung .pill { grid-column: 2; justify-self: start; } }

.future { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(167, 139, 250, .3); background: linear-gradient(180deg, rgba(20, 26, 52, .9), rgba(9, 13, 28, .95)); }
.future .art { border: 0; border-radius: 0; box-shadow: none; }
.future .body { padding: 40px 44px 44px; }
.future .body h2 { margin: 14px 0 18px; }
@media (max-width: 680px) { .future .body { padding: 28px 22px 30px; } }
