/* ==========================================================================
   VNE Commercial — universal stylesheet
   Palette: navy · signal red · white
   Sections: 1 Tokens · 2 Reset · 3 Typography · 4 Layout · 5 Motion
             6 Buttons · 7 Header/Nav · 8 Hero · 9 Parallax
             10 Components · 11 Forms · 12 Footer · 13 Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Blue — structure */
  --navy-900: #06121f;
  --navy:     #0c2340;
  --navy-700: #16375e;
  --navy-500: #2c5688;
  --navy-100: #e4ecf6;

  /* Red — action, and only action */
  --red:      #d91f2d;
  --red-dark: #b0151f;
  --red-100:  #fdeaec;

  /* Neutrals */
  --white:    #ffffff;
  --mist:     #f4f7fb;   /* blue-tinted page surface */
  --line:     #dce4ee;
  --body:     #4e5d70;
  --body-dark:#a9bcd2;

  --success:  #1f7a4d;
  --danger:   #c0392b;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.25rem;
  --fs-lg:   1.75rem;
  --fs-xl:   2.75rem;
  --fs-2xl:  3.75rem;
  --fs-3xl:  5.5rem;

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Structure */
  --container: 1240px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(12,35,64,.06), 0 4px 12px rgba(12,35,64,.05);
  --shadow:    0 2px 6px rgba(12,35,64,.07), 0 14px 34px rgba(12,35,64,.08);
  --shadow-lg: 0 4px 10px rgba(12,35,64,.09), 0 26px 60px rgba(12,35,64,.16);
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(.22,.68,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .55s;
}

/* 2. RESET ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--body);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Component display rules (.card is a flex container) would otherwise beat the
   UA rule for [hidden], so the product filter could not hide a card. */
[hidden] { display: none !important; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: var(--white);
  padding: var(--sp-3) var(--sp-5); font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. TYPOGRAPHY ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 var(--sp-4);
  line-height: 1.02;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .005em;
}
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); letter-spacing: .02em; }

p { margin: 0 0 var(--sp-4); max-width: 68ch; }
.lead { font-size: var(--fs-md); line-height: 1.55; color: var(--navy-700); }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark, .on-dark p { color: var(--body-dark); }
.on-dark .lead { color: #d3e0ee; }

.section-head { margin-bottom: var(--sp-7); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head h2::after {
  content: ""; display: block; width: 72px; height: 4px;
  background: var(--red); border-radius: 2px; margin-top: var(--sp-4);
}
.section-head p { margin-bottom: 0; }
.section-head.center { text-align: center; }
.section-head.center h2::after { margin-inline: auto; }
.section-head.center p { margin-inline: auto; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container-narrow { max-width: 840px; }

.section { padding-block: var(--sp-10); }
.section-tight { padding-block: var(--sp-8); }
.section-white { background: var(--white); }
.section-mist  { background: var(--mist); }
.section-navy  { background: var(--navy); }
.section-deep  { background: var(--navy-900); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.flex { display: flex; gap: var(--sp-4); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.flex-wrap { flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }

.stack > * + * { margin-top: var(--sp-5); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* 5. MOTION ---------------------------------------------------------------- */

/* Scroll progress rail, injected by main.js */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--navy-500));
  z-index: 200; pointer-events: none;
}

/* Reveal-on-scroll. Elements start hidden ONLY once JS has confirmed it is
   running, so the page is fully readable with JS disabled. */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js [data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.965); }

.js [data-reveal] {
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Hero entrance — one orchestrated sequence on load */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 34px, 0); }
  to   { opacity: 1; transform: none; }
}
.js .hero-inner > * { animation: rise .8s var(--ease-out) both; }
.js .hero-inner > *:nth-child(1) { animation-delay: .10s; }
.js .hero-inner > *:nth-child(2) { animation-delay: .20s; }
.js .hero-inner > *:nth-child(3) { animation-delay: .32s; }
.js .hero-inner > *:nth-child(4) { animation-delay: .44s; }


