/* ============================================================
 * Autom8 — autom8media.ai rebuild (gold-forward / Software Stack)
 * Bold but balanced. Obsidian surface, gold accent, warm glow.
 * ============================================================ */
@import url('./colors_and_type.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--obsidian); color: var(--ivory);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* shared type */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--hairline-gold); }
.eyebrow.center { justify-content: center; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: 0; }
.h-sec {
  font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.02; margin: 0 0 20px; text-wrap: balance;
}
.sub {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--mist);
  max-width: 620px; margin: 0; text-wrap: pretty;
}
.center-head { text-align: center; }
.center-head .sub { margin-left: auto; margin-right: auto; }

/* warm glow util */
.glow-top::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% -10%, rgba(201,168,76,0.14), transparent 60%);
}
.glow-corner::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 90% at -5% 0%, rgba(201,168,76,0.12), transparent 55%);
}

/* ---------- Buttons ---------- */
.btn {
  font: 600 15px/1 var(--font-sans); padding: 17px 28px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn .arr { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: #0B0B0C; }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 0 0 5px rgba(201,168,76,0.2); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,0.16); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.28); }
.btn-lg { padding: 19px 34px; font-size: 16px; }
.btn.full { width: 100%; justify-content: center; }

/* ============================================================
 * NAV
 * ============================================================ */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 80; display: flex; justify-content: center; padding: 0 16px; }
.nav {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 1080px;
  padding: 9px 9px 9px 22px;
  background: rgba(14,13,15,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 999px;
}
.nav-brand { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; color: var(--ivory); text-decoration: none; margin-right: auto; }
.nav-brand .b8 { color: var(--gold); }
.nav-links { display: flex; gap: 4px; margin-right: 8px; }
.nav-links a { color: var(--mist); font-size: 14px; text-decoration: none; padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: all var(--dur-fast) var(--ease-out); }
.nav-links a:hover { color: var(--ivory); background: rgba(255,255,255,0.05); }
.nav-cta { background: var(--gold); color: #0B0B0C; font: 600 13px/1 var(--font-sans); padding: 12px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: all var(--dur-fast) var(--ease-out); }
.nav-cta:hover { background: var(--gold-soft); }
.nav-burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex: none; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ivory); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 75; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 88px 28px 40px; background: rgba(11,11,12,0.97); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { color: var(--ivory); text-decoration: none; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-menu a.mm-cta { margin-top: 22px; border: 0; background: var(--gold); color: #0B0B0C; text-align: center; border-radius: 999px; padding: 18px; font-size: 17px; }

/* ============================================================
 * HERO — two switchable directions
 * ============================================================ */
.hero {
  padding: 184px 0 96px; position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  background: linear-gradient(180deg, #101b2e 0%, #0c1320 46%, var(--obsidian) 100%);
}
.hero > .wrap { width: 100%; }
/* low-opacity B&W photo behind the hero (navy stays underneath) */
.hero > .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  filter: grayscale(1) contrast(1.05); opacity: 0.16; pointer-events: auto;
}
.hero > .hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(201,168,76,0.13), transparent 58%),
    radial-gradient(60% 70% at 50% 120%, rgba(31,58,102,0.45), transparent 60%);
}
.hero > .wrap { position: relative; z-index: 2; }

.hero-variant { display: none; }
.hero-variant.on { display: block; }

/* shared hero bits */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-pill { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); padding: 9px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; }
.hero-pill .gd { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }
.hero-note { font-family: var(--font-mono); font-size: 12px; color: var(--ash); letter-spacing: 0.04em; }

/* Variant A — statement-first */
.hva-head { font-size: clamp(48px, 8vw, 104px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; margin: 0; text-wrap: balance; }
.hva .sub { font-size: clamp(17px, 1.5vw, 21px); margin-top: 28px; max-width: 560px; }

/* Variant B — video-first */
.hvb { text-align: center; }
.hvb .hva-head { font-size: clamp(40px, 6vw, 76px); }
.hvb .sub { margin: 26px auto 0; text-align: center; max-width: 600px; }
.hvb .hero-actions { justify-content: center; }
.hvb .hero-pills { justify-content: center; }

/* video card */
.video-card {
  position: relative; margin-top: 48px; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16/9; background: var(--onyx);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-elevated); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 40%, rgba(201,168,76,0.12), transparent 70%); }
