/* ==========================================================================
   DevopsFortunato — redesign sketch
   Direction: "Signal in the dark" — deep ink, electric cyan + warm amber,
   editorial display type, restrained but expressive motion.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #05070b;
  --bg-soft: #070b11;
  --panel: #0a1018;
  --panel-2: #0d141e;
  --ink: #f4f7fa;
  --muted: #a6b3c0;
  --faint: #8493a2;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --cyan: #5ee7ff;
  --cyan-soft: #a5f2ff;
  --violet: #a397ff;
  --amber: #ffb14a;
  --amber-soft: #ffce8a;
  --ink-on-accent: #171006;

  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.4vw, 48px);
  --radius: 22px;
  --radius-sm: 14px;
  --section-gap: clamp(72px, 9vw, 132px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  isolation: isolate;
}

body.search-open,
body.email-open,
body.newsletter-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 78% -8%, rgba(94, 231, 255, 0.09), transparent 60%),
    radial-gradient(ellipse 60% 50% at 4% 28%, rgba(163, 151, 255, 0.06), transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 96%, rgba(255, 177, 74, 0.05), transparent 60%),
    var(--bg);
}

::selection {
  background: rgba(255, 177, 74, 0.32);
  color: #fff;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
time { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink-on-accent);
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-soft);
}
.skip-link:focus { transform: translateY(0); }

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Ambient layer
   -------------------------------------------------------------------------- */
.page-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.ambient-blob-a {
  width: 540px;
  height: 540px;
  right: -190px;
  top: -170px;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.19), transparent 68%);
  animation: drift 22s var(--ease-soft) infinite alternate;
}
.ambient-blob-b {
  width: 480px;
  height: 480px;
  left: -230px;
  top: 34%;
  background: radial-gradient(circle, rgba(163, 151, 255, 0.14), transparent 68%);
  animation: drift 28s var(--ease-soft) infinite alternate-reverse;
}
.ambient-blob-c {
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(255, 177, 74, 0.1), transparent 68%);
  animation: drift 25s var(--ease-soft) infinite alternate;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 75% 58% at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.7;
}

.ambient-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.07), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

section[id],
aside[id],
footer[id] { scroll-margin-top: 92px; }

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.35s var(--ease-soft), background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 8px 0;
  background: rgba(5, 7, 11, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  min-height: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  fill: var(--amber);
  flex: 0 0 auto;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.brand-word span { color: var(--amber); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  margin-inline: auto;
}
.primary-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(94, 231, 255, 0.16);
  border-radius: 999px;
  background: rgba(94, 231, 255, 0.045);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(94, 231, 255, 0.5);
  animation: pulse 2.6s ease-out infinite;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.search-trigger:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}
.search-trigger svg { width: 15px; height: 15px; }
.search-trigger kbd,
.search-top kbd,
.search-foot kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: var(--ink-on-accent);
  box-shadow: 0 10px 30px -12px rgba(255, 177, 74, 0.7);
}
.btn-primary:hover {
  background: var(--amber-soft);
  box-shadow: 0 16px 40px -14px rgba(255, 177, 74, 0.8);
}
.btn-primary .icon { transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .icon { transform: translate(2px, -2px); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(94, 231, 255, 0.4);
  background: rgba(94, 231, 255, 0.06);
  color: var(--cyan-soft);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
}
.btn-sm .icon { width: 14px; height: 14px; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary .menu-icon { width: 18px; height: 18px; }
.mobile-menu[open] summary {
  border-color: rgba(255, 177, 74, 0.45);
  color: var(--amber);
}
.mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 16, 24, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  animation: popIn 0.22s var(--ease-out);
}
.mobile-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.mobile-panel a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.mobile-panel .btn {
  margin-top: 6px;
  color: var(--ink-on-accent);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(36px, 5vw, 78px);
  padding-block: clamp(120px, 14vw, 176px) clamp(48px, 7vw, 84px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.eyebrow-index { color: var(--amber); }
.eyebrow-rule {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.hero-title {
  margin: 20px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(66px, 9.6vw, 132px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.058em;
}
.hero-line {
  display: block;
  padding-bottom: 0.035em;
}
.hero-line:first-child { overflow: hidden; }
.hero-line:nth-child(2) { overflow: hidden; }
.hero-word { display: inline-block; }
.hero-word-serif {
  padding-right: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  line-height: 0.82;
  background: linear-gradient(104deg, #f7fafc 4%, var(--cyan) 38%, var(--violet) 67%, var(--amber) 96%);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 10s var(--ease-soft) infinite alternate;
}

.hero-lede {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.65;
  letter-spacing: -0.011em;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}
.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-text-link:hover {
  color: var(--cyan-soft);
  border-color: rgba(94, 231, 255, 0.5);
}

.hero-open {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin-top: 26px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 177, 74, 0.22);
  border-radius: 999px;
  background: rgba(255, 177, 74, 0.045);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.hero-open a {
  color: var(--amber-soft);
  border-bottom: 1px solid rgba(255, 177, 74, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-open a:hover {
  color: var(--ink);
  border-color: var(--amber);
}

.hero-live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.hero-live span { color: var(--cyan-soft); }
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.6s ease-out infinite;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.spark-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(94, 231, 255, 0.08), transparent 55%),
    linear-gradient(158deg, rgba(15, 23, 35, 0.96), rgba(7, 11, 17, 0.98));
  box-shadow:
    0 40px 90px -38px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: rotate(-1.1deg);
  transition: transform 0.6s var(--ease-out), border-color 0.4s ease;
}
.spark-panel:hover {
  transform: rotate(0deg) translateY(-3px);
  border-color: rgba(94, 231, 255, 0.32);
}
.spark-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(155deg, #000, transparent 58%);
  pointer-events: none;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
}
.panel-dots { display: inline-flex; gap: 4px; }
.panel-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.panel-dots i:first-child { background: rgba(255, 177, 74, 0.7); }
.panel-path { margin-inline: auto; }
.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(94, 231, 255, 0.2);
  border-radius: 999px;
  color: var(--cyan-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9.5px;
}
.panel-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.panel-body { position: relative; padding: 22px 24px 20px; }

.panel-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.panel-metric {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(56px, 5.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.panel-metric .unit {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.panel-sub {
  margin-top: 9px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.bars {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.bar-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
}
.bar-name {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}
.bar-value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  overflow: hidden;
}
.bar-fill {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.4), var(--cyan));
  box-shadow: 0 0 14px rgba(94, 231, 255, 0.5);
}
.bar-fill-win {
  background: linear-gradient(90deg, rgba(255, 177, 74, 0.45), var(--amber));
  box-shadow: 0 0 16px rgba(255, 177, 74, 0.55);
}
.js .bar-fill { width: 0; }
.js .is-bench-active .bar-fill {
  width: var(--bar);
  transition: width 1.25s var(--ease-out);
}
.js .is-bench-active .bar-row:nth-child(2) .bar-fill { transition-delay: 0.08s; }
.js .is-bench-active .bar-row:nth-child(3) .bar-fill { transition-delay: 0.16s; }
.js .is-bench-active .bar-row:nth-child(4) .bar-fill { transition-delay: 0.24s; }

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}
.panel-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-soft);
  transition: color 0.2s ease;
}
.panel-foot a:hover { color: var(--ink); }
.panel-foot .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.22s var(--ease-out);
}
.panel-foot a:hover .icon { transform: translateX(3px); }

.panel-tag {
  position: absolute;
  top: 68px;
  right: -13px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--ink-on-accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(3deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 1px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 16, 24, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: floaty 7s var(--ease-soft) infinite alternate;
  pointer-events: none;
}
.float-card strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--amber);
  line-height: 1;
}
.float-card span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.float-card-a { right: 24px; bottom: -54px; }
.float-card-b {
  left: -22px;
  top: -24px;
  animation-delay: -2.5s;
}
.float-card-b strong { color: var(--cyan); }

/* Entrance for the hero (JS adds .js early so no-JS keeps content visible) */
.js .hero-word {
  transform: translateY(112%);
  animation: rise 1.05s var(--ease-out) 0.08s forwards;
}
.js .hero-line:nth-child(2) .hero-word { animation-delay: 0.2s; }
.js .hero-visual {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  animation: panelIn 1s var(--ease-out) 0.36s forwards;
}

/* Reveal system — only armed after main.js loads */
.js.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(7, 11, 17, 0.6);
  padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}
.ticker-group span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-group i {
  color: var(--amber);
  font-size: 7px;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Experience
   -------------------------------------------------------------------------- */
.career-list { border-top: 1px solid var(--line-strong); }
.career-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 210px;
  align-items: start;
  gap: clamp(20px, 3.2vw, 48px);
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
}
.career-row-lab {
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.035), transparent 72%);
}
.career-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 5px;
}
.career-when {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.career-company {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.career-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.career-body h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-soft);
}
.career-body p {
  max-width: 62ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}
