/* ============================================================
   JB Precision Metrology LLC — stylesheet (2026 redesign)
   Palette: deep charcoal · steel blue · crisp white
   No external fonts/CDNs so it runs fully offline on a LAN.
   ------------------------------------------------------------
   Contracts other files depend on — do not rename:
     --header-h            (scroll-padding + mobile menu offset)
     960px nav breakpoint  (NAV_BREAKPOINT in script.js)
     .reveal/.is-visible   (scroll animation, script.js)
     16px form controls    (iOS zoom guard)
   ============================================================ */

:root {
  /* color */
  --charcoal:      #0d1219;
  --charcoal-2:    #121a24;
  --charcoal-3:    #1a2430;
  --ink:           #0e1420;
  --ink-soft:      #49586a;
  --paper:         #ffffff;
  --mist:          #f2f5f9;
  --mist-2:        #e5ebf2;

  --steel:         #3f6f9f;   /* primary — 5.3:1 on white, keep for solid buttons */
  --steel-deep:    #2d5178;
  --steel-bright:  #5fa4e2;   /* accent on dark */
  --steel-tint:    rgba(63, 111, 159, 0.10);

  --ok:            #58c98a;
  --err:           #b83227;
  --good:          #1f8a4c;

  --line-dark:     rgba(255, 255, 255, 0.09);
  --line-light:    rgba(14, 20, 32, 0.10);

  /* shape & depth */
  --radius:        18px;
  --radius-sm:     10px;
  --shadow-xs:     0 1px 2px rgba(14, 20, 32, 0.05);
  --shadow:        0 1px 2px rgba(14, 20, 32, 0.05), 0 24px 48px -24px rgba(14, 20, 32, 0.35);
  --shadow-deep:   0 32px 64px -28px rgba(5, 10, 18, 0.75);

  /* layout */
  --maxw:          1180px;
  --gutter:        clamp(1.1rem, 4vw, 2.5rem);
  --header-h:      72px;

  /* type */
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SF Mono", "Roboto Mono", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;                                    /* guard against stray wide children */
  scroll-padding-top: calc(var(--header-h) + 1rem);    /* anchors clear the sticky header */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;                                /* 17px body — comfortable reading */
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }   /* beats the display set by layout rules */

/* one visible keyboard focus ring that reads on both the light and dark sections */
:focus-visible {
  outline: 2px solid var(--steel-bright);
  outline-offset: 3px;
  border-radius: 3px;
}
.hero :focus-visible, .approach :focus-visible,
.track-alt :focus-visible, .card-feature :focus-visible,
.gdt-panel-alt :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--steel); color: #fff; padding: .65rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  padding: .92rem 1.55rem; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease,
              box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--steel); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 28px -12px rgba(63,111,159,.85);
}
.btn-primary:hover {
  background: var(--steel-deep); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 34px -14px rgba(45,81,120,.9);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-light); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel-deep); transform: translateY(-2px); }
.btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(170%) blur(16px);   /* iOS Safari */
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line-light);
}
/* no blur support (older Android/Firefox): fall back to a solid bar so text stays legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255,255,255,0.97); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); }
.brand-mark { color: var(--steel); flex: none; transition: transform .3s ease; }
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; white-space: nowrap; }
.brand-sub { font-family: var(--mono); font-size: .64rem; letter-spacing: .26em; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: clamp(.4rem, 1.2vw, .9rem); }
.nav-menu a {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  padding: .5rem .75rem; border-radius: 999px;
  transition: color .16s ease, background .16s ease;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--ink); background: rgba(14,20,32,.05); }
.nav-cta {
  color: var(--steel-deep) !important; font-weight: 600 !important;
  border: 1px solid var(--steel); border-radius: 999px; padding: .55rem 1.1rem !important;
  transition: background .16s ease, color .16s ease !important;
}
.nav-cta:hover { background: var(--steel); color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; margin-right: -10px;   /* 44px = comfortable thumb target */
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
/* hamburger morphs into an X while the menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: #eef3f8; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 35%, transparent 100%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 85% 8%, rgba(95,164,226,0.20), transparent 60%),
    radial-gradient(ellipse 40% 45% at 8% 95%, rgba(63,111,159,0.14), transparent 65%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel-bright); margin-bottom: 1.5rem;
}
.tick { width: 28px; height: 1px; background: var(--steel-bright); display: inline-block; position: relative; }
.tick::before, .tick::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--steel-bright); }
.tick::before { left: 0; } .tick::after { right: 0; }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); margin-bottom: 1.4rem; }
.hero h1 .accent {
  color: var(--steel-bright);
  background: linear-gradient(100deg, #7db8ec, #4a8ecf);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.7; color: #b6c4d3; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.3rem; }
.hero .btn-ghost { color: #dce6ef; border-color: var(--line-dark); background: rgba(255,255,255,.03); }
.hero .btn-ghost:hover { border-color: var(--steel-bright); color: #fff; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem .6rem; margin-top: 2.6rem; }
.hero-badges li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: #9fb1c2;
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.03);
  border-radius: 999px; padding: .38rem .85rem;
}

/* hero visual — data flow panel */
.hero-visual { display: flex; justify-content: center; }
.panel-flow {
  width: 100%; max-width: 350px;
  background: linear-gradient(180deg, rgba(26,36,48,.92), rgba(13,18,25,.94));
  border: 1px solid var(--line-dark); border-radius: 20px;
  padding: 1.5rem; box-shadow: var(--shadow-deep);
  display: flex; flex-direction: column; gap: 0;
}
.flow-node {
  border: 1px solid var(--line-dark); border-radius: 12px; padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.025);
}
.node-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; color: var(--steel-bright); }
.node-title { display: block; font-weight: 600; font-size: 1rem; margin-top: .3rem; color: #eaf1f7; }
.node-readout {
  display: flex; justify-content: space-between; margin-top: .65rem;
  font-family: var(--mono); font-size: .78rem; color: #a9bbca;
}
.node-readout .ok { color: var(--ok); }
.flow-wire { height: 30px; margin-left: 24px; width: 2px; background: var(--line-dark); position: relative; }
.pulse {
  position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--steel-bright); box-shadow: 0 0 12px 2px rgba(95,164,226,.7);
  animation: flow 2.6s ease-in-out infinite;
}
.pulse-2 { animation-delay: 1.3s; }
@keyframes flow { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 28px; opacity: 0; } }

/* ============================================================
   VALUE STRIP
   ============================================================ */
.strip { background: var(--charcoal-2); color: #dce6ef; border-top: 1px solid var(--line-dark); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.strip-item { padding: 1.8rem clamp(1rem, 3vw, 2rem); display: flex; gap: 1.1rem; align-items: flex-start; }
.strip-item + .strip-item { border-left: 1px solid var(--line-dark); }
.strip-num {
  font-family: var(--mono); color: var(--steel-bright); font-size: .78rem; letter-spacing: .08em;
  border: 1px solid rgba(95,164,226,.35); border-radius: 8px;
  padding: .3rem .55rem; flex: none; line-height: 1;
}
.strip-item p { font-size: .99rem; color: #c2cfdc; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding-block: clamp(4.25rem, 9vw, 7rem); }
.section-head { max-width: 660px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-label {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--steel); background: var(--steel-tint);
  border: 1px solid rgba(63,111,159,.22); border-radius: 999px;
  padding: .4rem .95rem; margin-bottom: 1.2rem;
}
.section h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1.1rem; }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.7; }

/* dark sections restyle the label chip */
.approach .section-label {
  color: var(--steel-bright); background: rgba(95,164,226,.09);
  border-color: rgba(95,164,226,.28);
}

/* ---------- two tracks ---------- */
.tracks { background: var(--paper); }
.track-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
.track {
  border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--paper); box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.track:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(63,111,159,.45); }
