/* ============================================================
   src/fonts.css — self-hosted fonts (woff2, latin subset).
   Sora / Hanken Grotesk / JetBrains Mono are variable (one file,
   weight range). Instrument Serif is static 400 (roman + italic).
   OFL-licensed; license texts live in public/fonts/. font-src 'self'.
   ============================================================ */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 600 800;
  font-display: swap; src: url("fonts/sora.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("fonts/hanken.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("fonts/jetbrains-mono.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}

/* ============================================================
   NOCTURNE — an award-grade portfolio system
   tokens.css : design tokens · both themes · base · atmosphere
   Dark ("nocturne") is the DEFAULT (:root). Light ("luminous")
   is an override on [data-theme="luminous"].
   ============================================================ */

:root {
  /* ---- brand accent (bright; tweakable) ---- */
  --accent: #ccff4d;                 /* electric lime */
  --on-accent: #08090c;              /* text/icon on an accent fill */
  --accent-text: color-mix(in oklab, var(--accent) 90%, white);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 55%, transparent);

  /* ---- NOCTURNE surfaces (default = dark) ---- */
  --bg: #08090c;
  --bg-2: #0c0e13;
  --surface: rgba(255,255,255,0.024);
  --surface-2: rgba(255,255,255,0.05);
  --ink: #f2f1ec;
  --ink-dim: #a3a4ad;
  --ink-faint: #62646f;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.16);
  --glass: rgba(16,18,24,0.55);
  --glass-strong: rgba(18,20,27,0.94);
  --hairline: rgba(255,255,255,0.06);

  --shadow-soft: 0 1px 2px rgba(0,0,0,.4), 0 18px 50px -22px rgba(0,0,0,.7);
  --shadow-lift: 0 2px 10px rgba(0,0,0,.5), 0 50px 90px -40px rgba(0,0,0,.85);

  --aurora-1: var(--accent);
  --aurora-2: #4d7bff;
  --aurora-3: #b15cff;
  --aurora-op: 0.32;
  --grain-op: 0.05;

  /* ---- type ---- */
  --font-display: "Sora", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-ui: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* ---- geometry ---- */
  --speed: 1;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 10px;
  --maxw: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);   /* one source of truth for the inline page gutter */
  --ease: cubic-bezier(.22,.61,.30,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---- LUMINOUS (light) ---- */
:root[data-theme="luminous"] {
  --on-accent: #08090c;
  --accent-text: color-mix(in oklab, var(--accent) 58%, #14160d);
  --accent-soft: color-mix(in oklab, var(--accent) 22%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 50%, transparent);

  --bg: #f3f2ec;
  --bg-2: #eae9e1;
  --surface: rgba(20,22,30,0.022);
  --surface-2: rgba(20,22,30,0.045);
  --ink: #14150f;
  --ink-dim: #565649;
  --ink-faint: #9a9a8d;
  --line: rgba(20,22,15,0.10);
  --line-2: rgba(20,22,15,0.18);
  --glass: rgba(255,255,255,0.6);
  --glass-strong: rgba(255,255,255,0.96);
  --hairline: rgba(20,22,15,0.06);

  --shadow-soft: 0 1px 2px rgba(40,42,30,.05), 0 16px 44px -22px rgba(40,42,30,.22);
  --shadow-lift: 0 2px 8px rgba(40,42,30,.07), 0 44px 84px -36px rgba(40,42,30,.30);

  --aurora-2: #2f6bff;
  --aurora-3: #9a3cff;
  --aurora-op: 0.34;
  --grain-op: 0.045;
}

/* theme cross-fade + circular view-transition */
:root { transition: none; }
html.theme-anim, html.theme-anim body { transition: background-color .5s var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }

* { box-sizing: border-box; }
/* Horizontal-overflow guard. `clip` wins where supported (no scroll container → sticky
   project stack unaffected); `hidden` is the Safari <16 fallback on <html> only. <body>
   is clip-only (no hidden fallback) so old iOS can't hit the html+body double-hidden
   config that breaks position:sticky. */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
}

::selection { background: var(--accent); color: var(--on-accent); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------------- atmosphere ---------------- */
#atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.starfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.aurora {
  position: absolute; border-radius: 50%;
  filter: blur(64px);
  opacity: var(--aurora-op);
  mix-blend-mode: screen;
  will-change: transform;
}
:root[data-theme="luminous"] .aurora { mix-blend-mode: multiply; filter: blur(56px); }
/* Pause aurora drift during active scroll — hands the compositor the scroll frame. */
html.is-scrolling .aurora { animation-play-state: paused; }
.aurora.a1 { width: 40vw; height: 40vw; left: -8vw; top: -10vw;
  background: radial-gradient(circle at 40% 40%, var(--aurora-1), transparent 66%);
  animation: drift1 calc(30s / var(--speed)) var(--ease) infinite alternate; }
.aurora.a2 { width: 36vw; height: 36vw; right: -8vw; top: 4vw;
  background: radial-gradient(circle at 50% 50%, var(--aurora-2), transparent 64%);
  animation: drift2 calc(36s / var(--speed)) var(--ease) infinite alternate; }
.aurora.a3 { width: 34vw; height: 34vw; left: 30vw; top: 40vh;
  background: radial-gradient(circle at 50% 50%, var(--aurora-3), transparent 62%);
  animation: drift3 calc(42s / var(--speed)) var(--ease) infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(7vw,9vh) scale(1.18); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-6vw,11vh) scale(.92); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-7vw,-8vh) scale(1.22); } }

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- shared atoms ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent-glow); }
.eyebrow b { color: var(--accent-text); font-weight: 500; }

