/* ============================================================
   ALM Ortho — Shared Design System
   Inspired by index-9.html + Divergent3D aesthetic
   Font: Roboto (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); font-size: 105%; }
/* scroll-snap removed — it clipped the bottom (CTA buttons) of sections taller than the viewport */
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Light palette (hero/header) */
  --light-bg:           #ffffff;
  --light-text:         #0d223f;
  --light-text-dim:     #4a5578;
  --light-text-muted:   #7d868c;
  --light-border:       rgba(13, 34, 63, 0.10);

  /* Dark palette (all inner sections — remapped to white theme) */
  --dark-bg:            #ffffff;
  --dark-bg-2:          #f5f7fa;
  --dark-bg-card:       #f0f4f9;
  --dark-text:          #0d223f;
  --dark-text-dim:      #4a5578;
  --dark-text-muted:    #7d868c;
  --dark-border:        rgba(13, 34, 63, 0.10);
  --dark-border-hover:  rgba(13, 34, 63, 0.25);

  /* Accents */
  --accent:             #2563eb;
  --accent-light:       #3b82f6;
  --accent-glow:        rgba(37, 99, 235, 0.20);
  --orange:             #f97316;

  /* Layout */
  --nav-h:              104px;
  --max-w:              1200px;
  --section-pad:        24px;
  --ease:               cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font:               'Roboto', system-ui, sans-serif;
}

/* ── BASE ──────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--dark-bg);
  color: var(--dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--light-bg);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;   /* gutter inside — keeps the nav logo aligned with hero + body */
  display: flex;
  align-items: center;
  gap: 16px;
}
#site-header.scrolled {
  border-color: var(--light-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-logo {
  min-width: 0;   /* let the flex item shrink instead of overflowing the header */
}
.nav-logo img {
  /* max-height + auto dimensions, NOT a fixed height: on phones the header can't
     fit the logo's natural 246px width next to the CTA + hamburger, so max-width:100%
     shrinks the width — a fixed 66px height then SQUASHES the logo (seen on iOS,
     ratio 2.16 instead of 3.73). Max constraints scale it down proportionally. */
  height: auto;
  width: auto;
  max-height: 66px;
  max-width: 100%;
}
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-cta {
  flex: 0 0 auto;
}
.nav-links > .nav-item > a,
.nav-links > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--light-text-dim);
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links > .nav-item > a:hover,
.nav-links > .nav-item > a.active,
.nav-links > a:hover,
.nav-links > a.active {
  color: var(--light-text);
  border-color: var(--accent);
}

/* ── DROPDOWN NAV ─────────────────────────────────────────── */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
/* Invisible bridge — fills the gap so hover doesn't break mid-travel */
.nav-item:hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 14px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(8px);
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--light-text-dim) !important;
  border-radius: 6px;
  border-bottom: none !important;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown a:hover {
  color: var(--accent) !important;
  background: rgba(37, 99, 235, 0.06);
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  border-bottom: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}
.nav-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 16px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--light-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── HERO — LIGHT (Home page) ──────────────────────────────── */
.hero-light {
  background: var(--light-bg);
  padding-top: var(--nav-h);
  min-height: auto;
  display: flex;
  align-items: flex-start;
}
.hero-light .hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 48px 64px;
  display: grid;
  /* minmax(0,1fr), not 1fr: default grid items are min-width:auto, so a long
     headline word could force the track wider than the container and push the
     whole hero past the viewport (horizontal scroll between 769-1199px).
     1.7fr text track (≈680px at 1440) so the h1's intended <br> break fits on
     two lines — a 1fr (540px) track wrapped "Next-Generation" at the hyphen
     into four ragged lines. Sized together with the h1 clamp() below. */
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);   /* text left, carousel right */
  gap: 24px;
  align-items: center;
  padding-top: 24px;                /* tight gap below the fixed nav */
}
.hero-headline {
  /* full width — no constraints */
}
.hero-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-light h1 {
  /* Max ~61px (was ~73px): at 61px "Digital Manufacturing" ≈ 623px and
     "Next-Generation" ≈ 472px, so both fit the ≈680px text track above and the
     headline breaks exactly at the markup's <br> — never at the hyphen, never
     under the implant PNG, no horizontal scroll. Deliberate trade-off: the
     headline is somewhat smaller on the widest screens. */
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--light-text);
  margin-bottom: 22px;
}

/* Desktop. HISTORY: originally the oversized headline ran wide and floated
   BEHIND the transparent carousel PNGs. That only worked while the text track
   could grow — which is what caused the horizontal-scroll bug. The behind-image
   effect was consciously retired (Round 5): the headline is now sized to fit
   its own track (see the clamp() above), so z-index layering is vestigial. */