.track-alt { background: linear-gradient(165deg, var(--charcoal-3), var(--charcoal)); color: #e7eef5; border-color: var(--charcoal-3); }
.track-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: .9rem; }
.track-alt .track-kicker { color: var(--steel-bright); }
.track h3 { font-size: 1.55rem; margin-bottom: .55rem; }
.track-desc { color: var(--ink-soft); margin-bottom: 1.5rem; }
.track-alt .track-desc { color: #a9bbca; }
.track-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.7rem; }
.track-list li { position: relative; padding-left: 1.55rem; font-size: .99rem; }
.track-list li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 8px; height: 8px;
  border: 1.5px solid var(--steel); border-radius: 2px; transform: rotate(45deg);
}
.track-alt .track-list li::before { border-color: var(--steel-bright); }
.track-link { font-weight: 600; color: var(--steel-deep); display: inline-flex; gap: .45rem; align-items: center; }
.track-alt .track-link { color: var(--steel-bright); }
.track-link span { transition: transform .18s ease; }
.track-link:hover span { transform: translateX(4px); }

.track-bridge { position: relative; display: flex; align-items: center; justify-content: center; min-width: 64px; }
.track-bridge::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: repeating-linear-gradient(var(--steel) 0 6px, transparent 6px 12px); opacity: .55; }
.bridge-label {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel); background: var(--paper); padding: .6rem 0; z-index: 1;
}

