@charset "UTF-8";

@font-face {
  font-family: "Yeongwol";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2507-2@1.0/YeongwolTTF-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ============================================================
   Spatial UI / Fluid Architecture Matrix
   Mathematically optimal interpolation (Utopia.fyi equations)
   Linear/Vercel Aesthetic Principles -> Light Mode
   ============================================================ */

:root {
  /* ── 1. FLUID TYPOGRAPHY (Linear Interpolation) ── 
     From 320px (min) to 1240px (max) viewport width.
     Base formula: clamp(min-size, calc([y-intercept] + [slope] * 100vw), max-size) 
  */
  --font-sans: "Pretendard Variable", "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, Menlo, monospace;
  --font-brush: "Yeongwol", "Pretendard Variable", "Pretendard", sans-serif;

  --text-base-min: 1rem;       /* 16px */
  --text-base-max: 1.125rem;   /* 18px */
  /* Formula: clamp(16px, 15.565px + 0.136vw, 18px) */
  --text-base: clamp(1.0000rem, 0.9728rem + 0.1359vw, 1.1250rem);

  /* Step -1 (sm / caption) */
  --text-sm: clamp(0.8750rem, 0.8478rem + 0.1359vw, 0.9375rem);

  /* Step 1 (md / h4) */
  --text-md: clamp(1.1250rem, 1.0707rem + 0.2717vw, 1.2500rem);

  /* Step 2 (lg / h3) */
  --text-lg: clamp(1.2500rem, 1.1413rem + 0.5435vw, 1.5000rem);

  /* Step 3 (xl / h2) */
  --text-xl: clamp(1.5000rem, 1.3370rem + 0.8152vw, 1.8750rem);

  /* Step 4 (2xl / h1) */
  --text-2xl: clamp(1.7500rem, 1.4783rem + 1.3587vw, 2.3750rem);

  /* Step 5 (hero statement) */
  --text-3xl: clamp(2.2500rem, 1.7065rem + 2.7174vw, 3.5000rem);

  /* ── 2. SYSTEM SPACING & FLUID MEASUREMENTS ── */
  --space-3xs: clamp(0.25rem, 0.2283rem + 0.1087vw, 0.3125rem);
  --space-2xs: clamp(0.5rem, 0.4565rem + 0.2174vw, 0.625rem);
  --space-xs: clamp(0.75rem, 0.6848rem + 0.3261vw, 0.9375rem);
  --space-sm: clamp(1rem, 0.913rem + 0.4348vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.3696rem + 0.6522vw, 1.875rem);
  --space-lg: clamp(2rem, 1.8261rem + 0.8696vw, 2.5rem);
  --space-xl: clamp(3rem, 2.7391rem + 1.3043vw, 3.75rem);
  --space-2xl: clamp(4rem, 3.6522rem + 1.7391vw, 5rem);
  
  --layout-width: 1240px;
  --reading-width: 72ch; /* The optimal line length character count */

  /* ── 3. LAB PRECISION PALETTE & BORDERS (Light Mode) ── */
  --bg-primary: #f8f4ea;
  --bg-secondary: #eee8db;
  --bg-glass: rgba(248, 244, 234, 0.88);
  
  --text-strong: #000000;
  --text-primary: #171717; /* Slate 900 */
  --text-secondary: #4f4b43;
  --text-tertiary: #837d70;

  /* Micro borders definition */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-struct: rgba(0, 0, 0, 0.14);
  --border-focus: rgba(0, 0, 0, 0.34);

  /* Accent – Brand Lime */
  --accent-glow: #65a300;
  --accent-glow-subtle: rgba(101, 163, 0, 0.12);
  --accent-pink: #f5187d;
  --paper-shadow: rgba(38, 30, 17, 0.12);

  /* ── 4. SPATIAL UI ELEVATION SYSTEM (Z-AXIS) ── */
  /* Ambient layers mapped to distance simulations */
  --elevation-1: 
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 2px 4px rgba(0, 0, 0, 0.02);
  
  --elevation-2: 
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.03),
    0 8px 16px rgba(0, 0, 0, 0.03);
    
  --elevation-3: 
    0 4px 8px rgba(0, 0, 0, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.04),
    0 32px 64px rgba(0, 0, 0, 0.04);

  /* ── 5. KINETIC PHYSICS (GPU TIMING) ── */
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);     /* Smooth snap */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);      /* Gentle deceleration */
  --motion-fast: 0.15s;
  --motion-med: 0.4s;
  --motion-slow: 0.8s;
}

/* ── 6. DARK MODE OVERRIDES (Cyber-Lab Edge) ── */
html.dark {
  --bg-primary: #000000; /* Deep Vantablack */
  --bg-secondary: #0a0a0a;
  --bg-glass: rgba(0, 0, 0, 0.75);
  
  --text-strong: #ffffff;
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-tertiary: #52525b;

  --border-light: rgba(255, 255, 255, 0.05); /* slightly more visible for edge */
  --border-struct: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.15);

  --accent-glow: #ccff00; /* Lime Glow */
  --accent-glow-subtle: rgba(204, 255, 0, 0.15);

  --elevation-1: 0 4px 12px rgba(0, 0, 0, 0.8);
  --elevation-2: 0 8px 24px rgba(0, 0, 0, 0.9);
  --elevation-3: 0 16px 48px rgba(0, 0, 0, 1), 0 0 40px var(--accent-glow-subtle); /* Neon Bloom */
}

/* ── Base Engine ─────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.09) 1px, transparent 0),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255,255,255,0.38), rgba(255,255,255,0) 45%);
  background-size: 32px 32px, 96px 96px, 96px 96px, 100% 100%;
  background-attachment: fixed;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: transparent;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(102deg, transparent 0 14%, rgba(0,0,0,0.035) 14.2% 14.5%, transparent 14.7% 100%),
    linear-gradient(176deg, transparent 0 62%, rgba(0,0,0,0.026) 62.2% 62.6%, transparent 62.8% 100%);
}

::selection {
  background: rgba(0,0,0,0.1);
  color: var(--text-strong);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--motion-fast) var(--ease-fluid);
}

:where(a, button, input, [role="option"]):focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 3px;
}

/* ── Hardware Accelerated Motion Classes ─────────── */
.animate-fade-up {
  opacity: 0;
  transform: translate3d(0, 20px, 0); /* 3d triggers GPU acceleration */
  will-change: opacity, transform;
  animation: fadeUp var(--motion-slow) var(--ease-fluid) forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ── Glassmorphism Spatial Nav ───────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: clamp(56px, 5vw, 72px);
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-struct);
  transition: transform var(--motion-med) var(--ease-fluid);
  will-change: transform;
}

.nav__inner {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-strong);
  flex: 0 0 auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav__mobile-search-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
}

.nav__mobile-search-trigger:hover {
  color: var(--text-strong);
  border-color: var(--text-tertiary);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  letter-spacing: 0;
}

.nav__link:hover, .nav__link--active {
  color: var(--text-strong);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-strong);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--motion-med) var(--ease-fluid);
}

.nav__link:hover::after, .nav__link--active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border var(--motion-fast), color var(--motion-fast);
}

.nav__search-trigger:hover {
  border: 1px solid var(--text-tertiary);
  color: var(--text-strong);
}

.nav__search-trigger span {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-struct);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 500px) {
  .nav {
    height: auto;
  }
  .nav__inner {
    height: auto;
    min-height: 56px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .nav__links {
    display: none;
  }
  .nav__mobile-search-trigger {
    display: inline-flex;
  }
  .nav__search-trigger {
    display: none;
  }
}

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

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

  .post-item:hover,
  .bento-card:hover {
    transform: none !important;
  }
}

/* ── Shell & Hero ────────────────────────────────── */
.shell {
  flex: 1;
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  width: 100%;
}

.hero {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
  width: 100%;
  max-width: 800px;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border: 1px solid var(--border-struct);
  border-radius: 999px;
  background: var(--bg-primary);
  margin-bottom: var(--space-md);
  box-shadow: var(--elevation-1);
}

.hero__badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-strong);
  animation: blink 2s infinite ease-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.8); }
}

.hero__statement {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text-strong);
}

.hero__accent {
  color: var(--text-tertiary);
}

.hero__subtitle {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 60ch;
}

/* ── Reading Progress Bar ────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--text-strong);
  z-index: 10000;
  transition: width 0.1s linear;
  pointer-events: none;
}
html.dark #reading-progress {
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Lab Stats Counter ────────────────────────── */
.lab-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-struct);
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: 0;
}
html.dark .stat-value {
  color: var(--accent-glow);
  text-shadow: 0 0 20px rgba(204,255,0,0.3);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Taxonomy Filter (Anthropic-pattern) ────────── */
.research-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-struct);
}
.taxonomy-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tax-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-struct);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast), border var(--motion-fast);
}
.tax-btn:hover {
  border-color: var(--text-tertiary);
  color: var(--text-strong);
}
.tax-btn--active {
  background: var(--accent-glow);
  color: #fff;
  border-color: var(--accent-glow);
  box-shadow: 0 2px 8px var(--accent-glow-subtle);
}
html.dark .tax-btn--active {
  background: var(--accent-glow);
  color: #000;
  border-color: var(--accent-glow);
}
.no-results {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-xl);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.no-results__icon {
  font-size: 1.5rem;
}

/* ── Structural Web Components ───────────────────── */
.system-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-lg);
}
.hud-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.hud-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-glow, #27c93f);
}
.hud-dot.pulsing {
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 var(--accent-glow-subtle, rgba(39, 201, 63, 0.4)); }
  70% { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-struct);
  padding-bottom: 8px;
}

.ecosystem-section {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.eco-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  transition: border var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
.eco-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--elevation-2);
  transform: translateY(-2px);
}
html.dark .eco-card:hover {
  border-color: rgba(204, 255, 0, 0.3);
}
.eco-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-strong);
}
.eco-card__info h3 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.eco-card__info p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.eco-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.eco-card__status span {
  width: 5px; height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.eco-card__status--live { color: #27c93f; }
.eco-card__status--live span { background: #27c93f; animation: pulse-glow 2s infinite; }
.eco-card__status--archived { color: var(--text-tertiary); }
.eco-card__status--archived span { background: var(--text-tertiary); }
.eco-card__status--scanning { color: #f5a623; }
.eco-card__status--scanning span {
  background: #f5a623;
  animation: blink 1s infinite;
}

.eco-card__tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.eco-card__tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  color: var(--text-tertiary);
}

.eco-card--locked {
  cursor: default;
  opacity: 0.5;
  border-style: dashed;
  pointer-events: none;
}
html.dark .eco-card--locked {
  opacity: 0.4;
}

/* Hero bg dot grid */
.shell::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
html.dark .shell::before {
  opacity: 1;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.shell > * { position: relative; z-index: 1; }


.architect-module {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.architect-module::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--text-strong);
}
html.dark .architect-module::before {
  background: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow);
}
.arch-inner {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
}
.arch-left {
  flex-shrink: 0;
}
.arch-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-struct);
  display: block;
}
.arch-photo--pixel {
  border-radius: 8px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 100px;
  height: 100px;
}
html.dark .arch-photo {
  border-color: rgba(204, 255, 0, 0.25);
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.1);
}
.arch-right {
  flex: 1;
}
.arch-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.arch-name {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: 0;
  margin-bottom: 12px;
}
.arch-bio {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  white-space: pre-line;
}
.arch-proof {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-struct);
  border-bottom: 1px solid var(--border-struct);
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.proof-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: 0;
}
html.dark .proof-value {
  color: var(--accent-glow);
  text-shadow: 0 0 16px rgba(204,255,0,0.3);
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.arch-links {
  display: flex;
  gap: 10px;
}
.arch-btn {
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-strong);
  background: var(--bg-primary);
  border: 1px solid var(--border-struct);
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.arch-btn:hover {
  border-color: var(--text-tertiary);
}
.arch-btn--primary {
  background: var(--text-strong);
  color: var(--bg-primary);
  border-color: var(--text-strong);
}
.arch-btn--primary:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}
html.dark .arch-btn--primary {
  background: var(--accent-glow);
  color: #000;
  border-color: var(--accent-glow);
}
@media (max-width: 640px) {
  .arch-inner { flex-direction: column; gap: var(--space-lg); }
  .arch-photo { width: 80px; height: 80px; }
}

/* ── Asymmetric Bento Media Matrix (list.html) ────── */
.post-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--space-lg);
  list-style: none;
}

/* Spatial Post Card (Bento Item) */
.post-item {
  grid-column: span 12; /* Mobile default */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  border-radius: 3px;
  padding: 0;
  background: var(--bg-primary);
  border: 1px solid rgba(8,8,8,0.22);
  box-shadow: 0 9px 0 rgba(0,0,0,0.03), 0 18px 36px var(--paper-shadow);
  transition: border-color var(--motion-med) var(--ease-fluid), box-shadow var(--motion-med) var(--ease-fluid), transform var(--motion-med) var(--ease-fluid);
  will-change: transform, box-shadow;
  overflow: hidden;
}

html.dark .post-item {
  background: var(--bg-primary);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}



/* Radial gradient glow layer (mouse-tracked) */
.post-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(101, 163, 0, 0.06), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.post-item:hover::before {
  opacity: 1;
}
.post-item > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .post-item { grid-column: span 6; }
  .post-item--medium { grid-column: span 6; }
}

@media (min-width: 1024px) {
  .post-item { grid-column: span 4; }

  /* Bento Custom Spans */
  .post-item--medium {
    grid-column: span 6;
  }
  .post-item--large {
    grid-column: span 8;
    flex-direction: row;
    align-items: stretch;
  }
  .post-item--large .post-item__image-link {
    width: 42%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: 3px 0 0 3px;
    border-bottom: none;
    border-right: 1px solid var(--border-struct);
  }
  .post-item--large .post-item__content {
    padding: var(--space-md) var(--space-lg);
    justify-content: center;
  }
  .post-item--hero {
    grid-column: span 12;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }
  .post-item--hero .post-item__image-link {
    width: 42%;
    aspect-ratio: 16 / 9;
    border-radius: 3px 0 0 3px;
    border-bottom: none;
    border-right: 1px solid var(--border-struct);
  }
  .post-item--hero .post-item__content {
    width: 58%;
    padding-right: var(--space-xl);
  }
}

.post-item:hover {
  border-color: var(--border-focus);
  box-shadow: 0 16px 0 rgba(0,0,0,0.045), 0 24px 56px rgba(0,0,0,0.16);
  transform: translateY(-3px);
  z-index: 10;
}

html.dark .post-item:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(204,255,0,0.03);
}

.post-item__image-link {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  background: #e8dfcf;
  border-bottom: 1px solid rgba(8,8,8,0.22);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-item__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.fallback-mesh {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(101, 163, 0, 0.08), transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04), transparent 50%);
  filter: blur(40px);
  z-index: 0;
}

html.dark .fallback-mesh {
  background: radial-gradient(circle at 50% 50%, rgba(204, 255, 0, 0.05), transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02), transparent 50%);
}

.fallback-icon {
  width: 32px;
  height: 32px;
  color: var(--text-tertiary);
  opacity: 0.4;
  z-index: 1;
}

.post-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
  background: var(--bg-primary);
  display: block;
  transition: transform var(--motion-slow) var(--ease-out);
  will-change: transform;
  filter: saturate(1.05) contrast(1.04);
}

.post-item__image--contain {
  object-fit: contain;
  background: #090909;
}

.ambient-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  display: block;
  transition: transform var(--motion-slow) var(--ease-out);
  will-change: transform;
}

.post-item:hover .post-item__image {
  transform: scale(1.035) rotate(-0.15deg);
}

.post-item:hover .ambient-video {
  transform: scale(1.04);
}

/* Inner glare effect */
.post-item__image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit; /* Fix: inherit perfectly matches the parent's dynamic radius */
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.post-item__image-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), transparent 28%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
  opacity: 0.28;
}

.post-item__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
}

.post-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-item:nth-child(5n + 1) .post-item__image-link::before {
  background:
    linear-gradient(105deg, transparent 0 68%, rgba(245,24,125,0.18) 68% 75%, transparent 75%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 7px);
}

.post-item:nth-child(5n + 3) .post-item__image-link::before {
  background:
    linear-gradient(78deg, transparent 0 10%, rgba(101,163,0,0.18) 10% 15%, transparent 15%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 8px);
}

/* Dedicated hitbox to make entire card clickable without layout side-effects */
.post-item__hitbox {
  position: absolute;
  inset: 0;
  z-index: 50; /* Ensure it overlays everything inside the card */
  cursor: pointer;
}

.post-title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text-primary);
  transition: color var(--motion-fast);
}

.post-item:hover .post-title {
  color: var(--text-strong);
}

.post-excerpt {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 4px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-xs);
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 4px;
}

