/* Span Line Systems — Industrial palette. Two themes:
   :root (default) = dark, softened near-black + orange accent.
   html[data-theme="light"] = warm off-white / drafting-paper feel.
   Theme is picked by server based on the `theme` cookie (90 days);
   toggle in nav flips it client-side without reload.
*/

:root {
  --bg:           #0E1114;
  --bg-2:         #141821;
  --surface:      #1A1E27;
  --surface-2:    #1F2430;
  --line:         rgba(255,255,255,0.07);
  --line-strong:  rgba(255,255,255,0.13);
  --text:         #E8ECF3;
  --text-dim:     #9AA1B0;
  --text-muted:   #626B7A;
  --brand:        #FF6B35;
  --brand-dim:    #E55A2B;
  --steel:        #B8C4CC;
  --footer-bg:    #0A0D12;
  --nav-bg:       rgba(14,17,20,0.88);
  --topbar-phone: var(--text);

  /* Ambient effects */
  --hero-glow-color:    rgba(255,107,53,0.09);
  --hero-grid-color:    rgba(255,255,255,0.025);
  --proof-gradient:     linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
  --cta-banner-grad:    linear-gradient(135deg, #1a0f0a 0%, var(--bg) 70%);
  --cta-grid-color:     rgba(255,107,53,0.06);
  --card-grad:          linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  --code-chip-bg:       rgba(255,107,53,0.05);
  --tag-bg:             rgba(14,17,20,0.82);
  --form-panel-bg:      rgba(14,17,20,0.65);

  /* Placeholder SVG palette — used by includes/placeholder.php */
  --ph-bg:      #1A1E27;
  --ph-stripe:  #252A34;
  --ph-border:  #2F3642;
  --ph-corner:  #3A4250;
  --ph-primary: #C9CED6;
  --ph-secondary: #6B7482;
  --ph-accent:  #FF6B35;

  /* Logo filter — none by default (logo-white.png is already correct for dark) */
  --logo-filter: none;

  /* Chrome height = topbar (~36px) + sticky nav (~92px with 56px logo).
     Used to size hero/page-hero so first section fits the viewport fold. */
  --chrome-h:     128px;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg:           #F4F1EA;
  --bg-2:         #EAE6DD;
  --surface:      #FFFFFF;
  --surface-2:    #F7F4EE;
  --line:         rgba(20,24,32,0.08);
  --line-strong:  rgba(20,24,32,0.15);
  --text:         #141820;
  --text-dim:     #4A5360;
  --text-muted:   #707986;
  --brand:        #D9542A;
  --brand-dim:    #B33E17;
  --steel:        #4A5568;
  /* Footer stays dark — an "end of drawing" block under the light page,
     like a title block on a construction document. */
  --footer-bg:    #141821;
  --nav-bg:       rgba(244,241,234,0.88);
  --topbar-phone: var(--text);

  --hero-glow-color:    rgba(217,84,42,0.11);
  --hero-grid-color:    rgba(20,24,32,0.04);
  --proof-gradient:     linear-gradient(90deg, transparent, rgba(20,24,32,0.03), transparent);
  --cta-banner-grad:    linear-gradient(135deg, #F5DFCE 0%, var(--bg) 70%);
  --cta-grid-color:     rgba(217,84,42,0.08);
  --card-grad:          linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  --code-chip-bg:       rgba(217,84,42,0.06);
  --tag-bg:             rgba(244,241,234,0.92);
  --form-panel-bg:      rgba(255,255,255,0.85);

  --ph-bg:      #EAE6DD;
  --ph-stripe:  #D8D3C5;
  --ph-border:  #C8C2B2;
  --ph-corner:  #B8B19E;
  --ph-primary: #383E48;
  --ph-secondary: #6B7280;
  --ph-accent:  #D9542A;

  /* Real logo.png is black on white (opaque). We ship logo-white.png
     (cropped, re-coloured white-ink, transparent bg) for dark theme.
     For light theme we invert it back to black. */
  --logo-filter: invert(1);

  color-scheme: light;
}

/* Footer stays dark in light mode — treats the block like a drafting
   title block: a dark "sign-off" strip beneath the document. Redeclare
   dark-theme custom properties scoped to the footer so its descendants
   pick them up via the usual cascade. */
html[data-theme="light"] footer.site-footer {
  --bg:          #141821;
  --bg-2:        #0A0D12;
  --surface:     #1A1E27;
  --line:        rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.13);
  --text:        #E8ECF3;
  --text-dim:    #9AA1B0;
  --text-muted:  #626B7A;
  --brand:       #FF6B35;
  color: var(--text);
}
html[data-theme="light"] footer.site-footer .brand-logo {
  /* Inside the dark-island footer, invert again so the logo reads white. */
  filter: none;
}

html { scroll-padding-top: var(--chrome-h); }

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* -------- Topbar -------- */
.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
}
.topbar-in {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-right {
  display: flex; align-items: center; gap: 14px;
}
.topbar .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.topbar-phone { color: var(--text); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.topbar-phone:hover { border-bottom-color: var(--brand); color: var(--brand); }

/* -------- Nav -------- */
nav.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: -0.01em; font-size: 15px;
  color: var(--text);
}
/* Logo is served pre-processed to white-ink-on-transparent for dark
   theme (scripts/process-logos.php). Light theme applies invert(1) via
   the --logo-filter custom property. */
.brand-logo {
  height: 56px; width: auto;
  filter: var(--logo-filter);
  transition: opacity .15s ease;
}
@media (max-width: 720px) {
  .brand-logo { height: 44px; }
}
.brand:hover .brand-logo { opacity: 0.85; }

/* Legacy mark styles retained for any in-page uses; replaced in header. */
.brand-mark {
  width: 32px; height: 32px; border-radius: 4px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dim) 100%);
  display: grid; place-items: center;
  font-size: 13px; color: #fff; font-weight: 800;
  flex-shrink: 0;
}
.brand-text { line-height: 1.05; }
.brand-sub {
  display: block;
  font-size: 9px; letter-spacing: 0.2em; color: var(--text-dim);
  font-weight: 500; margin-top: 1px;
}
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--text-dim); align-items: center; }
.nav-links a, .nav-links .nav-link { transition: color .15s ease; }
.nav-links a:hover,
.nav-links .nav-link:hover,
.nav-links a.is-active,
.nav-links .nav-link.is-active { color: var(--text); }
.nav-links a.is-active,
.nav-links .nav-link.is-active { color: var(--brand); }

