/* ==========================================================================
   LOGITEKRA INC. — logitekra.tech
   "Signal" — editorial-industrial theme
   --------------------------------------------------------------------------
   Design language
     · Ink-dark chrome (header, hero, bands, footer) against warm paper body
     · Hairline rules instead of soft shadows; square geometry, 2px corners
     · Mono micro-labels (IBM Plex Mono) / grotesk display (Space Grotesk)
     · Amber is the only accent, used as a signal — never as decoration

   Every class name and JS hook from the previous theme is preserved, so
   main.js, the quote endpoint and the product filter keep working untouched.
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography & section headers
   5.  Buttons, pills & chips
   6.  Header / navigation
   7.  Hero
   8.  Cards, features, steps
   9.  Bands (ink, stats, CTA)
   10. Forms
   11. Page hero / breadcrumb / inner pages
   12. Footer
   13. Motion & utilities
   14. Responsive
   ========================================================================== */

/* 1. Design tokens ======================================================== */

:root {
  /* Ink — the dark chrome. Brand navy pushed deeper and desaturated so the
     amber reads as a signal against it rather than competing with blue. */
  --ink-950: #070d17;
  --ink-900: #0b1424;
  --ink-800: #111e33;
  --ink-700: #1b2c49;
  --ink-600: #2a4269;
  --ink-200: #b9c5d8;

  /* Paper — warm, low-glare canvas for reading */
  --paper: #f6f5f2;
  --paper-2: #eceae4;
  --white: #ffffff;

  /* Amber — brand accent, unchanged in hue */
  --amber-600: #c07d06;
  --amber-500: #f5a623;
  --amber-400: #ffbe52;

  /* Text */
  --ink: #101b2b;
  --muted: #5b6779;
  --muted-light: #8b95a4;

  /* Rules & lines */
  --rule: #dedbd2;
  --rule-soft: #e8e6df;
  --rule-strong: #c8c4b8;
  --rule-dark: rgba(255, 255, 255, 0.13);
  --rule-dark-soft: rgba(255, 255, 255, 0.08);

  /* Semantic */
  --pass: #1c6b45;
  --pass-bg: #e6f3ec;
  --fail: #a8331f;
  --fail-bg: #fbeeeb;

  /* Ghost button adapts to whatever ground it sits on. Overridden inside
     every dark context (hero, page-hero, bands, footer). */
  --ghost-fg: var(--ink-900);
  --ghost-border: var(--rule-strong);
  --ghost-hover-bg: var(--white);

  /* Type */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono",
    Consolas, "Liberation Mono", monospace;

  /* Shape — square by intent. Nothing in this theme is a pill or a rounded
     card; the corner radius exists only to soften the pixel, not to be seen. */
  --radius-sm: 2px;
  --radius: 2px;
  --radius-lg: 3px;

  /* Depth — used sparingly; the design leans on rules, not shadows */
  --shadow-md: 0 10px 30px rgba(16, 27, 43, 0.09);
  --shadow-lg: 0 30px 70px rgba(7, 13, 23, 0.16);
  --shadow-navy: 0 12px 28px rgba(7, 13, 23, 0.22);

  /* Layout */
  --container: 1240px;
  --gutter: 28px;
  --header-h: 74px;
}

/* 2. Reset & base ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  /* NB: do not add overflow-x here. Clipping on <html> makes it the scroll
     container, which kills the sticky header and breaks scroll restoration.
     Sideways overflow is contained by `overflow-x: hidden` on <body> below,
     which propagates to the viewport while leaving sticky intact. */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* long email addresses / URLs must never force a sideways scroll */
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(245, 166, 35, 0.2);
}

/* Scroll lock for the open mobile drawer. `overflow:hidden` alone does not
   hold on iOS Safari, so the body is pinned and its offset restored on close. */
body.is-locked {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}

img, svg, video { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

a {
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--amber-600); }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--ink-900);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink-900); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

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

::selection { background: var(--amber-500); color: var(--ink-950); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  background: var(--amber-500);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: var(--ink-950); }

/* 3. Layout primitives ==================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* env() keeps content clear of the notch when a phone is held landscape */
  padding-inline:
    max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}
.container--narrow { max-width: 880px; }

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 64px 0; }

