@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #0f1115;
  --elev: #14171c;
  --elev-2: #181c22;
  --line: #1d2128;
  --line-2: #262b33;
  --text: #e6e8eb;
  --muted: #868e99;
  --dim: #4a515b;
  --faint: #2a2f37;
  --on-accent: #0a0b0d;
  --grain-blend: overlay;
  --grain-opacity: 0.35;
  --accent: oklch(0.82 0.17 148);
  --accent-dim: oklch(0.55 0.13 148);
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --amber: oklch(0.82 0.13 75);
  --red: oklch(0.72 0.17 25);
  --blue: oklch(0.78 0.11 230);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --rail: 240px;
  --radius: 2px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #efede6;
  --elev: #e8e6de;
  --elev-2: #e0ddd3;
  --line: #d8d4c7;
  --line-2: #c4bfae;
  --text: #14161a;
  --muted: #5a6169;
  --dim: #8a8f96;
  --faint: #cfcbbc;
  --on-accent: #0a0b0d;
  --grain-blend: multiply;
  --grain-opacity: 0.12;
  --accent: oklch(0.62 0.17 148);
  --accent-dim: oklch(0.48 0.13 148);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.2s ease;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.002em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.card-idx,
.card-meta,
.section-head .num,
.skill-group .lbl .n,
[data-local-time] {
  font-variant-numeric: tabular-nums;
}

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

a,
button {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  border-radius: var(--radius);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 12px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 12px var(--mono);
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ───────────────────── status bar ───────────────────── */
.statusbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding-top: calc(6px + env(safe-area-inset-top));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: 6px;
  padding-left: max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 85%, black);
  backdrop-filter: blur(10px);
  font: 400 11.5px/1 var(--mono);
  color: var(--muted);
}

:root[data-theme="light"] .statusbar {
  background: color-mix(in oklab, var(--bg) 90%, white);
  color: #2a2f37;
}

.statusbar .seg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.statusbar .status-location {
  white-space: nowrap;
}

.statusbar .sep {
  color: var(--muted);
  opacity: 0.5;
  font-weight: 500;
}

:root[data-theme="light"] .statusbar .sep {
  color: var(--dim);
  opacity: 1;
}

.statusbar .spacer {
  flex: 1;
}

.statusbar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

:root[data-theme="light"] .statusbar .dot {
  background: oklch(0.38 0.13 148);
  box-shadow: 0 0 0 2px color-mix(in oklab, oklch(0.38 0.13 148) 25%, transparent);
}

.statusbar .dot.live {
  animation: pulse 2s ease-in-out infinite;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: 500 10.5px var(--mono);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  background: var(--elev);
  border-color: var(--muted);
  color: var(--text);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle .tt-ic {
  display: inline-flex;
}

.theme-toggle .tt-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .tt-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .tt-sun {
  display: inline-flex;
}

/* ───────────────────── wip card ───────────────────── */
.wip-card {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 56px);
  right: max(20px, env(safe-area-inset-right));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 240px;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklab, var(--amber) 36%, var(--line-2));
  background: color-mix(in oklab, var(--elev) 92%, black);
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px color-mix(in oklab, var(--amber) 10%, transparent) inset,
    0 0 24px -8px color-mix(in oklab, var(--amber) 40%, transparent);
  backdrop-filter: blur(10px);
  color: var(--amber);
  font: 500 11px/1 var(--mono);
}

:root[data-theme="light"] .wip-card {
  background: color-mix(in oklab, var(--elev) 88%, white);
  box-shadow:
    0 18px 40px -12px rgba(40, 30, 0, 0.12),
    0 0 0 1px color-mix(in oklab, var(--amber) 18%, transparent) inset;
}

.wip-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--amber);
  border-left: 1px solid var(--amber);
  pointer-events: none;
}

.wip-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  pointer-events: none;
}

.wip-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wip-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px color-mix(in oklab, var(--amber) 70%, transparent);
}

.wip-card__title {
  flex: 1;
  color: var(--text);
  letter-spacing: -0.005em;
}

.wip-card__meta {
  padding: 2px 6px;
  border: 1px solid color-mix(in oklab, var(--amber) 40%, var(--line-2));
  color: var(--amber);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wip-card__bar {
  position: relative;
  height: 3px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--amber) 28%, var(--line-2));
  background: color-mix(in oklab, var(--amber) 10%, transparent);
}

