/* ==========================================================================
   ARC Testing: "machined steel" theme
   Black, brushed steel and electric blue, taken from the ARC Testing logo.
   Edit the tokens in :root to restyle the whole site.
   ========================================================================== */

@font-face {
  font-family: "Saira ARC";
  src: url("../fonts/saira-semiexpanded.9ba2a7568040.woff") format("woff");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma.caa53153a3d1.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #030405;
  --panel: #0a0c10;
  --panel-2: #0f1217;
  --field: #06080b;
  --line: rgba(214, 222, 235, 0.09);
  --line-2: rgba(214, 222, 235, 0.16);

  /* Text */
  --text: #eef1f5;
  --text-2: #a9b0ba;
  --text-3: #7b838e;

  /* Brand: the logo's electric blue and brushed steel */
  --blue: #0080f0;
  --blue-hi: #2e9bff;
  --blue-lo: #005fcc;
  --steel-text: linear-gradient(180deg, #ffffff 0%, #e6e9ed 30%, #a4aab2 52%, #d3d7dc 70%, #f4f6f8 100%);
  --steel-edge: linear-gradient(180deg, #e2e6ea 0%, #5c626a 50%, #aab0b7 100%);

  --success: #3ddc97;
  --warning: #ffc56b;
  --danger: #ff6b7d;

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 10px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Saira ARC", var(--font-body);
  --font-label: "Michroma", var(--font-body);

  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; padding-top: var(--header-h); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

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

::selection { background: rgba(0, 128, 240, 0.45); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); }

.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.center { text-align: center; justify-content: center; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Background: faint blueprint grid with a blue glow from the top ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 80% -10%, rgba(0, 128, 240, 0.2), transparent 70%),
    radial-gradient(40% 40% at 0% 0%, rgba(150, 165, 185, 0.07), transparent 70%),
    var(--bg);
}
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 222, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 222, 235, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 75%);
}


/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(3, 4, 5, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 128, 240, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.scrolled .site-header { background: rgba(5, 6, 8, 0.88); border-bottom-color: var(--line); }
.scrolled .site-header::after { opacity: 1; }

.nav { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(214, 222, 235, 0.12), 0 6px 18px -6px rgba(0, 128, 240, 0.6);
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  background: var(--steel-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark-sub {
  margin-top: 5px;
  font-family: var(--font-label);
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blue-hi);
}

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-hi);
  box-shadow: 0 0 10px rgba(46, 155, 255, 0.8);
}
.nav-cta { margin-left: 10px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.icon-button:hover { border-color: rgba(46, 155, 255, 0.6); background: rgba(0, 128, 240, 0.08); }
.cart-button.is-active { border-color: var(--blue); }

.badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--bg), 0 0 12px rgba(0, 128, 240, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
}

.menu-button { display: none; }
.menu-button .icon-close { display: none; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 0.86rem; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.74rem; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 0.68rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }

.btn-primary {
  color: #fff;
  border-color: rgba(120, 190, 255, 0.45);
  background: linear-gradient(180deg, #1a8fff 0%, #0074e6 52%, #005fcc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -12px rgba(0, 128, 240, 0.9);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 4px rgba(0, 128, 240, 0.18),
    0 14px 34px -10px rgba(0, 128, 240, 1);
}

/* Brushed-steel outline: a metallic gradient border around a dark face */
.btn-steel {
  background:
    linear-gradient(180deg, #171b21, #0c0f13) padding-box,
    var(--steel-edge) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 22px -14px rgba(0, 0, 0, 0.95);
}
.btn-steel:hover {
  background:
    linear-gradient(180deg, #1c2129, #10141a) padding-box,
    linear-gradient(180deg, #ffffff 0%, #7a818a 50%, #d2d6db 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 4px rgba(214, 222, 235, 0.06);
}

.js .js-hide { display: none; }

/* ---------- Type helpers ---------- */

.kicker {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  flex: none;
  margin-top: calc(0.8em - 1px);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-hi));
}

.steel-text {
  background: var(--steel-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-text {
  background: linear-gradient(180deg, #7cc4ff 0%, #2e9bff 45%, #0077e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 128, 240, 0.45));
}

.lead { font-size: 1.1rem; color: var(--text-2); max-width: 38em; }

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(6, 8, 11, 0.85);
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.tag-warn { color: var(--warning); border-color: rgba(255, 197, 107, 0.4); }
.tag-muted { color: var(--text-3); }

/* ---------- Panels ---------- */

.panel {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -40px rgba(0, 0, 0, 0.95);
}

/* A blue light that follows the pointer (see site.js) */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 128, 240, 0.13), transparent 60%);
}
.spotlight:hover::before { opacity: 1; }

.inset {
  background: var(--field);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.display {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.9rem;
}
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .icon { color: var(--blue-hi); }

/* Logo emblem with a machined bezel: tick marks, a steel ring and a sweeping blue glint */
.hero-emblem {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
}
/* A swoosh of blue light orbiting the emblem, like the arc in the logo */
.hero-emblem::before {
  content: "";
  position: absolute;
  left: -42%;
  right: -42%;
  top: 24%;
  bottom: 24%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: rgba(46, 155, 255, 0.6);
  transform: rotate(-18deg);
  filter: drop-shadow(0 0 8px rgba(0, 128, 240, 0.8));
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%, #000 72%, transparent 98%);
  mask-image: linear-gradient(90deg, transparent 4%, #000 34%, #000 72%, transparent 98%);
}
.emblem-glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 128, 240, 0.32), rgba(0, 128, 240, 0) 68%);
}
.emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(214, 222, 235, 0.16);
}
.emblem-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(46, 155, 255, 0.9) 78%, #ffffff 80%, transparent 82% 100%);
  -webkit-mask-image: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask-image: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: sweep 9s linear infinite;
}
.emblem-ticks {
  position: absolute;
  inset: 3.5%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(214, 222, 235, 0.32) 0 0.5deg, transparent 0.5deg 7.5deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 93%, #000 93.5%, #000 99%, transparent 99.5%);
  mask-image: radial-gradient(closest-side, transparent 93%, #000 93.5%, #000 99%, transparent 99.5%);
}
.emblem-logo {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(0, 128, 240, 0.45);
}
@keyframes sweep { to { transform: rotate(360deg); } }

/* ---------- Process strip ---------- */

.process {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-step { display: flex; gap: 18px; padding: 28px 28px 26px; }
.process-step + .process-step { border-left: 1px solid var(--line); }
.process-num {
  padding-top: 3px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--blue-hi);
}
.process-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.process-title .icon { color: var(--blue-hi); }
.process-step p { margin: 0; font-size: 0.95rem; }

/* ---------- Services strip (top of the home page) ---------- */

.service-strip { overflow: hidden; }
.service-strip .process-step { position: relative; flex-direction: column; gap: 14px; padding: 24px 22px 26px; transition: background 0.25s; }
.service-strip .process-step:hover { background: rgba(0, 128, 240, 0.07); }
.service-strip .icon-tile { width: 42px; height: 42px; border-radius: 10px; }
.service-strip .process-title { margin-bottom: 6px; font-size: 0.86rem; line-height: 1.3; }
.service-strip .process-step:hover .process-title { color: var(--blue-hi); }
.service-strip p { font-size: 0.9rem; }

/* ---------- Custom toolkits ---------- */

.toolkit-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px 48px;
}
.toolkit-intro .lead { margin: 0; }
.toolkit-intro .hero-actions { margin-top: 0; justify-content: flex-end; }
.page-head .hero-actions { margin-top: 26px; }
.section-lead { margin: -12px 0 26px; }

/* ---------- Toolkit picture (a render with a transparent background) ---------- */

.foam-figure { position: relative; isolation: isolate; margin: 32px 0 0; }
/* A soft pool of blue light under the case, so it sits in the page's lighting rather than on top of it */
.foam-figure::before,
.hud-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% 10% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 128, 240, 0.16), rgba(0, 128, 240, 0) 80%);
  filter: blur(24px);
}
.foam-figure figcaption { margin-top: 6px; color: var(--text-3); font-size: 0.88rem; max-width: 60em; }
.foam-photo { display: block; width: 100%; height: auto; }

/* ---------- Toolkits page ---------- */

.kit-hero { position: relative; padding: 56px 0 36px; }
.display-page { font-size: clamp(2.2rem, 4.8vw, 3.9rem); }
.display-page > span { display: block; width: fit-content; text-wrap: balance; } /* one line each, wrapped evenly on small screens */
.kit-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 20px 48px;
  margin-top: 24px;
}
.kit-hero-grid .lead { margin: 0; }
.kit-hero-grid .hero-actions { margin-top: 0; justify-content: flex-end; }

/* Four key facts under the headline, laid out like a machined spec plate */
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; padding: 0; list-style: none; }
.spec-strip li { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 20px 22px; }
.spec-strip li + li { border-left: 1px solid var(--line); }
.spec-strip .icon { margin-top: 2px; color: var(--blue-hi); }
.spec-strip li > span { min-width: 0; color: var(--text-3); font-size: 0.88rem; line-height: 1.45; }
.spec-strip strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}

/* The toolkit picture with numbered markers, explained in the legend below it */
.hud { margin: 0; }
.hud-frame { position: relative; isolation: isolate; }
.hud-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  font-family: var(--font-label);
  font-size: 0.7rem;
  color: #fff;
  background: rgba(0, 98, 204, 0.88);
  box-shadow: 0 0 0 1px rgba(170, 215, 255, 0.75), 0 0 0 6px rgba(0, 128, 240, 0.16), 0 0 18px rgba(0, 128, 240, 0.85);
  pointer-events: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.hud-marker::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px dashed rgba(46, 155, 255, 0.55);
}
.hud-marker.is-active {
  transform: scale(1.18);
  box-shadow: 0 0 0 1px #cfe8ff, 0 0 0 9px rgba(0, 128, 240, 0.24), 0 0 26px rgba(0, 128, 240, 1);
}
.hud-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.hud-legend li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 4px;
  border-top: 1px solid var(--line-2);
  transition: border-color 0.25s, background 0.25s;
}
.hud-legend li.is-active { border-top-color: var(--blue-hi); background: linear-gradient(180deg, rgba(0, 128, 240, 0.09), transparent); }
.hud-num { padding-top: 3px; font-family: var(--font-label); font-size: 0.74rem; color: var(--blue-hi); }
.hud-legend li > span:last-child { min-width: 0; color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }
.hud-legend strong { display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); }

