/* ===========================================================
   VIZULABS /v1/ — Home page
   Same brutalist editorial language as the coming-soon page.
=========================================================== */

:root {
  --canvas:        #0a0a0a;
  --surface-1:     #131313;
  --surface-2:     #1c1c1c;
  --border:        #2a2a2a;
  --border-strong: #3d3d3d;

  --content-strong:  #fafafa;
  --content-default: #c4c4c4;
  --content-muted:   #6e6e6e;

  --accent:      #c8ff00;
  --accent-warm: #ff5b1f;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-text:    'Inter Tight', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --canvas:        #f5f5f3;
  --surface-1:     #ebebe7;
  --surface-2:     #dedeb8;
  --border:        #d4d4cc;
  --border-strong: #b0b0a8;
  --content-strong:  #0a0a0a;
  --content-default: #2a2a2a;
  --content-muted:   #7a7a76;
  --accent:      #377400;
  --accent-warm: #d24a14;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--canvas);
  color: var(--content-default);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* `clip` (not `hidden`) prevents horizontal scroll WITHOUT breaking
     position:sticky on descendants like .site-header. */
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
}

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

/* ===========================================================
   BACKGROUND LAYERS
=========================================================== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  animation: gridPan 80s linear infinite;
}
@keyframes gridPan {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}
.bg-shapes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.shape { position: absolute; will-change: transform; }
.shape.sq  { width: 8px; height: 8px; background: var(--accent); opacity: 0.55; }
.shape.dm  { width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); opacity: 0.5; }
.shape.od  { width: 14px; height: 14px; border: 1.5px solid var(--accent); transform: rotate(45deg); opacity: 0.5; }
.shape.dot { width: 4px; height: 4px; background: var(--content-strong); border-radius: 50%; opacity: 0.3; }
.shape.ln  { width: 24px; height: 1px; background: var(--accent); opacity: 0.4; }
.shape.os  { width: 12px; height: 12px; border: 1.5px solid var(--accent); opacity: 0.45; }

.drift-1 { top: 12%; left:  8%; animation: drift1 22s ease-in-out infinite; }
.drift-2 { top: 24%; right: 12%; animation: drift2 28s ease-in-out infinite; }
.drift-3 { top: 46%; left:  4%; animation: drift3 26s ease-in-out infinite; }
.drift-4 { top: 60%; right: 6%;  animation: drift4 24s ease-in-out infinite; }
.drift-5 { top: 78%; left: 22%; animation: drift5 30s ease-in-out infinite; }
.drift-6 { top: 14%; right:28%; animation: drift6 32s ease-in-out infinite; }
.drift-7 { top: 38%; left: 38%; animation: drift7 34s ease-in-out infinite; }
.drift-8 { top: 70%; right:30%; animation: drift8 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0);}50%{transform:rotate(180deg) translate(60px,40px);} }
@keyframes drift2 { 0%,100%{transform:translate(0,0);}50%{transform:translate(-50px,70px) rotate(225deg);} }
@keyframes drift3 { 0%,100%{transform:translate(0,0);}50%{transform:translate(80px,-30px) rotate(-90deg);} }
@keyframes drift4 { 0%,100%{transform:rotate(45deg) translate(0,0);}50%{transform:rotate(135deg) translate(40px,-50px);} }
@keyframes drift5 { 0%,100%{transform:translate(0,0);}50%{transform:translate(-60px,-40px);} }
@keyframes drift6 { 0%,100%{transform:translate(0,0);}50%{transform:translate(50px,80px);} }
@keyframes drift7 { 0%,100%{transform:translate(0,0);}50%{transform:translate(-40px,60px);} }
@keyframes drift8 { 0%,100%{transform:rotate(45deg) translate(0,0);}50%{transform:rotate(-45deg) translate(70px,-30px);} }
@media (prefers-reduced-motion: reduce) {
  .bg-grid, .shape { animation: none; }
}

/* ===========================================================
   HEADER
=========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 36px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { display: block; height: 36px; width: auto; }
.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark  { display: block; }

.primary-nav { display: flex; gap: 28px; }
.primary-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.primary-nav a:hover { color: var(--content-strong); }
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s, left 0.25s;
}
.primary-nav a:hover::after { width: 100%; left: 0; }

.header-right { display: flex; align-items: center; gap: 24px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-muted);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.75); }
}
.theme-toggle {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-strong);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Hamburger toggle — hidden on desktop, shown in the mobile breakpoint. */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  appearance: none;
  padding: 0 9px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: stretch;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--content-strong);
  transition: transform 0.22s ease, opacity 0.18s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
}

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative;
  padding: 120px 36px 100px;
  max-width: 1280px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 9.2vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--content-strong);
  margin-bottom: 36px;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hero-sub {
  font-family: var(--font-text);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--content-default);
  max-width: 660px;
  margin-bottom: 48px;
}

.cta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--content-strong);
  color: var(--canvas);
  border: 1px solid var(--content-strong);
}
.btn-primary:hover { background: var(--accent); color: var(--canvas); border-color: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--content-strong);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 18px 26px; font-size: 13px; }

.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===========================================================
   SECTION COMMON
=========================================================== */
.section {
  position: relative;
  padding: 96px 36px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-head {
  display: flex; flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 760px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--content-strong);
}
.section-title .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.section-sub {
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--content-default);
  max-width: 560px;
}

/* ===========================================================
   WORK GRID
=========================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.work-thumb {
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.work-thumb[data-c="lime"] { background: color-mix(in srgb, var(--accent) 22%, var(--surface-1)); }
.work-thumb[data-c="warm"] { background: color-mix(in srgb, var(--accent-warm) 14%, var(--surface-1)); }
.work-thumb[data-c="cool"] { background: color-mix(in srgb, #6e9bff 16%, var(--surface-1)); }
.thumb-mark {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 64px; color: var(--content-strong); letter-spacing: -4px;
  transform: skewX(-4deg);
  opacity: 0.85;
}
.work-meta { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.mono-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-muted);
}
.work-meta h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  color: var(--content-strong); letter-spacing: -0.01em;
}
.work-meta p { color: var(--content-default); font-size: 15px; }
.work-link {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.work-link .arrow { transition: transform 0.2s; }
.work-card:hover .work-link .arrow { transform: translateX(4px); }

/* ===========================================================
   SERVICES GRID
=========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--canvas);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--surface-1); }
.service-num {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-muted);
}
.service-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  color: var(--content-strong); letter-spacing: -0.015em;
}
.service-card p { color: var(--content-default); font-size: 15px; }
.service-list {
  list-style: none;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  margin-top: auto;
}
.service-list li {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--content-default);
}

/* ===========================================================
   PROCESS
=========================================================== */
.process-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stage {
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: background 0.2s;
}
.stage:last-child { border-right: 0; }
.stage::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.stage.active::before, .stage:hover::before { opacity: 1; }
.stage-num {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--content-muted);
}
.stage-label {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--content-strong); letter-spacing: -0.01em;
}
.stage.active .stage-label { color: var(--accent); }
.stage-note {
  font-family: var(--font-text); font-size: 13px; color: var(--content-default);
  line-height: 1.4;
}

/* ===========================================================
   STUDIO / ABOUT
=========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-body {
  font-family: var(--font-text); font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.55; color: var(--content-default);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stats > div {
  background: var(--canvas);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.stats dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: -0.03em;
  color: var(--content-strong);
}
.stats dd {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-muted);
}

/* ===========================================================
   CONTACT CTA
=========================================================== */
.section-contact { padding-top: 40px; }
.cta-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  max-width: 880px;
  margin: 0 auto;
}
.cta-card::before, .cta-card::after,
.cta-card .corner-bl, .cta-card .corner-br {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}
.cta-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.cta-card::after  { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.cta-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-muted);
}
.cta-live { color: var(--accent); }
.cta-body { padding: 56px 32px 36px; }
.cta-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--content-strong);
  margin-bottom: 20px;
}
.cta-title .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.cta-sub { font-size: 17px; color: var(--content-default); margin-bottom: 28px; max-width: 560px; }
.cta-foot {
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--content-muted);
}

/* ===========================================================
   FOOTER · Sitemap Grid (B)
=========================================================== */
.site-footer {
  margin-top: 60px;
  padding: 48px 36px 22px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
  color: var(--content-default);
}
.site-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.site-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer-logo { height: 40px; width: auto; display: block; }
.site-footer-brand p {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--content-default);
  max-width: 340px;
}
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.site-footer-col {
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--content-muted);
  margin-bottom: 4px;
}
.site-footer-col a {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--content-default);
  transition: color 0.2s;
}
.site-footer-col a:hover { color: var(--accent); }
.site-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 1080px) {
  .site-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .site-footer { padding: 36px 20px 18px; }
  .site-footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .site-footer-bottom { flex-direction: column; gap: 6px; }
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 1080px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-rail { grid-template-columns: repeat(3, 1fr); }
  .process-rail .stage:nth-child(3) { border-right: 0; }
  .process-rail .stage:nth-child(n+4) { border-top: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  /* ── HEADER: fixed at top, always above everything ── */
  .site-header {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    padding: 12px 18px;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    z-index: 100 !important;        /* ALWAYS on top */
  }
  .brand-logo { height: 28px; }
  body { padding-top: 64px; }       /* compensate for the fixed header */

  .header-right .status { display: none; }
  .header-right { gap: 10px; }
  .theme-toggle { padding: 7px 10px; }

  /* ──────────────────────────────────────────────────────────
     MENU DRAWER · covers the entire viewport BELOW the header.
     CLOSED state: display:none (no layout, no paint, no leaks).
     OPEN state: display:flex with all positioning re-asserted.
     `display` toggle is the most bulletproof way to hide/show
     this on mobile — beats any cascade trying to override
     opacity/visibility.
  ────────────────────────────────────────────────────────── */
  .primary-nav {
    display: none !important;
  }
  body.is-nav-open .primary-nav {
    display: flex !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    z-index: 90 !important;          /* below header (100), above page */
    background: var(--canvas) !important;

    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 16px 24px 40px !important;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Each link: big, tappable, ~64px tall */
  .primary-nav a {
    display: block !important;
    width: 100% !important;
    padding: 22px 4px !important;
    font-family: var(--font-mono) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--content-strong) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--border) !important;
    line-height: 1 !important;
  }
  .primary-nav a::after { display: none !important; }
  .primary-nav a.is-active { color: var(--accent) !important; }
  .primary-nav a.is-active::before {
    content: "// ";
    margin-right: 4px;
  }

  /* lock body scroll while open */
  body.is-nav-open { overflow: hidden; }
  .hero { padding: 80px 20px 64px; }
  .section { padding: 64px 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-rail { grid-template-columns: repeat(2, 1fr); }
  .process-rail .stage:nth-child(2n) { border-right: 0; }
  .process-rail .stage:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stats { grid-template-columns: 1fr; }
  .cta-body { padding: 36px 22px 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 20px; }
}

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

/* ===========================================================
   SCROLL-TRIGGERED FADE-UP
=========================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger inside a section using data-i index */
.fade-up[data-i="0"] { transition-delay: 0ms; }
.fade-up[data-i="1"] { transition-delay: 80ms; }
.fade-up[data-i="2"] { transition-delay: 160ms; }
.fade-up[data-i="3"] { transition-delay: 240ms; }
.fade-up[data-i="4"] { transition-delay: 320ms; }
.fade-up[data-i="5"] { transition-delay: 400ms; }
.fade-up[data-i="6"] { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   MANIFESTO
=========================================================== */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.manifesto-card {
  background: var(--canvas);
  padding: 36px 28px 32px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: background 0.3s, transform 0.3s;
}
.manifesto-card:hover {
  background: var(--surface-1);
  transform: translateY(-2px);
}
.manifesto-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.manifesto-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--content-strong);
}
.manifesto-card h3 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.manifesto-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--content-default);
}

/* ===========================================================
   SERVICE ICONS — animated SVGs
=========================================================== */
.service-icon {
  width: 80px;
  height: 64px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.service-card:hover .service-icon {
  border-color: var(--accent);
}

/* Bars (Visualization) */
.icon-bars .bar { fill: var(--content-strong); transform-origin: bottom; animation: barGrow 2.6s ease-in-out infinite; }
.icon-bars .bar-1 { animation-delay: 0s; }
.icon-bars .bar-2 { animation-delay: 0.3s; }
.icon-bars .bar-3 { animation-delay: 0.6s; fill: var(--accent); }
.icon-bars .axis  { stroke: var(--content-muted); stroke-width: 1; }
.icon-bars .trend { stroke: var(--accent); stroke-width: 2; stroke-linecap: square; }
@keyframes barGrow {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* Grid (Design) — cells with one flipping */
.icon-grid .cell { fill: none; stroke: var(--content-strong); stroke-width: 2; transform-origin: center; }
.icon-grid .cell-1 { animation: gridFlip 3s ease-in-out infinite; }
.icon-grid .cell-2 { animation: gridFlip 3s ease-in-out infinite 0.3s; }
.icon-grid .cell-3 { animation: gridFlip 3s ease-in-out infinite 0.6s; }
.icon-grid .cell-4 { animation: gridFill 3s ease-in-out infinite 0.9s; }
@keyframes gridFlip {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(0deg); opacity: 0.4; }
}
@keyframes gridFill {
  0%, 100% { fill: none; stroke: var(--content-strong); }
  50%      { fill: var(--accent); stroke: var(--accent); }
}

/* Terminal (Code) */
.icon-terminal .screen { fill: none; stroke: var(--content-strong); stroke-width: 2; }
.icon-terminal .dot    { fill: var(--content-muted); }
.icon-terminal .prompt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  fill: var(--accent);
}
.icon-terminal .cursor {
  fill: var(--content-strong);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 50%  { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Nodes (AI) — pulsing graph */
.icon-nodes .edge {
  stroke: var(--content-muted);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: edgeFlow 2.2s linear infinite;
}
.icon-nodes .edge-1 { animation-delay: 0s; }
.icon-nodes .edge-2 { animation-delay: 0.3s; }
.icon-nodes .edge-3 { animation-delay: 0.6s; }
.icon-nodes .edge-4 { animation-delay: 0.9s; }
@keyframes edgeFlow {
  to { stroke-dashoffset: -16; }
}
.icon-nodes .node { fill: var(--content-strong); transform-origin: center; animation: nodePulse 1.8s ease-in-out infinite; }
.icon-nodes .node-1 { animation-delay: 0s; }
.icon-nodes .node-2 { animation-delay: 0.2s; fill: var(--accent); }
.icon-nodes .node-3 { animation-delay: 0.4s; }
.icon-nodes .node-4 { animation-delay: 0.6s; fill: var(--accent); }
@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .icon-bars .bar, .icon-grid .cell, .icon-terminal .cursor,
  .icon-nodes .edge, .icon-nodes .node { animation: none; }
}

/* ===========================================================
   PROCESS — sequential reveal on scroll
=========================================================== */
.process-rail .stage {
  opacity: 0.35;
  transition: opacity 0.5s ease, background 0.3s;
}
.process-rail.is-visible .stage { opacity: 1; }
.process-rail.is-visible .stage:nth-child(1) { transition-delay: 0ms; }
.process-rail.is-visible .stage:nth-child(2) { transition-delay: 120ms; }
.process-rail.is-visible .stage:nth-child(3) { transition-delay: 240ms; }
.process-rail.is-visible .stage:nth-child(4) { transition-delay: 360ms; }
.process-rail.is-visible .stage:nth-child(5) { transition-delay: 480ms; }
.process-rail.is-visible .stage:nth-child(6) { transition-delay: 600ms; }
.process-rail.is-visible .stage:nth-child(6) .stage-label { color: var(--accent); }
.process-rail.is-visible .stage:nth-child(6)::before { opacity: 1; }

/* ===========================================================
   STACK
=========================================================== */
.stack-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface-1);
}
.stack-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  color: var(--content-default);
  background: var(--canvas);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.stack-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===========================================================
   PRINCIPLES
=========================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.principle {
  background: var(--canvas);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.25s;
}
.principle:hover { background: var(--surface-1); }
.principle-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--content-strong);
}
.principle p {
  font-size: 13px;
  color: var(--content-default);
  line-height: 1.5;
}

/* ===========================================================
   FAQ
=========================================================== */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--content-strong);
}
.faq-toggle {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s;
  width: 24px; text-align: center;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--accent); }
.faq-a {
  padding: 0 4px 22px;
  max-width: 720px;
}
.faq-a p { color: var(--content-default); font-size: 15px; line-height: 1.55; }

/* ===========================================================
   RESPONSIVE — extend
=========================================================== */
@media (max-width: 1080px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid .principle:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid .principle:nth-child(5) { grid-column: auto; }
}

/* active nav state (set by IntersectionObserver) */
.primary-nav a.is-active { color: var(--content-strong); }
.primary-nav a.is-active::after { width: 100%; left: 0; }

/* ===========================================================
   INNER PAGE LAYOUT
=========================================================== */
.page-article {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 36px;
}
.page-hero {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--content-strong);
  margin-top: 16px;
  margin-bottom: 28px;
}
.page-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.page-lead {
  font-family: var(--font-text);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--content-default);
  max-width: 720px;
}
.page-lead a { color: var(--accent); }

/* ===========================================================
   LONG-FORM PROSE
=========================================================== */
.prose {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-bottom: 80px;
}
.prose-block { position: relative; }
.prose-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.prose-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--content-strong);
  margin-bottom: 24px;
}
.prose-block h2 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.prose-block h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-top: 28px;
  margin-bottom: 14px;
}
.prose-block p {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--content-default);
  max-width: 760px;
  margin-bottom: 16px;
}
.prose-block ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.prose-block ul li {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--content-default);
}
.prose-aside {
  font-family: var(--font-mono);
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--content-muted) !important;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--surface-1);
  margin-top: 18px !important;
  max-width: 720px;
}

.prose-callout {
  border: 1px solid var(--accent);
  padding: 28px 32px;
  margin: 64px 0 80px;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.prose-callout::before, .prose-callout::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}
.prose-callout::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.prose-callout::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.callout-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.prose-callout p {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--content-default);
}

/* ===========================================================
   CAPABILITY BLOCK (capabilities page)
=========================================================== */
.capability-block {
  border-top: 1px solid var(--border);
  padding: 72px 0;
}
.capability-block:last-child {
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}
.capability-head { margin-bottom: 32px; }
.capability-head .service-icon { margin-bottom: 24px; }
.capability-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-bottom: 14px;
  display: block;
}
.capability-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--content-strong);
  margin-bottom: 16px;
}
.capability-lead {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  color: var(--content-default);
  max-width: 720px;
}
.capability-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 36px;
}
.capability-detail h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-bottom: 16px;
}
.capability-detail ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.capability-detail li {
  font-size: 15px;
  color: var(--content-default);
}
.capability-detail p {
  font-size: 15px;
  color: var(--content-default);
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid var(--border-strong);
  padding-left: 18px;
}

/* ===========================================================
   STAGE LIST (process page)
=========================================================== */
.stage-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.stage-detail {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.stage-detail:last-child { border-bottom: 1px solid var(--border); margin-bottom: 64px; }
.stage-detail > header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.stage-detail-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.stage-detail header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--content-strong);
  margin-bottom: 6px;
}
.stage-detail-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.stage-detail-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--content-default);
  margin-bottom: 18px;
  max-width: 720px;
}
.stage-detail-body h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-top: 18px;
  margin-bottom: 12px;
}
.stage-detail-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stage-detail-body li { font-size: 15px; color: var(--content-default); }

/* ===========================================================
   STACK detail (stack page)
=========================================================== */
.stack-section {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.stack-section:last-of-type { border-bottom: 1px solid var(--border); }
.stack-section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 32px;
}
.stack-group-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.stack-section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  color: var(--content-strong);
}
.stack-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stack-card {
  background: var(--canvas);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.stack-card:hover { background: var(--surface-1); }
.stack-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--content-strong);
}
.stack-card p {
  font-size: 13px;
  color: var(--content-default);
  line-height: 1.55;
}
.stack-card code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: transparent;
  padding: 0;
}

