/* 2A AI Kitchen — grant landing adapted from ML Fast Food visual system */

:root {
  --bg-app: #101113;
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-olive: #a7a7a7;
  --accent-bright: #d3342f;
  --accent-amber: #d9d9d9;
  --text-strong: #f5f5f5;
  --text-body: rgba(235,238,242,0.95);
  --text-muted: #a7adb5;
  --text-dim: #6f767f;
  --glass-bg: rgba(10,12,18,0.55);
  --glass-blur: blur(24px) saturate(130%);
  --shadow-card: 0 14px 32px rgba(0, 0, 0, 0.35);
  --font-display: 'Manrope', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Manrope', -apple-system, system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; width: 100%; height: 100%; color-scheme: dark; }

body {
  background: var(--bg-app);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

* { scrollbar-width: thin; scrollbar-color: rgba(132,144,160,0.82) rgba(20,24,30,0.46); }
*::-webkit-scrollbar { width: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(176,186,200,0.6), rgba(124,143,165,0.7));
  border: 2px solid transparent; border-radius: 999px;
}

/* ── Ambient BG ── */
.ambient-video, .ambient-wash { position: fixed; inset: 0; pointer-events: none; }
.ambient-video { z-index: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.ambient-wash { z-index: 1; background: rgba(0, 0, 0, 0.08); }
.app-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(211,52,47,0.08), transparent 22%),
    radial-gradient(circle at 78% 24%, rgba(230,232,236,0.06), transparent 20%),
    linear-gradient(180deg, rgba(16,17,19,0.2), rgba(24,25,28,0.58));
}

/* ── Floating particles layer ── */
#floating-particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
}

/* ── Scroll ── */
.page-scroll {
  position: relative; z-index: 3;
  width: 100%; height: 100%;
  overflow-y: auto; overflow-x: hidden;
}

main {
  display: block;
}

.section[id] {
  scroll-margin-top: 112px;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  width: 100%;
  padding: clamp(14px, 2vw, 22px) clamp(18px, 2.8vw, 40px) 0;
}

.nav-inner {
  width: min(1680px, 100%);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-shell {
  position: relative;
  min-height: 28px;
  padding: 0 clamp(12px, 1.5vw, 18px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(10,12,16,0.12) 0%, rgba(10,12,16,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 14px rgba(0,0,0,0.07),
    0 2px 6px rgba(211,52,47,0.018);
  backdrop-filter: blur(5px) saturate(103%);
  -webkit-backdrop-filter: blur(5px) saturate(103%);
}

.nav-shell::before {
  content: '';
  position: absolute;
  inset: 1px;
  padding: 1px;
  border-radius: 27px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 24%, transparent 78%, rgba(255,255,255,0.05)),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 36%, rgba(211,52,47,0.03) 100%);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.nav-shell::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 12%;
  bottom: -7px;
  height: 12px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 35%, rgba(211,52,47,0.28), transparent 26%),
    radial-gradient(circle at 58% 50%, rgba(255,255,255,0.14), transparent 30%),
    radial-gradient(circle at 82% 42%, rgba(211,52,47,0.16), transparent 22%);
  filter: blur(10px);
  opacity: 0.08;
}

.nav-underlay,
.nav-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-underlay {
  z-index: 0;
}

.nav-underlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,14,0.06) 0%, rgba(8,10,14,0.015) 28%, rgba(8,10,14,0.08) 100%),
    linear-gradient(180deg, rgba(7,8,12,0.03) 0%, rgba(7,8,12,0.01) 38%, rgba(7,8,12,0.08) 100%);
}

.nav-underlay-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  filter: saturate(0.92) contrast(1.02) brightness(0.98);
  transform: scale(1.03);
}

.nav-atmosphere {
  z-index: 1;
  background:
    radial-gradient(circle at 16% 34%, rgba(255,255,255,0.06), transparent 18%),
    radial-gradient(circle at 38% 50%, rgba(211,52,47,0.06), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,0.03), transparent 16%, transparent 82%, rgba(255,255,255,0.015));
  mix-blend-mode: screen;
  opacity: 0.3;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--text-strong);
  text-shadow: 0 0 22px rgba(211,52,47,0.18);
  position: relative;
  z-index: 3;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  padding: 0;
}