/* Who it's for */
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.industry { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 22px 22px 24px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.industry:hover { transform: translateY(-2px); border-color: rgba(46, 155, 255, 0.4); }
.industry > div { min-width: 0; }
.industry h3 { margin: 3px 0 6px; font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }
.industry p { margin: 0; color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }

/* Team / client benefits */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.benefit { min-width: 0; padding: 36px 36px 38px; }
.benefit::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 36px;
  right: 36px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-hi), rgba(46, 155, 255, 0) 75%);
  box-shadow: 0 0 12px rgba(0, 128, 240, 0.6);
}
.benefit-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.benefit-title { min-width: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 750; line-height: 1.2; overflow-wrap: break-word; }
.benefit-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.benefit-list li { position: relative; padding-left: 28px; color: var(--text-2); line-height: 1.6; }
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue-hi);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(46, 155, 255, 0.55);
}
.benefit-list strong { color: var(--text); font-weight: 650; }

/* Options */
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.option { min-width: 0; padding: 24px 24px 26px; }
.option h3 { margin: 16px 0 6px; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.option p { margin: 0; color: var(--text-2); font-size: 0.93rem; line-height: 1.55; }

/* Pricing / timing / what to send */
.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.info-strip > div { min-width: 0; padding: 24px 26px 26px; }
.info-strip > div + div { border-left: 1px solid var(--line); }
.info-strip h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.info-strip h3 .icon { color: var(--blue-hi); }
.info-strip p { margin: 0; color: var(--text-2); font-size: 0.93rem; line-height: 1.55; }

/* Recent builds (photos added in the admin) */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gallery-item { min-width: 0; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.gallery-text { padding: 16px 18px 18px; }
.gallery-text h3 { font-size: 1rem; }
.gallery-text p { margin: 4px 0 0; color: var(--text-3); font-size: 0.9rem; }

/* Testimonials (added in the admin) */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.quote-card { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px; }
.quote-mark { width: 28px; height: 28px; color: var(--blue-hi); }
.quote-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.quote-card figcaption { margin-top: auto; color: var(--text-3); font-size: 0.9rem; }
.quote-card figcaption strong { display: block; color: var(--text); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); align-items: start; gap: 28px 56px; }
.faq-layout .muted { margin: 14px 0 0; }
.faq { padding: 4px 28px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--blue-hi), var(--blue-hi)) center / 14px 2px no-repeat,
    linear-gradient(var(--blue-hi), var(--blue-hi)) center / 2px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-hi); }