/* ===========================================================
   FAQ groups (faq page)
=========================================================== */
.faq-group {
  margin-bottom: 72px;
}
.faq-group-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 22px;
}
.link-arrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.78; }
.link-arrow.inline {
  text-transform: none;
  font-family: var(--font-text);
  font-size: inherit;
  letter-spacing: normal;
}
.link-arrow .arrow { transition: transform 0.2s; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.section-cta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===========================================================
   CONTACT page
=========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.contact-side-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.contact-checklist {
  list-style: none;
  counter-reset: contact-step;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}
.contact-checklist li {
  counter-increment: contact-step;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.55;
  color: var(--content-default);
  padding-left: 36px;
  position: relative;
}
.contact-checklist li::before {
  content: counter(contact-step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.contact-checklist li strong {
  color: var(--content-strong);
  font-weight: 500;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 64px;
}
.contact-meta-item {
  background: var(--canvas);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-meta-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.contact-meta-val {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--content-default);
}
.contact-meta-val a { color: var(--accent); }
.contact-meta-val strong { color: var(--content-strong); font-weight: 500; }

/* ===========================================================
   PREV / NEXT FOOTER
=========================================================== */
.prev-next {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pn-link {
  background: var(--canvas);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.25s;
  font-family: var(--font-mono);
}
.pn-link:hover { background: var(--surface-1); }
.pn-prev { justify-content: flex-start; }
.pn-next { justify-content: flex-end; text-align: right; }
.pn-arrow {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
}
.pn-prev:hover .pn-arrow { transform: translateX(-4px); }
.pn-next:hover .pn-arrow { transform: translateX(4px); }
.pn-meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-right: 14px;
}
.pn-next .pn-meta { margin-right: 0; margin-left: auto; }
.pn-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--content-strong);
}

/* ===========================================================
   RESPONSIVE — inner pages
=========================================================== */
@media (max-width: 1080px) {
  .capability-detail { grid-template-columns: 1fr; gap: 32px; }
  .stack-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .page-article { padding: 0 20px; }
  .page-hero { padding: 64px 0 40px; margin-bottom: 40px; }
  .stage-detail > header { flex-direction: column; gap: 8px; }
  .stage-detail-num { font-size: 40px; }
  .stack-detail-grid { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr; }
  .prev-next { grid-template-columns: 1fr; padding: 20px; }
  .pn-next { justify-content: flex-start; text-align: left; }
  .pn-next .pn-meta { margin-left: 0; }
}

/* ===========================================================
   HERO v2 — with decorative cluster artwork
=========================================================== */
.hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 96px 36px 100px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-v2 .hero-inner { padding: 0; }
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  margin-left: auto;
}
.hero-art svg { width: 100%; height: 100%; display: block; }

/* hero cluster animations */
.hc-1, .hc-2, .hc-3, .hc-4, .hc-5, .hc-6, .hc-7 {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: clusterPulse 6s ease-in-out infinite;
}
.hc-2 { fill: var(--content-strong); opacity: 0.85; animation-delay: 0.4s; }
.hc-3 { animation-delay: 0.8s; opacity: 0.7; }
.hc-4 { fill: var(--accent-warm); opacity: 0.8; animation-delay: 1.2s; }
.hc-5 { animation-delay: 1.6s; }
.hc-6 { fill: var(--content-strong); opacity: 0.6; animation-delay: 2.0s; }
.hc-7 { animation-delay: 2.4s; opacity: 0.65; }
.hc-d1, .hc-d2, .hc-d3 { fill: var(--content-strong); animation: clusterDot 2.4s ease-in-out infinite; }
.hc-d2 { animation-delay: 0.8s; }
.hc-d3 { animation-delay: 1.6s; }
.hc-l1, .hc-l2 { stroke: var(--accent); stroke-width: 2; }
@keyframes clusterPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%      { transform: rotate(180deg) scale(0.85); }
}
@keyframes clusterDot {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ===========================================================
   SHOWCASE — full-width capability rows
=========================================================== */
.showcase {
  position: relative;
  padding: 80px 36px 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.showcase-row:last-child { border-bottom: 1px solid var(--border); margin-bottom: 64px; }
.showcase-row--right .showcase-content { order: 1; }
.showcase-row--right .showcase-art     { order: 2; }
.showcase-row--left  .showcase-content { order: 2; }
.showcase-row--left  .showcase-art     { order: 1; }

.showcase-art {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 7;
  max-width: 460px;
  margin: 0 auto;
}
.showcase-art .big-icon {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid var(--border);
  background: var(--surface-1);
  padding: 18px;
}

.showcase-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-bottom: 18px;
  display: block;
}
.showcase-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--content-strong);
  margin-bottom: 18px;
}
.showcase-content h3 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.showcase-content p {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--content-default);
  margin-bottom: 22px;
  max-width: 480px;
}
.showcase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.showcase-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--content-default);
}

/* ===========================================================
   BIG ICON · VISUALIZATION
=========================================================== */
.big-viz .bv-axis  { stroke: var(--content-muted); stroke-width: 1.2; }
.big-viz .bv-grid line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.big-viz .bv-bar {
  fill: var(--content-strong);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bvBarGrow 3.6s ease-in-out infinite;
}
.big-viz .bv-b1 { animation-delay: 0.0s; }
.big-viz .bv-b2 { animation-delay: 0.12s; }
.big-viz .bv-b3 { animation-delay: 0.24s; }
.big-viz .bv-b4 { animation-delay: 0.36s; }
.big-viz .bv-b5 { animation-delay: 0.48s; }
.big-viz .bv-b6 { animation-delay: 0.60s; }
.big-viz .bv-b7 { animation-delay: 0.72s; }
.big-viz .bv-b8 { animation-delay: 0.84s; }
.big-viz .bv-highlight { fill: var(--accent); }
@keyframes bvBarGrow {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1); }
}
.big-viz .bv-trend {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: bvDraw 4s ease-in-out infinite;
}
@keyframes bvDraw {
  0%   { stroke-dashoffset: 600; }
  40%, 60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -600; }
}
.big-viz .bv-cursor {
  fill: var(--accent-warm);
  animation: bvCursor 4s ease-in-out infinite;
}
@keyframes bvCursor {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  40%  { transform: translate(-128px, 115px); opacity: 1; }
  60%  { transform: translate(-128px, 115px); opacity: 1; }
  85%  { transform: translate(96px, 25px); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0; }
}
.big-viz .bv-tag rect { fill: var(--accent); }
.big-viz .bv-tag text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--canvas);
}

/* ===========================================================
   BIG ICON · DESIGN
=========================================================== */
.big-design .bd-tok {
  transform-box: fill-box;
  transform-origin: center;
}
.big-design .bd-t1 { fill: var(--content-strong); animation: bdTokFlip 4s ease-in-out infinite 0s; }
.big-design .bd-t2 { fill: var(--accent);         animation: bdTokFlip 4s ease-in-out infinite 0.2s; }
.big-design .bd-t3 { fill: var(--accent-warm);    animation: bdTokFlip 4s ease-in-out infinite 0.4s; }
.big-design .bd-t4 { fill: var(--content-strong); opacity: 0.55; animation: bdTokFlip 4s ease-in-out infinite 0.6s; }
@keyframes bdTokFlip {
  0%, 100% { transform: rotateY(0deg); }
  50%      { transform: rotateY(180deg); }
}
.big-design .bd-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 60px;
  fill: var(--content-strong);
  letter-spacing: -0.04em;
  animation: bdTypePulse 3.6s ease-in-out infinite;
}
.big-design .bd-display.bd-accent { fill: var(--accent); animation-delay: 0.8s; }
.big-design .bd-mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 50px;
  fill: var(--content-default);
  animation: bdTypePulse 3.6s ease-in-out infinite 0.4s;
}
@keyframes bdTypePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.big-design .bd-card-bg {
  fill: var(--surface-1);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}
.big-design .bd-card-dot {
  fill: var(--accent);
  animation: bdDotPulse 2.2s ease-in-out infinite;
}
@keyframes bdDotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.big-design .bd-card-line {
  stroke: var(--content-default);
  stroke-width: 5;
  stroke-linecap: square;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: bdLineDraw 3s ease-in-out infinite;
}
.big-design .bd-cl-1 { animation-delay: 0.0s; }
.big-design .bd-cl-2 { animation-delay: 0.4s; }
@keyframes bdLineDraw {
  0%   { stroke-dashoffset: 200; }
  45%, 55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}
.big-design .bd-card-btn {
  fill: var(--content-strong);
  animation: bdBtnPulse 2.6s ease-in-out infinite;
}
@keyframes bdBtnPulse {
  0%, 100% { fill: var(--content-strong); }
  50%      { fill: var(--accent); }
}

/* ===========================================================
   BIG ICON · CODE
=========================================================== */
.big-code .bc-frame {
  fill: var(--canvas);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}
.big-code .bc-titlebar { fill: var(--surface-1); }
.big-code .bc-dot      { fill: var(--content-muted); }
.big-code .bc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  fill: var(--content-muted);
  text-transform: lowercase;
}
.big-code .bc-line {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--content-default);
  opacity: 0;
  animation: bcLine 6s ease-in-out infinite;
}
.big-code .bc-l1 { animation-delay: 0.2s; }
.big-code .bc-l2 { animation-delay: 0.8s; }
.big-code .bc-l3 { animation-delay: 1.4s; }
.big-code .bc-l4 { animation-delay: 2.0s; }
.big-code .bc-l5 { animation-delay: 2.6s; }
.big-code .bc-l6 { animation-delay: 3.2s; }
@keyframes bcLine {
  0%, 8%  { opacity: 0; transform: translateX(-4px); }
  12%     { opacity: 1; transform: translateX(0); }
  85%     { opacity: 1; }
  100%    { opacity: 0; }
}
.big-code .bc-prompt { fill: var(--accent); }
.big-code .bc-cmd    { fill: var(--content-strong); font-weight: 700; }
.big-code .bc-ok     { fill: var(--accent); font-weight: 700; }
.big-code .bc-mute   { fill: var(--content-muted); }
.big-code .bc-cursor {
  fill: var(--accent);
  animation: bcBlink 1s steps(1) infinite;
}
@keyframes bcBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===========================================================
   BIG ICON · AI
=========================================================== */
.big-ai .bai-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--content-muted);
}
.big-ai .bai-edge {
  stroke: var(--content-muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: baiEdgeFlow 1.6s linear infinite;
  opacity: 0.55;
}
@keyframes baiEdgeFlow {
  to { stroke-dashoffset: -16; }
}
.big-ai .bai-node {
  fill: var(--content-strong);
  transform-box: fill-box;
  transform-origin: center;
  animation: baiNodePulse 2.4s ease-in-out infinite;
}
.big-ai .bai-n1 { animation-delay: 0.0s; fill: var(--accent); }
.big-ai .bai-n2 { animation-delay: 0.15s; }
.big-ai .bai-n3 { animation-delay: 0.30s; fill: var(--accent); }
.big-ai .bai-n4 { animation-delay: 0.45s; }
.big-ai .bai-n5 { animation-delay: 0.60s; }
.big-ai .bai-n6 { animation-delay: 0.75s; }
.big-ai .bai-n7 { animation-delay: 0.90s; }
.big-ai .bai-n8 { animation-delay: 1.05s; }
.big-ai .bai-n9 { animation-delay: 1.20s; }
.big-ai .bai-out {
  fill: var(--accent);
  animation: baiOutGlow 1.8s ease-in-out infinite;
}
@keyframes baiNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.3); opacity: 1; }
}
@keyframes baiOutGlow {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 0 var(--accent)); }
  50%      { transform: scale(1.18); filter: drop-shadow(0 0 8px var(--accent)); }
}

@media (prefers-reduced-motion: reduce) {
  .big-viz .bv-bar, .big-viz .bv-trend, .big-viz .bv-cursor,
  .big-design .bd-tok, .big-design .bd-display, .big-design .bd-mono,
  .big-design .bd-card-line, .big-design .bd-card-dot, .big-design .bd-card-btn,
  .big-code .bc-line, .big-code .bc-cursor,
  .big-ai .bai-node, .big-ai .bai-edge, .big-ai .bai-out,
  .hc-1, .hc-2, .hc-3, .hc-4, .hc-5, .hc-6, .hc-7, .hc-d1, .hc-d2, .hc-d3 {
    animation: none;
  }
}

/* ===========================================================
   RESPONSIVE — hero + showcase
=========================================================== */
@media (max-width: 1080px) {
  .hero-v2 { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 340px; margin: 0; }
  .showcase-row { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .showcase-row--left .showcase-art,
  .showcase-row--right .showcase-art    { order: 1; }
  .showcase-row--left .showcase-content,
  .showcase-row--right .showcase-content { order: 2; }
  .showcase-art { max-width: 380px; }
}
@media (max-width: 720px) {
  .hero-v2 { padding: 64px 20px 56px; }
  .showcase { padding: 56px 20px 40px; }
  .showcase-art { max-width: 320px; }
}

/* ===========================================================
   BIG ICON · WEB DESIGN
=========================================================== */
.big-web .bw-frame {
  fill: var(--canvas);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}
.big-web .bw-titlebar { fill: var(--surface-1); }
.big-web .bw-dot      { fill: var(--content-muted); }
.big-web .bw-urlbar {
  fill: var(--canvas);
  stroke: var(--border);
  stroke-width: 1;
  rx: 7;
}
.big-web .bw-url {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  fill: var(--content-muted);
}

/* every block fades + slides in on stagger, then sits still */
.big-web .bw-block {
  fill: var(--content-default);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: left center;
  animation: bwReveal 8s ease-in-out infinite;
}
.big-web .bw-nav-1   { animation-delay: 0.10s; }
.big-web .bw-nav-2   { animation-delay: 0.18s; }
.big-web .bw-nav-3   { animation-delay: 0.26s; }
.big-web .bw-cta     { animation-delay: 0.34s; fill: var(--content-strong); }
.big-web .bw-h1      { animation-delay: 0.60s; fill: var(--content-strong); }
.big-web .bw-p1      { animation-delay: 0.78s; }
.big-web .bw-p2      { animation-delay: 0.86s; }
.big-web .bw-btn     { animation-delay: 1.05s; fill: var(--accent); }
.big-web .bw-img     { animation-delay: 0.50s; fill: var(--accent); opacity: 0; animation-name: bwRevealImg; }
.big-web .bw-card    { fill: var(--surface-1); stroke: var(--border-strong); stroke-width: 1; }
.big-web .bw-card-1  { animation-delay: 1.30s; }
.big-web .bw-card-2  { animation-delay: 1.42s; }
.big-web .bw-card-3  { animation-delay: 1.54s; }
@keyframes bwReveal {
  0%   { opacity: 0; transform: translateX(-6px); }
  6%, 8% { opacity: 1; transform: translateX(0); }
  85%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}
@keyframes bwRevealImg {
  0%   { opacity: 0; transform: scale(0.9); }
  10%, 12% { opacity: 1; transform: scale(1); }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}

/* breakpoint indicator — cursor slides between sizes */
.big-web .bw-breakpoint line { stroke: var(--border-strong); stroke-width: 1; }
.big-web .bw-breakpoint circle { fill: var(--content-muted); }
.big-web .bw-bp-cursor {
  fill: var(--accent) !important;
  animation: bwBpSlide 4s ease-in-out infinite;
}
@keyframes bwBpSlide {
  0%, 100% { transform: translateX(-40px); }
  50%      { transform: translateX(40px); }
}

@media (prefers-reduced-motion: reduce) {
  .big-web .bw-block, .big-web .bw-bp-cursor { animation: none; opacity: 1; }
}

/* small icon · browser (capabilities detail page) */
.icon-browser .screen    { fill: var(--canvas); stroke: var(--content-strong); stroke-width: 2; }
.icon-browser .title-bar { fill: var(--surface-1); }
.icon-browser .dot       { fill: var(--content-muted); }
.icon-browser .b-line {
  fill: var(--content-strong);
  animation: bwLineReveal 3.6s ease-in-out infinite;
  transform-box: fill-box; transform-origin: left;
}
.icon-browser .b-l2 { animation-delay: 0.4s; }
.icon-browser .b-btn  { fill: var(--accent); animation: bwBtnPulse 2.6s ease-in-out infinite; }
.icon-browser .b-thumb {
  fill: var(--accent);
  opacity: 0.85;
  animation: bwThumbPulse 3s ease-in-out infinite;
}
@keyframes bwLineReveal {
  0%, 100% { transform: scaleX(0.4); }
  50%      { transform: scaleX(1); }
}
@keyframes bwBtnPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
@keyframes bwThumbPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .icon-browser * { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   HERO PICKER (internal preview page)
════════════════════════════════════════════════════════════════ */
.hero-picker-note {
  padding: 28px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.hero-variant {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 24px 36px 96px;
}
.hero-variant-label {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--border);
}
.hero-variant-label span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--canvas);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
}

/* ════════════════════════════════════════════════════════════════
   HERO A · Editorial Magazine
════════════════════════════════════════════════════════════════ */
.hero-a {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 0 40px;
}
.ha-strip {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--content-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-default);
}
.ha-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.ha-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.ha-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.ha-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 11vw, 184px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--content-strong);
}
.ha-dek {
  font-family: var(--font-text);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--content-default);
  margin-top: 28px;
  max-width: 520px;
}
.ha-columns { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
.ha-col {
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.ha-col-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.ha-col p { font-size: 15px; color: var(--content-default); line-height: 1.55; margin-bottom: 10px; }
.ha-col strong { color: var(--content-strong); font-weight: 500; }
.ha-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
}
.ha-byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}

/* ════════════════════════════════════════════════════════════════
   HERO B · Animated Dashboard Mockup
════════════════════════════════════════════════════════════════ */
.hero-b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0;
}
.hb-content .hero-title { font-size: clamp(48px, 7.2vw, 116px); }
.hb-dashboard {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
}
.hb-titlebar {
  display: flex; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.hb-live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.hb-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.hb-kpi {
  background: var(--surface-1);
  padding: 18px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.hb-kpi-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.hb-kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--content-strong);
}
.hb-kpi-trend {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.hb-trend-neg { color: var(--accent-warm); }
.hb-chart {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: var(--canvas);
}
.hb-chart svg { width: 100%; height: 200px; display: block; }
.hb-grid line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.hb-bar {
  fill: var(--content-default);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: hbBarGrow 3s ease-in-out infinite;
}
.hb-bars rect:nth-child(1)  { animation-delay: 0.0s; }
.hb-bars rect:nth-child(2)  { animation-delay: 0.08s; }
.hb-bars rect:nth-child(3)  { animation-delay: 0.16s; }
.hb-bars rect:nth-child(4)  { animation-delay: 0.24s; }
.hb-bars rect:nth-child(5)  { animation-delay: 0.32s; }
.hb-bars rect:nth-child(6)  { animation-delay: 0.40s; }
.hb-bars rect:nth-child(7)  { animation-delay: 0.48s; }
.hb-bars rect:nth-child(8)  { animation-delay: 0.56s; }
.hb-bars rect:nth-child(9)  { animation-delay: 0.64s; }
.hb-bars rect:nth-child(10) { animation-delay: 0.72s; }
.hb-bars rect:nth-child(11) { animation-delay: 0.80s; }
.hb-bars rect:nth-child(12) { animation-delay: 0.88s; }
.hb-bar-hl { fill: var(--accent); }
@keyframes hbBarGrow {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1); }
}
.hb-trend {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: hbTrendDraw 5s ease-in-out infinite;
}
@keyframes hbTrendDraw {
  0%   { stroke-dashoffset: 1200; }
  45%, 60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1200; }
}
.hb-foot {
  display: flex; justify-content: space-between;
  padding: 12px 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}