/* Counter digits settle rather than pop */
.counting { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero-inner > * { animation: none !important; opacity: 1; transform: none; }
  .scroll-progress { display: none; }
  .parallax-layer { transform: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 6. BUTTONS --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  letter-spacing: .045em; text-transform: uppercase;
  padding: .9rem 1.75rem;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; overflow: hidden;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0 4px 14px rgba(217,31,45,.28); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 10px 26px rgba(217,31,45,.34); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.on-dark .btn-secondary, .btn-secondary-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.on-dark .btn-secondary:hover, .btn-secondary-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .58rem 1.1rem; font-size: .9375rem; }

.link-inline {
  color: var(--navy); font-weight: 600;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease), color .22s var(--ease);
}
.link-inline:hover { color: var(--red); background-size: 100% 2px; }

/* 7. HEADER / NAV ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow); background: rgba(255,255,255,.96); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--sp-4); }

.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand-mark {
  width: 50px; height: 50px; flex: none;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: .04em; border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease);
}
.brand-mark::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--red); }
.brand:hover .brand-mark { transform: translateY(-2px); }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--navy); text-transform: uppercase; line-height: 1; letter-spacing: .02em; }
.brand-tag { display: block; white-space: nowrap; font-family: var(--font-body); font-size: .6875rem; font-weight: 500; color: var(--body); text-transform: none; margin-top: 3px; }

.nav-list { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: nowrap; }
.nav-contact { display: none; }
/* :not(.btn) keeps these off the CTA — a bare `.nav-list a` selector outranks
   `.btn-primary` and was repainting the button's white text navy. */
.nav-list a:not(.btn) {
  position: relative;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .045em;
  color: var(--navy-700); padding: var(--sp-2) 0; white-space: nowrap;
  transition: color .22s var(--ease);
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .3s var(--ease);
}
.nav-list a:not(.btn):hover { color: var(--navy); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-list a:not(.btn)[aria-current="page"] { color: var(--navy); }
.nav-list a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--sp-2); flex: none; }

/* Dropdown --------------------------------------------------------------- */
/* The Products link and the disclosure button are separate controls: the link
   navigates, the button opens the menu. That keeps Products reachable in one
   click and gives the menu a proper toggle for keyboard and touch. */
.has-dropdown { position: relative; display: flex; align-items: center; gap: 2px; }

.dropdown-toggle {
  display: grid; place-items: center; flex: none;
  background: none; border: 0; padding: 3px; cursor: pointer;
  color: var(--navy-700); border-radius: 3px;
}
.dropdown-toggle svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-dropdown.is-current > a { color: var(--navy); }
.has-dropdown.is-current > a::after { transform: scaleX(1); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 268px; padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 120;
}
/* Bridges the gap between trigger and panel so a diagonal mouse move
   towards the menu doesn't close it. */
.dropdown::before { content: ""; position: absolute; inset: -16px 0 100% 0; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }

/* Escape returns focus to the toggle, which :focus-within would read as
   "still open". This state wins until the pointer or focus actually leaves. */
.has-dropdown.is-dismissed .dropdown,
.has-dropdown.is-dismissed:hover .dropdown,
.has-dropdown.is-dismissed:focus-within .dropdown {
  opacity: 0; visibility: hidden; transform: translateY(-8px);
}

/* Scoped through .nav-list so these beat `.nav-list a:not(.btn)`, which would
   otherwise impose the uppercase display face on every menu item. */