/* ── Deep Reading Ergonomics (single.html) ───────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--layout-width);
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(auto, var(--reading-width)) 1fr;
    gap: var(--space-2xl);
  }
}

.article-header {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-struct);
  padding-bottom: var(--space-md);
  position: relative;
  isolation: isolate;
}

.article-header__meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.article-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--text-strong);
  margin-bottom: var(--space-xs);
}

.post-header__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
}

.article-header--surface {
  min-height: clamp(460px, 44vw, 610px);
  padding: clamp(54px, 7vw, 102px) clamp(18px, 3vw, 34px) clamp(42px, 6vw, 76px) 0;
  margin: clamp(18px, 3vw, 42px) 0 var(--space-xl);
  border-bottom: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-header--surface::before,
.article-header--surface::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.article-header--surface::before {
  inset: 0 -14% 0 16%;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(248,244,234,0.98) 0%, rgba(248,244,234,0.78) 23%, rgba(248,244,234,0.24) 50%, rgba(248,244,234,0) 100%),
    linear-gradient(180deg, rgba(248,244,234,0.24), rgba(248,244,234,0.10)),
    var(--article-surface-image);
  background-size: cover;
  background-position: center;
  clip-path: polygon(4% 8%, 100% 0, 95% 91%, 12% 100%, 0 42%);
  filter: saturate(1.04) contrast(1.04);
  opacity: 0.98;
  mix-blend-mode: multiply;
}

.article-header--surface::after {
  inset: 12% -10% 14% 48%;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(8,8,8,0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(8,8,8,0.07) 0 1px, transparent 1px 18px);
  clip-path: polygon(0 0, 100% 5%, 92% 100%, 8% 88%);
  opacity: 0.38;
}

.article-header--surface h1 {
  max-width: 13ch;
  text-wrap: balance;
}

.article-header--surface .post-header__desc {
  max-width: 46ch;
  background: linear-gradient(90deg, rgba(248,244,234,0.78), rgba(248,244,234,0));
}

.article-header__surface-caption {
  margin-top: var(--space-sm);
  max-width: 52ch;
  font-family: var(--font-brush);
  font-size: 1rem;
  color: #2f2b24;
  transform: rotate(-1deg);
}

html.dark .article-header--surface::before {
  background-image:
    linear-gradient(90deg, rgba(5,5,5,0.98) 0%, rgba(5,5,5,0.74) 22%, rgba(5,5,5,0.34) 48%, rgba(5,5,5,0) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.28), rgba(5,5,5,0.12)),
    var(--article-surface-image);
  mix-blend-mode: screen;
  opacity: 0.72;
}

html.dark .article-header--surface .post-header__desc {
  background: linear-gradient(90deg, rgba(5,5,5,0.74), rgba(5,5,5,0));
}

.article-featured {
  margin-bottom: var(--space-2xl);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--elevation-2);
  border: 1px solid var(--border-struct);
  position: relative;
  isolation: isolate;
  background: var(--bg-primary);
}

.article-featured__image, .article-featured__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.article-featured__image {
  object-fit: cover;
  background: var(--bg-primary);
}

.article-featured__image--contain {
  object-fit: contain;
  background: #090909;
}

.article-featured__video {
  object-fit: cover;
}

.article-featured figcaption {
  padding: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-struct);
  text-align: right;
}

.article-featured--surface {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin-top: calc(var(--space-md) * -0.35);
  isolation: isolate;
}

.article-featured--surface::before {
  content: "";
  position: absolute;
  inset: 8% -1.5% 9% 3%;
  background:
    linear-gradient(90deg, rgba(101, 163, 0, 0.15), transparent 36%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 18px);
  clip-path: polygon(2% 5%, 100% 0, 96% 94%, 8% 100%, 0 48%);
  z-index: -1;
  opacity: 0.48;
}

.article-featured--surface .article-featured__image {
  clip-path: polygon(2% 5%, 100% 0, 97% 92%, 7% 100%, 0 38%);
  border: 1px solid rgba(8, 8, 8, 0.18);
  box-shadow: 0 18px 46px rgba(0,0,0,0.14);
  filter: saturate(0.95) contrast(1.03);
}

.article-featured--surface figcaption {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
}

html.dark .article-featured--surface .article-featured__image {
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 18px 52px rgba(0,0,0,0.48);
}

/* ── Article Layout & TOC (Scrollspy) ────────── */
/* Removed duplicate article-layout and toc-sidebar flex code */

.toc-sidebar__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.toc-sidebar nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-sidebar nav ul ul {
  padding-left: 12px;
  margin-top: 6px;
}

.toc-sidebar nav a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--motion-fast), text-shadow var(--motion-fast);
  display: block;
  line-height: 1.4;
}

.toc-sidebar nav a:hover {
  color: var(--text-strong);
}

.toc-sidebar nav a.active {
  color: var(--text-strong);
  font-weight: 500;
  position: relative;
  padding-left: 12px;
}
.toc-sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: background 0.3s ease;
}
html.dark .toc-sidebar nav a.active::before {
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow-subtle);
}

html.dark .toc-sidebar nav a.active {
  color: var(--accent-glow);
  text-shadow: 0 0 8px rgba(204, 255, 0, 0.4);
}

/* Precision Typography within Content */
.post-body {
  font-size: var(--text-md);
  color: var(--text-primary);
  font-weight: 400;
}

.post-body p { margin-bottom: 2rem; }

.post-body h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0;
  margin: 3.5rem 0 1.5rem;
  color: var(--text-strong);
}

.post-body h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0;
  margin: 2.5rem 0 1rem;
}

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  border-left: 3px solid var(--text-strong);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-secondary);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-secondary);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-struct);
  color: var(--text-strong);
}

.post-body pre {
  background: #fcfcfc;
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  padding: calc(var(--space-md) + 24px) var(--space-md) var(--space-md);
  margin: 2.5rem 0;
  overflow-x: auto;
  box-shadow: var(--elevation-1);
  position: relative;
}
html.dark .post-body pre {
  background: #0d0d0d;
}

/* macOS Window Dots */
.code-copy-wrapper::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
  z-index: 2;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* Copy Button */
.code-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--motion-fast), background var(--motion-fast), color var(--motion-fast), border var(--motion-fast);
}

.code-copy-wrapper:hover .code-copy-btn,
.code-copy-btn:hover,
.code-copy-btn:focus {
  opacity: 1;
}

.code-copy-btn:hover {
  background: var(--bg-primary);
  color: var(--text-strong);
  border-color: var(--text-tertiary);
}

.code-copy-btn.copied {
  color: #27c93f;
  border-color: #27c93f;
}

.post-body img, .post-body video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-struct);
  margin: 3rem 0;
  box-shadow: var(--elevation-1);
  display: block;
}

.markdown-figure {
  margin: 3rem 0;
}

.markdown-figure img {
  margin: 0;
}

.markdown-figure figcaption {
  margin-top: 0.625rem;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: center;
}

/* ── Custom Shortcode Bento Grids ───────────────── */
.inline-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
  margin: 3rem 0;
}
.inline-bento > * {
  margin: 0 !important; /* Reset child margins to keep grid tight */
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: var(--text-sm);
}

.post-body th {
  border-bottom: 2px solid var(--text-strong);
  padding: 16px 8px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-body td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--border-struct);
}

/* ── Page Documents ───────────────────────────────── */
.about {
  max-width: 1040px;
  margin: var(--space-xl) 0 var(--space-2xl);
}

.about__label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.about__title {
  font-size: clamp(2.25rem, 1.9239rem + 1.6304vw, 3rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--text-strong);
  margin: 0 0 var(--space-lg);
  max-width: 14ch;
}

.about__body {
  font-size: var(--text-md);
  color: var(--text-primary);
  line-height: 1.65;
}

.about__body > p,
.about__body > ul,
.about__body > ol,
.about__body > blockquote {
  max-width: 76ch;
}

.about__body p {
  margin-bottom: 1.25rem;
}

.about__body h2 {
  margin: 2.75rem 0 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-struct);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-strong);
}

.about__body h3 {
  margin: 2rem 0 0.75rem;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-strong);
}

.about__body ul,
.about__body ol {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.about__body li {
  margin-bottom: 0.5rem;
}

.about__body strong {
  color: var(--text-strong);
}

.about__body a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: rgba(101, 163, 0, 0.45);
  text-underline-offset: 3px;
}

html.dark .about__body a {
  text-decoration-color: rgba(204, 255, 0, 0.55);
}

.about__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
  scrollbar-width: thin;
}

.about__body thead,
.about__body tbody,
.about__body tr {
  width: 100%;
}

.about__body th {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--text-strong);
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.about__body td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid var(--border-struct);
  vertical-align: top;
  color: var(--text-primary);
  min-width: 12rem;
}

.about__body td:first-child {
  min-width: 13rem;
  font-weight: 650;
  color: var(--text-strong);
}

.about__body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 4px;
  padding: 0.15em 0.35em;
}

@media (max-width: 620px) {
  .about {
    max-width: min(100%, 340px);
  }
  .about__title {
    max-width: 100%;
  }
  .about__body {
    font-size: 1rem;
  }
}

/* ── Sticky Lab TOC ──────────────────────────────── */
/* Removed Sticky Lab TOC duplicate */

/* ── Footer ──────────────────────────────────────── */
.post-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-struct);
}

.post-footer__back {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-footer__back-arrow {
  transition: transform var(--motion-med) var(--ease-fluid);
}

.post-footer__back:hover { color: var(--text-strong); }
.post-footer__back:hover .post-footer__back-arrow { transform: translateX(-4px); }

.comments {
  margin-top: var(--space-xl);
}
.comments__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer {
  border-top: none;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  margin-top: auto;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow-subtle), var(--accent-glow), var(--accent-glow-subtle), transparent);
}

.footer__inner {
  max-width: var(--layout-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.footer__link:hover { color: var(--text-strong); }

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Command Palette (Cmd+K) ─────────────────────── */
.cmd-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.cmd-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
#cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  transition: opacity var(--motion-fast) var(--ease-out), visibility var(--motion-fast);
}
#cmd-palette {
  width: 100%;
  max-width: 600px;
  background: var(--bg-primary);
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  box-shadow: var(--elevation-3);
  overflow: hidden;
  transform: scale(0.98);
  transition: transform var(--motion-med) var(--ease-out);
}
.cmd-visible #cmd-palette { transform: scale(1); }
.cmd-palette-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-struct);
  gap: 12px;
}
.cmd-icon { color: var(--text-secondary); }
#cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--text-strong);
}
#cmd-input::placeholder { color: var(--text-tertiary); }
.cmd-esc {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-secondary);
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-struct);
  color: var(--text-secondary);
}
.cmd-close {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-struct);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
}
.cmd-close:hover,
.cmd-close:focus-visible {
  background: var(--bg-primary);
  color: var(--text-strong);
  border-color: var(--border-focus);
}
.cmd-palette-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
}
.cmd-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  margin-top: 8px;
}
.cmd-list { list-style: none; }
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--motion-fast), color var(--motion-fast);
}
.cmd-item-text { font-size: var(--text-sm); }
.cmd-item:hover, .cmd-item.active {
  background: var(--bg-secondary);
  color: var(--text-strong);
}
.cmd-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* ── Interactive Terminal UX Shortcode ───────────── */
.terminal-window {
  background: #111316;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  margin: 3rem 0;
  border: 1px solid rgba(0,0,0,0.18);
}
.terminal-header {
  background: #1a1d21;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }
.terminal-title {
  margin: 0 auto;
  transform: translateX(-24px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c7c7c7;
  letter-spacing: 0.05em;
}
.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #f4f4f5;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre-wrap;
}
.terminal-body.typing::after {
  content: "█";
  color: #b7e000;
  animation: blink 1s step-start infinite;
}
/* ── ENTERPRISE CODE ENGINE ──────────────────────── */
.code-engine-wrapper {
  position: relative;
  margin: var(--space-xl) 0;
  border-radius: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-struct);
  overflow: hidden;
  box-shadow: var(--elevation-1);
}
html.dark .code-engine-wrapper {
  background-color: #0d1117;
  border-color: rgba(255,255,255,0.1);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f7f7f8;
  border-bottom: 1px solid var(--border-struct);
}
html.dark .code-header {
  background: rgba(255,255,255,0.03);
}

.code-window-dots {
  display: flex;
  gap: 6px;
}
.code-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.8;
}

.code-lang-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
html.dark .code-lang-label {
  color: #888;
}

.code-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.code-copy-btn svg {
  width: 16px;
  height: 16px;
}
.code-copy-btn:hover {
  background: var(--border-struct);
  color: var(--text-strong);
}
html.dark .code-copy-btn:hover {
  color: var(--accent-glow);
}
.code-copy-btn.copied {
  color: #27c93f;
}

.code-engine-wrapper .highlight {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}
.code-engine-wrapper pre {
  margin: 0;
  padding: var(--space-md);
  overflow-x: auto;
  background: #ffffff !important;
  color: #171717 !important;
}
.code-engine-wrapper code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #171717;
}

html.dark .code-engine-wrapper pre {
  background: #0d1117 !important;
  color: #e5e7eb !important;
}

html.dark .code-engine-wrapper code {
  color: #e5e7eb;
}


/* ── CONTEXTUAL TELEMETRY SIDEBAR (TOC) ─ Stripe-style ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: var(--layout-width);
  margin: 0 auto;
  padding-top: clamp(56px, 5vw, 72px);
}

/* ── Article Grid Layout & TOC (Unified) ── */
.article-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

.article-main {
  min-width: 0;
  width: 100%;
}

.toc-sidebar {
  display: none;
}

@media (min-width: 1080px) {
  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 72ch) 260px;
    gap: var(--space-xl);
    align-items: start;
    justify-content: center;
  }
  .article-main {
    padding: var(--space-xl) 0;
  }
  .toc-sidebar {
    display: block;
    position: sticky;
    top: calc(72px + var(--space-xl));
    align-self: start;
    padding: var(--space-md);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    border: 1px solid var(--border-struct);
    border-radius: 8px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--elevation-1);
  }
  .toc-sidebar::-webkit-scrollbar { display: none; }
}

.toc-sidebar__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-struct);
}

.toc-sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border-struct);
  margin-left: 4px;
}

.toc-sidebar nav ul ul {
  padding-left: 12px;
  margin-top: 4px;
  border-left: none;
}

.toc-sidebar nav a {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 6px 0 6px 16px;
  margin-left: -1px; /* overlap border */
  border-left: 1px solid transparent;
  transition: all var(--motion-fast);
  margin-bottom: 2px;
  word-break: keep-all;
}

.toc-sidebar nav a:hover {
  color: var(--text-strong);
}

.toc-sidebar nav a.active {
  color: var(--text-strong);
  font-weight: 500;
  border-left-color: var(--text-strong);
}

html.dark .toc-sidebar nav a.active {
  color: #fff;
  border-left-color: #fff;
}

/* ── MERMAID DIAGRAMS ──  */
.mermaid-diagram {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  overflow-x: auto;
  text-align: center;
}
html.dark .mermaid-diagram {
  background: #0a0a0b;
  border-color: rgba(255,255,255,0.1);
}
.mermaid-diagram svg {
  max-width: 100%;
  height: auto;
}

/* ── Operator-Log Hero ────────────────────────────── */
/* Refs: panr/hugo-theme-terminal (Fira Code mono-dominant, 2.3k⭐)
   Vercel Geist (precise mono), Rauno Freiberg (density, cursor craft) */
.hero--operator {
  display: block;
  min-height: clamp(540px, 42vw, 650px);
  padding: clamp(34px, 4vw, 70px) 0 clamp(40px, 5vw, 82px);
  margin-bottom: var(--space-xl);
  max-width: none;
}
.hero--operator .hero__content {
  min-width: 0;
  max-width: 690px;
}
.hero--operator .hero__prompt {
  font-family: var(--font-brush);
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75ch;
  transform: rotate(-1deg);
}
.hero--operator .hero__prompt-sigil {
  color: #65a300;
  font-weight: 700;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65a300;
  text-indent: -9999px;
  overflow: hidden;
}
html.dark .hero--operator .hero__prompt-sigil {
  color: #ccff00;
}
.hero--operator .hero__statement {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  color: var(--text-strong);
  text-wrap: balance;
}
.hero--operator .hero__statement .hero__accent {
  color: inherit;
  font-weight: inherit;
}
.hero__cursor {
  display: inline-block;
  width: 0.55ch;
  height: 0.85em;
  background: #65a300;
  vertical-align: -0.05em;
  margin-left: 0.12em;
  animation: op-blink 1.1s steps(2, end) infinite;
}
html.dark .hero__cursor {
  background: #ccff00;
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.5);
}
@keyframes op-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero--operator .hero__subtitle {
  color: var(--text-secondary);
  margin-top: var(--space-md);
  max-width: 52ch;
}
.hero__surface {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 36vw, 540px);
  margin: 0;
  isolation: isolate;
  pointer-events: none;
}

.hero--operator .hero__surface {
  position: absolute;
  z-index: 0;
  top: clamp(34px, 4vw, 68px);
  right: clamp(-92px, -5vw, -24px);
  width: min(820px, 60vw);
  min-height: clamp(420px, 36vw, 580px);
}

.hero__surface::before {
  content: "";
  position: absolute;
  inset: 7% -4% 6% 8%;
  z-index: -2;
  background:
    radial-gradient(circle at 30% 25%, rgba(101, 163, 0, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(0,0,0,0.08), rgba(0,0,0,0) 42%),
    repeating-linear-gradient(0deg, rgba(8,8,8,0.08) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(8,8,8,0.07) 0 1px, transparent 1px 20px);
  clip-path: polygon(7% 3%, 99% 0, 94% 95%, 12% 100%, 0 43%);
  opacity: 0.64;
}

.hero__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(248,244,234,0.96) 0%, rgba(248,244,234,0.48) 13%, rgba(248,244,234,0) 34%),
    linear-gradient(180deg, rgba(248,244,234,0.34) 0%, rgba(248,244,234,0) 26%, rgba(248,244,234,0.16) 100%);
  pointer-events: none;
}

.hero__surface img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: polygon(4% 8%, 100% 0, 96% 91%, 8% 100%, 0 40%);
  filter: grayscale(0.08) saturate(0.93) contrast(1.04);
  opacity: 1;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.hero__surface-tape {
  position: absolute;
  z-index: 2;
  display: block;
  height: 24px;
  transform: rotate(-3deg);
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.hero__surface-tape--lime {
  width: 156px;
  right: 11%;
  top: 18%;
  background: #65a300;
}

.hero__surface-tape--pink {
  width: 118px;
  left: 5%;
  bottom: 20%;
  background: var(--accent-pink);
  transform: rotate(5deg);
}

html.dark .hero__surface::before {
  opacity: 0.26;
}

html.dark .hero__surface::after {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.36) 14%, rgba(5,5,5,0) 34%),
    linear-gradient(180deg, rgba(5,5,5,0.52) 0%, rgba(5,5,5,0) 35%, rgba(5,5,5,0.22) 100%);
}