/* ════════════════════════════════════════════════════════════════
   HERO C · Terminal
════════════════════════════════════════════════════════════════ */
.hero-c {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 0;
}
.hc-terminal {
  background: #0a0a0a;
  border: 1px solid var(--border-strong);
  color: #fafafa;
  font-family: var(--font-mono);
}
[data-theme="dark"] .hc-terminal { background: #050505; }
.hc-titlebar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid #2a2a2a;
  background: #131313;
}
.hc-dots { display: inline-flex; gap: 8px; }
.hc-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3d3d3d; display: block; }
.hc-tab {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #c4c4c4;
}
.hc-body { padding: 32px 28px; }
.hc-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.55;
  color: #c4c4c4;
  white-space: pre-wrap;
}
.hc-line { display: block; opacity: 0; animation: hcLineIn 10s ease-in-out infinite; }
.hc-l1 { animation-delay: 0.2s; }
.hc-l2 { animation-delay: 0.9s; }
.hc-l3 { animation-delay: 1.6s; }
.hc-l4 { animation-delay: 2.3s; }
.hc-l5 { animation-delay: 3.0s; }
.hc-l6 { animation-delay: 3.7s; }
@keyframes hcLineIn {
  0%, 5%  { opacity: 0; transform: translateX(-4px); }
  10%     { opacity: 1; transform: translateX(0); }
  92%     { opacity: 1; }
  100%    { opacity: 0; }
}
.hc-mute  { color: #6e6e6e; }
.hc-cm    { color: #c8ff00; }
.hc-kw    { color: #ff5b1f; }
.hc-var   { color: #fafafa; }
.hc-fn    { color: #c8ff00; }
.hc-str   { color: #6e9bff; }
.hc-cursor {
  color: #c8ff00;
  animation: hcBlink 1s steps(1) infinite;
}
@keyframes hcBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hc-footbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-top: 1px solid #2a2a2a;
  background: #131313;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6e6e;
}
.hc-footbar .hc-live { color: #c8ff00; display: inline-flex; gap: 8px; align-items: center; }
.hc-cta {
  display: flex; gap: 18px; justify-content: center;
  margin-top: 32px;
}

/* ════════════════════════════════════════════════════════════════
   HERO D · Cinematic Centered
════════════════════════════════════════════════════════════════ */
.hero-d {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hd-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-bottom: 40px;
}
.hd-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 16vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--content-strong);
  margin-bottom: 36px;
}
.hd-tag {
  font-family: var(--font-text);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.4;
  color: var(--content-default);
  max-width: 640px;
  margin-bottom: 40px;
}
.hd-tag .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hd-divider {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 40px;
}
.hd-divider span:nth-child(2) {
  width: 200px; height: 1px; background: var(--border-strong);
  margin: 0 14px;
}
.hd-dot { width: 8px; height: 8px; background: var(--accent); display: block; }
.hd-ctas { justify-content: center; }
.hd-meta {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  min-width: 60%;
  justify-content: space-between;
}

/* ════════════════════════════════════════════════════════════════
   Responsive — hero picker variants
════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .ha-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-b { grid-template-columns: 1fr; gap: 32px; }
  .ha-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 720px) {
  .hero-variant { padding: 20px 20px 64px; }
  .hb-kpi-row { grid-template-columns: 1fr; }
  .hc-body { padding: 22px 18px; }
  .hd-meta { flex-direction: column; gap: 10px; }
}

/* ════════════════════════════════════════════════════════════════
   HERO E · Kinetic Type Wall
════════════════════════════════════════════════════════════════ */
.hero-e {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 640px;
  display: flex; flex-direction: column; justify-content: center;
}
.he-marquees {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  pointer-events: none;
}
.he-marquee {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.he-m1 { font-size: clamp(56px, 10vw, 180px); color: var(--content-strong); opacity: 0.08; }
.he-m2 { font-size: clamp(48px, 8vw, 144px); color: var(--content-strong); opacity: 0.06; }
.he-m3 { font-size: clamp(40px, 6vw, 96px); color: var(--accent); opacity: 0.14; font-family: var(--font-mono); font-weight: 700; }
.he-m4 { font-size: clamp(36px, 5vw, 80px); color: var(--content-strong); opacity: 0.05; font-family: var(--font-mono); }
.he-track {
  display: inline-block;
  animation: heScroll 32s linear infinite;
}
.he-track-rev { animation: heScrollRev 28s linear infinite; }
.he-accent { color: var(--accent); }
@keyframes heScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes heScrollRev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.he-overlay {
  position: relative; z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 36px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.he-overlay .eyebrow { margin-bottom: 22px; }
.he-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 12vw, 184px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--content-strong);
  margin-bottom: 22px;
}
.he-sub {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--content-default);
  margin-bottom: 32px;
  max-width: 620px;
}
.he-sub .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.he-overlay .cta-row { justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   HERO F · Studio Triptych
════════════════════════════════════════════════════════════════ */
.hero-f {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0 16px;
}
.hf-header { margin-bottom: 36px; }
.hf-header .hero-title { font-size: clamp(48px, 7vw, 112px); }
.hf-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
}
.hf-panel {
  background: var(--surface-1);
  border-right: 1px solid var(--border-strong);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.hf-panel:last-child { border-right: 0; }
.hf-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}
.hf-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.hf-dots { display: inline-flex; gap: 6px; }
.hf-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--content-muted); display: inline-block; }

/* code panel */
.hf-code { background: #0a0a0a; color: #c4c4c4; }
.hf-code .hf-panel-head { background: #131313; border-bottom-color: #2a2a2a; }
.hf-code .hf-tag { color: #c8ff00; }
.hf-code .hf-dots i { background: #3d3d3d; }
.hf-pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  padding: 22px 20px;
  margin: 0;
  white-space: pre-wrap;
  flex: 1;
}
.hf-l { display: block; opacity: 0; animation: hfLine 8s ease-in-out infinite; }
.hf-l1 { animation-delay: 0.4s; }
.hf-l2 { animation-delay: 1.0s; }
.hf-l3 { animation-delay: 1.6s; }
@keyframes hfLine {
  0%, 5% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}

/* design panel */
.hf-design { background: var(--surface-1); }
.hf-design-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.hf-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hf-sw {
  aspect-ratio: 1;
  transform-box: fill-box; transform-origin: center;
  animation: hfSwFlip 4s ease-in-out infinite;
}
.hf-sw-1 { background: var(--content-strong); animation-delay: 0s; }
.hf-sw-2 { background: var(--accent); animation-delay: 0.2s; }
.hf-sw-3 { background: var(--accent-warm); animation-delay: 0.4s; }
.hf-sw-4 { background: var(--content-default); opacity: 0.4; animation-delay: 0.6s; }
@keyframes hfSwFlip {
  0%, 100% { transform: rotateY(0deg); }
  50%      { transform: rotateY(180deg); }
}
.hf-glyph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  color: var(--content-strong);
  letter-spacing: -0.04em;
  animation: hfGlyphPulse 3s ease-in-out infinite;
}
@keyframes hfGlyphPulse { 0%,100%{opacity:1;}50%{opacity:0.5;} }
.hf-card-mock { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--canvas); border: 1px solid var(--border); }
.hf-card-line { display: block; height: 8px; background: var(--content-default); animation: hfCardDraw 3s ease-in-out infinite; transform-origin: left; }
.hf-card-line--short { width: 70%; animation-delay: 0.3s; }
@keyframes hfCardDraw { 0%,100%{transform:scaleX(0.4);} 50%{transform:scaleX(1);} }
.hf-card-btn { display: block; width: 60px; height: 18px; background: var(--accent); margin-top: 4px; }

/* ship/dashboard panel */
.hf-ship { background: var(--canvas); }
.hf-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--accent); }
.hf-ship-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.hf-kpi { display: flex; flex-direction: column; gap: 4px; }
.hf-kpi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  color: var(--content-strong);
  letter-spacing: -0.03em;
}
.hf-kpi-lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.hf-mini-chart { display: flex; gap: 4px; align-items: flex-end; height: 80px; }
.hf-mb {
  flex: 1;
  background: var(--content-default);
  height: 30%;
  transform-origin: bottom;
  animation: hfMbGrow 2.4s ease-in-out infinite;
}
.hf-mini-chart .hf-mb:nth-child(1) { animation-delay: 0.0s; }
.hf-mini-chart .hf-mb:nth-child(2) { animation-delay: 0.15s; }
.hf-mini-chart .hf-mb:nth-child(3) { animation-delay: 0.30s; }
.hf-mini-chart .hf-mb:nth-child(4) { animation-delay: 0.45s; }
.hf-mini-chart .hf-mb:nth-child(5) { animation-delay: 0.60s; }
.hf-mini-chart .hf-mb:nth-child(6) { animation-delay: 0.75s; }
.hf-mini-chart .hf-mb:nth-child(7) { animation-delay: 0.90s; }
.hf-mini-chart .hf-mb:nth-child(8) { animation-delay: 1.05s; }
.hf-mb-hl { background: var(--accent); }
@keyframes hfMbGrow { 0%,100%{height:25%;} 50%{height:100%;} }
.hf-cta { display: flex; gap: 18px; margin-top: 32px; }

/* ════════════════════════════════════════════════════════════════
   HERO G · Constellation Field
════════════════════════════════════════════════════════════════ */
.hero-g {
  position: relative;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
}
.hg-field { position: absolute; inset: 0; pointer-events: none; }
.hg-field svg { width: 100%; height: 100%; display: block; }
.hg-edge {
  stroke: var(--border-strong);
  stroke-width: 1;
  opacity: 0;
  animation: hgEdgeFlash 6s ease-in-out infinite;
}
.hg-edges line:nth-child(1)  { animation-delay: 0.0s; }
.hg-edges line:nth-child(2)  { animation-delay: 0.3s; }
.hg-edges line:nth-child(3)  { animation-delay: 0.6s; }
.hg-edges line:nth-child(4)  { animation-delay: 0.9s; }
.hg-edges line:nth-child(5)  { animation-delay: 1.2s; }
.hg-edges line:nth-child(6)  { animation-delay: 1.5s; }
.hg-edges line:nth-child(7)  { animation-delay: 1.8s; }
.hg-edges line:nth-child(8)  { animation-delay: 2.1s; }
.hg-edges line:nth-child(9)  { animation-delay: 2.4s; }
.hg-edges line:nth-child(10) { animation-delay: 2.7s; }
.hg-edges line:nth-child(11) { animation-delay: 3.0s; }
.hg-edges line:nth-child(12) { animation-delay: 3.3s; }
.hg-edges line:nth-child(13) { animation-delay: 3.6s; }
.hg-edges line:nth-child(14) { animation-delay: 3.9s; }
.hg-edges line:nth-child(15) { animation-delay: 4.2s; stroke: var(--accent); }
.hg-edges line:nth-child(16) { animation-delay: 4.5s; stroke: var(--accent); }
.hg-edges line:nth-child(17) { animation-delay: 4.8s; stroke: var(--accent); }
.hg-edges line:nth-child(18) { animation-delay: 5.1s; }
.hg-edges line:nth-child(19) { animation-delay: 5.4s; }
.hg-edges line:nth-child(20) { animation-delay: 5.7s; }
@keyframes hgEdgeFlash {
  0%, 12%   { opacity: 0; }
  18%       { opacity: 0.8; }
  72%       { opacity: 0.8; }
  82%, 100% { opacity: 0; }
}
.hg-node {
  fill: var(--content-strong);
  transform-box: fill-box;
  transform-origin: center;
  animation: hgNodePulse 3s ease-in-out infinite;
}
.hg-nodes circle:nth-child(2n)  { animation-delay: 0.4s; }
.hg-nodes circle:nth-child(3n)  { animation-delay: 0.8s; }
.hg-node-hl { fill: var(--accent); }
@keyframes hgNodePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.4); }
}
.hg-overlay {
  position: relative; z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 36px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hg-overlay .hero-title { font-size: clamp(56px, 9vw, 132px); }
.hg-overlay .cta-row { justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   HERO H · Marquee Stack — angled strips
════════════════════════════════════════════════════════════════ */
.hero-h {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  padding: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hh-strip {
  position: absolute;
  left: -20%;
  width: 140%;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hh-strip-1 { top: 70px;  font-size: clamp(60px, 11vw, 200px); transform: rotate(-3deg); color: var(--content-strong); opacity: 0.85; }
.hh-strip-2 { top: 280px; font-size: clamp(80px, 14vw, 240px); transform: rotate(2deg); color: var(--accent); opacity: 0.95; }
.hh-strip-3 { top: 490px; font-size: clamp(60px, 11vw, 200px); transform: rotate(-2deg); color: var(--content-strong); opacity: 0.85; }
.hh-strip .hh-track {
  display: inline-block;
  animation: hhScroll 28s linear infinite;
}
.hh-strip .hh-track-rev { animation: hhScrollRev 24s linear infinite; }
@keyframes hhScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes hhScrollRev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.hh-overlay {
  position: relative; z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 36px;
  text-align: center;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center;
}
.hh-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 7.4vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--content-strong);
  margin: 18px 0 22px;
}
.hh-title .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hh-overlay .cta-row { justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   HERO I · Mission Control
════════════════════════════════════════════════════════════════ */
.hero-i {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0 0;
  font-family: var(--font-mono);
}
.hi-header {
  display: flex; justify-content: space-between;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
}
.hi-corner-tl, .hi-corner-tr {
  padding: 12px 18px;
  display: flex; align-items: center; gap: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.hi-clock { color: var(--content-strong); font-weight: 700; letter-spacing: 0.08em; }
.hi-status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.hi-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  min-height: 440px;
}
.hi-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--content-strong);
  padding: 56px 36px 0;
}
.hi-title .line { display: block; }
.hi-title .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hi-panel {
  background: var(--canvas);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.hi-panel-4 { border-right: 0; }
.hi-key { font-size: 10px; letter-spacing: 0.18em; color: var(--content-muted); }
.hi-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--content-strong);
  letter-spacing: -0.02em;
}
.hi-meta { font-size: 10px; letter-spacing: 0.18em; color: var(--accent); }
.hi-readout {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding: 16px 18px;
  background: var(--canvas);
}
.hi-bars { display: flex; gap: 4px; align-items: flex-end; height: 40px; }
.hi-bars span {
  flex: 1;
  background: var(--content-default);
  height: 40%;
  transform-origin: bottom;
  animation: hiBar 1.8s ease-in-out infinite;
}
.hi-bars span:nth-child(2n)  { animation-delay: 0.15s; background: var(--accent); }
.hi-bars span:nth-child(3n)  { animation-delay: 0.30s; }
.hi-bars span:nth-child(5n)  { animation-delay: 0.45s; background: var(--accent); }
@keyframes hiBar { 0%,100%{height:30%;} 50%{height:100%;} }
.hi-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 18px;
  border: 1px solid var(--border-strong);
  border-top: 0;
}
.hi-foot-tag { font-size: 10px; letter-spacing: 0.18em; color: var(--content-muted); }