.faq details p { max-width: 62em; margin: -4px 0 20px; color: var(--text-2); }
.text-link { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #fff; }

/* ---------- Shop sections ---------- */

.shop-group + .shop-group { margin-top: 56px; }
.shop-group-head { margin-bottom: 22px; }
.shop-group-head .section-title { margin-bottom: 6px; }
.shop-group-head .muted { margin: 0; max-width: 46em; }

/* ---------- Sections and grids ---------- */

.section { padding: 64px 0; }
.section-flush { padding-top: 0; }
.section-tight { padding-top: 16px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; letter-spacing: 0.01em; }

.page-head { padding: 48px 0 12px; }
.page-head-compact { padding: 28px 0 4px; }
.page-title { margin-bottom: 14px; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: 0.01em; }

.grid { display: grid; gap: 22px; }
.grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-services { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
/* The first service (custom toolkits) is the flagship, so it gets a double-width card */
.grid-services-lead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-services-lead > .service-card:first-child { grid-column: span 2; }
.grid-services-lead > .service-card:first-child .card-title { font-size: 1.55rem; }
.grid-services-lead > .service-card:first-child .card-text { max-width: 36em; font-size: 1.05rem; }


/* ---------- Cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 155, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 128, 240, 0.12),
    0 30px 60px -30px rgba(0, 128, 240, 0.35);
}

.product-card { overflow: hidden; }

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 75% at 50% 35%, #131a24, #07090c 75%);
}
.media-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .media-img { transform: scale(1.04); }
.media-tag { position: absolute; left: 14px; top: 14px; }

/* Placeholder artwork: a technical line drawing on blueprint grid */
.art {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(80% 75% at 50% 35%, #131a24, #07090c 75%);
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 155, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 155, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
}
.art-svg {
  position: relative;
  width: 58%;
  max-height: 86%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(0, 128, 240, 0.25));
  transition: transform 0.6s var(--ease);
}
.product-card:hover .art-svg { transform: scale(1.05) rotate(-3deg); }
.art-line { fill: none; stroke: #d3d8de; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.art-face { fill: rgba(0, 128, 240, 0.32); }
.art-guide { fill: none; stroke: rgba(46, 155, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 7; }
.art-dim { fill: none; stroke: rgba(46, 155, 255, 0.7); stroke-width: 1.2; stroke-dasharray: 3 5; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; }
.card-title a:hover { color: #fff; }
.card-text { margin: 8px 0 18px; color: var(--text-2); font-size: 0.93rem; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; }
.price-lg { font-size: 2rem; font-weight: 750; }
.price-note { color: var(--text-3); font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; letter-spacing: 0; }
.price-quote { color: var(--blue-hi); white-space: normal; }
.price-lg.price-quote { font-size: clamp(1.45rem, 5.5vw, 2rem); line-height: 1.15; }
.price-muted { color: var(--text-3); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; }

.service-card { padding: 26px; }
.service-card .card-title { margin-top: 20px; font-size: 1.15rem; }
.link-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s;
}
.service-card:hover .link-arrow { transform: translateX(3px); border-color: var(--blue); color: var(--blue-hi); }

/* Makes the whole card clickable from the title link */
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--blue-hi);
  background:
    linear-gradient(180deg, #161b22, #0a0d11) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.22)) border-box;
  box-shadow: inset 0 0 18px rgba(0, 128, 240, 0.15), 0 10px 22px -12px rgba(0, 0, 0, 0.95);
}
.icon-tile-lg { width: 64px; height: 64px; border-radius: 14px; }
.icon-tile-sm { width: 38px; height: 38px; border-radius: 10px; }
.icon-tile-lg .icon { width: 28px; height: 28px; }

/* ---------- Shop filter bar ---------- */

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: end;
  gap: 16px 28px;
  margin-bottom: 40px;
  padding: 18px 20px 20px;
}
.filter-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; min-width: 0; }
.filter-field, .filter-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.filter-field label, .filter-search label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.filter-field select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
  background-color: var(--field);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-field select:hover { border-color: rgba(214, 222, 235, 0.28); }
.filter-field select:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(0, 128, 240, 0.25); }
.filter-field select:disabled { opacity: 0.5; cursor: not-allowed; }
.filter-field option, .filter-field optgroup { background: #0d1015; color: var(--text); }
.filter-apply { grid-column: 1 / -1; justify-self: start; height: 46px; } /* only shown without JavaScript */

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--field);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:hover { border-color: rgba(214, 222, 235, 0.28); }
.search-box:focus-within { border-color: var(--blue); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(0, 128, 240, 0.25); }
.search-icon { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.search-box input {
  flex: 1;
  width: 0; /* grows to fill the box, but never forces it wider on small phones */
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 40px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--text-3); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin-right: 3px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #1a8fff, #005fcc);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.search-submit:hover { box-shadow: 0 0 14px rgba(0, 128, 240, 0.75); }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -6px 0 24px; }
.results-count { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: 0.04em; color: var(--text-2); }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px 4px 14px;
  border: 1px solid rgba(46, 155, 255, 0.45);
  border-radius: 999px;
  font-size: 0.86rem;
  background: rgba(0, 128, 240, 0.12);
  transition: border-color 0.2s, background 0.2s;
}
.filter-chip:hover { border-color: var(--blue-hi); background: rgba(0, 128, 240, 0.22); }
.filter-chip .icon { width: 14px; height: 14px; color: var(--blue-hi); }
.filter-clear { margin-left: 4px; color: var(--text-3); font-size: 0.86rem; text-decoration: underline; text-underline-offset: 3px; }
.filter-clear:hover { color: var(--text); }
.shop-group-head .section-title a:hover { color: var(--blue-hi); }

/* ---------- Product and service detail ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-2); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.detail-grid-service { grid-template-columns: 1.15fr 0.85fr; }

.detail-stack { display: grid; gap: 24px; align-content: start; }
.detail-media { overflow: hidden; }

/* Specifications table (mostly for electronics) */
.specs { padding: 28px 32px 30px; }
.spec-list { display: grid; margin: 14px 0 0; }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.spec-list dt { color: var(--text-3); font-size: 0.9rem; }
.spec-list dd { margin: 0; font-weight: 550; }

/* "Request pricing" form on price-on-request products */
.pricing { padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.pricing > .muted { margin: 6px 0 0; }
.field-quantity input { max-width: 180px; }.detail-media .art, .detail-media .media-img { aspect-ratio: 1; border-radius: inherit; }

.detail-info, .detail-side, .form-panel, .summary { padding: 32px; }
.detail-info { display: flex; flex-direction: column; gap: 16px; }
/* A service page's details panel when another service is picked in the quote form */
.detail-info.is-swapping > * { animation: panel-swap 0.35s var(--ease) both; }
@keyframes panel-swap { from { opacity: 0; transform: translateY(6px); } }
.detail-info .lead { margin: 0; }
.detail-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: 0.01em; }
.side-title { margin-bottom: 6px; font-size: 1.3rem; }

.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--text-3); }

.buy-row { display: flex; gap: 12px; align-items: center; }

.assurances {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.92rem;
}
.assurances li { display: flex; align-items: center; gap: 10px; }
.assurances .icon { color: var(--blue-hi); }