.h-xl { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
.h-lg { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.028em; line-height: 1.02; }
.serif-em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

/* reveal-on-scroll (animated via Web Animations API in lib.jsx) */
.reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; } }

/* line-by-line text reveal */
.lines { display: block; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line-mask > span { display: block; transform: translateY(110%); }

/* ============================================================
   NOCTURNE styles.css — core: scroll-progress · mark · buttons ·
   nav · hero · marquee
   ============================================================ */

/* ---------------- scroll progress ---------------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  background: linear-gradient(90deg, var(--accent), var(--aurora-2));
  transform: scaleX(0); transform-origin: 0 50%; }

/* ---------------- brand mark (logo) ---------------- */
.mark { position: relative; flex: none; display: inline-grid; place-items: center; line-height: 0;
  filter: drop-shadow(0 4px 14px var(--accent-glow)); }
.mark svg { display: block; width: 100%; height: 100%; }
.mark-node { transform-box: fill-box; transform-origin: center; animation: marknode calc(2.6s / var(--speed)) var(--ease-out) infinite; }
@keyframes marknode { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .mark-node { animation: none; } }

/* ---------------- buttons / chips ---------------- */
.magnetic { display: inline-flex; will-change: transform; transition: transform .35s var(--ease-out); }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 99px;
  border: 1px solid var(--line-2); background: color-mix(in oklab, var(--bg) 55%, transparent); color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: border-color .25s, color .25s, background .25s; }
.btn svg { transition: transform .3s var(--ease-out); }
.btn:hover { border-color: var(--accent); color: var(--accent-text); }
.btn:hover svg.go { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent;
  box-shadow: 0 14px 36px -14px var(--accent-glow); }
.btn-primary:hover { color: var(--on-accent); border-color: transparent; }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-lg { padding: 17px 28px; font-size: 15px; }

.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-dim);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; white-space: nowrap; }

.pillbadge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fe08a; position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2fe08a;
  animation: pd 1.8s var(--ease-out) infinite; }
@keyframes pd { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; } }

/* ---------------- nav ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; transition: background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent; }
.nav-solid { background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 11px; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }
.nav-brand .mark { width: 30px; height: 30px; }
.nav-brand .mark span { font-size: 15px; }
.nav-brand small { font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .04em;
  color: var(--ink-faint); text-transform: uppercase; display: block; margin-top: 1px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.nav-links button { background: none; border: none; cursor: pointer; color: var(--ink-dim); font-size: 14px; font-weight: 500;
  padding: 9px 14px; border-radius: 99px; white-space: nowrap; transition: color .2s; position: relative; }
.nav-links button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out); }
.nav-links button:hover { color: var(--ink); }
.nav-links button:hover::after { transform: scaleX(1); }

.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s; overflow: hidden; position: relative; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-toggle svg { transition: transform .5s var(--ease-out), opacity .3s; }
.theme-toggle .ti { position: absolute; }
.theme-toggle .ti-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle .ti-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="luminous"] .theme-toggle .ti-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="luminous"] .theme-toggle .ti-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

@media (max-width: 760px) { .nav-links { display: none; } .nav-inner { height: 64px; } }

/* ---------------- hero ---------------- */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(96px, 12vh, 124px); padding-bottom: 48px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(24px, 4vh, 44px); }