/* Nav items with dropdown */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item .nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  /* Slight extra hit area below so the cursor can travel into the dropdown
     without crossing a gap that would close it on hover-leave. */
  padding: 4px 0 6px;
}
.nav-item .nav-caret {
  width: 9px; height: 9px;
  opacity: 0.55;
  transition: transform .22s ease, opacity .15s ease;
  margin-top: 1px;
}
.nav-item:hover .nav-caret,
.nav-item[data-open="true"] .nav-caret { opacity: 1; }
.nav-item[data-open="true"] .nav-caret { transform: rotate(180deg); }

/* Dropdown panel — drafting-drawer aesthetic */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -22px;
  margin-top: 14px;
  min-width: 540px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  /* Sharp corners — feels precise, drafted, technical */
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.02) inset,
    0 24px 56px -20px rgba(0,0,0,0.45),
    0 6px 18px rgba(0,0,0,0.18);
  padding: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 30;
}
html[data-theme="light"] .nav-dropdown {
  /* Light theme — paper-on-paper with a defined edge */
  background: var(--surface);
  box-shadow:
    0 24px 56px -20px rgba(20,24,32,0.18),
    0 4px 14px rgba(20,24,32,0.08);
}
.nav-item[data-open="true"] .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
/* Reaching from the trigger to the panel — the gap is hover-safe */
.nav-item .nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto 0;
  height: 16px;
}
/* Top accent rail — the orange line that anchors the panel to the brand */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--brand);
}

.nav-dd-inner { padding: 22px 26px 20px; }

.nav-dd-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.nav-dd-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  white-space: nowrap;
}
.nav-dd-eyebrow--sub { color: var(--text-muted); opacity: 0.85; }
.nav-dd-overview {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.005em;
  color: var(--brand); white-space: nowrap;
}
.nav-dd-overview:hover { color: var(--brand-dim); }

.nav-dd-grid {
  display: grid;
  gap: 2px 8px;
}
.nav-dd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nav-dd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nav-dd-grid--compact { grid-template-columns: repeat(2, 1fr); margin-top: 6px; }