html.dark .hero__surface img {
  opacity: 0.7;
  mix-blend-mode: screen;
  filter: grayscale(0.24) saturate(0.74) contrast(1.12);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}
.hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--motion-fast), color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}
.hero__action:hover {
  border-color: rgba(101, 163, 0, 0.5);
  color: var(--text-strong);
  transform: translateY(-1px);
}
.hero__action--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
html.dark .hero__action {
  background: rgba(10, 10, 11, 0.72);
}
html.dark .hero__action--primary {
  background: #ccff00;
  color: #111;
  border-color: #ccff00;
}
.hero--operator .hero__meta {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--border-struct);
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.hero--operator .hero__meta-sep {
  margin: 0 0.9ch;
  opacity: 0.4;
}
.hero--operator .hero__meta-live {
  color: #65a300;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}
html.dark .hero--operator .hero__meta-live {
  color: #ccff00;
}
.hero--operator .hero__meta-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: op-pulse 2s ease-in-out infinite;
}
@keyframes op-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(204, 255, 0, 0); }
}

/* Push hero type bigger — Rauno/Linear scale */
.hero--operator .hero__statement {
  font-size: 3.875rem;
}
@media (max-width: 1180px) {
  .hero--operator {
    min-height: auto;
    padding-bottom: var(--space-xl);
  }
  .hero--operator .hero__statement { font-size: 3rem; }
  .hero--operator .hero__surface {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 720px;
    min-height: 340px;
    margin: var(--space-lg) 0 -18px;
  }
}
@media (max-width: 620px) {
  .shell {
    overflow-x: hidden;
  }
  .hero,
  .hero__content,
  .operator-map,
  .operator-map__subtitle,
  .ecosystem-section,
  .bento-module,
  .research-header,
  .post-list,
  .profile {
    max-width: min(100%, 340px);
    min-width: 0;
  }
  .hero--operator .hero__statement {
    font-size: 1.55rem;
    line-height: 1.12;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .hero--operator .hero__subtitle {
    font-size: 1rem;
    max-width: 100%;
    line-height: 1.65;
    word-break: keep-all;
  }
  .hero--operator .hero__surface {
    min-height: 220px;
    margin: 18px 0 -8px;
  }
  .hero__surface::after {
    background:
      linear-gradient(180deg, rgba(248,248,244,0.74) 0%, rgba(248,248,244,0) 30%, rgba(248,248,244,0.18) 100%);
  }
  .hero__surface-tape {
    height: 18px;
  }
  .hero__action {
    min-height: 40px;
    padding: 0 14px;
  }
  .hero--operator .hero__meta {
    display: block;
    line-height: 1.7;
  }
  .hero--operator .hero__meta-item {
    display: block;
    max-width: 100%;
    word-break: keep-all;
  }
  .hero--operator .hero__meta-sep {
    display: none;
  }
  .operator-map__subtitle {
    word-break: keep-all;
  }
}

/* ── Post Feed (Command Center v2) ────────────────── */
/* Refs: Linear changelog, Paul Graham essay index,
   sindresorhus.com dense listing, HN front */
.post-list--feed {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  grid-template-columns: none !important;
  border-top: 1px solid var(--border-struct);
  margin-top: var(--space-sm);
}
.post-list--feed .post-item {
  display: grid !important;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  padding: 1.15rem 0.5rem 1.15rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
  grid-column: auto !important;
  grid-row: auto !important;
  transition: background-color 0.18s var(--ease-out), padding-left 0.18s var(--ease-out);
  position: relative;
}
.post-list--feed .post-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #65a300;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.2s var(--ease-out);
}
html.dark .post-list--feed .post-item::before {
  background: #ccff00;
}
.post-list--feed .post-item:hover {
  padding-left: 0.75rem;
  background: rgba(0, 0, 0, 0.02);
}
html.dark .post-list--feed .post-item:hover {
  background: rgba(204, 255, 0, 0.03);
}
.post-list--feed .post-item:hover::before {
  transform: scaleY(1);
}
.post-list--feed .post-item__image-link {
  display: none;
}
.post-list--feed .post-item__content {
  display: contents;
}
.post-list--feed .post-item__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}
.post-list--feed .post-item__meta .post-date {
  color: var(--text-secondary);
  font-weight: 500;
}
.post-list--feed .post-item__meta .post-reading-time {
  opacity: 0.7;
  font-size: 0.6875rem;
}
.post-list--feed .post-title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: 0;
  margin: 0;
}
.post-list--feed .post-title a {
  color: inherit;
  text-decoration: none;
}
.post-list--feed .post-item:hover .post-title a {
  color: var(--text-strong);
}
.post-list--feed .post-excerpt {
  display: none;
}
.post-list--feed .post-tags {
  justify-self: end;
  align-self: baseline;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
}
.post-list--feed .post-tags .post-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--border-struct);
  border-radius: 2px;
  color: var(--text-tertiary);
  background: transparent;
  line-height: 1;
}
.post-list--feed .post-item:hover .post-tags .post-tag:first-child {
  border-color: #65a300;
  color: #65a300;
}
html.dark .post-list--feed .post-item:hover .post-tags .post-tag:first-child {
  border-color: #ccff00;
  color: #ccff00;
}
@media (max-width: 680px) {
  .post-list--feed .post-item {
    grid-template-columns: 88px minmax(0, 1fr);
    row-gap: 8px;
  }
  .post-list--feed .post-tags {
    grid-column: 2;
    justify-self: start;
  }
}

/* ── Profile Block ────────────────────────────────── */
/* Refs: Ben Kuhn benkuhn.net (concrete bullet bio),
   Maggie Appleton maggieappleton.com/about (timeline),
   Gwern gwern.net/about (factual dense) */
.profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: var(--space-xl) 0 var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-struct);
  border-bottom: 1px solid var(--border-struct);
  align-items: start;
}
@media (max-width: 680px) {
  .profile {
    grid-template-columns: 96px 1fr;
    gap: 1rem;
  }
}
.profile__photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
}
.profile__photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(204, 255, 0, 0.08));
  pointer-events: none;
}
.profile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: contrast(1.05);
}
.profile__body {
  min-width: 0;
}
.profile__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.profile__name {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text-strong);
  margin: 0;
}
.profile__handle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #65a300;
  letter-spacing: 0.02em;
}
html.dark .profile__handle {
  color: #ccff00;
}
.profile__bio {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 0 var(--space-md);
}
.profile__bio a {
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 1px solid #65a300;
  font-weight: 600;
  transition: background 0.15s;
}
html.dark .profile__bio a {
  border-bottom-color: #ccff00;
}
.profile__bio a:hover {
  background: rgba(204, 255, 0, 0.12);
}
.profile__bio strong {
  color: var(--text-strong);
  font-weight: 700;
}
/* Thesis + Evidence block */
.profile__thesis {
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile__thesis .thesis__quote {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0;
  line-height: 1.4;
}
.profile__thesis .thesis__tag {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.profile__thesis .thesis__tag strong {
  color: #65a300;
  font-weight: 700;
}
html.dark .profile__thesis .thesis__tag strong {
  color: #ccff00;
}
.profile__evidence {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 12px 16px;
  border: 1px solid var(--border-struct);
  border-radius: 4px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile__evidence li {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.profile__evidence strong {
  color: var(--text-strong);
  font-weight: 700;
}
.profile__evidence a {
  color: var(--text-strong);
  border-bottom: 1px solid #65a300;
  text-decoration: none;
}
html.dark .profile__evidence a {
  border-bottom-color: #ccff00;
}
.profile__evidence .ev-key {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--bg-primary);
  border: 1px solid var(--border-struct);
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}

/* Lifeline — swim-lane ribbons */
/* Refs: Basecamp hill chart, Linear roadmap, Wikipedia timeline diagrams */
/* ============================================================
   Event Log (Vertical Timeline)
   ============================================================ */
.event-log { width: 100%; position: relative; }
.event-log__head { margin-bottom: 24px; }
.event-log__title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.event-log__list { list-style: none; padding: 0; margin: 0; position: relative; }
.event-log__list::before { content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 1px; background: var(--border-struct); z-index: 0; }
.event-log__item { position: relative; padding-left: 32px; padding-bottom: 32px; }
.event-log__item:last-child { padding-bottom: 0; }
.event-log__item:last-child::before { content: ''; position: absolute; top: 24px; bottom: 0; left: 0; width: 16px; background: var(--bg-primary); z-index: 1; }
.event-log__node { position: absolute; left: 2px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--text-tertiary); z-index: 2; box-shadow: 0 0 0 4px var(--bg-primary); transition: all 0.3s ease; }
.event-log__node--live { background: var(--accent-glow); box-shadow: 0 0 0 4px var(--bg-primary), 0 0 8px var(--accent-glow-subtle); }
.event-log__node--ship { background: #fb923c; box-shadow: 0 0 0 4px var(--bg-primary), 0 0 6px rgba(251, 146, 60, 0.2); }
.event-log__node--stop { background: var(--text-tertiary); opacity: 0.5; box-shadow: 0 0 0 4px var(--bg-primary); }
.event-log__node--exit { background: linear-gradient(135deg, #c084fc, var(--accent-glow)); box-shadow: 0 0 0 4px var(--bg-primary); }
.event-log__node--base { background: var(--bg-primary); border: 2px solid var(--border-focus); box-shadow: 0 0 0 4px var(--bg-primary); }
.event-log__content { position: relative; top: -2px; }
.event-log__header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.event-log__time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
.event-log__badge { font-family: var(--font-mono); font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.05em; font-weight: 600; }
.event-log__badge--live { color: var(--bg-primary); background: var(--accent-glow); }
.event-log__badge--ship { color: #fff; background: #fb923c; }
.event-log__badge--stop { color: var(--text-tertiary); background: var(--border-light); }
.event-log__badge--exit { color: #fff; background: #c084fc; }
.event-log__badge--base { color: var(--text-tertiary); border: 1px solid var(--border-struct); }
.event-log__name { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin: 0 0 4px 0; }
.event-log__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }
/* ── Position Crystal — Tech stack + Target ───────── */
.ev-stack {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  padding: 2px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-struct);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

/* 3-layer capability block — honest AI work positioning */
.profile__capabilities {
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cap-layer {
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid var(--border-struct);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}
.cap-layer__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cap-layer__label {
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cap-layer__note {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.cap-layer__items {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.cap-layer--foundation {
  background: var(--bg-primary);
  border-color: var(--text-primary);
  border-width: 1.5px;
}
.cap-layer--foundation .cap-layer__label { color: var(--text-strong); }
.cap-layer--acceleration {
  background: rgba(101, 163, 0, 0.06);
  border-color: rgba(101, 163, 0, 0.4);
}
.cap-layer--acceleration .cap-layer__label { color: #4d7a00; }
html.dark .cap-layer--acceleration {
  background: rgba(204, 255, 0, 0.05);
  border-color: rgba(204, 255, 0, 0.35);
}
html.dark .cap-layer--acceleration .cap-layer__label { color: #ccff00; }
.cap-layer--stack {
  background: var(--bg-secondary);
  border-style: dashed;
  opacity: 0.85;
}
.cap-layer--stack .cap-layer__label { color: var(--text-secondary); }
@media (max-width: 680px) {
  .cap-layer { grid-template-columns: 1fr; gap: 6px; }
}
.profile__target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(101, 163, 0, 0.08), rgba(101, 163, 0, 0));
  border: 1px solid rgba(101, 163, 0, 0.3);
  border-radius: 4px;
  font-size: 0.8125rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
html.dark .profile__target {
  background: linear-gradient(90deg, rgba(204, 255, 0, 0.08), rgba(204, 255, 0, 0));
  border-color: rgba(204, 255, 0, 0.28);
}
.profile__target .target-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #65a300;
  flex-shrink: 0;
  animation: op-pulse 2.2s ease-in-out infinite;
}
html.dark .profile__target .target-pulse { background: #ccff00; }
.profile__target .target-label {
  font-weight: 700;
  color: #65a300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}
html.dark .profile__target .target-label { color: #ccff00; }
.profile__target .target-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* Single-card B section */
.operator-map {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.operator-map__subtitle {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: var(--text-md);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
}
.operator-map__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.operator-map__grid--triad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.operator-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  background: var(--bg-primary);
  color: inherit;
  text-decoration: none;
  transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.operator-card:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 163, 0, 0.42);
  box-shadow: 0 10px 30px rgba(101, 163, 0, 0.08);
}
html.dark .operator-card:hover {
  border-color: rgba(204, 255, 0, 0.38);
  box-shadow: 0 10px 34px rgba(204, 255, 0, 0.08);
}
.operator-card__kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.operator-card h3 {
  margin: 12px 0 8px;
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text-strong);
}
.operator-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.operator-card__status {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #4d7a00;
}
html.dark .operator-card__status { color: #ccff00; }
.operator-map__claim-strip {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--border-focus);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  text-decoration: none;
}
.operator-map__claim-strip:hover {
  color: var(--text-strong);
  border-color: rgba(101, 163, 0, 0.5);
}
html.dark .operator-map__claim-strip:hover {
  border-color: rgba(204, 255, 0, 0.45);
}
.operator-map__next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.operator-map__next-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
.operator-map__next-actions a:hover {
  border-color: rgba(101, 163, 0, 0.5);
  color: var(--text-strong);
  transform: translateY(-1px);
}
html.dark .operator-map__next-actions a:hover {
  border-color: rgba(204, 255, 0, 0.45);
}
@media (max-width: 1000px) {
  .operator-map__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .operator-map__grid {
    grid-template-columns: 1fr;
  }
  .operator-card {
    min-height: 0;
  }
}

.ecosystem-grid--single {
  display: block;
}
.eco-card--featured {
  display: block;
  padding: var(--space-lg);
  border: 1px solid var(--border-struct);
  border-radius: 8px;
  background: var(--bg-primary);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.eco-card--featured:hover {
  border-color: #65a300;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(101, 163, 0, 0.08);
}
html.dark .eco-card--featured:hover { border-color: #ccff00; box-shadow: 0 4px 28px rgba(204, 255, 0, 0.08); }
.eco-card--featured .eco-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.375rem;
  font-weight: 900;
  color: #65a300;
  background: rgba(101, 163, 0, 0.1);
  border-radius: 6px;
  margin-bottom: var(--space-sm);
}
html.dark .eco-card--featured .eco-card__icon { color: #ccff00; background: rgba(204, 255, 0, 0.1); }
.eco-card--featured h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 4px 0 6px;
}
.eco-card--featured p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 var(--space-sm);
}
.eco-card--featured .eco-card__metrics {
  margin: 0 0 12px;
}
.ecosystem-footnote {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.ecosystem-footnote a {
  color: var(--text-secondary);
  border-bottom: 1px dotted var(--border-focus);
  text-decoration: none;
}

/* ── Frame Sections (A–H portfolio structure) ─────── */
/* Refs: gwern.net, patrickcollison.com, antfu.me, levels.io, nownownow.com */
.frame-marker {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  position: absolute;
  top: -20px;
  left: 0;
  padding: 3px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-struct);
  border-radius: 2px;
}
.profile {
  position: relative;
}

.frame-section {
  margin: var(--space-xl) 0 var(--space-xl);
  position: relative;
}
.frame-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-md);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-struct);
  flex-wrap: wrap;
}
.frame-section__label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.frame-section__progress {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.frame-section__progress a {
  color: var(--text-tertiary);
  border-bottom: 1px dotted var(--border-focus);
  text-decoration: none;
}
.frame-section__progress a:hover {
  color: #65a300;
  border-bottom-color: #65a300;
}
html.dark .frame-section__progress a:hover {
  color: #ccff00;
  border-bottom-color: #ccff00;
}
.fs-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
}
.fs-status--planned {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.fs-status--building {
  background: rgba(101, 163, 0, 0.12);
  color: #4d7a00;
}
.fs-status--cfp {
  background: rgba(234, 88, 12, 0.1);
  color: #c2410c;
}
html.dark .fs-status--planned { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }
html.dark .fs-status--building { background: rgba(204, 255, 0, 0.12); color: #ccff00; }
html.dark .fs-status--cfp { background: rgba(251, 146, 60, 0.14); color: #fdba74; }

.fs-planned {
  padding: 14px 18px;
  border: 1px dashed var(--border-focus);
  border-radius: 4px;
  background: var(--bg-secondary);
  margin-bottom: 10px;
}
.fs-planned__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.fs-planned__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
}
.fs-planned__meta {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.fs-frame-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-left: 2px solid var(--border-struct);
  background: var(--bg-secondary);
}
.fs-frame-note a {
  color: var(--text-secondary);
  border-bottom: 1px dotted var(--border-focus);
  text-decoration: none;
}

/* H · Now */
.frame-section--now .now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.frame-section--now .now-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.frame-section--now .now-list em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.now-key {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #65a300;
  padding-top: 3px;
}
html.dark .now-key { color: #ccff00; }

/* G · Open Questions */
.fs-questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: q;
}
.fs-questions li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.fq-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.fq-text a {
  color: #65a300;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  margin-left: 6px;
  border-bottom: 1px dotted #65a300;
}
html.dark .fq-text a { color: #ccff00; border-bottom-color: #ccff00; }

/* Eco-card metric line */
.eco-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 8px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.eco-card__metrics span {
  padding: 2px 7px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.eco-card__status--donate span { background: #2563eb; }
.eco-card__status--donate { color: #2563eb; }
html.dark .eco-card__status--donate { color: #60a5fa; }
html.dark .eco-card__status--donate span { background: #60a5fa; }
.eco-card__status--ship span { background: #c2410c; }
.eco-card__status--ship { color: #c2410c; }
html.dark .eco-card__status--ship { color: #fb923c; }
html.dark .eco-card__status--ship span { background: #fb923c; }

@media (max-width: 680px) {
  .frame-section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .frame-section--now .now-list li { grid-template-columns: 44px 1fr; }
}

/* Legacy timeline — kept for non-home pages, unused on homepage */
.profile__timeline {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px dashed var(--border-struct);
  padding-left: 18px;
  position: relative;
}
.profile__timeline li {
  display: grid;
  grid-template-columns: 48px 36px 1fr;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  align-items: baseline;
  position: relative;
}
.profile__timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-focus);
  border: 1px solid var(--bg-primary);
}
.profile__timeline li:last-child::before {
  background: #65a300;
  box-shadow: 0 0 0 3px rgba(101, 163, 0, 0.12);
}
html.dark .profile__timeline li:last-child::before {
  background: #ccff00;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.18);
}
.profile__timeline .t-year {
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.profile__timeline .t-age {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.profile__timeline .t-age::before { content: "·"; margin-right: 4px; }
.profile__timeline .t-event {
  color: var(--text-secondary);
}
.profile__now {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-struct);
  border-radius: 4px;
  font-size: 0.8125rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.profile__now .now-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65a300;
  flex-shrink: 0;
  animation: op-pulse 2s ease-in-out infinite;
}
html.dark .profile__now .now-pulse { background: #ccff00; }
.profile__now .now-label {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}
.profile__now .now-text {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}
.profile__links {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.profile__links a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.profile__links a:hover {
  border-bottom-color: #65a300;
}
html.dark .profile__links a:hover {
  border-bottom-color: #ccff00;
}

/* ── Category System ──────────────────────────────── */
.tax-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border-radius: 8px;
  min-width: 20px;
  text-align: center;
  line-height: 1.4;
}
.tax-btn--active .tax-count {
  color: var(--accent-glow);
  background: rgba(255,255,255,0.9);
}
.post-category {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  margin-right: 8px;
  line-height: 1.5;
  text-transform: uppercase;
}
.post-category--연구노트 {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}
.post-category--철학 {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
}
.post-category--인생사 {
  background: rgba(101, 163, 0, 0.14);
  color: #4d7a00;
}
.post-category--프로젝트 {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}
html.dark .post-category--연구노트 {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}
html.dark .post-category--철학 {
  background: rgba(192, 132, 252, 0.16);
  color: #d8b4fe;
}
html.dark .post-category--인생사 {
  background: rgba(204, 255, 0, 0.15);
  color: #ccff00;
}
html.dark .post-category--프로젝트 {
  background: rgba(251, 146, 60, 0.16);
  color: #fdba74;
}

/* Section label upgrade — terminal divider */
.research-header .section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.research-header .section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-struct);
}

/* ============================================================
   V3 High-End Assets Inject (Visual Cards)
   ============================================================ */

.hero--operator {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* Eco Card with Visual */
.eco-card.has-visual {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.eco-card.has-visual .eco-card__content {
  padding: 32px;
  display: flex;
  gap: 20px;
}

.eco-card__visual {
  width: 100%;
  height: 100%;
  border-left: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.eco-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.8s var(--ease-out), opacity 0.4s ease;
  filter: grayscale(80%) contrast(1.2);
}

.eco-card.has-visual:hover .eco-card__visual img {
  transform: scale(1.05);
  opacity: 1;
  filter: grayscale(20%) contrast(1.1);
}

@media (max-width: 768px) {
  .eco-card.has-visual {
    grid-template-columns: 1fr;
    grid-template-rows: auto 200px;
  }
  .eco-card__visual {
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
}


/* ============================================================
   Bento Module (Now & Questions)
   ============================================================ */
.bento-module {
  margin-top: 4rem;
}
.bento-module__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .bento-module__grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--elevation-2);
}
.bento-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow-subtle);
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(101, 163, 0, 0.06), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bento-card:hover::before {
  opacity: 1;
}

.bento-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.bento-card__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
}
.bento-card__label::before {
  content: "●";
  color: var(--accent-glow);
  margin-right: 6px;
  font-size: 0.5rem;
  vertical-align: middle;
}
.bento-card__meta {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.bento-card__meta a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-struct);
  text-underline-offset: 3px;
}
.bento-card__meta a:hover {
  color: var(--text-primary);
}
.bento-card__body {
  position: relative;
  z-index: 1;
}

/* Now Bento */
.now-bento {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.now-bento li {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
}
.now-bento__key {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent-glow);
  flex: 0 0 48px;
  text-transform: uppercase;
}
.now-bento__val {
  color: var(--text-secondary);
  line-height: 1.5;
}
.now-bento__val em {
  font-style: normal;
  color: var(--accent-glow);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* Questions Bento */
.q-bento {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.q-bento li {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  align-items: baseline;
}
.q-bento__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-glow);
  font-weight: 700;
  flex: 0 0 24px;
}
.q-bento__text {
  color: var(--text-secondary);
  line-height: 1.6;
}
.q-bento__link {
  font-family: var(--font-mono);
  color: var(--accent-glow);
  text-decoration: none;
  font-size: 0.75rem;
  margin-left: 6px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.q-bento__link:hover {
  opacity: 1;
}

/* ============================================================
   SVY Editorial Home v4
   ============================================================ */

.home-template {
  --home-blue: #0647ff;
  --home-yellow: #ffe100;
  --home-red: #ff2600;
  --home-paper: #f7f3ea;
  --home-ink: #050505;
  --home-line: rgba(0, 0, 0, 0.2);
  background: var(--home-paper);
}

.home-template .shell {
  max-width: 1540px;
  padding: 5rem 1rem 0;
}

.home-template .nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--home-line);
  box-shadow: none;
}

.nav__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 900;
}

.nav__mark {
  color: #050505;
  font-size: 1.6rem;
  line-height: 1;
}

.nav__sub {
  color: #050505;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-template .nav__search-trigger {
  order: 2;
  min-width: 2.5rem;
  padding-inline: 0;
  background: transparent;
  border-color: transparent;
  color: #050505;
}

.home-template .nav__search-trigger span,
.home-template .nav__search-trigger {
  font-size: 0;
}

.home-template .nav__search-trigger span {
  display: none;
}

.home-template .nav__search-trigger svg {
  width: 15px;
  height: 15px;
}

.home-template .nav__link {
  color: #050505;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-template .nav__link::after {
  height: 2px;
  background: var(--home-blue);
}

.editorial-home {
  color: var(--home-ink);
  border-inline: 1px solid var(--home-line);
  background:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    var(--home-paper);
  background-size: 100% 4.5rem, 4.5rem 100%, auto;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.08);
}

.home-kicker,
.section-tag {
  color: var(--home-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero-v4 {
  min-height: 780px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(34rem, 1.14fr);
  align-items: center;
  gap: 3rem;
  padding: 2.2rem 4.5rem 3.5rem;
  border-bottom: 1px solid var(--home-line);
}

.home-hero-v4__copy h1 {
  max-width: 13ch;
  margin-top: 3rem;
  color: var(--home-ink);
  font-size: 5.1rem;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero-v4__copy h1 span {
  position: relative;
  display: inline-block;
}

.home-hero-v4__copy h1 span::after {
  content: "";
  position: absolute;
  left: -0.28em;
  right: -0.2em;
  bottom: 0.06em;
  z-index: -1;
  height: 0.55em;
  border: 0.22rem solid var(--home-blue);
  border-radius: 50%;
  transform: rotate(-3deg);
}

.home-hero-v4__line {
  margin-top: 2.25rem;
  color: var(--home-blue);
  font-size: 1.35rem;
  font-weight: 900;
}

.home-hero-v4__body {
  max-width: 26rem;
  margin-top: 2rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.8;
}

.home-actions-v4 {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 3rem;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.2rem;
  border: 1px solid var(--home-ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.home-button::after {
  content: "->";
  margin-left: 0.8rem;
}

.home-button--dark {
  background: var(--home-ink);
  color: #fff;
}

.home-button--plain {
  border-color: transparent;
}

.home-hero-v4__visual {
  position: relative;
  min-height: 42rem;
}

.home-hero-v4__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(1.02);
}

.hero-stamp-stack {
  position: absolute;
  top: 23%;
  right: 1.5rem;
  display: grid;
  gap: 0.26rem;
}

.hero-stamp-stack span {
  display: block;
  width: max-content;
  padding: 0.35rem 0.55rem;
  background: #050505;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
}

.hero-svy-mark {
  position: absolute;
  left: 18%;
  bottom: 9%;
  color: #050505;
  font-size: 5.6rem;
  font-weight: 950;
  line-height: 1;
  opacity: 0.92;
}

.hero-blue-note {
  position: absolute;
  top: 13%;
  left: 22%;
  color: #111;
  font-family: var(--font-brush);
  font-size: 1.12rem;
  line-height: 1.2;
  transform: rotate(-9deg);
}

.manifesto-v4,
.about-band-v4 {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.78fr;
  gap: 4rem;
  padding: 4rem 4.5rem;
  border-bottom: 1px solid var(--home-line);
}

.manifesto-v4__quote p {
  margin-top: 1.4rem;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.24;
}

.manifesto-v4 mark {
  display: inline-block;
  background: linear-gradient(transparent 52%, var(--home-yellow) 52%);
  color: #050505;
}

.manifesto-v4__text {
  align-self: center;
  max-width: 32rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.pill-row,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-row {
  margin-top: 2rem;
}

.pill-row span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0 0.48rem;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 900;
}

.manifesto-v4__side {
  position: relative;
  align-self: stretch;
  min-height: 12rem;
  background: rgba(255, 255, 255, 0.38);
}

.manifesto-v4__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.manifesto-v4__side span {
  position: absolute;
  top: 2.2rem;
  right: 1.8rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}

.home-section-v4 {
  padding: 3.4rem 4.5rem 0;
  border-bottom: 1px solid var(--home-line);
}

.home-section-v4__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.home-section-v4__head a {
  font-size: 0.88rem;
  font-weight: 900;
}

.home-section-v4__head a::after {
  content: " ->";
}

.work-grid-v4,
.note-grid-v4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-card-v4,
.note-card-v4 {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 28rem;
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
  background: rgba(255, 255, 255, 0.24);
  transition:
    transform 0.22s var(--ease-fluid),
    box-shadow 0.22s var(--ease-fluid),
    background 0.22s var(--ease-fluid);
}

.work-card-v4::after,
.note-card-v4::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 4;
  width: 2.7rem;
  height: 0.46rem;
  background: var(--home-green);
  opacity: 0;
  transform: rotate(-5deg) translateY(-0.35rem);
  transition: opacity 0.2s var(--ease-fluid), transform 0.2s var(--ease-fluid);
}

.work-card-v4:hover,
.note-card-v4:hover {
  z-index: 3;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.13);
  transform: translate3d(0, -0.28rem, 0);
}

.work-card-v4:hover::after,
.note-card-v4:hover::after {
  opacity: 0.9;
  transform: rotate(-5deg) translateY(0);
}

.work-card-v4:last-child,
.note-card-v4:last-child {
  border-right: 1px solid var(--home-line);
}

.work-card-v4--yellow {
  background: var(--home-yellow);
}

.work-card-v4__content {
  position: relative;
  z-index: 2;
  padding: 1.65rem 1.65rem 0.7rem;
}

.work-card-v4 h2 {
  font-size: 2.3rem;
  font-weight: 950;
  line-height: 1;
}

.work-card-v4 p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.work-card-v4 img {
  width: 100%;
  flex: 1;
  min-height: 16rem;
  object-fit: cover;
  mix-blend-mode: normal;
  filter: contrast(1.08) saturate(1.08);
}

.work-card-v4__more {
  position: absolute;
  bottom: 1.2rem;
  left: 1.65rem;
  z-index: 3;
  font-size: 0.84rem;
  font-weight: 900;
}

.work-card-v4__more::after {
  content: " ->";
}

.note-card-v4 {
  min-height: 25rem;
  padding: 0;
}

.note-card-v4 img {
  display: block;
  width: 100%;
  height: clamp(10.5rem, 13vw, 13rem);
  border-bottom: 1px solid var(--home-line);
  object-fit: cover;
  mix-blend-mode: normal;
  filter: contrast(1.08) saturate(1.08);
}

.note-card-v4 .mini-tags {
  padding: 0.8rem 1rem 0;
}

.note-card-v4 h3 {
  padding: 0.65rem 1rem 0;
  color: #050505;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.18;
}

.note-card-v4 p {
  padding: 0.85rem 1rem 0;
  color: #292929;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.65;
}

.note-card-v4 time {
  margin-top: auto;
  padding: 1rem;
  color: rgba(0, 0, 0, 0.52);
  font-size: 0.82rem;
  font-weight: 750;
}

.about-band-v4 {
  grid-template-columns: 0.95fr 1.1fr 1.25fr;
}

.about-band-v4 p,
.about-band-v4 li,
.tools-grid-v4 span {
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.7;
}

.about-band-v4 ul {
  margin-top: 1.2rem;
  list-style: none;
}

.about-band-v4 > div {
  padding-right: 2.5rem;
  border-right: 1px solid var(--home-line);
}

.about-band-v4 > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.arrow-list-v4 li::before {
  content: "->";
  display: inline-block;
  width: 2rem;
  font-weight: 900;
}

.tools-grid-v4 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin-top: 1.4rem;
}

.home-cta-v4 {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.55fr;
  align-items: center;
  gap: 3rem;
  min-height: 15rem;
  padding: 3.5rem 4.5rem;
  overflow: hidden;
  background: #050505;
  color: #fff;
}

.home-cta-v4 h2 {
  font-size: 2.5rem;
  font-weight: 950;
  line-height: 1.1;
}

.home-cta-v4 h2::after {
  content: "";
  display: block;
  width: 12rem;
  height: 3rem;
  margin-top: -1.8rem;
  border: 0.18rem solid var(--home-blue);
  border-radius: 50%;
  transform: rotate(-4deg);
}

.home-cta-v4 p {
  max-width: 24rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.home-cta-v4 a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.4rem;
  padding: 0 1.1rem;
  background: #fff;
  color: #050505;
  font-weight: 900;
}

.home-cta-v4 a::after {
  content: "->";
}

.home-cta-v4 img {
  width: 100%;
  max-height: 13rem;
  object-fit: cover;
  mix-blend-mode: screen;
}

.home-template .footer {
  background: #050505;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-template .footer__inner {
  max-width: 1540px;
}

.section-list-page {
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.section-list-page__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-struct);
}

.section-list-page__head h1 {
  max-width: 12ch;
  margin-top: 0.7rem;
  color: var(--text-strong);
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.section-list-page__head p {
  max-width: 46rem;
  margin-top: 1.2rem;
  color: var(--text-secondary);
  font-size: var(--text-md);
  font-weight: 650;
  line-height: 1.7;
}

.section-list-page__meta {
  display: grid;
  gap: 0.45rem;
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  text-align: right;
}

@media (max-width: 1180px) {
  .home-hero-v4 {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .section-list-page__head {
    grid-template-columns: 1fr;
  }

  .section-list-page__meta {
    text-align: left;
  }

  .home-hero-v4__visual {
    min-height: 34rem;
  }

  .work-grid-v4,
  .note-grid-v4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manifesto-v4,
  .about-band-v4,
  .home-cta-v4 {
    grid-template-columns: 1fr;
  }

  .about-band-v4 > div {
    padding-right: 0;
    padding-bottom: 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }
}

@media (max-width: 720px) {
  .home-template .shell {
    padding-inline: 0.75rem;
  }

  .editorial-home {
    border-inline: 1px solid var(--home-line);
  }

  .home-hero-v4,
  .manifesto-v4,
  .home-section-v4,
  .about-band-v4,
  .home-cta-v4 {
    padding-inline: 1.25rem;
  }

  .home-hero-v4__copy h1 {
    margin-top: 2.5rem;
    font-size: 3.4rem;
  }

  .home-hero-v4__visual {
    min-height: 25rem;
  }

  .work-grid-v4,
  .note-grid-v4 {
    grid-template-columns: 1fr;
  }

  .nav__sub,
  .home-template .nav__search-trigger {
    display: none;
  }

  .tools-grid-v4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   SVY Proof Lab Home refinement
   ============================================================ */

.home-template {
  --home-blue: #004bff;
  --home-yellow: #ffe100;
  --home-red: #ff2418;
  --home-green: #67c900;
  --home-paper: #ffffff;
  --home-ink: #050505;
  --home-line: rgba(0, 0, 0, 0.13);
}

.proof-home {
  --cursor-x: 72%;
  --cursor-y: 24%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(0, 75, 255, 0.13), transparent 18rem),
    radial-gradient(circle at calc(var(--cursor-x) + 11%) calc(var(--cursor-y) + 18%), rgba(103, 201, 0, 0.12), transparent 13rem),
    linear-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    var(--home-paper);
  background-size: auto, auto, 4.6rem 4.6rem, 4.6rem 4.6rem, auto;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.proof-home::before {
  content: "";
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 0;
  width: 5.5rem;
  height: 1.05rem;
  pointer-events: none;
  background: var(--home-yellow);
  mix-blend-mode: multiply;
  opacity: 0.38;
  transform: translate(-50%, -50%) rotate(-4deg);
  transition: left 0.18s ease-out, top 0.18s ease-out;
}

.proof-home > * {
  position: relative;
  z-index: 1;
}

.proof-home .home-kicker,
.proof-home .section-tag {
  color: var(--home-green);
}

.proof-home .home-hero-v4__line {
  color: var(--home-blue);
}

.home-template .nav__link::after {
  background: var(--home-green);
}

.home-hero-v4--proof {
  min-height: 720px;
  grid-template-columns: minmax(0, 0.92fr) minmax(34rem, 1.08fr);
  background:
    linear-gradient(90deg, rgba(103, 201, 0, 0.08), transparent 31%),
    linear-gradient(118deg, transparent 0 64%, rgba(0, 75, 255, 0.07) 64% 78%, transparent 78%),
    #fff;
}

.home-hero-v4--proof .home-hero-v4__copy h1 {
  max-width: 12ch;
}

.home-hero-v4--proof .home-hero-v4__copy h1 span::after {
  border-color: var(--home-blue);
  border-width: 0.26rem;
}

.home-hero-v4--proof .home-hero-v4__copy h1 span::before {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.22em;
  bottom: 0.02em;
  z-index: -1;
  height: 0.2em;
  background: var(--home-yellow);
  transform: rotate(1deg);
}

.home-hero-v4--proof .home-hero-v4__body {
  max-width: 32rem;
}

.home-hero-v4--proof .home-hero-v4__visual {
  min-height: 38rem;
}

.home-hero-v4__visual--interactive {
  display: grid;
  place-items: center;
  perspective: 900px;
}

.proof-field {
  position: relative;
  width: min(100%, 43rem);
  aspect-ratio: 1.08;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(0, 75, 255, 0.18), transparent 13rem),
    linear-gradient(112deg, transparent 0 15%, rgba(0, 75, 255, 0.16) 15% 19%, transparent 19% 100%),
    linear-gradient(-11deg, transparent 0 62%, rgba(255, 225, 0, 0.4) 62% 64%, transparent 64% 100%),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    #fff;
  background-size: auto, auto, auto, 3.7rem 3.7rem, 3.7rem 3.7rem, auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.proof-field::before,
.proof-field::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.proof-field::before {
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(103, 201, 0, 0.24) 46% 47%, transparent 47%),
    linear-gradient(0deg, transparent 0 54%, rgba(0, 75, 255, 0.2) 54% 55%, transparent 55%);
  transform: translate(
    calc((var(--cursor-x) - 50%) * 0.06),
    calc((var(--cursor-y) - 50%) * 0.06)
  );
}

.proof-field::after {
  width: 34%;
  height: 0.34rem;
  left: calc(var(--cursor-x) - 17%);
  top: calc(var(--cursor-y) - 0.17rem);
  background: var(--home-green);
  mix-blend-mode: multiply;
  opacity: 0.86;
  transform: rotate(-2deg);
}

.proof-cursor-dot {
  position: absolute;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 5;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--home-ink);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 0.55rem rgba(103, 201, 0, 0.14),
    0 0 0 1rem rgba(0, 75, 255, 0.08);
}

.proof-orbit {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 50%;
  pointer-events: none;
  animation: proofFloat 7s ease-in-out infinite;
}

.proof-orbit--one {
  top: 12%;
  right: 13%;
  width: 7.4rem;
  height: 7.4rem;
}

.proof-orbit--two {
  left: 10%;
  bottom: 15%;
  width: 10rem;
  height: 10rem;
  border-color: rgba(21, 92, 255, 0.46);
  animation-delay: -2s;
}

.proof-field__card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.28rem;
  min-width: 11.4rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  transform: translate3d(0, 0, 0);
  animation: proofFloat 8s ease-in-out infinite;
}

.proof-field__card span {
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
}

.proof-field__card strong {
  color: var(--home-ink);
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.proof-field__card small {
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.proof-field__card--source {
  top: 10%;
  left: 8%;
}

.proof-field__card--claim {
  top: 28%;
  right: 8%;
  animation-delay: -2s;
}

.proof-field__card--proof {
  left: 16%;
  bottom: 18%;
  animation-delay: -4s;
}

.proof-field__card--operator {
  right: 10%;
  bottom: 10%;
  border-color: rgba(103, 201, 0, 0.7);
  animation-delay: -6s;
}

.proof-field__axis {
  position: absolute;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
}

.proof-field__axis--x {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
}

.proof-field__axis--y {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
}

.proof-field__route {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.proof-field__route span {
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--home-green);
  animation: proofPulse 2.8s ease-in-out infinite;
}

.proof-field__route span:nth-child(2) {
  background: var(--home-blue);
}

.proof-field__route span:nth-child(4) {
  background: var(--home-red);
}

.proof-field__route span:nth-child(1) { top: 20%; left: 38%; }
.proof-field__route span:nth-child(2) { top: 42%; left: 57%; animation-delay: 0.4s; }
.proof-field__route span:nth-child(3) { top: 60%; left: 43%; animation-delay: 0.8s; }
.proof-field__route span:nth-child(4) { top: 72%; left: 68%; animation-delay: 1.2s; }

.proof-field__note {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 4.5%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(0, 0, 0, 0.68);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-blue-note--proof {
  top: auto;
  left: 10%;
  bottom: 12%;
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

@keyframes proofPulse {
  0%, 100% {
    transform: scale(0.72);
    opacity: 0.42;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes proofFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0.45rem, -0.65rem, 0) rotate(3deg);
  }
}

.manifesto-v4--proof mark {
  background: linear-gradient(transparent 58%, rgba(47, 111, 30, 0.28) 58%);
}

.manifesto-v4__side--ledger {
  padding: 1.2rem;
  border: 1px solid var(--home-line);
  background:
    linear-gradient(transparent 50%, rgba(47, 111, 30, 0.12) 50%) 1rem 2.35rem / 6.5rem 1.2rem no-repeat,
    rgba(255, 255, 255, 0.36);
}

.manifesto-v4__side--ledger > span {
  position: static;
  display: inline-flex;
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.manifesto-v4__side--ledger dl {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.manifesto-v4__side--ledger div {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.manifesto-v4__side--ledger dt {
  color: var(--home-ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.manifesto-v4__side--ledger dd {
  margin-top: 0.28rem;
  color: rgba(0, 0, 0, 0.62);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.work-grid-v4--thesis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-grid-v4--thesis .work-card-v4 {
  min-height: 30rem;
}

.work-grid-v4--thesis .work-card-v4 h2 {
  font-size: 2rem;
  line-height: 1.08;
}

.work-grid-v4--thesis .work-card-v4 p {
  max-width: 27rem;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.93rem;
  line-height: 1.55;
}

.work-card-v4--proof-primary {
  background:
    linear-gradient(90deg, rgba(47, 111, 30, 0.13), transparent 42%),
    rgba(255, 255, 255, 0.3);
}

.proof-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.proof-ledger-card {
  display: flex;
  flex-direction: column;
  min-height: 18.5rem;
  padding: 1.35rem;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: rgba(255, 255, 255, 0.28);
}

.proof-ledger-card span {
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
}

.proof-ledger-card h3 {
  margin-top: 1.1rem;
  color: var(--home-ink);
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1.12;
}

.proof-ledger-card p {
  margin-top: 1rem;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.65;
}

.proof-ledger-card em {
  display: block;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
}

.note-grid-v4--proof .note-card-v4 {
  background: rgba(255, 255, 255, 0.32);
}

.note-grid-v4--proof .note-card-v4 img {
  filter: contrast(1.08) saturate(1.08);
}

.claim-boundary-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  padding: 4rem 4.5rem;
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(90deg, rgba(47, 111, 30, 0.11), transparent 22rem),
    rgba(255, 255, 255, 0.2);
}

.claim-boundary-band h2 {
  margin-top: 1.2rem;
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1.16;
}

.claim-boundary-band ul {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}

.claim-boundary-band li {
  position: relative;
  padding-left: 1.65rem;
  color: rgba(0, 0, 0, 0.76);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.7;
}

.claim-boundary-band li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--home-green);
}

.about-band-v4--proof a {
  color: inherit;
}

.tools-grid-v4--links {
  grid-template-columns: 1fr;
}

.tools-grid-v4--links a {
  display: block;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  color: var(--home-ink);
  font-size: 0.95rem;
  font-weight: 850;
}

.home-cta-v4--proof {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem);
  background:
    linear-gradient(90deg, rgba(47, 111, 30, 0.3), transparent 42%),
    #050505;
}

.proof-home .home-button,
.proof-home .home-section-v4__head a,
.proof-home .home-cta-v4 a {
  white-space: nowrap;
}

.home-cta-v4--proof h2::after {
  border-color: var(--home-green);
}

@media (max-width: 1180px) {
  .home-hero-v4--proof {
    grid-template-columns: 1fr;
  }

  .work-grid-v4--thesis,
  .proof-ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .claim-boundary-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-hero-v4--proof .home-hero-v4__copy h1 {
    font-size: 3rem;
  }

  .home-hero-v4--proof .home-hero-v4__visual {
    min-height: 22rem;
    border-left: 0;
  }

  .hero-stamp-stack--proof {
    top: 0.8rem;
    right: 0.8rem;
  }

  .hero-stamp-stack--proof span {
    font-size: 0.62rem;
  }

  .work-grid-v4--thesis,
  .proof-ledger-grid {
    grid-template-columns: 1fr;
  }

  .claim-boundary-band {
    padding-inline: 1.25rem;
  }

  .claim-boundary-band h2 {
    font-size: 1.9rem;
  }

  .home-cta-v4--proof {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SVY Home hero v5
   ============================================================ */

.home-hero-v5 {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.72fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas:
    "copy signal";
  gap: clamp(2rem, 5vw, 5.6rem) clamp(2.2rem, 5.2vw, 6.4rem);
  min-height: clamp(560px, calc(100svh - 8.5rem), 700px);
  padding: clamp(2.1rem, 4.4vw, 4.7rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(0, 75, 255, 0.08), transparent 18rem),
    linear-gradient(118deg, rgba(103, 201, 0, 0.07) 0 14%, transparent 14% 100%),
    #fff;
}

.home-hero-v5::before,
.home-hero-v5::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.home-hero-v5::before {
  opacity: 0.42;
  background:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.032) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, #000 0 58%, transparent 94%);
}

.home-hero-v5::after {
  inset: auto auto clamp(1.1rem, 2.5vw, 2.2rem) clamp(2.1rem, 4.4vw, 4.7rem);
  width: min(18rem, 36vw);
  height: 0.18rem;
  background: rgba(0, 75, 255, 0.9);
  box-shadow: 5.5rem 0.62rem 0 rgba(103, 201, 0, 0.82);
  transform: rotate(-0.8deg);
  mix-blend-mode: multiply;
}

.home-hero-v5__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 62%, rgba(0, 0, 0, 0.035) 62% 62.12%, transparent 62.12%),
    radial-gradient(circle at 82% 28%, rgba(103, 201, 0, 0.1), transparent 11rem),
    radial-gradient(circle at 28% 72%, rgba(0, 75, 255, 0.06), transparent 14rem);
}

.home-hero-v5__copy {
  grid-area: copy;
  align-self: center;
  max-width: 46rem;
  padding-block: clamp(1.8rem, 5vh, 5.2rem);
}

.home-hero-v5__copy h1 {
  max-width: 12.4ch;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(3.1rem, 6.35vw, 6.8rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero-v5__copy h1 span {
  position: relative;
  display: inline-block;
  color: var(--home-ink);
  background: linear-gradient(transparent 66%, rgba(103, 201, 0, 0.3) 66% 87%, transparent 87%);
}

.home-hero-v5__copy h1 span::before {
  display: none;
}

.home-hero-v5__copy h1 span::after {
  display: none;
}

.home-hero-v5__line {
  margin: 1.25rem 0 0;
  color: var(--home-blue);
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  font-weight: 900;
}

.home-hero-v5__body {
  max-width: 31rem;
  margin: 1.05rem 0 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 650;
  line-height: 1.7;
}

.home-actions-v5 {
  margin-top: 1.8rem;
}

.hero-signal-v5 {
  grid-area: signal;
  align-self: center;
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.18s ease-out;
}

.hero-signal-v5::before {
  content: "";
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.3rem);
  top: -0.5rem;
  width: 5.1rem;
  height: 1.05rem;
  background: rgba(103, 201, 0, 0.78);
  mix-blend-mode: multiply;
  transform: rotate(-3deg);
}

.hero-signal-v5__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.hero-signal-v5__head span,
.hero-signal-v5 li span,
.hero-signal-v5__claim span {
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-signal-v5__head strong {
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-signal-v5 ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-signal-v5 li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem 0.9rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.hero-signal-v5 li:last-child {
  border-bottom: 0;
}

.hero-signal-v5 li strong {
  color: var(--home-ink);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  font-weight: 950;
  line-height: 0.95;
}

.hero-signal-v5 li em {
  grid-column: 2;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.hero-signal-v5__claim {
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  background: var(--home-ink);
  color: #fff;
}

.hero-signal-v5__claim p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero-flow-v5 {
  grid-area: flow;
  position: relative;
  z-index: 3;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 54rem);
  margin-left: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
}

.hero-flow-v5 a {
  position: relative;
  display: grid;
  gap: 0.34rem;
  min-height: 5.7rem;
  padding: 0.9rem 1rem 0.95rem;
  color: var(--home-ink);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.hero-flow-v5 a:last-child {
  border-right: 0;
}

.hero-flow-v5 a::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  bottom: 0.54rem;
  height: 0.15rem;
  background: var(--home-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.hero-flow-v5 a:hover,
.hero-flow-v5 a:focus-visible {
  background: var(--home-ink);
  color: #fff;
  transform: translateY(-0.16rem);
  outline: 0;
}

.hero-flow-v5 a:hover::before,
.hero-flow-v5 a:focus-visible::before {
  transform: scaleX(1);
}

.hero-flow-v5 span {
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 950;
}

.hero-flow-v5 strong {
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  font-weight: 950;
  line-height: 1;
}

.hero-flow-v5 small {
  max-width: 23ch;
  color: inherit;
  opacity: 0.68;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

.hero-proof-note-v5 {
  position: absolute;
  right: clamp(1.2rem, 4vw, 4rem);
  top: clamp(1.3rem, 4vw, 4.4rem);
  z-index: 3;
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 0.72rem;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.7);
  color: var(--home-ink);
  font-family: var(--font-mono);
  text-transform: uppercase;
  transform: rotate(1.4deg);
}

.hero-proof-note-v5 span {
  color: var(--home-green);
  font-size: 0.68rem;
  font-weight: 950;
}

.hero-proof-note-v5 strong {
  font-size: 0.7rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .home-hero-v5 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "signal";
    min-height: auto;
    padding: 2rem 1.25rem 1.25rem;
    background:
      radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(0, 75, 255, 0.07), transparent 14rem),
      linear-gradient(118deg, rgba(103, 201, 0, 0.07) 0 18%, transparent 18% 100%),
      #fff;
  }

  .home-hero-v5__copy {
    max-width: 100%;
    padding-top: 4.6rem;
    padding-bottom: 0;
  }

  .home-hero-v5__copy h1 {
    font-size: clamp(3rem, 13vw, 5.2rem);
  }

  .home-hero-v5::after {
    bottom: 1.15rem;
    left: 1.25rem;
    width: min(16rem, 72vw);
  }

  .hero-signal-v5 {
    max-width: 42rem;
    transform: none;
  }

  .hero-flow-v5 {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .hero-flow-v5 a {
    min-height: 6.2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  }

  .hero-flow-v5 a:last-child {
    border-bottom: 0;
  }

  .hero-proof-note-v5 {
    right: 1rem;
    top: 1rem;
  }
}

@media (max-width: 560px) {
  .home-hero-v5 {
    padding-top: 1.25rem;
  }

  .home-hero-v5__copy {
    padding-top: 2.15rem;
    padding-bottom: 0;
  }

  .home-hero-v5__copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.55rem);
    line-height: 0.94;
  }

  .home-hero-v5__line {
    max-width: 23rem;
    margin-top: 1rem;
    font-size: 0.8rem;
  }

  .home-hero-v5__body {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .home-actions-v5 {
    margin-top: 1.25rem;
  }

  .home-actions-v5 {
    align-items: stretch;
    width: 100%;
  }

  .home-actions-v5 .home-button {
    justify-content: center;
  }

  .hero-proof-note-v5 {
    display: none;
  }

  .hero-signal-v5 {
    gap: 0.5rem;
    padding: 0.72rem;
  }

  .hero-signal-v5__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.52rem;
  }

  .hero-signal-v5__head strong {
    display: none;
  }

  .hero-signal-v5 li {
    grid-template-columns: 1fr;
    gap: 0.28rem;
    padding: 0.52rem 0;
  }

  .hero-signal-v5 ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.9rem;
  }

  .hero-signal-v5 li strong {
    font-size: 1rem;
  }

  .hero-signal-v5 li em {
    display: none;
  }

  .hero-signal-v5__claim,
  .hero-flow-v5 {
    display: none;
  }
}

#selected-work,
#research-notes {
  scroll-margin-top: 6rem;
}

/* ============================================================
   Mimesis Engineering board pass
   Reference grammar: white desk, thin rules, proof labels,
   dense hierarchy, controlled hand mark.
   ============================================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f3ef;
  --bg-glass: rgba(255, 255, 255, 0.96);
  --text-primary: #111111;
  --text-secondary: #343434;
  --text-tertiary: #676767;
  --border-light: rgba(0, 0, 0, 0.1);
  --border-struct: rgba(0, 0, 0, 0.22);
  --border-focus: rgba(0, 0, 0, 0.52);
  --paper-shadow: rgba(0, 0, 0, 0);
}

html {
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
}

body::before {
  opacity: 0.16;
  background:
    linear-gradient(90deg, transparent 0 19%, rgba(0, 0, 0, 0.18) 19% calc(19% + 1px), transparent calc(19% + 1px) 100%),
    linear-gradient(180deg, transparent 0 74%, rgba(0, 0, 0, 0.14) 74% calc(74% + 1px), transparent calc(74% + 1px) 100%);
}

.nav {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.24);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__inner {
  max-width: 1540px;
}

.nav__logo {
  font-weight: 950;
}

.nav__mark {
  color: #0a0a0a;
}

.nav__sub,
.nav__link {
  color: #111111;
}

.nav__search-trigger {
  border-radius: 0;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: none;
}

.nav__search-trigger:hover,
.nav__mobile-search-trigger:hover {
  background: #050505;
  color: #ffffff;
}

.home-template {
  --home-blue: #0647ff;
  --home-yellow: #ffe100;
  --home-red: #ff2418;
  --home-green: #65a300;
  --home-paper: #ffffff;
  --home-ink: #050505;
  --home-line: rgba(0, 0, 0, 0.24);
  background: #ffffff;
}

.home-template .shell {
  max-width: 1540px;
  padding: 4.25rem 0.75rem 0;
}

.home-template .nav {
  background: #ffffff;
  border-bottom-color: var(--home-line);
}

.home-template .nav__link::after {
  height: 3px;
  background: var(--home-green);
}

.editorial-home {
  border: 1px solid var(--home-line);
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    #ffffff;
  background-size: 4.25rem 4.25rem;
  box-shadow: none;
}

.proof-home {
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(6, 71, 255, 0.08), transparent 16rem),
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 4.25rem 4.25rem, 4.25rem 4.25rem, auto;
}

.proof-home::before {
  width: 6.2rem;
  height: 1.05rem;
  background: var(--home-green);
  opacity: 0.2;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.home-kicker,
.section-tag,
.proof-home .home-kicker,
.proof-home .section-tag {
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.home-hero-v5 {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.48fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy signal"
    "flow flow";
  gap: clamp(2rem, 4.5vw, 5rem) clamp(2rem, 4vw, 4.8rem);
  min-height: clamp(590px, calc(100svh - 5rem), 740px);
  padding: clamp(2.1rem, 4vw, 4.4rem);
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(90deg, transparent 0 64%, rgba(0, 0, 0, 0.09) 64% calc(64% + 1px), transparent calc(64% + 1px) 100%),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.026) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 4.2rem 4.2rem, 4.2rem 4.2rem, auto;
}

.home-hero-v5::before {
  opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(0, 0, 0, 0.2) 8% calc(8% + 1px), transparent calc(8% + 1px) 100%),
    linear-gradient(180deg, transparent 0 12%, rgba(0, 0, 0, 0.17) 12% calc(12% + 1px), transparent calc(12% + 1px) 100%);
  background-size: auto;
  mask-image: none;
}

.home-hero-v5::after {
  left: clamp(2.1rem, 4vw, 4.4rem);
  bottom: clamp(1.1rem, 2vw, 1.7rem);
  width: min(16rem, 32vw);
  height: 0.22rem;
  background: var(--home-green);
  box-shadow: 4.6rem 0.72rem 0 var(--home-blue), 8.6rem -0.42rem 0 var(--home-yellow);
  opacity: 0.9;
}

.home-hero-v5__wash {
  background:
    linear-gradient(90deg, transparent 0 64%, rgba(0, 0, 0, 0.04) 64% 64.12%, transparent 64.12%),
    radial-gradient(circle at 86% 18%, rgba(101, 163, 0, 0.08), transparent 9rem);
}

.home-hero-v5__copy {
  align-self: end;
  padding-block: clamp(2.4rem, 6vh, 5.8rem) clamp(1.2rem, 3vh, 2.2rem);
}

.home-hero-v5__copy::before {
  content: "01 / NORTH STAR";
  display: block;
  margin-bottom: 1.1rem;
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 950;
}

.home-hero-v5__copy h1 {
  max-width: 11.2ch;
  font-size: clamp(3.4rem, 6.9vw, 7.1rem);
  font-weight: 950;
  line-height: 0.93;
}

.home-hero-v5__copy h1 span {
  background: linear-gradient(transparent 69%, rgba(101, 163, 0, 0.42) 69% 89%, transparent 89%);
}

.home-hero-v5__line {
  color: #0a0a0a;
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
}

.home-hero-v5__body {
  max-width: 34rem;
  color: rgba(0, 0, 0, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  font-weight: 700;
}

.home-button {
  min-height: 2.9rem;
  border-radius: 0;
  box-shadow: none;
}

.home-button--dark {
  background: #050505;
  color: #ffffff;
}

.home-button--plain {
  border-color: rgba(0, 0, 0, 0.24);
  background: #ffffff;
}

.hero-signal-v5 {
  align-self: center;
  padding: clamp(1rem, 1.8vw, 1.2rem);
  border: 1px solid var(--home-line);
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  transform: perspective(900px) rotateX(calc(var(--tilt-x) * 0.45)) rotateY(calc(var(--tilt-y) * 0.45));
}

.hero-signal-v5::before {
  top: -0.62rem;
  width: 6.2rem;
  height: 1.05rem;
  background: var(--home-green);
  opacity: 0.9;
}

.hero-signal-v5__head {
  border-bottom-color: var(--home-line);
}

.hero-signal-v5 li {
  border-bottom-color: rgba(0, 0, 0, 0.18);
}

.hero-signal-v5 li strong {
  font-size: clamp(1.18rem, 1.72vw, 1.58rem);
}

.hero-signal-v5__claim {
  background: #050505;
}

.hero-proof-note-v5 {
  right: clamp(1.6rem, 3.4vw, 3.4rem);
  top: clamp(1.3rem, 3vw, 3.1rem);
  background: #ffffff;
  border: 2px solid var(--home-green);
  box-shadow: none;
}

.hero-proof-note-v5::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.5rem;
  height: 0.7rem;
  background: var(--home-yellow);
  z-index: -1;
}

.hero-flow-v5 {
  display: grid;
  width: 100%;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #ffffff;
  backdrop-filter: none;
}

.hero-flow-v5 a {
  min-height: 5.35rem;
  border-right-color: var(--home-line);
}

.manifesto-v4,
.about-band-v4,
.home-section-v4,
.claim-boundary-band,
.home-cta-v4 {
  border-bottom-color: var(--home-line);
}

.manifesto-v4,
.about-band-v4 {
  padding: clamp(2.8rem, 4vw, 3.8rem) clamp(2rem, 4vw, 4rem);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.manifesto-v4__side--ledger,
.proof-ledger-card,
.claim-boundary-band {
  background: #ffffff;
}

.pill-row span,
.mini-tags span,
.post-tag {
  border-radius: 0;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.26);
  color: #111111;
}

.mini-tags span:first-child,
.post-tags .post-tag:first-child {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
  color: #ffffff;
}

.home-section-v4 {
  padding: clamp(2.8rem, 4vw, 3.6rem) clamp(2rem, 4vw, 4rem) 0;
}

.home-section-v4__head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--home-line);
}

.work-grid-v4,
.note-grid-v4,
.proof-ledger-grid {
  gap: 0;
}

.work-card-v4,
.note-card-v4 {
  border-top: 0;
  border-left: 0;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #ffffff;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.work-card-v4:first-child,
.note-card-v4:first-child {
  border-left: 1px solid var(--home-line);
}

.work-card-v4::after,
.note-card-v4::after {
  opacity: 0.88;
  transform: rotate(-5deg) translateY(0);
}

.work-card-v4:hover,
.note-card-v4:hover {
  background: #fbfbf8;
  border-color: rgba(0, 0, 0, 0.48);
  box-shadow: none;
  transform: none;
}

.work-card-v4 h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

.work-card-v4 img,
.note-card-v4 img {
  filter: grayscale(0.1) contrast(1.13) saturate(0.94);
}

.work-grid-v4--thesis .work-card-v4 {
  min-height: 27rem;
}

.proof-ledger-grid {
  border-top-color: var(--home-line);
  border-left-color: var(--home-line);
}

.proof-ledger-card {
  min-height: 17rem;
  border-color: var(--home-line);
}

.claim-boundary-band {
  padding: clamp(2.8rem, 4vw, 3.8rem) clamp(2rem, 4vw, 4rem);
  background:
    linear-gradient(90deg, rgba(101, 163, 0, 0.12), transparent 18rem),
    #ffffff;
}

.home-cta-v4--proof {
  background:
    linear-gradient(90deg, rgba(101, 163, 0, 0.28), transparent 38%),
    #050505;
}

.section-list-page {
  padding: clamp(5.2rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6.2rem);
}

.section-list-page__head {
  margin-bottom: 0;
  padding: 1rem 0 1.35rem;
  border-top: 1px solid var(--border-struct);
  border-bottom: 1px solid var(--border-struct);
}

.section-list-page__head h1 {
  font-size: clamp(3.2rem, 7.7vw, 6.4rem);
  line-height: 0.92;
}

.section-list-page__meta {
  color: var(--accent-glow);
}

.post-list {
  gap: 0;
  border-left: 1px solid var(--border-struct);
}

.post-item {
  border: 0;
  border-right: 1px solid var(--border-struct);
  border-bottom: 1px solid var(--border-struct);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  gap: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
  will-change: auto;
}

.post-item::before {
  display: none;
}

.post-item:hover {
  z-index: 3;
  background: #fbfbf8;
  border-color: var(--border-focus);
  box-shadow: none;
  transform: none;
}

.post-item__image-link {
  border-radius: 0;
  border-bottom-color: var(--border-struct);
  background: #ffffff;
}

.post-item__image-link::after {
  border-color: rgba(0, 0, 0, 0.14);
  mix-blend-mode: normal;
}

.post-item__image-link::before {
  background:
    linear-gradient(105deg, transparent 0 66%, rgba(101, 163, 0, 0.18) 66% 71%, transparent 71%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 7px);
  opacity: 0.34;
}

.post-item__image {
  transform: none;
  filter: grayscale(0.08) contrast(1.12) saturate(0.96);
}

.post-item:hover .post-item__image {
  transform: none;
}

.post-item__content {
  padding: clamp(1.05rem, 2vw, 1.35rem);
}

.post-title {
  color: #050505;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 950;
  line-height: 1.14;
}

.post-excerpt {
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.96rem;
  font-weight: 640;
  line-height: 1.55;
}

.article-layout {
  max-width: 1180px;
}

.article-header {
  border-bottom-color: var(--border-struct);
}

.article-header h1 {
  max-width: 12ch;
  font-weight: 950;
  line-height: 0.98;
}

.article-header--surface {
  min-height: clamp(390px, 36vw, 520px);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 3vw, 30px) clamp(36px, 5vw, 58px) 0;
  border-bottom: 1px solid var(--border-struct);
}

.article-header--surface::before {
  inset: 10% -6% 12% 58%;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    var(--article-surface-image);
  background-size: cover;
  background-position: center;
  clip-path: none;
  border: 1px solid var(--border-struct);
  filter: grayscale(0.08) contrast(1.12) saturate(0.96);
  opacity: 1;
  mix-blend-mode: normal;
}

.article-header--surface::after {
  inset: 7% -2% 16% 54%;
  clip-path: none;
  opacity: 0.22;
}

.article-header--surface .post-header__desc {
  max-width: 48ch;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.article-header__surface-caption {
  max-width: 40ch;
  color: var(--accent-glow);
  font-family: var(--font-brush);
  font-size: 1.18rem;
}

.article-featured {
  border-radius: 0;
  box-shadow: none;
}

.article-featured--surface::before {
  clip-path: none;
  opacity: 0.3;
}

.article-featured--surface .article-featured__image {
  clip-path: none;
  border-color: var(--border-struct);
  box-shadow: none;
}

.toc-sidebar {
  border-radius: 0 !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.toc-sidebar nav a.active::before {
  width: 4px;
  border-radius: 0;
  background: var(--accent-glow);
}

.post-body pre,
.code-engine-wrapper,
.mermaid-diagram {
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .post-item--large .post-item__image-link,
  .post-item--hero .post-item__image-link {
    border-radius: 0;
    border-right-color: var(--border-struct);
  }
}

@media (max-width: 980px) {
  .home-hero-v5 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "signal"
      "flow";
    min-height: auto;
  }

  .hero-flow-v5 {
    display: grid;
  }

  .hero-proof-note-v5 {
    right: 1rem;
    top: 0.9rem;
  }
}

@media (max-width: 720px) {
  .home-template .shell {
    padding-inline: 0.5rem;
  }

  .editorial-home {
    border-inline: 1px solid var(--home-line);
  }

  .home-hero-v5,
  .manifesto-v4,
  .home-section-v4,
  .about-band-v4,
  .claim-boundary-band,
  .home-cta-v4 {
    padding-inline: 1rem;
  }

  .work-card-v4:first-child,
  .note-card-v4:first-child {
    border-left: 0;
  }

  .work-card-v4,
  .note-card-v4 {
    border-left: 1px solid var(--home-line);
  }
}

@media (max-width: 560px) {
  .home-hero-v5__copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .hero-flow-v5 {
    display: grid;
  }
}

/* ─────────────────────────────────────────────────────────────
   Korean audit-first home pass
   Keeps the site away from AI-portfolio language and toward
   inspectable records, claim boundaries, and review loops.
   ───────────────────────────────────────────────────────────── */

.home-hero-v5__copy::before {
  content: "01 / 하는 일";
}

.home-kicker,
.section-tag,
.hero-signal-v5__head span,
.hero-proof-note-v5 span,
.hero-flow-v5 span,
.before-after-board article > span,
.audit-loop-grid article > span,
.current-work-card > span,
.reader-grid article > span {
  letter-spacing: 0;
}

.before-after-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
  background: #ffffff;
}

.before-after-board article {
  min-height: 20rem;
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(180deg, transparent 0 84%, rgba(0, 89, 255, 0.1) 84% 86%, transparent 86%),
    #ffffff;
}

.before-after-board article.is-after {
  background:
    linear-gradient(180deg, transparent 0 84%, rgba(101, 163, 0, 0.18) 84% 86%, transparent 86%),
    #ffffff;
}

.before-after-board article > span,
.audit-loop-grid article > span,
.current-work-card > span,
.reader-grid article > span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.14rem 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #ffffff;
  color: rgba(0, 0, 0, 0.66);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.before-after-board h2,
.audit-loop-grid h3,
.current-work-card h3,
.reader-grid h3 {
  margin: 1.1rem 0 0.8rem;
  color: #050505;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  font-weight: 950;
  line-height: 0.98;
}

.before-after-board ul,
.claim-columns ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.before-after-board li,
.claim-columns li {
  position: relative;
  padding-left: 1rem;
  color: rgba(0, 0, 0, 0.74);
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.55;
}

.before-after-board li::before,
.claim-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--home-blue);
}

.before-after-board article.is-after li::before,
.claim-columns article:not(.is-risk) li::before {
  background: var(--home-green);
}

.before-after-board__arrow {
  display: grid;
  place-items: center;
  min-width: clamp(4.4rem, 7vw, 6.5rem);
  padding-inline: 1rem;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(90deg, transparent 0 46%, var(--home-green) 46% 54%, transparent 54%),
    #050505;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 950;
  writing-mode: vertical-rl;
}

.audit-loop-grid,
.current-work-grid,
.reader-grid {
  display: grid;
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
  background: #ffffff;
}

.audit-loop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reader-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.current-work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-loop-grid article,
.reader-grid article,
.current-work-card {
  display: block;
  min-width: 0;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(180deg, transparent 0 78%, rgba(101, 163, 0, 0.12) 78% 80%, transparent 80%),
    #ffffff;
  color: inherit;
  text-decoration: none;
}

.audit-loop-grid article:first-child {
  background:
    linear-gradient(180deg, transparent 0 78%, rgba(0, 89, 255, 0.14) 78% 80%, transparent 80%),
    #ffffff;
}

.audit-loop-grid p,
.reader-grid p {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.58;
}

.current-work-card {
  min-height: 27rem;
}

.current-work-card:hover,
.audit-loop-grid article:hover,
.reader-grid article:hover {
  background-color: #fbfbf8;
}

.current-work-card dl {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
}

.current-work-card dl div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.35fr) minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.68rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.current-work-card dt {
  color: var(--home-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 950;
}

.current-work-card dd {
  margin: 0;
  color: rgba(0, 0, 0, 0.76);
  font-size: 0.92rem;
  font-weight: 660;
  line-height: 1.48;
}

.claim-boundary-band--split {
  grid-template-columns: minmax(16rem, 0.65fr) minmax(0, 1.35fr);
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(101, 163, 0, 0.14), transparent 24rem),
    #ffffff;
}

.claim-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.claim-columns article {
  padding: clamp(1rem, 2vw, 1.35rem);
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #ffffff;
}

.claim-columns h3 {
  margin: 0 0 0.9rem;
  color: #050505;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 950;
}

.claim-columns .is-risk {
  background:
    linear-gradient(180deg, transparent 0 84%, rgba(255, 48, 48, 0.14) 84% 86%, transparent 86%),
    #ffffff;
}

.claim-columns .is-risk li::before {
  background: var(--home-red);
}

.reader-grid article {
  min-height: 18rem;
}

.reader-grid article:nth-child(1) {
  background:
    linear-gradient(180deg, transparent 0 78%, rgba(0, 89, 255, 0.11) 78% 80%, transparent 80%),
    #ffffff;
}

.reader-grid article:nth-child(2) {
  background:
    linear-gradient(180deg, transparent 0 78%, rgba(101, 163, 0, 0.14) 78% 80%, transparent 80%),
    #ffffff;
}

.reader-grid article:nth-child(3) {
  background:
    linear-gradient(180deg, transparent 0 78%, rgba(0, 0, 0, 0.07) 78% 80%, transparent 80%),
    #ffffff;
}

.home-template .footer {
  background: #050505;
  color: #ffffff;
}

.home-template .footer__link,
.home-template .footer__copy {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 980px) {
  .before-after-board,
  .claim-boundary-band--split {
    grid-template-columns: 1fr;
  }

  .before-after-board__arrow {
    min-height: 4rem;
    writing-mode: horizontal-tb;
  }

  .audit-loop-grid,
  .reader-grid,
  .current-work-grid,
  .claim-columns {
    grid-template-columns: 1fr;
  }

  .current-work-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .current-work-card dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   v7 full-screen mimesis direction
   Fixed reference grammar: white editorial field, dense collage,
   bold Korean type, blue=source, lime=verified, red=boundary.
   ───────────────────────────────────────────────────────────── */

.home-template {
  --home-blue: #064cff;
  --home-yellow: #cfff00;
  --home-red: #ff2517;
  --home-green: #65b300;
  --home-paper: #ffffff;
  --home-ink: #030303;
  --home-line: rgba(0, 0, 0, 0.3);
  background: #ffffff;
}

.home-template .shell {
  width: 100%;
  max-width: none;
  padding: 4.15rem 0 0;
}

.home-template .nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.home-template .nav__inner {
  max-width: none;
  padding-inline: clamp(1rem, 2.8vw, 3rem);
}

.editorial-home {
  width: 100%;
  border: 0;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(6, 76, 255, 0.09), transparent 18rem),
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 4.5rem 4.5rem, 4.5rem 4.5rem, auto;
  box-shadow: none;
}

.home-hero-v5 {
  grid-template-columns: minmax(24rem, 0.78fr) minmax(36rem, 1.22fr);
  grid-template-areas:
    "copy visual"
    "flow flow";
  min-height: calc(100svh - 4.15rem);
  padding: clamp(1.4rem, 3vw, 3.2rem) clamp(1rem, 3vw, 3rem) 0;
  gap: clamp(1.4rem, 3vw, 3.6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(90deg, transparent 0 53%, rgba(0, 0, 0, 0.22) 53% calc(53% + 1px), transparent calc(53% + 1px)),
    linear-gradient(rgba(0, 0, 0, 0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.032) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 4.5rem 4.5rem, 4.5rem 4.5rem, auto;
}

.home-hero-v5__copy {
  z-index: 2;
  align-self: center;
  padding-block: clamp(1.2rem, 5vh, 3.5rem);
}

.home-hero-v5__copy::before {
  content: "01 / 지금 하는 일";
  margin-bottom: clamp(0.9rem, 1.8vw, 1.4rem);
  color: var(--home-blue);
}

.home-hero-v5__copy h1 {
  max-width: 10.6ch;
  font-size: clamp(3.5rem, 7vw, 8.7rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  word-break: keep-all;
}

.home-hero-v5__copy h1 span {
  color: var(--home-ink);
  background:
    linear-gradient(90deg, var(--home-blue), var(--home-blue)) 0 63% / 92% 0.12em no-repeat,
    linear-gradient(transparent 74%, rgba(207, 255, 0, 0.88) 74% 92%, transparent 92%);
}

.home-hero-v5__line {
  max-width: 38rem;
  margin-top: clamp(1.35rem, 2vw, 2.2rem);
  color: var(--home-blue);
  font-size: clamp(1.16rem, 1.45vw, 1.55rem);
  font-weight: 950;
  line-height: 1.35;
}

.home-hero-v5__body {
  max-width: 38rem;
  margin-top: 1.15rem;
  color: rgba(0, 0, 0, 0.78);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  font-weight: 760;
  line-height: 1.72;
  word-break: keep-all;
}

.hero-collage-v7 {
  position: relative;
  grid-area: visual;
  align-self: center;
  min-height: clamp(31rem, 66vh, 48rem);
  margin: 0;
  transform: perspective(1200px) rotateX(calc(var(--tilt-x) * 0.18)) rotateY(calc(var(--tilt-y) * 0.18));
  transition: transform 0.18s ease-out;
}

.hero-collage-v7 img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(74vw, 61rem);
  height: auto;
  max-width: none;
  transform: translate(-47%, -50%);
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(1.06);
}

.hero-collage-v7 figcaption {
  position: absolute;
  right: clamp(0.2rem, 1.2vw, 1rem);
  top: 20%;
  display: grid;
  gap: 0.32rem;
  z-index: 3;
}

.hero-collage-v7 figcaption span {
  width: max-content;
  padding: 0.32rem 0.55rem;
  background: #050505;
  color: #ffffff;
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  font-weight: 950;
}

.hero-collage-v7__note {
  position: absolute;
  left: 10%;
  top: 21%;
  z-index: 3;
  color: #050505;
  font-family: var(--font-brush), cursive;
  font-size: clamp(1.2rem, 1.75vw, 1.8rem);
  line-height: 1.05;
  transform: rotate(-7deg);
}

.hero-proof-note-v5 {
  right: auto;
  left: clamp(1rem, 3vw, 3rem);
  top: auto;
  bottom: clamp(6.8rem, 12vh, 9rem);
  z-index: 4;
  border: 1px solid #050505;
  background: #ffffff;
  color: #050505;
}

.hero-proof-note-v5::after {
  background: var(--home-red);
}

.hero-flow-v5 {
  position: relative;
  z-index: 5;
  margin-top: 0;
  border-inline: 1px solid var(--home-line);
}

.hero-flow-v5 a {
  min-height: 5.8rem;
  background: rgba(255, 255, 255, 0.94);
}

.hero-flow-v5 a:hover {
  background: #050505;
  color: #ffffff;
}

.home-actions-v5 {
  margin-top: clamp(1.8rem, 3vw, 3rem);
}

.home-button {
  min-height: 3.15rem;
  padding-inline: 1.25rem;
  font-size: 0.88rem;
}

.manifesto-v4,
.about-band-v4,
.home-section-v4,
.claim-boundary-band,
.home-cta-v4 {
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.home-section-v4__head,
.manifesto-v4,
.claim-boundary-band,
.about-band-v4,
.home-cta-v4 {
  border-color: var(--home-line);
}

.before-after-board,
.audit-loop-grid,
.current-work-grid,
.reader-grid,
.claim-columns,
.note-grid-v4--proof {
  box-shadow: none;
}

.current-work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.current-work-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 0;
  background: #ffffff;
}

.current-work-card > span {
  margin: 1rem 1rem 0;
}

.current-work-card__image {
  order: 4;
  width: 100%;
  aspect-ratio: 16 / 6.9;
  margin-top: 0.9rem;
  border-top: 1px solid var(--home-line);
  border-bottom: 0;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.12) saturate(1.04);
}

.current-work-card h3 {
  order: 2;
  margin: 1rem 1rem 0.65rem;
  font-size: clamp(1.55rem, 2vw, 2.35rem);
  line-height: 0.96;
}

.current-work-card dl {
  order: 3;
  margin: 0 1rem 1.1rem;
}

.current-work-card dl div {
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.55rem;
  padding-block: 0.55rem;
}

.current-work-card dd {
  font-size: 0.86rem;
}

.note-card-v4 img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: contrast(1.13) saturate(1.06);
}

.note-card-v4 h3,
.work-card-v4 h2,
.before-after-board h2,
.audit-loop-grid h3,
.reader-grid h3,
.claim-boundary-band h2,
.home-cta-v4 h2 {
  word-break: keep-all;
}

.home-cta-v4--proof {
  background:
    linear-gradient(90deg, rgba(101, 179, 0, 0.9), rgba(101, 179, 0, 0.9)) 6% 76% / 22rem 0.72rem no-repeat,
    #050505;
}

.home-cta-v4--proof a {
  background: #ffffff;
  color: #050505;
}

@media (max-width: 1280px) {
  .home-hero-v5 {
    grid-template-columns: minmax(20rem, 0.85fr) minmax(28rem, 1.15fr);
  }

  .current-work-card {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .home-hero-v5 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "flow";
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-collage-v7 {
    min-height: clamp(25rem, 62vw, 37rem);
  }

  .hero-collage-v7 img {
    width: min(112vw, 55rem);
    transform: translate(-50%, -50%);
  }

  .hero-proof-note-v5 {
    position: relative;
    left: auto;
    bottom: auto;
    width: max-content;
    margin: 0 0 1rem clamp(1rem, 3vw, 3rem);
  }
}

@media (max-width: 720px) {
  .home-template .shell {
    padding-top: 3.7rem;
  }

  .home-template .nav__inner {
    padding-inline: 0.85rem;
  }

  .home-hero-v5 {
    padding-inline: 0.9rem;
    position: relative;
    min-height: calc(100svh - 3.7rem);
    padding-bottom: 16.5rem;
    overflow: hidden;
  }

  .home-hero-v5__copy {
    position: relative;
    z-index: 4;
  }

  .home-hero-v5__copy h1 {
    font-size: clamp(3rem, 13.4vw, 4.85rem);
  }

  .home-hero-v5__line {
    font-size: 1.05rem;
  }

  .hero-collage-v7 {
    position: absolute;
    right: -17.4rem;
    bottom: 4.8rem;
    z-index: 1;
    width: 31rem;
    min-height: 21rem;
    opacity: 0.86;
    transform: none;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 20%, rgba(0, 0, 0, 0.28) 32%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 0 20%, rgba(0, 0, 0, 0.28) 32%, #000 55%);
  }

  .hero-collage-v7 img {
    position: absolute;
    inset: auto 0 0 auto;
    width: 31rem;
    transform: none;
  }

  .home-hero-v5__line,
  .home-hero-v5__body {
    text-shadow: 0 0 0.55rem #ffffff, 0 0 1rem #ffffff;
  }

  .hero-collage-v7 figcaption {
    right: 0.4rem;
    top: 20%;
  }

  .hero-collage-v7__note {
    left: 24%;
    top: 13%;
    font-size: 1rem;
  }

  .hero-proof-note-v5 {
    display: none;
  }

  .hero-flow-v5 {
    position: relative;
    z-index: 5;
    margin-top: 1.2rem;
  }

  .current-work-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-v4,
  .about-band-v4,
  .home-section-v4,
  .claim-boundary-band,
  .home-cta-v4 {
    padding-inline: 0.9rem;
  }
}

/* ============================================================
   svy04 AI Product Judgment home restoration
   Scope: only body.home-template and the final-* homepage surface.
   ============================================================ */

:root {
  --final-blue: var(--accent-glow);
  --final-red: #ff3366;
  --final-yellow: #ffb800;
  --final-green: #00e676;
  --final-ink: var(--text-primary);
  --final-paper: var(--bg-primary);
  --final-paper-soft: var(--bg-secondary);
  --final-line: var(--border-light);
  --final-line-strong: var(--border-struct);
  --final-muted: var(--text-tertiary);
  --final-hand: var(--font-sans);
  --final-radius: 12px;
  --final-shadow: var(--elevation-2);
}

body.home-template {
  --bg-primary: var(--final-paper);
  --bg-secondary: var(--final-paper-soft);
  --text-primary: var(--final-ink);
  --text-secondary: var(--text-secondary);
  --text-tertiary: var(--final-muted);
  background-color: var(--bg-primary);
  color: var(--final-ink);
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 80% 20%, var(--accent-glow-subtle) 0%, transparent 50%),
    radial-gradient(circle at 1px 1px, var(--border-light) 1px, transparent 0);
  background-size: 100% 100%, 32px 32px;
}

body.home-template *,
body.home-template *::before,
body.home-template *::after {
  box-sizing: border-box;
}

body.home-template .footer {
  display: block;
  border-top: 1px solid var(--final-line);
  margin-top: 5rem;
}
body.home-template .shell {
  max-width: var(--layout-width);
  padding: clamp(72px, 8vw, 120px) var(--space-md) 0;
  margin: 0 auto;
}
body.home-template main {
  width: 100%;
}

.home-template .nav {
  border-bottom: 0;
  background: var(--bg-glass);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.home-template .nav__inner {
  max-width: var(--layout-width);
  min-height: 70px;
  padding: 0;
}

.home-template .nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-strong);
  text-decoration: none;
}

.home-template .nav__mark {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.home-template .nav__mark::after {
  display: none;
}

.home-template .nav__sub {
  margin-top: 0;
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transform: none;
  border: 1px solid var(--accent-glow);
  background: var(--accent-glow-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-glow-subtle);
}

.home-template .nav__links {
  gap: var(--space-md);
  align-items: center;
}

.home-template .nav__link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--motion-fast);
}
.home-template .nav__link:hover {
  color: var(--text-strong);
}

/* Keep navigation underline hover animation for consistency */
.home-template .nav__link::after {
  display: block;
}

.home-template .nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: all var(--motion-fast);
}
.home-template .nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--accent-glow);
}

.home-template .nav__search-trigger {
  display: none;
}

.home-template .nav__search-trigger span { display: none; }

.home-template .nav__locale {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.home-final {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 0;
}

.final-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: min(560px, 70vh);
  padding: var(--space-xl) 0;
}

@keyframes float-glow-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

@keyframes float-glow-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-30px, 30px, 0) scale(0.95); }
}

.final-hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -20%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-glow-subtle) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: float-glow-1 16s ease-in-out infinite alternate;
}

.final-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(245, 24, 125, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: float-glow-2 20s ease-in-out infinite alternate;
}

.final-hero__copy { position: relative; }

.final-crown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 99px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-glow);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.05);
  transform: none !important;
  animation: glow-pulse 3s ease-in-out infinite;
}
.final-crown::before {
  content: "●";
  color: var(--accent-glow);
  animation: blink-dot 1.2s infinite alternate;
}
@keyframes blink-dot {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes shimmer-line {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(204, 255, 0, 0.05); }
  50% { box-shadow: 0 0 24px rgba(204, 255, 0, 0.1), 0 0 48px rgba(204, 255, 0, 0.03); }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow-subtle); }
  50% { box-shadow: 0 0 30px var(--accent-glow-subtle), 0 0 60px rgba(204, 255, 0, 0.05); }
}