.hero-main { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero-main { grid-template-columns: 1.04fr 0.96fr; } }
.hero-copy { display: flex; flex-direction: column; }
.hero-head { font-size: clamp(30px, 3.8vw, 54px); margin: 0; color: var(--ink); max-width: 100%; line-height: 1.0; overflow-wrap: anywhere; }
.hero-head .serif-em { color: var(--accent-text); padding-right: .06em; }
.hero-tagline { margin: clamp(22px, 3vh, 30px) 0 0; max-width: 44ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: var(--ink-dim); text-wrap: pretty; }
.hero-tagline b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-chat { display: flex; flex-direction: column; gap: 12px; }
.hero-chat-hint { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.hero-chat-hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent-glow); }
.hero-chat .chat { height: min(560px, 70vh); }
@media (max-width: 980px) { .hero-chat .chat { height: min(520px, 76vh); } }

/* hero stats strip */
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(36px, 6vh, 64px);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { background: var(--bg); padding: 26px clamp(18px,2.4vw,30px); display: flex; flex-direction: column; gap: 6px;
  transition: background .3s; }
.hero-stat:hover { background: var(--bg-2); }
.hero-stat b { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.hero-stat span { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .01em; }

/* ---------------- marquee ---------------- */
.marquee { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; align-items: center; animation: marq linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marq-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; position: relative; z-index: 2; }
.marq-item { display: inline-flex; align-items: center; gap: 16px; padding: 0 26px; font-family: var(--font-display);
  font-weight: 600; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.02em; color: var(--ink); }
.marq-item .dot { color: var(--accent); font-size: .6em; }
.marq-item.dim { color: var(--ink-faint); }

/* ============================================================
   NOCTURNE sections.css — section heads · projects (sticky stack) ·
   experience timeline · writing · about · services · process ·
   contact / footer
   ============================================================ */

.sec { position: relative; z-index: 2; padding: clamp(90px, 13vh, 160px) var(--gutter) 0; }
/* Skip layout/paint for off-screen sections (cheap on a long page). The 'auto'
   keyword makes the browser remember each section's real height after first
   render, so the scrollbar stays stable. #projects is excluded below — its
   sticky-stack doesn't mix with content-visibility containment. */
.sec, .contact { content-visibility: auto; contain-intrinsic-size: auto 720px; }
#projects { content-visibility: visible; }
.sec-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vh, 72px); }
.sec-head .top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-faint); }
.sec-title { font-size: clamp(32px, 5.4vw, 76px); margin: 0; color: var(--ink); max-width: 18ch; overflow-wrap: anywhere; }
.sec-title .serif-em { color: var(--accent-text); }
.sec-sub { margin: 0; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.5; color: var(--ink-dim); max-width: 52ch; text-wrap: pretty; }

/* placeholder visual */
.ph { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.ph::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in oklab, var(--ink) 9%, transparent) 13px 14px); }
.ph::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 130% at 82% 0%, var(--accent-soft), transparent 52%),
              radial-gradient(90% 90% at 18% 100%, color-mix(in oklab, var(--aurora-2) 22%, transparent), transparent 55%); }
.ph-label { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .04em; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 8px; }
.ph-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* ---------------- projects : sticky stacking ---------------- */
.work-stack { display: flex; flex-direction: column; gap: clamp(20px, 3vh, 36px); }
.work-card { position: sticky; top: calc(96px + var(--i) * 16px); border-radius: var(--r-xl);
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  overflow: hidden; transition: border-color .35s; }
.work-card:hover { border-color: var(--line-2); }
.wc-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 880px) { .wc-grid { grid-template-columns: 1.05fr 0.95fr; } }
.wc-main { padding: clamp(26px, 3.4vw, 48px); display: flex; flex-direction: column; }
.wc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wc-code-wrap { display: flex; min-width: 0; align-items: baseline; gap: 14px; }
.wc-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.wc-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -0.02em; color: var(--ink); line-height: 1; min-width: 0; overflow-wrap: anywhere; }
.wc-status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); border-radius: 8px; padding: 6px 11px; text-align: right; min-width: 0; }
.wc-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--accent-text); font-weight: 600; }
.wc-built { margin: 22px 0 0; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: var(--ink-dim); text-wrap: pretty; }
.wc-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-faint); text-wrap: pretty; }
.wc-impact { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.wc-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.wc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.wc-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 14px; transition: border-color .2s, color .2s, transform .2s; }
.wc-links a:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.wc-links svg { color: var(--accent-text); }
.wc-visual { position: relative; min-height: 220px; border-left: 1px solid var(--line); }
@media (max-width: 880px) { .wc-visual { border-left: none; border-top: 1px solid var(--line); min-height: 160px; } }
.wc-visual .ph { position: absolute; inset: 0; border: none; border-radius: 0; }
.wc-watermark { position: absolute; right: 18px; top: 14px; z-index: 1; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 11vw, 150px); letter-spacing: -0.05em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); opacity: .7; pointer-events: none; user-select: none; }