.career-tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.career-tags li:first-child {
  border-color: rgba(94, 231, 255, 0.18);
  color: var(--cyan-soft);
}
.career-impact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  gap: 16px;
  padding-left: clamp(15px, 2vw, 26px);
  border-left: 1px solid var(--line);
}
.career-impact span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.career-impact strong {
  display: block;
  color: var(--cyan-soft);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.career-row-lab .career-when { color: var(--cyan); }
.career-row-lab .career-impact strong { color: var(--amber-soft); }
.experience-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 10px 0;
}
.experience-foot p {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 720px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Dedicated experience page */
.experience-page { padding-top: clamp(118px, 14vw, 168px); }
.experience-hero .archive-title { max-width: 980px; }
.experience-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.experience-jump .btn { min-height: 42px; }
.experience-cert-count {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.experience-cert-lede {
  max-width: 720px;
  margin: -14px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}
.experience-note {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.experience-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.experience-note a:hover { color: var(--cyan-soft); }
.experience-side {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}
.experience-side strong { color: var(--muted); font-weight: 500; }

/* Dedicated work page */
.work-page { padding-top: clamp(118px, 14vw, 168px); }
.work-hero .archive-title { max-width: 1000px; }
.work-facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.work-facts li {
  flex: 1 1 160px;
  padding: 14px 22px;
  border-left: 1px solid var(--line);
}
.work-facts li:first-child { padding-left: 0; border-left: 0; }
.work-facts span {
  display: block;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-facts strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.work-contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  margin-top: 34px;
  padding: clamp(28px, 4.4vw, 56px);
  border: 1px solid rgba(255, 177, 74, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(125deg, rgba(255, 177, 74, 0.09), rgba(163, 151, 255, 0.045) 48%, rgba(94, 231, 255, 0.03)),
    rgba(8, 14, 21, 0.88);
  overflow: hidden;
}
.work-contact-copy,
.work-contact-actions { position: relative; z-index: 1; }
.work-contact-copy h2 {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.work-contact-copy h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-soft);
}
.work-contact-copy > p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.work-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}
.no-js [data-copy-email] { display: none; }
.work-contact-link {
  flex-basis: 100%;
  margin-top: 5px;
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.work-contact-link span { color: var(--faint); }
.work-contact-link:hover { color: var(--ink); }
.work-email {
  flex-basis: 100%;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.work-email a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.work-email a:hover { color: var(--cyan-soft); }
.work-copy-status {
  flex-basis: 100%;
  min-height: 14px;
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.work-fit-card {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
}
.work-fit-index {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.work-fit-card h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.work-fit-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.work-proof-list { border-top: 1px solid var(--line-strong); }
.work-proof-list a {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) 24px;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding 0.3s var(--ease-out);
}
.work-proof-list a:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(255, 177, 74, 0.05), transparent 80%);
}
.work-proof-list strong {
  color: var(--amber-soft);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.work-proof-list span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.work-proof-arrow {
  color: var(--faint);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.work-proof-list a:hover .work-proof-arrow {
  color: var(--amber);
  transform: translate(2px, -2px);
}
.work-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}
.work-mode {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.work-mode h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.work-mode p {
  max-width: 330px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.work-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(54px, 7vw, 90px);
  padding: clamp(26px, 3.6vw, 42px);
  border: 1px solid rgba(255, 177, 74, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(500px circle at 82% 50%, rgba(255, 177, 74, 0.12), transparent 70%),
    rgba(8, 14, 21, 0.78);
}
.work-final h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.work-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section {
  padding-top: var(--section-gap);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.section-head-compact { margin-bottom: 22px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-kicker span { color: var(--amber); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--amber-soft);
}
.section-head-compact h2 { font-size: clamp(28px, 3vw, 36px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.text-link:hover {
  color: var(--cyan-soft);
  border-bottom-color: rgba(94, 231, 255, 0.5);
}
.text-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.22s var(--ease-out);
}
.text-link:hover .icon { transform: translateX(3px); }

.arrow-disc {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.arrow-disc .icon { width: 15px; height: 15px; }

/* Pointer spotlight */
.spotlight { position: relative; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 231, 255, 0.09), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.spotlight:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   Writing
   -------------------------------------------------------------------------- */
.writing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 231, 255, 0.28);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(94, 231, 255, 0.06);
}

.featured-card { display: flex; flex-direction: column; }
.featured-card .card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}
.featured-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.6s ease;
  filter: saturate(0.92) contrast(1.03);
}
.featured-card:hover .card-media img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}
.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0) 45%, rgba(5, 7, 11, 0.72) 100%);
  pointer-events: none;
}
.pill {
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill-accent {
  top: auto;
  bottom: 15px;
  background: var(--amber);
  color: var(--ink-on-accent);
}

.featured-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 2.4vw, 28px);
}
.featured-card h3 {
  margin: 9px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.featured-card h3 a { transition: color 0.2s ease; }
.featured-card h3 a:hover { color: var(--cyan-soft); }
.card-excerpt {
  max-width: 560px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag-row span,
.mini-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.card-cta:hover { color: var(--ink); }
.card-cta .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.22s var(--ease-out);
}
.card-cta:hover .icon { transform: translate(2px, -2px); }

.side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr auto;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 177, 74, 0.3);
  background: linear-gradient(150deg, rgba(255, 177, 74, 0.055), rgba(255, 255, 255, 0.01));
}
.mini-media {
  display: block;
  height: 100%;
  min-height: 108px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--panel-2);
}
.mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.5s ease;
  filter: saturate(0.9);
}
.mini-card:hover .mini-media img { transform: scale(1.05); filter: saturate(1.1); }
.mini-body { min-width: 0; padding-right: 6px; }
.mini-body h3 {
  margin: 7px 0 9px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.022em;
}
.mini-body h3 a:hover { color: var(--amber-soft); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-tags span { padding: 3px 7px; font-size: 9.5px; }

.all-articles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px 15px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.all-articles:hover {
  border-color: rgba(94, 231, 255, 0.4);
  background: rgba(94, 231, 255, 0.04);
}
.all-articles-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.all-articles-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.all-articles .arrow-disc { width: 32px; height: 32px; border-color: var(--line); }
.all-articles:hover .arrow-disc {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #041014;
  transform: rotate(45deg);
}

.article-list {
  margin-top: 0;
  border-top: 1px solid var(--line-strong);
}
.article-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 166px 82px 38px;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: clamp(17px, 2vw, 24px) 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding 0.35s var(--ease-out);
}
.article-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--cyan));
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.35s var(--ease-out);
}
.article-row:hover {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.055), transparent 72%);
}
.article-row:hover::before { transform: scaleY(1); }
.article-index {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: color 0.25s ease;
}
.article-row:hover .article-index { color: var(--amber); }
.article-row .article-title {
  min-width: 0;
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.85vw, 39px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: pretty;
  transition: color 0.2s ease;
}
.article-row .article-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s ease;
}
.article-row:hover .article-title { color: var(--cyan-soft); }
.article-row:hover .article-title em { color: var(--amber-soft); }
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.article-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  white-space: nowrap;
}
.article-tags span:first-child {
  border-color: rgba(255, 177, 74, 0.24);
  color: var(--amber-soft);
}
.article-date {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}
.article-row:hover .article-arrow {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-on-accent);
  transform: translateX(3px);
}