.nav-list .dropdown a {
  display: block; padding: .55rem .75rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500;
  text-transform: none; letter-spacing: 0; color: var(--navy-700);
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
/* Full fill rather than a red edge, matching the cards. */
.nav-list .dropdown a:hover,
.nav-list .dropdown a:focus-visible { background: var(--red); color: var(--white); }
.nav-list .dropdown a[aria-current="page"] { color: var(--red); background: var(--red-100); }
.nav-list .dropdown a[aria-current="page"]:hover { background: var(--red); color: var(--white); }

.dropdown-all { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.nav-list .dropdown-all a { font-weight: 600; color: var(--navy); }

.nav-toggle { display: none; position: relative; z-index: 2; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* 8. HERO ------------------------------------------------------------------ */
.hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -12% 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 12% 30%, rgba(217,31,45,.16) 0%, rgba(217,31,45,0) 55%),
    linear-gradient(100deg, rgba(6,18,31,.97) 0%, rgba(6,18,31,.93) 48%, rgba(12,35,64,.6) 100%);
}
.hero-inner { padding-block: clamp(5rem, 13vw, 9.5rem); max-width: 760px; position: relative; }
.hero h1 { font-size: clamp(3rem, 8.5vw, var(--fs-3xl)); color: var(--white); line-height: .93; margin-bottom: var(--sp-5); }
.hero p { color: #cfdcea; font-size: var(--fs-md); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }

/* Interior page banner */
.page-banner { position: relative; background: var(--navy); color: var(--white); padding-block: var(--sp-9); overflow: hidden; isolation: isolate; }
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 140% at 88% 10%, rgba(217,31,45,.22) 0%, rgba(217,31,45,0) 60%);
}
.page-banner h1 { color: var(--white); margin-bottom: var(--sp-3); font-size: clamp(2.4rem, 6.5vw, var(--fs-xl)); }
.page-banner p { color: var(--body-dark); margin-bottom: 0; }

.breadcrumb { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--body-dark); margin-bottom: var(--sp-4); }
.breadcrumb a { transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: #5d7b9e; }

/* 9. PARALLAX -------------------------------------------------------------- */
.parallax {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900); color: var(--white);
  padding-block: var(--sp-10);
}
.parallax-layer { position: absolute; inset: -20% 0; z-index: -2; will-change: transform; }
.parallax-layer img { width: 100%; height: 100%; object-fit: cover; }
.parallax::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,18,31,.92), rgba(6,18,31,.82));
}

/* 10. COMPONENTS ----------------------------------------------------------- */

/* Stat bar */
.statbar { background: var(--navy); color: var(--white); position: relative; }
.statbar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.statbar .grid { gap: 0; }
.stat { padding: var(--sp-8) var(--sp-6); border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }

/* Figure and unit sit on one baseline, with the figure carrying the weight. */
.stat-figure {
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 700;
  color: var(--white); line-height: .9; margin-bottom: var(--sp-3);
}
.stat-figure .num { font-size: clamp(3.75rem, 6vw, 5.25rem); letter-spacing: -.01em; }
.stat-figure .unit { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; color: var(--red); text-transform: uppercase; }
.stat-label { display: block; font-size: var(--fs-sm); color: var(--body-dark); max-width: 34ch; }

