/* ============================================================
   Dopara Group — site layout layer.
   Built ONLY on design-system tokens (var(--…)). No new colors.
   ============================================================ */

/* ---- Skip link (keyboard users) ---- */
.skip-link {
  position: absolute; left: 0; top: 0; z-index: 100;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: var(--oxblood); color: #fff; padding: 0;
  border-radius: var(--radius-sm); font-weight: var(--fw-semibold);
}
.skip-link:focus { width: auto; height: auto; clip-path: none; left: var(--gutter); top: 12px; padding: 12px 20px; }

/* ---- Layout primitives ---- */
.wrap      { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
/* same width as .wrap so the header, hero and footer line up with the body
   sections instead of hugging the edges */
.wrap-wide { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--surface { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.eyebrow { /* alias of .t-eyebrow with bottom margin */
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted);
  display: block; margin-bottom: var(--space-4);
}
.eyebrow--accent { color: var(--oxblood); }

.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--text-secondary); max-width: 60ch; }
.muted { color: var(--text-muted); }

h1.display { font-size: clamp(3rem, calc(1rem + 6vw), 7.25rem); line-height: 0.98; letter-spacing: var(--ls-mega); font-weight: var(--fw-black); margin: 0; }
h2.display { font-size: var(--text-display); line-height: 1.04; letter-spacing: var(--ls-display); font-weight: var(--fw-bold); margin: 0; }

