/* ============================================================
   RKR Networks — light, corporate, neutral
   ============================================================ */

:root {
  /* Palette */
  --paper:        #FFFFFF;
  --paper-2:      #F6F7F9;
  --paper-3:      #EEF1F5;
  --ink:          #0F172A;
  --ink-mute:     #475569;
  --ink-dim:      #94A3B8;
  --rule:         #E2E8F0;
  --rule-soft:    #EEF2F6;
  --accent:       #1E40AF;
  --accent-soft:  #E8EDF8;
  --accent-deep:  #1E3A8A;

  /* Typography */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
}

/* ============================================================
   Base
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-deep); }

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

@media (max-width: 720px) {
  .wrap { padding: 0 var(--s3); }
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

h1 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.015em; }
h3 { font-size: 22px; letter-spacing: -0.005em; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }
h5 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); }

em { font-style: italic; color: var(--accent); }

p { margin: 0; color: var(--ink-mute); }
p + p { margin-top: var(--s2); }

.lead { font-size: 18px; line-height: 1.65; color: var(--ink-mute); }
.sub  { font-size: 19px; line-height: 1.6; color: var(--ink-mute); max-width: 60ch; }
.text-mute { color: var(--ink-dim); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 22px; height: 22px; display: inline-flex; color: var(--ink); }
.brand-mark svg { width: 22px; height: 22px; }
body.has-dark-hero .nav .brand-mark { color: var(--paper-on-dark); }
.brand-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--rule);
  margin: 0 2px;
}
.brand sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  vertical-align: baseline;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--accent-deep); color: #fff !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: var(--s3) var(--s4);
    background: #fff;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open a.active::after { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: var(--s6) 0 var(--s5);
  background:
    radial-gradient(1100px 500px at 80% -10%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(to bottom, var(--paper) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
}

.hero h1 { margin-top: var(--s3); max-width: 18ch; }
.hero .sub { margin-top: var(--s3); }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: var(--s4);
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-meta strong { font-size: 14px; font-weight: 500; color: var(--ink); }

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: 1fr; gap: var(--s2); }
}

/* ============================================================
   Page head (sub-pages)
   ============================================================ */