.nav-dd-item {
  display: flex; gap: 12px;
  padding: 10px 12px 10px 10px;
  /* Left rail — the drafting reveal. Fills with brand on hover. */
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  transition: background .14s ease, border-left-color .14s ease, transform .14s ease;
  align-items: flex-start;
  color: var(--text);
}
.nav-dd-item:hover,
.nav-dd-item:focus-visible {
  background: var(--bg-2);
  border-left-color: var(--brand);
  outline: none;
}
.nav-dd-item:focus-visible {
  /* Keyboard focus — slightly bolder to be obvious */
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.nav-dd-num {
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--brand); font-weight: 600;
  flex-shrink: 0; padding-top: 4px;
  width: 18px;
}

.nav-dd-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-dd-title {
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.35;
}
.nav-dd-sub {
  font-size: 11.5px; letter-spacing: 0.005em;
  color: var(--text-dim);
  line-height: 1.4;
}

.nav-dd-item--compact { padding: 8px 12px 8px 10px; }
.nav-dd-item--compact .nav-dd-title { font-size: 13px; }
.nav-dd-item--compact .nav-dd-sub { font-size: 11px; }

.nav-dd-sec-head {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.nav-dd-foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}
.nav-dd-foot-label { color: var(--text-muted); margin-right: 4px; }
.nav-dd-foot-link {
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 0.005em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-bottom-color .15s ease, color .15s ease;
}
.nav-dd-foot-link:hover {
  border-bottom-color: var(--brand);
  color: var(--brand-dim);
}
.nav-dd-foot-sep { color: var(--text-muted); }

/* Mobile: dropdowns become inline-expanded sections under the trigger.
   Use display none/block (not visibility/opacity) so the closed dropdown
   doesn't reserve layout space — that was the "menu overtakes the screen"
   bug, where every closed dropdown was still occupying its full height. */
@media (max-width: 900px) {
  .nav-dropdown {
    position: static;
    min-width: 0; width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border: 1px solid var(--line);
    /* Override the desktop opacity/visibility/transform model — those
       collapse the visual but keep the box in flow on a static element. */
    display: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-item[data-open="true"] .nav-dropdown {
    display: block;
  }
  /* Strip the hover-safe gap on mobile — it has no purpose with tap-toggle */
  .nav-item .nav-dropdown::before { display: none; }
  /* Remove the absolute-positioned accent rail (it's clipped by the
     border on the static box anyway; keep visual simple) */
  .nav-dropdown::after {
    position: relative; top: auto; left: auto; right: auto;
    margin: 0 -1px;
  }
  .nav-dd-grid--2,
  .nav-dd-grid--3,
  .nav-dd-grid--compact { grid-template-columns: 1fr; }
}

.nav-cta {
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--brand-dim); }
.nav-cta svg { width: 14px; height: 14px; }

/* Hamburger toggle — visible only on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle-icon { display: block; }
.nav-toggle-icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon--close { display: block; }

/* -------- Hero (homepage) -------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--chrome-h));
  display: flex; align-items: center;
  padding: 40px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  top: -20%; right: -10%; width: 700px; height: 700px;
  background: radial-gradient(circle, var(--hero-glow-color) 0%, transparent 60%);
  pointer-events: none;
}
.hero-in {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand); font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255,107,53,0.28);
  border-radius: 30px;
  background: rgba(255,107,53,0.05);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.18);
}
h1.hero-title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04; font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 18px;
}
h1.hero-title em {
  font-style: normal; color: var(--brand);
  display: inline-block; position: relative;
}
h1.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; background: var(--brand);
}
.hero-sub {
  font-size: 16px; color: var(--text-dim); line-height: 1.55;
  max-width: 500px; margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.btn-primary {
  background: var(--brand); color: #fff;
  padding: 14px 22px; border-radius: 4px;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s ease, background .15s ease;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--brand-dim); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text); padding: 14px 22px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: border-color .15s ease;
}
.btn-ghost:hover { border-color: var(--text-dim); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 520px;
}
.stat { border-top: 2px solid var(--brand); padding-top: 12px; }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.stat-label {
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); margin-top: 4px;
}

/* Hero visual slot — houses a photo or a labelled placeholder.
   aspect 4/5 keeps it from forcing the fold taller than content. */