.accent { color: var(--oxblood); }
.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* anchor-styled buttons (design system .mrd-btn is class-based, works on <a>) */
a.mrd-btn { text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.site-header.is-scrolled {
  /* solid background, NOT backdrop-filter: blur() — a sticky blur re-samples
     everything behind it every frame and, with the marquee always animating,
     never lets the page idle. That was the main source of scroll lag. */
  background: var(--bg-canvas);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.site-header__bar {
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-lockup img { height: 30px; width: auto; display: block; }
.brand-lockup .word { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: var(--space-1); }
.site-nav a {
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-secondary);
  padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--t-colors);
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav a.is-active { color: var(--text-primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; }

/* ---- Hero — copy layered over a subtle background video ---- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-canvas); }
.hero-bg__video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* bone scrim: keeps dark copy readable on the left, lets the video breathe on the
   right, and fades the bottom edge into the page so there's no hard seam */
.hero-bg__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg-canvas) 0%, color-mix(in srgb, var(--bg-canvas) 88%, transparent) 42%, color-mix(in srgb, var(--bg-canvas) 64%, transparent) 100%),
    linear-gradient(0deg, var(--bg-canvas) 0%, transparent 24%);
}
.hero-stage {
  position: relative;
  min-height: min(88vh, 840px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
/* bone halo keeps type readable where ink strokes pass underneath */
.hero-copy h1, .hero-copy .lead, .hero-copy .eyebrow,
.hero-copy .stat__n, .hero-copy .stat__l {
  /* light 2-layer halo (was 6 layers incl. a 60px blur on ~116px text — very
     heavy to paint). The logo sits to the side now, so this is plenty. */
  text-shadow: 0 0 10px var(--bone), 0 0 22px var(--bone);
}
.stat-row { display: flex; gap: clamp(1.5rem,4vw,3rem); flex-wrap: wrap; margin-top: 52px; }
.stat__n { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.6rem,3vw,2.2rem); letter-spacing: -0.02em; }
.stat__l { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* hero art — the Dopara logomark as a large static backdrop.
   the logo PNG is transparent, so it sits straight on the canvas: no video,
   no blend, no mask, no constant animation loop — guaranteed smooth scrolling. */
/* (the old static-logo .hero-art rules were removed — the hero is a video now) */
/* anchored to the first screenful so it's visible without scrolling */
.motion-toggle { position: absolute; right: 0; top: calc(min(88vh, 840px) - 56px); background: var(--bg-surface); }
.motion-paused .marquee-track { animation-play-state: paused; }

/* ---- Marquee ---- */
.marquee-section { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding-block: 28px; overflow: hidden; }
/* edges fade via static overlays painted once, NOT a mask re-applied to the
   moving track every frame — cheaper while the strip animates */
.marquee-mask { position: relative; overflow: hidden; }
.marquee-mask::before, .marquee-mask::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10%; z-index: 1; pointer-events: none; }
.marquee-mask::before { left: 0; background: linear-gradient(90deg, var(--bg-canvas), transparent); }
.marquee-mask::after { right: 0; background: linear-gradient(270deg, var(--bg-canvas), transparent); }
.marquee-track { display: flex; width: max-content; animation: dp-marquee var(--dur-marquee, 38s) linear infinite; }
/* paused by JS (IntersectionObserver) whenever the strip is scrolled off-screen */
.marquee-track.is-offscreen { animation-play-state: paused; }
.marquee-track .grp { display: flex; align-items: center; gap: clamp(2.5rem,5vw,5rem); padding-right: clamp(2.5rem,5vw,5rem); }
.marquee-track .grp span { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.3rem,2.4vw,2rem); letter-spacing: -0.02em; color: var(--text-faint); white-space: nowrap; }
@keyframes dp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- Section heading block ---- */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { max-width: 18ch; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center h2 { max-width: 22ch; margin-inline: auto; }

/* ---- Generic grids ---- */
.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* feature card (What we build) */
.feature {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: var(--space-3);
  min-height: 200px; transition: var(--t-colors), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature__icon { width: 42px; height: 42px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--accent-subtle); color: var(--oxblood); }
.feature__icon .lucide { width: 20px; height: 20px; }
.feature h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h4); letter-spacing: -0.01em; margin: 0; }
.feature p { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* capability matrix (bordered grid like StudioSection) */
.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.matrix__cell { background: var(--bg-canvas); padding: clamp(1.5rem,3vw,2.25rem); display: flex; flex-direction: column; gap: 12px; min-height: 210px; }
.matrix__num { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--oxblood); letter-spacing: 0.1em; }
.matrix__cell h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h3); letter-spacing: -0.01em; margin: 0; }
.matrix__cell p { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: var(--space-6); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: var(--space-3); }
.step__n { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 2.4rem; line-height: 1; color: var(--oxblood); letter-spacing: -0.03em; }
.step h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h4); margin: 0; }
.step p { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); margin: 0; }
.step__rule { height: 1px; background: var(--border-subtle); margin-top: var(--space-2); }

/* media block (case study / example) */
.media-block { border-radius: var(--radius-xl); aspect-ratio: 16/9; box-shadow: var(--shadow-lg); }
img.media-block { width: 100%; object-fit: cover; display: block; background: var(--bg-surface-2); }
.media-duotone { background: var(--grad-duotone); }
.media-ember { background: var(--grad-ember); }

/* line-art illustration: a transparent-background oxblood pen drawing that sits
   straight on the section background — no card, no drop shadow, no crop — so it
   reads as drawn onto the page (the Tiber treatment). Overrides the photo-style
   .media-block framing above. A little padding keeps the linework off the edges. */
img.media-block--line {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: clamp(0.5rem, 2.4vw, 1.75rem);
}

/* ---- Hero: gentle ambient drift on the static line-art ---- */
/* A very slow breathing scale + drift so the hero feels alive without a video.
   Starts slightly zoomed so the edges never reveal during the drift. */
@keyframes hero-drift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.08) translate3d(-1.1%, -0.9%, 0); }
  100% { transform: scale(1.04) translate3d(0, 0, 0); }
}
.hero-bg__img { transform: scale(1.04); animation: hero-drift 28s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg__img { animation: none; transform: none; }
}