/* ════════════════════════════════════════════════════════════════
   Responsive — new variants
════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hf-triptych { grid-template-columns: 1fr; }
  .hf-panel { border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .hf-panel:last-child { border-bottom: 0; }
  .hi-stage { grid-template-columns: repeat(2, 1fr); }
  .hi-panel:nth-child(3) { border-right: 0; }
  .hi-panel:nth-child(4) { border-right: 0; }
}
@media (max-width: 720px) {
  .hi-stage { grid-template-columns: 1fr; }
  .hi-panel { border-right: 0; }
  .hi-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hf-cta { flex-direction: column; }
  .hh-overlay { padding: 60px 20px; }
}

/* ════════════════════════════════════════════════════════════════
   HERO J · Split Day / Night
════════════════════════════════════════════════════════════════ */
.hero-j {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hj-half {
  position: relative;
  padding: 80px 36px;
}
.hj-day   { background: #f5f5f3; color: #0a0a0a; }
.hj-night { background: #0a0a0a; color: #fafafa; }
.hj-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: absolute;
  top: 18px; left: 36px;
  color: currentColor;
  opacity: 0.55;
}
.hj-night .hj-tag { color: #c8ff00; opacity: 1; }
.hj-mini {
  position: absolute;
  bottom: 36px; left: 36px;
  display: flex; flex-direction: column; gap: 8px;
  width: 80%;
}
.hj-mini-l {
  height: 8px; background: currentColor; opacity: 0.85;
  animation: hjDraw 3s ease-in-out infinite;
  transform-origin: left;
}
.hj-mini-l--short { width: 70%; animation-delay: 0.3s; }
@keyframes hjDraw { 0%,100%{transform:scaleX(0.3);} 50%{transform:scaleX(1);} }
.hj-mini-btn {
  width: 60px; height: 18px; background: #377400; margin-top: 4px;
  animation: hjBtn 2s ease-in-out infinite;
}
.hj-night .hj-mini-btn { background: #c8ff00; }
@keyframes hjBtn { 0%,100%{opacity:0.7;} 50%{opacity:1;} }
.hj-center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 36px;
  z-index: 3;
  color: var(--content-strong);
}
.hj-center .eyebrow {
  background: var(--canvas);
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  color: var(--content-default);
}
.hj-title {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 12vw, 184px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 22px 0;
}
.hj-half-text--day   { color: #0a0a0a; mix-blend-mode: difference; }
.hj-half-text--night { color: #fafafa; mix-blend-mode: difference; }
.hj-amp { color: var(--accent); font-style: italic; }
.hj-sub {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.5;
  color: var(--content-default);
  background: var(--canvas);
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  max-width: 560px;
  margin-bottom: 28px;
}
.hj-sub .accent { color: var(--accent); font-style: italic; }
.hj-center .cta-row { justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   HERO K · Sticker Wall
════════════════════════════════════════════════════════════════ */
.hero-k {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  padding: 0;
}
.hk-wall { position: absolute; inset: 0; pointer-events: none; }
.hk-stick {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--surface-1);
  color: var(--content-strong);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
  animation: hkFloat 6s ease-in-out infinite;
  transform-origin: center;
}
.hk-stick-1  { top: 8%;  left: 6%;  transform: rotate(-4deg); background: var(--accent); color: var(--canvas); border-color: var(--accent); }
.hk-stick-2  { top: 14%; right: 12%; transform: rotate(3deg); animation-delay: 0.3s; font-size: 22px; }
.hk-stick-3  { top: 22%; left: 32%; transform: rotate(8deg); font-size: 28px; animation-delay: 0.6s; color: var(--accent); }
.hk-stick-4  { top: 28%; right: 28%; transform: rotate(-3deg); animation-delay: 0.9s; font-size: 22px; }
.hk-stick-5  { top: 36%; left: 10%; transform: rotate(-6deg); animation-delay: 1.2s; }
.hk-stick-6  { bottom: 36%; right: 8%; transform: rotate(2deg); animation-delay: 1.5s; }
.hk-stick-7  { bottom: 28%; left: 18%; transform: rotate(4deg); animation-delay: 1.8s; background: var(--content-strong); color: var(--canvas); }
.hk-stick-8  { bottom: 22%; right: 18%; transform: rotate(-5deg); animation-delay: 2.1s; }
.hk-stick-9  { bottom: 14%; left: 32%; transform: rotate(6deg); animation-delay: 2.4s; }
.hk-stick-10 { top: 50%; left: 5%; transform: rotate(-7deg); animation-delay: 2.7s; line-height: 1.2; }
.hk-stick-11 { top: 56%; right: 4%; transform: rotate(5deg); animation-delay: 3.0s; font-size: 24px; color: var(--accent); }
.hk-stick-12 { bottom: 8%; left: 50%; transform: rotate(-2deg); animation-delay: 3.3s; }
.hk-stick-13 { top: 70%; left: 38%; transform: rotate(-10deg); animation-delay: 3.6s; color: var(--accent); font-size: 22px; }
.hk-stick-14 { top: 78%; right: 38%; transform: rotate(8deg); animation-delay: 3.9s; }
.hk-stick-15 { top: 8%; right: 36%; transform: rotate(-5deg); animation-delay: 4.2s; }
.hk-stick-16 { top: 84%; left: 50%; transform: rotate(0); animation-delay: 4.5s; background: var(--accent); color: var(--canvas); border-color: var(--accent); }
@keyframes hkFloat {
  0%, 100% { transform: rotate(var(--r, 0deg)) translate(0, 0); }
  50%      { transform: rotate(calc(var(--r, 0deg) + 2deg)) translate(0, -6px); }
}
.hk-overlay {
  position: relative; z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 36px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hk-overlay .cta-row { justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   HERO L · Drawing Reveal
════════════════════════════════════════════════════════════════ */
.hero-l {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hl-art { aspect-ratio: 1; max-width: 460px; margin-left: auto; }
.hl-art svg { width: 100%; height: 100%; display: block; }
.hl-path {
  fill: none;
  stroke: var(--content-strong);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: hlDraw 6s ease-in-out infinite;
}
.hl-p1 { animation-delay: 0.0s; }
.hl-p2 { animation-delay: 0.6s; stroke: var(--accent); stroke-width: 3; }
.hl-p3 { animation-delay: 0.9s; stroke: var(--accent); stroke-width: 3; }
.hl-p4 { animation-delay: 1.2s; stroke: var(--accent); stroke-width: 3; }
.hl-p5 { animation-delay: 1.5s; stroke: var(--accent); stroke-width: 3; }
.hl-p6 { animation-delay: 2.0s; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 6; animation: none; opacity: 0.6; }
.hl-p7 { animation-delay: 2.0s; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 6; animation: none; opacity: 0.6; }
.hl-p8 { animation-delay: 2.4s; stroke: var(--content-strong); stroke-width: 4; }
@keyframes hlDraw {
  0%       { stroke-dashoffset: 800; }
  35%, 70% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -800; }
}
.hl-dot { fill: var(--accent); opacity: 0; animation: hlDotIn 6s ease-in-out infinite; }
.hl-d1 { animation-delay: 3.0s; fill: var(--content-strong); }
.hl-d2 { animation-delay: 3.2s; }
.hl-d3 { animation-delay: 3.4s; }
.hl-d4 { animation-delay: 3.6s; }
.hl-d5 { animation-delay: 3.8s; }
@keyframes hlDotIn {
  0%, 40% { opacity: 0; transform: scale(0); }
  50%     { opacity: 1; transform: scale(1); }
  80%     { opacity: 1; }
  100%    { opacity: 0; }
}

/* ════════════════════════════════════════════════════════════════
   HERO M · Isometric Device Stack
════════════════════════════════════════════════════════════════ */
.hero-m {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hm-stack { aspect-ratio: 1; max-width: 520px; }
.hm-stack svg { width: 100%; height: 100%; display: block; }
.hm-dev { animation: hmHover 5s ease-in-out infinite; transform-box: fill-box; }
.hm-desktop { animation-delay: 0s; }
.hm-tablet  { animation-delay: 0.6s; }
.hm-phone   { animation-delay: 1.2s; }
@keyframes hmHover {
  0%, 100% { transform: translate(180px, 100px) skewY(-12deg) translateY(0); }
  50%      { transform: translate(180px, 100px) skewY(-12deg) translateY(-8px); }
}
.hm-tablet { animation-name: hmHoverTablet; }
@keyframes hmHoverTablet {
  0%, 100% { transform: translate(110px, 230px) skewY(-12deg) translateY(0); }
  50%      { transform: translate(110px, 230px) skewY(-12deg) translateY(-6px); }
}
.hm-phone { animation-name: hmHoverPhone; }
@keyframes hmHoverPhone {
  0%, 100% { transform: translate(260px, 280px) skewY(-12deg) translateY(0); }
  50%      { transform: translate(260px, 280px) skewY(-12deg) translateY(-6px); }
}
.hm-screen {
  fill: var(--surface-1);
  stroke: var(--content-strong);
  stroke-width: 2;
}
.hm-bar { fill: var(--canvas); stroke: var(--content-strong); stroke-width: 1; }
.hm-bd  { fill: var(--content-muted); }
.hm-mb {
  fill: var(--content-default);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: hmMbGrow 2.4s ease-in-out infinite;
}
.hm-mb-hl { fill: var(--accent); }
.hm-desktop .hm-mb:nth-of-type(2)  { animation-delay: 0.1s; }
.hm-desktop .hm-mb:nth-of-type(3)  { animation-delay: 0.2s; }
.hm-desktop .hm-mb:nth-of-type(4)  { animation-delay: 0.3s; }
.hm-desktop .hm-mb:nth-of-type(5)  { animation-delay: 0.4s; }
.hm-desktop .hm-mb:nth-of-type(6)  { animation-delay: 0.5s; }
.hm-desktop .hm-mb:nth-of-type(7)  { animation-delay: 0.6s; }
.hm-desktop .hm-mb:nth-of-type(8)  { animation-delay: 0.7s; }
.hm-desktop .hm-mb:nth-of-type(9)  { animation-delay: 0.8s; }
.hm-desktop .hm-mb:nth-of-type(10) { animation-delay: 0.9s; }
@keyframes hmMbGrow { 0%,100%{transform:scaleY(0.4);} 50%{transform:scaleY(1);} }
.hm-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  fill: var(--content-muted);
}
.hm-text-accent { fill: var(--accent); font-weight: 700; }
.hm-tb-block { fill: var(--content-default); }
.hm-tb-block.hm-dim { fill: var(--content-muted); opacity: 0.55; }
.hm-tb-block.hm-acc { fill: var(--accent); }
.hm-tablet .hm-tb-block { animation: hmFade 3s ease-in-out infinite; }
.hm-phone  .hm-tb-block { animation: hmFade 3s ease-in-out infinite; }
.hm-tablet .hm-tb-block:nth-of-type(2) { animation-delay: 0.2s; }
.hm-tablet .hm-tb-block:nth-of-type(3) { animation-delay: 0.4s; }
.hm-tablet .hm-tb-block:nth-of-type(4) { animation-delay: 0.6s; }
.hm-tablet .hm-tb-block:nth-of-type(5) { animation-delay: 0.8s; }
.hm-phone  .hm-tb-block:nth-of-type(2) { animation-delay: 0.2s; }
.hm-phone  .hm-tb-block:nth-of-type(3) { animation-delay: 0.4s; }
.hm-phone  .hm-tb-block:nth-of-type(4) { animation-delay: 0.6s; }
.hm-phone  .hm-tb-block:nth-of-type(5) { animation-delay: 0.8s; }
.hm-phone  .hm-tb-block:nth-of-type(6) { animation-delay: 1.0s; }
@keyframes hmFade { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

/* ════════════════════════════════════════════════════════════════
   HERO N · Cropped Editorial
════════════════════════════════════════════════════════════════ */
.hero-n {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 28px 36px;
}
.hn-bigtitle {
  position: absolute;
  left: -2vw;
  bottom: -3vw;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(180px, 32vw, 600px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--content-strong);
  opacity: 0.92;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.hn-top {
  position: relative;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--content-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-strong);
}
.hn-issue { color: var(--accent); }
.hn-body {
  position: relative; z-index: 2;
  max-width: 540px;
  padding: 56px 0;
  background: var(--canvas);
  isolation: isolate;
}
.hn-body::before {
  content: '';
  position: absolute;
  inset: -1px -36px -1px -36px;
  background: var(--canvas);
  z-index: -1;
}
.hn-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--content-strong);
  margin-bottom: 22px;
}
.hn-headline .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hn-dek {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--content-default);
  max-width: 480px;
  margin-bottom: 28px;
}
.hn-foot {
  position: absolute;
  bottom: 28px; right: 36px; left: 36px;
  display: flex; justify-content: space-between;
  z-index: 2;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  background: var(--canvas);
}

/* ════════════════════════════════════════════════════════════════
   Responsive — J–N
════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-j { grid-template-columns: 1fr; min-height: auto; }
  .hj-half { padding: 64px 36px; min-height: 360px; }
  .hero-l { grid-template-columns: 1fr; }
  .hl-art { max-width: 360px; margin: 0 auto; }
  .hero-m { grid-template-columns: 1fr; }
  .hm-stack { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .hj-center { padding: 24px 18px; }
  .hj-title { font-size: clamp(56px, 18vw, 88px); }
  .hk-overlay { padding: 60px 20px; }
  .hn-bigtitle { font-size: 32vw; }
  .hn-foot { position: static; margin-top: 24px; flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   HERO F · PRODUCTION VERSION (on /v1/ home page)
═════════════════════════════════════════════════════════════════ */
.hero-f-prod {
  position: relative;
  padding: 80px 36px 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-f-prod .hero-f { padding: 0; }
.hero-f-prod .hf-header { margin-bottom: 48px; max-width: 880px; }
.hero-f-prod .hero-title { font-size: clamp(56px, 9vw, 144px); margin-bottom: 24px; }
.hero-f-prod .hero-sub {
  font-family: var(--font-text);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--content-default);
  max-width: 660px;
}
.hero-f-prod .hf-triptych {
  margin-bottom: 40px;
}
.hero-f-prod .hf-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-f-prod .hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
@media (max-width: 720px) {
  .hero-f-prod { padding: 56px 20px 40px; }
  .hero-f-prod .hf-foot { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   PROCESS · v2 — animated icons + progress beam
════════════════════════════════════════════════════════════════ */
.process-rail-v2 {
  position: relative;
  padding: 24px 0 0;
}

/* horizontal progress beam at top */
.proc-beam {
  position: relative;
  height: 28px;
  margin-bottom: 24px;
}
.proc-beam-track {
  position: absolute;
  top: 14px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.proc-beam-track::after {
  content: '';
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 50%, transparent 50%, transparent 100%);
  animation: procBeamFill 8s ease-in-out infinite;
  transform-origin: left;
}
@keyframes procBeamFill {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}
.proc-beam-dot {
  position: absolute;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  left: 0;
  animation: procBeamDot 8s ease-in-out infinite;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
@keyframes procBeamDot {
  0%   { left: 0%; }
  100% { left: calc(100% - 14px); }
}
.proc-beam-tick {
  position: absolute;
  top: 10px;
  width: 6px; height: 6px;
  background: var(--canvas);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
}
.proc-tick-1 { left: calc(0%      + 0px); }
.proc-tick-2 { left: calc(20%     + 0px); }
.proc-tick-3 { left: calc(40%     + 0px); }
.proc-tick-4 { left: calc(60%     + 0px); }
.proc-tick-5 { left: calc(80%     + 0px); }
.proc-tick-6 { left: calc(100%    - 6px); }

/* grid of stages */
.proc-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proc-stage {
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
  background: var(--canvas);
  transition: background 0.25s;
}
.proc-stage:last-child { border-right: 0; }
.proc-stage:hover { background: var(--surface-1); }
.proc-stage::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.proc-stage:hover::before { opacity: 1; }
.proc-stage--active::before { opacity: 1; }
.proc-stage--active .stage-label { color: var(--accent); }

.proc-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  padding: 4px;
  margin-bottom: 6px;
}
.proc-icon svg { width: 100%; height: 100%; display: block; }
.proc-stage:hover .proc-icon { border-color: var(--accent); }

/* ─── ICON 01 DISCOVERY · magnifying scan ─── */
.proc-discovery .pi-lens   { fill: none; stroke: var(--content-strong); stroke-width: 2.5; }
.proc-discovery .pi-handle { stroke: var(--content-strong); stroke-width: 3; stroke-linecap: square; }
.proc-discovery .pi-scan {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: -10px -10px; /* relative to its own bounding box */
  animation: piScan 3s linear infinite;
}
@keyframes piScan {
  0%   { transform: translate(-6px, -6px); }
  25%  { transform: translate(6px, -6px); }
  50%  { transform: translate(6px, 6px); }
  75%  { transform: translate(-6px, 6px); }
  100% { transform: translate(-6px, -6px); }
}

/* ─── ICON 02 VISUALIZE · growing bars ─── */
.proc-visualize .pi-axis { stroke: var(--content-muted); stroke-width: 1; }
.proc-visualize .pi-bar {
  fill: var(--content-strong);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: piBar 2.4s ease-in-out infinite;
}
.proc-visualize .pi-b1 { animation-delay: 0s; }
.proc-visualize .pi-b2 { animation-delay: 0.18s; }
.proc-visualize .pi-b3 { animation-delay: 0.36s; fill: var(--accent); }
@keyframes piBar { 0%,100%{transform:scaleY(0.4);} 50%{transform:scaleY(1);} }

/* ─── ICON 03 DESIGN · 2×2 grid flip ─── */
.proc-design .pi-cell {
  fill: none;
  stroke: var(--content-strong);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
.proc-design .pi-c1 { animation: piCellFlip 3s ease-in-out infinite 0s; }
.proc-design .pi-c2 { animation: piCellFill 3s ease-in-out infinite 0.25s; }
.proc-design .pi-c3 { animation: piCellFlip 3s ease-in-out infinite 0.50s; }
.proc-design .pi-c4 { animation: piCellFlip 3s ease-in-out infinite 0.75s; }
@keyframes piCellFlip {
  0%,100% { transform: rotateY(0deg); opacity: 1; }
  50%     { transform: rotateY(180deg); opacity: 0.5; }
}
@keyframes piCellFill {
  0%,100% { fill: none; stroke: var(--content-strong); }
  50%     { fill: var(--accent); stroke: var(--accent); }
}

/* ─── ICON 04 CODE · brackets + blinking cursor ─── */
.proc-code .pi-bracket {
  fill: none;
  stroke: var(--content-strong);
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.proc-code .pi-cursor {
  fill: var(--accent);
  animation: piBlink 1s steps(1) infinite;
}
@keyframes piBlink { 0%,50%{opacity:1;} 51%,100%{opacity:0;} }

/* ─── ICON 05 AI · neural pulse ─── */
.proc-ai .pi-edge {
  stroke: var(--content-muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: piEdge 1.6s linear infinite;
}
.proc-ai .pi-e2 { animation-delay: 0.4s; }
.proc-ai .pi-e3 { animation-delay: 0.8s; }
.proc-ai .pi-e4 { animation-delay: 1.2s; }
@keyframes piEdge { to { stroke-dashoffset: -16; } }
.proc-ai .pi-node {
  fill: var(--content-strong);
  transform-box: fill-box;
  transform-origin: center;
  animation: piNodePulse 2.2s ease-in-out infinite;
}
.proc-ai .pi-node:nth-of-type(2)  { animation-delay: 0.2s; }
.proc-ai .pi-node:nth-of-type(4)  { animation-delay: 0.6s; }
.proc-ai .pi-node:nth-of-type(5)  { animation-delay: 0.8s; }
.proc-ai .pi-node-hl { fill: var(--accent); animation-delay: 0.4s; }
@keyframes piNodePulse {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.25); }
}

/* ─── ICON 06 SHIP · arrow + travelling dot ─── */
.proc-ship .pi-arrow-line {
  stroke: var(--content-strong);
  stroke-width: 2.5;
  stroke-linecap: square;
  fill: none;
}
.proc-ship .pi-arrow-head {
  fill: none;
  stroke: var(--content-strong);
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.proc-ship .pi-arrow-dot {
  fill: var(--accent);
  animation: piArrowDot 2.4s ease-in-out infinite;
}
@keyframes piArrowDot {
  0%   { transform: translate(12px, 52px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { transform: translate(48px, 16px); opacity: 1; }
  100% { transform: translate(48px, 16px); opacity: 0; }
}

.proc-stage .stage-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
  margin-top: 6px;
}
.proc-stage .stage-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--content-strong);
}
.proc-stage .stage-note {
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1.5;
  color: var(--content-default);
}

/* Reduced motion: stop everything that moves */
@media (prefers-reduced-motion: reduce) {
  .proc-beam-dot, .proc-beam-track::after,
  .proc-discovery .pi-scan,
  .proc-visualize .pi-bar,
  .proc-design .pi-cell,
  .proc-code .pi-cursor,
  .proc-ai .pi-edge, .proc-ai .pi-node,
  .proc-ship .pi-arrow-dot { animation: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .proc-grid { grid-template-columns: repeat(3, 1fr); }
  .proc-grid .proc-stage:nth-child(3) { border-right: 0; }
  .proc-grid .proc-stage:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid .proc-stage:nth-child(2n) { border-right: 0; }
  .proc-grid .proc-stage:nth-child(n+3) { border-top: 1px solid var(--border); }
  .proc-beam { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   CAPABILITIES · v2 — big animated product-surface mocks
═════════════════════════════════════════════════════════════════ */
.cap-block {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.cap-block:last-child { border-bottom: 1px solid var(--border); margin-bottom: 64px; }
.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.cap-grid--right .cap-art     { order: 2; }
.cap-grid--right .cap-content { order: 1; }
.cap-grid--left  .cap-art     { order: 1; }
.cap-grid--left  .cap-content { order: 2; }

.cap-art {
  position: relative;
  width: 100%;
}
.cap-mock {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  aspect-ratio: 13 / 10;
}
.mock-titlebar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.mock-tag    { color: var(--content-strong); }
.mock-live   { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.mock-tab    { color: var(--content-muted); font-family: var(--font-display); }
.mock-dots   { display: inline-flex; gap: 6px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--content-muted); display: inline-block; }
.mock-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.mock-pulse {
  color: var(--accent);
  animation: capPulse 1.6s ease-in-out infinite;
}
@keyframes capPulse { 0%,100%{opacity:1;} 50%{opacity:0.55;} }

/* ─── 01 DASHBOARD ─── */
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.mock-kpi {
  background: var(--surface-1);
  padding: 14px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.mock-kpi-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--content-strong);
  letter-spacing: -0.02em;
}
.mock-kpi-lab {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.mock-chart {
  flex: 1;
  padding: 6px 0;
  position: relative;
}
.mock-chart svg { width: 100%; height: 100%; display: block; }
.md-grid line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.md-bar {
  fill: var(--content-default);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: mdBar 3s ease-in-out infinite;
}
.md-bars rect:nth-child(1) { animation-delay: 0.0s; }
.md-bars rect:nth-child(2) { animation-delay: 0.08s; }
.md-bars rect:nth-child(3) { animation-delay: 0.16s; }
.md-bars rect:nth-child(4) { animation-delay: 0.24s; }
.md-bars rect:nth-child(5) { animation-delay: 0.32s; }
.md-bars rect:nth-child(6) { animation-delay: 0.40s; }
.md-bars rect:nth-child(7) { animation-delay: 0.48s; }
.md-bars rect:nth-child(8) { animation-delay: 0.56s; }
.md-bars rect:nth-child(9) { animation-delay: 0.64s; }
.md-bars rect:nth-child(10) { animation-delay: 0.72s; }
.md-bars rect:nth-child(11) { animation-delay: 0.80s; }
.md-bars rect:nth-child(12) { animation-delay: 0.88s; }
.md-bar-hl { fill: var(--accent); }
@keyframes mdBar { 0%,100%{transform:scaleY(0.55);} 50%{transform:scaleY(1);} }
.md-trend {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: mdTrend 5s ease-in-out infinite;
}
@keyframes mdTrend {
  0%       { stroke-dashoffset: 1200; }
  45%, 60% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -1200; }
}

/* ─── 02 DESIGN STUDIO ─── */
.mock-design-studio { background: var(--canvas); }
.ds-tokens {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.ds-tok {
  aspect-ratio: 1;
  background: var(--content-default);
  transform-box: fill-box; transform-origin: center;
  animation: dsTokFlip 4.5s ease-in-out infinite;
}
.ds-tok-1 { background: var(--content-strong); animation-delay: 0.0s; }
.ds-tok-2 { background: var(--accent);         animation-delay: 0.15s; }
.ds-tok-3 { background: var(--accent-warm);    animation-delay: 0.30s; }
.ds-tok-4 { background: var(--content-default); opacity: 0.55; animation-delay: 0.45s; }
.ds-tok-5 { background: var(--accent);         animation-delay: 0.60s; }
.ds-tok-6 { background: var(--content-strong); animation-delay: 0.75s; }
.ds-tok-7 { background: var(--content-default); opacity: 0.75; animation-delay: 0.90s; }
.ds-tok-8 { background: var(--accent-warm);    animation-delay: 1.05s; }
@keyframes dsTokFlip {
  0%,100% { transform: rotateY(0deg); }
  50%     { transform: rotateY(180deg); }
}
.ds-type {
  display: flex; align-items: baseline; gap: 22px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.ds-Aa {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--content-strong);
  letter-spacing: -0.04em;
  animation: dsPulse 3s ease-in-out infinite;
}
.ds-mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 36px;
  color: var(--content-default);
  animation: dsPulse 3s ease-in-out infinite 0.4s;
}
.ds-Vl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--accent);
  letter-spacing: -0.03em;
  animation: dsPulse 3s ease-in-out infinite 0.8s;
}
@keyframes dsPulse { 0%,100%{opacity:1;} 50%{opacity:0.45;} }
.ds-component {
  flex: 1;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  background: var(--surface-1);
}
.ds-card-line {
  display: block;
  height: 10px;
  background: var(--content-default);
  transform-origin: left;
  animation: dsLine 3s ease-in-out infinite;
}
.ds-cl-2 { width: 65%; animation-delay: 0.4s; }
@keyframes dsLine { 0%,100%{transform:scaleX(0.4);} 50%{transform:scaleX(1);} }
.ds-card-btn {
  display: inline-block;
  width: 80px; height: 24px;
  background: var(--accent);
  animation: dsBtn 2.4s ease-in-out infinite;
}
@keyframes dsBtn { 0%,100%{opacity:0.7;} 50%{opacity:1;} }
.ds-card-cursor {
  position: absolute;
  right: 30px; bottom: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  animation: dsCursor 3s ease-in-out infinite;
}
@keyframes dsCursor {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-6px, -4px); }
}

/* ─── 03 BROWSER ─── */
.mock-browser { background: var(--canvas); }
.mock-browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 11px;
}
.mock-url {
  flex: 1;
  background: var(--canvas);
  border: 1px solid var(--border);
  padding: 4px 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--content-muted);
}
.mb-site {
  flex: 1;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.mb-nav {
  display: flex; gap: 14px; align-items: center;
}
.mb-nav-i {
  display: inline-block;
  width: 40px; height: 6px;
  background: var(--content-default);
  animation: mbNav 2.4s ease-in-out infinite;
}
.mb-nav-i:nth-child(2) { animation-delay: 0.15s; }
.mb-nav-i:nth-child(3) { animation-delay: 0.30s; }
.mb-cta {
  display: inline-block;
  width: 56px; height: 18px;
  background: var(--content-strong);
  margin-left: auto;
  animation: mbCta 2.4s ease-in-out infinite;
}
@keyframes mbNav { 0%,100%{opacity:0.55;} 50%{opacity:1;} }
@keyframes mbCta { 0%,100%{background:var(--content-strong);} 50%{background:var(--accent);} }
.mb-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: start;
}
.mb-h1 {
  grid-column: 1;
  display: block;
  height: 22px;
  background: var(--content-strong);
  animation: mbDraw 3s ease-in-out infinite;
  transform-origin: left;
}
.mb-p {
  grid-column: 1;
  display: block;
  height: 8px;
  background: var(--content-default);
  animation: mbDraw 3s ease-in-out infinite 0.3s;
  transform-origin: left;
}
.mb-p-short { width: 70%; animation-delay: 0.5s; }
.mb-btn {
  grid-column: 1;
  display: inline-block;
  width: 80px; height: 26px;
  background: var(--accent);
  margin-top: 4px;
}
.mb-thumb {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: block;
  aspect-ratio: 1;
  background: var(--accent);
  opacity: 0.7;
  animation: mbThumb 4s ease-in-out infinite;
}
@keyframes mbDraw { 0%,100%{transform:scaleX(0.4);} 50%{transform:scaleX(1);} }
@keyframes mbThumb { 0%,100%{opacity:0.55;} 50%{opacity:1;} }
.mb-grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.mb-card {
  aspect-ratio: 1.4;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  animation: mbCard 3s ease-in-out infinite;
}
.mb-grid3 .mb-card:nth-child(1) { animation-delay: 0.0s; }
.mb-grid3 .mb-card:nth-child(2) { animation-delay: 0.2s; }
.mb-grid3 .mb-card:nth-child(3) { animation-delay: 0.4s; }
@keyframes mbCard { 0%,100%{border-color:var(--border-strong);} 50%{border-color:var(--accent);} }
.mb-bp {
  display: inline-flex; align-items: center; gap: 14px;
  position: relative;
}
.mb-bp i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--content-muted);
  display: block;
}
.mb-bp-cursor {
  position: absolute;
  background: var(--accent) !important;
  animation: mbBp 4s ease-in-out infinite;
}
@keyframes mbBp {
  0%, 100% { transform: translateX(-32px); }
  50%      { transform: translateX(20px); }
}

/* ─── 04 IDE ─── */
.mock-ide { background: #0a0a0a; }
.mock-ide .mock-titlebar { background: #131313; border-bottom-color: #2a2a2a; color: #c4c4c4; }
.mock-ide .mock-titlebar .mock-tag { color: #c8ff00; }
.mock-ide .mock-titlebar .mock-dots i { background: #3d3d3d; }
.ide-body { flex: 1; display: grid; grid-template-columns: 120px 1fr; gap: 1px; background: #2a2a2a; }
.ide-tree { background: #131313; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: #c4c4c4; }
.ide-file { letter-spacing: 0.04em; }
.ide-file-active { color: #c8ff00; }
.ide-code {
  margin: 0;
  padding: 14px 14px;
  background: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  color: #c4c4c4;
  white-space: pre-wrap;
}
.ide-l { display: block; opacity: 0; animation: ideLine 8s ease-in-out infinite; }
.ide-l1 { animation-delay: 0.4s; }
.ide-l2 { animation-delay: 0.9s; }
.ide-l3 { animation-delay: 1.4s; }
.ide-l4 { animation-delay: 2.0s; }
.ide-l5 { animation-delay: 2.5s; }
.ide-l6 { animation-delay: 3.0s; }
@keyframes ideLine {
  0%, 5% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.ide-mute { color: #6e6e6e; }
.ide-kw   { color: #ff5b1f; }
.ide-fn   { color: #c8ff00; }
.ide-var  { color: #fafafa; }
.ide-cm   { color: #6e6e6e; }
.ide-ok   { color: #c8ff00; font-weight: 700; }
.ide-cursor {
  color: #c8ff00;
  animation: ideBlink 1s steps(1) infinite;
}
@keyframes ideBlink { 0%,50%{opacity:1;} 51%,100%{opacity:0;} }
.mock-ide .mock-foot { background: #131313; border-top-color: #2a2a2a; color: #6e6e6e; }
.ide-status { color: #c8ff00; font-weight: 700; }

/* ─── 05 AGENT ─── */
.mock-agent { background: var(--canvas); }
.agent-input, .agent-output {
  padding: 12px 18px;
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--border);
}
.agent-output { border-bottom: 0; border-top: 1px solid var(--border); }
.agent-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--content-muted);
  flex: 0 0 60px;
}
.agent-prompt, .agent-result {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--content-default);
}
.agent-result .ag-ok { color: var(--accent); font-weight: 700; }
.agent-graph {
  flex: 1;
  padding: 6px 18px;
  display: flex; align-items: center; justify-content: center;
}
.agent-graph svg { width: 100%; height: 100%; display: block; max-height: 140px; }
.ag-edge {
  stroke: var(--content-muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: agEdge 1.6s linear infinite;
  opacity: 0.6;
}
.ag-edge-out { stroke: var(--accent); opacity: 1; stroke-width: 1.5; }
@keyframes agEdge { to { stroke-dashoffset: -16; } }
.ag-node {
  fill: var(--content-strong);
  transform-box: fill-box; transform-origin: center;
  animation: agPulse 2.4s ease-in-out infinite;
}
.ag-in   { fill: var(--accent-warm); }
.ag-tool { fill: var(--content-strong); }
.ag-tool:nth-of-type(2) { animation-delay: 0.2s; }
.ag-tool:nth-of-type(3) { animation-delay: 0.4s; }
.ag-tool:nth-of-type(4) { animation-delay: 0.6s; }
.ag-agent { fill: var(--accent); }
.ag-out  { fill: var(--accent); }
@keyframes agPulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.25);} }
.ag-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  fill: var(--content-muted);
}

/* ─── shared cap content side ─── */
.cap-content { padding: 0; }
.cap-content .capability-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--content-muted);
  display: block;
  margin-bottom: 16px;
}
.cap-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--content-strong);
  margin-bottom: 18px;
}
.cap-content h2 .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.cap-content .capability-lead {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--content-default);
  max-width: 520px;
  margin-bottom: 28px;
}
.cap-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.cap-detail-grid h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-bottom: 12px;
}
.cap-detail-grid ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.cap-detail-grid li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--content-default);
}
.cap-detail-grid p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--content-default);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.cap-tools {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.cap-tools-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--content-muted);
  margin-right: 8px;
}
.cap-tool {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  color: var(--content-default);
  background: var(--canvas);
  transition: border-color 0.2s, color 0.2s;
}
.cap-tool:hover { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .mock-pulse, .md-bar, .md-trend, .ds-tok, .ds-Aa, .ds-mono, .ds-Vl,
  .ds-card-line, .ds-card-btn, .ds-card-cursor,
  .mb-nav-i, .mb-cta, .mb-h1, .mb-p, .mb-thumb, .mb-card, .mb-bp-cursor,
  .ide-l, .ide-cursor, .ag-edge, .ag-node { animation: none !important; }
}

@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: 1fr; gap: 36px; }
  .cap-grid--right .cap-art, .cap-grid--left .cap-art { order: 1; }
  .cap-grid--right .cap-content, .cap-grid--left .cap-content { order: 2; }
}
@media (max-width: 720px) {
  .cap-block { padding: 56px 0; }
  .cap-detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .ds-tokens { grid-template-columns: repeat(4, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   MANIFESTO · v2 — big animated mocks per rule
═════════════════════════════════════════════════════════════════ */

/* manifesto-specific cap-content tweak: number is big + lime */
#ship .capability-num,
#craft .capability-num,
#leverage .capability-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.cap-content .capability-body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--content-default);
  margin-top: -6px;
  margin-bottom: 28px;
  max-width: 520px;
}
.manifesto-detail h3 { color: var(--content-muted); }

/* ─── 01 PIPELINE · build mock ─── */
.mock-pipeline { background: var(--canvas); font-family: var(--font-mono); }
.mp-section {
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.mp-section:last-of-type { border-bottom: 0; }
.mp-key {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin-bottom: 4px;
}
.mp-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: mpRow 9s ease-in-out infinite;
}
.mp-a1 { animation-delay: 0.2s; }
.mp-a2 { animation-delay: 0.6s; }
.mp-a3 { animation-delay: 1.0s; }
.mp-p1 { animation-delay: 3.0s; }
.mp-p2 { animation-delay: 3.4s; }
.mp-p3 { animation-delay: 3.8s; }
@keyframes mpRow {
  0%, 4%   { opacity: 0; transform: translateX(-4px); }
  10%      { opacity: 1; transform: translateX(0); }
  92%      { opacity: 1; }
  100%     { opacity: 0; }
}
.mp-mute  { text-decoration: line-through; color: var(--content-muted); }
.mp-x {
  display: inline-block; width: 14px;
  color: var(--accent-warm);
  font-weight: 700;
}
.mp-ok {
  display: inline-block; width: 14px;
  color: var(--accent);
  font-weight: 700;
}
.mp-live-tag {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.18em;
  background: var(--accent);
  color: var(--canvas);
  padding: 2px 6px;
}
.mp-arrow {
  display: flex; justify-content: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.mp-arrow svg { width: 22px; height: 34px; }
.mp-arrow-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  animation: mpArrow 1.8s ease-in-out infinite;
}
@keyframes mpArrow {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(2px); }
}
.mock-pipeline .mp-counter {
  color: var(--accent);
  font-weight: 700;
}

/* ─── 02 COMMITS · git mock ─── */
.mock-commits { background: var(--canvas); font-family: var(--font-mono); }
.mc-header {
  display: flex; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.mc-meta { color: var(--accent); }
.mc-grid {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 2px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.mc-cell {
  aspect-ratio: 1;
  background: var(--surface-1);
  border: 1px solid var(--border);
  animation: mcCellPulse 4s ease-in-out infinite;
}
/* Varying intensities via nth-child — creates a "contribution" look */
.mc-cell:nth-child(3n)   { background: color-mix(in srgb, var(--accent) 30%, var(--surface-1)); animation-delay: 0.1s; }
.mc-cell:nth-child(5n)   { background: color-mix(in srgb, var(--accent) 55%, var(--surface-1)); animation-delay: 0.2s; }
.mc-cell:nth-child(7n)   { background: color-mix(in srgb, var(--accent) 75%, var(--surface-1)); animation-delay: 0.3s; }
.mc-cell:nth-child(11n)  { background: var(--accent); animation-delay: 0.4s; }
.mc-cell:nth-child(13n)  { background: color-mix(in srgb, var(--accent) 40%, var(--surface-1)); animation-delay: 0.5s; }
.mc-cell:nth-child(17n)  { background: color-mix(in srgb, var(--accent) 90%, var(--surface-1)); animation-delay: 0.6s; }
.mc-cell:nth-child(19n)  { background: var(--accent); animation-delay: 0.7s; }
.mc-cell:nth-child(23n)  { background: color-mix(in srgb, var(--accent) 65%, var(--surface-1)); animation-delay: 0.8s; }
@keyframes mcCellPulse { 0%,100%{opacity:0.65;} 50%{opacity:1;} }

.mc-log {
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px;
}
.mc-log-row {
  display: flex; gap: 12px;
  opacity: 0;
  animation: mcLogIn 8s ease-in-out infinite;
}
.mc-r1 { animation-delay: 0.4s; }
.mc-r2 { animation-delay: 1.0s; }
.mc-r3 { animation-delay: 1.6s; }
.mc-r4 { animation-delay: 2.2s; }
@keyframes mcLogIn {
  0%, 5% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mc-hash { color: var(--accent); font-weight: 700; min-width: 64px; }
.mc-msg  { color: var(--content-default); }
.mc-streak { color: var(--accent); font-weight: 700; }

/* ─── 03 POLICY · use vs refuse ─── */
.mock-policy { background: var(--canvas); font-family: var(--font-mono); }
.mpo-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  flex: 1;
}
.mpo-col {
  background: var(--surface-1);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.mpo-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.mpo-use .mpo-head { color: var(--accent); }
.mpo-refuse .mpo-head { color: var(--accent-warm); }
.mpo-tick   { color: var(--accent); font-size: 14px; }
.mpo-cross  { color: var(--accent-warm); font-size: 14px; }
.mpo-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--content-default);
  opacity: 0;
  animation: mpoRow 8s ease-in-out infinite;
}
.mpo-u1 { animation-delay: 0.2s; }
.mpo-u2 { animation-delay: 0.45s; }
.mpo-u3 { animation-delay: 0.70s; }
.mpo-u4 { animation-delay: 0.95s; }
.mpo-u5 { animation-delay: 1.20s; }
.mpo-u6 { animation-delay: 1.45s; }
.mpo-r1 { animation-delay: 1.85s; }
.mpo-r2 { animation-delay: 2.10s; }
.mpo-r3 { animation-delay: 2.35s; }
.mpo-r4 { animation-delay: 2.60s; }
.mpo-r5 { animation-delay: 2.85s; }
.mpo-r6 { animation-delay: 3.10s; }
@keyframes mpoRow {
  0%, 6% { opacity: 0; transform: translateX(-4px); }
  12%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mpo-ok { color: var(--accent); font-weight: 700; }
.mpo-x  { color: var(--accent-warm); font-weight: 700; }
.mpo-refuse s { color: var(--content-muted); }
.mpo-foot-tag { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .mp-row, .mp-arrow-path,
  .mc-cell, .mc-log-row,
  .mpo-row { animation: none !important; opacity: 1; }
}

@media (max-width: 720px) {
  .mpo-cols { grid-template-columns: 1fr; }
  .mc-grid { grid-template-columns: repeat(13, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   PROCESS · v2 — 6 big animated mocks
═════════════════════════════════════════════════════════════════ */

/* ─── 01 SCOPE doc ─── */
.mock-scope { background: var(--canvas); font-family: var(--font-mono); }
.ms-section {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.ms-section:last-of-type { border-bottom: 0; flex: 1; }
.ms-key {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
  margin-bottom: 4px;
}
.ms-text { font-size: 12px; color: var(--content-default); line-height: 1.4; }
.ms-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--content-default);
  opacity: 0;
  animation: msRow 9s ease-in-out infinite;
}
.ms-c1 { animation-delay: 0.2s; }
.ms-c2 { animation-delay: 0.5s; }
.ms-c3 { animation-delay: 0.8s; }
.ms-c4 { animation-delay: 1.1s; }
.ms-s1 { animation-delay: 1.6s; }
.ms-s2 { animation-delay: 1.9s; }
.ms-s3 { animation-delay: 2.2s; }
@keyframes msRow {
  0%, 4% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.ms-check { color: var(--accent); font-weight: 700; }
.ms-stamp {
  background: var(--accent);
  color: var(--canvas);
  padding: 2px 8px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

/* ─── 02 FLOW diagram ─── */
.mock-flow { background: var(--canvas); }
.mf-canvas { flex: 1; padding: 14px; display: flex; align-items: center; justify-content: center; }
.mf-canvas svg { width: 100%; height: 100%; max-height: 220px; }
.mf-edge {
  stroke: var(--content-muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  animation: mfFlow 1.6s linear infinite;
  opacity: 0.6;
}
.mf-edge-4 { stroke: var(--accent); opacity: 1; animation-delay: 0.2s; }
.mf-edge-5 { stroke: var(--accent); opacity: 1; animation-delay: 0.4s; }
.mf-edge-6 { stroke: var(--accent); opacity: 1; animation-delay: 0.6s; }
@keyframes mfFlow { to { stroke-dashoffset: -20; } }
.mf-node rect {
  fill: var(--surface-1);
  stroke: var(--content-strong);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
}
.mf-node-mid rect { fill: var(--accent); stroke: var(--accent); animation: mfPulse 2s ease-in-out infinite; }
.mf-node-in rect  { animation: mfFade 3s ease-in-out infinite; }
.mf-node-out rect { fill: var(--canvas); stroke: var(--accent); animation: mfFade 3s ease-in-out infinite; }
.mf-nodes g:nth-child(2) rect { animation-delay: 0.2s; }
.mf-nodes g:nth-child(3) rect { animation-delay: 0.4s; }
.mf-nodes g:nth-child(5) rect { animation-delay: 0.8s; }
.mf-nodes g:nth-child(6) rect { animation-delay: 1.0s; }
.mf-nodes g:nth-child(7) rect { animation-delay: 1.2s; }
@keyframes mfPulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }
@keyframes mfFade  { 0%,100%{opacity:0.7;} 50%{opacity:1;} }
.mf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  fill: var(--content-strong);
  font-weight: 700;
}
.mf-node-mid .mf-label { fill: var(--canvas); }
.mf-tag { color: var(--accent); font-weight: 700; }

/* ─── 03 COMPONENT LIBRARY ─── */
.mock-library { background: var(--canvas); }
.ml-body { flex: 1; display: grid; grid-template-columns: 100px 1fr; gap: 1px; background: var(--border); }
.ml-tree {
  background: var(--surface-1);
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.ml-item { color: var(--content-muted); padding: 4px 0; }
.ml-active { color: var(--accent); font-weight: 700; }
.ml-canvas { background: var(--canvas); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ml-preview-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.ml-card {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  animation: mlCardPulse 3s ease-in-out infinite;
}
@keyframes mlCardPulse { 0%,100%{border-color:var(--border-strong);} 50%{border-color:var(--accent);} }
.ml-card-dot {
  width: 14px; height: 14px;
  background: var(--accent);
  display: inline-block;
}
.ml-card-line {
  display: block;
  height: 8px;
  background: var(--content-default);
  transform-origin: left;
  animation: mlLine 3s ease-in-out infinite;
}
.ml-cl-2 { width: 65%; animation-delay: 0.3s; }
@keyframes mlLine { 0%,100%{transform:scaleX(0.4);} 50%{transform:scaleX(1);} }
.ml-card-btn {
  align-self: flex-start;
  background: var(--content-strong);
  color: var(--canvas);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  animation: mlBtn 2.4s ease-in-out infinite;
}
@keyframes mlBtn { 0%,100%{background:var(--content-strong);} 50%{background:var(--accent);} }
.ml-states {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.ml-state {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 4px 0;
  color: var(--content-muted);
  border: 1px solid var(--border);
  background: var(--surface-1);
  animation: mlState 4s ease-in-out infinite;
}
.ml-st-1 { animation-delay: 0.0s; }
.ml-st-2 { animation-delay: 1.0s; }
.ml-st-3 { animation-delay: 2.0s; }
.ml-st-4 { animation-delay: 3.0s; }
@keyframes mlState {
  0%, 92%, 100% { color: var(--content-muted); border-color: var(--border); background: var(--surface-1); }
  10%, 22%      { color: var(--canvas); border-color: var(--accent); background: var(--accent); }
}
.ml-status { color: var(--accent); font-weight: 700; }

/* ─── 04 DEPLOY console ─── */
.mock-deploy { background: var(--canvas); font-family: var(--font-mono); }
.md-steps {
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.md-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--content-default);
  opacity: 0;
  animation: mdStep 9s ease-in-out infinite;
}
.md-step-ok  { color: var(--accent); font-weight: 700; }
.md-step-lbl { flex: 1; }
.md-step-dur { color: var(--content-muted); font-size: 11px; }
.md-s1 { animation-delay: 0.2s; }
.md-s2 { animation-delay: 0.7s; }
.md-s3 { animation-delay: 1.2s; }
.md-s4 { animation-delay: 1.7s; }
.md-s5 { animation-delay: 2.2s; }
@keyframes mdStep {
  0%, 4% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.md-meter {
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface-1);
}
.md-meter-row {
  display: flex; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.md-meter-key { color: var(--content-muted); }
.md-meter-val { color: var(--content-strong); font-weight: 700; }
.md-meter-bar {
  height: 6px;
  background: var(--border);
  overflow: hidden;
}
.md-meter-fill {
  display: block; height: 100%;
  background: var(--accent);
  width: 0;
  animation: mdMeterFill 4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes mdMeterFill {
  0%, 100% { width: 0; }
  60%, 90% { width: 71%; }
}
.md-meter-foot {
  display: flex; justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--content-muted);
}
.md-meter-ok { color: var(--accent); font-weight: 700; }
.md-success { color: var(--accent); font-weight: 700; }

/* ─── 05 EVALS suite ─── */
.mock-evals { background: var(--canvas); font-family: var(--font-mono); }
.me-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.me-kpi {
  background: var(--surface-1);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.me-kpi-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.me-kpi-pct { font-size: 18px; color: var(--content-muted); }
.me-kpi-lab {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.me-warn { color: var(--accent-warm); }
.me-rows {
  flex: 1;
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.me-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  opacity: 0;
  animation: meRow 8s ease-in-out infinite;
}
.me-r1 { animation-delay: 0.2s; }
.me-r2 { animation-delay: 0.7s; }
.me-r3 { animation-delay: 1.2s; }
.me-r4 { animation-delay: 1.7s; }
.me-r5 { animation-delay: 2.2s; }
@keyframes meRow {
  0%, 4% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.me-ok { color: var(--accent); font-weight: 700; }
.me-x  { color: var(--accent-warm); font-weight: 700; }
.me-name { flex: 1; color: var(--content-default); }
.me-time { color: var(--content-muted); font-size: 10px; }
.me-status { color: var(--accent-warm); font-weight: 700; }

/* ─── 06 LAUNCH console ─── */
.mock-launch { background: var(--canvas); font-family: var(--font-mono); }
.ml-launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  flex: 1;
}
.ml-card-box {
  background: var(--surface-1);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.ml-card-key {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
  margin-bottom: 4px;
}
.ml-card-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--content-default);
  opacity: 0;
  animation: mlLaunchRow 9s ease-in-out infinite;
}
.ml-l-pf1 { animation-delay: 0.2s; }
.ml-l-pf2 { animation-delay: 0.4s; }
.ml-l-pf3 { animation-delay: 0.6s; }
.ml-l-d1  { animation-delay: 1.0s; }
.ml-l-d2  { animation-delay: 1.2s; }
.ml-l-d3  { animation-delay: 1.4s; }
.ml-l-m1  { animation-delay: 1.8s; }
.ml-l-m2  { animation-delay: 2.0s; }
.ml-l-m3  { animation-delay: 2.2s; }
.ml-l-h1  { animation-delay: 2.6s; }
.ml-l-h2  { animation-delay: 2.8s; }
.ml-l-h3  { animation-delay: 3.0s; }
@keyframes mlLaunchRow {
  0%, 4% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.ml-ok { color: var(--accent); font-weight: 700; }
.ml-launched {
  color: var(--canvas);
  background: var(--accent);
  padding: 2px 8px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .ms-row, .mf-edge, .mf-node rect,
  .ml-card, .ml-card-line, .ml-card-btn, .ml-state,
  .md-step, .md-meter-fill,
  .me-row, .me-kpi-val,
  .ml-card-row { animation: none !important; opacity: 1; }
}

@media (max-width: 720px) {
  .ml-launch-grid { grid-template-columns: 1fr; }
  .me-summary { grid-template-columns: 1fr; }
  .ml-body { grid-template-columns: 80px 1fr; }
  .ml-states { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   STACK · v2 — 6 big mocks per group
═════════════════════════════════════════════════════════════════ */

/* shared inline-code style for stack page */
.cap-content code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent);
  background: var(--surface-1);
  padding: 1px 5px;
  border: 1px solid var(--border);
}

/* ─── 01 REQUEST trace ─── */
.mock-request { background: var(--canvas); font-family: var(--font-mono); }
.mr-rows {
  flex: 1;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 7px;
}
.mr-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: mrRow 10s ease-in-out infinite;
}
.mr-r1 { animation-delay: 0.2s; }
.mr-r2 { animation-delay: 0.6s; }
.mr-r3 { animation-delay: 1.0s; }
.mr-r4 { animation-delay: 1.4s; }
.mr-r5 { animation-delay: 1.8s; }
.mr-r6 { animation-delay: 2.2s; }
.mr-r7 { animation-delay: 2.6s; }
@keyframes mrRow {
  0%, 3% { opacity: 0; transform: translateX(-4px); }
  8%     { opacity: 1; transform: translateX(0); }
  94%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mr-arrow { color: var(--accent); font-weight: 700; width: 12px; }
.mr-key {
  color: var(--accent);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  min-width: 36px;
}
.mr-val { flex: 1; color: var(--content-default); }
.mr-val.mr-ok { color: var(--accent); font-weight: 700; }
.mr-time {
  color: var(--content-muted);
  font-size: 10px;
  min-width: 40px;
  text-align: right;
}
.mr-time-ok { color: var(--accent); font-weight: 700; }
.mr-status { color: var(--accent); font-weight: 700; }

/* ─── 02 COMPONENT preview ─── */
.mock-component { background: var(--canvas); font-family: var(--font-mono); }
.mc2-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.mc2-code { background: #0a0a0a; padding: 14px; }
.mc2-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: #c4c4c4;
}
.mc2-l { display: block; opacity: 0; animation: mc2Line 8s ease-in-out infinite; }
.mc2-l1 { animation-delay: 0.2s; }
.mc2-l2 { animation-delay: 0.6s; }
.mc2-l3 { animation-delay: 1.0s; }
.mc2-l4 { animation-delay: 1.4s; }
.mc2-l5 { animation-delay: 1.8s; }
.mc2-l6 { animation-delay: 2.2s; }
@keyframes mc2Line {
  0%, 5% { opacity: 0; }
  10%    { opacity: 1; }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mc2-mute { color: #6e6e6e; }
.mc2-kw   { color: #ff5b1f; }
.mc2-attr { color: #c8ff00; }
.mc2-str  { color: #6e9bff; }
.mc2-arrow { color: #c8ff00; }
.mc2-render {
  background: var(--canvas);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}
.mc2-preview-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.mc2-button {
  background: var(--content-strong);
  color: var(--canvas);
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 10px;
  animation: mc2Button 2.4s ease-in-out infinite;
}
@keyframes mc2Button { 0%,100%{background:var(--content-strong);} 50%{background:var(--accent);} }
.mc2-button-arrow { display: inline-block; transition: transform 0.2s; }
.mc2-states { display: flex; gap: 4px; }
.mc2-state {
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  color: var(--content-muted);
  border: 1px solid var(--border);
}
.mc2-state.mc2-s-2 { animation: mc2State 4s ease-in-out infinite 0.5s; }
.mc2-state.mc2-s-3 { animation: mc2State 4s ease-in-out infinite 1.5s; }
@keyframes mc2State {
  0%, 92%, 100% { color: var(--content-muted); border-color: var(--border); background: transparent; }
  10%, 22%      { color: var(--canvas); background: var(--accent); border-color: var(--accent); }
}
.mc2-status { color: var(--accent); font-weight: 700; }

/* ─── 03 DATA query trace ─── */
.mock-data { background: var(--canvas); font-family: var(--font-mono); }
.mdt-stores {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.mdt-store {
  background: var(--surface-1);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
  animation: mdtStorePulse 3s ease-in-out infinite;
}
.mdt-pg { animation-delay: 0s; }
.mdt-ch { animation-delay: 0.3s; }
.mdt-rd { animation-delay: 0.6s; }
@keyframes mdtStorePulse { 0%,100%{background:var(--surface-1);} 50%{background:color-mix(in srgb, var(--accent) 12%, var(--surface-1));} }
.mdt-name  { font-size: 10px; letter-spacing: 0.18em; color: var(--accent); font-weight: 700; }
.mdt-detail { font-size: 12px; color: var(--content-strong); }
.mdt-stat  { font-size: 10px; color: var(--content-muted); letter-spacing: 0.06em; }
.mdt-flow {
  padding: 6px 18px;
  border-bottom: 1px solid var(--border);
}
.mdt-flow svg { width: 100%; height: 56px; display: block; }
.mdt-edge {
  stroke: var(--content-muted);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  animation: mdtEdge 1.6s linear infinite;
  opacity: 0.6;
}
@keyframes mdtEdge { to { stroke-dashoffset: -16; } }
.mdt-merge {
  fill: var(--accent);
  transform-box: fill-box; transform-origin: center;
  animation: mdtMerge 2s ease-in-out infinite;
}
@keyframes mdtMerge { 0%,100%{transform:scale(1);} 50%{transform:scale(1.4);} }
.mdt-result {
  flex: 1;
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.mdt-key { font-size: 10px; letter-spacing: 0.18em; color: var(--content-muted); margin-bottom: 4px; }
.mdt-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--content-default);
  opacity: 0;
  animation: mdtRow 8s ease-in-out infinite;
}
.mdt-rr-1 { animation-delay: 0.4s; }
.mdt-rr-2 { animation-delay: 0.8s; }
.mdt-rr-3 { animation-delay: 1.2s; }
@keyframes mdtRow {
  0%, 4% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mdt-ok { color: var(--accent); font-weight: 700; }
.mdt-status { color: var(--accent); font-weight: 700; }

/* ─── 04 ROUTER · LLM ─── */
.mock-router { background: var(--canvas); font-family: var(--font-mono); }
.mrt-prompt, .mrt-rule {
  padding: 12px 18px;
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--border);
}
.mrt-rule { border-bottom: 0; border-top: 1px solid var(--border); }
.mrt-key {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
  flex: 0 0 56px;
}
.mrt-text, .mrt-rule-text {
  font-size: 11px;
  color: var(--content-default);
}
.mrt-providers {
  flex: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
}
.mrt-provider {
  background: var(--surface-1);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 3px solid transparent;
  transition: background 0.3s;
}
.mrt-selected {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-1));
  border-top-color: var(--accent);
  animation: mrtSelected 4s ease-in-out infinite;
}
@keyframes mrtSelected {
  0%, 100% { background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); }
  50%      { background: color-mix(in srgb, var(--accent) 28%, var(--surface-1)); }
}
.mrt-pname  { font-size: 10px; letter-spacing: 0.18em; color: var(--content-muted); }
.mrt-pmodel { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--content-strong); }
.mrt-ptag {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--content-muted);
}
.mrt-ptag-hl { color: var(--accent); font-weight: 700; }
.mrt-status { color: var(--accent); font-weight: 700; }

/* ─── 05 DOCKER COMPOSE ─── */
.mock-compose { background: var(--canvas); font-family: var(--font-mono); }
.mdc-rows {
  flex: 1;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.mdc-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 0.5fr;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  opacity: 0;
  animation: mdcRow 9s ease-in-out infinite;
}
.mdc-r1 { animation-delay: 0.2s; }
.mdc-r2 { animation-delay: 0.4s; }
.mdc-r3 { animation-delay: 0.6s; }
.mdc-r4 { animation-delay: 0.8s; }
.mdc-r5 { animation-delay: 1.0s; }
.mdc-r6 { animation-delay: 1.2s; }
@keyframes mdcRow {
  0%, 3% { opacity: 0; transform: translateX(-4px); }
  8%     { opacity: 1; transform: translateX(0); }
  94%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mdc-name   { color: var(--content-strong); font-weight: 700; }
.mdc-port   { color: var(--content-muted); }
.mdc-status { font-size: 10px; letter-spacing: 0.12em; }
.mdc-ok { color: var(--accent); font-weight: 700; }
.mdc-up { color: var(--content-muted); font-size: 10px; text-align: right; }
.mdc-status-foot { color: var(--accent); font-weight: 700; }

/* ─── 06 INVOICE ─── */
.mock-invoice { background: var(--canvas); font-family: var(--font-mono); }
.mi-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border);
}
.mi-meta-col {
  background: var(--surface-1);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.mi-mk { font-size: 9px; letter-spacing: 0.18em; color: var(--content-muted); }
.mi-mv { font-size: 13px; color: var(--content-strong); font-weight: 700; }
.mi-lines {
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mi-line {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--content-default);
  opacity: 0;
  animation: miLine 9s ease-in-out infinite;
}
.mi-l1 { animation-delay: 0.4s; }
.mi-l2 { animation-delay: 0.8s; }
.mi-l3 { animation-delay: 1.2s; }
@keyframes miLine {
  0%, 4% { opacity: 0; transform: translateX(-4px); }
  10%    { opacity: 1; transform: translateX(0); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mi-totals {
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.mi-tot {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--content-muted);
}
.mi-tot-grand {
  font-size: 13px;
  color: var(--content-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mi-amt { color: var(--content-strong); }
.mi-amt-hl { color: var(--accent); }
.mi-stamp { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .mr-row, .mc2-l, .mc2-button, .mc2-state,
  .mdt-store, .mdt-edge, .mdt-merge, .mdt-row,
  .mrt-selected, .mdc-row, .mi-line { animation: none !important; opacity: 1; }
}

@media (max-width: 720px) {
  .mc2-split { grid-template-columns: 1fr; }
  .mrt-providers { grid-template-columns: 1fr; }
  .mdt-stores { grid-template-columns: 1fr; }
  .mi-meta { grid-template-columns: 1fr; }
  .mdc-row { grid-template-columns: 1.4fr 0.6fr 0.7fr; }
  .mdc-up { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   ABOUT · v1 — 4 big mocks (vision / mission / motto / message)
═════════════════════════════════════════════════════════════════ */

/* ─── 01 NORTH STAR (vision) ─── */
.mock-northstar { background: var(--canvas); font-family: var(--font-mono); }
.mns-stage {
  flex: 1;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: center;
}
.mns-stage svg { width: 100%; height: 100%; max-height: 260px; display: block; }
.mns-ray {
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  animation: mnsRay 4s ease-in-out infinite;
}
.mns-ray-1 { animation-delay: 0.0s; }
.mns-ray-2 { animation-delay: 0.2s; }
.mns-ray-3 { animation-delay: 0.4s; }
.mns-ray-4 { animation-delay: 0.6s; }
.mns-ray-5 { animation-delay: 0.8s; }
.mns-ray-6 { animation-delay: 1.0s; }
.mns-ray-7 { animation-delay: 1.2s; }
@keyframes mnsRay {
  0%, 100% { opacity: 0;   stroke-dasharray: 60; stroke-dashoffset: 60; }
  40%, 60% { opacity: 0.8; stroke-dashoffset: 0; }
}
.mns-star-shape {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: mnsStarPulse 3s ease-in-out infinite;
}
.mns-star-core { fill: var(--canvas); }
@keyframes mnsStarPulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50%      { transform: rotate(45deg) scale(1.15); }
}
.mns-path {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.mns-m {
  fill: var(--surface-1);
  stroke: var(--content-strong);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: mnsMile 9s ease-in-out infinite;
}
.mns-m-1 { animation-delay: 0.4s; }
.mns-m-2 { animation-delay: 1.0s; }
.mns-m-3 { animation-delay: 1.6s; }
.mns-m-4 { animation-delay: 2.2s; }
.mns-m-hl { fill: var(--accent); stroke: var(--accent); }
@keyframes mnsMile {
  0%, 4% { opacity: 0; transform: scale(0); }
  10%    { opacity: 1; transform: scale(1); }
  92%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mns-yr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  fill: var(--content-muted);
}
.mns-yr-hl { fill: var(--accent); font-weight: 700; }
.mns-status { color: var(--accent); font-weight: 700; }

/* ─── 01b COMPOUND · Vision section replacement ─── */
.mock-compound { background: var(--canvas); font-family: var(--font-mono); }
.mc-stage {
  flex: 1;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: center;
}
.mc-stage svg { width: 100%; height: 100%; max-height: 280px; display: block; }
.mc-grid line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.55;
}
.mc-area {
  fill: var(--accent);
  fill-opacity: 0.14;
  stroke: none;
}
.mc-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: mcLineDraw 3.6s ease-out infinite;
}
@keyframes mcLineDraw {
  0%       { stroke-dashoffset: 460; }
  55%, 92% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 0; }
}
.mc-node {
  fill: var(--canvas);
  stroke: var(--content-strong);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: mcNodePop 3.6s ease-out infinite;
}
.mc-node-1 { animation-delay: 0.2s; }
.mc-node-2 { animation-delay: 0.6s; }
.mc-node-3 { animation-delay: 1.0s; }
.mc-node-4 { animation-delay: 1.4s; }
.mc-node-hl {
  animation-delay: 1.8s;
  fill: var(--accent);
  stroke: var(--accent);
}
@keyframes mcNodePop {
  0%     { opacity: 0; transform: scale(0); }
  8%     { opacity: 1; transform: scale(1.4); }
  14%    { opacity: 1; transform: scale(1); }
  92%    { opacity: 1; transform: scale(1); }
  100%   { opacity: 1; transform: scale(1); }
}
.mc-arrow-line, .mc-arrow-head {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  opacity: 0;
  animation: mcArrowFade 3.6s ease-out infinite;
  animation-delay: 2.2s;
}
@keyframes mcArrowFade {
  0%, 5%   { opacity: 0; transform: translateY(6px); }
  20%      { opacity: 1; transform: translateY(0); }
  92%      { opacity: 1; transform: translateY(0); }
  100%     { opacity: 1; transform: translateY(0); }
}
.mc-arrow-line, .mc-arrow-head { transform-box: fill-box; }
.mc-xlbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  fill: var(--content-muted);
  text-anchor: middle;
}
.mc-xlbl-hl { fill: var(--accent); font-weight: 700; }
.mc-status { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .mc-line, .mc-node, .mc-arrow-line, .mc-arrow-head { animation: none; opacity: 1; }
  .mc-line { stroke-dashoffset: 0; }
}

/* "Posture" block (now standalone on Vision section, no grid) */
.vision-posture {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin: 0;
}
.vision-posture h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  margin: 0 0 8px;
  font-weight: 500;
}
.vision-posture p {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  color: var(--content-default);
  margin: 0;
  max-width: 56ch;
}

/* ─── 02 TARGET (mission) ─── */
.mock-target { background: var(--canvas); font-family: var(--font-mono); }
.mt-stage {
  flex: 1;
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
}
.mt-stage svg { width: 100%; height: 100%; max-height: 280px; display: block; }
.mt-ring {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
}
.mt-ring-1 { animation: mtRingPulse 4s ease-in-out infinite 0s; }
.mt-ring-2 { animation: mtRingPulse 4s ease-in-out infinite 0.3s; stroke: var(--border-strong); }
.mt-ring-3 { animation: mtRingPulse 4s ease-in-out infinite 0.6s; }
.mt-ring-4 { animation: mtRingPulse 4s ease-in-out infinite 0.9s; stroke: var(--accent); stroke-width: 1.5; }
@keyframes mtRingPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.mt-cross {
  stroke: var(--accent);
  stroke-width: 2;
}
.mt-center {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: mtCenter 1.4s ease-in-out infinite;
}
@keyframes mtCenter {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.8); opacity: 0.7; }
}
.mt-corner {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: square;
}
.mt-status { color: var(--accent); font-weight: 700; }

/* ─── 03 STAMP (motto) ─── */
.mock-stamp { background: var(--canvas); font-family: var(--font-mono); }
.mst-stage {
  flex: 1;
  padding: 22px;
  display: flex; align-items: center; justify-content: center;
}
.mst-stamp {
  position: relative;
  width: 90%;
  max-width: 380px;
  background: var(--surface-1);
  border: 2px solid var(--content-strong);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transform: rotate(-2deg);
  animation: mstWobble 6s ease-in-out infinite;
}
@keyframes mstWobble {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(-1deg); }
}
.mst-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 3px solid var(--accent);
}
.mst-c-tl { top: -2px;  left: -2px;  border-right: 0; border-bottom: 0; }
.mst-c-tr { top: -2px;  right: -2px; border-left: 0;  border-bottom: 0; }
.mst-c-bl { bottom: -2px; left: -2px;  border-right: 0; border-top: 0; }
.mst-c-br { bottom: -2px; right: -2px; border-left: 0;  border-top: 0; }
.mst-frame-top, .mst-frame-bot {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--content-muted);
}
.mst-text {
  display: flex; flex-direction: column;
  margin: 8px 0;
}
.mst-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--content-strong);
}
.mst-accent { color: var(--accent); font-style: italic; font-weight: 600; }
.mst-mark {
  position: absolute;
  top: 6px; right: 32px;
  font-family: var(--font-display);
  color: var(--accent-warm);
  font-size: 18px;
  animation: mstMark 1.8s ease-in-out infinite;
}
@keyframes mstMark { 0%,100%{opacity:1;transform:rotate(0);} 50%{opacity:0.6;transform:rotate(10deg);} }
.mst-status { color: var(--accent); font-weight: 700; }

/* ─── 04 LETTER (message) ─── */
.mock-letter { background: var(--canvas); font-family: var(--font-mono); }
.mlt-paper {
  flex: 1;
  padding: 22px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  background: var(--surface-1);
}
.mlt-greet, .mlt-line, .mlt-sign-line, .mlt-sign-name {
  opacity: 0;
  animation: mltLine 10s ease-in-out infinite;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--content-default);
}
.mlt-greet {
  font-weight: 600;
  color: var(--content-strong);
  animation-delay: 0.2s;
  margin-bottom: 4px;
}
.mlt-l-1 { animation-delay: 0.6s; }
.mlt-l-2 { animation-delay: 1.0s; }
.mlt-l-3 { animation-delay: 1.4s; }
.mlt-l-4 { animation-delay: 1.8s; }
.mlt-l-5 { animation-delay: 2.2s; }
.mlt-sign-line { animation-delay: 2.8s; margin-top: 8px; color: var(--content-muted); font-style: italic; }
.mlt-sign-name { animation-delay: 3.6s; color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; font-family: var(--font-mono); }
@keyframes mltLine {
  0%, 4% { opacity: 0; transform: translateX(-3px); }
  9%     { opacity: 1; transform: translateX(0); }
  94%    { opacity: 1; }
  100%   { opacity: 0; }
}
.mlt-signature {
  width: 200px;
  height: 50px;
  margin-top: 4px;
  align-self: flex-start;
}
.mlt-sig-path {
  stroke: var(--content-strong);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: mltSignDraw 10s ease-in-out infinite;
}
@keyframes mltSignDraw {
  0%, 30%  { stroke-dashoffset: 600; }
  45%, 90% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 600; }
}
.mlt-status { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .mns-ray, .mns-star-shape, .mns-m,
  .mt-ring, .mt-center,
  .mst-stamp, .mst-mark,
  .mlt-greet, .mlt-line, .mlt-sign-line, .mlt-sign-name, .mlt-sig-path { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
}

/* ════════════════════════════════════════════════════════════════
   CAP-BLOCK · INVERTED (used on /v1/about/ Message section)
   - Locally re-scopes the design tokens so everything inside flips.
   - In light mode the section becomes dark; in dark mode it becomes light.
   - Background bleeds to viewport edges via ::before pseudo.
═════════════════════════════════════════════════════════════════ */
.cap-block--invert {
  position: relative;
  isolation: isolate;
  padding: 60px 0;
  margin-top: 32px;
}
.cap-block--invert::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--canvas);
  z-index: -1;
}

/* light mode → section uses the DARK palette */
[data-theme="light"] .cap-block--invert {
  --canvas:          #0a0a0a;
  --surface-1:       #131313;
  --surface-2:       #1c1c1c;
  --border:          #2a2a2a;
  --border-strong:   #3d3d3d;
  --content-strong:  #fafafa;
  --content-default: #c4c4c4;
  --content-muted:   #6e6e6e;
  --accent:          #c8ff00;
  --accent-warm:     #ff5b1f;
  color: var(--content-default);
}

/* dark mode → section uses the LIGHT palette */
[data-theme="dark"] .cap-block--invert {
  --canvas:          #f5f5f3;
  --surface-1:       #ebebe7;
  --surface-2:       #dedeb8;
  --border:          #d4d4cc;
  --border-strong:   #b0b0a8;
  --content-strong:  #0a0a0a;
  --content-default: #2a2a2a;
  --content-muted:   #7a7a76;
  --accent:          #377400;
  --accent-warm:     #d24a14;
  color: var(--content-default);
}

/* Tighten typography inside the inverted block so it fits a tighter footprint */
.cap-block--invert .cap-grid { gap: 40px; }
.cap-block--invert .cap-content h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  margin-bottom: 14px;
}
.cap-block--invert .cap-content .capability-lead {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.cap-block--invert .cap-content .capability-body {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.cap-block--invert .cap-detail-grid {
  padding: 16px 0;
  gap: 20px;
  margin-bottom: 0;
}
.cap-block--invert .cap-detail-grid li,
.cap-block--invert .cap-detail-grid p { font-size: 13px; }
.cap-block--invert .cap-mock { max-width: 460px; }

/* removing the section's outer top-border (because the bg pseudo handles the boundary)
   and re-aligning padding inside the article container */
.cap-block--invert { border-top: 0; border-bottom: 0; }

/* small accent: thin lime rule at the top + bottom of the inverted strip */
.cap-block--invert::after {
  content: '';
  position: absolute;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  top: 0;
  height: 1px;
  background: var(--accent);
  z-index: -1;
}

/* When a page ends with an inverted block, footer sits flush against it (no light gap). */
main:has(> .page-article > .cap-block--invert:last-child) + .site-footer {
  margin-top: 0;
  border-top: 0;
}

/* Tighter spacing inside the process section on the home page */
.process-rail-v2 {
  padding-top: 0;
  margin-top: -24px;
}
.section:has(> .process-rail-v2) > .section-head {
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════════════════════════
   SECTION · BRAND BAND
   Used on the home page Process section. Full-bleed background in
   brand green (light theme) / brand lime (dark theme). Section
   header text inverts to the canvas color for perfect contrast.
═════════════════════════════════════════════════════════════════ */
.section--brand {
  position: relative;
  isolation: isolate;
  padding: 48px 36px 56px;
  margin: 32px auto 0;
}
.section--brand::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--accent);
  z-index: -1;
}

/* Section header text uses the page's "canvas" color so it contrasts
   against the brand band in either theme:
   - light: page canvas is cream, band is dark green → cream text on green
   - dark : page canvas is near-black, band is lime → near-black text on lime  */
.section--brand .section-head .eyebrow { color: var(--canvas); opacity: 0.85; }
.section--brand .section-title         { color: var(--canvas); }
.section--brand .section-sub           { color: var(--canvas); opacity: 0.85; }

/* CTA link inside the band — same canvas color, arrow accent stays bright */
.section--brand .section-cta { border-top-color: color-mix(in srgb, var(--canvas) 28%, transparent); }
.section--brand .section-cta .link-arrow { color: var(--canvas); }

/* Compact internals so the whole band fits a tighter footprint */
.section--brand .section-head { margin-bottom: 28px; }
.section--brand .section-title { font-size: clamp(34px, 5vw, 64px); }
.section--brand .process-rail-v2 { margin-top: -16px; padding-top: 0; }
.section--brand .proc-stage      { padding: 18px 16px; }
.section--brand .proc-icon       { width: 48px; height: 48px; margin-bottom: 4px; }
.section--brand .proc-stage .stage-num   { font-size: 9px; }
.section--brand .proc-stage .stage-label { font-size: 19px; }
.section--brand .proc-stage .stage-note  { font-size: 12px; }

/* ════════════════════════════════════════════════════════════════
   PROCESS · BRAND CYCLER — one stage at a time, auto-rotating
═════════════════════════════════════════════════════════════════ */
.section--brand-cycler { padding-bottom: 56px; }

.cycler {
  position: relative;
  margin-top: 16px;
}

/* Focus area where one stage shows at a time */
.cycler-stages {
  position: relative;
  min-height: 220px;
  border-top: 1px solid color-mix(in srgb, var(--canvas) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--canvas) 25%, transparent);
  padding: 36px 0;
  margin-bottom: 28px;
  overflow: hidden;
}

/* All stages stacked in same position, only one visible at a time */
.cycler-stage {
  position: absolute;
  inset: 36px 0;
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: cyclerStage 21s linear infinite;
}
.cycler-stage:nth-child(1) { animation-delay: 0s; }
.cycler-stage:nth-child(2) { animation-delay: 3.5s; }
.cycler-stage:nth-child(3) { animation-delay: 7s; }
.cycler-stage:nth-child(4) { animation-delay: 10.5s; }
.cycler-stage:nth-child(5) { animation-delay: 14s; }
.cycler-stage:nth-child(6) { animation-delay: 17.5s; }
@keyframes cyclerStage {
  0%        { opacity: 0; transform: translateY(20px); }
  2%        { opacity: 1; transform: translateY(0); }
  14.5%     { opacity: 1; transform: translateY(0); }
  17%       { opacity: 0; transform: translateY(-20px); }
  100%      { opacity: 0; transform: translateY(-20px); }
}

/* Big icon on the left of each focus stage */
.cycler-icon {
  flex: 0 0 120px;
  width: 120px; height: 120px;
  background: color-mix(in srgb, var(--canvas) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--canvas) 35%, transparent);
  padding: 14px;
}
.cycler-icon svg { width: 100%; height: 100%; display: block; }
/* Inside the brand band, override icon colors to use the band's canvas (which contrasts the accent bg) */
.section--brand-cycler .cycler-icon .pi-lens   { stroke: var(--canvas); fill: none; }
.section--brand-cycler .cycler-icon .pi-handle { stroke: var(--canvas); }
.section--brand-cycler .cycler-icon .pi-scan   { fill: var(--canvas); }
.section--brand-cycler .cycler-icon .pi-axis   { stroke: color-mix(in srgb, var(--canvas) 60%, transparent); }
.section--brand-cycler .cycler-icon .pi-bar    { fill: var(--canvas); }
.section--brand-cycler .cycler-icon .pi-b3     { fill: var(--canvas); opacity: 0.65; }
.section--brand-cycler .cycler-icon .pi-cell   { stroke: var(--canvas); fill: none; }
.section--brand-cycler .cycler-icon .pi-c2     { animation: piCellFillCanvas 3s ease-in-out infinite 0.25s; }
.section--brand-cycler .cycler-icon .pi-bracket { stroke: var(--canvas); }
.section--brand-cycler .cycler-icon .pi-cursor { fill: var(--canvas); }
.section--brand-cycler .cycler-icon .pi-edge   { stroke: color-mix(in srgb, var(--canvas) 60%, transparent); }
.section--brand-cycler .cycler-icon .pi-node   { fill: var(--canvas); }
.section--brand-cycler .cycler-icon .pi-node-hl { fill: var(--canvas); }
.section--brand-cycler .cycler-icon .pi-arrow-line { stroke: var(--canvas); fill: none; }
.section--brand-cycler .cycler-icon .pi-arrow-head { stroke: var(--canvas); fill: none; }
.section--brand-cycler .cycler-icon .pi-arrow-dot  { fill: var(--canvas); }
@keyframes piCellFillCanvas {
  0%,100% { fill: none; stroke: var(--canvas); }
  50%     { fill: var(--canvas); stroke: var(--canvas); opacity: 0.85; }
}

/* Right-side content for each focus stage */
.cycler-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cycler-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--canvas);
  opacity: 0.6;
}
.cycler-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--canvas);
  margin: 4px 0 6px;
}
.cycler-note {
  font-family: var(--font-text);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: var(--canvas);
  opacity: 0.85;
  max-width: 560px;
}
.cycler-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--canvas);
  opacity: 0.6;
  margin-top: 6px;
}