/* Cursor-following hero preview, borrowed from Afterglow and re-skinned for Signal. */
.article-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: clamp(220px, 19vw, 286px);
  padding: 7px;
  border: 1px solid rgba(255, 177, 74, 0.34);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(13, 20, 30, 0.985), rgba(7, 11, 17, 0.99));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(94, 231, 255, 0.07) inset,
    0 0 42px rgba(94, 231, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--px, -999px), var(--py, -999px), 0) translate(-50%, -50%) scale(0.94) rotate(-2.5deg);
  transition: opacity 0.18s ease;
  will-change: transform, opacity;
}
.article-preview::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--cyan), transparent);
  opacity: 0.8;
}
.article-preview.is-on {
  opacity: 1;
  transform: translate3d(var(--px, -999px), var(--py, -999px), 0) translate(-50%, -50%) scale(1) rotate(-2.5deg);
}
.article-preview-media {
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel-2);
}
.article-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}
.article-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 5px 3px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-preview-meta span:first-child { color: var(--amber-soft); }
.article-preview-meta span:last-child { color: var(--cyan-soft); white-space: nowrap; }

@media (max-width: 1180px) {
  .career-row { grid-template-columns: 150px minmax(0, 1fr) 180px; gap: 24px; }
  .article-row { grid-template-columns: 40px minmax(0, 1fr) 174px 70px 34px; gap: 16px; }
  .article-row .article-title { font-size: clamp(23px, 3.1vw, 36px); }
  .article-preview { width: clamp(210px, 21vw, 250px); }
}