.final-hero__title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  word-break: keep-all;
  background: linear-gradient(135deg, var(--text-strong) 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-hero__title mark {
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, var(--accent-glow-subtle), transparent);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(204, 255, 0, 0.15);
  color: var(--accent-glow);
  -webkit-text-fill-color: var(--accent-glow);
  z-index: 0;
}

.final-hero__title mark::before {
  display: none;
}

.final-hero__underline {
  display: block;
  width: 100px;
  height: 4px;
  margin: var(--space-md) 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-glow), rgba(204, 255, 0, 0.3), var(--accent-glow));
  background-size: 200% 100%;
  animation: shimmer-line 3s ease-in-out infinite;
}

.final-hero__body {
  max-width: 540px;
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  word-break: keep-all;
  animation: fadeSlideUp 0.8s var(--ease-fluid) 0.15s both;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  animation: fadeSlideUp 0.8s var(--ease-fluid) 0.3s both;
}

.final-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 140px;
  height: 48px;
  padding: 0 var(--space-md);
  border: 1px solid var(--final-line-strong);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--motion-fast) var(--ease-fluid);
}
.final-button span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.final-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent-glow);
  background: var(--bg-primary);
  box-shadow: 0 0 12px var(--accent-glow-subtle);
}
.final-button:hover span {
  transform: translateX(4px);
}
.final-button--dark {
  background: var(--text-strong);
  color: var(--bg-primary);
  border-color: var(--text-strong);
}
.final-button--dark:hover {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
  color: var(--bg-primary);
  box-shadow: 0 0 16px var(--accent-glow-subtle);
}