/* Progress dots — one per stage, active one is large/bright */
.cycler-dots {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--canvas) 18%, transparent);
}
.cycler-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--canvas);
  opacity: 0.3;
  animation: cyclerDot 21s linear infinite;
  transform-origin: center;
}
.cycler-dot:nth-child(1) { animation-delay: 0s; }
.cycler-dot:nth-child(2) { animation-delay: 3.5s; }
.cycler-dot:nth-child(3) { animation-delay: 7s; }
.cycler-dot:nth-child(4) { animation-delay: 10.5s; }
.cycler-dot:nth-child(5) { animation-delay: 14s; }
.cycler-dot:nth-child(6) { animation-delay: 17.5s; }
@keyframes cyclerDot {
  0%        { opacity: 0.3; transform: scale(1); }
  2%, 14.5% { opacity: 1; transform: scale(1.5); }
  17%, 100% { opacity: 0.3; transform: scale(1); }
}

/* Stage labels under dots — synced with the active dot */
.cycler-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}
.cycler-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--canvas);
  opacity: 0.5;
  animation: cyclerLabel 21s linear infinite;
}
.cycler-label:nth-child(1) { animation-delay: 0s; }
.cycler-label:nth-child(2) { animation-delay: 3.5s; }
.cycler-label:nth-child(3) { animation-delay: 7s; }
.cycler-label:nth-child(4) { animation-delay: 10.5s; }
.cycler-label:nth-child(5) { animation-delay: 14s; }
.cycler-label:nth-child(6) { animation-delay: 17.5s; }
@keyframes cyclerLabel {
  0%        { opacity: 0.4; font-weight: 400; }
  2%, 14.5% { opacity: 1; font-weight: 700; }
  17%, 100% { opacity: 0.4; font-weight: 400; }
}