/* Alternation is paper → white → paper, with a hairline seam between. */
.section--surface {
  background: var(--white);
  border-block: 1px solid var(--rule);
}
.section--soft {
  background: var(--white);
  border-top: 1px solid var(--rule);
}

/* On white sections, boxed elements invert to paper so they stay legible
   without needing a shadow. */
.section--surface .card,
.section--surface .step,
.section--surface .quote-card,
.section--surface .info-card,
.section--surface .panel,
.section--soft .card,
.section--soft .step { background: var(--paper); }
.section--surface .card__list li,
.section--soft .card__list li { background: var(--white); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 1fr; }

/* 4. Typography & section headers ========================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--amber-500);
}
.eyebrow--light { color: var(--amber-400); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 20px;
}
.section-title .accent {
  color: var(--ink-900);
  box-shadow: inset 0 -0.14em 0 var(--amber-500);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  line-height: 1.68;
}

/* Dark-ground overrides. Grouped so every ink surface reads identically. */
.on-navy, .on-navy h2, .on-navy h3, .on-navy .section-title { color: var(--white); }
.on-navy .section-sub, .on-navy p { color: rgba(219, 228, 242, 0.78); }
.on-navy .section-title .accent { color: var(--white); }

/* 5. Buttons, pills & chips =============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; transition: transform 0.22s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-950);
}
.btn--primary:hover {
  background: var(--amber-400);
  border-color: var(--amber-400);
  color: var(--ink-950);
}

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

/* Ghost reads off the --ghost-* tokens, so the same button works on paper
   and on ink without a separate class. */
.btn--ghost {
  background: transparent;
  color: var(--ghost-fg);
  border-color: var(--ghost-border);
}
.btn--ghost:hover {
  color: var(--ghost-fg);
  border-color: currentColor;
  background: var(--ghost-hover-bg);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  color: var(--white);
}

.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--sm { padding: 11px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-200);
}
.pill__tag {
  white-space: nowrap; /* keep "SINCE 2016" on one line when the pill wraps */
  padding: 4px 10px;
  background: var(--amber-500);
  color: var(--ink-950);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chip {
  padding: 11px 20px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.chip:hover { border-color: var(--ink-700); color: var(--ink-900); }
.chip.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}

/* 6. Header / navigation ================================================== */

/* The chrome is ink from the top of the page down through the hero, so the
   header needs no scroll-state colour change — only the seam and shadow. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* The top bar collapses once the page scrolls, so the sticky header stays slim */
.topbar {
  background: var(--ink-950);
  color: rgba(185, 197, 216, 0.8);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
.site-header.is-stuck .topbar { max-height: 0; opacity: 0; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar__group { display: flex; align-items: center; gap: 28px; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.topbar__item svg { width: 14px; height: 14px; color: var(--amber-500); }
.topbar__item:hover { color: var(--white); }
.topbar__socials { display: flex; gap: 4px; }
.topbar__socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: rgba(185, 197, 216, 0.7);
  transition: color 0.18s ease, background 0.18s ease;
}
.topbar__socials a:hover { background: var(--amber-500); color: var(--ink-950); }
.topbar__socials svg { width: 14px; height: 14px; }

.navbar {
  background: var(--ink-900);
  border-bottom: 1px solid var(--rule-dark-soft);
  transition: box-shadow 0.25s ease;
}
.site-header.is-stuck .navbar {
  border-bottom-color: var(--rule-dark);
  box-shadow: 0 10px 30px rgba(7, 13, 23, 0.35);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

/* Brand lockup — the official Logitekra artwork.
   Header and footer are both ink, so both use the knocked-out variant
   (`logo-light.png`); `logo.png` keeps the navy original for light grounds.
   Below 760px a <source> swaps in the compact lockup, because the tagline
   in the full artwork is ~3px tall at a mobile header height. */
.brand { display: inline-flex; align-items: center; }
.brand:hover { color: inherit; }
.brand picture { display: block; }

.brand__logo {
  height: 46px;
  width: auto;
  display: block;
}
.footer .brand__logo { height: 42px; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav__list { display: flex; align-items: center; gap: 2px; }

.nav__link {
  position: relative;
  display: block;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(226, 233, 245, 0.86);
  transition: color 0.18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--white); }

.has-dropdown { position: relative; }
.nav__caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.65;
}
.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 480px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--ink-900);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-dropdown:hover .dropdown__menu,
.has-dropdown:focus-within .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.has-dropdown:hover .nav__caret { transform: translateY(-4px) rotate(225deg); }

.dropdown__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(226, 233, 245, 0.86);
  transition: background 0.16s ease, color 0.16s ease;
}
.dropdown__item:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.dropdown__ico {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--amber-500);
}
.dropdown__ico svg { width: 16px; height: 16px; }