/* ---------------- experience : timeline ---------------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), color-mix(in oklab, var(--accent) 10%, transparent)); opacity: .5; }
@media (min-width: 760px) { .timeline::before { left: 9px; } }
.exp-item { position: relative; padding-left: 38px; }
@media (min-width: 760px) { .exp-item { padding-left: 46px; } }
.exp-item::before { content: ""; position: absolute; left: 1px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
@media (min-width: 760px) { .exp-item::before { left: 3px; } }
.exp-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.exp-role { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -0.01em; color: var(--ink); }
.exp-when { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-faint); white-space: nowrap; }
.exp-co { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.exp-co span { color: var(--ink-faint); font-weight: 400; font-family: var(--font-mono); font-size: 12px; }
.exp-bullets { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.exp-bullets li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); text-wrap: pretty; }
.exp-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 70%, var(--line)); }

/* ---------------- writing ---------------- */
.writing-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.write-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(22px, 2.6vw, 32px);
  transition: border-color .25s, background .25s, transform .3s var(--ease-out); }
.write-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-3px); }
.write-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); }
.write-tag { color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); border-radius: 6px; padding: 3px 8px; text-transform: uppercase; }
.write-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; color: var(--ink); margin: 12px 0 0; text-wrap: balance; }
.write-blurb { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); max-width: 70ch; text-wrap: pretty; }
.write-go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); flex: none; transition: border-color .25s, color .25s, transform .25s; }
.write-card:hover .write-go { border-color: var(--accent); color: var(--accent-text); transform: translate(2px,-2px); }
@media (max-width: 620px) { .write-card { grid-template-columns: 1fr; } .write-go { display: none; } }

/* ---------------- about : bento ---------------- */
.about-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; grid-auto-rows: minmax(110px, auto); }
@media (max-width: 860px) { .about-bento { grid-template-columns: repeat(2, 1fr); } }
.bento { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 2.6vw, 34px);
  position: relative; overflow: hidden; transition: border-color .3s, background .3s; }
.bento:hover { border-color: var(--line-2); background: var(--surface-2); }
.b-lead { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.b-lead .lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.b-lead .lead em { font-family: var(--font-serif); font-style: italic; color: var(--accent-text); }
.b-lead .body { font-size: 15.5px; line-height: 1.6; color: var(--ink-dim); max-width: 56ch; text-wrap: pretty; }
.b-portrait { grid-column: span 2; grid-row: span 2; padding: 0; min-height: 240px; }
.b-portrait .ph { position: absolute; inset: 0; border: none; border-radius: 0; }
.b-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-portrait .ph-name { position: absolute; left: 18px; bottom: 16px; z-index: 1; }
.b-portrait .ph-name b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.b-portrait .ph-name span { font-size: 12px; color: var(--ink-faint); }
.b-fact { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (max-width: 860px) { .b-lead, .b-portrait, .b-fact { grid-column: span 2; } }
.fact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.fact-row:first-child { border-top: none; }
.fact-row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.fact-row .v { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.b-now { grid-column: span 3; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.b-now .badge { align-self: flex-start; }
.b-now .t { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.b-now .d { font-size: 14px; color: var(--ink-dim); }

/* ---------------- services ---------------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(26px, 3vw, 40px);
  position: relative; overflow: hidden; transition: border-color .3s, background .3s; transform-style: preserve-3d; }
.svc-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--gx,50%) var(--gy,50%), var(--accent-soft), transparent 60%); }
.svc-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.svc-card:hover::after { opacity: 1; }
.svc-ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line)); margin-bottom: 22px; }
.svc-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; }
.svc-body { font-size: 15px; line-height: 1.6; color: var(--ink-dim); margin: 0 0 22px; text-wrap: pretty; }
.svc-items { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------------- process / doctrine ---------------- */
.doc-grid { display: grid; grid-template-columns: 1fr; }
.doc-item { display: grid; grid-template-columns: 1fr; gap: 8px; padding: clamp(28px, 4vh, 44px) 0; border-top: 1px solid var(--line); position: relative; }
@media (min-width: 760px) { .doc-item { grid-template-columns: 96px 1fr; gap: 44px; } }
.doc-item:hover .doc-n { color: var(--accent-text); }
.doc-n { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; color: var(--ink-faint); transition: color .3s; line-height: 1; }
.doc-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -0.01em; margin: 0 0 12px; color: var(--ink); text-wrap: balance; }
.doc-body p { margin: 0; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; color: var(--ink-dim); max-width: 64ch; text-wrap: pretty; }

/* ---------------- contact / footer ---------------- */
.contact { position: relative; z-index: 2; padding: clamp(72px, 10vh, 124px) var(--gutter) 0; }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-title { font-size: clamp(40px, 8.4vw, 120px); margin: 22px 0 0; color: var(--ink); line-height: .94; overflow-wrap: anywhere; }
.contact-title .serif-em { color: var(--accent-text); }
.contact-blurb { margin: 26px 0 0; max-width: 46ch; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: var(--ink-dim); }
.contact-mail { margin-top: 32px; }
.contact-mail .btn { font-size: 16px; padding: 18px 30px; }
.contact-links { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 48px; width: 100%; max-width: 560px; text-align: left; }
@media (min-width: 560px) { .contact-links { grid-template-columns: 1fr 1fr; } }
.clink { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); background: var(--surface); transition: border-color .25s, background .25s, transform .25s; }
.clink:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.clink .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent-text); flex: none; }
.clink .meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.clink .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.clink .val { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.clink .go { color: var(--ink-faint); transition: transform .3s var(--ease-out); }
.clink:hover .go { transform: translate(3px,-3px); color: var(--accent-text); }

.foot { margin-top: clamp(70px, 12vh, 130px); padding: 30px 0 44px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--ink-faint); }
.foot a:hover { color: var(--accent-text); }
.foot .right { display: flex; gap: 18px; }

/* github mini */
.gh { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .gh { grid-template-columns: repeat(2, 1fr); } }
.gh-repo { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; background: var(--surface); transition: border-color .25s, transform .3s var(--ease-out); }
.gh-repo:hover { border-color: var(--accent); transform: translateY(-3px); }
.gh-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.gh-name svg { color: var(--accent-text); }
.gh-desc { font-size: 13px; color: var(--ink-dim); line-height: 1.5; flex: 1; }
.gh-meta { display: flex; gap: 16px; font-size: 11.5px; color: var(--ink-faint); }
.gh-meta .lang { display: inline-flex; align-items: center; gap: 6px; }
.gh-meta .lang i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   NOCTURNE chat.css — the AI agent product + generative UI blocks
   ============================================================ */
.chat { display: flex; flex-direction: column; height: min(620px, 78vh); border-radius: var(--r-xl); overflow: hidden;
  background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow-lift); text-align: left; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.chat-bar-l { display: inline-flex; align-items: center; gap: 11px; }
.chat-bar-l .mark { width: 30px; height: 30px; }
.chat-bar-l .mark span { font-size: 14px; }
.chat-bar-l b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.chat-bar-l small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); letter-spacing: .04em; }
.chat-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #2fe08a; box-shadow: 0 0 0 3px color-mix(in oklab, #2fe08a 24%, transparent); }