.prose { padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); }
.prose p:last-child { margin-bottom: 0; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; height: 46px; padding: 3px; border-radius: var(--radius-sm); }
.buy-row .qty { height: 54px; }
.qty-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 100%;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.qty-btn:hover { background: rgba(0, 128, 240, 0.14); color: var(--blue-hi); }
.qty-input {
  width: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background-color: var(--field);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: #0d1015; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(214, 222, 235, 0.26); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(0, 128, 240, 0.25);
}
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error, .form-error { margin: 0; color: var(--danger); font-size: 0.85rem; }
.form-note { margin: 0; text-align: center; }
/* Long button labels wrap onto two lines on small phones instead of pushing the form wider */
.form .btn-block { height: auto; min-height: 54px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.3; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Read out by screen readers, not shown */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Spam check box (Cloudflare Turnstile) above the Send button */
.captcha { display: grid; gap: 8px; }
.js .captcha-box { min-height: 65px; }
.captcha-box iframe { max-width: 100%; }
.captcha-status:empty { display: none; }
.captcha-status { color: var(--warning); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; transition: border-color 0.3s; }
a.contact-card:hover { border-color: rgba(46, 155, 255, 0.4); }
.contact-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-value { display: block; margin-top: 3px; font-weight: 600; word-break: break-word; }
.form-panel .form { margin-top: 0; }
.form-panel .side-title + .form { margin-top: 18px; }
.contact-note { display: block; margin-top: 6px; color: var(--text-3); font-size: 0.85rem; }

/* ---------- Cart ---------- */

.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-lines { padding: 6px 24px; }

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto 96px auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-thumb {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.cart-thumb .art, .cart-thumb .media-img { width: 72px; height: 72px; }
.cart-thumb-service { border: 0; }
.cart-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
.cart-line-name:hover { color: var(--blue-hi); }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-total { font-family: var(--font-display); font-weight: 700; text-align: right; }
.cart-line .icon-button { width: 38px; height: 38px; color: var(--text-2); }
.cart-line .icon-button:hover { color: var(--danger); border-color: rgba(255, 107, 125, 0.5); background: rgba(255, 107, 125, 0.08); }

.summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.ship-progress p { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-2); }
.ship-progress .meter { margin-top: 10px; }

.meter {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-lo), var(--blue-hi));
  box-shadow: 0 0 12px rgba(0, 128, 240, 0.8);
}

.totals { display: grid; gap: 10px; margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt, .totals dd { margin: 0; }
.totals-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
}

/* ---------- Confirmation, empty and error states ---------- */

.confirm, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 52px 36px;
  text-align: center;
}
.confirm .lead, .empty-state .muted { margin: 0 auto; }
.confirm .totals, .confirm-items { width: 100%; max-width: 440px; text-align: left; }

.confirm-badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #5bb2ff, #0074e6 55%, #0050b3);
  box-shadow: 0 0 0 6px rgba(0, 128, 240, 0.12), 0 0 40px rgba(0, 128, 240, 0.55);
}
.confirm-badge .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.confirm-badge-pending { color: #1c1300; background: radial-gradient(circle at 35% 30%, #fff1cf, #ffc56b 55%, #d99a1c); box-shadow: 0 0 0 6px rgba(255, 197, 107, 0.12); }
.confirm-badge-muted { color: var(--text); background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-2); }

.confirm-items { display: grid; gap: 10px; margin: 18px 0 6px; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.confirm-items li { display: flex; justify-content: space-between; gap: 12px; }

.error-code { margin: 0; font-family: var(--font-display); font-size: 5.5rem; font-weight: 800; line-height: 1; }

.empty-state .icon-tile { margin-bottom: 4px; }

/* ---------- Call to action ---------- */

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  overflow: hidden;
}
.cta-panel .lead { margin: 12px 0 0; }
/* An arc of blue light across the panel, echoing the logo */
.cta-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -420px;
  top: -140px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: rgba(46, 155, 255, 0.55);
  filter: drop-shadow(0 0 14px rgba(0, 128, 240, 0.7));
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 40%, #000 60%, transparent 95%);
  mask-image: linear-gradient(180deg, transparent 5%, #000 40%, #000 60%, transparent 95%);
}

/* ---------- File attachments (quote forms) ---------- */

.field-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field .dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px dashed rgba(46, 155, 255, 0.45);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 128, 240, 0.1), transparent 60%),
    var(--field);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  /* It's a <label>, so undo the small uppercase style of the form's other labels */
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
/* The real file input covers the whole box, so clicking or dropping files anywhere on it works without JavaScript */
.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
/* Without JavaScript there's no file list, so show the browser's own picker, which names the chosen files */
.no-js .field .dropzone { flex-wrap: wrap; }
.no-js .dropzone input { position: static; order: 3; flex: 1 1 100%; height: auto; opacity: 1; color: var(--text-2); }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--blue-hi); background-color: rgba(0, 128, 240, 0.06); }
.dropzone.is-dragover { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(0, 128, 240, 0.25); }
.dropzone:focus-within { border-style: solid; border-color: var(--blue); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(0, 128, 240, 0.25); }
.dropzone-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--blue-hi);
  background: rgba(0, 128, 240, 0.12);
  box-shadow: inset 0 0 0 1px rgba(46, 155, 255, 0.35), 0 0 18px rgba(0, 128, 240, 0.2);
}
.dropzone-text { display: grid; gap: 2px; min-width: 0; }
.dropzone-text strong { font-family: var(--font-display); font-weight: 650; letter-spacing: 0.01em; }
.dropzone-hint { color: var(--text-3); font-size: 0.88rem; }
.dropzone-link { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }
.field-help { margin: 0; color: var(--text-3); font-size: 0.82rem; line-height: 1.5; }
.has-error .dropzone { border-color: var(--danger); }