.wip-card__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46%;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--amber) 40%, transparent),
    var(--amber) 50%,
    color-mix(in oklab, var(--amber) 40%, transparent)
  );
}

.wip-card__foot {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: color-mix(in oklab, var(--amber) 70%, var(--muted));
  font-size: 10px;
  letter-spacing: 0.04em;
}

.wip-card__caption {
  text-transform: lowercase;
}

.wip-card__cursor {
  color: var(--amber);
}

@media (prefers-reduced-motion: no-preference) {
  .wip-card__dot {
    animation: pulse 2s ease-in-out infinite;
  }

  .wip-card__bar::after {
    left: -36%;
    width: 36%;
    background: linear-gradient(
      90deg,
      transparent,
      color-mix(in oklab, var(--amber) 55%, transparent) 38%,
      var(--amber) 52%,
      color-mix(in oklab, var(--amber) 55%, transparent) 66%,
      transparent
    );
    animation: wip-sweep 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  .wip-card__cursor {
    animation: cursor-blink 1.1s steps(2, end) infinite;
  }

  .btn-meta__cursor {
    animation: cursor-blink 1.1s steps(2, end) infinite;
  }
}

@keyframes wip-sweep {
  0% {
    left: -36%;
  }
  100% {
    left: 100%;
  }
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* ───────────────────── layout ───────────────────── */
.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

.rail {
  position: sticky;
  top: 32px;
  align-self: start;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  background: var(--elev);
  color: var(--accent);
  font: 600 13px var(--mono);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  opacity: 0.2;
  pointer-events: none;
}

.brand-name {
  font: 500 13px var(--mono);
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 1px;
  color: var(--muted);
  font: 400 10.5px var(--mono);
}

.rail-label,
.form-heading .title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--dim);
  font: 500 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.rail-label::after,
.form-heading .title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font: 400 13px var(--mono);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav a:hover {
  background: var(--elev);
  color: var(--text);
}

.nav a.active,
.nav a[aria-current="true"] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  color: var(--text);
}

.nav .ix {
  width: 22px;
  color: var(--dim);
  font-size: 11px;
}

.nav a.active .ix,
.nav a[aria-current="true"] .ix {
  color: var(--accent-dim);
}

.rail-foot {
  margin-top: auto;
  color: var(--dim);
  font: 400 10.5px var(--mono);
  line-height: 1.7;
}

.main {
  padding: 40px 48px 80px;
  width: 100%;
}

#featured,
#archive,
#about {
  margin-top: 80px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-head .num {
  color: var(--dim);
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
}

