/* Echo9 · 9host public landing. Plain CSS, no build step.
   Serif = the site you publish. Mono = the machine (hosts, paths, versions).
   Vermilion = the publish signal; it owns one full-bleed section and nothing else is loud. */

:root {
  color-scheme: light dark;

  /* Neutrals, cool-tinted */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --ink: #0f1218;
  --ink-2: #3a414e;      /* body: 9.4:1 on bg */
  --muted: #59606e;      /* small labels: 5.8:1 on bg */
  --line: rgba(15, 18, 24, 0.1);
  --line-strong: rgba(15, 18, 24, 0.2);
  --shadow: 0 1px 2px rgba(15, 18, 24, 0.05), 0 12px 32px -8px rgba(15, 18, 24, 0.14);

  /* Signal */
  --signal: #b8381d;         /* text + fills: 5.3:1 on bg, 5.8:1 with white */
  --signal-hover: #9a2e17;
  --signal-bright: #e0502f;  /* decorative only */
  --signal-tint: #fbe6df;
  --field: #b23519;          /* full-bleed section; white text 6.2:1 */
  --on-field: #ffffff;
  --on-field-2: #ffe7df;     /* 5.2:1 on field */
  --live: #047857;
  --focus: #1d4ed8;

  /* Art */
  --art-1: #f2b8a6;
  --art-2: #e0502f;
  --art-3: #1f2a3a;
  --art-4: #c9ced8;

  /* Type: 1.333 scale from 16px */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.333rem;
  --t-xl: clamp(1.777rem, 3.2vw, 2.369rem);
  --t-2xl: clamp(2.369rem, 5vw, 3.157rem);
  --t-3xl: clamp(2.75rem, 7.4vw, 5.61rem);

  /* Space: 4px base */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4rem, 10vw, 8rem);

  --r-sm: 6px;
  --r-md: 12px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e12;
    --surface: #15181e;
    --surface-2: #1d2129;
    --ink: #eef0f3;
    --ink-2: #b6bcc7;     /* 10.1:1 on bg */
    --muted: #8f97a5;     /* 6.6:1 on bg */
    --line: rgba(238, 240, 243, 0.1);
    --line-strong: rgba(238, 240, 243, 0.2);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -10px rgba(0, 0, 0, 0.6);

    --signal: #ff8366;      /* text on bg: 8.0:1 */
    --signal-hover: #ffa189;
    --signal-bright: #ff7a5c;
    --signal-tint: #3a1d16;
    --field: #a83218;       /* white 6.8:1 */
    --on-field-2: #ffe1d8;
    --live: #34d399;
    --focus: #8ab4ff;

    --art-1: #6e3427;
    --art-2: #ff7a5c;
    --art-3: #cfd6e2;
    --art-4: #343a46;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-5); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: inherit; }
em { font-style: italic; }
main { flex: 1; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.pipeline :focus-visible { outline-color: #ffffff; }

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

.skip-link {
  position: absolute;
  left: var(--s-4); top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Type roles ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin-bottom: var(--s-4);
}
.eyebrow-on-signal { color: var(--on-field-2); }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em, h2 em { color: var(--signal); }
h2 { font-size: var(--t-2xl); line-height: 1.05; }
h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-lede {
  margin-top: var(--s-4);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  flex-wrap: wrap;
  padding-block: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  font-size: var(--t-base);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-sep { color: var(--muted); font-weight: 400; margin-inline: 0.15em; }
.brand-mark {
  position: relative;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-grid;
  place-items: center;
  padding-right: 3px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-bright);
}
.brand-mark-sm { width: 22px; height: 22px; font-size: 0.62rem; border-radius: 6px; margin-right: var(--s-2); vertical-align: middle; }
.brand-mark-sm::after { width: 4px; height: 4px; top: 2px; right: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  flex-wrap: wrap;
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.nav-anchor a { text-decoration: none; padding-block: var(--s-2); }
.nav-anchor a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.tools-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: var(--s-1) var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.tools-pill:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: var(--t-base);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 2.25rem; padding: var(--s-1) var(--s-4); font-size: var(--t-sm); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .btn-signal { color: #1a0a06; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  padding-top: clamp(2rem, 6vw, 5rem);
  padding-bottom: var(--section);
}
.hero h1 {
  font-size: var(--t-3xl);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
}
.hero h1 em { white-space: nowrap; }
.lede {
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: var(--s-6);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.live-dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 45%, transparent);
}

/* Hero art: two browser frames + publish chip, all CSS */
.hero-art {
  position: relative;
  padding: var(--s-8) 0 var(--s-7) var(--s-8);
}
.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame-back {
  position: absolute;
  top: var(--s-2); left: 0;
  width: 64%;
  transform: rotate(-3deg);
  transform-origin: 0 0;
}
.frame-front { position: relative; }
.frame-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px var(--s-3);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
}
.lock { width: 11px; height: 11px; flex: none; fill: var(--live); stroke: var(--live); stroke-width: 1.3; }
.lock path { fill: none; }

.frame-body { padding: var(--s-5); }
.back-body { padding-bottom: var(--s-8); display: grid; gap: var(--s-2); }
.ph { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
.ph-short { width: 60%; }
.ph-title { height: 14px; width: 45%; background: var(--art-4); margin-bottom: var(--s-2); }

.mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--t-xs);
  color: var(--muted);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.mini-nav b { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-md); color: var(--ink); }