@media (min-width: 769px) {
  .hero-light .hero-text { position: relative; z-index: 1; }
  .hero-light .hero-visual {
    position: relative;
    z-index: 2;
    /* Scale with the viewport (like the headline's vw sizing) so the image and
       headline shrink together instead of the image collapsing on its own. */
    width: clamp(300px, 34vw, 425px);
    max-width: none;
    height: clamp(415px, 47vw, 588px);
    transform: translateX(-40px);  /* slide left so the headline tucks behind it */
  }
  /* NOTE: `white-space: nowrap` was removed here. It only worked while the text
     track could grow to fit the headline — which is exactly what caused the hero
     to overflow the viewport. Now that the track is minmax(0,1fr) and cannot grow,
     a nowrap headline ran straight under the (opaque) implant PNG and rendered as
     "Digital Manufacturin". Letting it wrap keeps the type large and nothing is lost:
     the <br> in the markup still controls the primary line break. */
}
.hero-light .hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--light-text-dim);
  max-width: 460px;   /* keep the body copy contained to the left/center */
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.trust-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--light-text-muted);
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border: 1px solid var(--light-border);
  border-radius: 100px;
}

/* ── HERO — DARK (Inner pages) ─────────────────────────────── */
.hero-dark {
  background: var(--dark-bg);
  padding-top: var(--nav-h);
  min-height: auto;
  display: flex;
  align-items: flex-start;
}
.hero-dark .hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 48px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);   /* minmax(0,…) — see .hero-light note */
  column-gap: 48px;
  align-items: center;
}
.hero-dark .hero-inner > .hero-visual {
  grid-column: 2;
  grid-row: 1 / 5;
}
.hero-dark .hero-inner > :not(.hero-visual) {
  grid-column: 1;
}
.hero-dark h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark-text);
  margin-bottom: 20px;
}
.hero-dark .hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark-text-dim);
  margin-bottom: 36px;
}
.hero-dark .hero-visual {
  /* Inner-page hero: image fills the frame edge-to-edge, no gray box */
  background: #ffffff;
  border-radius: 12px;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.hero-dark .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--light-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1.5px solid var(--light-border);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: var(--light-text); color: var(--light-text); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1.5px solid var(--dark-border-hover);
  transition: border-color 0.2s ease;
}
.btn-outline-light:hover { border-color: rgba(13, 34, 63, 0.45); }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ── SECTION WRAPPERS ──────────────────────────────────────── */
/* Container mechanics match .hero-inner: a max-width container centred first,
   with the 48px gutter INSIDE it. Previously the 48px sat OUTSIDE the container
   (on the section), which starts centring ~96px later than the hero does — so
   between ~1216px and ~1308px (and by a constant 48px at ≥1296px) body copy sat
   left of the hero H1 on every page. Same-mechanics = same left edge at every
   width, no breakpoint chasing. Keep it this way. */
.section-dark {
  background: var(--dark-bg);
  padding: var(--section-pad) 0;
}
.section-dark-alt {
  background: var(--dark-bg-2);
  padding: var(--section-pad) 0;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;   /* gutter inside the container — mirrors .hero-inner */
}

/* ── SECTION HEADER ROW (heading left, CTA pinned top-right) ── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.section-head > .reveal { flex: 1 1 auto; min-width: 0; }
.section-head-cta { flex: 0 0 auto; white-space: nowrap; margin-bottom: 2px; }
@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── HOME PAGE SECTIONS: full-viewport, content centered ───── */
/* Scoped to .home (homepage <body class="home">) so that inner  */
/* pages — whose sections also have IDs — are NOT forced to      */
/* full-viewport height and instead flow at natural height.      */
.home section[id].section-dark,
.home section[id].section-dark-alt {
  /* Sections flow at their natural height. Previously each was forced to
     full-viewport height with vertically-centered content, which created a
     large empty gap above every section and pushed taller content past the
     bottom of the screen. */
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* ── SECTION LABELS / EYEBROWS ─────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

/* ── SECTION HEADINGS ──────────────────────────────────────── */
.section-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--dark-text);
  margin-bottom: 16px;
}
.section-h2 em { font-style: normal; color: var(--accent-light); }

.section-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-text-dim);
  max-width: 600px;
  margin-bottom: 24px;
}

/* ── DIVIDER ───────────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--dark-border);
  margin: 0;
}

/* ── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--dark-bg-card);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 48px 0;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;   /* gutter inside — same container mechanics as .hero-inner */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--dark-text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── THREE-COLUMN PILLAR GRID ──────────────────────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