.logo-brand:hover {
  background: transparent;
}

.nav-logo {
  width: clamp(58px, 4.5vw, 80px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 10px 22px rgba(0,0,0,0.32))
    drop-shadow(0 0 18px rgba(211,52,47,0.12));
  transform-origin: center;
  animation: logo-drift 8.5s ease-in-out infinite;
}

.nav-ascii {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(10,12,16,0.08);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 6px rgba(0,0,0,0.045);
  backdrop-filter: blur(3px) saturate(102%);
  -webkit-backdrop-filter: blur(3px) saturate(102%);
  pointer-events: none;
}

.nav-ascii-prompt {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-ascii-prompt {
  color: rgba(211,52,47,0.82);
  text-shadow: 0 0 12px rgba(211,52,47,0.24);
}

.nav-ascii-code {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(244,247,251,0.9);
  text-shadow: 0 0 14px rgba(255,255,255,0.12);
  white-space: nowrap;
}

.logo-mark {
  position: relative;
  width: clamp(72px, 5.8vw, 94px);
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 34% 35%, rgba(255,255,255,0.16), transparent 34%),
    radial-gradient(circle at 72% 68%, rgba(211,52,47,0.18), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 16px 34px rgba(0,0,0,0.34),
    0 0 24px rgba(211,52,47,0.12);
  overflow: hidden;
  isolation: isolate;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 10% 8%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.18) 0 6%, transparent 7% 100%),
    radial-gradient(circle at 44% 18%, rgba(255,255,255,0.14) 0 5%, transparent 6% 100%),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,0.18) 0 5%, transparent 6% 100%),
    radial-gradient(circle at 82% 54%, rgba(255,255,255,0.14) 0 5%, transparent 6% 100%),
    radial-gradient(circle at 58% 74%, rgba(255,255,255,0.16) 0 6%, transparent 7% 100%),
    radial-gradient(circle at 26% 78%, rgba(255,255,255,0.12) 0 5%, transparent 6% 100%);
  opacity: 0.9;
  filter: blur(0.2px);
}

.logo-mark-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(211,52,47,0.22);
  mix-blend-mode: screen;
}

.logo-mark-ring-a {
  inset: 14%;
  transform: rotate(-18deg);
}

.logo-mark-ring-b {
  inset: 24% 10%;
  transform: rotate(24deg);
  border-color: rgba(255,255,255,0.12);
}

.logo-mark-ring-c {
  inset: 32% 18%;
  transform: rotate(-34deg);
}

.logo-mark-core {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(28px, 2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f5f5f5;
  text-shadow:
    0 0 18px rgba(211,52,47,0.28),
    0 2px 8px rgba(0,0,0,0.35);
}

.ascii-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  transform: none;
}

.ascii-title b,
.ascii-title em {
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.ascii-title b {
  font-size: clamp(15px, 1.15vw, 17px);
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  text-shadow: 0 0 14px rgba(211,52,47,0.28);
}

.ascii-title em {
  font-size: clamp(10px, 0.76vw, 11px);
  letter-spacing: 0.18em;
  color: rgba(235,238,242,0.5);
  text-shadow: none;
}

.nav-pill {
  position: relative;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 3px 12px 3px 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(26,29,35,0.82), rgba(18,20,24,0.62));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 22px rgba(0,0,0,0.28),
    0 0 0 1px rgba(211,52,47,0.05);
  font-family: var(--font-mono);
  font-size: 7px; letter-spacing: 0.14em; color: rgba(230,234,240,0.76);
  text-transform: uppercase;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.nav-pill::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(211,52,47,0.12), transparent 28%, transparent 70%, rgba(255,255,255,0.08));
  opacity: 0.9;
  pointer-events: none;
}

.dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px rgba(211,52,47,0.5);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Sections ── */
.section {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 56px clamp(24px, 4.8vw, 76px);
}

.section-inner { max-width: 1280px; margin: 0 auto; }
.section-inner.wide { max-width: 1540px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.14em; font-weight: 600;
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(211,52,47,0.4), 0 0 40px rgba(211,52,47,0.15);
  margin-bottom: 10px;
  animation: breathe-text 4s ease-in-out infinite;
}

