/* ==========================================================================
   CircaCircuits — site styles
   ========================================================================== */

:root {
  /* Brand */
  --navy: #04227a;
  --navy-700: #0a2f96;
  --navy-800: #061b5e;
  --navy-900: #030f3a;
  --navy-950: #020a27;
  --copper: #d9822b;
  --copper-300: #f2a65a;
  --copper-100: #fbe8d3;
  --signal: #3ddc97;

  /* Neutrals */
  --ink: #0b1530;
  --text: #2b3550;
  --muted: #5d6784;
  --line: #e2e6f0;
  --line-strong: #cdd3e3;
  --paper: #f5f7fb;
  --white: #ffffff;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(4, 18, 66, .06), 0 2px 6px rgba(4, 18, 66, .05);
  --shadow-md: 0 4px 12px rgba(4, 18, 66, .07), 0 12px 32px rgba(4, 18, 66, .08);
  --shadow-lg: 0 20px 60px rgba(2, 10, 39, .35);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--copper); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.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; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--copper);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy-950); color: #c6cde3; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 16px 0 18px; }
.section-head p { font-size: 18.5px; color: var(--muted); }
.section--dark .section-head p { color: #a9b2cf; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--copper); color: var(--navy-950); box-shadow: 0 6px 20px rgba(217, 130, 43, .28); }
.btn--primary:hover { background: var(--copper-300); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy);
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand .logo-dark { display: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--white); transition: color .3s; }
.brand-name span { color: var(--copper-300); transition: color .3s; }
.site-header.is-scrolled .brand-name { color: var(--ink); }
.site-header.is-scrolled .brand-name span { color: var(--navy); }
.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .82);
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.site-header.is-scrolled .nav a:not(.btn) { color: var(--text); }
.site-header.is-scrolled .nav a:not(.btn):hover { color: var(--navy); background: var(--paper); }
.nav a.is-active { color: var(--white); }
.site-header.is-scrolled .nav a.is-active { color: var(--navy); }
.nav .btn { margin-left: 10px; padding: 11px 18px; font-size: 14.5px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--white);
}
.site-header.is-scrolled .nav-toggle { color: var(--ink); border-color: var(--line-strong); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, opacity .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn), .site-header .nav a:not(.btn) { color: var(--ink); padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav a:not(.btn):hover { background: transparent; color: var(--navy); }
  .nav .btn { margin: 16px 0 0; padding: 14px; }
  .nav-open.site-header { background: var(--white); border-bottom-color: var(--line); }
  .nav-open .brand-name { color: var(--ink); }
  .nav-open .brand-name span { color: var(--navy); }
  .nav-open .logo-light { display: none; }
  .nav-open .logo-dark { display: block; }
  .nav-open .nav-toggle { color: var(--ink); border-color: var(--line-strong); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(10, 47, 150, .75), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(217, 130, 43, .14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #c6cde3;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(72px, 9vw, 120px);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-traces { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .9; }
.hero-traces .trace { fill: none; stroke: rgba(122, 150, 230, .22); stroke-width: 1.5; }
.hero-traces .pulse { fill: none; stroke: var(--copper-300); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 40 1200; animation: pulse 7s linear infinite; filter: drop-shadow(0 0 4px rgba(242, 166, 90, .9)); }
.hero-traces .pulse:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; }
.hero-traces .pulse:nth-of-type(3n) { animation-duration: 11s; animation-delay: -6s; }
.hero-traces .pad { fill: var(--navy-900); stroke: rgba(122, 150, 230, .35); stroke-width: 1.5; }
@keyframes pulse { from { stroke-dashoffset: 1240; } to { stroke-dashoffset: 0; } }

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5.6vw, 66px); line-height: 1.05; letter-spacing: -0.035em; margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--copper-300); }
.hero-lead { font-size: clamp(17.5px, 1.6vw, 20px); max-width: 560px; color: #b9c2dd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font-size: 14.5px; color: #96a1c2; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--signal); flex-shrink: 0; }

/* Diagnostic panel */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 33, 92, .82), rgba(6, 16, 56, .9));
  border: 1px solid rgba(140, 162, 230, .2);
  border-radius: 18px; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); overflow: hidden;
}
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(140, 162, 230, .14); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8d99c0; }
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.panel-live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); }
.panel-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.panel-body { padding: 8px 10px 12px; }
.module {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 13px 12px; border-radius: 10px; transition: background-color .2s;
}
.module:hover { background: rgba(255, 255, 255, .04); }
.module + .module { border-top: 1px dashed rgba(140, 162, 230, .14); }
.module-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(4, 34, 122, .6); border: 1px solid rgba(140, 162, 230, .22); color: var(--copper-300); }
.module-icon svg { width: 20px; height: 20px; }
.module-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--white); letter-spacing: -0.01em; line-height: 1.3; }
.module-sub { display: block; font-size: 11.5px; color: #8390b8; letter-spacing: .04em; margin-top: 2px; }
.module-status { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; color: var(--signal); background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .25); white-space: nowrap; }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid rgba(140, 162, 230, .14); font-size: 12px; color: #7f8bb3; letter-spacing: .04em; }
.panel-foot b { color: var(--copper-300); font-weight: 500; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .panel { max-width: 560px; }
}

