/* ==========================================================================
   H&B Engineering — Design System
   Aesthetic: "Machined Blueprint" — precision industrial. Deep navy heritage
   (from the 1967 brand blue) + machined brass (from the gold monogram),
   blueprint-grid textures, condensed display type, monospaced spec callouts.
   Mobile-first. No frameworks.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy-950: #06101f;
  --navy-900: #0b1f3a;
  --navy-800: #11284a;
  --navy-700: #1a3a6b;
  --blue-600: #1f4fa8;
  --blue-500: #2b6cd6;
  --cyan-400: #58b7e8;      /* blueprint line accent */
  --brass-600: #a6841a;
  --brass-500: #c9a227;
  --brass-400: #e0b93a;
  --brass-200: #f3e3a3;

  /* Neutrals (cool steel) */
  --steel-50:  #f8f9fb;
  --steel-100: #f1f3f7;
  --steel-200: #e4e8ee;
  --steel-300: #cbd3de;
  --steel-400: #a4afbe;
  --steel-500: #7b8794;
  --steel-600: #5a6676;
  --steel-700: #3e4a5b;
  --steel-800: #27303d;
  --ink:       #0f1720;

  /* Semantic */
  --bg: var(--steel-50);
  --bg-alt: var(--steel-100);
  --surface: #ffffff;
  --text: var(--ink);
  --text-muted: var(--steel-600);
  --line: var(--steel-200);
  --accent: var(--brass-500);
  --accent-ink: var(--navy-950);
  --focus: var(--cyan-400);

  /* Type */
  --font-display: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Fluid type scale */
  --fs-xs: clamp(0.78rem, 0.74rem + 0.15vw, 0.84rem);
  --fs-sm: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  --fs-base: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  --fs-lg: clamp(1.2rem, 1.08rem + 0.55vw, 1.45rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-2xl: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  --fs-3xl: clamp(2.8rem, 1.5rem + 3.6vw, 4.7rem);

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --container: 1152px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;              /* deliberately tight: machined, not bubbly */
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(6,16,31,.08), 0 1px 1px rgba(6,16,31,.04);
  --shadow-md: 0 8px 24px -8px rgba(6,16,31,.25);
  --shadow-lg: 0 24px 60px -20px rgba(6,16,31,.45);
  --header-h: 66px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
@media (min-width: 900px) { html { font-size: clamp(15px, 13.5px + 0.18vw, 16.65px); } }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0 0 var(--s-4); font-family: var(--font-display); line-height: 1; letter-spacing: -0.005em; color: var(--navy-900); text-wrap: balance; }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 800; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 700; font-family: var(--font-body); letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
strong { font-weight: 600; }
small { font-size: var(--fs-sm); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brass-200); color: var(--navy-950); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1440px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 1000; background: var(--brass-500); color: var(--navy-950); padding: var(--s-3) var(--s-4); font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: var(--s-4); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.02em; }
.lede { font-size: var(--fs-lg); line-height: 1.5; color: var(--steel-700); max-width: 60ch; }
.measure { max-width: 65ch; }
.flow > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-7); }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }

/* Eyebrow: mono label with brass tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-600);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brass-500); }
.on-dark .eyebrow { color: var(--brass-400); }

/* Section rhythm */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--dark, .on-dark {
  --text: var(--steel-100); --text-muted: var(--steel-400); --line: rgba(255,255,255,.12);
  --surface: var(--navy-800);
  background: var(--navy-900); color: var(--text);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.section--dark a:not(.btn), .on-dark a:not(.btn) { color: var(--cyan-400); }
.section--dark a:not(.btn):hover, .on-dark a:not(.btn):hover { color: #fff; }
.section--dark .lede, .on-dark .lede { color: var(--steel-300); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* Atmospheric depth for dark bands: soft directional glow + faint vignette, no grid */
.blueprint { position: relative; isolation: isolate; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(43,108,214,.28), transparent 65%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(26,58,107,.55), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
}
.blueprint::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 70% 85%, rgba(201,162,39,.10), transparent 70%);
}

/* Grain overlay for atmosphere */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brass-500); --btn-fg: var(--navy-950); --btn-bd: var(--brass-500);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0.8rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn:hover { background: var(--brass-400); color: var(--navy-950); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: var(--steel-300); }
.btn--ghost:hover { background: var(--navy-900); color: #fff; --btn-bd: var(--navy-900); }
.on-dark .btn--ghost, .section--dark .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: #fff; color: var(--navy-950); --btn-bd: #fff; }
.btn--navy { --btn-bg: var(--navy-900); --btn-fg: #fff; --btn-bd: var(--navy-900); }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--lg { min-height: 56px; padding: 1rem 1.8rem; font-size: var(--fs-base); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-950); color: var(--steel-300);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 36px; font-size: 0.78rem; }
.topbar a { color: var(--steel-200); text-decoration: none; }
.topbar a:hover { color: var(--brass-400); }
.topbar__left { display: none; }
.topbar__right { display: flex; gap: var(--s-5); margin-left: auto; }
@media (min-width: 720px) { .topbar__left { display: block; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,31,58,.96); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(0,0,0,.6); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--s-4); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: #fff; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; white-space: nowrap; letter-spacing: 0.02em; color: #fff; }
.brand__tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-400); margin-top: 3px; white-space: nowrap; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-1); }
.nav a:not(.btn) {
  display: inline-block; padding: var(--s-3) clamp(0.55rem, 0.3rem + 0.5vw, 0.95rem); color: var(--steel-200); text-decoration: none;
  font-weight: 500; font-size: clamp(0.78rem, 0.7rem + 0.2vw, 0.9rem); letter-spacing: 0.04em; text-transform: uppercase; border-radius: var(--radius);
  position: relative;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 6px; height: 2px; background: var(--brass-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }
.nav .btn { margin-left: var(--s-2); min-height: 42px; padding: .6rem 1rem; font-size: clamp(0.78rem, 0.7rem + 0.2vw, 0.9rem); white-space: nowrap; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); color: #fff; cursor: pointer;
}
.nav-toggle span { position: relative; width: 22px; height: 2px; background: currentColor; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-950); color: #fff;
  padding: calc(var(--header-h) + 36px + var(--s-6)) var(--gutter) var(--s-7);
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid rgba(255,255,255,.08); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: 0.02em; }
.mobile-nav a[aria-current="page"] { color: var(--brass-400); }
.mobile-nav a .mono { color: var(--steel-500); font-size: 0.75rem; }
.mobile-nav__contact { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-sm); color: var(--steel-300); }
.mobile-nav__contact a { font: inherit; display: inline; padding: 0; color: var(--cyan-400); }
.mobile-nav .btn { margin-top: var(--s-5); width: 100%; font-family: var(--font-body); font-size: var(--fs-sm); }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .brand__tag { display: none; }
  .site-header .brand__mark { width: 38px; height: 38px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy-900); color: #fff; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.5rem);
}
.hero .eyebrow { color: var(--brass-400); }
.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--brass-400); }
.hero .lede { color: var(--steel-300); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 5/4; }
.hero__media::before { content: none; }
.hero__media::after { content: none; }
.hero--page { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero--page h1 { font-size: var(--fs-2xl); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); } }

/* Dimension-line decorative callout (blueprint style) */
.dim-line { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; color: var(--cyan-400); text-transform: uppercase; }
.dim-line::before, .dim-line::after { content: ""; width: 40px; height: 1px; background: currentColor; position: relative; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: var(--s-5) var(--s-5); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); line-height: 1; color: var(--navy-900); }
.stat__num sup { font-size: .45em; color: var(--brass-600); vertical-align: top; }
.stat__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: var(--s-2); }
.on-dark .stat, .section--dark .stat { background: rgba(255,255,255,.04); }
.on-dark .stat__num, .section--dark .stat__num { color: #fff; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.card__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brass-600); letter-spacing: .14em; margin-bottom: var(--s-3); }
.card__icon { width: 44px; height: 44px; color: var(--navy-900); margin-bottom: var(--s-4); }
.card h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; font-size: 1.6rem; }
.card p { color: var(--text-muted); }
.card--accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brass-500); }
.card--media { padding: 0; }
.card--media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card--media .card__body { padding: var(--s-5) var(--s-6) var(--s-6); }
.on-dark .card, .section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.on-dark .card__icon, .section--dark .card__icon { color: var(--brass-400); }
.card .link-arrow { margin-top: var(--s-4); }

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; text-decoration: none; color: var(--navy-900); font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow, .section--dark .link-arrow { color: var(--brass-400); }

/* ---------- Split (text + media) ---------- */
.split { display: grid; gap: var(--s-7); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; }
.split__media--frame { position: relative; }
.split__media--frame::before { content: none; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brass-500), var(--steel-300)); }
.timeline li { position: relative; padding-left: var(--s-7); padding-bottom: var(--s-6); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brass-500); }
.timeline__date { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-600); display: block; margin-bottom: var(--s-2); }
.timeline h3 { font-size: 1.5rem; margin-bottom: var(--s-2); }
.timeline p { color: var(--text-muted); }
@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline li { width: 50%; padding-left: 0; padding-right: var(--s-8); text-align: right; }
  .timeline li::before { left: auto; right: -8px; }
  .timeline li:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: var(--s-8); text-align: left; }
  .timeline li:nth-child(even)::before { right: auto; left: -8px; }
}