.final-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  animation: fadeSlideUp 0.8s var(--ease-fluid) 0.4s both;
}

.final-meta__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

.final-loop__title {
  margin: 0 0 var(--space-xs);
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: none;
}

.final-loop__stack {
  overflow: hidden;
  border: 1px solid var(--final-line);
  border-radius: var(--final-radius);
  background: var(--bg-secondary);
  box-shadow: var(--final-shadow);
  display: flex;
  flex-direction: column;
}

.final-loop__step {
  --step: var(--accent-glow);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-sm);
  align-items: center;
  min-height: auto;
  padding: var(--space-md);
  border-bottom: 1px solid var(--final-line);
  position: relative;
  transition: all var(--motion-fast) var(--ease-fluid);
}

.final-loop__step:hover {
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid var(--step);
  padding-left: var(--space-md);
}

.final-loop__step:last-child { border-bottom: 0; }
.final-loop__step--translate { --step: var(--final-red); }
.final-loop__step--prove { --step: var(--final-yellow); }

.final-loop__num {
  color: var(--step);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transition: text-shadow 0.3s var(--ease-fluid);
}

.final-loop__step:hover .final-loop__num {
  text-shadow: 0 0 8px color-mix(in srgb, var(--step) 50%, transparent);
}

.final-loop__text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.final-loop__text span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@keyframes doodle-shimmer {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 60; }
}