.video-card.small { max-width: 560px; margin-left: auto; margin-right: auto; }
.vc-play { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vc-btn { width: var(--vc-btn-size, 76px); height: var(--vc-btn-size, 76px); border-radius: 999px; background: var(--gold); display: grid; place-items: center; box-shadow: 0 0 48px rgba(201,168,76,0.4); transition: transform var(--dur-base) var(--ease-out); }
.video-card:hover .vc-btn { transform: scale(1.06); }
.vc-btn svg { width: 34%; height: 34%; margin-left: 8%; }
.vc-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.vc-corner { position: absolute; z-index: 2; top: 16px; left: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); display: flex; gap: 8px; align-items: center; }
.vc-dur { position: absolute; z-index: 2; bottom: 16px; right: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--ivory); background: rgba(0,0,0,0.5); padding: 5px 10px; border-radius: 6px; }

/* ============================================================
 * CYCLER — animated capability flipper (carousel bold/gold style)
 * ============================================================ */
.cycler { position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; overflow: hidden; background: linear-gradient(180deg, var(--obsidian) 0%, #0c0b0d 100%); }
.cycler::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(58% 150% at 50% 50%, rgba(201,168,76,0.10), transparent 72%); }
.cycler-inner { position: relative; z-index: 1; }
.cycler-inner { text-align: center; }
.cycler .eyebrow { margin-bottom: 26px; }
.cycler-line {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.cycler-lead {
  font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: 0.02em;
  color: var(--mist); text-transform: none;
}
.cycler-stage {
  display: inline-block; perspective: 800px; text-align: left;
  min-height: 1.05em; line-height: 1.05;
}
.cycler-word {
  display: inline-block; transform-origin: center bottom; backface-visibility: hidden;
  font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; color: var(--gold);
  font-size: clamp(28px, 4.6vw, 60px); line-height: 1.05; white-space: nowrap;
  text-shadow: 0 0 60px rgba(201,168,76,0.22);
  transition: transform 0.42s var(--ease-out), opacity 0.42s var(--ease-out);
}
.cycler-word.out { transform: rotateX(-92deg); opacity: 0; }
.cycler-word.pre { transition: none; transform: rotateX(92deg); opacity: 0; }
/* reduced-motion: plain cross-fade, no 3D flip */
.cycler-word.fade { transition: opacity 0.3s linear; }
.cycler-word.fade.out, .cycler-word.fade.pre { transform: none; opacity: 0; }

/* ============================================================
 * ENGINES
 * ============================================================ */
.engines { padding: 120px 0; }
.engines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-top: 56px; }
.engine {
  background: var(--onyx); border: 1px solid rgba(255,255,255,0.07); border-radius: 20px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); position: relative; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.engine:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.14); }
.engine.featured { border-color: rgba(201,168,76,0.4); box-shadow: inset 0 1px 0 rgba(201,168,76,0.18), var(--shadow-glow); }
.engine.featured::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(201,168,76,0.1), transparent 60%); pointer-events: none; }
.engine > * { position: relative; z-index: 1; }
/* B&W photo behind each card — colorizes + lifts on hover */
.engine > .engine-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  filter: grayscale(1) contrast(1.04); opacity: 0.12;
  transition: opacity var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.engine:hover > .engine-bg { opacity: 0.34; filter: grayscale(0) contrast(1); }
.engine.featured > .engine-bg { opacity: 0.16; }
.engine.featured:hover > .engine-bg { opacity: 0.42; }
/* scrim keeps card copy readable over a filled photo */
.engine > .engine-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,12,0.32), rgba(11,11,12,0.8));
}
.engine-tags { display: flex; gap: 6px; }
.etag { font: 500 10px/1 var(--font-mono); padding: 6px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.12em; }
.etag.neutral { background: rgba(255,255,255,0.05); color: var(--mist); }
.etag.gold { background: rgba(201,168,76,0.16); color: var(--gold-soft); }
.engine-glyph { width: 42px; height: 42px; border-radius: 11px; background: rgba(201,168,76,0.14); display: grid; place-items: center; color: var(--gold); }
.engine h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 0; }
.engine p { font-size: 14.5px; line-height: 1.6; color: var(--mist); margin: 0; }
.engine-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 11px; }
.engine-list li { font-size: 13.5px; line-height: 1.45; color: var(--ivory); display: flex; gap: 11px; align-items: flex-start; }
.engine-list .arr { color: var(--gold); flex: none; }
.engine .btn { margin-top: auto; }

/* ============================================================
 * PROTOCOL
 * ============================================================ */