/* ---------- Spec tables (equipment) ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.spec__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--navy-900); color: #fff; }
.spec__head h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.spec__count { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--brass-400); }
.spec table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec th, .spec td { text-align: left; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); vertical-align: top; }
.spec th { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-alt); border-top: 0; }
.spec td:first-child { font-family: var(--font-mono); color: var(--brass-600); width: 3rem; }
.spec tbody tr:hover td { background: var(--steel-50); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; gap: var(--s-4); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.spec-list li span:first-child { font-family: var(--font-mono); color: var(--brass-600); flex: none; width: 2.5rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brass-500) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306101f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center/12px no-repeat; }

/* ---------- Logo wall / client list ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.logo-wall__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 92px; padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; color: var(--navy-900);
  transition: border-color .2s, transform .2s var(--ease);
}
.logo-wall__item:hover { border-color: var(--brass-500); transform: translateY(-2px); }
.logo-wall__item small { display: block; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; font-weight: 400; }
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Industry tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.tags li { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-muted); background: var(--surface); }
.on-dark .tags li, .section--dark .tags li, .hero .tags li { background: rgba(255,255,255,.05); color: var(--steel-300); border-color: rgba(255,255,255,.15); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-5) var(--s-4) var(--s-4); background: linear-gradient(transparent, rgba(6,16,31,.9)); color: #fff; font-size: var(--fs-sm); font-weight: 500; }
.gallery figcaption .mono { display: block; color: var(--brass-400); font-size: .68rem; margin-bottom: 2px; }
.gallery .gallery__tall { grid-row: span 2; }
.gallery .gallery__tall img { aspect-ratio: auto; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.cta-band .container { display: grid; gap: var(--s-6); align-items: center; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: var(--steel-300); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.4fr 1fr; } .cta-band__actions { justify-content: flex-end; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s-2); color: var(--navy-900); }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--steel-300); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,108,214,.2); }
.field input[type="file"] { padding: .55rem .9rem; }
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-2); }
.form__status { padding: var(--s-4); border-radius: var(--radius); font-size: var(--fs-sm); display: none; }
.form__status.is-ok { display: block; background: #e7f6ec; color: #14532d; border: 1px solid #a7e3bb; }
.form__status.is-err { display: block; background: #fdecec; color: #7f1d1d; border: 1px solid #f5b5b5; }
.hp { position: absolute; left: -9999px; }

/* ---------- Contact blocks ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--brass-600); margin-top: 2px; }
.contact-list .mono { color: var(--text-muted); display: block; margin-bottom: 2px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a { color: var(--navy-900); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--blue-600); text-decoration: underline; }
.map-embed { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); filter: grayscale(.2) contrast(1.05); box-shadow: var(--shadow-md); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--steel-400); margin-bottom: var(--s-5); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--steel-500); }
.breadcrumbs a { color: var(--steel-300); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: var(--brass-400); }

/* ---------- Sub-nav (tabs between sibling pages) ---------- */
.subnav { display: flex; gap: var(--s-2); flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: var(--s-7); }
.subnav a { padding: var(--s-3) var(--s-4); text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--navy-900); }
.subnav a[aria-current="page"] { color: var(--navy-900); border-bottom-color: var(--brass-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); font-size: var(--fs-sm); }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--brass-400); }
.footer__grid { display: grid; gap: var(--s-7); padding-block: clamp(3rem, 6vw, 5rem) var(--s-7); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-400); margin-bottom: var(--s-4); font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer__col address { font-style: normal; line-height: 1.7; }
.footer__brand .brand__name { font-size: 1.75rem; }
.footer__brand p { margin-top: var(--s-4); color: var(--steel-400); max-width: 36ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em; color: var(--steel-500); }
.footer__bottom .flag { display: inline-flex; align-items: center; gap: var(--s-2); }
.footer__bottom .powered a { color: var(--steel-300); text-decoration: none; }
.footer__bottom .powered a:hover { color: var(--brass-400); text-decoration: underline; }
.footer__bottom .flag svg { width: 18px; height: 12px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; } .reveal[data-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Hero entrance (page load) */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row, .hero__media, .hero .breadcrumbs, .hero .tags { animation: rise .8s var(--ease) both; }
.hero h1 { animation-delay: .08s; } .hero .lede { animation-delay: .18s; } .hero .btn-row, .hero .tags { animation-delay: .28s; } .hero__media { animation-delay: .2s; }

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .mobile-nav, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