.chat-thread { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.chat-thread::-webkit-scrollbar { width: 8px; }
.msg-user { display: flex; justify-content: flex-end; }
.msg-ai { display: flex; gap: 12px; align-items: flex-start; }
.msg-orb { margin-top: 2px; width: 30px; height: 30px; flex: none; }
.msg-orb span { font-size: 13px; }
.bubble { font-size: 14.5px; line-height: 1.58; max-width: 88%; }
.bubble-user { background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 18px 18px 6px 18px; font-weight: 500;
  box-shadow: 0 10px 24px -12px var(--accent-glow); }
.bubble-ai { background: var(--surface-2); border: 1px solid var(--line); padding: 14px 17px; border-radius: 6px 18px 18px 18px; color: var(--ink); }
.bubble-text { white-space: pre-wrap; }
.cursor-blip { display: inline-block; width: 7px; height: 15px; vertical-align: -2px; margin-left: 2px; background: var(--accent); border-radius: 2px; animation: blip 1s steps(2) infinite; }
@keyframes blip { 50% { opacity: 0; } }
.typing { display: flex; gap: 5px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: tdot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tdot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cursor-blip, .typing i { animation: none; } }

.chat-pills { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chat-pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--ink-dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; transition: color .18s, border-color .18s, transform .18s; }
.pill:hover { color: var(--accent-text); border-color: var(--accent); transform: translateY(-1px); }
.pill svg { color: var(--accent-text); }

.chat-composer { display: flex; align-items: center; gap: 10px; padding: 14px 14px 16px; border-top: 1px solid var(--line); }
.chat-composer input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-family: var(--font-ui); font-size: 15px; color: var(--ink); padding: 8px 10px; }
.chat-composer input::placeholder { color: var(--ink-faint); }
.send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; transition: transform .18s, opacity .18s; }
.send:hover:not(:disabled) { transform: scale(1.07); }
.send:disabled { opacity: .35; }

/* ---------------- generative ui ---------------- */
.bubble-gen { margin-top: 14px; }
.gen-cta { margin-top: 13px; display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: 13px; padding: 0; }
.gen-cta:hover { gap: 11px; }