.section-head .title {
  margin: 0;
  color: var(--text);
  font: 500 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-head .trail {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head .status,
.form-heading .status {
  color: var(--muted);
  font: 400 10.5px var(--mono);
}

/* ───────────────────── hero ───────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.hero-text {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero h1 {
  max-width: 18ch;
  margin: 0 0 20px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 .em {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  max-width: 58ch;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-sub b {
  color: var(--text);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  appearance: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--elev);
  color: var(--text);
  font: 500 12.5px var(--mono);
  transition: border-color 0.15s, background 0.15s, transform 0.1s, opacity 0.15s;
}

.btn:hover {
  border-color: var(--muted);
  background: var(--elev-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.btn.primary:hover {
  background: color-mix(in oklab, var(--accent) 85%, white);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn.liked:disabled {
  cursor: default;
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn .arr {
  font-size: 14px;
  line-height: 1;
}

.btn .btn-meta {
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--line-2);
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.btn.primary .btn-meta {
  border-left-color: color-mix(in oklab, var(--on-accent) 35%, transparent);
  color: color-mix(in oklab, var(--on-accent) 70%, transparent);
}

.btn-meta__cursor {
  display: inline-block;
}

/* ───────────────────── CoachHaven flagship ───────────────────── */
.flagship {
  position: relative;
  margin: 24px 0 96px;
  padding: 0;
}

.flagship-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.flagship-head .num {
  color: var(--accent);
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
}

.flagship-head .title {
  color: var(--text);
  font: 500 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.flagship-head .trail {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.flagship-head .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font: 400 10.5px var(--mono);
}

.flagship-head .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}

.fs-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.fs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.fs-kicker .sep {
  color: var(--faint);
}

.fs-kicker b {
  color: var(--muted);
  font-weight: 500;
}

.fs-wordmark {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text);
}

.fs-wordmark .em {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.fs-tagline {
  max-width: 24ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.fs-tagline b {
  color: var(--text);
  font-weight: 500;
}

.fs-lede {
  max-width: 48ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.fs-lede b {
  color: var(--text);
  font-weight: 500;
}

.fs-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fs-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--elev);
}

.fs-visual--img {
  /* CoachHaven accent-200 (dark default from coachhaven-local). */
  --ch-accent-200: #fcd34d;
  --ch-preview-ratio: 1544 / 715;
  aspect-ratio: var(--ch-preview-ratio);
  align-self: center;
  padding: 0;
  cursor: zoom-in;
  /* Predefined transparent shadow so hover transitions shadow→shadow
     (rather than from implicit `none`, which causes compositor jank). */
  box-shadow:
    0 4px 16px -3px transparent,
    0 0 25px -5px transparent;
  transition: box-shadow 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

button.fs-visual--img {
  appearance: none;
  font: inherit;
  color: inherit;
}

.fs-visual--img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

:root[data-theme="light"] .fs-visual--img {
  --ch-accent-200: #f59e0b;
  --ch-preview-ratio: 2998 / 1458;
}

/* Canonical .accent-glow recipe from
   coachhaven-local/apps/web/src/shared/styles/vocab/effects.css — dark default. */
.fs-visual--img:hover,
.fs-visual--img:focus-visible {
  box-shadow:
    0 4px 16px -3px color-mix(in srgb, var(--ch-accent-200) 22%, transparent),
    0 0 25px -5px color-mix(in srgb, var(--ch-accent-200) 14%, transparent);
}

:root[data-theme="light"] .fs-visual--img:hover,
:root[data-theme="light"] .fs-visual--img:focus-visible {
  box-shadow:
    0 4px 14px -3px color-mix(in srgb, var(--ch-accent-200) 12%, transparent),
    0 0 20px -5px color-mix(in srgb, var(--ch-accent-200) 10%, transparent);
}

.fs-visual--img picture,
.fs-visual--img img {
  width: 100%;
  height: 100%;
}

.fs-visual--img picture {
  display: block;
}

.fs-visual--img img {
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dim scrim replaces a previous `filter: saturate/brightness` transition on a
   ~4K image. Animating `filter` forces per-frame repaints of every pixel and
   visibly stutters; animating an overlay's opacity stays on the GPU compositor. */
.fs-visual--img::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgb(0 0 0 / 0.08);
  opacity: 1;
  transition: opacity 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fs-visual--img:hover::before,
.fs-visual--img:focus-visible::before {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fs-visual--img,
  .fs-visual--img::before {
    transition: none;
  }
}

.fs-visual--img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    transparent 55%,
    color-mix(in oklab, var(--accent) 5%, transparent)
  );
}

.fs-visual .grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(
      to right,
      color-mix(in oklab, var(--line) 80%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in oklab, var(--line) 80%, transparent) 1px,
      transparent 1px
    );
  background-size: 32px 32px;
}

.fs-visual .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--muted);
}

.fs-visual .corner.tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.fs-visual .corner.tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.fs-visual .corner.bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.fs-visual .corner.br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.fs-visual .tag-mini {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--dim);
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fs-visual .ph {
  text-align: center;
  color: var(--dim);
  font: 400 11px var(--mono);
  letter-spacing: 0.1em;
}

.fs-visual .ph b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font: 500 13px var(--mono);
  letter-spacing: 0.14em;
}