/* Company → "Our Capabilities" has only two cards; widen them to two
   full-width columns so they don't leave an empty third. Scoped to
   #capabilities, which exists only on the Company page. */
#capabilities .pillar-grid { grid-template-columns: repeat(2, 1fr); }
/* Cards are full-width (2 columns); keep the round images small so the
   cards don't get tall. */
#capabilities .pillar-card img { max-width: 190px; display: block; margin: 0 auto; }
.pillar-card {
  background: var(--dark-bg-card);
  padding: 28px 28px;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}
.pillar-card:hover { border-color: var(--dark-border-hover); }

/* For Surgeons → "Tools & Training": white background instead of grey.
   Scoped to #tools, which exists only on the surgeons page, so no other
   section is affected. Cards keep their subtle border so they stay defined. */
#tools.section-dark-alt { background: #ffffff; }
#tools .pillar-card { background: #ffffff; }
/* White framed box around a transparent product image (matches the
   baked-in frame on the other tool images, e.g. tools-planning.png) */
.framed-img {
  background: #ffffff;
  border: 1px solid rgba(13, 34, 63, 0.22);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  /* The shoulder render is 1268x1204 while its sibling tool images are 1800x1800.
     Force a square box + contain so the three cards in the row stay aligned. */
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.pillar-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--dark-text-dim);
}

/* ── APPLICATION CARDS ─────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .app-grid { grid-template-columns: 1fr; }
}
.app-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--dark-bg-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
}
.app-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
  padding: 20px;
}
.app-card:hover img { transform: scale(1.04); }
.app-card-overlay {
  /* image sits on top; text flows below it (no longer overlaid) */
  padding: 4px 20px 22px;
  background: none;
}
.app-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.app-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 4px;
}
.app-card p {
  font-size: 0.82rem;
  color: var(--light-text-dim);
  line-height: 1.5;
}
.app-card-link {
  position: absolute;
  inset: 0;
}

/* ── TWO-COLUMN CONTENT BLOCK ──────────────────────────────── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }
.content-split-text .section-label { margin-bottom: 12px; }
.content-split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--dark-text);
  margin-bottom: 16px;
}
.content-split-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--dark-text-dim);
  margin-bottom: 16px;
}
.content-split-text p:last-of-type { margin-bottom: 28px; }
.content-split-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  max-width: 65%;
  margin: 0 auto;
}
.content-split-img img {
  width: 100%;
  height: auto;
  display: block;             /* frame hugs the image — no letterbox gap */
}

/* ── PROCESS STEPS ─────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.process-step {
  background: var(--dark-bg-card);
  padding: 24px 24px;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  position: relative;
}
.process-step-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--dark-border-hover);
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--dark-text-dim);
}
/* Cap the round step images so the cards stay compact */
.process-step img {
  width: 140px;
  height: auto;
  display: block;
  margin: 2px auto 14px;
}
/* Gap between the process cards and the "Contact Our Team" button (Platform page) */
#process .btn-group { margin-top: 28px; }

/* ── QUOTE / CALLOUT ───────────────────────────────────────── */
.callout-block {
  background: var(--dark-bg-card);
  border-left: 3px solid var(--accent);
  padding: 28px 36px;
  margin: 64px 0;
  border-radius: 0 4px 4px 0;
}
.callout-block blockquote {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  font-style: normal;
}
.callout-block cite {
  display: block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--dark-text-muted);
  letter-spacing: 0.04em;
}

/* ── WHY LIST ──────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-item {
  padding: 32px;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}
.why-item:hover { border-color: var(--dark-border-hover); }
.why-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.why-item h4::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.why-item p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--dark-text-dim);
}

/* ── CONTACT SECTION ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dark-text);
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark-text-dim);
  margin-bottom: 36px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  min-width: 60px;
}
.contact-detail a {
  font-size: 0.95rem;
  color: var(--dark-text-dim);
  transition: color 0.2s ease;
}
.contact-detail a:hover { color: var(--accent-light); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--dark-bg-card);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--dark-text);
  font-family: var(--font);
  transition: border-color 0.2s ease;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field select option { background: var(--dark-bg-card); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}
.form-submit:hover { background: #1d4ed8; transform: translateY(-1px); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: #eef1f5;
  border-top: 1px solid var(--dark-border);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;   /* gutter inside — same container mechanics as .hero-inner */
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-border);
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #1a2236;
  max-width: 260px;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: #1a2236;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal {
  font-size: 0.78rem;
  color: #1a2236;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { opacity: 1; transform: translateY(-2px); }
.footer-social img { width: 26px; height: 26px; display: block; }

