/* ProjektMind — tokens */
:root {
  --bg: #120c18;          /* aubergine night */
  --bg-raise: #1a1222;    /* surfaces */
  --bg-sunk: #0d0912;     /* wells, terminal */
  --line: #2e2338;
  --line-soft: #241b2d;
  --text: #f1e9f4;
  --muted: #a797b3;
  --faint: #6f6079;
  --pink: #e9629f;        /* synapse */
  --pink-hi: #ff9bc8;
  --pink-ink: #2a0f1d;    /* text on pink */
  --rinkrun: #3fb8ba;
  --edgebook: #2ecc71;
  --next: #8a7a96;
  --error: #ff7a8a;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--pink); color: var(--pink-ink); }
:focus-visible { outline: 2px solid var(--pink-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pink); color: var(--pink-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Node dot: the shared marker for a project, used everywhere the project is named */
.node-dot {
  --c: var(--node, var(--pink));
  display: inline-block; flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 0 14px color-mix(in srgb, var(--c) 55%, transparent);
}
.is-next .node-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--next); }
.node-dot.pulse { animation: dot-pulse 2.4s var(--ease-out) infinite; }
.hero-live li:nth-child(2) .node-dot.pulse { animation-delay: 1.2s; }
@keyframes dot-pulse {
  0%, 60%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
  20% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 0%, transparent), 0 0 22px color-mix(in srgb, var(--c) 90%, transparent); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--pink); color: var(--pink-ink); box-shadow: 0 0 0 0 transparent, 0 8px 28px -10px color-mix(in srgb, var(--pink) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--pink-hi); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--pink); }
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
}
.site-header.is-scrolled, .site-header.sheet-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pink); }
.brand-mark { width: 32px; height: 32px; overflow: visible; }
.brand-word { color: var(--text); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand-nodes circle, .brand-glow circle { transform-box: fill-box; transform-origin: center; }
.brand-nodes circle { fill: var(--pink-hi); }
.brand-glow circle { fill: var(--pink-hi); opacity: 0.3; }
/* The neurons fire once when the page loads, and again on hover:
   each node brightens while its glow swells and fades back. */
.brand-nodes circle { animation: node-fire 700ms var(--ease-out) 700ms both; }
.brand-glow circle { animation: glow-fire 900ms var(--ease-out) 700ms both; }
.brand-nodes circle:nth-child(2), .brand-glow circle:nth-child(2) { animation-delay: 830ms; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-nodes circle { animation: node-fire-hover 700ms var(--ease-out) both; }
  .brand:hover .brand-glow circle { animation: glow-fire-hover 900ms var(--ease-out) both; }
  .brand:hover .brand-nodes circle:nth-child(2), .brand:hover .brand-glow circle:nth-child(2) { animation-delay: 130ms; }
}
@keyframes node-fire { 25% { fill: #fff; transform: scale(1.12); } }
@keyframes node-fire-hover { 25% { fill: #fff; transform: scale(1.12); } }
@keyframes glow-fire { 30% { opacity: 0.55; transform: scale(1.45); } }
@keyframes glow-fire-hover { 30% { opacity: 0.55; transform: scale(1.45); } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: var(--bg-raise); }
.chev { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: 320px; padding: 8px;
  background: var(--bg-raise); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -12px rgb(0 0 0 / 0.6);
  transform-origin: 40px top;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.menu[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(0.96) translateY(-4px); pointer-events: none; transition-duration: 120ms; }
.menu-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background-color 140ms ease;
}
.menu-row .node-dot { margin-top: 8px; }
.menu-row:hover, .menu-row:focus-visible { background: color-mix(in srgb, var(--node, var(--next)) 10%, var(--bg-raise)); }
.menu-row b { display: block; font-weight: 600; }
.menu-row small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }

.menu-toggle { display: none; }
.sheet { display: none; }

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .header-row { height: 64px; justify-content: space-between; }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: transparent; color: var(--text); cursor: pointer;
  }
  .bars { position: relative; width: 20px; height: 12px; }
  .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease-out); }
  .bars i:first-child { top: 0; }
  .bars i:last-child { bottom: 0; }
  [aria-expanded="true"] .bars i:first-child { transform: translateY(5px) rotate(45deg); }
  [aria-expanded="true"] .bars i:last-child { transform: translateY(-5px) rotate(-45deg); }

  .sheet {
    display: block;
    padding: 8px 0 24px;
    transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-drawer);
  }
  .sheet[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(-8px); position: absolute; pointer-events: none; transition-duration: 140ms; }
  .sheet .wrap { display: flex; flex-direction: column; gap: 2px; }
  .sheet-label { color: var(--faint); font-size: 14px; padding: 4px 0; }
  .sheet-link { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 20px; font-weight: 600; text-decoration: none; }
  .sheet hr { width: 100%; border: 0; border-top: 1px solid var(--line-soft); margin: 10px 0; }
  .sheet .btn { margin-top: 14px; }
  .sheet:not([hidden]) .sheet-link, .sheet:not([hidden]) .btn { animation: sheet-in 320ms var(--ease-out) both; }
  .sheet .wrap > :nth-child(3) { animation-delay: 30ms; }
  .sheet .wrap > :nth-child(4) { animation-delay: 60ms; }
  .sheet .wrap > :nth-child(6) { animation-delay: 90ms; }
  .sheet .wrap > :nth-child(7) { animation-delay: 120ms; }
  .sheet .wrap > :nth-child(8) { animation-delay: 150ms; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; padding: 120px 0 72px; overflow: hidden; isolation: isolate; }