.fs-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fs-pillar {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.fs-pillar:last-child {
  border-right: none;
}

.fs-pillar .n {
  margin-bottom: 12px;
  color: var(--accent);
  font: 500 10px var(--mono);
  letter-spacing: 0.14em;
}

.fs-pillar h4 {
  margin: 0 0 10px;
  min-height: 2.5em; /* reserve 2 lines so <p> starts at the same baseline across all cards */
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.fs-pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.fs-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.fs-block .lbl {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--dim);
  font: 500 10.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fs-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fs-facts li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.fs-facts li:last-child {
  border-bottom: none;
}

.fs-facts .k {
  color: var(--dim);
  font: 400 11.5px var(--mono);
  padding-top: 1px;
}

.fs-facts .v {
  color: var(--text);
  line-height: 1.5;
}

.fs-facts .v b {
  color: var(--accent);
  font-weight: 500;
}

.fs-ship {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.fs-ship li {
  display: grid;
  grid-template-columns: 80px 64px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.fs-ship li:last-child {
  border-bottom: none;
}

.fs-ship .d {
  color: var(--dim);
  font: 400 11px var(--mono);
}

.fs-ship .v {
  color: var(--accent);
  font: 500 11px var(--mono);
}

.fs-ship .m {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.fs-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.fs-stack .lbl-inline {
  margin-right: 8px;
  padding: 5px 0;
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ───────────────────── featured ───────────────────── */
.featured {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 300px at 12% 0%,
      color-mix(in oklab, var(--accent) 10%, transparent),
      transparent 60%
    ),
    radial-gradient(
      500px 250px at 100% 100%,
      color-mix(in oklab, var(--blue) 8%, transparent),
      transparent 60%
    );
  pointer-events: none;
}

.featured-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--elev) 80%, transparent);
  color: var(--muted);
  font: 400 11.5px var(--mono);
}

.featured-chrome .dots {
  display: flex;
  gap: 6px;
  margin-right: 4px;
}

.featured-chrome .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--faint);
}

.featured-chrome .dots span:nth-child(1) {
  background: #ff5f56;
}

.featured-chrome .dots span:nth-child(2) {
  background: #ffbd2e;
}

.featured-chrome .dots span:nth-child(3) {
  background: #27c93f;
}

.featured-chrome .tab {
  margin-bottom: -13px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-bottom-color: var(--elev-2);
  background: var(--elev-2);
  color: var(--text);
}

.featured-chrome .path .sep {
  margin: 0 4px;
  color: var(--dim);
}

.featured-chrome .path .here {
  color: var(--text);
}

.featured-chrome .chip {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid color-mix(in oklab, var(--amber) 40%, var(--line-2));
  background: color-mix(in oklab, var(--amber) 8%, transparent);
  color: var(--amber);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-main {
  position: relative;
  padding: 48px 48px 44px;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.featured-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.featured h3 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.featured h3 .placeholder {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7em;
  letter-spacing: 0;
}

.fx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 28px 0 36px;
  padding: 24px 0 0;
  border-top: 1px dashed var(--line);
}

.fx-col {
  display: flex;
  flex-direction: column;
}

.fx-lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fx-lbl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.fx-p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.fx-p b {
  color: var(--text);
  font-weight: 500;
}

.fx-changelog {
  margin-bottom: 20px;
  padding: 24px 0 28px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.fx-changelog .fx-lbl {
  margin-bottom: 10px;
}

.fx-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  font: 400 12.5px var(--mono);
}

.fx-log li {
  display: grid;
  grid-template-columns: 60px 1fr 130px;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--dim);
}

.fx-log li:last-child {
  border-bottom: 0;
}

.fx-log .v {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.fx-log .m {
  color: var(--dim);
}

.fx-log .t {
  text-align: right;
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fx-log li.done .v,
.fx-log li.done .m {
  color: var(--muted);
}

.fx-log li.done .t {
  color: var(--accent-dim);
}

.fx-log li.done .t::before {
  content: "✓ ";
  color: var(--accent);
  margin-right: 2px;
}

.fx-log li.now .v {
  color: var(--accent);
}

.fx-log li.now .m {
  color: var(--text);
}

.fx-log li.now .t {
  color: var(--accent);
}

.fx-log li.now .t::before {
  content: "●";
  display: inline-block;
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}

.fx-eta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fx-eta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--elev) 60%, transparent);
  font: 400 12px var(--mono);
}