.file-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.file-list[hidden] { display: none; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 8px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.file-item > .icon { color: var(--blue-hi); }
.file-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.92rem; font-weight: 550; }
.file-size { flex: none; color: var(--text-3); font-size: 0.82rem; }
.file-item.is-invalid { border-color: rgba(255, 107, 125, 0.6); }
.file-item.is-invalid .file-size { color: var(--danger); }
.file-remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
}
.file-remove:hover { color: var(--danger); background: rgba(255, 107, 125, 0.08); }

/* ---------- Quote list ---------- */

.quote-add { margin-top: 18px; }
.quote-add-row { display: flex; align-items: center; gap: 12px; }
.quote-add-row .qty { height: 54px; }
.quote-add-row .qty-input { width: 64px; }
.quote-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(46, 155, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(0, 128, 240, 0.08);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.quote-status:hover { border-color: var(--blue-hi); background: rgba(0, 128, 240, 0.14); }
.quote-status > .icon { color: var(--blue-hi); }
.quote-status > span:nth-child(2) { flex: 1; min-width: 0; }
.quote-status-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-hi);
}

.quote-grid-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 24px; align-items: start; }
.quote-lines { padding: 26px 26px 20px; }
.quote-lines-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.quote-items { margin: 0; padding: 0; list-style: none; }
.quote-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 0; }
.quote-line + .quote-line { border-top: 1px solid var(--line); }
.quote-line .qty-input { width: 64px; }
.quote-line .icon-button { width: 38px; height: 38px; color: var(--text-2); }
.quote-line .icon-button:hover { color: var(--danger); border-color: rgba(255, 107, 125, 0.5); background: rgba(255, 107, 125, 0.08); }
.quote-lines-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-intro { margin: 0; }

/* Kits filled to order: the screws in each slot */
.kit-form { display: grid; gap: 12px; margin-top: 18px; }
.kit-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kit-example { margin: -4px 0 2px; }
.slots { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.slot { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 6px 10px; }
.slot-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.slot.is-filled .slot-number { border-color: rgba(46, 155, 255, 0.5); background: rgba(0, 128, 240, 0.12); color: var(--blue-hi); }
.slot.has-error .slot-number { border-color: rgba(255, 107, 125, 0.6); color: var(--danger); background: rgba(255, 107, 125, 0.08); }
.slot-fields { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 72px; gap: 8px; }
.field.slot-fields input, .field.slot-fields select { min-width: 0; padding: 10px 12px; font-size: 0.92rem; }
.field.slot-fields select { padding-right: 32px; background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; text-overflow: ellipsis; }
.field.slot-fields select:has(option[value=""]:checked) { color: var(--text-3); }
.field.slot-fields input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field.slot-fields input[type="number"]::-webkit-outer-spin-button,
.field.slot-fields input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field.slot-fields [aria-invalid="true"] { border-color: var(--danger); }
.slot-error { grid-column: 2; }
.slot[hidden] { display: none; }
.kit-show-all {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--blue-hi);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.kit-show-all[hidden] { display: none; }
.kit-submit { display: grid; gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }

/* The screws in a kit, on the quote list */
.kit-contents { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 0.86rem; }
.kit-contents li { display: flex; gap: 10px; min-width: 0; }
.kit-contents li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.kit-contents-slot { flex: none; width: 20px; color: var(--text-3); font-family: var(--font-display); font-weight: 700; text-align: right; }
.quote-line.has-kit { align-items: start; }
.form-panel .form-intro + .form { margin-top: 18px; }
.narrow-panel { max-width: 720px; margin-inline: auto; }

/* ---------- A quote you sent (the customer's payment page) ---------- */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(46, 155, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(0, 128, 240, 0.08);
  color: var(--text-2);
}
.notice > .icon { flex: none; margin-top: 3px; color: var(--blue-hi); }
.quote-doc { padding: 26px 26px 22px; }
.priced-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; padding: 16px 0; }
.priced-line + .priced-line { border-top: 1px solid var(--line); }
.priced-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.priced-details { margin: 2px 0; color: var(--text-2); font-size: 0.88rem; overflow-wrap: anywhere; }
.priced-total { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-note { margin-top: 6px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text-2); }
.quote-note p:last-child { margin-bottom: 0; }
.quote-note .contact-label { margin-bottom: 8px; }
.pay-state { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--text-2); }
.pay-state > .icon { flex: none; margin-top: 3px; color: var(--blue-hi); }
.pay-state-done > .icon { color: var(--success); }
.pay-state-muted > .icon { color: var(--text-3); }

/* ---------- Order status ---------- */