.gen-projects { display: flex; flex-direction: column; gap: 8px; }
.gp-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: border-color .2s; }
.gp-card.open { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.gp-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: none; cursor: pointer; text-align: left; color: var(--ink); }
.gp-code { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.gp-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); border-radius: 6px; padding: 3px 8px; justify-self: start; }
.gp-toggle { color: var(--ink-faint); display: inline-flex; }
.gp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.gp-card.open .gp-body { grid-template-rows: 1fr; }
.gp-inner { overflow: hidden; padding: 0 14px; }
.gp-card.open .gp-inner { padding: 0 14px 14px; }
.gp-inner p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.gp-inner b { color: var(--ink); font-weight: 600; }
.gp-impact { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.gp-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.gp-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.gp-links a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-text); }
.gp-links a:hover { text-decoration: underline; }

.gen-skills { display: flex; flex-direction: column; gap: 14px; }
.gs-group .gs-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.gs-items { display: flex; flex-wrap: wrap; gap: 6px; }

.gen-about { display: flex; flex-direction: column; }
.ga-head { display: flex; align-items: center; gap: 13px; }
.ga-head .mark { width: 48px; height: 48px; }
.ga-head .mark span { font-size: 20px; }
.ga-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.ga-role { font-size: 12px; color: var(--ink-faint); }
.ga-bio { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); }
.ga-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.ga-stat { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 8px; text-align: center; }
.ga-stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent-text); }
.ga-stat span { font-size: 10px; color: var(--ink-faint); }

.gen-timeline { display: flex; flex-direction: column; gap: 12px; }
.gt-item { display: grid; grid-template-columns: auto 1fr; gap: 11px; }
.gt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 5px; box-shadow: 0 0 0 4px var(--accent-soft); }
.gt-role { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.gt-co { font-size: 12px; color: var(--accent-text); }
.gt-when { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }

.gen-writing { display: flex; flex-direction: column; gap: 8px; }
.gw-post { display: block; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); transition: border-color .2s, transform .2s; }
.gw-post:hover { border-color: var(--accent); transform: translateY(-1px); }
.gw-title { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.gw-blurb { font-size: 12px; color: var(--ink-dim); margin-top: 4px; line-height: 1.45; }

.gen-doctrine { display: flex; flex-direction: column; gap: 14px; }
.gd-item { display: flex; gap: 12px; }
.gd-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); font-weight: 700; margin-top: 2px; }
.gd-t { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.gd-b { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }

.gen-contact .gc-blurb { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-dim); }
.gc-links { display: flex; flex-direction: column; gap: 7px; }
.gc-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); transition: border-color .2s, transform .2s; background: var(--surface); }
.gc-link:hover { border-color: var(--accent); transform: translateX(3px); }
.gc-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.gc-meta { display: flex; flex-direction: column; flex: 1; }
.gc-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.gc-value { font-size: 14px; font-weight: 500; }
.gc-link svg:last-child { color: var(--ink-faint); }

.gen-github { display: flex; flex-direction: column; gap: 12px; }
.gg-head { display: flex; align-items: center; gap: 11px; }
.gg-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.gg-handle { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.gg-bio { font-size: 12px; color: var(--ink-faint); }
.gg-repos { display: flex; flex-direction: column; gap: 7px; }
.gg-repo { display: block; border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; transition: border-color .2s, transform .2s; }
.gg-repo:hover { border-color: var(--accent); transform: translateY(-1px); }
.gg-rname { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--ink); }
.gg-rname svg { color: var(--accent-text); }
.gg-rdesc { font-size: 12px; color: var(--ink-dim); margin: 5px 0 8px; }
.gg-rmeta { display: flex; gap: 16px; font-size: 11px; color: var(--ink-faint); }
.gg-lang { display: inline-flex; align-items: center; gap: 6px; }
.gg-lang i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   NOCTURNE journey.css — BuilderJourney: chapter timeline +
   milestone route. Nocturne tokens only; additive section.
   ============================================================ */
.journey-chapters { display: flex; flex-direction: column; }
.journey-chapter { position: relative; padding: clamp(48px, 7vh, 88px) 0; border-top: 1px solid var(--line);
  overflow: hidden; scroll-margin-top: 100px; }
.journey-chapter:first-child { border-top: none; padding-top: clamp(12px, 2vh, 24px); }

.journey-watermark { position: absolute; right: -0.02em; top: 50%; transform: translateY(-50%); z-index: 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(160px, 24vw, 380px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); opacity: .55; pointer-events: none; user-select: none;
  transition: -webkit-text-stroke-color .4s; }