/* Status footer */
.cycler-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--canvas);
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .cycler-stage:not(:first-child) { display: none; }
  .cycler-stage { animation: none; opacity: 1; transform: none; }
  .cycler-dot, .cycler-label { animation: none; }
  .cycler-dot:first-child { opacity: 1; transform: scale(1.5); }
  .cycler-label:first-child { opacity: 1; font-weight: 700; }
}

@media (max-width: 720px) {
  .cycler-stages { min-height: 280px; padding: 24px 0; }
  .cycler-stage { inset: 24px 0; flex-direction: column; align-items: flex-start; gap: 18px; }
  .cycler-icon { flex: 0 0 80px; width: 80px; height: 80px; padding: 10px; }
  .cycler-labels { grid-template-columns: repeat(3, 1fr); }
  .cycler-labels .cycler-label:nth-child(n+4) { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION · ALWAYS-DARK BAND
   Used on the home page Contact CTA. Full-bleed black background in
   BOTH light and dark page themes. Tokens are locally re-scoped to
   the dark palette so the card inside picks up the right surfaces.
═════════════════════════════════════════════════════════════════ */
.section--dark {
  position: relative;
  isolation: isolate;
  padding: 56px 36px;
  margin: 32px auto 0;

  /* Force the dark palette inside, regardless of [data-theme] */
  --canvas:          #0a0a0a;
  --surface-1:       #131313;
  --surface-2:       #1c1c1c;
  --border:          #2a2a2a;
  --border-strong:   #3d3d3d;
  --content-strong:  #fafafa;
  --content-default: #c4c4c4;
  --content-muted:   #6e6e6e;
  --accent:          #c8ff00;
  --accent-warm:     #ff5b1f;

  color: var(--content-default);
}
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--canvas);
  z-index: -1;
}