.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  line-height: 1.1; letter-spacing: 0;
  color: #f4f7fb;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.section-sub {
  margin: 0 0 40px; max-width: 780px;
  font-size: 15px; line-height: 1.72;
  color: var(--text-body);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding-top: 112px; padding-bottom: 56px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(640px, 1.22fr);
  gap: clamp(8px, 1vw, 16px); align-items: center;
  width: 100%;
}

.hero-text {
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0;
  max-width: 540px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(24px, 2.4vw, 34px);
  justify-self: end;
  transform: translateX(72px);
}

.kicker-line {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: rgba(211,52,47,0.08);
  border: 1px solid rgba(211,52,47,0.2);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--accent-bright);
  text-shadow: 0 0 12px rgba(211,52,47,0.3);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 820; line-height: 1.06;
  letter-spacing: 0; color: #f4f7fb;
}

.accent { color: var(--accent-bright); text-shadow: 0 0 24px rgba(211,52,47,0.35); }

.hero-desc {
  margin: 0; max-width: 680px;
  font-size: 15px; font-weight: 460; line-height: 1.72;
  color: var(--text-body);
}

.hero-actions,
.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.action-link:hover {
  transform: translateY(-1px);
}

.action-link-primary {
  color: #f7f8fa;
  background: rgba(211,52,47,0.16);
  border: 1px solid rgba(211,52,47,0.38);
  box-shadow: 0 10px 20px rgba(211,52,47,0.12);
}

.action-link-secondary {
  color: rgba(244,247,251,0.92);
  background: rgba(18,22,29,0.72);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-proof-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(244,247,251,0.9);
}

.hero-proof-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(211,52,47,0.9);
  box-shadow: 0 0 12px rgba(211,52,47,0.34);
}

.hero-note {
  max-width: 700px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(211,52,47,0.16);
  background: rgba(211,52,47,0.06);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244,247,251,0.88);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 6px 14px; border-radius: 10px;
  background: rgba(35,40,50,0.68);
  border: 1px solid rgba(226,232,240,0.1);
  font-size: 13px; font-weight: 600;
  color: rgba(226,232,240,0.9);
  max-width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 12px rgba(0,0,0,0.12);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.tag:hover {
  border-color: rgba(211,52,47,0.3);
  transform: translateY(-1px);
}

/* ── Canvas visual containers ── */
.hero-visual {
  display: flex; align-items: center; justify-content: flex-end;
  position: relative;
  padding-left: 0;
}

.canvas-visual {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card), 0 0 60px rgba(211,52,47,0.05);
  background: rgba(15,18,24,0.4);
}

.organic-hero {
  aspect-ratio: 1 / 1;
  width: min(100%, 720px);
  max-width: 720px;
  margin-left: auto;
  transform: translateX(28px);
}

.organic-wide {
  min-height: 360px;
}

.canvas-visual canvas {
  width: 100%; height: 100%; display: block;
}

.canvas-visual .visual-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.canvas-visual.fallback .visual-img,
.canvas-visual .visual-img.always-visible {
  opacity: 1;
}

.canvas-visual .visual-img.always-visible {
  z-index: 0;
  filter: saturate(0.9) contrast(1.04) brightness(0.82);
  object-position: 42% 50%;
}

.canvas-visual > canvas:not(.project-graph-canvas) {
  position: relative;
  z-index: 1;
  mix-blend-mode: screen;
}

.project-graph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.72;
}

/* Canvas label overlay */
.canvas-label {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(211,52,47,0.5), 0 0 40px rgba(211,52,47,0.2);
  padding: 6px 14px;
  background: rgba(10,12,18,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  border: 1px solid rgba(211,52,47,0.15);
  z-index: 5;
  animation: breathe-text 4s ease-in-out infinite;
}

.hero-img {
  width: 100%; max-width: 420px;
  border-radius: 24px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

/* ── Steps ── */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15,18,24,0.92), rgba(22,26,34,0.72));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
}

.summary-step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(211,52,47,0.78);
}

.summary-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-strong);
}

.summary-card h3 a {
  color: inherit;
  text-decoration: none;
}

.summary-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--text-body);
}

.summary-meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(244,247,251,0.7);
}