@media (max-width: 900px) {
  .career-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 6px; }
  .career-meta { flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 0; }
  .career-impact {
    flex-direction: row;
    flex-wrap: wrap;
    align-self: auto;
    gap: 14px 32px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .career-impact span { flex: 1 1 140px; }
  .career-impact strong { margin-bottom: 3px; font-size: 22px; }
  .experience-foot { align-items: flex-start; flex-direction: column; gap: 12px; padding-left: 6px; }
  .work-contact-panel { grid-template-columns: 1fr; }
  .work-final { align-items: flex-start; flex-direction: column; }
  .article-row { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 12px; padding: 17px 6px; }
  .article-index { grid-row: 1 / 3; }
  .article-row .article-title { grid-column: 2; font-size: clamp(23px, 4.2vw, 32px); }
  .article-tags { grid-column: 2; grid-row: 2; margin-top: -2px; }
  .article-date { display: none; }
  .article-arrow { grid-column: 3; grid-row: 1 / 3; }
  .article-row:hover { padding-left: 12px; }
}

@media (hover: none), (pointer: coarse), (max-width: 780px) {
  .article-preview { display: none; }
}

/* --------------------------------------------------------------------------
   Topics
   -------------------------------------------------------------------------- */
.topic-list { border-top: 1px solid var(--line); }
.topic-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 104px 38px;
  align-items: center;
  gap: 22px;
  padding: 26px 12px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.35s ease, padding 0.35s var(--ease-out);
}
.topic-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(94, 231, 255, 0.055), rgba(163, 151, 255, 0.025) 55%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.topic-row > * { position: relative; z-index: 1; }
.topic-row:hover { padding-left: 22px; }
.topic-row:hover::before { opacity: 1; }
.topic-index {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.topic-main { display: grid; gap: 3px; min-width: 0; }
.topic-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  transition: color 0.3s ease;
}
.topic-row:hover .topic-name { color: var(--cyan-soft); }
.topic-desc {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}
.topic-count {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}
.topic-row:hover .arrow-disc {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-on-accent);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Notes + elsewhere
   -------------------------------------------------------------------------- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(11, 17, 26, 0.96), rgba(6, 9, 14, 0.98));
  overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.85);
  transition: border-color 0.35s ease, transform 0.4s var(--ease-out);
}
.terminal:hover {
  border-color: rgba(94, 231, 255, 0.26);
  transform: translateY(-3px);
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.terminal-path { margin-inline: auto; }
.terminal-hint { color: var(--faint); }

.notes-list li { border-bottom: 1px solid var(--line); }
.notes-list li:last-child { border-bottom: 0; }
.notes-list a {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto 62px;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  transition: background 0.25s ease;
}
.notes-list a:hover { background: rgba(94, 231, 255, 0.045); }
.note-prompt {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s var(--ease-out);
}
.notes-list a:hover .note-prompt { transform: translateX(2px); }
.note-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.notes-list a:hover .note-title { color: var(--cyan-soft); }
.note-tags {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.notes-list time {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: right;
}
.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 17px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.terminal-foot > span { display: inline-flex; align-items: center; gap: 7px; }
.terminal-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.terminal-foot a:hover { color: var(--cyan-soft); }
.terminal-foot .icon { width: 12px; height: 12px; }
.terminal-cursor {
  display: inline-block;
  width: 5px;
  height: 11px;
  background: var(--amber);
  animation: blink 1.2s steps(1) infinite;
}

.elsewhere-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.elsewhere-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 166px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.elsewhere-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 177, 74, 0.32);
  background: linear-gradient(155deg, rgba(255, 177, 74, 0.055), rgba(255, 255, 255, 0.01));
}
.elsewhere-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 177, 74, 0.24);
  border-radius: 50%;
  color: var(--amber);
  background: rgba(255, 177, 74, 0.05);
}
.elsewhere-icon svg { width: 15px; height: 15px; }
.elsewhere-icon-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.elsewhere-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.elsewhere-hint {
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.5;
}
.elsewhere-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--faint);
  font-size: 13px;
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}
.elsewhere-card:hover .elsewhere-arrow {
  color: var(--amber);
  transform: translate(2px, -2px);
}


/* --------------------------------------------------------------------------
   Open for work
   -------------------------------------------------------------------------- */