.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-dark);
  background: transparent;
  place-items: center;
  margin-left: auto;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 7. Hero ================================================================= */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
  background: var(--ink-950);
  color: var(--white);
  /* dark ground: flip the ghost button to its light-on-ink form */
  --ghost-fg: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --ghost-hover-bg: rgba(255, 255, 255, 0.06);
}

/* Blueprint grid, faded out at the edges */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 78%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.24;
}
.blob--orange {
  width: 460px; height: 460px;
  background: var(--amber-500);
  top: -160px; right: -80px;
}
.blob--navy {
  width: 520px; height: 520px;
  background: var(--ink-600);
  bottom: -220px; left: -160px;
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.1vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
  color: var(--white);
  margin: 24px 0 24px;
}
.hero h1 .accent {
  color: var(--amber-500);
  box-shadow: none;
  white-space: nowrap;
}
.hero .lead { max-width: 540px; color: rgba(203, 215, 233, 0.86); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 34px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-dark);
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(203, 215, 233, 0.9);
}
.hero__points svg {
  width: 16px; height: 16px;
  color: var(--amber-500);
}

/* Hero visual — a console readout rather than a marketing card */
.hero__visual { position: relative; }

.panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.track-card { padding: 28px; position: relative; z-index: 2; }

/* Inside the hero the panel inverts to ink with hairline rules. */
.hero .panel {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--rule-dark);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero .track-card::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 2px;
  background: var(--amber-500);
}

.track-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule-dark);
}
.track-card__ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(185, 197, 216, 0.62);
}
.track-card__title { font-size: 1.14rem; margin-top: 7px; color: var(--white); }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: var(--radius);
  background: rgba(34, 164, 93, 0.14);
  border: 1px solid rgba(34, 164, 93, 0.35);
  color: #6ee7a8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d17f;
  box-shadow: 0 0 0 3px rgba(52, 209, 127, 0.18);
}

.progress { margin: 24px 0 22px; }
.progress__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 68%;
  background: var(--amber-500);
}
.progress__steps {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(185, 197, 216, 0.5);
}
.progress__steps .done { color: var(--amber-400); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.mini {
  padding: 16px 12px;
  background: var(--white);
  text-align: center;
}
.hero .mini-grid { background: var(--rule-dark); border-color: var(--rule-dark); }
.hero .mini { background: rgba(11, 20, 36, 0.6); }
.mini__num {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.hero .mini__num { color: var(--white); }
.mini__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 4px;
}
.hero .mini__label { color: rgba(185, 197, 216, 0.55); }

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--ink-900);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-navy);
  animation: float 7s ease-in-out infinite;
}
/* The chips straddle the panel's outer corners rather than floating over its
   middle — the readout is dense, and anything sitting on it hides a value. */
.float-card--a { left: -34px; top: -40px; }
.float-card--b { right: -30px; bottom: -40px; animation-delay: -3.5s; }
.float-card__ico {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(245, 166, 35, 0.14);
  color: var(--amber-500);
}
.float-card--b .float-card__ico { background: rgba(255, 255, 255, 0.07); color: var(--ink-200); }
.float-card__ico svg { width: 18px; height: 18px; }
.float-card__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(185, 197, 216, 0.6);
}
.float-card__v {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Capability ticker — continues the ink band below the hero */
.marquee {
  background: var(--ink-900);
  border-bottom: 1px solid var(--rule-dark-soft);
  overflow: hidden;
  position: relative;
  padding: 18px 0;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-900), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink-900), transparent); }
.marquee__track {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: scroll-x 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(203, 215, 233, 0.72);
  white-space: nowrap;
}
.marquee__item svg { width: 17px; height: 17px; color: var(--amber-500); }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 8. Cards, features, steps =============================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color 0.24s ease, box-shadow 0.24s ease,
    transform 0.24s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::after { transform: scaleX(1); }

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-700);
  margin-bottom: 22px;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--amber-500);
}
.section--surface .card__icon { background: var(--white); }