/* ---------- Value strip ---------- */
.values { background: var(--white); border-bottom: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { display: flex; gap: 16px; padding: 34px 28px; }
.value + .value { border-left: 1px solid var(--line); }
.value-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef2fc; color: var(--navy); }
.value-icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }
.value p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 1040px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .value { padding: 24px 4px; }
}

/* ---------- Services overview ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.service-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 28px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--copper));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-num { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--line-strong); letter-spacing: .08em; }
.service-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--white); margin-bottom: 24px; box-shadow: 0 8px 20px rgba(4, 34, 122, .22); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15.5px; flex-grow: 1; }
.service-card .text-link { margin-top: 22px; }
.service-card .tag { display: inline-block; align-self: flex-start; margin-bottom: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a4d10; background: var(--copper-100); padding: 4px 9px; border-radius: 6px; }
@media (max-width: 1040px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; }
  .service-card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(5) { grid-column: span 1; }
}

/* ---------- Service detail rows ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.detail + .detail { margin-top: clamp(80px, 11vw, 140px); }
.detail--reverse .detail-media { order: 2; }
.detail-copy h3 { font-size: clamp(28px, 3.4vw, 38px); margin: 14px 0 16px; }
.detail-copy .lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.detail-copy blockquote { margin: 0 0 28px; padding: 4px 0 4px 18px; border-left: 3px solid var(--copper); font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.45; letter-spacing: -0.01em; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 34px; }
.checklist li { display: flex; gap: 11px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--navy); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.detail-media {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-md);
}
.detail-media svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-chip {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-md);
}
.media-chip-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--copper-100); color: #8a4d10; flex-shrink: 0; }
.media-chip-icon svg { width: 20px; height: 20px; }
.media-chip b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 15px; line-height: 1.3; }
.media-chip span { font-size: 13.5px; color: var(--muted); }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail--reverse .detail-media { order: 0; }
  .detail-media { max-width: 620px; }
}
@media (max-width: 520px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--radius); padding: 36px 34px; }
.compare-col--bad { background: rgba(255, 255, 255, .03); border: 1px solid rgba(140, 162, 230, .16); }
.compare-col--good { background: linear-gradient(160deg, var(--navy), var(--navy-800)); border: 1px solid rgba(242, 166, 90, .35); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.compare-col h3 { font-size: 22px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.compare-col .sub { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }
.compare-col--bad .sub { color: #7f8bb3; }
.compare-col--good .sub { color: var(--copper-300); }
.compare-col li { display: flex; gap: 12px; padding: 13px 0; font-size: 15.5px; line-height: 1.5; }
.compare-col li + li { border-top: 1px solid rgba(140, 162, 230, .12); }
.compare-col li svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.compare-col--bad li { color: #9aa5c6; }
.compare-col--bad li svg { color: #e0707a; }
.compare-col--good li { color: #e4e9f7; }
.compare-col--good li svg { color: var(--signal); }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } .compare-col { padding: 28px 22px; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-dot {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  font-family: var(--font-mono); font-weight: 500; font-size: 17px; box-shadow: 0 0 0 8px var(--paper);
}
.step:first-child .step-dot { background: var(--navy); color: var(--white); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; text-align: left; padding: 0; }
  .step-dot { width: 52px; height: 52px; margin: 0; font-size: 15px; }
}

/* ---------- Trade program (Academy) ---------- */
.academy { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.academy-copy h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 16px 0 20px; }
.academy-copy > p { font-size: 18px; color: #a9b2cf; margin-bottom: 18px; }
.academy-points { margin: 30px 0 36px; display: grid; gap: 16px; }
.academy-points li { display: flex; gap: 14px; color: #d3d9ec; font-size: 16px; }
.academy-points svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--copper-300); margin-top: 2px; }
.modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course {
  padding: 24px 22px; border-radius: 14px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(140, 162, 230, .16);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.course:hover { border-color: rgba(242, 166, 90, .5); background: rgba(255, 255, 255, .055); transform: translateY(-3px); }
.course-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--copper-300); margin-bottom: 10px; display: block; }
.course h3 { font-size: 17px; margin-bottom: 8px; }
.course p { font-size: 14.5px; color: #98a3c4; line-height: 1.55; }
@media (max-width: 960px) { .academy { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .modules-grid { grid-template-columns: 1fr; } }

/* ---------- Trade-in ---------- */
.tradein { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tradein-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; }
.tradein-card h3 { font-size: 21px; margin: 18px 0 10px; }
.tradein-card > p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.tradein-card .service-icon { margin-bottom: 0; }
.mini-steps { display: grid; gap: 14px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 30px 1fr; gap: 14px; font-size: 15px; }
.mini-steps li::before { content: counter(ms, decimal-leading-zero); font-family: var(--font-mono); font-size: 12.5px; color: var(--copper); padding-top: 3px; }
.mini-steps b { color: var(--ink); font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--text); }
.tradein-banner {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 34px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy), var(--navy-800)); color: #d3d9ec;
}
.tradein-banner h3 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
@media (max-width: 860px) { .tradein { grid-template-columns: 1fr; } .tradein-card { padding: 28px 22px; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-mark {
  position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto;
  display: grid; place-items: center;
}
.about-mark .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 60s linear infinite; }
.about-mark .ring:nth-child(2) { inset: 12%; border-style: solid; border-color: var(--line); animation-direction: reverse; animation-duration: 80s; }
.about-mark .ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); }
.about-mark img { width: 52%; height: auto; position: relative; filter: drop-shadow(0 20px 40px rgba(4, 34, 122, .25)); }
@keyframes spin { to { transform: rotate(360deg); } }
.about-copy h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 16px 0 20px; }
.about-copy p { font-size: 17.5px; color: var(--muted); margin-bottom: 18px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.principle { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.principle b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.principle span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-mark { max-width: 300px; } }
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-wrap .section-head .btn { margin-top: 28px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; transition: background-color .2s, border-color .2s, transform .3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease), background-color .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-icon { background: var(--navy); border-color: var(--navy); }
.faq details[open] .faq-icon::before, .faq details[open] .faq-icon::after { background: var(--white); }
.faq details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 52px 26px 0; color: var(--muted); font-size: 16.5px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { position: static; } .faq-answer { padding-right: 0; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-copy h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 16px 0 20px; }
.contact-copy > p { font-size: 18px; color: #a9b2cf; margin-bottom: 34px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(140, 162, 230, .18);
  transition: border-color .2s, background-color .2s;
}
a.contact-card:hover { border-color: rgba(242, 166, 90, .55); background: rgba(255, 255, 255, .06); }
.contact-card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--copper-300); flex-shrink: 0; }
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #7f8bb3; }
.contact-card b { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 17px; word-break: break-word; }