/* ---------- capability cards ---------- */
.detail { background: var(--mist); }
/* 3 → 2 → 1 columns on its own, so tablets get a sensible middle state */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.2rem) clamp(1.5rem, 2.5vw, 1.9rem);
  position: relative; box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(63,111,159,.4); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--steel-tint); border: 1px solid rgba(63,111,159,.18);
  border-radius: 14px; color: var(--steel); margin-bottom: 1.3rem;
}
.card-num { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; position: absolute; top: 1.5rem; right: 1.6rem; color: #a9b7c6; }
.card h3 { font-size: 1.28rem; margin-bottom: .75rem; }
.card > p { color: var(--ink-soft); font-size: .99rem; margin-bottom: 1.35rem; }
.card-list { display: flex; flex-direction: column; gap: .55rem; border-top: 1px solid var(--line-light); padding-top: 1.25rem; }
.card-list li { font-family: var(--mono); font-size: .8rem; letter-spacing: .01em; color: var(--ink); padding-left: 1.1rem; position: relative; }
.card-list li::before { content: "›"; position: absolute; left: 0; color: var(--steel); }
.card-feature { background: linear-gradient(165deg, var(--charcoal-3), var(--charcoal)); color: #e7eef5; border-color: var(--charcoal-3); }
.card-feature .card-icon { background: rgba(95,164,226,.10); border-color: rgba(95,164,226,.25); color: var(--steel-bright); }
.card-feature h3 { color: #fff; }
.card-feature > p { color: #a9bbca; }
.card-feature .card-num { color: rgba(255,255,255,.45); }
.card-feature .card-list { border-color: var(--line-dark); }
.card-feature .card-list li { color: #d5e0ea; }
.card-feature .card-list li::before { color: var(--steel-bright); }

/* ---------- GD&T ---------- */
.gdt { background: var(--paper); }
/* stretch (the default) keeps both panels equal height as the copy is edited */
.gdt-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.gdt-panel {
  border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--paper); box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gdt-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(63,111,159,.45); }
.gdt-panel-alt { background: linear-gradient(165deg, var(--charcoal-3), var(--charcoal)); color: #e7eef5; border-color: var(--charcoal-3); }
.gdt-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: .9rem; }
.gdt-panel-alt .gdt-kicker { color: var(--steel-bright); }
.gdt-panel h3 { font-size: 1.4rem; margin-bottom: .65rem; }
.gdt-panel-alt h3 { color: #fff; }
.gdt-panel > p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.gdt-panel-alt > p { color: #a9bbca; }
.gdt-list { display: flex; flex-direction: column; gap: .75rem; border-top: 1px solid var(--line-light); padding-top: 1.35rem; }
.gdt-panel-alt .gdt-list { border-color: var(--line-dark); }
.gdt-list li { position: relative; padding-left: 1.55rem; font-size: .97rem; }
.gdt-list li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 8px; height: 8px;
  border: 1.5px solid var(--steel); border-radius: 2px; transform: rotate(45deg);
}
.gdt-panel-alt .gdt-list li::before { border-color: var(--steel-bright); }
.gdt-panel .track-link { margin-top: 1.5rem; }
.gdt-panel-alt .track-link { color: var(--steel-bright); }

/* ---------- approach / bridge diagram ---------- */
.approach { background: var(--charcoal); color: #e7eef5; position: relative; overflow: hidden; }
.approach::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 92% 10%, rgba(95,164,226,.12), transparent 60%);
}
.approach-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.approach h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.25rem; }
.approach-copy p { color: #b3c1cf; margin-bottom: 1rem; max-width: 48ch; line-height: 1.7; }
.approach-copy .btn { margin-top: 1.1rem; }

.bridge-diagram { display: flex; flex-direction: column; gap: 0; }
.bd-node {
  border: 1px solid var(--line-dark); border-left: 3px solid var(--steel-bright); border-radius: 12px;
  background: rgba(255,255,255,0.035); padding: 1.25rem 1.4rem;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.05rem; align-items: center;
}
.bd-node-center { border-left-color: var(--steel); background: rgba(95,164,226,0.08); }
.bd-index {
  grid-row: span 2; font-family: var(--mono); font-weight: 700; font-size: 1.1rem;
  color: var(--charcoal); background: var(--steel-bright); width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 9px;
}
.bd-title { font-weight: 600; font-size: 1.06rem; }
.bd-desc { font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: #93a6b6; grid-column: 2; }
.bd-link { width: 2px; height: 26px; margin-left: 18px; background: repeating-linear-gradient(var(--steel-bright) 0 4px, transparent 4px 9px); opacity: .7; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--mist); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.1rem; }
.contact-copy > p { color: var(--ink-soft); margin-bottom: 1.9rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 1.05rem; }
.contact-details li { display: flex; flex-direction: column; gap: .18rem; border-top: 1px solid rgba(14,20,32,.12); padding-top: 1.05rem; }
.cd-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.cd-value { font-weight: 600; color: var(--ink); }
a.cd-value { color: var(--steel-deep); }
a.cd-value:hover { text-decoration: underline; }

/* Google review CTA */
.review-cta {
  margin-top: 1.9rem; padding: 1.4rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-light); box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap;
}
.review-copy { flex: 1 1 12rem; }
.review-eyebrow { font-weight: 700; font-size: 1.04rem; margin-bottom: .25rem; }
.review-lead { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1rem; }
.review-copy .btn { font-size: .92rem; padding: .72rem 1.15rem; }
.review-qr { margin: 0; text-align: center; flex: none; }
.review-qr img {
  width: 120px; height: 120px; display: block;
  /* the QR shipped with no quiet zone — this white padding supplies the scan margin */
  background: #fff; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  image-rendering: pixelated;   /* keep modules crisp, never blurred, when scaled */
}
.review-qr figcaption {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: .5rem;
}

.contact-form {
  background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 16px;              /* must stay >= 16px — iOS Safari zooms the page on smaller fields */
  line-height: 1.4; color: var(--ink); width: 100%; min-width: 0;
  padding: .78rem .9rem; border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  background: #f7f9fc; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
/* match the native select to the text inputs on Windows/Chrome */
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 2.2rem; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  /* graceful, not clipped */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2349586a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 12px 8px;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel); background: #fff;
  box-shadow: 0 0 0 4px rgba(63,111,159,.14);
}
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--err); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-actions .btn { flex: none; }
.form-note { font-size: .84rem; color: var(--ink-soft); flex: 1 1 14rem; }
.form-note.error { color: var(--err); }
.form-note.success { color: var(--good); }

/* copy/paste fallback for visitors with no mail client */
.form-fallback {
  grid-column: 1 / -1; border-top: 1px solid var(--line-light);
  padding-top: 1.35rem; display: flex; flex-direction: column; gap: .55rem;
}
.ff-lead { font-weight: 600; }
.ff-sub { font-size: .92rem; color: var(--ink-soft); }
.ff-sub a { color: var(--steel-deep); font-weight: 600; }
.ff-sub a:hover { text-decoration: underline; }
.ff-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: .3rem; }
#ff-text {
  font-family: var(--mono);
  font-size: 16px;              /* keep >= 16px: selecting it focuses the field on iOS */
  line-height: 1.5; color: var(--ink); width: 100%; resize: vertical;
  padding: .78rem .9rem; border: 1px solid var(--line-light);
  border-radius: var(--radius-sm); background: var(--mist);
}
#ff-text:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(63,111,159,.14); }
.ff-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: .3rem; }
.ff-status { font-size: .84rem; color: var(--good); }
.ff-status.warn { color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal); color: #aebccb; padding-block: 3rem; border-top: 1px solid var(--line-dark); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.footer-brand .brand-name { color: #fff; font-size: 1.08rem; }
.footer-brand p { margin-top: .45rem; font-size: .92rem; max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; justify-self: end; }
.footer-nav a { font-size: .92rem; transition: color .16s ease; padding-block: .5rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 1.5rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: #7d8ea0; }

/* ============================================================
   SCROLL REVEAL  (classes applied by script.js; content is
   always visible if JS is off, blocked, or printing)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ------------------------------------------------------------
   960 — nav collapses (script.js NAV_BREAKPOINT must match)
   900 — two-column sections stack
   820 — value strip stacks
   720 — contact form + footer stack
   420 — small-phone trims
   ============================================================ */
@media (max-width: 960px) {
  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line-light);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 0; overflow: hidden; visibility: hidden;
    box-shadow: var(--shadow);
    transition: max-height .28s ease, visibility 0s linear .28s;
  }
  /* generous cap + scroll so the menu can never clip its own links */
  .nav-menu.open {
    max-height: min(70vh, 460px); overflow-y: auto; visibility: visible;
    transition: max-height .28s ease, visibility 0s;
  }
  .nav-menu li { border-top: 1px solid var(--line-light); }
  .nav-menu a { display: block; padding: 1rem var(--gutter); white-space: normal; border-radius: 0; }
  .nav-cta { margin: .8rem var(--gutter); text-align: center; border-radius: 12px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* keep the headline first — the flow panel is decoration, not the pitch */
  .hero-visual { justify-content: flex-start; }
  .panel-flow { max-width: 390px; }
  .approach-inner, .contact-inner { grid-template-columns: 1fr; }
  .track-split, .gdt-split { grid-template-columns: 1fr; }
  .track-bridge { min-height: 44px; min-width: 0; }
  .track-bridge::before { inset: 50% 0 auto; width: auto; height: 1px; background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 12px); }
  .bridge-label { writing-mode: horizontal-tb; padding: 0 .6rem; }
  .lede { max-width: 54ch; }
  .approach-copy p { max-width: none; }
}

@media (max-width: 820px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { padding-block: 1.2rem; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line-dark); }
}

@media (max-width: 720px) {
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }
}

@media (max-width: 420px) {
  .brand-name { font-size: .95rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .card { padding: 1.6rem 1.3rem; }
  .track { padding: 1.6rem 1.3rem; }
  .gdt-panel { padding: 1.6rem 1.3rem; }
  .card-num { top: 1.1rem; right: 1.2rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .nav, .hero-visual, .grid-bg, .contact-form, .skip-link, .review-cta { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; background: #fff; }
  .hero, .strip, .approach, .track-alt, .card-feature, .gdt-panel-alt, .site-footer {
    background: #fff !important; color: #000 !important;
  }
  .hero h1 .accent { -webkit-text-fill-color: initial; background: none; color: #000; }
  .section { padding-block: 1.2rem; page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