.card__title { font-size: 1.18rem; margin-bottom: 11px; letter-spacing: -0.02em; }
.card__text { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }

.card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.card__list li {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule-strong);
  align-self: flex-start;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.card__link svg { width: 15px; height: 15px; transition: transform 0.22s ease; }
.card__link:hover { color: var(--amber-600); border-color: var(--amber-500); }
.card__link:hover svg { transform: translateX(4px); }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--rule-strong); }

/* Feature row */
.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}
.feature:last-child { border-bottom: 0; padding-bottom: 0; }
.feature__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--amber-600);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.04rem; margin-bottom: 7px; }
.feature p { font-size: 0.94rem; color: var(--muted); }

.on-navy .feature { border-bottom-color: var(--rule-dark); }
.on-navy .feature__icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--rule-dark);
  color: var(--amber-400);
}

/* Steps — a numbered rail rather than four boxes */
.steps { counter-reset: step; position: relative; }
.steps--row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
  column-gap: 1px;
}
.step {
  position: relative;
  padding: 36px 30px;
  background: var(--white);
  border: 0;
  border-radius: 0;
}
.step__num {
  display: block;
  width: auto; height: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber-600);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  background: none;
  box-shadow: none;
}
.step:nth-child(even) .step__num {
  background: none;
  color: var(--amber-600);
  box-shadow: none;
}
.step h3 { font-size: 1.06rem; margin-bottom: 10px; }
.step p { font-size: 0.93rem; color: var(--muted); }
.step::after { display: none; }

/* Testimonials */
.quote-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.quote-card__stars { display: flex; gap: 3px; margin-bottom: 20px; color: var(--amber-500); }
.quote-card__stars svg { width: 15px; height: 15px; }
.quote-card blockquote {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.quote-card__by {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.avatar {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  flex: none;
}
.quote-card__name { font-weight: 600; font-size: 0.93rem; color: var(--ink-900); }
.quote-card__role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

/* Accordion — rule-separated rows, plus/close toggle drawn in CSS */
.faq__item {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  margin-bottom: 0;
  overflow: hidden;
}
.faq__item:last-of-type { border-bottom: 1px solid var(--rule); }
.faq__item[open] { box-shadow: none; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}
.faq__item summary:hover { color: var(--amber-600); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 13px; height: 13px;
  border: 0;
  transform: rotate(0deg);
  background:
    linear-gradient(var(--amber-500), var(--amber-500)) center / 13px 1.5px no-repeat,
    linear-gradient(var(--amber-500), var(--amber-500)) center / 1.5px 13px no-repeat;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__body { padding: 0 4px 24px; color: var(--muted); font-size: 0.96rem; max-width: 70ch; }

/* 9. Bands ================================================================ */

.band-navy {
  position: relative;
  background: var(--ink-950);
  color: var(--white);
  overflow: hidden;
  --ghost-fg: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --ghost-hover-bg: rgba(255, 255, 255, 0.06);
}
.band-navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
}
.band-navy > * { position: relative; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat { text-align: left; padding: 8px 28px; border-left: 1px solid var(--rule-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--white);
  line-height: 1;
}
.stat__num .suffix { color: var(--amber-500); }
.stat__label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: rgba(185, 197, 216, 0.68);
}

/* Light variant (home "who we are" block) — a bordered 2×2 matrix */
.stats--light {
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.stats--light .stat {
  background: var(--white);
  border: 0;
  border-radius: 0;
  padding: 30px 24px;
}
.stats--light .stat__num { color: var(--ink-900); }
.stats--light .stat__num .suffix { color: var(--amber-600); } /* contrast on white */
.stats--light .stat__label { color: var(--muted); }

.cta-band {
  position: relative;
  padding: 68px;
  border-radius: var(--radius-lg);
  background: var(--ink-950);
  color: var(--white);
  overflow: hidden;
  --ghost-fg: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --ghost-hover-bg: rgba(255, 255, 255, 0.06);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--amber-500);
  border-radius: 0;
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  margin-bottom: 18px;
}
.cta-band p { color: rgba(219, 228, 242, 0.78); }
.cta-band .hero__points,
.cta-band .hero__actions { border-top: 0; padding-top: 0; }
.cta-band .hero__actions { margin: 32px 0 0; }

/* Highlight list */
.check-list { display: grid; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list svg { width: 18px; height: 18px; flex: none; color: var(--amber-500); margin-top: 4px; }
.on-navy .check-list li {
  color: rgba(226, 233, 245, 0.88);
  border-bottom-color: var(--rule-dark);
}

/* 10. Forms =============================================================== */

.form-card {
  position: relative;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--amber-500);
}
.form-card h3 { font-size: 1.34rem; margin-bottom: 8px; }
.form-card .form-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-800);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.field label .req { color: var(--amber-600); }

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
  /* 16px exactly — anything smaller makes iOS Safari zoom in on focus */
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.input::placeholder { color: var(--muted-light); }
.input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.28);
}
textarea.input { resize: vertical; min-height: 128px; line-height: 1.6; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}