.final-doodle {
  display: block !important;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: auto;
  fill: none;
  stroke: var(--step, var(--accent-glow));
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.12;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.final-doodle path,
.final-doodle circle {
  stroke-dasharray: 6 3;
  animation: doodle-shimmer 15s linear infinite;
}

.final-loop__step:hover .final-doodle {
  opacity: 0.8;
  transform: translateY(-50%) scale(1.1) rotate(3deg);
  filter: drop-shadow(0 0 8px var(--step));
}

.final-terminal {
  border-top: 1px solid var(--final-line);
  background: #020202;
  padding: 16px var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a1a1aa;
}
.final-terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 6px;
}
.final-terminal__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-terminal 1.5s infinite alternate;
}
@keyframes pulse-terminal {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}
.final-terminal__title {
  color: var(--accent-glow);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.final-terminal__body {
  min-height: 20px;
}
.final-terminal__line {
  line-height: 1.4;
  white-space: pre-wrap;
}
.final-terminal__line--warn { color: #ff3366; }
.final-terminal__line--status { color: #ccff00; font-weight: bold; }
.final-terminal__line--scan { color: #00e676; }

.final-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-xl);
  animation: fadeSlideUp 0.8s var(--ease-fluid) 0.1s both;
}

.final-system-card {
  --card-accent: var(--final-blue);
  --card-accent-rgb: 204, 255, 0;
  --card-glow: var(--accent-glow-subtle);
  position: relative;
  min-height: auto;
  padding: var(--space-lg);
  border: 1px solid var(--final-line);
  border-top: 3px solid var(--card-accent);
  border-radius: var(--final-radius);
  background: var(--bg-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.final-system-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(200px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(var(--card-accent-rgb, 204, 255, 0), 0.3), transparent 60%);
  border-radius: var(--final-radius);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.final-system-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(var(--card-accent-rgb, 204, 255, 0), 0.04), transparent 50%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.final-system-card:hover::before,
.final-system-card:hover::after {
  opacity: 1;
}

.final-system-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--card-accent);
  border-top-color: var(--card-accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px var(--card-glow);
}

.final-system-card--translate {
  --card-accent: var(--final-red);
  --card-accent-rgb: 255, 51, 102;
  --card-glow: rgba(255, 51, 102, 0.15);
}
.final-system-card--prove {
  --card-accent: var(--final-yellow);
  --card-accent-rgb: 255, 184, 0;
  --card-glow: rgba(255, 184, 0, 0.15);
}

.final-system-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.final-system-card__top strong {
  color: var(--card-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.final-system-card__top span {
  position: absolute;
  bottom: -8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--card-accent);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.final-system-card h2 {
  margin: 0 0 var(--space-sm);
  color: var(--text-strong);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  word-break: keep-all;
}

.final-system-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: keep-all;
}

.final-system-card .final-doodle {
  display: block !important;
  position: absolute;
  bottom: 12px;
  right: 12px;
  height: 44px;
  width: auto;
  fill: none;
  stroke: var(--card-accent, var(--accent-glow));
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.08;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.final-system-card .final-doodle path,
.final-system-card .final-doodle circle {
  stroke-dasharray: 6 3;
  animation: doodle-shimmer 15s linear infinite;
}

.final-system-card:hover .final-doodle {
  opacity: 0.6;
  transform: scale(1.1) rotate(-4deg);
  filter: drop-shadow(0 0 8px var(--card-accent));
}

.final-section {
  padding: var(--space-xl) 0;
  border-top: 0;
  position: relative;
  animation: fadeSlideUp 0.8s var(--ease-fluid) both;
}

.final-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--final-line-strong) 20%, var(--final-line-strong) 80%, transparent);
}

.final-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-md);
}