.step-card {
  padding: 22px 20px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(15,18,24,0.92), rgba(22,26,34,0.7));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 250ms var(--ease), transform 400ms var(--ease), box-shadow 250ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.step-card:hover {
  border-color: rgba(211,52,47,0.3);
  box-shadow: var(--shadow-card), 0 0 30px rgba(211,52,47,0.06);
}

.step-idx {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent-bright); opacity: 0.7;
}

.step-card h3 {
  margin: 0; font-family: var(--font-display);
  font-size: 15px; font-weight: 700; color: var(--text-strong);
}

.step-card p {
  margin: 0; font-size: 13px; line-height: 1.7;
  color: var(--text-body);
}

/* ── Section visual ── */
.section-visual {
  margin-top: 40px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.wide-visual {
  margin-left: clamp(-40px, -3vw, -12px);
  margin-right: clamp(-40px, -3vw, -12px);
}

.visual-img {
  width: 100%; display: block;
  border-radius: 20px;
}

/* ── Split ── */
.split {
  display: grid;
  grid-template-columns: minmax(420px, 0.93fr) minmax(500px, 1.07fr);
  gap: clamp(30px, 4vw, 70px); align-items: start;
}

.split > *,
.audio-layout > *,
.hero-split > * {
  min-width: 0;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-offset-right {
  transform: translateX(clamp(0px, 1.8vw, 28px));
}

.split-offset-left {
  transform: translateX(clamp(-28px, -1.8vw, 0px));
}

.split-text {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
}

.split-text p {
  margin: 0; font-size: 14px; line-height: 1.72;
  color: var(--text-body);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.project-head-wide {
  margin-bottom: 10px;
}

.project-tags {
  justify-content: flex-start;
}

.project-tags .tag {
  font-size: 11px;
  padding: 5px 10px;
}

.punchline {
  margin-top: 6px !important;
  padding: 10px 14px;
  border-radius: 12px;
  border-left: 3px solid var(--accent-bright);
  background: rgba(211,52,47,0.06);
  font-style: italic;
  color: var(--accent-bright) !important;
  font-size: 13px !important;
  text-shadow: 0 0 12px rgba(211,52,47,0.2) !important;
}

.split-visual {
  position: relative;
  border-radius: 22px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-proof-row {
  margin-top: 18px;
}

.split-visual .visual-img {
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.organic-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background: rgba(15,18,24,0.56);
  box-shadow: var(--shadow-card), 0 0 70px rgba(211,52,47,0.06);
  isolation: isolate;
}

.organic-panel::after,
.canvas-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 18%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(211,52,47,0.14), transparent 28%);
  opacity: 0.72;
}

.organic-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05) brightness(0.82);
}

.image-panel-tall {
  min-height: 390px;
  aspect-ratio: 1 / 0.82;
}

.image-panel-wide {
  min-height: 310px;
  aspect-ratio: 16 / 6.2;
}

.mini-proof-card {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(18,20,24,0.94), rgba(42,43,48,0.76)),
    radial-gradient(circle at 80% 16%, rgba(211,52,47,0.12), transparent 30%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.mini-proof-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.centered-board {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}

.wide-proof {
  width: 100%;
  margin: 0;
}

/* ── Graph overlay ── */
.graph-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(15,17,23,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.graph-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 0.08em;
}

.graph-counter { color: var(--accent-bright); }

#graph-canvas { width: 100%; min-height: 360px; display: block; }

/* ── Feature grid ── */
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.audio-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(560px, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.signal-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(circle at 35% 30%, rgba(211,52,47,0.12), transparent 34%),
    linear-gradient(135deg, rgba(15,18,24,0.92), rgba(42,43,48,0.7));
  box-shadow: var(--shadow-card), 0 0 55px rgba(211,52,47,0.06);
}

.signal-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 40px;
  opacity: 0.8;
}

.signal-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245,245,245,0.72), rgba(211,52,47,0.9), transparent);
  animation: signal-sweep 3.6s ease-in-out infinite;
  transform-origin: left center;
}

.signal-lines span:nth-child(2) { width: 72%; animation-delay: .25s; }
.signal-lines span:nth-child(3) { width: 92%; animation-delay: .5s; }
.signal-lines span:nth-child(4) { width: 68%; animation-delay: .75s; }
.signal-lines span:nth-child(5) { width: 84%; animation-delay: 1s; }