.fx-eta-row .k {
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fx-eta-row .v {
  color: var(--text);
}

.fx-eta-row .v-accent {
  color: var(--accent);
}

.fx-ctas {
  margin-top: 28px;
}

/* ───────────────────── archive / grid ───────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.grid .cell {
  background: var(--bg);
}

.card {
  display: block;
  padding: 24px 24px 20px;
  transition: background 0.15s;
}

.card:hover {
  background: var(--surface);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--surface);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-idx {
  color: var(--dim);
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
}

.card-meta {
  color: var(--muted);
  font: 400 11px var(--mono);
  text-align: right;
}

.card-meta .y {
  color: var(--text);
}

.card-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--elev);
  filter: saturate(0.85) brightness(0.88);
  transition: filter 0.2s;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card:hover .card-thumb {
  filter: saturate(1) brightness(1);
}

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 50%,
    color-mix(in oklab, var(--accent) 4%, transparent)
  );
  pointer-events: none;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font: 500 20px var(--sans);
  letter-spacing: -0.02em;
}

.card .sum {
  max-width: 48ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.card .sum code,
.drawer-lede code,
.drawer-sec p code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--elev-2);
  color: var(--text);
  font: 400 12px var(--mono);
}

.outcome {
  max-width: 52ch;
  margin: -4px 0 14px;
  padding-left: 10px;
  border-left: 1px solid var(--accent-dim);
  color: var(--accent-dim);
  font: 400 12.5px var(--mono);
  line-height: 1.45;
}

:root[data-theme="light"] .outcome {
  border-left-color: var(--accent);
  color: var(--accent);
}

.card .stack,
.skill-group .items,
.drawer-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card .stack {
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--muted);
  font: 400 10.5px var(--mono);
}

.tag.tag-ico {
  padding: 3px 9px 3px 7px;
}

.tag .ti {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  object-fit: contain;
  color: var(--muted);
}

.tag .ti.ti-real {
  color: inherit;
  width: 14px;
  height: 14px;
}

.fs-stack .tag,
.drawer-stack .tag {
  padding: 4px 9px;
  border-color: var(--line);
  background: var(--elev);
  font: 400 11px var(--mono);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font: 400 11.5px var(--mono);
}

.card-foot .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.card-foot .live::after {
  content: "→";
  transition: transform 0.15s;
}

.card:hover .card-foot .live::after {
  transform: translateX(3px);
}

/* ───────────────────── about / profile ───────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 20px 0;
}

.about p {
  max-width: 52ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.about p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.about p a:hover,
.about p a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.about p b {
  color: var(--text);
  font-weight: 500;
}

.about p em,
.contact h2 em,
.drawer h2 em {
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

.drawer h2 em {
  color: var(--accent);
}

.about-ctas {
  margin-top: 28px;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.skill-group .lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.skill-group .lbl .bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.skill-group .lbl .n {
  color: var(--muted);
  font-weight: 400;
}

/* ───────────────────── agentic feature ───────────────────── */
.agentic-feature {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--line);
}

.ag-plate {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ag-numeral {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text);
  font: 200 96px var(--sans);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-feature-settings: "ss01", "cv11", "tnum";
}

.ag-numeral .unit {
  color: var(--muted);
  font: 300 36px var(--sans);
  letter-spacing: -0.02em;
}

.ag-caption {
  margin: 0;
  max-width: 22ch;
  color: var(--muted);
  font: 400 12px var(--mono);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.ag-caption b {
  color: var(--text);
  font-weight: 500;
}

.ag-title {
  color: var(--text);
  font: 500 18px var(--sans);
  letter-spacing: -0.015em;
}

.ag-title em {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

.ag-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 400 11px var(--mono);
  letter-spacing: 0.08em;
}

.ag-meta .ag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .ag-meta .ag-dot {
    animation: pulse 2s ease-in-out infinite;
  }
}

:root[data-theme="light"] .ag-meta .ag-dot {
  background: oklch(0.38 0.13 148);
  box-shadow:
    0 0 0 2px color-mix(in oklab, oklch(0.38 0.13 148) 25%, transparent);
}

.ag-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ag-brief {
  margin: 0;
  max-width: 58ch;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.ag-brief b {
  color: var(--text);
  font-weight: 500;
}

.ag-brief em {
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

.ag-sub {
  margin: 0 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font: 500 10px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ag-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.ag-tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 24px 4px 0;
  border-right: 1px solid var(--line);
}

.ag-tool + .ag-tool {
  padding-left: 24px;
}

.ag-tool:last-child {
  padding-right: 0;
  border-right: none;
}

.ag-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 56px;
}

.ag-mark img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
}

.ag-mark .ag-ic-light {
  display: none;
}

.ag-mark .ag-ic-dark {
  display: block;
}

:root[data-theme="light"] .ag-mark .ag-ic-light {
  display: block;
}

:root[data-theme="light"] .ag-mark .ag-ic-dark {
  display: none;
}

.ag-tool-rule {
  height: 1px;
  background: var(--line);
}

.ag-tool-name {
  color: var(--text);
  font: 500 14px var(--sans);
  letter-spacing: -0.01em;
}