.field .error-msg {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--fail);
  display: none;
}
.field.has-error .input { border-color: var(--fail); background: var(--fail-bg); }
.field.has-error .error-msg { display: block; }

/* .consent is itself a <label>, so it has to out-specify `.field label`
   above — otherwise the sentence renders as a mono uppercase field caption. */
.field .consent,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--font);
  font-size: 0.87rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}
/* 16px keeps every form control at or above the size that stops iOS Safari
   zooming on focus, checkbox included. */
.consent input {
  margin-top: 4px;
  accent-color: var(--ink-900);
  width: 16px;
  height: 16px;
  font-size: 16px;
}
.field.has-error .consent { color: var(--fail); }
.field.has-error .consent input { outline: 2px solid var(--fail); outline-offset: 2px; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--pass-bg);
  border: 1px solid rgba(28, 107, 69, 0.28);
  border-left: 3px solid var(--pass);
  color: var(--pass);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 19px; height: 19px; flex: none; }

.form-error {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--fail-bg);
  border: 1px solid rgba(168, 51, 31, 0.25);
  border-left: 3px solid var(--fail);
  color: var(--fail);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.form-error.is-visible { display: flex; }
.form-error svg { width: 19px; height: 19px; flex: none; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

[data-submit][disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* 11. Page hero / inner pages ============================================= */

/* Inner pages share the hero's ink band so every page opens the same way. */
.page-hero {
  position: relative;
  padding: 84px 0 90px;
  background: var(--ink-950);
  color: var(--white);
  border-bottom: 1px solid var(--rule-dark-soft);
  overflow: hidden;
  --ghost-fg: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --ghost-hover-bg: rgba(255, 255, 255, 0.06);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse at 18% 40%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse at 18% 40%, #000 0%, transparent 80%);
}
.page-hero__inner { position: relative; max-width: 820px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 22px;
}
.page-hero .lead { max-width: 660px; color: rgba(203, 215, 233, 0.84); }
.page-hero .hero__actions { margin: 34px 0 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(185, 197, 216, 0.55);
  margin-bottom: 26px;
}
.breadcrumb a { color: rgba(185, 197, 216, 0.8); font-weight: 400; }
.breadcrumb a:hover { color: var(--amber-500); }
.breadcrumb span[aria-current] { color: var(--amber-500); }
.breadcrumb .sep { opacity: 0.45; }

/* Timeline (about page) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--rule-strong);
}
.timeline__item { position: relative; padding-bottom: 38px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 0;
  background: var(--amber-500);
  border: 0;
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber-600);
  text-transform: uppercase;
}
.timeline__item h3 { font-size: 1.08rem; margin: 8px 0 8px; }
.timeline__item p { font-size: 0.95rem; color: var(--muted); }

/* Value / info tiles */
.info-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color 0.24s ease;
}
.info-card:hover { border-color: var(--rule-strong); }
.info-card__ico {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--amber-600);
}
.section--surface .info-card__ico { background: var(--white); }
.info-card__ico svg { width: 20px; height: 20px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 7px; }
.info-card p { font-size: 0.93rem; color: var(--muted); }
.info-card a { font-weight: 500; border-bottom: 1px solid var(--rule-strong); }
.info-card a:hover { border-bottom-color: var(--amber-500); }