.hero-visual {
  position: relative; aspect-ratio: 4/5;
  max-height: calc(100dvh - var(--chrome-h) - 80px);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  border-radius: 6px; overflow: hidden;
}
.hero-visual > img,
.hero-visual > svg,
.hero-visual > picture { width: 100%; height: 100%; object-fit: cover; }

/* -------- Ticker -------- */
.ticker {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 56px; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  flex-wrap: wrap;
}
.ticker span:not(:last-child)::after {
  content: ""; display: inline-block;
  width: 4px; height: 4px; background: var(--text-muted);
  border-radius: 50%; margin-left: 56px; vertical-align: middle;
}

/* -------- Sections -------- */
section.block { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--brand); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 600;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.section-label::before { content: "//"; color: var(--brand); }
h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700; letter-spacing: -0.022em; line-height: 1.08;
  max-width: 720px; margin-bottom: 20px;
}
h2 em { font-style: normal; color: var(--brand); }
.section-intro {
  color: var(--text-dim); font-size: 17px; line-height: 1.5;
  max-width: 620px; margin-bottom: 52px;
}

/* -------- Services -------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc {
  position: relative;
  border: 1px solid var(--line);
  padding: 36px; border-radius: 6px;
  background: var(--card-grad);
  transition: border-color .2s ease, transform .2s ease;
}
.svc:hover { border-color: var(--brand); transform: translateY(-2px); }
.svc-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--brand);
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.svc-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.svc-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  display: grid; place-items: center;
  margin-bottom: 18px; color: var(--brand);
  background: var(--code-chip-bg);
}
.svc h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.svc p { color: var(--text-dim); line-height: 1.55; margin-bottom: 20px; }
.svc ul { list-style: none; margin-bottom: 26px; }
.svc ul li {
  font-size: 14px; color: var(--text);
  padding: 8px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.svc ul li:last-child { border-bottom: 1px solid var(--line); }
.svc ul li span {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.svc-link {
  color: var(--brand); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .15s ease;
}
.svc-link:hover { gap: 12px; }

/* -------- Capabilities grid -------- */
.caps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cap {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cap-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--brand); font-size: 12px; margin-bottom: 14px;
}
.cap h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.cap p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* -------- Process -------- */
.process-wrap {
  background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.process-wrap .container { padding-top: 90px; padding-bottom: 90px; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { padding: 36px 22px; border-right: 1px solid var(--line); }
.step:last-child { border-right: none; }
.step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--brand);
  border: 1px solid var(--brand); padding: 4px 8px; border-radius: 2px;
  display: inline-block; margin-bottom: 18px;
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* -------- Proof band -------- */
.proof-band {
  padding: 44px 0; border-bottom: 1px solid var(--line);
  background: var(--proof-gradient);
}
.proof-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; opacity: 0.55; flex-wrap: wrap;
}
.proof-logo {
  font-weight: 700; letter-spacing: 0.06em; font-size: 15px;
  color: var(--steel); white-space: nowrap;
}

/* -------- Projects grid -------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--bg-2);
  transition: border-color .2s ease, transform .2s ease;
}
.project:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.project-img {
  position: relative; aspect-ratio: 4/3;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.project-img > img,
.project-img > svg,
.project-img > picture { width: 100%; height: 100%; object-fit: cover; }
.project-img .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--brand);
  background: var(--tag-bg);
  padding: 4px 8px; border-radius: 2px;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}
.project-body { padding: 22px; }
.project h5 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.project p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.project-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* -------- CTA banner -------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--cta-banner-grad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--cta-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--cta-grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 70%);
  pointer-events: none;
}
.cta-in {
  position: relative;
  padding: 84px 0;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-in h2 { font-size: clamp(32px, 3.8vw, 44px); margin: 0; }
.cta-in p { color: var(--text-dim); font-size: 16px; margin-top: 16px; max-width: 480px; }

.cta-form {
  background: var(--form-panel-bg);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  padding: 26px; border-radius: 6px;
}
.cta-form label {
  display: block; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.cta-form input,
.cta-form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px; border-radius: 4px;
  font-size: 14px; font-family: inherit;
  margin-bottom: 14px;
}
.cta-form input:focus,
.cta-form select:focus { outline: none; border-color: var(--brand); }
.cta-form button {
  width: 100%;
  background: var(--brand); color: #fff; border: none;
  padding: 14px; border-radius: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.cta-form button:hover { background: var(--brand-dim); }

/* -------- Footer -------- */
footer.site-footer {
  padding: 64px 0 30px;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px; margin-bottom: 48px;
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand .brand-logo { height: 52px; }
.foot-brand p {
  color: var(--text-dim); font-size: 14px; line-height: 1.6;
  max-width: 360px;
}
.foot-brand p a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.foot-brand p a:hover { color: var(--brand); border-color: var(--brand); }
.foot-col h6 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); margin-bottom: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.foot-col a {
  display: block; font-size: 14px; color: var(--text-dim);
  padding: 5px 0; transition: color .15s ease;
}
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em; flex-wrap: wrap; gap: 12px;
}