/* When section--dark is the LAST element in main, footer sits flush */
main:has(> .page-article > .section--dark:last-child) + .site-footer,
main:has(> :last-child.section--dark) + .site-footer {
  margin-top: 0;
  border-top: 0;
}

/* CTA card inside the dark band: tighter padding for "fit on page" feel */
.section--dark .cta-card { max-width: 1080px; margin: 0 auto; }
.section--dark .cta-title { font-size: clamp(32px, 5vw, 60px); }
.section--dark .cta-body { padding: 40px 32px 28px; }
.section--dark .cta-foot { padding: 12px 28px; }

/* Adjacent bands stick together — no gap between Process (brand) and Contact (dark) */
.section--brand + .section--dark {
  margin-top: 0;
}

/* ════════════════════════════════════════════════════════════════
   CTA · BUILDING-BLOCKS ICON
═════════════════════════════════════════════════════════════════ */
.cta-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.cta-icon {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
}
.bld { width: 100%; height: auto; display: block; }
.bld-floor {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.bld-corner {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: square;
}
.bld-block {
  fill: var(--content-default);
  stroke: var(--border-strong);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: bottom;
  opacity: 0;
  animation: bldStack 5s ease-in-out infinite;
}
.bld-b1 { animation-delay: 0.0s; }
.bld-b2 { animation-delay: 0.2s; }
.bld-b3 { animation-delay: 0.4s; }
.bld-b4 { animation-delay: 0.8s; }
.bld-b5 { animation-delay: 1.0s; }
.bld-b6 { animation-delay: 1.4s; }
.bld-b7 { animation-delay: 1.8s; }
.bld-crown { fill: var(--accent); stroke: var(--accent); }
@keyframes bldStack {
  0%        { opacity: 0; transform: translateY(20px); }
  6%        { opacity: 1; transform: translateY(0); }
  85%       { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(-4px); }
}
.bld-crown {
  animation-name: bldStackCrown;
}
@keyframes bldStackCrown {
  0%        { opacity: 0; transform: translateY(20px) scale(0.5); }
  8%        { opacity: 1; transform: translateY(0) scale(1.2); }
  16%       { opacity: 1; transform: translateY(0) scale(1); }
  85%       { opacity: 1; }
  100%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bld-block { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .cta-body-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-icon { max-width: 200px; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════════
   FOOTER PICKER (internal preview page)
═════════════════════════════════════════════════════════════════ */
.footer-variant {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 24px 36px 80px;
}
.footer-variant-label {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--border);
}
.footer-variant-label span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--canvas);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
}
.ftr {
  border: 1px solid var(--border);
  background: var(--canvas);
}

/* ───────── A · Minimal Mono Strip ───────── */
.ftr-a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.ftr-a a { color: var(--content-muted); transition: color 0.2s; }
.ftr-a a:hover { color: var(--accent); }
.ftr-a-cluster { display: flex; gap: 16px; align-items: center; }

/* ───────── B · Sitemap Grid ───────── */
.ftr-b { padding: 48px 36px 24px; }
.ftr-b-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.ftr-b-brand { display: flex; flex-direction: column; gap: 16px; }
.ftr-b-logo { height: 40px; width: auto; }
.ftr-b-brand p {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--content-default);
  max-width: 320px;
}
.ftr-b-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.ftr-b-col {
  display: flex; flex-direction: column; gap: 10px;
}
.ftr-b-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--content-muted);
  margin-bottom: 4px;
}
.ftr-b-col a {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--content-default);
  transition: color 0.2s;
}
.ftr-b-col a:hover { color: var(--accent); }
.ftr-b-bottom {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}