.feat-card {
  padding: 20px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,18,24,0.92), rgba(22,26,34,0.7));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 250ms var(--ease), transform 400ms var(--ease), box-shadow 250ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.feat-card:hover {
  border-color: rgba(211,52,47,0.3);
  box-shadow: var(--shadow-card), 0 0 30px rgba(211,52,47,0.06);
}

.feat-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px rgba(211,52,47,0.5);
  animation: breathe-dot 3s ease-in-out infinite;
}

.feat-card h4 {
  margin: 0; font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--text-strong);
}

.feat-card p {
  margin: 0; font-size: 12px; line-height: 1.7;
  color: var(--text-muted);
}

/* ── Engineering case boards ── */
.case-board {
  min-height: 360px;
  padding: 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(18,20,24,0.94), rgba(42,43,48,0.76)),
    radial-gradient(circle at 75% 18%, rgba(211,52,47,0.12), transparent 34%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card), 0 0 50px rgba(211,52,47,0.08);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split-visual .organic-panel + .case-board {
  min-height: 0;
}

.case-board-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid div {
  min-height: 82px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-grid strong {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  color: #ffffff;
}

.metric-grid span {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bounce-proof {
  width: 100%;
}

.bounce-mini-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.bounce-pack,
.bounce-profile {
  position: relative;
  min-height: 210px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.bounce-pack {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 22px);
}

.bounce-lane {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 58px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
}

.bounce-lane.lane-a { top: 34px; }
.bounce-lane.lane-b { bottom: 34px; }

.bounce-joint {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(211,52,47,0.55), rgba(255,255,255,0.2));
}

.bounce-hit {
  position: absolute;
  right: 18%;
  width: 78px;
  height: 10px;
  border-radius: 999px;
  background: rgba(236,92,92,0.8);
  box-shadow: 0 0 20px rgba(211,52,47,0.25);
}

.bounce-hit.hit-1 { top: 44px; }
.bounce-hit.hit-2 { top: calc(50% - 5px); width: 110px; }
.bounce-hit.hit-3 { bottom: 44px; width: 84px; }

.bounce-profile {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 34px);
}

.bounce-band {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(255,140,140,0.35);
}

.bounce-band.band-a { top: 18px; height: 54px; }
.bounce-band.band-b { top: 92px; height: 22px; background: rgba(255,80,200,0.35); }
.bounce-band.band-c { bottom: 18px; height: 56px; }

.bounce-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bounce-svg path {
  fill: none;
  stroke: #3457ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bounce-profile-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,0,220,0.75);
  border: 1px solid rgba(255,255,255,0.16);
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fff;
  z-index: 2;
}

.bounce-profile-label.top { top: 6px; }
.bounce-profile-label.mid { top: 96px; }

.rag-proof {
  width: 100%;
}

.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.08);
}

.chat-user {
  background: rgba(255,255,255,0.05);
  color: var(--text-body);
  align-self: flex-start;
  max-width: 92%;
}

.chat-ai {
  background: rgba(211,52,47,0.08);
  color: var(--text-body);
  align-self: flex-end;
  max-width: 100%;
}

.chat-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.chat-badges span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.proof-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.cost-visual-main {
  margin: 0;
}

.knn-proof {
  min-height: 310px;
}

.knn-space {
  position: relative;
  min-height: 250px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.05), transparent 18%),
    radial-gradient(circle at 70% 42%, rgba(211,52,47,0.08), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  overflow: hidden;
}