/* Tiny reCAPTCHA attribution line — keeps Google's ToS satisfied while
   the floating badge is hidden. */
.recaptcha-note {
  font-size: 11px; color: var(--text-muted); opacity: 0.65;
  margin-top: 14px; line-height: 1.5; letter-spacing: 0;
  font-family: inherit;
}
.recaptcha-note a { color: inherit; text-decoration: underline; }
.recaptcha-note a:hover { color: var(--text-dim); }

/* Hide the floating reCAPTCHA badge — replaced by the attribution above. */
.grecaptcha-badge { visibility: hidden !important; }

/* -------- Inner-page hero (smaller than homepage hero) --------
   Sized to fit the fold on typical laptop viewports (~720–900 tall)
   without forcing taller screens to stretch awkwardly. */
.page-hero {
  position: relative; overflow: hidden;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute;
  top: -30%; right: -15%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--hero-glow-color) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .crumbs {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.page-hero .crumbs a { color: var(--text-dim); transition: color .15s; }
.page-hero .crumbs a:hover { color: var(--brand); }
.page-hero .crumbs .sep { margin: 0 10px; color: var(--text-muted); }
.page-hero h1 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.05;
  max-width: 820px; margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--brand); }
.page-hero .lead {
  font-size: 16px; color: var(--text-dim); line-height: 1.55;
  max-width: 640px;
}

/* -------- Content prose (inner pages) -------- */
.prose { max-width: 720px; color: var(--text); font-size: 16px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-bottom: 12px; }
.prose h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.prose p { color: var(--text-dim); }
.prose ul { padding-left: 1.25em; color: var(--text-dim); }
.prose ul li { padding: 4px 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* -------- Theme toggle (Day / Night) -------- */
.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--text-dim); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.theme-toggle .tt-option {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
  z-index: 1;
  white-space: nowrap;
}
.theme-toggle .tt-option svg {
  width: 13px; height: 13px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}
html[data-theme="light"] .theme-toggle .tt-option[data-for="light"],
html[data-theme="dark"]  .theme-toggle .tt-option[data-for="dark"] {
  background: var(--text);
  color: var(--bg);
}
html[data-theme="light"] .theme-toggle .tt-option[data-for="dark"],
html[data-theme="dark"]  .theme-toggle .tt-option[data-for="light"] {
  color: var(--text-dim);
}

/* Compact variant on mobile */
@media (max-width: 640px) {
  .theme-toggle .tt-label { display: none; }
  .theme-toggle .tt-option { padding: 6px 8px; }
}

/* Sticky service-page aside so the image + code-ref cards follow
   while the user reads the prose column. Disabled on narrow viewports
   where the layout stacks. */
.svc-aside { align-self: start; }
@media (min-width: 961px) {
  .svc-aside {
    position: sticky;
    top: calc(var(--chrome-h) + 20px);
  }
}

/* -------- Spec lists (reusable on service pages) -------- */
.spec-list {
  border-top: 1px solid var(--line); list-style: none;
}
.spec-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-list li span {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
}