/* Product / category cards with a technical header plate */
.cat-card {
  overflow: hidden;
  padding: 0;
}
.cat-card__head {
  position: relative;
  height: 138px;
  display: grid;
  place-items: center;
  background: var(--ink-950);
  border-bottom: 1px solid var(--rule);
}
.cat-card__head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 82%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 82%);
}
.cat-card__head svg {
  position: relative;
  width: 42px; height: 42px;
  color: rgba(226, 233, 245, 0.85);
  transition: transform 0.3s ease, color 0.3s ease;
}
.cat-card:hover .cat-card__head svg { transform: translateY(-3px); color: var(--amber-500); }
.cat-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.cat-card__count {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rule-dark);
  color: var(--amber-400);
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}
/* Live embed: the frame is just a window, so drop the placeholder centring
   and padding and let the iframe fill it edge to edge. */
.map-frame--embed { display: block; padding: 0; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* 12. Footer ============================================================== */

.footer {
  position: relative;
  background: var(--ink-950);
  color: rgba(185, 197, 216, 0.7);
  padding: 84px 0 0;
  overflow: hidden;
  --ghost-fg: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --ghost-hover-bg: rgba(255, 255, 255, 0.06);
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}
.footer > * { position: relative; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 56px;
  padding-bottom: 60px;
}
.footer__about {
  margin-top: 26px;
  font-size: 0.93rem;
  line-height: 1.72;
  max-width: 340px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer__links li { margin-bottom: 11px; }
.footer__links a {
  color: rgba(185, 197, 216, 0.72);
  font-size: 0.94rem;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.footer__links a:hover { color: var(--amber-400); padding-left: 5px; }

.footer__contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.93rem;
  line-height: 1.62;
}
.footer__contact svg { width: 17px; height: 17px; flex: none; color: var(--amber-500); margin-top: 4px; }
.footer__contact a { color: rgba(203, 215, 233, 0.85); }
.footer__contact a:hover { color: var(--amber-400); }

.newsletter { display: flex; gap: 8px; margin-top: 20px; }
.newsletter .input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--rule-dark);
  color: var(--white);
}
.newsletter .input::placeholder { color: rgba(185, 197, 216, 0.45); }
.newsletter .input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--amber-500);
  box-shadow: none;
}

.footer__socials { display: flex; gap: 8px; margin-top: 28px; }
.footer__socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-dark);
  background: transparent;
  color: rgba(185, 197, 216, 0.8);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.footer__socials a:hover {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--ink-950);
}
.footer__socials svg { width: 16px; height: 16px; }

.footer__bottom {
  border-top: 1px solid var(--rule-dark);
  padding: 26px 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.footer__bottom nav { display: flex; gap: 26px; }
.footer__bottom a { color: rgba(185, 197, 216, 0.68); }
.footer__bottom a:hover { color: var(--amber-400); }

/* Back to top */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink-900);
  border: 1px solid var(--rule-dark);
  color: var(--white);
  box-shadow: var(--shadow-navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease,
    background 0.2s ease, color 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--amber-500); border-color: var(--amber-500); color: var(--ink-950); }
.to-top svg { width: 19px; height: 19px; }

/* 13. Motion & utilities ================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-56 { margin-bottom: 56px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-30 { gap: 30px; }
.text-muted { color: var(--muted); }
.text-faint { color: var(--muted-light); }
.text-pass { color: var(--pass); }
.req { color: var(--amber-600); }

/* Alternating service blocks on the Services page */
.block-gap { margin-bottom: 104px; }
@media (max-width: 760px) { .block-gap { margin-bottom: 64px; } }