/* ---- Pricing cards (Websites page) ---- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); align-items: stretch; }
.price-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: var(--space-4);
}
.price-card--featured { border-color: var(--oxblood); box-shadow: var(--shadow-md); }
.price-card__tag { align-self: flex-start; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--oxblood); padding: 4px 10px; border-radius: var(--radius-pill); }
.price-card__name { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--oxblood); }
.price-card__price { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; line-height: 1; }
.price-card__price span { font-size: var(--text-body); font-weight: var(--fw-medium); color: var(--text-muted); }
.price-card__sub { font-size: var(--text-sm); color: var(--text-muted); margin: -6px 0 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.price-card li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }
.price-card li .lucide { width: 16px; height: 16px; color: var(--oxblood); flex: none; margin-top: 2px; }
.price-card .mrd-btn { margin-top: auto; }
.price-note { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-6); }

/* ---- Work showcase (example rebuilds) ---- */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-8) var(--space-6); }
.work-card { display: flex; flex-direction: column; gap: var(--space-3); }
.work-card__shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); }
.work-card__shot img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; object-position: top center; }
.work-card__badge { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--ink-950) 78%, transparent); padding: 5px 10px; border-radius: var(--radius-pill); backdrop-filter: blur(2px); }
.work-card__meta { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.work-card h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h4); letter-spacing: -0.01em; margin: 0; }
.work-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* example project split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--form { grid-template-columns: 1.7fr 1fr; align-items: start; }
.checklist { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-body); color: var(--text-secondary); }
.checklist .lucide { width: 18px; height: 18px; color: var(--oxblood); flex: none; margin-top: 3px; }

/* pull quote / belief band */
.belief { text-align: center; max-width: 24ch; margin: 0 auto; }
.belief blockquote { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.6rem,3.4vw,2.6rem); line-height: 1.18; letter-spacing: -0.02em; margin: 0; max-width: 22ch; margin-inline: auto; text-wrap: balance; }

/* CTA band (ember) */
.cta-band { position: relative; overflow: hidden; background: var(--grad-ember); color: #fff; }
.cta-band .mrd-btn { background: var(--paper); color: var(--ink-950); border-color: var(--paper); }
.cta-band__inner { max-width: var(--container); margin: 0 auto; padding: clamp(4rem,8vw,7rem) var(--gutter); text-align: center; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band__glow { position: absolute; inset: 0; opacity: .5; background: radial-gradient(60% 120% at 80% 0%, rgba(255,255,255,.18), transparent 60%); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-canvas); border-top: 1px solid var(--border-subtle); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(1.5rem,4vw,3rem); padding-block: clamp(3rem,5vw,4.5rem); }
.footer-grid p { font-size: var(--text-sm); color: var(--text-muted); max-width: 34ch; margin-top: 18px; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; font-weight: var(--fw-medium); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: var(--text-sm); color: var(--text-secondary); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bar { border-top: 1px solid var(--border-subtle); padding-block: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bar span { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); }

/* ---- Contact / form page ---- */
.form-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-md); }
.form-step { margin-bottom: var(--space-10); }
.form-step:last-of-type { margin-bottom: var(--space-8); }
.form-step__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.form-step__num { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.1em; color: #fff; background: var(--oxblood); width: 26px; height: 26px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.form-step__head h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h4); margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field-full { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-4) var(--space-5); }
.form-success { display: none; text-align: center; padding: clamp(2rem,5vw,3.5rem); }
.form-success .lucide { width: 48px; height: 48px; color: var(--success); margin: 0 auto var(--space-5); }
.form-aside { display: flex; flex-direction: column; gap: var(--space-6); }
.aside-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); }
.aside-card h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h5); margin: 0 0 var(--space-3); }
.aside-card p, .aside-card li { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.aside-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.aside-list li { display: flex; gap: var(--space-3); }
.aside-list .lucide { width: 16px; height: 16px; color: var(--oxblood); flex: none; margin-top: 3px; }

/* ---- Prose (privacy / long copy) ---- */
.prose { max-width: var(--container-prose); }
.prose h2 { font-size: var(--text-h2); margin: var(--space-10) 0 var(--space-4); }
.prose h3 { font-size: var(--text-h3); margin: var(--space-8) 0 var(--space-3); }
.prose p, .prose li { color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-4); }
.prose ul { padding-left: var(--space-5); }
.prose a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: var(--text-display); line-height: 1.04; letter-spacing: var(--ls-display); font-weight: var(--fw-bold); margin: 0; max-width: 18ch; }
.page-hero .lead { margin-top: var(--space-6); }