/* Cards */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), background-color .35s var(--ease);
}
.card h3 { font-size: 1.45rem; margin-bottom: var(--sp-3); }
.card p { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.card h3, .card h4, .card p { transition: color .35s var(--ease); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Hover fills the whole card red and inverts the content to white.
   :focus-within mirrors it so keyboard users get the same state when they
   tab onto a link inside the card. White on #d91f2d is 5.03:1 — AA at any
   size. */
.card:hover, .card:focus-within {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(217,31,45,.18), 0 22px 50px rgba(217,31,45,.3);
}
.card:hover h3, .card:hover h4, .card:hover p,
.card:focus-within h3, .card:focus-within h4, .card:focus-within p { color: var(--white); }

/* Spec rows on a product card need their rules and labels lifted too. */
.card:hover .spec-list, .card:focus-within .spec-list,
.card:hover .spec-list div, .card:focus-within .spec-list div { border-color: rgba(255,255,255,.3); }
.card:hover .spec-list dt, .card:focus-within .spec-list dt { color: rgba(255,255,255,.82); }
.card:hover .spec-list dd, .card:focus-within .spec-list dd { color: var(--white); }

/* Buttons invert: a red primary button would vanish into a red card. */
.card:hover .btn-secondary, .card:focus-within .btn-secondary {
  color: var(--white); border-color: rgba(255,255,255,.65); background: transparent;
}
.card:hover .btn-secondary:hover, .card:focus-within .btn-secondary:hover {
  background: var(--white); color: var(--red); border-color: var(--white);
}
.card:hover .btn-primary, .card:focus-within .btn-primary {
  background: var(--white); color: var(--red); border-color: var(--white); box-shadow: none;
}
.card:hover .btn-primary:hover, .card:focus-within .btn-primary:hover {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

.card-icon {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  background: var(--navy-100); display: grid; place-items: center;
  margin-bottom: var(--sp-5);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.card-icon svg { width: 30px; height: 30px; color: var(--navy); transition: color .35s var(--ease); }
.card:hover .card-icon, .card:focus-within .card-icon {
  background: var(--white); transform: rotate(-4deg) scale(1.05);
}
.card:hover .card-icon svg, .card:focus-within .card-icon svg { color: var(--red); }

/* Product card */
.product-card { padding: 0; overflow: hidden; }
.product-card .product-thumb { aspect-ratio: 4 / 3; background: var(--navy); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.product-card:hover .product-thumb img,
.product-card:focus-within .product-thumb img { transform: scale(1.06); }
.product-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.35rem; margin-bottom: var(--sp-2); }

.spec-list { border-top: 1px solid var(--line); margin: var(--sp-4) 0; font-size: var(--fs-xs); }
.spec-list div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--body); margin: 0; }
.spec-list dd { margin: 0; color: var(--navy); font-weight: 600; text-align: right; }

/* Two actions on a product card sit side by side, wrapping when cramped. */
.card-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: auto; }
.card-actions .btn { margin-top: 0; }

/* Brand plates */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.brand-plate {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-3); text-align: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--navy);
  overflow-wrap: anywhere;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.brand-plate:hover { background: var(--navy); color: var(--white); transform: translateY(-5px); box-shadow: var(--shadow); }
.brand-plate small { display: block; font-family: var(--font-body); font-size: .6875rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--body); margin-top: 5px; transition: color .3s var(--ease); }
.brand-plate:hover small { color: var(--body-dark); }

/* People */
.person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); margin-bottom: var(--sp-4);
  background: var(--navy);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.person:hover img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.person h3 { font-size: 1.4rem; margin-bottom: var(--sp-1); }
.person .role { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--red); font-weight: 600; margin-bottom: var(--sp-3); }
.person p { font-size: var(--fs-sm); }

/* Value list */
.value-list li {
  border-top: 1px solid var(--line);
  padding: var(--sp-5) 0;
  display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-4); align-items: start;
}
.value-list li:last-child { border-bottom: 1px solid var(--line); }
.value-list svg { width: 30px; height: 30px; color: var(--red); }
.value-list h3 { font-size: 1.35rem; margin-bottom: var(--sp-2); }
.value-list p { margin-bottom: 0; font-size: var(--fs-sm); }
.on-dark .value-list li { border-color: rgba(255,255,255,.14); }

/* Timeline */
.timeline { border-left: 2px solid var(--line); padding-left: var(--sp-6); }
.timeline li { position: relative; padding-bottom: var(--sp-6); }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) - 8px); top: 8px;
  width: 14px; height: 14px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--red-100);
}
.timeline .year { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); display: block; line-height: 1; margin-bottom: var(--sp-2); }
.timeline p { margin-bottom: 0; font-size: var(--fs-sm); }

/* CTA band */
.cta-band { position: relative; background: var(--navy); color: var(--white); padding-block: var(--sp-9); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 160% at 85% 50%, rgba(217,31,45,.25) 0%, rgba(217,31,45,0) 62%); }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-3); }
.cta-band p { color: var(--body-dark); margin-bottom: 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }

/* Notice */
.notice { background: var(--red-100); border-left: 4px solid var(--red); padding: var(--sp-5) var(--sp-6); font-size: var(--fs-sm); border-radius: var(--radius-sm); color: #6d2027; }
.notice p { margin-bottom: 0; }

/* Contact blocks */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-6); transition: box-shadow .3s var(--ease); }
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.4rem; margin-bottom: var(--sp-4); }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); align-items: start; }
.contact-list li:first-child { border-top: 0; }
.contact-list svg { width: 20px; height: 20px; color: var(--red); margin-top: 3px; }
.contact-list a { transition: color .2s var(--ease); }
.contact-list a:hover { color: var(--red); }

.hours { font-size: var(--fs-sm); }
.hours div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.hours dt { margin: 0; }
.hours dd { margin: 0; font-weight: 600; color: var(--navy); }
.hours .closed dd { color: var(--red); }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-sm); }
.map-frame img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.map-frame iframe { width: 100%; aspect-ratio: 21 / 9; border: 0; display: block; }
.map-caption { background: var(--white); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

/* 11. FORMS ---------------------------------------------------------------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-7); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); margin-bottom: var(--sp-2); }
.field .req { color: var(--red); }
.field .hint { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--body); margin-top: 3px; }

.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font-size: var(--fs-base);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-500); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-100); }
.field textarea { min-height: 155px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--red-100); }

.field-error { display: none; color: var(--danger); font-size: var(--fs-xs); margin-top: var(--sp-2); }
.field-error.is-visible { display: block; }

.form-status { display: none; margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); font-size: var(--fs-sm); border-left: 4px solid var(--success); background: #eaf5ef; color: #14532d; }
.form-status.is-visible { display: block; }

/* 12. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--body-dark); padding-top: var(--sp-9); font-size: var(--fs-sm); border-top: 4px solid var(--red); }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.25rem; margin-bottom: var(--sp-4); }
.site-footer a { transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--sp-7); }
.footer-grid p { font-size: var(--fs-sm); }
.footer-links li { padding: var(--sp-1) 0; }
.footer-contact li { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; align-items: start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red); margin-top: 4px; }

.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social a:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-3px); }

.footer-bottom { margin-top: var(--sp-8); border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--sp-5); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); }

/* Back to top, injected by main.js */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--red); color: var(--white);
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 6px 20px rgba(217,31,45,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }
.to-top svg { width: 22px; height: 22px; }