.availability { transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.availability:hover {
  color: var(--ink);
  border-color: rgba(255, 177, 74, 0.42);
  background: rgba(255, 177, 74, 0.08);
}
.work-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(30px, 4.8vw, 62px);
  border: 1px solid rgba(255, 177, 74, 0.2);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 177, 74, 0.075), rgba(163, 151, 255, 0.05) 46%, rgba(94, 231, 255, 0.035)),
    rgba(8, 14, 21, 0.82);
  overflow: hidden;
}
.work-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 34px;
  pointer-events: none;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.work-glow {
  position: absolute;
  top: -230px;
  right: -130px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 177, 74, 0.16), transparent 64%);
  filter: blur(18px);
  pointer-events: none;
}
.work-copy,
.work-side { position: relative; z-index: 1; }
.work-copy h2 {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.work-copy h2 em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: transparent;
  background: linear-gradient(100deg, var(--amber), #ffd9a0 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
}
.work-copy > p:not(.section-kicker) {
  max-width: 540px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.work-side {
  display: flex;
  flex-direction: column;
  padding-left: clamp(24px, 3.4vw, 46px);
  border-left: 1px solid var(--line);
}
.work-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(94, 231, 255, 0.18);
  border-radius: 999px;
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.work-list { list-style: none; }
.work-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.work-list li span {
  flex: 0 0 auto;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.work-meta {
  margin-top: 22px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(94, 231, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(255, 177, 74, 0.07), transparent 55%),
    linear-gradient(150deg, #0b111a, #06090f);
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), rgba(94, 231, 255, 0.55), rgba(163, 151, 255, 0.18) 28%, rgba(255, 177, 74, 0.5) 55%, rgba(94, 231, 255, 0.12) 78%, rgba(94, 231, 255, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderSpin 12s linear infinite;
  pointer-events: none;
}
.newsletter-orbit {
  position: absolute;
  border: 1px solid rgba(94, 231, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.newsletter-orbit-a {
  width: 460px;
  height: 460px;
  right: -170px;
  top: -220px;
}
.newsletter-orbit-b {
  width: 660px;
  height: 660px;
  right: -270px;
  top: -320px;
  border-color: rgba(255, 177, 74, 0.07);
}
.newsletter-word {
  position: absolute;
  right: -18px;
  bottom: -46px;
  font-family: var(--font-display);
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
}
.newsletter-copy { position: relative; z-index: 1; }
.newsletter-copy h2 {
  margin: 4px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.newsletter-copy h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  background: linear-gradient(100deg, var(--cyan) 10%, var(--violet) 52%, var(--amber) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.newsletter-copy > p:last-child {
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.newsletter-action {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 7, 11, 0.5);
  backdrop-filter: blur(8px);
}
.form-title {
  margin-bottom: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-form input::placeholder { color: var(--faint); }
.newsletter-form input:focus {
  border-color: rgba(94, 231, 255, 0.6);
  background: rgba(94, 231, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.12);
}
.newsletter-form .btn { min-height: 46px; padding-inline: 18px; }
.form-note {
  margin-top: 10px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.5;
}
.newsletter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.newsletter-meta li {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.newsletter-meta strong { color: var(--amber); font-weight: 500; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.6), #04060a 55%);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 0.55fr 0.6fr 0.9fr;
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(52px, 7vw, 82px) 0 clamp(36px, 5vw, 56px);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline {
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-status .pulse-dot { background: var(--amber); box-shadow: 0 0 12px rgba(255, 177, 74, 0.6); animation: none; }

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--cyan-soft); transform: translateX(3px); }
.footer-col a span { color: var(--faint); font-size: 10px; }
.footer-col-cta p {
  max-width: 260px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.footer-col-cta .text-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 12px;
}

.footer-word {
  margin: 0 0 clamp(18px, 3vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(44px, 11.4vw, 168px);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.075em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  user-select: none;
}
.footer-word span {
  -webkit-text-stroke: 0;
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}
.footer-motto { display: inline-flex; align-items: center; gap: 7px; }
.footer-motto .pulse-dot { background: var(--amber); box-shadow: none; animation: none; }
.footer-legal { display: inline-flex; align-items: center; gap: 8px; }
.footer-legal a { transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Email dialog
   -------------------------------------------------------------------------- */
.email-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 96px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.email-dialog::backdrop {
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}
.email-dialog[open] .email-shell { animation: popIn 0.3s var(--ease-out); }
.email-shell {
  position: relative;
  max-height: calc(100vh - 32px);
  padding: 34px;
  border: 1px solid rgba(255, 177, 74, 0.24);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(15, 20, 27, 0.99), rgba(7, 11, 17, 0.99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow-y: auto;
}
.email-close { position: absolute; top: 16px; right: 16px; }
.email-shell h2 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.email-lede {
  max-width: 40ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.email-address {
  margin: 22px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.email-status {
  min-height: 16px;
  margin-top: 12px;
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.email-default {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.email-default:hover { color: var(--muted); }
@media (max-width: 560px) {
  .email-shell { padding: 28px 22px 24px; }
  .email-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Newsletter prompt
   -------------------------------------------------------------------------- */
.newsletter-dialog .email-shell {
  border-color: rgba(94, 231, 255, 0.24);
}
.newsletter-dialog h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-soft);
}
.newsletter-dialog-form { margin-top: 22px; }
.newsletter-dialog-form input { min-width: 0; }
.newsletter-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}
.newsletter-dismiss span { transition: transform 0.2s var(--ease-out); }
.newsletter-dismiss:hover { color: var(--ink); }
.newsletter-dismiss:hover span { transform: translateX(3px); }
.newsletter-dismiss:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.newsletter-dialog .form-note { margin-top: 14px; }
.newsletter-dialog .form-note a {
  border-bottom: 1px solid var(--line-strong);
}
.newsletter-dialog .form-note a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .newsletter-dialog-form { flex-direction: column; }
  .newsletter-dialog-form input,
  .newsletter-dialog-form .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Search dialog
   -------------------------------------------------------------------------- */
.search-dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 96px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.search-dialog::backdrop {
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}
.search-dialog[open] .search-shell { animation: popIn 0.3s var(--ease-out); }
.search-shell {
  border: 1px solid rgba(94, 231, 255, 0.2);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(13, 20, 30, 0.99), rgba(7, 11, 17, 0.99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}
.search-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.search-icon { width: 18px; height: 18px; color: var(--cyan); flex: 0 0 auto; }
.search-top input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
  outline: none;
}
.search-top input::placeholder { color: var(--faint); }
.search-top input::-webkit-search-cancel-button { display: none; }
.search-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.search-close:hover { color: var(--ink); border-color: var(--line-strong); }
.search-close svg { width: 14px; height: 14px; }

.search-body { max-height: min(420px, calc(100vh - 260px)); overflow-y: auto; padding: 10px; }
.search-label {
  padding: 6px 10px 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.search-results li + li { margin-top: 2px; }
.search-result {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  transition: background 0.18s ease;
}
.search-result:hover,
.search-result:focus-visible { background: rgba(94, 231, 255, 0.065); }
.search-result:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.search-result-type {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.search-result-title {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-meta {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
}
.search-empty { padding: 22px 12px; color: var(--faint); font-size: 13px; }
.search-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 17px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.search-foot span { display: inline-flex; align-items: center; gap: 5px; }
.search-foot kbd { padding: 1px 4px; font-size: 9.5px; }
.search-foot span:last-child { margin-left: auto; }

/* --------------------------------------------------------------------------
   Writing archive
   -------------------------------------------------------------------------- */
.archive-page {
  padding-top: clamp(118px, 14vw, 168px);
}
.archive-hero {
  padding-bottom: clamp(38px, 6vw, 64px);
  border-bottom: 1px solid var(--line-strong);
}
.archive-title {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(54px, 8.4vw, 112px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.058em;
}
.archive-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--amber-soft);
}
.archive-lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.011em;
}
.archive-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 36px;
  margin-top: 30px;
}
.archive-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.archive-stats strong {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.archive-stats span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.archive-section { padding-top: clamp(64px, 7vw, 96px); }
.archive-section[id] { scroll-margin-top: 92px; }
.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.archive-filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.archive-filter span {
  margin-left: 5px;
  color: var(--faint);
}
.archive-filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.archive-filter[aria-pressed="true"] {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink-on-accent);
}
.archive-filter[aria-pressed="true"] span { color: rgba(23, 16, 6, 0.62); }
.archive-count {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html.no-js .archive-filters { display: none; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}
.archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 231, 255, 0.28);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.8);
}
.archive-card[hidden] { display: none; }
.archive-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}
.archive-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.8s var(--ease-out), filter 0.6s ease;
}
.archive-card:hover .archive-card-media img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}
.archive-card-index {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.76);
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}
.archive-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
}
.archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.archive-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  transition: color 0.2s ease;
}
.archive-card:hover .archive-card-title { color: var(--cyan-soft); }
.archive-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.archive-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 6px;
}
.archive-card-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.archive-empty {
  padding: 28px 4px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-summary {
  max-width: 230px;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.archive-project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}
.archive-project:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 177, 74, 0.3);
}
.archive-project-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}
.archive-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s var(--ease-out), filter 0.5s ease;
}
.archive-project:hover .archive-project-media img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.archive-project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}
.archive-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.archive-project-meta span { color: var(--amber-soft); }
.archive-project h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.archive-project h3 a:hover { color: var(--amber-soft); }
.archive-project-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.archive-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.archive-project-links a {
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.archive-project-links a:hover { color: var(--ink); }

.cert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.cert-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding 0.3s var(--ease-out);
}
.cert-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(255, 177, 74, 0.055), transparent 80%);
}
.cert-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 177, 74, 0.28);
  border-radius: 13px;
  background: rgba(255, 177, 74, 0.05);
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.cert-main { display: grid; gap: 3px; min-width: 0; }
.cert-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.cert-issuer {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cert-arrow { color: var(--faint); font-size: 14px; }
.cert-row:hover .cert-arrow { color: var(--amber); }

.archive-source {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.archive-source a { color: var(--muted); border-bottom: 1px solid var(--line); }
.archive-source a:hover { color: var(--cyan-soft); }
.archive-source code { color: var(--amber-soft); font-family: var(--font-mono); }

.archive-work-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
  padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3.2vw, 36px);
  border: 1px solid rgba(255, 177, 74, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(255, 177, 74, 0.1), rgba(94, 231, 255, 0.035) 62%, transparent),
    rgba(8, 14, 21, 0.86);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease;
}
.archive-work-strip::after {
  content: "";
  position: absolute;
  top: -120px;
  right: 8%;
  width: 340px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 177, 74, 0.2), transparent 68%);
  filter: blur(16px);
  pointer-events: none;
}
.archive-work-strip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 177, 74, 0.48);
}
.archive-work-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}
.archive-work-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.archive-work-copy strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.archive-work-copy > span:last-child {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.archive-work-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 177, 74, 0.45);
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.archive-work-cta .icon { width: 14px; height: 14px; }