.knn-dot,
.knn-target {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.knn-dot {
  background: rgba(230,236,242,0.55);
  box-shadow: 0 0 12px rgba(255,255,255,0.08);
}

.knn-target {
  background: rgba(211,52,47,0.95);
  box-shadow: 0 0 18px rgba(211,52,47,0.28);
  width: 14px;
  height: 14px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.d1 { left: 24%; top: 24%; }
.d2 { left: 34%; top: 58%; }
.d3 { left: 42%; top: 30%; }
.d4 { left: 66%; top: 25%; }
.d5 { left: 76%; top: 52%; }
.d6 { left: 60%; top: 66%; }
.d7 { left: 28%; top: 74%; }
.d8 { left: 80%; top: 72%; }

.knn-link {
  position: absolute;
  left: 50%;
  top: 46%;
  height: 2px;
  background: linear-gradient(90deg, rgba(211,52,47,0.7), rgba(255,255,255,0.15));
  transform-origin: left center;
  z-index: 2;
}

.l1 { width: 78px; transform: rotate(-38deg); }
.l2 { width: 62px; transform: rotate(18deg); }
.l3 { width: 84px; transform: rotate(124deg); }

.knn-sidecard {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10,12,18,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.knn-sidecard strong {
  color: var(--text-strong);
  font-size: 11px;
  margin-bottom: 4px;
}

.pipeline-mini {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.pipeline-mini span {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(211,52,47,0.08);
  border: 1px solid rgba(211,52,47,0.18);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-strong);
}

.pipeline-mini i {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(211,52,47,0.2), rgba(255,255,255,0.45));
}

.heatmap-mock {
  position: relative;
  height: 100px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 8px, transparent 8px, transparent 20px);
}

.heatmap-mock span {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(211,52,47,0.8), rgba(211,52,47,0.08) 64%, transparent 70%);
  filter: blur(1px);
  animation: heat-pulse 3.4s ease-in-out infinite;
}

.heatmap-mock span:nth-child(1) { width: 92px; height: 48px; left: 9%; top: 24px; }
.heatmap-mock span:nth-child(2) { width: 70px; height: 70px; left: 45%; top: 12px; animation-delay: .4s; }
.heatmap-mock span:nth-child(3) { width: 120px; height: 42px; right: 8%; top: 36px; animation-delay: .9s; }
.heatmap-mock span:nth-child(4) { width: 44px; height: 44px; right: 30%; top: 8px; animation-delay: 1.2s; }

/* ── Resource need cards (per-project Selectel) ── */
.resource-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(211,52,47,0.18);
  background: rgba(211,52,47,0.06);
}

.resource-card-col {
  padding: 14px 16px;
  background: rgba(10,12,18,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.resource-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(211,52,47,0.18);
  background: rgba(211,52,47,0.06);
}

.wide-resource-matrix {
  margin-top: 20px;
}

.cost-expansion-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(211,52,47,0.16);
  background: rgba(211,52,47,0.05);
}

.cost-expansion-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
}

.resource-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(211,52,47,0.3);
}

.resource-card-col p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-body);
}

@media (max-width: 640px) {
  .resource-card { grid-template-columns: 1fr; }
  .resource-matrix { grid-template-columns: 1fr; }
}

/* ── First paragraph emphasis in split-text ── */
.split-text > p:first-of-type {
  font-size: 15px;
}

.compact-board {
  min-height: 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.timeline-card {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,18,24,0.92), rgba(22,26,34,0.7));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-strong);
}

.timeline-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ── Code card / Terminal ── */
.code-card {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(211,52,47,0.25);
  background: rgba(10,12,18,0.8);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.code-card::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(211,52,47,0.008) 2px, rgba(211,52,47,0.008) 4px
  );
  pointer-events: none; z-index: 1;
  animation: scanline 8s linear infinite;
}

.code-card-header {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}

.code-card-header::before {
  content: '●  ●  ●';
  color: var(--text-dim);
  font-size: 8px;
  margin-right: 4px;
}

.code-body {
  margin: 0; padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.7;
  color: #c9d1d9;
  position: relative; z-index: 2;
}