.ag-tool-role {
  color: var(--dim);
  font: 500 10px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ag-tool-detail {
  color: var(--muted);
  font: 400 12px var(--mono);
  letter-spacing: 0.02em;
}

.ag-tool-extra {
  margin-top: 14px;
  color: var(--muted);
  font: 400 11.5px var(--mono);
  letter-spacing: 0.02em;
}

.ag-tool-extra b {
  color: var(--text);
  font-weight: 500;
}

/* secondary tools stack — third column variant of .ag-tool */
.ag-stack {
  gap: 0;
}

.ag-stack-head {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--dim);
  font: 500 10px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ag-stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ag-stack-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ag-stack-item:last-child {
  border-bottom: none;
}

.ag-stack-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.ag-stack-mark img {
  display: block;
  width: 24px;
  height: 24px;
}

.ag-stack-mark .ag-stack-ic-dark {
  display: block;
}

.ag-stack-mark .ag-stack-ic-light {
  display: none;
}

:root[data-theme="light"] .ag-stack-mark .ag-stack-ic-light {
  display: block;
}

:root[data-theme="light"] .ag-stack-mark .ag-stack-ic-dark {
  display: none;
}

.ag-stack-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  color: var(--dim);
  font: 500 10px var(--mono);
  letter-spacing: 0.04em;
}

.ag-stack-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 1;
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    sans-serif;
}

.ag-stack-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ag-stack-name {
  color: var(--text);
  font: 500 13px var(--sans);
  letter-spacing: -0.005em;
}

.ag-stack-role {
  color: var(--muted);
  font: 400 11px var(--mono);
  letter-spacing: 0.02em;
}

/* ───────────────────── contact + form ───────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact h2 {
  margin: 0 0 12px;
  font: 500 28px var(--sans);
  letter-spacing: -0.025em;
}

.contact h2 em {
  color: var(--muted);
}

.contact p {
  max-width: 42ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-meta {
  color: var(--dim);
  font-size: 13px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 400 14px var(--mono);
  transition: color 0.15s, transform 0.15s;
}

.contact-link:hover {
  transform: translateX(8px);
  color: var(--text);
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  color: var(--text);
}

.contact-link .k {
  min-width: 96px;
  flex: 0 0 auto;
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-link .v {
  flex: 1;
}

.contact-link .arr {
  color: var(--dim);
  transition: color 0.15s, transform 0.15s;
}

.contact-link:hover .arr {
  color: var(--accent);
  transform: translateX(4px);
}

.form-shell {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.form-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      420px 220px at 100% 0%,
      color-mix(in oklab, var(--blue) 9%, transparent),
      transparent 60%
    ),
    radial-gradient(
      280px 200px at 0% 100%,
      color-mix(in oklab, var(--accent) 8%, transparent),
      transparent 60%
    );
  pointer-events: none;
}

.form-heading,
.contact-form {
  position: relative;
}

.form-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field-label {
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: var(--elev);
  color: var(--text);
  font: 400 14px var(--sans);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 55%, transparent);
}

.field textarea {
  resize: vertical;
  min-height: 180px;
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--red);
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font: 400 11px var(--mono);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.status-message {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--muted);
  font: 400 12px var(--mono);
}

.status-message[data-state="success"] {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  background: color-mix(in oklab, var(--accent) 8%, var(--elev));
  color: var(--text);
}

.status-message[data-state="error"] {
  border-color: color-mix(in oklab, var(--red) 42%, var(--line));
  background: color-mix(in oklab, var(--red) 8%, var(--elev));
  color: var(--text);
}

.foot {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 400 11px var(--mono);
}

/* ───────────────────── drawer ───────────────────── */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  background: color-mix(in oklab, #000 62%, transparent);
  backdrop-filter: blur(3px);
}