/* ---- Responsive ---- */
/* ---- Process timeline (How it works) ---- */
.timeline { display: grid; gap: 0; max-width: 820px; }
.timeline__row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem,3vw,1.75rem); padding-bottom: var(--space-8); }
.timeline__row:last-child { padding-bottom: 0; }
.timeline__num { position: relative; z-index: 1; width: 50px; height: 50px; border-radius: var(--radius-pill); background: var(--oxblood); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.25rem; flex: none; }
.timeline__row:not(:last-child) .timeline__num::after { content: ""; position: absolute; left: 50%; top: 50px; transform: translateX(-50%); width: 2px; height: calc(100% - 50px + var(--space-8)); background: var(--border-default); }
.timeline__body h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h4); margin: 10px 0 8px; }
.timeline__body p { color: var(--text-secondary); line-height: 1.65; margin: 0; max-width: 60ch; }

/* ---- Callout (principle / note) ---- */
.callout { background: var(--accent-subtle); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2rem); display: flex; gap: var(--space-4); align-items: flex-start; }
.callout .lucide { width: 24px; height: 24px; color: var(--oxblood); flex: none; margin-top: 3px; }
.callout p { margin: 0; font-size: var(--text-lead); line-height: 1.5; color: var(--text-primary); }

/* ---- Pipeline flow ---- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow__node { flex: 1 1 120px; min-width: 110px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: 8px; }
.flow__node .lucide { width: 20px; height: 20px; color: var(--oxblood); }
.flow__node strong { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-sm); line-height: 1.2; }
.flow__node small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.flow__arrow { flex: 0 0 auto; color: var(--text-faint); }
.flow__arrow .lucide { width: 18px; height: 18px; }

/* ---- Tag pills (approval stages, tools) ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row .tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--radius-pill); background: var(--bg-surface); border: 1px solid var(--border-default); font-size: var(--text-sm); font-weight: var(--fw-medium); }
.tag-row .tag .lucide { width: 15px; height: 15px; color: var(--oxblood); }

/* ---- System map ---- */
.sysmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap: var(--space-4); }
.sysmap__cell { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); text-align: center; }
.sysmap__cell .lucide { width: 24px; height: 24px; color: var(--oxblood); margin-bottom: 10px; }
.sysmap__cell h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-body); margin: 0 0 4px; }
.sysmap__cell p { font-size: var(--text-2xs); color: var(--text-muted); margin: 0; line-height: 1.5; }

@media (max-width: 960px) {
  /* narrow column: the copy is full-width, so make the scrim stronger + uniform
     so the right edge of the text never sits over too-visible video */
  .hero-bg__scrim {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg-canvas) 82%, transparent) 0%, color-mix(in srgb, var(--bg-canvas) 72%, transparent) 100%),
      linear-gradient(0deg, var(--bg-canvas) 0%, transparent 18%);
  }
  .split, .split--form { grid-template-columns: 1fr; }
  .split > img.media-block { order: 2; } /* keep text above its image when stacked */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; } /* avoid the cramped 2-col footer on phones */
}
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--bg-canvas); border-bottom: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open a { padding: 12px 14px; border-radius: var(--radius-md); font-size: var(--text-body); }
  .nav-toggle { display: inline-flex; }
  .header-actions .mrd-btn { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .flow__arrow { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: var(--space-6); }
}