/* 13. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
}

@media (max-width: 880px) {
  :root { --fs-xl: 2.25rem; --fs-2xl: 3rem; --sp-10: 5rem; }

  .nav-toggle { display: block; }

  /* Full-viewport drawer sliding in from the right. It lives inside the
     header, which already creates a stacking context, so the brand and the
     close button only need a higher z-index than the panel itself. */
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    width: 100%; height: 100dvh;
    background: var(--navy-900);
    padding: calc(var(--header-h) + var(--sp-5)) var(--sp-5) var(--sp-8);
    overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease-out), visibility .38s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }

  .brand { position: relative; z-index: 2; }

  /* Header goes transparent over the open drawer so the two read as one
     surface, with its contents flipped to light. */
  body.nav-open .site-header {
    background: transparent; box-shadow: none; border-bottom-color: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  body.nav-open .brand-name { color: var(--white); }
  body.nav-open .brand-tag { color: var(--body-dark); }
  body.nav-open .nav-toggle { border-color: rgba(255,255,255,.35); }
  body.nav-open .nav-toggle svg { color: var(--white); }

  /* Scroll lock. position:fixed rather than overflow:hidden, because iOS
     Safari ignores overflow:hidden on body; main.js restores the offset. */
  body.nav-open { position: fixed; width: 100%; overflow: hidden; }

  /* Drawer contents are light-on-dark. */
  .nav-list a:not(.btn) { color: #e7eef7; border-bottom-color: rgba(255,255,255,.12); }
  .nav-list a:not(.btn):hover { color: var(--white); }
  .dropdown-toggle { color: #e7eef7; border-bottom-color: rgba(255,255,255,.12); }
  .has-dropdown::after { border-bottom-color: rgba(255,255,255,.12); }
  .nav-list .dropdown a { color: #cddae8; }
  .nav-list .dropdown a:hover { background: var(--red); color: var(--white); }
  .nav-list .dropdown-all a { color: var(--white); }
  .nav-list .dropdown a[aria-current="page"] { background: rgba(217,31,45,.18); color: #ff8f97; }

  .nav-contact {
    display: block;
    margin-top: var(--sp-7); padding-top: var(--sp-6);
    border-top: 1px solid rgba(255,255,255,.14);
    color: var(--body-dark); font-size: var(--fs-sm);
  }
  .nav-contact a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; color: #e7eef7; }
  .nav-contact svg { width: 18px; height: 18px; color: var(--red); flex: none; }
  .nav-contact a:hover { color: var(--red); }
  .nav-contact p { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a:not(.btn) { display: block; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; }

  /* On mobile the dropdown is an inline accordion, not a floating panel —
     a hover-positioned panel is unusable on touch. */
  .has-dropdown { display: block; position: static; }
  .has-dropdown > a { display: inline-block !important; border-bottom: 0 !important; width: auto; }
  .dropdown-toggle {
    float: right; padding: var(--sp-4) 0 var(--sp-4) var(--sp-4);
    border-bottom: 1px solid var(--line);
  }
  .dropdown-toggle svg { width: 20px; height: 20px; }
  .has-dropdown::after { content: ""; display: block; clear: both; border-bottom: 1px solid var(--line); }

  .dropdown {
    position: static; min-width: 0; padding: 0 var(--sp-2) var(--sp-3) var(--sp-4);
    background: transparent; /* the desktop panel is white — wrong inside the dark drawer */
    border: 0; border-left: 2px solid var(--red); border-radius: 0;
    box-shadow: none; margin: var(--sp-3) 0 var(--sp-2);
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .dropdown::before { display: none; }
  /* Hover must not open it on touch — only the explicit toggle does. */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: none; }
  .dropdown.is-open,
  .has-dropdown:hover .dropdown.is-open,
  .has-dropdown:focus-within .dropdown.is-open { display: block; }
  .nav-list .dropdown a { font-size: 1.05rem; padding: .7rem .8rem; border-bottom: 0; white-space: normal; }
  /* Brand red on the near-black drawer is only 3.7:1. This tint is 8.5:1
     against #06121f and still reads as the same accent. */
  .nav-list a:not(.btn)[aria-current="page"] { color: #ff8f97; border-bottom-color: var(--red); }
  .nav-cta { margin: var(--sp-5) 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-name { font-size: 1.3rem; }
  .statbar .grid-3 { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: var(--sp-6) var(--sp-5); }
  .stat-label { max-width: none; }
  .stat:first-child { border-top: 0; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }

  /* Parallax is disabled below this width — it costs more than it gives on
     a phone, and iOS Safari fights fixed-ratio transforms during momentum scroll. */
  .parallax-layer { transform: none !important; inset: 0; }
}

@media (max-width: 640px) {
  :root { --fs-base: 1rem; --sp-9: 3.5rem; --sp-10: 4rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .brand-tag { display: none; }
  .value-list li { grid-template-columns: 1fr; }
  .form { padding: var(--sp-5); }
  .to-top { right: 14px; bottom: 14px; }
  /* 21:9 is unusably letterboxed on a phone — give the map real height. */
  .map-frame iframe, .map-frame img { aspect-ratio: 4 / 3; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .to-top, .scroll-progress { display: none; }
  body { background: #fff; color: #000; }
}