.page-head {
  padding: var(--s5) 0 var(--s4);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.page-head h1 { margin-top: var(--s3); max-width: 22ch; }
.page-head .lead { margin-top: var(--s3); max-width: 64ch; }

.crumb {
  font-size: 13px;
  color: var(--ink-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.crumb a { color: var(--ink-dim); }
.crumb a:hover { color: var(--ink); }
.crumb span:last-child { color: var(--ink-mute); }

/* ============================================================
   Sections
   ============================================================ */

section { padding: var(--s6) 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.tight { padding: var(--s5) 0; }

/* Substrate fold — distinct accent-toned band for the AI-Ready line */
section.substrate {
  background:
    radial-gradient(900px 400px at 20% 0%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(700px 350px at 90% 100%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(to bottom, var(--paper) 0%, var(--paper-2) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s6) 0;
}
.substrate-inner {
  max-width: 56ch;
  margin: 0 auto;
  text-align: center;
}
.substrate-inner .eyebrow { margin-bottom: var(--s3); }
.substrate-inner h2 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 22ch;
  margin: 0 auto var(--s3);
}
.substrate-inner .lead {
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto;
}

.section-head { margin-bottom: var(--s4); max-width: 32ch; }
.section-head h2 { max-width: 22ch; }

.mt-5 { margin-top: var(--s5); }

/* ============================================================
   Grids
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  padding: var(--s4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--ink-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}
.card h3 { margin-bottom: var(--s2); }
.card p { font-size: 15px; line-height: 1.6; }

section.alt .card { background: var(--paper); }

/* ============================================================
   Feature rows (Approach page — the three twins)
   ============================================================ */

.feat-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s5);
  padding: var(--s4) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.feat-row:last-of-type { border-bottom: 1px solid var(--rule); }
.feat-row h3 { margin-bottom: var(--s2); }
.feat-row p { font-size: 16px; }

.outcome {
  padding: var(--s3);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.outcome-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.outcome-row:last-child { border-bottom: 0; }
.outcome-row .k {
  color: var(--ink);
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
}

@media (max-width: 860px) {
  .feat-row { grid-template-columns: 1fr; gap: var(--s3); }
}

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  counter-reset: stepcounter;
}
.step {
  padding: var(--s3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  counter-increment: stepcounter;
  position: relative;
}
.step::before {
  content: counter(stepcounter, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--s2);
}
.step h4 { margin-bottom: var(--s1); }
.step p { font-size: 14px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Forms
   ============================================================ */

.form {
  background: var(--paper);
  padding: var(--s4);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-bottom: var(--s2);
}
.field { margin-bottom: var(--s2); }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 110px; resize: vertical; font-family: var(--sans); }
.hint { font-size: 12px; color: var(--ink-dim); margin-top: 6px; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Contact-page side card */
.info-card {
  padding: var(--s3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.info-card h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s2);
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s4);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: var(--s5) 0 var(--s3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
.footer h5 { margin-bottom: var(--s2); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 4px 0; }
.footer ul a { font-size: 14px; color: var(--ink-mute); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-dim);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Reveal animations (consumed by app.js)
   ============================================================ */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .00s; }
.reveal.d2 { transition-delay: .08s; }
.reveal.d3 { transition-delay: .16s; }
.reveal.d4 { transition-delay: .24s; }
.reveal.d5 { transition-delay: .32s; }

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Dark hero (homepage only)
   Sits at the top of an otherwise-light page. Linear/Vercel pattern.
   ============================================================ */

:root {
  --ink-dark:        #07090C;
  --ink-dark-2:      #0D1117;
  --ink-dark-3:      #161B22;
  --paper-on-dark:   #F1F4F9;
  --paper-on-dark-mute: #9BA4B5;
  --paper-on-dark-dim:  #5C6573;
  --rule-on-dark:    rgba(255,255,255,0.08);
  --rule-on-dark-2:  rgba(255,255,255,0.14);
  --accent-on-dark:  #5B8DEF;
  --accent-warm:     #F59E4B;
}

/* When the page has a dark hero, the sticky nav goes dark too while
   the hero is in view. Simplest reliable approach: dark nav by default
   on the home page, neutral on scroll. We use a body class for scope. */
body.has-dark-hero .nav {
  background: rgba(7, 9, 12, 0.88);
  border-bottom-color: var(--rule-on-dark);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
body.has-dark-hero .nav .brand,
body.has-dark-hero .nav .brand:hover {
  color: var(--paper-on-dark);
}
body.has-dark-hero .nav .brand sub { color: var(--paper-on-dark-mute); }
body.has-dark-hero .nav .brand-divider { background: var(--rule-on-dark-2); }
body.has-dark-hero .nav-links a { color: var(--paper-on-dark-mute); }
body.has-dark-hero .nav-links a:hover,
body.has-dark-hero .nav-links a.active { color: var(--paper-on-dark); }
body.has-dark-hero .nav-links a.active::after { background: var(--accent-on-dark); }
body.has-dark-hero .nav-cta {
  background: transparent;
  color: var(--paper-on-dark) !important;
  border: 1px solid var(--rule-on-dark-2);
}
body.has-dark-hero .nav-cta:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--paper-on-dark-mute);
  color: var(--paper-on-dark) !important;
}
body.has-dark-hero .nav-toggle {
  color: var(--paper-on-dark);
  border-color: var(--rule-on-dark-2);
}

/* The hero itself */
.hero-dark {
  position: relative;
  background: var(--ink-dark);
  color: var(--paper-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

/* Subtle technical grid in the background — adds depth without noise */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(1000px 600px at 75% -10%, rgba(91,141,239,0.12) 0%, transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(245,158,75,0.06) 0%, transparent 60%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  /* Fade the grid toward the bottom so it doesn't fight content */
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

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

/* Two-column split: copy left, video right.
   Visual column is wider — the video is the hook, copy supports it. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(var(--s4), 5vw, var(--s5));
  align-items: center;
}

.hero-copy h1 {
  color: var(--paper-on-dark);
  margin-top: var(--s2);
  max-width: 14ch;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.08;
}
.hero-copy h1 em {
  color: var(--accent-on-dark);
  font-style: italic;
}

.eyebrow-dark {
  color: var(--accent-on-dark);
  background: rgba(91,141,239,0.12);
  border: 1px solid rgba(91,141,239,0.22);
}

.sub-dark {
  color: var(--paper-on-dark-mute);
  margin-top: var(--s3);
  max-width: 46ch;
}

.hero-dark .hero-actions { margin-top: var(--s4); }

.btn-primary-on-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; font-family: var(--sans);
  font-size: 14px; font-weight: 500; border-radius: 6px;
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  text-decoration: none;
  background: var(--paper-on-dark);
  color: var(--ink-dark);
  transition: background .15s ease, transform .15s ease;
}
.btn-primary-on-dark:hover {
  background: var(--accent-on-dark);
  color: var(--ink-dark);
}
.btn-primary-on-dark .arrow { transition: transform .15s ease; }
.btn-primary-on-dark:hover .arrow { transform: translateX(3px); }

.btn-ghost-on-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; font-family: var(--sans);
  font-size: 14px; font-weight: 500; border-radius: 6px;
  cursor: pointer; line-height: 1; text-decoration: none;
  background: transparent;
  color: var(--paper-on-dark);
  border: 1px solid var(--rule-on-dark-2);
  transition: border-color .15s ease, background .15s ease;
}
.btn-ghost-on-dark:hover {
  border-color: var(--paper-on-dark-mute);
  background: rgba(255,255,255,0.02);
  color: var(--paper-on-dark);
}

.hero-meta-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: clamp(var(--s4), 5vw, var(--s5));
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-on-dark);
}
.hero-meta-dark > div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-dark span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper-on-dark-dim);
}
.hero-meta-dark strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-on-dark);
}

/* Video frame — bezelled "product" container */
.hero-visual { position: relative; }

.hero-video-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--rule-on-dark-2);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(91,141,239,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
  /* Aspect ratio matches our encoded video (1280:560 = 32:14) */
  aspect-ratio: 32 / 14;
}

.hero-video-chrome {
  position: absolute;
  inset: 0 0 auto 0;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  background: linear-gradient(to bottom, rgba(20,24,32,0.96), rgba(20,24,32,0.78));
  border-bottom: 1px solid var(--rule-on-dark);
  z-index: 2;
  pointer-events: none;
}
.hero-video-chrome .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.hero-video-chrome .chrome-label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--paper-on-dark-dim);
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Push the video under the chrome bar so we don't lose any pixels */
  padding-top: 28px;
  box-sizing: border-box;
  background: #000;
}

/* Soft outer glow behind the frame — gives the video lift off the page */
.hero-video-glow {
  position: absolute;
  inset: -10% -8% -10% -8%;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(91,141,239,0.18) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Responsive: stack the hero on narrower screens */
@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .hero-copy h1 { max-width: 18ch; }
  /* Video first on mobile — it's the hook */
  .hero-visual { order: 1; }
  .hero-copy { order: 2; }
}

@media (max-width: 720px) {
  .hero-dark { padding: var(--s5) 0 var(--s4); }
  .hero-video-chrome { height: 22px; }
  .hero-video { padding-top: 22px; }
  .hero-meta-dark { grid-template-columns: 1fr; gap: var(--s2); }
}

/* Respect data-saver / reduced motion — show poster instead of looping video */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video-frame {
    background-image: var(--poster-url, none);
    background-size: cover;
    background-position: center;
  }
}