.final-section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: letter-spacing var(--motion-fast) var(--ease-fluid);
}

.final-section__label:hover {
  letter-spacing: 0.15em;
}

.final-section__label::before {
  content: "✦";
  color: var(--accent-glow);
  transition: transform var(--motion-fast) var(--ease-fluid);
}

.final-section__label:hover::before {
  transform: rotate(90deg) scale(1.2);
}

.final-section__head a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--motion-fast);
}
.final-section__head a:hover {
  color: var(--accent-glow);
}

.final-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.final-work-card,
.final-add-card,
.final-note-card {
  color: var(--text-primary);
  text-decoration: none;
}

.final-work-card:nth-child(1) {
  --work-accent: var(--accent-glow);
  --work-accent-rgb: 204, 255, 0;
  --work-glow: var(--accent-glow-subtle);
}
.final-work-card:nth-child(2) {
  --work-accent: var(--final-red);
  --work-accent-rgb: 255, 51, 102;
  --work-glow: rgba(255, 51, 102, 0.15);
}
.final-work-card:nth-child(3) {
  --work-accent: var(--final-yellow);
  --work-accent-rgb: 255, 184, 0;
  --work-glow: rgba(255, 184, 0, 0.15);
}

.final-work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--final-line);
  border-top: 3px solid var(--work-accent, var(--accent-glow));
  border-radius: var(--final-radius);
  background: var(--bg-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.final-work-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(180px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(var(--work-accent-rgb, 204, 255, 0), 0.3), transparent 60%);
  border-radius: var(--final-radius);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.final-work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(var(--work-accent-rgb, 204, 255, 0), 0.05), transparent 50%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.final-work-card:hover::before {
  opacity: 1;
}

.final-work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--final-line);
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease, transform var(--motion-med) var(--ease-fluid);
}

html.dark .final-work-card img {
  opacity: 0.75;
  filter: grayscale(8%) contrast(96%);
}

.final-work-card:hover img {
  opacity: 1;
  filter: grayscale(0%) contrast(100%);
}

.final-work-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--text-md);
  font-weight: 800;
  line-height: 1.3;
}

.final-work-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  flex-grow: 1;
  word-break: keep-all;
}

.final-work-card span {
  color: var(--accent-glow);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: auto;
}

.final-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  border: 1px dashed var(--final-line-strong);
  border-radius: var(--final-radius);
  background: transparent;
  color: var(--text-tertiary);
  transition: all var(--motion-fast) var(--ease-fluid);
}
.final-add-card:hover {
  border-color: var(--accent-glow);
  color: var(--accent-glow);
  background: var(--bg-secondary);
}

.final-add-card strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
}

.final-proof-section { padding-bottom: 58px; }

.final-ledger-table {
  border: 1px solid var(--final-line);
  border-radius: var(--final-radius);
  background: var(--bg-secondary);
  overflow-x: auto;
  box-shadow: var(--final-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.final-ledger-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.final-ledger-table th,
.final-ledger-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--final-line);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: left;
  vertical-align: middle;
}

.final-ledger-table th {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.02);
}

html.dark .final-ledger-table th {
  background: rgba(255, 255, 255, 0.025);
}

.final-ledger-table tr {
  transition: all var(--motion-fast) var(--ease-fluid);
}

.final-ledger-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.008);
}

.final-ledger-table tbody tr:hover {
  background: rgba(204, 255, 0, 0.02);
  box-shadow: inset 3px 0 0 var(--accent-glow);
}

.final-ledger-table tr:last-child td { border-bottom: 0; }
.final-ledger-table td:nth-child(3) { width: 45%; }

.final-ledger-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-strong);
  letter-spacing: 0.02em;
}

.final-ledger-table td:nth-child(3) {
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.5;
}

.final-ledger-table td:nth-child(4),
.final-ledger-table td:nth-child(5),
.final-ledger-table td:nth-child(6) {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.final-ledger-table td:last-child a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--final-line-strong);
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--motion-fast) var(--ease-fluid);
}
.final-ledger-table td:last-child a:hover {
  color: var(--bg-primary);
  background: var(--accent-glow);
  border-color: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow-subtle);
  transform: scale(1.1);
}

.final-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-glow-subtle);
  color: var(--accent-glow);
  border: 1px solid color-mix(in srgb, var(--accent-glow) 25%, transparent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.final-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent-glow) 50%, transparent);
}

.final-badge--dark {
  background: color-mix(in srgb, var(--accent-pink) 8%, transparent);
  color: var(--accent-pink);
  border: 1px solid color-mix(in srgb, var(--accent-pink) 25%, transparent);
}

.final-badge--dark::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent-pink) 50%, transparent);
  animation: blink-dot 1.2s infinite alternate;
}

.final-badge--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-tertiary);
  border: 1px solid var(--final-line);
}

.final-badge--ghost::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  box-shadow: none;
  animation: blink-dot 1.8s infinite alternate;
}


.final-notes-section { padding-bottom: 50px; }

.final-notes-spine {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
}

.final-note-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.final-note-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "visual label"
    "visual title"
    "visual meta";
  border: 1px solid var(--final-line);
  border-left: 4px solid var(--card-hover-border, var(--accent-glow));
  border-radius: var(--final-radius);
  background: 
    radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), color-mix(in srgb, var(--card-hover-border, var(--accent-glow)) 4%, transparent), transparent 60%),
    linear-gradient(to right, var(--bg-secondary) 200px, color-mix(in srgb, var(--card-hover-border, var(--accent-glow)) 3%, var(--bg-secondary)) 200px);
  overflow: hidden;
  min-height: 130px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.final-note-card--observe {
  --card-hover-border: var(--accent-glow);
  --card-hover-glow: rgba(204, 255, 0, 0.15);
}
.final-note-card--translate {
  --card-hover-border: var(--final-red);
  --card-hover-glow: rgba(255, 51, 102, 0.15);
}
.final-note-card--prove {
  --card-hover-border: var(--final-yellow);
  --card-hover-glow: rgba(255, 184, 0, 0.15);
}
.final-note-card--lifeline {
  --card-hover-border: #c084fc;
  --card-hover-glow: rgba(192, 132, 252, 0.15);
}
.final-note-card--operate {
  --card-hover-border: #38bdf8;
  --card-hover-glow: rgba(56, 189, 248, 0.15);
}

.final-note-card:hover {
  transform: translateY(-2px) scale(1.005);
  border-color: var(--card-hover-border, var(--accent-glow));
  border-left-width: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px var(--card-hover-glow, var(--accent-glow-subtle));
}

.final-note-card__visual {
  grid-area: visual;
  position: relative;
  width: 200px;
  height: 100%;
  background: var(--bg-secondary);
  overflow: hidden;
  border-bottom: 0;
  border-right: 1px solid var(--final-line);
}

.final-note-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 1;
  display: block;
  transition: all var(--motion-med) var(--ease-fluid);
}

.final-note-card:hover .final-note-card__visual::after {
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--card-hover-border, var(--accent-glow)) 15%, rgba(0, 0, 0, 0.6)));
}

.final-note-card__visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  z-index: 2;
  pointer-events: none;
  transition: left 0.6s var(--ease-fluid);
}

.final-note-card:hover .final-note-card__visual::before {
  left: 150%;
}

.final-note-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease, transform var(--motion-med) var(--ease-fluid);
}

html.dark .final-note-card__visual img {
  opacity: 0.75;
  filter: grayscale(8%) contrast(96%);
}

.final-note-card:hover .final-note-card__visual img {
  opacity: 1;
  filter: grayscale(0%) contrast(100%);
}

.final-note-card:hover .final-note-card__visual img {
  transform: scale(1.05);
}

.final-note-card__visual span {
  display: none !important;
}

.final-note-card small {
  grid-area: label;
  margin-top: 14px;
  padding: 0 18px;
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-note-card--observe small { color: var(--accent-glow); }
.final-note-card--translate small { color: var(--final-red); }
.final-note-card--prove small { color: var(--final-yellow); }
.final-note-card--lifeline small { color: #c084fc; }
.final-note-card--operate small { color: #38bdf8; }

.final-note-card h2 {
  grid-area: title;
  margin: 6px 0 0;
  padding: 0 18px;
  color: var(--text-strong);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.4;
  word-break: keep-all;
  align-self: start;
}

.final-note-card time {
  grid-area: meta;
  margin-top: 0;
  padding: 8px 18px 14px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  align-self: end;
}

.final-spine {
  border-left: 1px solid var(--final-line);
  padding-left: var(--space-lg);
}

.final-spine-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
}

.final-spine-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 58px;
  width: 1px;
  border-left: 1px dashed var(--final-line-strong);
  pointer-events: none;
  z-index: 1;
}

.final-spine-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: var(--space-sm);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-spine-row::before {
  content: "";
  position: absolute;
  left: 55px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-glow);
  box-shadow: 0 0 6px var(--accent-glow);
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-spine-row:hover::before {
  background: var(--accent-glow);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-glow);
}

.final-spine-row dt {
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-spine-row:hover dt {
  color: var(--text-strong);
  text-shadow: 0 0 8px var(--accent-glow-subtle);
}

.final-spine-row dd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: keep-all;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-spine-row:hover dd {
  transform: translateX(4px);
  color: var(--text-strong);
}

.final-cta {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--final-radius);
  background: var(--bg-secondary);
  border: 1px solid var(--accent-glow);
  color: var(--text-primary);
  overflow: hidden;
  box-shadow: 0 0 20px var(--accent-glow-subtle);
  margin-bottom: var(--space-xl);
  animation: cta-glow 4s ease-in-out infinite;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(204, 255, 0, 0.08), transparent 50%),
    radial-gradient(circle at 20% 30%, rgba(204, 255, 0, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 40%, rgba(204, 255, 0, 0.06) 2px, transparent 2px),
    radial-gradient(circle at 45% 75%, rgba(204, 255, 0, 0.05) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100px 100px, 100px 100px, 100px 100px;
  z-index: 0;
  pointer-events: none;
  animation: cta-particles 20s linear infinite;
}
.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--text-strong) 50%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-cta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.final-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 var(--space-lg);
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--bg-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--motion-fast) var(--ease-fluid);
  white-space: nowrap;
}

.final-cta a span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-cta a:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px var(--accent-glow), 0 0 40px rgba(204, 255, 0, 0.2);
}

.final-cta a:hover span {
  transform: translateX(4px);
}

@keyframes cta-particles {
  0% { background-position: 0 0; }
  100% { background-position: 100px 200px; }
}

.final-cta__doodle {
  display: block !important;
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  color: var(--accent-glow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-cta:hover .final-cta__doodle {
  opacity: 0.15;
  transform: translateY(-50%) scale(1.08) rotate(5deg);
}

.final-cta__crown {
  font-size: 64px;
  position: absolute;
  top: 0px;
  left: 10px;
  line-height: 1;
  color: var(--accent-glow);
}

.final-cta__face {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--accent-glow);
  border-radius: 50%;
  top: 60px;
  left: 40px;
}

.final-cta__spiral {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px dashed var(--accent-glow);
  border-radius: 50%;
  top: 35px;
  left: 75px;
}

.final-footer {
  display: none !important;
}

.final-page {
  padding-top: var(--space-lg);
}

.final-page-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-lg) 0 var(--space-xl);
  border-bottom: 1px solid var(--final-line);
}

.final-page-hero__copy {
  position: relative;
}

.final-page-hero__title {
  margin: 0 0 var(--space-md);
  color: var(--text-strong);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.final-page-hero__title mark {
  position: relative;
  display: inline;
  background: transparent;
  color: var(--accent-glow);
  z-index: 0;
}

.final-page-hero__title mark::before {
  display: none;
}

.final-page-hero__body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.final-demo-rule {
  border: 1px solid var(--final-line);
  border-radius: var(--final-radius);
  background: var(--bg-secondary);
  box-shadow: var(--final-shadow);
  padding: var(--space-md);
}

.final-demo-rule .final-loop__title {
  padding: 0 0 var(--space-sm);
  border-bottom: 1px solid var(--final-line);
}

.final-demo-rule ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm) 0 0;
  margin: 0;
  list-style: none;
}

.final-demo-rule li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.final-demo-rule strong {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--accent-glow);
  text-transform: uppercase;
}

.final-demo-rule li:nth-child(2) strong,
.final-demo-rule li:nth-child(4) strong {
  color: var(--final-red);
}

.final-demo-rule li:nth-child(3) strong {
  color: var(--final-yellow);
}

.final-demo-rule span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.final-demo-section {
  padding: var(--space-xl) 0;
}

.final-demo-count {
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.final-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.final-demo-card {
  --demo-accent: var(--accent-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--final-line);
  border-radius: var(--final-radius);
  background: var(--bg-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-demo-card:hover {
  transform: translateY(-2px);
  border-color: var(--demo-accent);
  box-shadow: 0 4px 20px var(--accent-glow-subtle);
}

.final-demo-card--red { --demo-accent: var(--final-red); }
.final-demo-card--yellow { --demo-accent: var(--final-yellow); }
.final-demo-card--green { --demo-accent: var(--final-green); }

.final-demo-card__visual {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--final-line);
}

.final-demo-card__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.final-demo-card__visual span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  color: var(--demo-accent);
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
}

.final-demo-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.final-demo-card small {
  color: var(--demo-accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.final-demo-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.final-demo-card h2 a {
  color: inherit;
  text-decoration: none;
}

.final-demo-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: keep-all;
}

.final-demo-card__facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--final-line);
  margin-top: auto;
}

.final-demo-card__facts div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--final-line);
}

.final-demo-card__facts div:last-child {
  border-bottom: 0;
}

.final-demo-card__facts dt {
  color: var(--demo-accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.final-demo-card__facts dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: keep-all;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-break {
  display: none;
}

@media (max-width: 1280px) {
  .home-final {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .home-template .nav__inner {
    padding: 0 var(--space-md);
  }
  .final-hero {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .final-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .final-hero,
  .final-notes-spine,
  .final-page-hero {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .final-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .final-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .final-spine {
    border-left: 0;
    padding-left: 0;
    margin-top: var(--space-md);
  }
}

@media (max-width: 760px) {
  .final-system-grid,
  .final-work-grid,
  .final-demo-grid {
    grid-template-columns: 1fr;
  }
  .final-hero__title {
    font-size: 2rem;
  }
  .final-page-hero__title {
    font-size: 1.8rem;
  }
  .final-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  .mobile-break {
    display: inline;
  }
}

@media (max-width: 640px) {
  .final-note-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "visual"
      "label"
      "title"
      "meta";
    background: color-mix(in srgb, var(--card-hover-border, var(--accent-glow)) 3%, var(--bg-secondary));
  }
  .final-note-card__visual {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--final-line);
  }
  .final-note-card small {
    margin-top: 12px;
    padding: 0 14px;
  }
  .final-note-card h2 {
    padding: 0 14px;
    font-size: 0.95rem;
  }
  .final-note-card time {
    padding: 8px 14px 12px;
  }
}