@media (max-width: 1180px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .archive-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-summary { display: none; }
  .notes-list a { grid-template-columns: 14px minmax(0, 1fr) 62px; }
}
@media (max-width: 780px) {
  .archive-page { padding-top: 112px; }
  .archive-title { font-size: clamp(46px, 12vw, 72px); }
  .archive-stats { gap: 10px 24px; }
  .archive-stats strong { font-size: 24px; }
  .cert-list { grid-template-columns: 1fr; }
  .cert-row { padding: 17px 4px; }
}
@media (max-width: 560px) {
  .archive-grid,
  .archive-projects { grid-template-columns: 1fr; }
  .archive-card-body { padding: 16px; }
  .archive-card-desc { -webkit-line-clamp: 4; }
  .archive-toolbar { align-items: flex-start; flex-direction: column; }
  .archive-filter { min-height: 40px; }
}

/* --------------------------------------------------------------------------
   Local article, note and project pages
   -------------------------------------------------------------------------- */
.article-page { padding-top: clamp(118px, 14vw, 168px); }
main.article-page > article.article-page { padding-top: 0; }
.article-head {
  max-width: 1040px;
  padding-bottom: clamp(28px, 4vw, 46px);
}
.article-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-crumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.article-crumb a:hover { color: var(--cyan-soft); }
.article-crumb span[aria-hidden] { color: var(--line-strong); }
.article-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.article-kicker span {
  color: var(--faint);
  letter-spacing: 0.1em;
}
.article-title {
  max-width: 980px;
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.058em;
  text-wrap: balance;
}
.article-page--zettelkasten .article-title,
.article-page--projects .article-title {
  font-size: clamp(42px, 5.6vw, 78px);
}
.article-standfirst {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  letter-spacing: -0.015em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.article-meta span + span::before {
  content: "·";
  margin-right: 20px;
  color: var(--line-strong);
}
.article-head-tags { margin-top: 18px; }
.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.article-tag-list li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-cover {
  max-width: 1120px;
  margin-bottom: clamp(44px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 64px);
  max-width: 1040px;
}
.article-layout--solo {
  display: block;
  max-width: 800px;
}
.article-toc {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
  scrollbar-width: thin;
}
.toc-label {
  margin-bottom: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.toc-list {
  display: grid;
  gap: 2px;
  list-style: none;
}
.toc-list li[data-depth="3"] { padding-left: 11px; }
.toc-list a {
  display: block;
  padding: 5px 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.toc-list a:hover,
.toc-list a[data-active="true"] { color: var(--cyan-soft); }
.article-toc-mobile { display: none; }
.article-content { min-width: 0; }
.article-page--zettelkasten .article-layout--solo,
.article-page--projects .article-layout--solo { max-width: 820px; }

.prose {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 17.5px);
  line-height: 1.82;
  letter-spacing: 0.002em;
}
.prose > * + * { margin-top: 1.35em; }
.prose h2,
.prose h3,
.prose h4 {
  position: relative;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  scroll-margin-top: 112px;
}
.prose h2 {
  margin-top: 2.5em;
  font-size: clamp(27px, 3vw, 36px);
}
.prose h3 {
  margin-top: 2em;
  font-size: clamp(21px, 2.2vw, 27px);
}
.prose h4 {
  margin-top: 1.8em;
  font-size: 19px;
}
.prose > h2:first-child,
.prose > h3:first-child { margin-top: 0; }
.heading-permalink {
  position: absolute;
  top: 0;
  left: -0.9em;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.58em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.heading-permalink::before { content: "#"; }
.prose h2:hover .heading-permalink,
.prose h3:hover .heading-permalink,
.prose h4:hover .heading-permalink { opacity: 0.8; }
.prose p { margin: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); }
.prose a {
  color: var(--cyan-soft);
  border-bottom: 1px solid rgba(94, 231, 255, 0.3);
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.prose a:hover {
  color: var(--ink);
  border-color: var(--cyan);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.4em;
  padding-left: 1.35em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--amber); }
.prose li > ul,
.prose li > ol { margin-top: 0.45em; }
.prose code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 0.82em;
  overflow-wrap: anywhere;
}
.prose blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  border-left: 2px solid var(--amber);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 177, 74, 0.045);
  color: var(--ink);
  font-size: 1.02em;
  line-height: 1.7;
}
.prose blockquote p { margin: 0; }
.prose blockquote > blockquote { margin: 0; border-left-color: var(--line-strong); }
.prose hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose img,
.prose video {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.prose video { margin-top: 1.4em; }
.prose .legacy-figure {
  margin: 2em 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}
.prose .legacy-figure img {
  border: 0;
  border-radius: 9px;
}
.prose .legacy-figure figcaption {
  padding: 10px 4px 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
}
.legacy-lead {
  margin: 2em 0;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
  color: var(--ink) !important;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px) !important;
  font-style: italic;
  line-height: 1.28 !important;
  letter-spacing: -0.015em;
}
.legacy-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 177, 74, 0.3);
  border-radius: 999px;
  background: rgba(255, 177, 74, 0.08);
  color: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legacy-alert {
  margin: 2em 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 177, 74, 0.2);
  border-left: 2px solid var(--amber);
  border-radius: 0 13px 13px 0;
  background: rgba(255, 177, 74, 0.045);
  color: var(--muted);
}
.legacy-alert > :first-child { margin-top: 0; }
.legacy-alert > :last-child { margin-bottom: 0; }
.legacy-alert-warning,
.legacy-alert-danger {
  border-color: rgba(255, 120, 120, 0.26);
  border-left-color: #ff7878;
  background: rgba(255, 120, 120, 0.045);
}
.legacy-github {
  margin: 1.8em 0;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}