/* ── DISCLAIMER ────────────────────────────────────────────── */
.section-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--dark-text-muted);
  border-left: 3px solid var(--dark-border-hover);
  padding: 10px 16px;
  margin-bottom: 32px;
  font-style: italic;
}

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── HERO CAROUSEL ─────────────────────────────────────────── */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 340px;             /* portrait frame — fills the right half */
  height: 470px;                /* explicit height — cannot collapse */
  margin: 0 auto;               /* center within the right column */
  background: transparent;      /* no grey backdrop — blends into the white hero */
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* show the whole implant, never cropped */
}
.hero-dots {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(13, 34, 63, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── MOBILE NAV ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .header-inner { padding: 0 24px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--light-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links > .nav-item > a,
  .nav-links > a { padding: 10px 0; font-size: 1rem; width: 100%; }
  .nav-cta { padding: 8px 16px; font-size: 0.8rem; }
  .nav-item > a::after { display: none; }
  .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--light-border);
    border-radius: 0;
    padding: 4px 0 4px 16px;
    min-width: unset;
    background: transparent;
    margin-bottom: 4px;
  }
  .nav-dropdown a { padding: 7px 0; font-size: 0.875rem; border-radius: 0; }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 24px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Stack the heroes from tablet down. Below ~1200px the two-column hero could
     not fit its headline + image side by side, so the image was sliced off by
     the viewport edge and the page scrolled sideways (13" laptop / iPad landscape).
     Stacking keeps the image visible instead of hiding it. */
  .hero-light .hero-inner,
  .hero-dark .hero-inner { grid-template-columns: 1fr; }
  .hero-dark .hero-inner > .hero-visual { grid-column: 1; grid-row: auto; }
  .hero-visual { margin: 24px auto 0; }
  /* The desktop rule slides the image 40px left so the headline tucks behind it.
     Once stacked, that just knocks the image 40px off-centre. */
  .hero-light .hero-visual { transform: none; }
}
@media (max-width: 768px) {
  :root { --section-pad: 20px; }
  .section-inner { padding: 0 24px; }   /* gutter inside — matches .hero-inner's 24px below */
  .hero-light .hero-inner, .hero-dark .hero-inner { padding: 32px 24px; }
  /* Collapse BOTH hero variants to a single column on mobile.
     Previously only .hero-light collapsed, so the 5 inner pages that use
     .hero-dark kept a 5fr/6fr grid at 390px and wrapped the H1 one word per line. */
  .hero-light .hero-inner,
  .hero-dark .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  /* #capabilities (Company page) pins a hard 2-up and outranks the line above
     on specificity, so its cards stayed side by side at 390px and the second one
     ran off the right edge. Collapse it too. */
  #capabilities .pillar-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .content-split { grid-template-columns: 1fr; gap: 40px; }
  .content-split.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; padding: 0 24px; }
  footer { padding: 48px 0 24px; }
  .footer-inner { padding: 0 24px; }
}
@media (max-width: 900px) { .nav-links.open { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 48px; } }
@media (max-width: 900px) { .nav-links.open { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 48px; } }

/* ── Custom Device disclaimer (FDA 520(b)) — fine print ── */
/* `.contact-info p.device-disclaimer` (0,2,1) genuinely outranks `.contact-info p`
   (0,1,1) regardless of source order. The bare p.device-disclaimer (0,1,1) only
   TIED with it and won on source order — moving this block earlier in the file
   would have silently bumped the home contact disclaimer back to ~16px. */
.contact-info p.device-disclaimer,
p.device-disclaimer,
.device-disclaimer {
  font-size: 8pt;   /* raised from 6pt per Travis, 13JUL (5e) */
  line-height: 1.5;
  color: #6b7280;
  max-width: 680px;
  margin: 18px 0 0;
}
/* --dark-bg is #ffffff, so the "on-dark" heroes are actually white.
   The old #9aa0aa gave ~2.4:1 contrast at 6pt — unreadable. Match the base grey. */
.device-disclaimer.on-dark { color: #6b7280; }

/* Company "About" globe — show the whole image, not cropped (Edit 22) */
.hero-dark .hero-visual img.img-contain { object-fit: contain; }

/* Enlarged hero image, used on the Company page (Travis 13JUL, Point 1).
   The base .hero-visual is a 340x470 portrait frame, which letterboxed the
   1800x1388 globe down to ~340x262. Widening the frame and matching the
   image's own aspect ratio scales it up ~65% without touching the left column,
   since the hero grid columns (5fr/6fr) are unchanged. */
.hero-dark .hero-visual.hero-visual-lg {
  max-width: 560px;
  height: auto;
  aspect-ratio: 1800 / 1388;
}