:root[data-theme="light"] .drawer-scrim {
  background: color-mix(in oklab, #000 28%, transparent);
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 61;
  display: none;
  flex-direction: column;
  overflow: hidden;
  width: min(640px, 94vw);
  border-left: 1px solid var(--line);
  background: var(--bg);
  box-shadow: -20px 0 60px -10px color-mix(in oklab, #000 60%, transparent);
  transform: translateX(0);
}

.drawer.open {
  display: flex;
}

.drawer-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer.animating-in {
  animation: drawer-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.drawer-scrim.animating-in {
  animation: scrim-in 0.22s ease both;
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scrim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.drawer-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--elev);
  color: var(--muted);
  font: 400 11.5px var(--mono);
}

.drawer-chrome .path {
  margin-left: 4px;
  color: var(--muted);
}

.drawer-chrome .path .sep {
  margin: 0 4px;
  color: var(--dim);
}

.drawer-chrome .path .here {
  color: var(--text);
}

.drawer-chrome .close {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: 400 11px var(--mono);
  transition: color 0.15s, border-color 0.15s;
}

.drawer-chrome .close:hover {
  color: var(--text);
  border-color: var(--text);
}

.drawer-chrome .close kbd {
  padding: 1px 5px;
  margin-left: 6px;
  border: 1px solid var(--line);
  background: var(--elev-2);
  color: var(--dim);
  font: inherit;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.drawer-body::-webkit-scrollbar {
  width: 8px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 4px;
}

.drawer-hero {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--elev);
  color: inherit;
}

.drawer-hero:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.drawer-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: color-mix(in oklab, var(--bg) 88%, var(--elev));
}

.drawer-hero-zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  color: var(--text);
  font: 500 13px var(--mono);
  pointer-events: none;
}

.drawer-content {
  padding: 28px 32px 40px;
}

.drawer-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.drawer-kicker .sep {
  opacity: 0.4;
}

.drawer-kicker b {
  color: var(--accent);
  font-weight: 500;
}

.drawer-kicker .archived b {
  color: var(--muted);
}

.drawer h2 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.drawer h2 .drawer-sub {
  color: var(--muted);
  font-weight: 400;
}

.drawer-lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.drawer-lede b {
  color: var(--text);
  font-weight: 500;
}

.drawer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: 400 11.5px var(--mono);
}

.drawer-meta .row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-meta .k {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}

.drawer-meta .v {
  color: var(--text);
}

.drawer-meta .v.v-on {
  color: var(--accent);
}

.drawer-meta .v.v-off {
  color: var(--muted);
}

.drawer-sec {
  margin-top: 28px;
}

.drawer-sec:first-of-type {
  margin-top: 0;
}

.drawer-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--dim);
  font: 500 10.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.drawer-sec-head .num {
  color: var(--accent);
}

.drawer-sec-head .ttl {
  color: var(--text);
}

.drawer-sec-head .trail {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.drawer-sec p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.drawer-sec p b {
  color: var(--text);
  font-weight: 500;
}

.drawer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.project-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px;
  background: color-mix(in oklab, #000 78%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  opacity: 0;
  cursor: zoom-out;
  overscroll-behavior: contain;
  transition: opacity 180ms ease-out;
}

:root[data-theme="light"] .project-image-viewer {
  background: color-mix(in oklab, #000 58%, transparent);
}

.project-image-viewer.open {
  display: grid;
  opacity: 1;
}

/* ── chrome bar ─────────────────────────────────────── */
.project-image-viewer-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  color: var(--muted);
  font: 400 11px var(--mono);
  cursor: default;
  transform: translateY(-6px);
  opacity: 0;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 200ms ease-out;
}

.project-image-viewer.open .project-image-viewer-chrome {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 60ms;
}

.project-image-viewer-chrome .path {
  color: var(--muted);
}

.project-image-viewer-chrome .path .sep {
  margin: 0 6px;
  color: var(--dim);
}

.project-image-viewer-chrome .path .here {
  color: var(--text);
}

.project-image-viewer-chrome .dims {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.project-image-viewer-chrome .dims:empty {
  display: none;
}

.project-image-viewer-close {
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: 400 11px var(--mono);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.project-image-viewer-close:hover,
.project-image-viewer-close:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  outline: none;
}

.project-image-viewer-close kbd {
  padding: 1px 5px;
  margin-left: 6px;
  border: 1px solid var(--line);
  background: var(--elev-2);
  color: var(--dim);
  font: inherit;
}

/* ── framed stage ───────────────────────────────────── */
.project-image-viewer-stage {
  position: relative;
  justify-self: center;
  align-self: center;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  display: flex;
}

.project-image-viewer-stage .frame-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease-out 120ms;
}

.project-image-viewer.open .frame-corner {
  opacity: 0.7;
}

.project-image-viewer-stage .frame-corner-tl {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.project-image-viewer-stage .frame-corner-tr {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
.project-image-viewer-stage .frame-corner-bl {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}
.project-image-viewer-stage .frame-corner-br {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.project-image-viewer-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1920px);
  max-height: min(78vh, 1080px);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line));
  background: var(--bg);
  cursor: zoom-out;
  touch-action: pinch-zoom;
  transform: scale(0.97);
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 200ms ease-out;
}