.legacy-github a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.legacy-github-repo { margin-left: auto; color: var(--faint); }
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.8em 0;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.prose th {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prose tr:last-child td { border-bottom: 0; }
.prose .code-block {
  margin: 1.8em 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0b1119;
}
.prose .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.code-copy {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.code-copy:hover,
.code-copy.is-copied {
  color: var(--cyan-soft);
  border-color: rgba(94, 231, 255, 0.35);
}
.prose .code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: #0b1119 !important;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  tab-size: 2;
}
.prose .code-block code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 24px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-foot-label {
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.project-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.project-link-list a:hover {
  color: var(--ink);
  border-color: rgba(94, 231, 255, 0.34);
  background: rgba(94, 231, 255, 0.05);
}

.article-work-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-top: clamp(52px, 7vw, 90px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 177, 74, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(130deg, rgba(255, 177, 74, 0.08), rgba(94, 231, 255, 0.035) 58%, transparent),
    rgba(8, 14, 21, 0.9);
  overflow: hidden;
}
.article-work-panel .work-glow {
  top: -180px;
  right: -80px;
  width: 460px;
  height: 460px;
  opacity: 0.7;
}
.article-work-copy { position: relative; z-index: 1; }
.article-work-copy h2 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.article-work-copy h2 em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--amber-soft);
}
.article-work-copy p:not(.section-kicker) {
  max-width: 560px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.article-work-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.related-section { margin-top: clamp(56px, 7vw, 86px); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 231, 255, 0.28);
}
.related-card-media { overflow: hidden; aspect-ratio: 16 / 9; }
.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.related-card:hover .related-card-media img { transform: scale(1.035); }
.related-card-body { display: grid; gap: 5px; padding: 13px 14px 15px; }
.related-card-meta {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.related-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.article-back {
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; max-width: 800px; }
  .article-toc { display: none; }
  .article-toc-mobile {
    display: block;
    margin-bottom: 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  .article-toc-mobile summary {
    padding: 12px 15px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .article-toc-mobile .toc-list { padding: 0 15px 14px; }
  .article-work-panel { grid-template-columns: 1fr; align-items: start; }
  .archive-work-strip { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 780px) {
  .article-head { padding-bottom: 26px; }
  .article-title { font-size: clamp(40px, 10vw, 62px); }
  .article-standfirst { font-size: 17px; }
  .article-cover { margin-bottom: 38px; border-radius: 18px; }
  .prose { font-size: 16px; line-height: 1.78; }
  .prose h2 { margin-top: 2.1em; }
  .related-grid { grid-template-columns: 1fr; }
  .article-work-actions { flex-direction: column; align-items: stretch; }
  .article-work-actions .btn { width: 100%; }
  .article-meta span + span::before { margin-right: 12px; }
}
@media (max-width: 560px) {
  .hero-open {
    align-items: flex-start;
    border-radius: 14px;
    line-height: 1.55;
  }
  .hero-open a { white-space: nowrap; }
  .article-page { padding-top: 108px; }
  .article-kicker { margin-top: 22px; }
  .article-title { font-size: clamp(38px, 11.6vw, 54px); letter-spacing: -0.05em; }
  .article-page--zettelkasten .article-title,
  .article-page--projects .article-title { font-size: clamp(37px, 10.6vw, 52px); }
  .article-meta { gap: 6px 12px; }
  .prose .code-block pre { font-size: 11px; padding: 13px; }
  .article-work-panel { padding: 22px 18px; border-radius: 18px; }
  .article-tag-list li { font-size: 8px; }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes rise {
  to { transform: translateY(0); }
}
@keyframes panelIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-26px, 34px, 0) scale(1.06); }
  100% { transform: translate3d(20px, -22px, 0) scale(0.96); }
}
@keyframes floaty {
  0% { transform: translateY(0); }
  100% { transform: translateY(-9px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 231, 255, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(94, 231, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 231, 255, 0); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes borderSpin {
  to { --angle: 360deg; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .cursor-glow { display: none; }
  .ambient-blob-b,
  .ambient-blob-c { display: none; }
}

@media (max-width: 1320px) {
  .float-card { display: none; }
}

@media (max-width: 1180px) {
  .availability { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr); }
  .float-card-b { left: -18px; }
  .float-card-a { right: -8px; }
  .footer-top { grid-template-columns: minmax(0, 1.2fr) 0.55fr 0.6fr; }
  .footer-col-cta { grid-column: 1 / -1; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
  .footer-col-cta h2 { margin: 0; }
  .footer-col-cta p { margin: 0; max-width: none; }
}

@media (max-width: 1020px) {
  .primary-nav { display: none; }
  .mobile-menu { display: block; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vw, 58px);
    padding-block: clamp(120px, 16vw, 156px) 56px;
  }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(100%, 640px); }
  .float-card { display: none; }
  .hero-lede { max-width: 620px; }

  .writing-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .all-articles { grid-column: 1 / -1; }
  .mini-card { grid-template-columns: 1fr; align-items: stretch; }
  .mini-media { min-height: 0; aspect-ratio: 16 / 9; }
  .mini-body { padding: 4px 6px 6px; }

  .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .elsewhere-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .elsewhere-card { min-height: 154px; }
  .work-panel { grid-template-columns: 1fr; gap: 30px; }
  .work-copy h2 { font-size: clamp(34px, 6vw, 52px); }
  .work-side {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-word { font-size: 170px; }
}

@media (max-width: 780px) {
  .header-cta { display: none; }
  .search-trigger-label { display: none; }
  .search-trigger kbd { display: none; }
  .search-trigger { width: 38px; justify-content: center; padding: 0; }

  .hero-title { font-size: clamp(58px, 15vw, 96px); }
  .panel-tag { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-head .text-link { align-self: flex-start; }

  .article-row { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 14px; padding: 16px 6px; }
  .work-fit-grid { grid-template-columns: 1fr; }
  .work-mode-grid { grid-template-columns: 1fr; gap: 0; }
  .work-mode { padding: 18px 0; }
  .work-proof-list a { grid-template-columns: 82px minmax(0, 1fr) 18px; gap: 14px; padding: 18px 4px; }
  .work-proof-list strong { font-size: 25px; }
  .topic-row { grid-template-columns: 38px minmax(0, 1fr) 36px; gap: 14px; padding: 22px 6px; }
  .topic-count { display: none; }
  .topic-row:hover { padding-left: 12px; }
  .topic-desc { max-width: 92%; }

  .elsewhere-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col-cta { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; }

  .newsletter-action { padding: 18px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .brand-word { font-size: 16px; }
  .brand-mark { width: 27px; height: 27px; }
  .header-actions { gap: 7px; }

  .hero-grid { padding-top: 112px; }
  .hero-title { font-size: clamp(54px, 16.2vw, 76px); }
  .hero-lede { font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .work-facts li { flex-basis: 100%; padding: 12px 0; border-top: 1px solid var(--line); border-left: 0; }
  .work-facts li:first-child { border-top: 0; padding-top: 0; }
  .work-facts li:last-child { padding-bottom: 0; }
  .work-contact-actions .btn { width: 100%; }
  .work-final-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .work-final-actions .btn { width: 100%; }
  .spark-panel { transform: none; }
  .panel-body { padding: 19px 18px 17px; }
  .panel-head { padding: 11px 14px; }
  .panel-metric { font-size: 58px; }
  .bar-row { grid-template-columns: 72px minmax(0, 1fr) 34px; gap: 9px; }
  .panel-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .panel-foot a { align-self: flex-end; }

  .mini-card { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr; }
  .all-articles { grid-column: auto; }

  .section-head h2 { font-size: 32px; }
  .section-head-compact h2 { font-size: 28px; }

  .notes-list a { grid-template-columns: 14px minmax(0, 1fr) 54px; gap: 10px; padding: 15px 14px; }
  .note-tags { display: none; }
  .terminal-head, .terminal-foot { padding-inline: 14px; }

  .elsewhere-grid { grid-template-columns: 1fr; }
  .elsewhere-card { min-height: 0; }

  .newsletter { padding: 24px 20px; border-radius: 22px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form .btn { width: 100%; }
  .newsletter-meta { gap: 8px 14px; }
  .newsletter-word { display: none; }

  .footer-top { gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .search-result { grid-template-columns: 56px minmax(0, 1fr); }
  .search-result-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-result-meta { display: none; }
  .search-foot span:nth-child(2) { display: none; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 52px; }
  .panel-metric { font-size: 52px; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
.reduce-motion .cursor-glow,
.reduce-motion .spotlight::after { display: none; }
.reduce-motion .ambient-blob,
.reduce-motion .float-card,
.reduce-motion .ticker-track { animation: none; }

@media (prefers-reduced-transparency: reduce) {
  .ambient-grain { display: none; }
  .site-header.is-scrolled { background: rgba(5, 7, 11, 0.97); backdrop-filter: none; }
  .float-card,
  .newsletter-action,
  .search-dialog::backdrop,
  .email-dialog::backdrop { backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .hero-word { transform: none; opacity: 1; }
  .js .hero-visual { opacity: 1; transform: none; }
  .js.reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .ticker { mask-image: none; -webkit-mask-image: none; }
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .ticker-group:nth-child(2) { display: none; }
  .ticker-group { flex-wrap: wrap; justify-content: center; padding-inline: 12px; gap: 8px 18px; }
  .cursor-glow { display: none; }
  .article-preview { display: none; }
  .ambient-blob { animation: none; }
  .float-card { animation: none; }
  .newsletter::before { animation: none; }
  .terminal-cursor { animation: none; }
  .pulse-dot, .live-dot { animation: none; }
}

/* Search is JS-only in the prototype; keep the control honest without JS. */
html:not(.js) [data-search-open],
html:not(.js) #search-dialog,
html:not(.js) #email-dialog,
html:not(.js) .article-preview { display: none !important; }