/* -------- Contact page specifics -------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: start;
}
.contact-info h3 { font-size: 18px; margin: 28px 0 8px; }
.contact-info p,
.contact-info a { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.contact-info a:hover { color: var(--text); }
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  padding: 32px; border-radius: 6px;
}
.contact-form label {
  display: block; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong); color: var(--text);
  padding: 12px 14px; border-radius: 4px;
  font-size: 14px; font-family: inherit;
  margin-bottom: 16px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-form button {
  width: 100%;
  background: var(--brand); color: #fff; border: none;
  padding: 14px; border-radius: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.contact-form button:hover { background: var(--brand-dim); }

.form-notice {
  margin-bottom: 22px; padding: 14px 16px;
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.06);
  border-radius: 4px; color: #86efac; font-size: 14px;
}

/* -------- E-E-A-T engineer blocks -------- */
.eeat-card {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 24px; align-items: start;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-2);
  position: relative;
}
.eeat-card.is-pending { border-style: dashed; }
.eeat-photo {
  aspect-ratio: 4/5;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.eeat-photo > svg,
.eeat-photo > img,
.eeat-photo > picture { width: 100%; height: 100%; object-fit: cover; }
.eeat-body { min-width: 0; }
.eeat-pending-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  background: rgba(245,158,11,0.14); color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.4);
  margin-bottom: 10px;
}
.eeat-pending-tag.small { font-size: 8.5px; padding: 2px 6px; margin-bottom: 0; }
.eeat-name {
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
}
.eeat-role {
  font-size: 13px; color: var(--text-dim);
  margin-top: 4px; margin-bottom: 12px;
}
.eeat-creds {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.eeat-cred {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  padding: 3px 9px; border-radius: 3px;
  background: rgba(255,107,53,0.10);
  color: var(--brand);
  border: 1px solid rgba(255,107,53,0.28);
  letter-spacing: 0.02em;
}
.eeat-license {
  display: inline-flex; gap: 8px; align-items: baseline;
  padding: 8px 12px; border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-dim);
  margin-bottom: 14px;
}
.eeat-license .mono {
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.eeat-license-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text); font-weight: 600;
}
.eeat-license-j { color: var(--text-muted); font-size: 12px; }
.eeat-bio {
  font-size: 14px; color: var(--text-dim);
  line-height: 1.6; margin-bottom: 12px;
}
.eeat-specs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 14px;
}
.eeat-linkedin {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--brand);
  font-weight: 500;
  transition: gap .15s ease;
}
.eeat-linkedin:hover { gap: 10px; }