.mini-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: var(--s-5) 0;
  max-width: 14ch;
}
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.mini-events { display: grid; gap: var(--s-2); align-content: start; }
.mini-event { display: flex; align-items: center; gap: var(--s-3); }
.mini-event .ph { flex: 1; }
.mini-date {
  display: inline-grid;
  justify-items: center;
  width: 2.4rem;
  padding: 3px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.1;
}
.mini-date b { font-size: 0.85rem; color: var(--ink); font-weight: 500; letter-spacing: 0; }
.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mini-gallery i { aspect-ratio: 1; border-radius: 4px; background: var(--art-1); }
.mini-gallery i:nth-child(2) { background: var(--art-2); }
.mini-gallery i:nth-child(3) { background: var(--art-3); }
.mini-gallery i:nth-child(4) { background: var(--art-4); }

.publish-chip {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
  box-shadow: var(--shadow);
}
.publish-chip code { font-size: var(--t-xs); opacity: 0.8; }
.publish-chip .live-dot { background: #34d399; }
@media (prefers-color-scheme: dark) { .publish-chip .live-dot { background: #047857; } }

/* ---------- Pipeline (the colour field) ---------- */
.pipeline {
  background: var(--field);
  color: var(--on-field);
  padding-block: var(--section);
  position: relative;
  overflow: hidden;
}
.pipeline::before {
  /* faint grid: the edge network, read as texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.pipeline .wrap { position: relative; }
.pipeline h2 { color: var(--on-field); }
.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  counter-reset: stage;
}
.stages::before {
  /* the wire that connects the stages */
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.stages::after {
  /* a publish travelling the wire */
  content: "";
  position: absolute;
  top: calc(1.25rem - 3px);
  left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  animation: travel 5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
.stage { position: relative; padding-top: var(--s-8); }
.stage-num {
  position: absolute;
  top: 0; left: 0;
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--field);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
}
.stage h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.stage p { color: var(--on-field-2); max-width: 34ch; margin-bottom: var(--s-5); }
.stage a { color: #fff; text-underline-offset: 3px; }
.stage-path {
  display: inline-block;
  font-size: var(--t-xs);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ---------- Modules bento ---------- */
.modules { padding-block: var(--section) var(--s-9); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-4);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.tile-blog { grid-column: span 4; }
.tile-events { grid-column: span 2; grid-row: span 2; }
.tile-gallery, .tile-brand { grid-column: span 2; }
.tile-copy p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; max-width: 46ch; }
.tile-art { flex: 1; min-height: 7rem; }

.art-blog { display: grid; gap: var(--s-3); align-content: center; }
.post {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: var(--s-1) var(--s-4);
  align-items: center;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: 0; padding-bottom: 0; }
.post-meta { grid-row: span 2; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); }
.post-line { height: 9px; border-radius: 4px; background: var(--ink); opacity: 0.85; width: 82%; }
.post-line.short { height: 6px; width: 64%; background: var(--surface-2); opacity: 1; }
.post-line.shorter { height: 6px; width: 48%; background: var(--surface-2); opacity: 1; }

.art-events { display: grid; gap: var(--s-4); align-content: center; justify-items: start; padding-block: var(--s-5); }
.cal {
  display: inline-grid;
  justify-items: center;
  width: 4.5rem;
  padding: var(--s-2) 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.2;
}
.cal b { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; letter-spacing: 0; color: var(--ink); line-height: 1; }
.cal:nth-child(2) { margin-left: var(--s-6); }
.cal-hot { margin-left: var(--s-8); background: var(--signal); border-color: var(--signal); color: #fff; }
.cal-hot b { color: #fff; }
@media (prefers-color-scheme: dark) { .cal-hot, .cal-hot b { color: #1a0a06; } }

.art-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.art-gallery i { border-radius: 4px; background: var(--art-4); min-height: 3rem; }
.art-gallery i:nth-child(1) { grid-row: span 2; background: var(--art-3); }
.art-gallery i:nth-child(2) { background: var(--art-1); }
.art-gallery i:nth-child(3) { background: var(--art-2); }
.art-gallery i:nth-child(5) { background: var(--art-1); }
.art-gallery i:nth-child(6) { display: none; }

.art-brand { display: flex; align-items: center; gap: var(--s-2); }
.swatch { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); }
.swatch + .swatch { margin-left: -0.9rem; }
.s1 { background: var(--art-3); }
.s2 { background: var(--art-2); }
.s3 { background: var(--art-1); }
.aa { margin-left: auto; font-family: var(--font-serif); font-size: 3.5rem; line-height: 1; letter-spacing: -0.02em; }

/* ---------- Templates index ---------- */
.templates { padding-bottom: var(--s-9); }
.template-index { border-top: 1px solid var(--line-strong); }
.template-index li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.ti-num { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--signal); }
.ti-name { font-family: var(--font-serif); font-size: var(--t-xl); line-height: 1.1; letter-spacing: -0.01em; }
.ti-desc { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); text-align: right; }

/* ---------- Domains ---------- */
.domains {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  padding-bottom: var(--section);
}
.domains-copy h2 { font-size: var(--t-xl); line-height: 1.1; }
.ladder { display: grid; gap: var(--s-3); }
.rung {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.rung-custom { margin-left: var(--s-7); border-color: var(--signal); box-shadow: var(--shadow); position: relative; }
.rung-custom::before {
  /* elbow connector from the subdomain down to the custom domain */
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-7) + var(--s-5));
  top: calc(-1 * var(--s-3));
  width: calc(var(--s-7) - var(--s-5));
  height: 50%;
  border-left: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
  border-bottom-left-radius: var(--r-sm);
}
.rung-label { font-family: var(--font-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.rung-custom .rung-label { color: var(--signal); }
.rung-host { font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rung-host .dim { color: var(--signal); }
.rung-note { font-size: var(--t-sm); color: var(--ink-2); }
.rung-record {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.rung-record b { color: var(--ink); font-weight: 500; margin-right: var(--s-2); }

/* ---------- Closing ---------- */
.closing {
  padding-block: var(--s-9);
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
}
.closing h2 { font-size: var(--t-3xl); line-height: 0.95; letter-spacing: -0.025em; }

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-7);
  align-items: center;
  padding-block: clamp(3rem, 10vw, 7rem) var(--section);
}
.not-found h1 { font-size: var(--t-3xl); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: var(--s-5); }
.nf-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  line-height: 1.9;
  white-space: pre;
}
.nf-code .miss { color: var(--signal); }
.nf-code .ok { color: var(--live); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding-block: var(--s-5) var(--s-6);
  font-size: var(--t-sm);
  color: var(--muted);
}
.footer-links { display: flex; gap: var(--s-5); }
.footer-links a { text-underline-offset: 3px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.frame-front { animation: rise 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.frame-back { animation: rise-tilt 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.publish-chip { animation: rise 0.6s 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.live-dot { animation: pulse 2.4s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stages::after { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .domains { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .hero-art { max-width: 36rem; }
  .tile-blog { grid-column: span 6; }
  .tile-events { grid-column: span 2; grid-row: span 2; }
  .tile-gallery, .tile-brand { grid-column: span 4; }
  .not-found { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav-anchor { display: none; }
  .stages { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .stages::before { top: 0; bottom: 0; left: 1.25rem; right: auto; width: 1px; height: auto; }
  .stages::after { display: none; }
  .stage { padding-top: 0; padding-left: var(--s-8); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-blog, .tile-events, .tile-gallery, .tile-brand { grid-column: auto; grid-row: auto; }
  .art-events { grid-auto-flow: column; justify-content: start; }
  .cal:nth-child(2), .cal-hot { margin-left: 0; }
  .template-index li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .ti-desc { grid-column: 2; text-align: left; }
  .rung-custom { margin-left: var(--s-5); }
  .rung-custom::before { left: calc(-1 * var(--s-5) + var(--s-2)); width: calc(var(--s-5) - var(--s-2)); }
}
@media (max-width: 520px) {
  .nav { padding-block: var(--s-4); }
  .nav-links { width: 100%; justify-content: space-between; gap: var(--s-2); }
  .tools-pill { font-size: 0.72rem; padding-inline: var(--s-3); }
  .hero-actions .btn { width: 100%; }
  .hero-art { padding-left: var(--s-5); padding-top: var(--s-7); }
  .frame-body { padding: var(--s-4); }
  .mini-nav span { display: none; }
  .publish-chip { right: 0; }
  .nf-code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