.project-image-viewer.open .project-image-viewer-stage img {
  transform: scale(1);
  opacity: 1;
  transition-delay: 80ms;
}

.project-image-viewer-stage img.is-loading {
  opacity: 0.25;
}

/* ── loading pill ───────────────────────────────────── */
.project-image-viewer-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 400 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.project-image-viewer-loading.is-active {
  display: inline-flex;
}

.project-image-viewer-loading .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

/* ── caption ────────────────────────────────────────── */
.project-image-viewer-caption {
  margin: 0 auto;
  max-width: min(92vw, 900px);
  padding: 0 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
  transform: translateY(6px);
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 200ms ease-out;
}

.project-image-viewer.open .project-image-viewer-caption {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 140ms;
}

.project-image-viewer-caption:empty {
  display: none;
}

@media (max-width: 560px) {
  .project-image-viewer {
    padding: 12px;
  }
  .project-image-viewer-chrome {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .project-image-viewer-chrome .dims {
    display: none;
  }
  .project-image-viewer-caption {
    font-size: 13px;
  }
}

/* shared terminal prompt — static prefix + blinking cursor */
.term-prefix {
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 4px;
  color: var(--dim);
  font: 500 12px var(--mono);
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  letter-spacing: 0.02em;
  white-space: pre;
}

.term-prefix .mark {
  color: var(--accent);
}

.term-prompt {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font: 500 12px var(--mono);
  line-height: 1;
  text-shadow: 0 0 6px color-mix(in oklab, var(--accent) 45%, transparent);
  user-select: none;
  -webkit-user-select: none;
  animation: term-blink 1.1s step-end infinite;
  vertical-align: baseline;
}

/* ───────────────────── animations ───────────────────── */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes term-blink {
  0%,
  49%,
  100% {
    opacity: 1;
  }
  50%,
  99% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────────────────── responsive ───────────────────── */
@media (max-width: 1080px) {
  .fs-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .fs-pillar {
    border-bottom: 1px solid var(--line);
  }

  .fs-pillar:nth-child(3n) {
    border-right: none;
  }

  .fs-pillar:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main {
    padding: 32px 24px 64px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 280px;
  }

  .hero-3d {
    top: auto;
    bottom: 0;
    height: 300px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .fs-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fs-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .fs-pillar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .fs-pillar:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .fs-pillar:last-child,
  .fs-pillar:nth-last-child(2) {
    border-bottom: none;
  }

  .fs-bottom {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fx-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fx-log li {
    grid-template-columns: 50px 1fr;
  }

  .fx-log li .t {
    grid-column: 1 / -1;
    text-align: left;
  }

  .fx-eta {
    grid-template-columns: 1fr;
  }

  .grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about,
  .contact {
    gap: 32px;
  }

  .agentic-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0;
  }

  .ag-numeral {
    font-size: 72px;
  }

  .ag-numeral .unit {
    font-size: 28px;
  }

  .ag-tools {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ag-tool {
    padding: 0 0 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .ag-tool + .ag-tool {
    padding-left: 0;
  }

  .ag-tool:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .featured-main {
    padding: 28px 24px 24px;
  }

  .contact-link {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .statusbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .wip-card {
    top: calc(env(safe-area-inset-top) + 48px);
    right: 12px;
    width: 196px;
    padding: 10px 12px;
  }

  .featured-chrome {
    flex-wrap: wrap;
  }

  .featured-chrome .chip {
    margin-left: 0;
  }

  .contact-link {
    flex-wrap: wrap;
  }

  .contact-link .k {
    min-width: auto;
  }

  .form-shell {
    padding: 20px;
  }

  .fs-pillars {
    grid-template-columns: 1fr;
  }

  .fs-pillar {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .statusbar .status-location,
  .statusbar .status-location-sep {
    display: none;
  }
}

@media (max-width: 640px) {
  .drawer {
    width: 100vw;
    border-left: none;
  }

  .drawer-content {
    padding: 22px 20px 32px;
  }

  .drawer-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d {
    display: none;
  }

  .hero {
    padding-bottom: 72px;
  }
}