.order-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.order-help { margin: 18px 0 0; line-height: 1.55; }
.order-card { display: grid; gap: 22px; padding: 32px; }
.order-card .confirm-items { max-width: none; margin: 0; }
.order-card .totals { max-width: none; }
.order-card > p { margin: 0; }
.order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.order-card-head p { margin: 0; }
.order-ref { margin: 4px 0 2px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: 0.04em; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 155, 255, 0.5);
  background: rgba(0, 128, 240, 0.14);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe6ff;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 10px var(--blue-hi); }
.status-fulfilled { border-color: rgba(61, 220, 151, 0.5); background: rgba(61, 220, 151, 0.12); color: #c9f7e2; }
.status-fulfilled::before { background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-cancelled { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text-2); }
.status-cancelled::before { background: var(--text-3); box-shadow: none; }

/* Three steps joined by a line that fills in blue as the order moves along */
.order-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.order-steps li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.order-steps li + li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line-2);
}
.order-steps li.is-done + li::before, .order-steps li.is-current::before { background: linear-gradient(90deg, var(--blue-lo), var(--blue-hi)); box-shadow: 0 0 10px rgba(0, 128, 240, 0.6); }
.order-step-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--panel);
}
.is-done .order-step-dot { border-color: var(--blue-hi); background: radial-gradient(circle, #fff 0 25%, var(--blue) 30%); box-shadow: 0 0 12px rgba(0, 128, 240, 0.8); }
.is-current .order-step-dot { border-color: var(--blue-hi); box-shadow: 0 0 0 5px rgba(0, 128, 240, 0.18); }
.order-step-label { margin-top: 6px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; }
.order-step-date { color: var(--text-3); font-size: 0.82rem; }

.tracking {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--field);
}
.tracking > .icon { color: var(--blue-hi); }
.tracking > div { flex: 1 1 180px; min-width: 0; }
.tracking p { margin: 0; }
.tracking-number { margin-top: 2px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.order-note { padding: 14px 16px; border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(0, 128, 240, 0.07); color: var(--text-2); }
.order-shipto { display: flex; align-items: center; gap: 8px; }
.order-shipto .icon { color: var(--blue-hi); }
.order-placeholder { padding: 30px 32px; }
.order-facts { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.order-facts li { display: flex; align-items: flex-start; gap: 16px; color: var(--text-2); line-height: 1.55; }
.order-facts .icon { margin-top: 2px; color: var(--blue-hi); }
.order-facts strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 700; color: var(--text); }

/* ---------- Policy pages ---------- */

.policy-glance { margin: 0 0 28px; }
.policy-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.policy-nav .contact-label { margin: 0 0 10px; }
.policy-nav a { padding: 7px 0 7px 14px; border-left: 2px solid var(--line-2); color: var(--text-2); font-size: 0.92rem; transition: color 0.2s, border-color 0.2s; }
.policy-nav a:hover { color: var(--text); border-left-color: var(--blue-hi); }
.policy { max-width: 820px; padding: 40px 44px 44px; color: var(--text-2); line-height: 1.7; }
.policy h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.policy h2:first-of-type { margin-top: 18px; }
.policy strong { color: var(--text); font-weight: 650; }
.policy ul, .policy ol { display: grid; gap: 10px; margin: 0 0 1em; padding-left: 0; list-style: none; }
.policy ul li { position: relative; padding-left: 24px; }
.policy ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 2px solid var(--blue-hi);
  border-radius: 1px;
  transform: rotate(45deg);
}
.policy ol { counter-reset: step; }
.policy ol li { position: relative; padding-left: 36px; counter-increment: step; }
.policy ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-label);
  font-size: 0.62rem;
  color: #fff;
  background: rgba(0, 98, 204, 0.85);
  box-shadow: 0 0 0 1px rgba(170, 215, 255, 0.6), 0 0 12px rgba(0, 128, 240, 0.6);
}
.policy-updated { margin: 0 0 6px; font-family: var(--font-label); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.policy-contact { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--field); }
.policy-contact p { margin: 0; }
.policy a[href^="tel:"], .footer-contact a[href^="tel:"] { white-space: nowrap; }

/* ---------- Toast messages ---------- */