.journey-chapter.is-active .journey-watermark { -webkit-text-stroke-color: color-mix(in oklab, var(--accent) 55%, var(--line-2)); }

.journey-chapter-inner { position: relative; z-index: 1; max-width: 660px; }
.journey-eyebrow { margin-bottom: 20px; }
.journey-num { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--line-2); font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--ink); margin-bottom: 20px; transition: border-color .3s, color .3s, background .3s; }
.journey-chapter.is-active .journey-num { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.journey-heading { font-size: clamp(28px, 4vw, 46px); margin: 0 0 16px; color: var(--ink); }
.journey-body { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.62; color: var(--ink-dim); max-width: 62ch; text-wrap: pretty; }
.journey-stamp { margin-top: 22px; }

/* ---------------- milestone route ---------------- */
.journey-route-wrap { margin-top: clamp(40px, 6vh, 72px); padding-top: clamp(36px, 5vh, 60px); border-top: 1px solid var(--line); }
.journey-route-scroll { overflow-x: auto; margin-top: 24px; }
.journey-route { display: block; width: 100%; min-width: 640px; height: auto; }
.journey-route-line { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 1 8; stroke-linecap: round; }

.journey-stop { cursor: pointer; }
.journey-stop-dot { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 2; transition: fill .25s, stroke .25s; }
.journey-stop-ring { fill: none; stroke: transparent; stroke-width: 1.5; transition: stroke .25s; }
.journey-stop-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; fill: var(--ink-dim); transition: fill .2s; }
.journey-stop-n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; fill: var(--ink-faint); }
.journey-stop:hover .journey-stop-dot, .journey-stop:focus-visible .journey-stop-dot { stroke: var(--accent); }
.journey-stop:hover .journey-stop-label, .journey-stop:focus-visible .journey-stop-label { fill: var(--accent-text); }
.journey-stop.is-active .journey-stop-dot { fill: var(--accent); stroke: var(--accent); }
.journey-stop.is-active .journey-stop-ring { stroke: var(--accent-soft); }
.journey-stop.is-active .journey-stop-label { fill: var(--accent-text); }
.journey-stop:focus-visible { outline: none; }
.journey-stop:focus-visible .journey-stop-ring { stroke: var(--accent); }

@media (max-width: 640px) { .journey-watermark { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .journey-watermark, .journey-num, .journey-stop-dot, .journey-stop-ring, .journey-stop-label { transition: none; }
}

/* ============================================================
   NOCTURNE proof.css — ProofSection: stat row + VS card.
   Nocturne tokens only; additive section.
   ============================================================ */
.proof-stats { display: grid; grid-template-columns: 1fr; gap: 1px; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
@media (min-width: 640px) { .proof-stats { grid-template-columns: repeat(3, 1fr); } }
.proof-stat { background: var(--bg); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 7px; transition: background .3s; }
.proof-stat:hover { background: var(--bg-2); }
.proof-stat b { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.proof-stat-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.proof-stat-detail { font-size: 12.5px; color: var(--ink-faint); }
.proof-stat-source { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-text); }

/* ---------------- VS card ---------------- */
.proof-vs { position: relative; margin-top: clamp(24px, 3.4vh, 40px); display: grid; grid-template-columns: 1fr auto 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
@media (max-width: 720px) { .proof-vs { grid-template-columns: 1fr; } }
.proof-vs-side { padding: clamp(26px, 3.2vw, 42px); display: flex; flex-direction: column; gap: 10px; }
.proof-vs-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.2vw, 25px);
  letter-spacing: -0.01em; color: var(--ink); margin: 4px 0 0; }
.proof-vs-name { font-size: 14.5px; font-weight: 600; color: var(--ink-dim); margin: 0; }
.proof-vs-body { font-size: 13.5px; line-height: 1.55; color: var(--ink-faint); margin: 0; text-wrap: pretty; }
.proof-vs-safe { opacity: .82; }
.proof-vs-chosen { position: relative; background: color-mix(in oklab, var(--accent) 6%, transparent);
  box-shadow: inset 0 0 0 2px var(--accent), 0 24px 50px -32px var(--accent-glow); z-index: 1; }
.proof-vs-chosen-badge { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); color: var(--accent-text); }
.proof-vs-divider { display: flex; align-items: center; justify-content: center; padding: 0 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-faint);
  background: var(--bg-2); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
@media (max-width: 720px) { .proof-vs-divider { padding: 10px 0; border-left: none; border-right: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } }
.proof-vs-source { position: absolute; right: 16px; bottom: 12px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); z-index: 1; }
@media (max-width: 720px) { .proof-vs-source { position: static; display: block; padding: 10px clamp(26px,3.2vw,42px) 18px; } }