/* ───────── C · Big Statement ───────── */
.ftr-c {
  padding: 36px 36px 0;
  background: var(--canvas);
  border: 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.ftr-c-meta-top, .ftr-c-meta-bot {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.ftr-c-meta-top {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ftr-c-meta-bot {
  padding: 18px 0 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.ftr-c-meta-bot a { color: var(--accent); }
.ftr-c-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--content-strong);
  text-align: center;
  padding: 24px 0 8px;
  white-space: nowrap;
  overflow: hidden;
}

/* ───────── D · Mission Control ───────── */
.ftr-d {
  padding: 0;
  background: var(--canvas);
  font-family: var(--font-mono);
}
.ftr-d-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.ftr-d-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.ftr-d-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.ftr-d-cell {
  background: var(--canvas);
  padding: 22px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.ftr-d-k {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.ftr-d-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--content-strong);
  line-height: 1;
}
.ftr-d-m {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.ftr-d-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.ftr-d-foot a { color: var(--accent); margin-left: 16px; }

/* ───────── E · Newsletter Signup ───────── */
.ftr-e { padding: 40px 36px 22px; }
.ftr-e-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.ftr-e-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--content-strong);
  margin-top: 8px;
}
.ftr-e-copy p {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--content-default);
  margin-top: 8px;
}
.ftr-e-form {
  display: flex; align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--canvas);
}
.ftr-e-prefix {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  padding: 0 14px 0 18px;
}
.ftr-e-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--content-strong);
  padding: 16px 0;
}
.ftr-e-form input::placeholder { color: var(--content-muted); }
.ftr-e-form button {
  background: var(--content-strong);
  color: var(--canvas);
  border: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 22px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s;
}
.ftr-e-form button:hover { background: var(--accent); }
.ftr-e-bottom {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.ftr-e-bottom a { color: var(--content-muted); }
.ftr-e-bottom a:hover { color: var(--accent); }

@media (max-width: 1080px) {
  .ftr-b-top { grid-template-columns: 1fr; gap: 32px; }
  .ftr-b-cols { grid-template-columns: repeat(2, 1fr); }
  .ftr-d-grid { grid-template-columns: repeat(2, 1fr); }
  .ftr-e-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ftr-a { flex-direction: column; gap: 10px; padding: 18px 20px; }
  .ftr-b-cols { grid-template-columns: 1fr; }
  .ftr-d-grid { grid-template-columns: 1fr; }
  .ftr-c-word { font-size: 20vw; }
  .ftr-d-foot { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   CTA · INTAKE CONSOLE (alternative to building-blocks icon)
═════════════════════════════════════════════════════════════════ */
.cta-console {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
}
.cta-console-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.cta-console-tag { color: var(--content-strong); }
.cta-console-live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.cta-console-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }

.cta-msg { display: flex; flex-direction: column; gap: 4px; }
.cta-msg-meta {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
  margin-bottom: 4px;
}
.cta-msg-text, .cta-line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--content-default);
  opacity: 0;
  animation: ctaConsoleLine 9s ease-in-out infinite;
}
.cta-msg-in .cta-msg-text { color: var(--content-strong); }

.cta-text-1 { animation-delay: 0.4s; }
.cta-text-2 { animation-delay: 0.9s; }
.cta-text-3 { animation-delay: 1.4s; }

.cta-line { display: grid; grid-template-columns: 16px 80px 1fr; gap: 8px; align-items: baseline; }
.cta-line-1 { animation-delay: 2.6s; }
.cta-line-2 { animation-delay: 3.1s; }
.cta-line-3 { animation-delay: 3.6s; }
.cta-line-4 { animation-delay: 4.1s; }

.cta-ok { color: var(--accent); font-weight: 700; }
.cta-k  { color: var(--accent); font-size: 10px; letter-spacing: 0.16em; font-weight: 700; }
.cta-v  { color: var(--content-default); }

@keyframes ctaConsoleLine {
  0%, 4%  { opacity: 0; transform: translateX(-4px); }
  10%     { opacity: 1; transform: translateX(0); }
  92%     { opacity: 1; }
  100%    { opacity: 0; }
}

.cta-console-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.cta-cursor {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  animation: ctaConsoleBlink 1s steps(1) infinite;
}
@keyframes ctaConsoleBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-msg-text, .cta-line, .cta-cursor { animation: none; opacity: 1; }
}

@media (max-width: 720px) {
  .cta-console { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   CONTACT FORM — brutalist form on /v1/contact/
═════════════════════════════════════════════════════════════════ */
.contact-form-wrap { margin: 32px 0 48px; }
.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-form {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.contact-form-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.contact-form-tag    { color: var(--content-strong); }
.contact-form-status {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 22px 0;
}
.cf-row-two   { grid-template-columns: 1fr 1fr; }
.cf-row-three { grid-template-columns: 1fr 1fr 1fr; }

.cf-field {
  display: flex; flex-direction: column; gap: 6px;
}
.cf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.cf-req { color: var(--accent); font-style: normal; }
.cf-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--content-muted);
  margin-top: 4px;
  transition: color 0.15s ease;
}
.cf-hint--invalid { color: #c0392b; font-weight: 700; }
.cf-hint--ok      { color: var(--accent); }

/* ─── per-field validation error (red border + inline message) ─── */
.cf-field input[aria-invalid="true"],
.cf-field textarea[aria-invalid="true"],
.cf-field select[aria-invalid="true"] {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 1px #c0392b inset;
  background: color-mix(in srgb, #c0392b 4%, var(--surface-1));
}
.cf-field input[aria-invalid="true"]:focus,
.cf-field textarea[aria-invalid="true"]:focus,
.cf-field select[aria-invalid="true"]:focus {
  outline: 2px solid color-mix(in srgb, #c0392b 60%, transparent);
  outline-offset: 1px;
}
.cf-field-error {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #c0392b;
  font-weight: 700;
}
.cf-field-error::before { content: "✗  "; }
.cf-field input,
.cf-field select,
.cf-field textarea {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.4;
  color: var(--content-strong);
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  outline: 0;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
  width: 100%;
}
.cf-field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--accent);
}
.cf-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--content-default) 50%),
                    linear-gradient(135deg, var(--content-default) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.contact-form-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 22px;
  border-top: 1px solid var(--border);
  margin-top: 22px;
  background: var(--canvas);
}
.contact-form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}

/* side rail */
.contact-side {
  background: var(--canvas);
  border: 1px solid var(--border);
  padding: 22px 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.contact-side-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.contact-side-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.contact-side-val {
  font-size: 13px;
  color: var(--content-default);
  margin-bottom: 8px;
}
.contact-side-val.mono {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════
   CONTACT MODAL — blocking processing flow
═════════════════════════════════════════════════════════════════ */
.cm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cm-backdrop.cm-open { display: flex; }

.cm-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--surface-1);
  border: 2px solid var(--accent);
  font-family: var(--font-mono);
}
.cm-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.cm-tag { color: var(--content-strong); }
.cm-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.cm-body { padding: 32px 28px 28px; }
.cm-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--content-strong);
  margin-bottom: 8px;
}
.cm-title .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.cm-sub {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.55;
  color: var(--content-default);
  margin-bottom: 20px;
}

/* steps */
.cm-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.cm-step {
  display: grid;
  grid-template-columns: 28px 36px 1fr 14px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--content-muted);
  transition: color 0.25s;
}
.cm-step-i {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--content-muted);
}
.cm-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}
.cm-step-label {
  font-family: var(--font-text);
  font-size: 14px;
}
.cm-step-dot {
  width: 8px; height: 8px;
  background: var(--border-strong);
  border-radius: 50%;
  transition: background 0.25s, transform 0.25s;
}
.cm-step.is-running .cm-step-i { color: var(--accent); animation: cmSpin 1s linear infinite; display: inline-block; }
.cm-step.is-running { color: var(--content-strong); }
.cm-step.is-running .cm-step-num,
.cm-step.is-running .cm-step-label { color: var(--content-strong); }
.cm-step.is-running .cm-step-dot { background: var(--accent); transform: scale(1.4); }
.cm-step.is-done .cm-step-i { color: var(--accent); animation: none; }
.cm-step.is-done .cm-step-dot { background: var(--accent); }
.cm-step.is-done .cm-step-num,
.cm-step.is-done .cm-step-label { color: var(--content-default); }
@keyframes cmSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cm-warning {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  border-left: 2px solid var(--accent-warm);
  padding-left: 10px;
}

/* success state */
.cm-success-eyebrow,
.cm-error-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
}
.cm-success-eyebrow { background: var(--accent); color: var(--canvas); }
.cm-error-eyebrow   { background: var(--accent-warm); color: var(--canvas); }

.cm-ref {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  background: var(--canvas);
  border: 1px solid var(--accent);
  margin: 16px 0 18px;
}
.cm-ref-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--content-muted);
}
.cm-ref-val {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.cm-fineprint {
  font-family: var(--font-text);
  font-size: 12px;
  color: var(--content-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.cm-fineprint strong { color: var(--content-strong); font-weight: 600; }

@media (max-width: 1080px) {
  .contact-form-grid { grid-template-columns: 1fr; }
  .cf-row-three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cf-row-two, .cf-row-three { grid-template-columns: 1fr; }
  .cm-card { max-width: 100%; }
  .cm-body { padding: 22px 18px; }
  .cm-step { grid-template-columns: 22px 28px 1fr 10px; gap: 8px; }
}

/* ════════════════════════════════════════════════════════════════
   HONEYPOT — visually + assistively hidden, but present in DOM
   so bots fill it and we can reject those submissions server-side.
═════════════════════════════════════════════════════════════════ */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.hp-field input,
.hp-field label { all: unset; }

/* ════════════════════════════════════════════════════════════════
   FIT-CYCLE · contact page "not the right fit?" auto-cycler
   Sits inside .cap-block--invert so palette flips per theme.
   Five stages × 3.5s = 17.5s loop.
═════════════════════════════════════════════════════════════════ */
.fit-cycle-block {
  padding: 56px 0 64px;
  margin-top: 40px;
}

.fit-cycle-head {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}
.fit-cycle-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}
.fit-cycle-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--content-strong);
  margin: 0 0 12px;
}
.fit-cycle-title .accent { color: var(--accent); font-style: normal; }
.fit-cycle-sub {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  color: var(--content-default);
  margin: 0;
}

.fit-cycle {
  position: relative;
  margin-top: 8px;
}

/* focus area: stages stack, one visible at a time */
.fit-cycle-stages {
  position: relative;
  min-height: 240px;
  border-top: 1px solid color-mix(in srgb, var(--content-strong) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--content-strong) 18%, transparent);
  padding: 36px 0;
  margin-bottom: 22px;
  overflow: hidden;
}

.fit-cycle-stage {
  position: absolute;
  inset: 36px 0;
  display: flex;
  align-items: center;
  gap: 44px;
  opacity: 0;
  transform: translateY(20px);
  animation: fitCycleStage 17.5s linear infinite;
}
.fit-cycle-stage:nth-child(1) { animation-delay: 0s; }
.fit-cycle-stage:nth-child(2) { animation-delay: 3.5s; }
.fit-cycle-stage:nth-child(3) { animation-delay: 7s; }
.fit-cycle-stage:nth-child(4) { animation-delay: 10.5s; }
.fit-cycle-stage:nth-child(5) { animation-delay: 14s; }

/* timings: 17.5s = 100%, 3.5s slot = 20%
   0%→2% fade in, 2%→17% hold, 17%→20% fade out, 20%→100% offstage */
@keyframes fitCycleStage {
  0%      { opacity: 0; transform: translateY(20px); }
  2%      { opacity: 1; transform: translateY(0); }
  17%     { opacity: 1; transform: translateY(0); }
  20%     { opacity: 0; transform: translateY(-20px); }
  100%    { opacity: 0; transform: translateY(-20px); }
}

/* Big icon */
.fit-cycle-icon {
  flex: 0 0 132px;
  width: 132px; height: 132px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 18px;
  position: relative;
}
.fit-cycle-icon::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none;
}
.fit-cycle-icon svg { width: 100%; height: 100%; display: block; }
.fit-cycle-icon .fi-stroke { stroke: var(--content-strong); stroke-width: 2; stroke-linecap: square; fill: none; }
.fit-cycle-icon .fi-line   { stroke: color-mix(in srgb, var(--content-strong) 65%, transparent); }
.fit-cycle-icon .fi-fill   { fill: var(--accent); }
.fit-cycle-icon .fi-check  { stroke: var(--accent); stroke-width: 2.5; }
.fit-cycle-icon .fi-pulse  { animation: fitPulse 1.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes fitPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* Right-side content */
.fit-cycle-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.fit-cycle-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--content-muted);
}
.fit-cycle-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--content-strong);
  margin: 2px 0 6px;
}
.fit-cycle-note {
  font-family: var(--font-text);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.55;
  color: var(--content-default);
  max-width: 580px;
  margin: 0;
}
.fit-cycle-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 6px;
}

/* Progress dots */
.fit-cycle-dots {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--content-strong) 14%, transparent);
}
.fit-cycle-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--content-strong);
  opacity: 0.28;
  animation: fitCycleDot 17.5s linear infinite;
  transform-origin: center;
}
.fit-cycle-dot:nth-child(1) { animation-delay: 0s; }
.fit-cycle-dot:nth-child(2) { animation-delay: 3.5s; }
.fit-cycle-dot:nth-child(3) { animation-delay: 7s; }
.fit-cycle-dot:nth-child(4) { animation-delay: 10.5s; }
.fit-cycle-dot:nth-child(5) { animation-delay: 14s; }
@keyframes fitCycleDot {
  0%        { opacity: 0.28; transform: scale(1); background: var(--content-strong); }
  2%, 17%   { opacity: 1;    transform: scale(1.5); background: var(--accent); }
  20%, 100% { opacity: 0.28; transform: scale(1); background: var(--content-strong); }
}

/* Stage labels */
.fit-cycle-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.fit-cycle-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--content-muted);
  animation: fitCycleLabel 17.5s linear infinite;
}
.fit-cycle-label:nth-child(1) { animation-delay: 0s; }
.fit-cycle-label:nth-child(2) { animation-delay: 3.5s; }
.fit-cycle-label:nth-child(3) { animation-delay: 7s; }
.fit-cycle-label:nth-child(4) { animation-delay: 10.5s; }
.fit-cycle-label:nth-child(5) { animation-delay: 14s; }
@keyframes fitCycleLabel {
  0%        { opacity: 0.45; font-weight: 400; color: var(--content-muted); }
  2%, 17%   { opacity: 1;    font-weight: 700; color: var(--content-strong); }
  20%, 100% { opacity: 0.45; font-weight: 400; color: var(--content-muted); }
}

.fit-cycle-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--content-muted);
}

/* ─── Hover anywhere on the cycler → pause auto-cycle (CSS only) ─── */
.fit-cycle:hover .fit-cycle-stage,
.fit-cycle:hover .fit-cycle-dot,
.fit-cycle:hover .fit-cycle-label,
.fit-cycle:focus-within .fit-cycle-stage,
.fit-cycle:focus-within .fit-cycle-dot,
.fit-cycle:focus-within .fit-cycle-label {
  animation-play-state: paused;
}

/* ─── Manual mode (JS-toggled when user clicks dot/arrow) ───
   Auto-animation is killed; visibility is driven by [data-active]. */
.fit-cycle.is-manual .fit-cycle-stage,
.fit-cycle.is-manual .fit-cycle-dot,
.fit-cycle.is-manual .fit-cycle-label {
  animation: none;
}
.fit-cycle.is-manual .fit-cycle-stage {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fit-cycle.is-manual .fit-cycle-stage[data-active] {
  opacity: 1;
  transform: translateY(0);
}
.fit-cycle.is-manual .fit-cycle-dot {
  opacity: 0.28;
  transform: scale(1);
  background: var(--content-strong);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.fit-cycle.is-manual .fit-cycle-dot[data-active] {
  opacity: 1;
  transform: scale(1.5);
  background: var(--accent);
}
.fit-cycle.is-manual .fit-cycle-label {
  opacity: 0.45;
  font-weight: 400;
  color: var(--content-muted);
  transition: opacity 0.25s ease, color 0.25s ease;
}
.fit-cycle.is-manual .fit-cycle-label[data-active] {
  opacity: 1;
  font-weight: 700;
  color: var(--content-strong);
}

/* ─── Dot as button (a11y + click target) ─── */
.fit-cycle-dot {
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.fit-cycle-dot::before {
  /* expand hit area without affecting layout */
  content: '';
  position: absolute;
  inset: -10px;
}
.fit-cycle-dot { position: relative; }
.fit-cycle-dot:hover,
.fit-cycle-dot:focus-visible {
  opacity: 1;
  outline: 0;
}
.fit-cycle-dot:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .fit-cycle-stage:not(:first-child) { display: none; }
  .fit-cycle-stage { animation: none; opacity: 1; transform: none; }
  .fit-cycle-dot, .fit-cycle-label { animation: none; }
  .fit-cycle-dot:first-child { opacity: 1; transform: scale(1.5); background: var(--accent); }
  .fit-cycle-label:first-child { opacity: 1; font-weight: 700; color: var(--content-strong); }
  .fit-cycle-icon .fi-pulse { animation: none; }
}

@media (max-width: 720px) {
  .fit-cycle-block { padding: 40px 0 48px; margin-top: 28px; }
  .fit-cycle-stages { min-height: 320px; padding: 26px 0; }
  .fit-cycle-stage { inset: 26px 0; flex-direction: column; align-items: flex-start; gap: 18px; }
  .fit-cycle-icon  { flex: 0 0 88px; width: 88px; height: 88px; padding: 12px; }
  .fit-cycle-labels { grid-template-columns: repeat(3, 1fr); }
  .fit-cycle-labels .fit-cycle-label:nth-child(n+4) { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   BACK-TO-TOP · floating bottom-right button
   Hidden until the user scrolls past ~600px; click jumps to top.
═════════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--canvas);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, color 0.15s ease;
  appearance: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--canvas);
  color: var(--accent);
}
.back-to-top:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent);
}
.back-to-top svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}
.back-to-top-label { line-height: 1; }

@media (max-width: 720px) {
  .back-to-top { right: 16px; bottom: 16px; padding: 10px 12px; }
  .back-to-top-label { display: none; } /* keep just the arrow on small screens */
  .back-to-top svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.15s linear; transform: none; }
}