.toasts {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(460px, 100% - 28px);
  transform: translateX(-50%);
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: rgba(13, 16, 21, 0.96);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.9);
  animation: toast-in 0.45s var(--ease) both;
}
.toast-text { flex: 1; font-size: 0.93rem; font-weight: 550; }
.toast > .icon { color: var(--blue-hi); }
.toast-error { border-left-color: var(--danger); }
.toast-error > .icon { color: var(--danger); }
.toast-link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-hi);
  white-space: nowrap;
}
.toast-link:hover { text-decoration: underline; }
.toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
}
.toast-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.toast.is-leaving { animation: toast-out 0.3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Footer ---------- */

.footer { margin-top: 32px; padding: 48px 0 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 12, 16, 0.6), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: 32px; }
.footer-brand .muted { margin: 16px 0 0; max-width: 28em; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { width: fit-content; color: var(--text-2); }
.footer-links a:hover { color: var(--blue-hi); }
.footer-secure { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.footer-detail { color: var(--text-3); font-size: 0.92rem; }
.footer-heading {
  margin-bottom: 6px;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.85rem;
}
.footer-top { color: var(--text-3); }
.footer-top:hover { color: var(--blue-hi); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-cta { display: none; }
  .filter-bar { grid-template-columns: minmax(0, 1fr); }
  .filter-search { order: -1; } /* search first once the bar stacks */
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .process { grid-auto-flow: row; }
  .process-step + .process-step { border-left: 0; border-top: 1px solid var(--line); }
  .service-strip .process-step { flex-direction: row; align-items: flex-start; }
  .grid-services-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolkit-intro { grid-template-columns: 1fr; }
  .toolkit-intro .hero-actions { justify-content: flex-start; }
  .kit-hero-grid, .faq-layout { grid-template-columns: 1fr; }
  .kit-hero-grid .hero-actions { justify-content: flex-start; }
  .spec-strip, .hud-legend, .industry-grid, .option-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip li:nth-child(odd) { border-left: 0; }
  .spec-strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .info-strip { grid-template-columns: 1fr; }
  .info-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-emblem { width: min(360px, 80%); margin: 8px auto 0; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .detail-grid-service, .contact-grid, .cart-grid, .quote-grid-layout, .order-layout,
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .policy-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .policy-nav .contact-label { width: 100%; margin-bottom: 2px; }
  .policy-nav a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.86rem; }
  .policy-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { position: static; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 38px; height: 38px; }
  .wordmark-main { font-size: 1.25rem; }
  .menu-button { display: inline-grid; }
  .nav-actions { margin-left: auto; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 20px;
    background: #07090c;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open .icon-open { display: none; }
  .nav.is-open .icon-close { display: block; }
  .nav-link { padding: 14px 4px; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
  .nav-link.is-active::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%); }
  .nav-cta { display: inline-flex; margin: 14px 0 0; height: 48px; }

  .hero { padding: 36px 0 40px; }
  .kicker { font-size: 0.6rem; letter-spacing: 0.18em; }
  .kicker::before { width: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 44px 0; }
  .section-flush { padding-top: 0; }
  .section-tight { padding-top: 12px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid-products { grid-template-columns: 1fr; }
  .grid-services-lead { grid-template-columns: 1fr; }
  .grid-services-lead > .service-card:first-child { grid-column: auto; }
  .kit-hero { padding: 36px 0 28px; }
  .spec-strip, .hud-legend, .industry-grid, .option-grid, .gallery, .benefits { grid-template-columns: 1fr; }
  .spec-strip li { padding: 16px 18px; }
  .spec-strip li + li { border-left: 0; border-top: 1px solid var(--line); }
  .benefits { gap: 20px; }
  .benefit { padding: 28px 22px 30px; }
  .benefit::after { left: 22px; right: 22px; }
  .hud-marker { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 0.6rem; }
  .hud-marker::after { inset: -7px; }
  .hud-legend { gap: 0; }
  .faq { padding: 2px 20px; }
  .filter-bar { padding: 16px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-fields .filter-field:nth-child(3) { grid-column: 1 / -1; }
  .page-head .hero-actions .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .detail-info, .detail-side, .form-panel, .summary { padding: 22px; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-contact { grid-column: 1 / -1; }

  .quote-lines, .quote-doc { padding: 20px 16px 16px; }
  .quote-line {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info remove" "thumb qty qty";
    gap: 10px 14px;
  }
  .quote-line .cart-thumb { grid-area: thumb; align-self: start; }
  .quote-line .cart-line-info { grid-area: info; }
  .quote-line .cart-line-qty { grid-area: qty; }
  .quote-line > form:last-child { grid-area: remove; justify-self: end; align-self: start; }
  .quote-add-row { flex-wrap: wrap; }
  .quote-add-row .btn { flex: 1 1 100%; }
  .quote-status { flex-wrap: wrap; }
  .slots { gap: 14px; }
  .slot { align-items: start; }
  .slot-fields { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px; }
  .field.slot-fields select { grid-column: 1 / -1; }
  .order-card, .order-placeholder { padding: 22px; }
  .tracking .btn { flex: 1 1 100%; }
  .tracking-number { letter-spacing: 0.02em; }
  .policy { padding: 26px 22px 30px; }
  .policy-glance { grid-template-columns: 1fr; }
  .field .dropzone { padding: 14px; gap: 12px; }

  .cart-lines { padding: 4px 16px; }
  .cart-line {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas: "thumb info remove" "thumb qty total";
    gap: 10px 14px;
  }
  .cart-thumb, .cart-thumb .art, .cart-thumb .media-img { width: 60px; height: 60px; }
  .cart-thumb { grid-area: thumb; align-self: start; }
  .cart-line-info { grid-area: info; }
  .cart-line-qty { grid-area: qty; }
  .cart-line-total { grid-area: total; }
  .cart-line > form:last-child { grid-area: remove; justify-self: end; }
  .buy-row { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .display { font-size: 2.2rem; }
  .display-page { font-size: 1.9rem; }
  .filter-field select { padding: 0 32px 0 12px; font-size: 0.9rem; background-position: calc(100% - 17px) 52%, calc(100% - 11px) 52%; }
}

@media (max-width: 340px) {
  .filter-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 0 20px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