/* Inline "stamped by" stamp */
.eeat-stamp {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,107,53,0.05), transparent 70%);
  max-width: 420px;
}
.eeat-stamp.is-pending { border-style: dashed; }
.eeat-stamp-badge {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,107,53,0.35); border-radius: 50%;
  color: var(--brand); background: rgba(255,107,53,0.07);
  flex-shrink: 0;
}
.eeat-stamp-text { min-width: 0; line-height: 1.3; }
.eeat-stamp-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 9.5px; color: var(--text-muted);
  letter-spacing: 0.16em;
  margin-bottom: 3px;
}
.eeat-stamp-name {
  font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 2px;
}
.eeat-stamp-meta {
  font-size: 11.5px; color: var(--text-dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.eeat-stamp-meta .dim { color: var(--text-muted); }

/* -------- Responsive -------- */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .hero-in,
  .cta-in,
  .services-grid,
  .foot-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .caps,
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:nth-child(even) { border-right: none; }
}

@media (max-width: 720px) {
  /* Inline grid-template-columns override — most sub-pages, industry pages,
     blog articles, and case studies use inline `style="display:grid;
     grid-template-columns:..."` that no class-based selector reaches. The
     attribute selector + !important is the cleanest override. */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Nav layout: brand on left, hamburger + CTA on right. Nav-links hidden
     by default; the hamburger toggles a [data-mobile-open] attribute on
     .site-nav that reveals the link panel as a column accordion. */
  .nav-in {
    flex-wrap: wrap;
    row-gap: 0;
    gap: 8px;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-cta {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  /* Hidden by default on mobile */
  .nav-links {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  /* Revealed when hamburger toggled */
  .site-nav[data-mobile-open="true"] .nav-links {
    display: flex;
  }

  .nav-links > a,
  .nav-links > .nav-item {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  /* Force block layout so the trigger label + dropdown panel stack
     vertically instead of inline-flexing side-by-side (the bug that was
     rendering "Mezzanines" beside its sub-list as two columns). */
  .nav-links > .nav-item {
    display: block;
  }
  .nav-links > a {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
  }
  .nav-item .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
  }
  .nav-item .nav-caret {
    width: 12px;
    height: 12px;
    opacity: 0.7;
  }

  /* Dropdown panel becomes a flat indented sub-list inside the mobile
     accordion — strip the desktop drafting-drawer chrome (border, shadow,
     eyebrow box, indexed cards, orange accent rail) so it reads as a
     standard mobile sub-menu rather than a floating spec sheet. */
  .nav-dropdown {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 4px 0 4px;
  }
  .nav-dropdown::after { display: none; }

  .nav-dd-inner { padding: 0; }

  .nav-dd-head {
    padding: 0 0 8px;
    margin: 0;
    border-bottom: none;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .nav-dd-eyebrow,
  .nav-dd-eyebrow--sub {
    font-size: 9.5px;
    opacity: 0.7;
  }
  .nav-dd-overview {
    font-size: 13px;
  }

  /* Indexed cards collapse to flat list rows */
  .nav-dd-grid,
  .nav-dd-grid--compact {
    gap: 0 !important;
    grid-template-columns: 1fr !important;
  }
  .nav-dd-item,
  .nav-dd-item--compact {
    padding: 9px 0 9px 14px;
    border-radius: 0;
    border: none;
    border-left: 2px solid var(--line);
    background: transparent !important;
    margin: 0 0 2px 0;
  }
  .nav-dd-item:hover,
  .nav-dd-item:focus-visible,
  .nav-dd-item--compact:hover {
    border-left-color: var(--brand);
    background: transparent !important;
    box-shadow: none;
  }

  /* Drop the 01/02/03 mono numbers — visual noise at this scale */
  .nav-dd-num { display: none; }

  .nav-dd-title,
  .nav-dd-item--compact .nav-dd-title { font-size: 14px; }
  .nav-dd-sub,
  .nav-dd-item--compact .nav-dd-sub { font-size: 12px; line-height: 1.45; }

  .nav-dd-sec-head {
    border-top: 1px dashed var(--line);
    padding-top: 8px;
    margin-top: 8px;
  }

  .nav-dd-foot {
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12.5px;
  }
  .nav-dd-foot-label {
    width: 100%;
    margin-bottom: 2px;
    font-size: 9.5px;
    opacity: 0.7;
  }

  /* Page hero scales down */
  .page-hero h1 { font-size: clamp(28px, 7vw, 38px); line-height: 1.08; }
  .page-hero .lead { font-size: 15px; }
  .hero-title { font-size: clamp(32px, 9vw, 46px) !important; }

  /* Section spacing */
  section.block { padding: 56px 0; }
  .page-hero { padding: 44px 0 32px; }

  /* Topbar — drop the location text; spread phone (left) and theme
     toggle (right edge) with the row filling the available width so the
     toggle anchors to the edge instead of pinning next to the phone. */
  .topbar-in {
    padding: 10px 0;
    gap: 14px;
  }
  .topbar-in > div:first-child { display: none; }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
  .theme-toggle { margin-left: auto; }

  /* Footer columns stack */
  .foot-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* CTA-banner stacks */
  .cta-in { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Tables in cost guides + load ratings — let them scroll horizontally
     instead of breaking the layout */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Service-page asides — when the grid collapses to one column, the aside
     image was getting too tall. Cap aspect ratio so it doesn't dominate. */
  .svc-aside > div[style*="aspect-ratio"] { aspect-ratio: 4/3 !important; }
  .page-hero + .block .svc-aside img,
  aside img { max-height: 60vh; object-fit: cover; }
}

@media (max-width: 640px) {
  .topbar .mono { font-size: 10px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .caps,
  .projects-grid,
  .process { grid-template-columns: 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .ticker { gap: 20px; font-size: 11px; }
  .ticker span:not(:last-child)::after { margin-left: 20px; }

  /* Brand logo gets smaller on phones — same logic as the 720px rule
     elsewhere but tighter */
  .brand-logo { height: 38px; }

  /* Page-hero h1 even smaller on phones */
  .page-hero h1 { font-size: clamp(26px, 8vw, 32px); }

  /* Eyebrow / mono labels shrink */
  .section-label { font-size: 10px; letter-spacing: 0.14em; }

  /* CTA buttons full-width on phones for comfortable tap */
  .btn-primary, .btn-ghost, .nav-cta { width: 100%; justify-content: center; }
  .nav-cta { width: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .topbar-in { padding: 6px 0; font-size: 11px; }
  .topbar-mono { font-size: 9.5px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
}