/* ============================================================
   NOCTURNE constellation.css — SkillsConstellation: category
   cards, pill nodes, SVG relationship overlay, click inspector.
   Pills render as always-visible plain content (no JS required
   to see them); the edges + inspector are a JS enhancement layer.
   ============================================================ */
.cnst-wrap { position: relative; }
.cnst-edges { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.cnst-edge { fill: none; stroke: var(--line-2); stroke-width: 1.4; opacity: .55; transition: stroke .3s, opacity .3s; }
.cnst-edge.is-lit { stroke: var(--accent); opacity: .9; stroke-width: 1.8; }
.cnst-edge.is-dim { opacity: .12; }

.cnst-groups { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 880px) { .cnst-groups { grid-template-columns: repeat(3, 1fr); } }
.cnst-group { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 2.6vw, 30px); }
.cnst-group-title { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; }
.cnst-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.cnst-pill { font-family: var(--font-mono); font-size: 12px; letter-spacing: .01em; color: var(--ink-dim);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  cursor: pointer; white-space: normal; text-align: left; line-height: 1.3;
  transition: border-color .2s, color .2s, opacity .2s, background .2s, transform .2s; }
.cnst-pill:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.cnst-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cnst-pill.is-dim { opacity: .32; }
.cnst-pill.is-lit { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); color: var(--accent-text); }
.cnst-pill.is-lit-active { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.cnst-inspector { position: relative; z-index: 1; margin-top: 16px; border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); background: var(--surface-2);
  padding: clamp(20px, 2.4vw, 28px); animation: cnst-in .3s var(--ease-out) both; }
@keyframes cnst-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cnst-inspector-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-dim); display: grid; place-items: center;
  cursor: pointer; transition: border-color .2s, color .2s; }
.cnst-inspector-close:hover { border-color: var(--accent); color: var(--accent-text); }
.cnst-inspector-label { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); display: block; padding-right: 36px; }
.cnst-inspector-body { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-dim); max-width: 60ch; }
.cnst-inspector-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px;
  font-weight: 600; color: var(--accent-text); }
.cnst-inspector-go { display: inline-flex; transition: transform .3s var(--ease-out); }
.cnst-inspector-link:hover .cnst-inspector-go { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .cnst-pill, .cnst-edge { transition: none; }
  .cnst-inspector { animation: none; }
}

/* ============================================================
   NOCTURNE ventures.css — VenturesBoard: the "AIOS Ventures — the
   board" grid. Nocturne tokens only; additive section.
   ============================================================ */
.vb-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 700px) { .vb-grid { grid-template-columns: repeat(2, 1fr); } }

.vb-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, background .3s; overflow: hidden; }
.vb-card:hover { border-color: var(--line-2); background: var(--surface-2); }

.vb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vb-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: -0.01em; color: var(--ink); margin: 0; min-width: 0; overflow-wrap: anywhere; }
.vb-watermark { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  display: inline-flex; align-items: center; }

.vb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -4px; }
.vb-chip { text-transform: capitalize; }
.vb-chip-priority { color: var(--accent-text); border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); }

.vb-what { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-dim); text-wrap: pretty; }
.vb-next { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 12.5px; line-height: 1.5;
  color: var(--ink-faint); text-wrap: pretty; }
.vb-next svg { flex: none; margin-top: 3px; color: var(--accent-text); }

.vb-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 2px; }
.vb-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 12px;
  transition: border-color .2s, color .2s, transform .2s; }
.vb-link:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.vb-link-live { border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); color: var(--accent-text); }

/* ---------------- founder-view accordion (same grid-rows trick as .gp-body) ---------------- */
.vb-founder { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.vb-founder-head { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; background: none; border: none; cursor: pointer; padding: 2px 0; color: var(--ink); }
.vb-founder-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.vb-founder-label svg { color: var(--accent-text); }
.vb-toggle { color: var(--ink-faint); display: inline-flex; }
.vb-founder-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.vb-founder.open .vb-founder-body { grid-template-rows: 1fr; }
.vb-founder-inner { overflow: hidden; }
.vb-founder.open .vb-founder-inner { padding-top: 10px; }
.vb-founder-inner p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); text-wrap: pretty; }
.vb-stamp { margin-top: 12px; font-size: 10px; }

/* ---------------- the method-site card: same shell, "coming soon" treatment ---------------- */
.vb-card-method { border-style: dashed; background: transparent; }
.vb-card-method:hover { border-color: var(--line-2); background: var(--surface); }
.vb-card-method .vb-watermark { color: var(--accent-text); }
.vb-soon { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .vb-founder-body { transition: none; }
}