.protocol { padding: 120px 0; }
.proto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.proto {
  position: relative; background: var(--onyx); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 28px 24px 30px; overflow: hidden; isolation: isolate;
  min-height: 230px; display: flex; flex-direction: column;
}
.proto-num { position: absolute; z-index: 0; right: -10px; bottom: -34px; font-weight: 900; font-size: 150px; line-height: 0.7; letter-spacing: -0.05em; color: rgba(201,168,76,0.07); user-select: none; }
.proto > * { position: relative; z-index: 1; }
.proto-step { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.proto h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.proto p { font-size: 13.5px; line-height: 1.55; color: var(--mist); margin: 0; }

/* ============================================================
 * COMMAND CENTER (dashboard embed)
 * ============================================================ */
.command { padding: 116px 0 132px; background: #000; perspective: 1900px; }
.cmd-head { text-align: center; margin: 0 auto 48px; }
.cmd-head .h-sec { margin: 0; }
.cmd-demo {
  position: relative; width: min(100%, 1180px); margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 22px; overflow: hidden;
  background: #050506;
  transform: rotateX(5deg); transform-origin: 50% 50%;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.05) inset,
    0 0 0 1px rgba(255,255,255,0.07),
    0 40px 80px -28px rgba(0,0,0,0.9),
    0 100px 170px -60px rgba(201,168,76,0.20);
}
.cmd-demo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.06), transparent 55%);
}
.cmd-demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; border-radius: inherit; }

/* ============================================================
 * PROOF
 * ============================================================ */
.proof { padding: 130px 0; }
.proof-card {
  max-width: 980px; margin: 0 auto; text-align: center; position: relative;
  padding: 0 20px;
}
.proof-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.28; color: var(--ivory);
  margin: 0; letter-spacing: -0.01em; text-wrap: balance;
}
.proof-quote .gd { color: var(--gold); }
.proof-mark { font-family: var(--font-serif); font-style: italic; font-size: 80px; color: rgba(201,168,76,0.35); line-height: 0; display: block; height: 30px; }
.proof-attr { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; }
.proof-ava { width: 52px; height: 52px; border-radius: 999px; background: var(--slate-soft); border: 1px solid rgba(201,168,76,0.3); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--ash); letter-spacing: 0.08em; flex: none; }
.proof-name { text-align: left; }
.proof-name strong { display: block; font-size: 15px; font-weight: 600; color: var(--ivory); }
.proof-name span { font-family: var(--font-mono); font-size: 12px; color: var(--mist); letter-spacing: 0.04em; }

/* ============================================================
 * ABOUT
 * ============================================================ */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: center; }
.about-photo { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--slate-soft), var(--obsidian)); border: 1px solid rgba(255,255,255,0.08); display: block; position: relative; }
#autom8-founders.about-photo { width: 100%; height: auto; }
.about-photo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 0%, rgba(201,168,76,0.1), transparent 60%); }
.about-photo .ph-label { position: relative; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.about-lead { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 24px; text-wrap: balance; }
.about-lead .serif { font-weight: 400; }
.about p { font-size: 16px; line-height: 1.7; color: var(--mist); margin: 0 0 18px; max-width: 560px; }

/* ============================================================
 * FAQ
 * ============================================================ */
.faq { padding: 120px 0; }
.faq-list { max-width: 860px; margin: 52px auto 0; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 20px; padding: 26px 4px; color: var(--ivory); font: 600 19px/1.3 var(--font-sans); letter-spacing: -0.01em; }
.faq-q .qmark { margin-left: auto; flex: none; width: 26px; height: 26px; position: relative; transition: transform var(--dur-base) var(--ease-out); color: var(--gold); }
.faq-q .qmark::before, .faq-q .qmark::after { content: ''; position: absolute; background: currentColor; border-radius: 2px; }
.faq-q .qmark::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .qmark::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: opacity var(--dur-fast) var(--ease-out); }
.faq-item.open .qmark::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq-a p { font-size: 15.5px; line-height: 1.7; color: var(--mist); margin: 0 4px 26px; max-width: 720px; }

/* ============================================================
 * CLOSING CTA
 * ============================================================ */
.cta-end { padding: 150px 0; text-align: center; }
.cta-end .h-sec { font-size: clamp(40px, 6vw, 84px); margin-bottom: 26px; }
.cta-end .hero-actions { justify-content: center; }
.cta-end .sub { margin: 0 auto 0; }