.tk-kw { color: #ff7b72; font-weight: 500; }
.tk-sym { color: #79c0ff; }
.tk-cm  { color: #8b949e; }
.tk-num { color: #d2a679; }

/* ── Typewriter ── */
.typewriter-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--accent-bright);
  border-radius: 1px;
  animation: blink 0.8s step-end infinite;
  box-shadow: 0 0 6px rgba(211,52,47,0.4);
}

.tone-neutral { color: var(--accent-bright); }
.tone-script { color: #ef6d69; text-shadow: 0 0 20px rgba(239,109,105,0.32); }
.tone-rag { color: #f3b7a0; text-shadow: 0 0 20px rgba(243,183,160,0.26); }
.tone-audio { color: #d6d2c4; text-shadow: 0 0 20px rgba(214,210,196,0.22); }
.tone-cv { color: #ff8e79; text-shadow: 0 0 20px rgba(255,142,121,0.28); }
.tone-cost { color: #c7b39a; text-shadow: 0 0 20px rgba(199,179,154,0.22); }

/* ── Footer ── */
.footer-bar {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px clamp(24px, 4.8vw, 76px);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  font-size: 11px; color: var(--text-dim);
}

.footer-bar span:first-child {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted);
}

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(211,52,47,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 18px rgba(211,52,47,0.7); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes logo-drift {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.32)) drop-shadow(0 0 18px rgba(211,52,47,0.12));
  }
  50% {
    transform: translateY(-2px) scale(1.012);
    filter: drop-shadow(0 12px 26px rgba(0,0,0,0.34)) drop-shadow(0 0 22px rgba(211,52,47,0.18));
  }
}

@keyframes breathe-text {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(211,52,47,0.4), 0 0 40px rgba(211,52,47,0.15); }
  50% { opacity: 0.85; text-shadow: 0 0 30px rgba(211,52,47,0.6), 0 0 60px rgba(211,52,47,0.25); }
}

@keyframes breathe-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(211,52,47,0.5); }
  50% { box-shadow: 0 0 16px rgba(211,52,47,0.8); }
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

@keyframes heat-pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes signal-sweep {
  0%, 100% { transform: scaleX(0.42) translateX(0); opacity: 0.25; }
  45% { transform: scaleX(1) translateX(10%); opacity: 0.95; }
  70% { transform: scaleX(0.74) translateX(28%); opacity: 0.55; }
}

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal.is-visible:nth-child(1) { transition-delay: 0ms; }
.reveal.is-visible:nth-child(2) { transition-delay: 80ms; }
.reveal.is-visible:nth-child(3) { transition-delay: 160ms; }
.reveal.is-visible:nth-child(4) { transition-delay: 240ms; }

/* ── Cursor ── */
.cursor-blink {
  display: inline-block; width: 2px; height: 1em;
  margin-left: 2px; vertical-align: -0.08em;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 6px rgba(211,52,47,0.4);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .section { padding: 56px 20px; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { order: 0; }
  .hero-visual { order: 1; }
  .hero-visual { padding-left: 0; }
  .hero-text { max-width: none; transform: none; justify-self: stretch; }
  .hero-visual .canvas-visual { max-width: 420px; margin: 0 auto; }
  .organic-hero { transform: none; }
  .hero-img { max-width: 280px; }
  .hero h1 { font-size: 32px; }
  .hero-text { padding: 24px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-offset-left,
  .split-offset-right { transform: none; }
  .split.reverse { direction: ltr; }
  .split-text { padding: 20px; }
  .project-head { flex-direction: column; }
  .bounce-mini-layout { grid-template-columns: 1fr; }
  .audio-layout { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; }
  .nav { padding: 14px 20px 0; }
  .nav-inner { min-height: 64px; }
  .nav-shell {
    min-height: 26px;
    padding: 0 10px;
    border-radius: 24px;
  }
  .nav-ascii {
    gap: 4px;
    padding: 0 6px;
  }
  .nav-ascii-prompt,
  .nav-ascii-code {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .logo-brand { gap: 0; }
  .nav-logo { width: 52px; }
  .image-panel-wide { aspect-ratio: 4 / 3; }
}

@media (max-width: 500px) {
  .nav-shell {
    gap: 12px;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 22px;
  }
  .nav-underlay-img { object-position: 32% center; }
  .nav-ascii {
    display: none;
  }
  .nav-pill {
    padding: 10px 14px 10px 12px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .hero h1 { font-size: 28px; }
  .section h2 { font-size: 24px; }
  .hero-actions,
  .section-cta { flex-direction: column; }
  .action-link { width: 100%; }
  .summary-grid { grid-template-columns: 1fr; }
  .tag-row { gap: 6px; }
  .tag { font-size: 12px; padding: 5px 10px; overflow-wrap: anywhere; }
  .metric-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .case-board { padding: 18px; min-height: 0; }
  .split-visual .case-board { margin: 0 auto; }
  .project-tags .tag { font-size: 10px; }
  .metric-grid div { min-height: 70px; }
  .metric-grid strong { font-size: 22px; }
  .footer-bar { flex-direction: column; gap: 6px; text-align: center; }
  .hero-img { max-width: 220px; }
  .signal-panel { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