.synapse { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  /* keep the headline legible over the network */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 62%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(48px, 8.4vw, 116px);
  font-weight: 750;
  line-height: 0.96;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 96;
  max-width: 11ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: inline-block; animation: line-up 900ms var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 80ms; }
.hero-title .line:nth-child(3) > span { animation-delay: 160ms; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero-lede { margin-top: 28px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-live { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero-live a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; text-decoration: none; transition: color 160ms ease; }
.hero-live a:hover { color: var(--text); }
.reveal-load { animation: fade-up 800ms var(--ease-out) both; }
.hero-lede.reveal-load { animation-delay: 360ms; }
.hero-actions.reveal-load { animation-delay: 440ms; }
.hero-live.reveal-load { animation-delay: 520ms; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

/* Projects */
.projects { position: relative; padding: 120px 0 40px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 72px; }
.section-head h2, .build h2, .about h2, .invite h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.025em; }
.section-head p { color: var(--muted); max-width: 34em; }

/* The axon: a pathway down the projects that fills as you scroll */
.axon-track {
  position: absolute; top: 260px; bottom: 120px;
  left: max(calc((100vw - var(--max)) / 2 + var(--gutter) - 26px), 10px);
  width: 2px; background: var(--line-soft); border-radius: 2px;
}
.axon-fill {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0));
  background: linear-gradient(var(--pink), var(--rinkrun) 35%, var(--edgebook) 70%, var(--next));
  border-radius: 2px;
}

.project { position: relative; padding: 56px 0 96px; }
.project::before {
  /* the neuron on the axon */
  content: ""; position: absolute; top: 74px;
  left: max(calc((100vw - var(--max)) / 2 + var(--gutter) - 31px), 5px);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color 400ms ease, box-shadow 400ms ease;
}
.project.is-lit::before {
  background: var(--node, var(--next));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node, var(--next)) 22%, transparent), 0 0 24px var(--node, var(--next));
}
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px 72px; align-items: start; }
.project-flip .project-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.project-flip .project-visual { order: -1; }

.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--muted); font-size: 15px; }
.status {
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--node); background: color-mix(in srgb, var(--node) 12%, transparent);
}
.project h3 { margin-top: 20px; font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
.project-lede { margin-top: 16px; font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 500; max-width: 24em; }
.project-copy > p:not(.project-lede):not(.stack) { margin-top: 16px; color: var(--muted); max-width: 34em; }
.features { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 36em; }
.features li { position: relative; padding-left: 22px; color: var(--muted); }
.features li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; border-radius: 2px; background: var(--node); }
.features b { color: var(--text); font-weight: 600; }
.stack { margin-top: 24px; color: var(--faint); font-size: 14px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Visuals */
.project-visual { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.project-visual { position: sticky; top: 96px; }

.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line-soft); }
.seg button {
  position: relative; z-index: 1; height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 500 14px/1 var(--font); cursor: pointer;
  transition: color 200ms ease;
}
.seg button[aria-selected="true"] { color: var(--text); }
.seg::before {
  /* sliding indicator, positioned from JS */
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 999px; background: color-mix(in srgb, var(--node) 18%, var(--bg-raise));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--node) 40%, transparent);
  transition: transform 260ms var(--ease-out), width 260ms var(--ease-out);
}

.screen { position: relative; display: grid; overflow: hidden; background: var(--bg-sunk); }
.screen img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; filter: blur(6px); transform: scale(1.01); transition: opacity 240ms ease, filter 240ms ease, transform 300ms var(--ease-out); }
.screen img.is-on { opacity: 1; filter: blur(0); transform: none; }