/* ============================================================
 * FOOTER
 * ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 60px 0 50px; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; color: var(--ivory); }
.footer-brand .b8 { color: var(--gold); }
.footer-tag { font-family: var(--font-mono); font-size: 12px; color: var(--mist); margin-top: 12px; letter-spacing: 0.04em; max-width: 280px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h6 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ash); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--mist); text-decoration: none; font-size: 14px; margin-bottom: 11px; transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--ivory); }
.footer-base { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--ash); flex-wrap: wrap; gap: 12px; }

/* ============================================================
 * VIDEO MODAL
 * ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(5,5,6,0.86); backdrop-filter: blur(8px); }
.modal.open { display: flex; }
.modal-inner { width: 100%; max-width: 920px; }
.modal-video { aspect-ratio: 16/9; border-radius: 16px; background: var(--onyx); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.modal-video::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 40%, rgba(201,168,76,0.12), transparent 70%); }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.modal-foot .mf-copy { font-size: 15px; color: var(--mist); }
.modal-foot .mf-copy strong { color: var(--ivory); display: block; font-size: 17px; margin-bottom: 3px; font-weight: 600; }
.modal-x { position: absolute; top: 18px; right: 20px; z-index: 3; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.14); color: var(--ivory); width: 38px; height: 38px; border-radius: 999px; font-size: 18px; cursor: pointer; }

/* ============================================================
 * REVEAL
 * ============================================================ */
/* Content is visible by default — animation is pure enhancement, only when
   JS adds html.anim AND motion is allowed. Fail-safe for print/PDF/no-JS. */
@media (prefers-reduced-motion: no-preference) {
  html.anim .reveal:not(.in) { opacity: 0; }
  html.anim .reveal.in { animation: reveal-in 0.7s var(--ease-out) both; }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
 * COMMAND CENTER — "power on" boot sequence (scroll-triggered)
 * ============================================================ */
.cmd-shell .screen-flash {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; border-radius: 22px;
  background: radial-gradient(120% 80% at 50% 42%, rgba(255,255,255,0.16), rgba(201,168,76,0.22) 32%, transparent 74%);
}
.sdot.dim { background: rgba(255,255,255,0.13) !important; box-shadow: none !important; }
@media (prefers-reduced-motion: no-preference) {
  /* whole panel powers on */
  html.anim .cmd-shell.boot { transform: scale(0.986); filter: brightness(0.5); opacity: 0.5; }
  html.anim .cmd-shell.boot.on { animation: screenPower 0.75s var(--ease-out) forwards; }
  html.anim .cmd-shell.boot.on .screen-flash { animation: screenFlash 0.85s var(--ease-out) forwards; }
  /* internals stagger in */
  html.anim .cmd-shell.boot .cmd-bar,
  html.anim .cmd-shell.boot .cmetric,
  html.anim .cmd-shell.boot .feed li,
  html.anim .cmd-shell.boot .status li,
  html.anim .cmd-shell.boot .cmd-cap { opacity: 0; }
  html.anim .cmd-shell.boot.on .cmd-bar,
  html.anim .cmd-shell.boot.on .cmetric,
  html.anim .cmd-shell.boot.on .feed li,
  html.anim .cmd-shell.boot.on .status li,
  html.anim .cmd-shell.boot.on .cmd-cap {
    animation: bootIn 0.5s var(--ease-out) both; animation-delay: var(--bd, 0s);
  }
  .sdot.poweron { animation: dotPop 0.42s var(--ease-out); }
}
@keyframes screenPower {
  0% { transform: scale(0.986); filter: brightness(0.5); opacity: 0.5; }
  45% { filter: brightness(1.18); }
  100% { transform: none; filter: brightness(1); opacity: 1; }
}
@keyframes screenFlash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bootIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes dotPop { 0% { transform: scale(0.2); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 940px) {
  .engines-grid { grid-template-columns: 1fr 1fr; }
  .proto-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16/10; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav { padding: 9px 9px 9px 20px; }
}
@media (max-width: 760px) {
  section { scroll-margin-top: 80px; }
  .engines, .protocol { padding: 80px 0; }
  .cta-end { padding: 100px 0; }
  .about { padding: 80px 0; }
  .engines-grid, .proto-grid { grid-template-columns: 1fr; gap: 16px; }
  .engines-grid { margin-top: 36px; }
  .proto-grid { margin-top: 36px; }
  /* full-width stacked CTAs, comfortable tap targets */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hvb .hero-actions, .cta-end .hero-actions { align-items: stretch; }
  /* flatten the demo tilt — reads cleaner small */
  .command { padding: 80px 0 88px; perspective: none; }
  .cmd-demo { transform: none; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 24px 60px -28px rgba(0,0,0,0.9); }
  .cmd-head { margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 132px 0 64px; min-height: 0; }
  .hva-head { font-size: clamp(40px, 12vw, 56px); }
  .hvb .hva-head { font-size: clamp(34px, 10vw, 48px); }
  .proof { padding: 80px 0; }
  /* smaller, well-centered play button on phones */
  :root { --vc-btn-size: 50px; }
  .vc-btn { box-shadow: 0 0 32px rgba(201,168,76,0.34); }
  .vc-btn svg { width: 32%; height: 32%; margin-left: 4%; }
  .vc-play { gap: 14px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-cols { gap: 32px; }
}