/* Component modifiers used across inner pages */
.info-card--stack { flex-direction: column; }
.panel--pad { padding: 32px; }
.panel__title { font-size: 1.1rem; margin-bottom: 22px; }
.panel__title--tight { margin-bottom: 8px; }
.panel__note { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.section-title--sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.mini-grid--kv {
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 20px;
}
.mini--kv { text-align: left; padding: 18px; }
.mini--kv .mini__label { margin-top: 0; margin-bottom: 6px; }
.mini--kv .mini__num { font-size: 1rem; }
.check-list--sm li { font-size: 0.93rem; }
.map-frame__ico { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--muted-light); }
.map-frame__note { font-size: 0.92rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.is-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 14. Responsive ========================================================== */

@media (max-width: 1080px) {
  .section { padding: 84px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .cta-band { padding: 48px; }
  .float-card--a { left: -14px; }
  .float-card--b { right: -10px; }
  .split { gap: 52px; }
  .steps--row { grid-template-columns: repeat(2, 1fr); row-gap: 1px; }
}

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps--row { grid-template-columns: repeat(2, 1fr); }
  .split, .hero__inner, .cta-band__inner, .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  /* Once the hero stacks, the panel is centred and full width — the chips'
     desktop offsets would sit on top of its title and stats. Drop them out of
     absolute positioning and lay them out underneath instead. */
  .hero__visual {
    max-width: 580px;
    margin-inline: auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero__visual .panel { flex: 1 0 100%; }
  .float-card {
    position: static;
    flex: 1 1 210px;
    animation: none;
  }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat { padding: 22px 24px; border-top: 1px solid var(--rule-dark); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  /* Mobile navigation.
     Stacking matters here: .site-header is a sticky z-index:100 stacking
     context, so the drawer inside it would otherwise sit BELOW the backdrop
     (appended to <body>). Lift the whole header above the backdrop while the
     drawer is open, and lift the toggle above the drawer so the X stays
     tappable. */
  /* CRITICAL: a backdrop-filter on .navbar would make it a containing block
     for fixed-position descendants, sizing the drawer to the 74px navbar
     instead of the viewport. The navbar is deliberately opaque — never add
     one below this breakpoint. */
  .navbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink-900);
  }

  .nav-toggle { display: grid; position: relative; z-index: 125; }
  .site-header.is-nav-open { z-index: 130; }
  /* Unmounted until opened. Parked off-canvas it would widen the document's
     layout box, which lets iOS rubber-band the page sideways. JS adds
     .is-mounted a frame before .is-open so the slide still animates. */
  .nav { display: none; }
  .nav.is-mounted { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(370px, 88vw);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: max(26px, env(safe-area-inset-top)) 24px
             max(40px, env(safe-area-inset-bottom));
    padding-right: max(24px, env(safe-area-inset-right));
    background: var(--ink-950);
    border-left: 1px solid var(--rule-dark);
    box-shadow: -24px 0 70px rgba(7, 13, 23, 0.5);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 120;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; margin-top: 48px; }
  .nav__link {
    padding: 16px 2px;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule-dark-soft);
    border-radius: 0;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--amber-500); }
  .nav__caret { float: right; margin-top: 6px; }
  .dropdown__menu {
    position: static;
    transform: none;
    min-width: 0;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 4px 0 12px 6px;
    display: none;
  }
  /* The desktop centring transform lives on :hover/:focus-within, which
     out-specifies the reset above — tapping the parent link focuses it and
     would shove the submenu half its width off the left edge. */
  .has-dropdown:hover .dropdown__menu,
  .has-dropdown:focus-within .dropdown__menu {
    transform: none;
  }
  .has-dropdown.is-open .dropdown__menu { display: grid; }
  .has-dropdown.is-open .nav__caret { transform: translateY(-4px) rotate(225deg); }
  .nav__cta { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .nav__cta .btn { width: 100%; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 23, 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 110;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ---- Phones (portrait tablet and below) -------------------------------- */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .split, .hero__inner, .cta-band__inner, .contact-grid { gap: 36px; }
  .section-head { margin-bottom: 40px; }

  /* Header: drop the hours, keep phone + email reachable */
  .topbar__group:first-child .topbar__item:nth-child(3) { display: none; }
  .topbar__group { gap: 18px; }
  .topbar__socials { display: none; }
  /* the <source> has already swapped to the compact lockup at this width */
  .brand__logo,
  .footer .brand__logo { height: 34px; }

  /* Hero */
  .hero { padding-top: 52px; }
  .hero__inner { padding-bottom: 64px; }
  .hero h1 { font-size: clamp(2.05rem, 8.6vw, 2.7rem); margin: 18px 0 20px; }
  .hero .lead { font-size: 1.04rem; }
  .hero__actions { margin: 28px 0 26px; }
  .hero__points { gap: 10px 22px; padding-top: 22px; }
  .track-card { padding: 22px; }
  .track-card__top { flex-wrap: wrap; gap: 10px; }
  .marquee::before, .marquee::after { width: 56px; }
  .marquee__track { gap: 36px; }

  /* One column everywhere */
  .grid--2, .grid--3, .grid--4, .steps--row { grid-template-columns: 1fr; }
  .steps--row { row-gap: 1px; }
  .form-grid { grid-template-columns: 1fr; }

  .card { padding: 26px; }
  .cta-band { padding: 36px 24px; }
  .form-card { padding: 26px; }
  .step { padding: 28px 24px; }
  .quote-card { padding: 28px; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 20px 0; border-left: 0; }
  .stat:first-child { border-top: 0; }
  .stat:nth-child(2) { border-top: 1px solid var(--rule-dark); }
  .stats--light .stat { padding: 24px 20px; }

  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__about { max-width: none; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__bottom nav { flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

  .to-top {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}

/* ---- Small phones ------------------------------------------------------ */
@media (max-width: 460px) {
  :root { --gutter: 20px; }

  .section { padding: 52px 0; }
  .page-hero { padding: 56px 0 60px; }

  /* Keep the phone number tappable; the email is still in the footer */
  .topbar__inner { justify-content: center; }
  .topbar__group .topbar__item:nth-child(2) { display: none; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__points li { font-size: 0.76rem; }

  .pill { font-size: 0.72rem; padding: 5px 13px 5px 5px; gap: 9px; }
  .pill__tag { font-size: 0.64rem; padding: 3px 8px; }

  .float-card { padding: 11px 13px; gap: 10px; }
  .float-card__ico { width: 30px; height: 30px; }
  .float-card__ico svg { width: 15px; height: 15px; }
  .float-card__v { font-size: 0.9rem; }
  .float-card__k { font-size: 0.62rem; }

  .mini { padding: 13px 8px; }
  .mini__num { font-size: 1.04rem; }
  .mini__label { font-size: 0.6rem; letter-spacing: 0.07em; }
  .progress__steps { font-size: 0.62rem; letter-spacing: 0.03em; }

  .card { padding: 22px; }
  .cat-card__body { padding: 22px; }
  .cta-band { padding: 30px 20px; }
  .form-card { padding: 22px; }
  .info-card { padding: 22px; }
  .faq__item summary { padding: 19px 2px; font-size: 0.97rem; }
  .faq__body { padding: 0 2px 20px; }
  .filter-bar { gap: 6px; padding-bottom: 30px; margin-bottom: 36px; }
  .chip { padding: 9px 14px; font-size: 0.74rem; }

  .btn { padding: 14px 22px; }
  .btn--lg { padding: 16px 26px; font-size: 0.97rem; }

  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }

  .timeline { padding-left: 28px; }
  .timeline__item::before { left: -28px; width: 9px; height: 9px; }
}

/* ---- Landscape phones: give the drawer room to scroll ------------------ */
@media (max-width: 980px) and (max-height: 460px) {
  .nav__list { margin-top: 34px; }
  .nav__link { padding: 12px 2px; }
  .nav__cta { margin-top: 16px; }
}

/* ---- Touch devices -----------------------------------------------------
   Keyed off the input device rather than width, so a phone held landscape
   (844px wide, still a thumb) gets the same treatment as one held upright. */
@media (pointer: coarse) {
  .topbar { font-size: 0.82rem; }
  .topbar__inner { min-height: 46px; }
  .topbar__item { padding: 9px 0; }
  .topbar__socials a { width: 36px; height: 36px; }

  .footer__links a { display: inline-block; padding: 9px 0; }
  .footer__links li { margin-bottom: 2px; }
  .footer__contact a { display: inline-block; padding: 8px 0; }
  .footer__socials a { width: 44px; height: 44px; }
  .footer__bottom { padding: 18px 0 26px; }
  .footer__bottom nav a { display: inline-block; padding: 9px 0; }

  .dropdown__item { padding: 13px 12px; }
  .consent { font-size: 0.9rem; }
  /* flex:none — otherwise the box is squeezed narrower than its own size */
  .consent input { width: 20px; height: 20px; flex: none; }
  .card__link, .breadcrumb a { padding: 7px 0; display: inline-block; }
  .info-card p a { display: inline-block; padding: 8px 0; }
}