/* Phone: sized in em so the main and floating phones share one drawing */
.phone {
  --r: 5.4em;
  position: relative;
  font-size: min(10px, 2.36vw);
  width: 33em; padding: 0.9em;
  border-radius: var(--r);
  background: #0b080e;
  box-shadow:
    inset 0 0 0 0.15em #4a3d55,          /* polished edge */
    inset 0 0 0 0.45em #1c1622,          /* frame */
    0 0 0 0.1em #08060a,
    0 4em 8em -3em rgb(0 0 0 / 0.85),
    0 0 12em -4em color-mix(in srgb, var(--node) 55%, transparent);
}
.phone::before, .phone::after {
  /* side buttons */
  content: ""; position: absolute; width: 0.35em; border-radius: 0.2em; background: #2a2131;
}
.phone::before { left: -0.3em; top: 11em; height: 3.2em; box-shadow: 0 4.6em 0 #2a2131, 0 9.2em 0 #2a2131; }
.phone::after { right: -0.3em; top: 14em; height: 6.4em; }
.statusbar {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 4.8em; padding: 0 2.6em 0 3.2em;
  border-radius: calc(var(--r) - 0.9em) calc(var(--r) - 0.9em) 0 0;
  background: var(--status, #000); color: #f4f4f6;
}
.sb-time { font: 600 1.55em/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.01em; }
.island { position: absolute; left: 50%; top: 1.1em; width: 10.5em; height: 3em; margin-left: -5.25em; border-radius: 2em; background: #000; }
.sb-icons { display: flex; align-items: center; gap: 0.55em; }
.sb-icons svg { height: 1.15em; width: auto; fill: currentColor; }
.battery { position: relative; width: 2.5em; height: 1.2em; border-radius: 0.35em; box-shadow: inset 0 0 0 0.1em rgb(255 255 255 / 0.45); padding: 0.2em; }
.battery::after { content: ""; position: absolute; right: -0.3em; top: 0.38em; width: 0.15em; height: 0.45em; border-radius: 0 0.1em 0.1em 0; background: rgb(255 255 255 / 0.45); }
.battery i { display: block; width: 80%; height: 100%; border-radius: 0.18em; background: currentColor; }
.phone .screen { border-radius: 0 0 calc(var(--r) - 0.9em) calc(var(--r) - 0.9em); aspect-ratio: 1170 / 2532; background: var(--status, var(--bg-sunk)); }

.browser {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-raise);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgb(0 0 0 / 0.8), 0 0 160px -60px color-mix(in srgb, var(--node) 45%, transparent);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar .url { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: var(--bg-sunk); color: var(--faint); font: 400 11px/1.6 var(--mono); }
.browser .screen { aspect-ratio: 1440 / 900; }
.phone-float { position: absolute; right: -32px; bottom: -72px; font-size: min(4.6px, 1.05vw); }

/* Screens reveal from the bottom edge as they scroll in */
/* The clip extends past the edges so shadows and side buttons are never cut off. */
.js .reveal-clip { clip-path: inset(-120px -120px -120px -120px); transition: clip-path 1100ms var(--ease-in-out); }
.js .reveal-clip:not(.is-in) { clip-path: inset(-120px -120px calc(100% + 120px) -120px); }
.js .phone-float.reveal-clip { transition-delay: 350ms; }

/* Next */
.project-next { padding-bottom: 120px; }
.next-inner { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 780px; }
.next-inner h3 { margin-top: 0; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; }
.next-inner p { margin: 14px 0 24px; color: var(--muted); }
.next-node svg { width: 120px; height: 120px; overflow: visible; }
.next-node .ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 7; transform-origin: 60px 60px; }
.next-node .r1 { animation: spin 40s linear infinite; }
.next-node .r2 { animation: spin 28s linear infinite reverse; stroke: color-mix(in srgb, var(--pink) 45%, var(--line)); }
.next-node .core { fill: var(--bg); stroke: var(--next); stroke-width: 1.5; animation: form 3.2s ease-in-out infinite; transform-origin: 60px 60px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes form { 50% { stroke: var(--pink); transform: scale(1.18); } }

/* How we build */
.build { padding: 120px 0; background: linear-gradient(var(--bg), var(--bg-sunk) 30%, var(--bg-sunk) 70%, var(--bg)); }
.build-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px 72px; align-items: start; }
.principles { margin: 36px 0 0; display: grid; gap: 26px; }
.principles div { padding-top: 20px; border-top: 1px solid var(--line-soft); }
.principles dt { font-weight: 650; font-size: 20px; }
.principles dd { margin: 6px 0 0; color: var(--muted); max-width: 32em; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.stack-list li { padding: 6px 12px; border-radius: 999px; background: var(--bg-raise); color: var(--muted); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-soft); }

.terminal { border-radius: var(--radius); overflow: hidden; background: #0a070d; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgb(0 0 0 / 0.9); }
.terminal-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--bg-raise); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.terminal-bar span { margin-left: 8px; color: var(--faint); font: 400 12px/1 var(--mono); }
.terminal-body {
  margin: 0; padding: 20px 20px 24px; min-height: 460px;
  font: 400 12.5px/1.75 var(--mono); color: #d9cde0;
  white-space: pre-wrap; word-break: break-word; overflow: hidden;
}
.terminal-body .p { color: var(--pink); }
.terminal-body .h { color: #e4b363; }
.terminal-body .c { color: var(--faint); }
.terminal-body .g { color: var(--edgebook); }
.terminal-body .r { color: var(--rinkrun); }
.terminal-body .n { color: var(--text); font-weight: 500; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: var(--pink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* About */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 72px; }
.about-lede { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.about-copy p + p { margin-top: 18px; color: var(--muted); max-width: 36em; }

/* Invite */
.invite { padding: 120px 0 140px; }
.invite-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 72px; align-items: start; }
.invite-copy p { margin-top: 20px; color: var(--muted); max-width: 30em; }
.invite-form {
  display: grid; gap: 22px; padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg); background: var(--bg-raise); box-shadow: 0 0 0 1px var(--line-soft);
}
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { margin-bottom: 12px; font-weight: 600; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label > span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted);
  transition: box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.choice label:active > span { transform: scale(0.97); }
.choice input:checked + span { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--node, var(--pink)); background: color-mix(in srgb, var(--node, var(--pink)) 10%, transparent); }
.choice input:focus-visible + span { outline: 2px solid var(--pink-hi); outline-offset: 3px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.optional { margin-left: 6px; color: var(--faint); font-weight: 400; font-size: 14px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--radius-sm);
  background: var(--bg-sunk); color: var(--text); font: 400 16px/1.4 var(--font);
  box-shadow: inset 0 0 0 1.5px var(--line-soft);
  transition: box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--pink); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
.hint { color: var(--faint); font-size: 14px; }
.error { color: var(--error); font-size: 14px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; min-width: 210px; }
.btn-label { display: inline-block; transition: filter 200ms ease, opacity 200ms ease, transform 200ms var(--ease-out); }
.btn-label.swap { filter: blur(3px); opacity: 0; transform: translateY(4px); }
.btn-submit[aria-busy="true"] { cursor: progress; }
.btn-submit.is-done { background: color-mix(in srgb, var(--pink) 18%, var(--bg-raise)); color: var(--pink-hi); box-shadow: inset 0 0 0 1.5px var(--pink); }
.form-status { min-height: 1.6em; color: var(--muted); font-size: 15px; }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.fine { margin-left: auto; color: var(--faint); font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .section-head, .project-grid, .project-flip .project-grid, .build-grid, .about-grid, .invite-grid { grid-template-columns: minmax(0, 1fr); }
  .project-visual { position: relative; top: 0; margin-top: 8px; }
  .project-flip .project-visual { order: 0; padding-bottom: 56px; }
  .phone-float { right: 0; bottom: 0; font-size: min(4.3px, 0.97vw); }
  .terminal-body { min-height: 0; }
}
@media (max-width: 860px) {
  .hero { padding: 104px 0 40px; align-items: flex-end; min-height: 92svh; }
  .site-header.sheet-open { bottom: 0; overflow-y: auto; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 75%, transparent) 55%, color-mix(in srgb, var(--bg) 30%, transparent)); }
  .axon-track, .project::before { display: none; }
  .projects, .build, .about, .invite { padding-top: 88px; padding-bottom: 88px; }
  .project { padding: 32px 0 72px; }
}
@media (max-width: 520px) {
  .next-inner { grid-template-columns: minmax(0, 1fr); }
  .next-node svg { width: 88px; height: 88px; }
  .seg button { padding: 0 12px; font-size: 13px; }
  .btn-submit { justify-self: stretch; }
  .fine { margin-left: 0; width: 100%; }
}

/* Reduced motion: keep fades that aid comprehension, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; }
  .js .reveal-clip:not(.is-in) { clip-path: inset(-120px); }
  .reveal-clip { transition: none !important; }
  .screen img { transform: none; filter: none; }
  .axon-fill { transform: scaleY(1); }
  .caret { animation: none; }
}