.form {
  background: var(--white); color: var(--text); border-radius: 18px; padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.form h3, .section--dark .form h3 { font-size: 23px; margin-bottom: 6px; color: var(--ink); }
.form > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--white);
  font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-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='%235d6784' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(4, 34, 122, .12); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d14b55; }
.field-error { font-size: 13px; color: #c23944; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 14px; font-weight: 500; color: var(--text); transition: all .2s; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: 13.5px; max-width: 320px; line-height: 1.5; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #e9f8f1; color: #126b45; font-size: 14.5px; display: none; }
.form-status.is-visible { display: block; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--copper); color: var(--navy-950); padding: clamp(48px, 7vw, 72px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(var(--navy-950) 1.2px, transparent 1.2px); background-size: 18px 18px;
}
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy-950); font-size: clamp(26px, 3.4vw, 38px); max-width: 700px; }
.cta-band p { margin-top: 8px; font-size: 17px; color: rgba(2, 10, 39, .75); }
.cta-band .btn--navy { background: var(--navy-950); }
.cta-band .btn--navy:hover { background: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8d98bc; padding: 72px 0 32px; border-top: 1px solid rgba(140, 162, 230, .12); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 18px; font-size: 15px; max-width: 320px; line-height: 1.6; }
.site-footer .brand-name { color: var(--white); }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-300); margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { font-size: 15px; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(140, 162, 230, .12); font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-traces .pulse { display: none; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .hero-actions .btn { width: 100%; }
}

/* Keep decorative elements (rotating rings, traces) from widening the page on phones */
html, body { overflow-x: clip; }
#about { overflow: hidden; }

@media (max-width: 520px) {
  .media-chip { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; gap: 12px; }
  .media-chip-icon { width: 34px; height: 34px; }
  .media-chip span { display: none; }
}

/* ==========================================================================
   Equipment
   ========================================================================== */
.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.unit {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.unit:hover { border-color: rgba(4, 34, 122, .3); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.unit-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #eef2fc; color: var(--navy); }
.unit-icon svg { width: 22px; height: 22px; }
.unit--more { background: transparent; border-style: dashed; color: var(--muted); }
.unit--more .unit-icon { background: var(--copper-100); color: #8a4d10; }

.systems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.system { padding: 26px 24px; border-radius: 14px; background: linear-gradient(160deg, var(--navy), var(--navy-800)); color: #c6cde3; }
.system-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--copper-300); margin-bottom: 18px; }
.system-icon svg { width: 22px; height: 22px; }
.system h3 { color: var(--white); font-size: 18px; margin-bottom: 6px; }
.system p { font-size: 14.5px; line-height: 1.55; }

.clients {
  margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 14px 28px; flex-wrap: wrap;
  padding: 22px 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--white);
}
.clients-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.clients ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.clients li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.clients svg { width: 20px; height: 20px; color: var(--navy); }

@media (max-width: 1040px) { .units, .systems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .units { grid-template-columns: 1fr; } .systems { grid-template-columns: 1fr; } .unit { padding: 14px 16px; } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.section-head p strong { color: var(--ink); font-weight: 600; }

.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.def { display: flex; gap: 24px; align-items: flex-start; padding: 22px 26px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.def-label { flex-shrink: 0; width: 90px; padding-top: 3px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.def dl { margin: 0; display: grid; gap: 10px; flex: 1; }
.def dl div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.def dt { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.def dd { margin: 0; color: var(--muted); font-size: 15px; }

.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rate-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); overflow: hidden; box-shadow: var(--shadow-sm); }
.rate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 26px; background: var(--navy); color: #c6cde3; }
.rate-card--heavy .rate-head { background: var(--navy-950); }
.rate-head h3 { color: var(--white); font-size: 20px; }
.rate-head span { font-family: var(--font-mono); font-size: 13px; color: var(--copper-300); }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td { padding: 18px 26px; text-align: left; }
.rate-table thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rate-table tbody tr + tr { border-top: 1px solid var(--line); }
.rate-table tbody th { font-family: var(--font-display); font-weight: 600; color: var(--ink); white-space: nowrap; }
.rate-table tbody th svg { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 10px; color: var(--navy); }
.rate-table td { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rate-table td:last-child { color: var(--navy); }
.rate-foot { padding: 12px 26px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }

/* Estimator */
.estimator {
  display: grid; grid-template-columns: 1.3fr 1fr; margin-top: 18px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.estimator-inputs { padding: 30px 32px; background: var(--white); display: grid; gap: 18px; align-content: start; }
.estimator-inputs h3 { font-size: 21px; margin-bottom: 2px; }
.seg-group { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; }
.seg-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: var(--white); color: var(--navy); font-weight: 600; box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 1px; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.stepper label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.stepper > div { display: flex; border: 1.5px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.stepper button { width: 44px; border: 0; background: var(--paper); font-size: 20px; color: var(--navy); cursor: pointer; transition: background-color .2s; }
.stepper button:hover { background: #e7ebf6; }
.stepper input { flex: 1; min-width: 0; border: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 17px; padding: 10px 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper > div:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(4, 34, 122, .12); }

.estimator-result {
  position: relative; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: radial-gradient(500px 300px at 100% 0%, rgba(10, 47, 150, .8), transparent 60%), var(--navy-950); color: #a9b2cf;
}
.est-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-300); }
.est-total { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5vw, 60px); line-height: 1.05; color: var(--white); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.est-calc { font-family: var(--font-mono); font-size: 13px; color: #c6cde3; }
.est-note { font-size: 13.5px; line-height: 1.55; margin: 14px 0 20px; color: #8d98bc; }
.estimator-result .btn { align-self: flex-start; }

/* Hazard + other rates */
.extras { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-top: 18px; }
.hazard { border-radius: var(--radius); padding: 28px 30px; background: #fff8ef; border: 1px solid #f1d3ad; }
.hazard-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid #f1d3ad; }
.hazard-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--copper); color: var(--navy-950); }
.hazard-icon svg { width: 24px; height: 24px; }
.hazard h3 { font-size: 20px; }
.hazard-head p { font-size: 14px; color: #8a5a22; }
.hazard-price { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--ink); letter-spacing: -0.02em; text-align: right; line-height: 1; }
.hazard-price span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .04em; color: #8a5a22; margin-top: 6px; }
.hazard ul { display: grid; }
.hazard li { position: relative; padding: 12px 0 12px 22px; font-size: 15px; line-height: 1.5; color: var(--text); }
.hazard li + li { border-top: 1px dashed #efd6b6; }
.hazard li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 2px; background: var(--copper); transform: rotate(45deg); }

.other-rates { border-radius: var(--radius); padding: 28px 30px; background: var(--white); border: 1px solid var(--line); }
.other-rates h3 { font-size: 20px; margin-bottom: 12px; }
.rate-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rate-list li span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.rate-list svg { width: 18px; height: 18px; color: var(--navy); }
.rate-list b { font-family: var(--font-display); color: var(--ink); text-align: right; }
.other-rates h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin: 24px 0 12px; }
.invoice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.invoice li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.invoice li span { padding: 7px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--text); }
.invoice li + li::before { content: "+"; font-family: var(--font-mono); color: var(--muted); }
.invoice li.invoice-total::before { content: "="; }
.invoice li.invoice-total span { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }

@media (max-width: 960px) {
  .defs, .rates, .extras { grid-template-columns: 1fr; }
  .estimator { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .def { flex-direction: column; gap: 12px; padding: 20px; }
  .def dl div { grid-template-columns: 72px 1fr; }
  .rate-head { padding: 18px 20px; }
  .rate-table th, .rate-table td { padding: 14px 16px; }
  .rate-table td { font-size: 22px; }
  .rate-table tbody th svg { display: none; }
  .estimator-inputs, .estimator-result { padding: 24px 20px; }
  .seg-group { grid-template-columns: 1fr; gap: 8px; }
  .hazard, .other-rates { padding: 22px 20px; }
  .hazard-head { grid-template-columns: auto 1fr; }
  .hazard-price { grid-column: 1 / -1; text-align: left; }
}

/* ==========================================================================
   Service request form additions
   ========================================================================== */
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 9px; padding: 0; }
.fieldset legend .opt, .field label .opt { font-weight: 400; color: var(--muted); }
.form-section { padding: 20px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.form-section[hidden] { display: none; }
.form-section-title { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.form-section .form-grid { gap: 16px; }
.chips input[type="radio"]:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.contact-note { margin-top: 22px; font-size: 15px; color: #c6cde3; }
.contact-note-label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-300); margin-bottom: 4px; }
.faq-answer a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .form-section { padding: 16px; } }

@media (min-width: 961px) {
  .contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
}


/* ==========================================================================
   Veteran-owned + service area
   ========================================================================== */
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.vet-badge, .area-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; line-height: 1.2;
}
.vet-badge svg, .area-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.vet-badge { background: var(--copper); color: var(--navy-950); }
.area-badge { background: rgba(255, 255, 255, .08); color: #e4e9f7; border: 1px solid rgba(255, 255, 255, .18); }
.area-badge svg { color: var(--copper-300); }
.vet-badge--contact { margin-top: 26px; }
.vet-badge--footer { margin-top: 20px; }

.about-badge {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--navy); color: var(--white); box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.about-badge svg { width: 16px; height: 16px; color: var(--copper-300); }

.service-area { display: flex; gap: 16px; margin-top: 14px; padding: 20px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.service-area-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: var(--copper-300); }
.service-area-icon svg { width: 22px; height: 22px; }
.service-area b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.about-copy .service-area p { font-size: 15px; margin-bottom: 12px; }
.service-area strong { color: var(--ink); }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips li { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-strong); color: var(--text); }
.area-chips li.is-primary { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }
@media (max-width: 480px) { .service-area { flex-direction: column; } }


/* ==========================================================================
   Training dropdown (header)
   ========================================================================== */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .82); transition: color .2s, background-color .2s;
}
.nav-drop-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-drop-btn:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.site-header.is-scrolled .nav-drop-btn { color: var(--text); }
.site-header.is-scrolled .nav-drop-btn:hover { color: var(--navy); background: var(--paper); }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 310px; padding: 8px; transform: translate(-50%, -6px);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(2, 10, 39, .22);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop:hover .nav-drop-btn svg, .nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav .nav-menu a, .site-header.is-scrolled .nav .nav-menu a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); }
.nav .nav-menu a:hover, .site-header.is-scrolled .nav .nav-menu a:hover { background: #eef2fc; color: var(--ink); }
.nav-menu b { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.nav-menu span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }

@media (max-width: 1040px) {
  .nav-drop-btn, .site-header.is-scrolled .nav-drop-btn { width: 100%; justify-content: space-between; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .nav-drop-btn svg { display: none; }
  .nav-drop-btn:hover { background: transparent; color: var(--navy); }
  .nav-menu { position: static; width: auto; transform: none; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 4px 0 8px 12px; background: transparent; }
  .nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { transform: none; }
  .site-header .nav .nav-menu a, .site-header.is-scrolled .nav .nav-menu a { border-bottom: 0; padding: 10px 12px; font-size: 15px; }
}

/* ==========================================================================
   Training hub
   ========================================================================== */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path { display: flex; flex-direction: column; padding: 34px 32px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.path-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.path-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(4, 34, 122, .22); }
.path-icon svg { width: 28px; height: 28px; }
.path-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--copper-100); color: #8a4d10; }
.path h3 { font-size: clamp(22px, 2.4vw, 26px); margin-bottom: 12px; }
.path > p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.path-list { display: grid; gap: 10px; margin-bottom: 28px; }
.path-list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.5; }
.path-list svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--navy); }
.path-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

.path--dark { background: radial-gradient(600px 360px at 100% 0%, rgba(10, 47, 150, .85), transparent 60%), var(--navy-950); border-color: transparent; color: #c6cde3; }
.path--dark .path-icon { background: var(--copper); color: var(--navy-950); box-shadow: 0 8px 20px rgba(217, 130, 43, .3); }
.path--dark .path-tag { background: rgba(61, 220, 151, .12); color: var(--signal); }
.path--dark h3 { color: var(--white); }
.path--dark > p { color: #a9b2cf; }
.path-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; padding-top: 18px; border-top: 2px solid var(--copper); }
.path-stats b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; line-height: 1.1; }
.path-stats span { font-size: 13px; color: #9aa5c6; }

.academy-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .path { padding: 26px 22px; }
  .path-stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .path-actions .btn { width: 100%; }
}
