/* =============================================================
   DCT Performance — shared nav dropdown + sub-page styles
   Loaded on every page alongside styles.css
   -------------------------------------------------------------
   Contents
   A.  Services mega-dropdown (desktop)
   B.  Mobile drawer — services group
   C.  Active nav state
   D.  Sub-page hero + breadcrumb
   E.  Prose / overview
   F.  Feature grid + process steps
   G.  Image band
   H.  CTA band
   I.  Contact form
   J.  Responsive
   ============================================================= */

/* ---------- A. Services mega-dropdown ---------- */
.nav__item { position: relative; height: 74px; display: flex; align-items: center; }
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-9c);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  transition: color .3s ease;
}
.nav__trigger::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__item:hover .nav__trigger,
.nav__item:focus-within .nav__trigger { color: var(--ink); }
.nav__item:hover .nav__trigger::after,
.nav__item:focus-within .nav__trigger::after { transform: scaleX(1); }
.nav__caret { transition: transform .35s var(--ease); }
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret,
.nav__trigger[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(780px, calc(100vw - 40px));
  background: rgba(14,14,17,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-3);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease), visibility .3s;
  z-index: 120;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel,
.nav__panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(26px, 3vw, 52px);
  row-gap: 4px;
}
.svc-link {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 16px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 3px;
  transition: background .3s ease;
}
.svc-link:hover { background: rgba(255,255,255,0.04); }
.svc-link__icon {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--red);
  background: var(--red);
  color: #FFF;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.svc-link:hover .svc-link__icon { background: var(--red-hi); border-color: var(--red-hi); transform: translateY(-1px); }
.svc-link__icon svg { width: 19px; height: 19px; }
.svc-link__body { min-width: 0; }
.svc-link__name {
  display: block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.006em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.25;
}
.svc-link__blurb {
  display: block;
  margin-top: 5px;
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  color: var(--c-7c);
  text-wrap: pretty;
}
.nav__panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 15px 8px;
  border-top: 1px solid var(--line);
}
.nav__panel-foot .mono {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-7c);
}
.nav__panel-foot a {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-c0);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 3px;
  transition: color .3s ease;
}
.nav__panel-foot a:hover { color: var(--red-hi); }

/* Secondary nav button — ECU portal */
.nav__portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--ink);
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.nav__portal:hover { border-color: rgba(255,255,255,0.42); background: rgba(255,255,255,0.05); color: var(--ink); }
.nav__portal--drawer {
  margin-top: 22px;
  align-self: flex-start;
  padding: 14px 22px;
  font-size: 14px;
}

/* ---------- B. Mobile drawer — services group ---------- */
.nav__drawer-group { border-bottom: 1px solid var(--line); }
.nav__drawer-toggle {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(24px, 7vw, 34px);
  letter-spacing: -0.035em;
  color: var(--ink);
  text-align: left;
}
.nav__drawer-toggle .num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
  font-weight: 500;
  margin-right: 14px;
}
.nav__drawer-toggle .chev { font-size: 15px; color: var(--c-7c); transition: transform .3s ease; }
.nav__drawer-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__drawer-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.nav__drawer-sub.is-open { max-height: 760px; }
.nav__drawer-sub a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-body) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
  color: var(--c-c0) !important;
  padding: 11px 0 !important;
  border-bottom: 1px solid var(--line-soft) !important;
}
.nav__drawer-sub a:last-child { border-bottom: 0 !important; }
.nav__drawer-sub a .svc-link__icon { width: 30px; height: 30px; }
.nav__drawer-sub a .svc-link__icon svg { width: 15px; height: 15px; }

/* ---------- C. Active nav state ---------- */
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__item.is-active .nav__trigger { color: var(--ink); }
.nav__item.is-active .nav__trigger::after { transform: scaleX(1); }

/* ---------- D. Sub-page hero + breadcrumb ---------- */
.subhero {
  position: relative;
  padding: calc(74px + clamp(56px, 8vw, 104px)) var(--gutter) clamp(48px, 6vw, 84px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.subhero__wm {
  top: auto; bottom: -0.28em; right: -2vw;
  font-size: clamp(120px, 20vw, 300px);
  color: rgba(255,255,255,0.022);
}
.subhero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-7c);
  margin-bottom: clamp(28px, 3.4vw, 46px);
}
.breadcrumb a { color: var(--c-7c); transition: color .25s ease; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--c-3a); }
.breadcrumb .current { color: var(--red); }
.subhero__eyebrow { margin-bottom: clamp(22px, 2.6vw, 34px); }
.subhero__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.subhero__title .dot { color: var(--red); }
.subhero__lede {
  margin: clamp(26px, 3vw, 40px) 0 0;
  max-width: 60ch;
  font-size: clamp(15.5px, 1.35vw, 18.5px);
  line-height: 1.62;
  color: var(--c-c0);
  text-wrap: pretty;
}
.subhero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 3.6vw, 46px);
}
.subhero__cta .btn--primary { padding: 18px 28px; font-size: 14px; gap: 14px; }
.subhero__cta .btn--phone {
  padding: 18px 26px;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.subhero__cta .btn--phone:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.34); }

/* ---------- E. Prose / overview ---------- */
.prose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(28px, 4vw, 72px);
}
.prose p {
  margin: 0;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.68;
  color: var(--c-b4);
  text-wrap: pretty;
}
.lead-h {
  margin: 0 0 clamp(30px, 4vw, 52px);
  max-width: 22ch;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.lead-h .red { color: var(--red); }

/* ---------- F. Feature grid + process steps ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.feature {
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.4vw, 32px);
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background .35s ease;
}
.feature:hover { background: rgba(255,255,255,0.022); }
.feature__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-3);
  color: var(--red);
  margin-bottom: 22px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 {
  margin: 0 0 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--c-8a);
  text-wrap: pretty;
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(26px, 3.5vw, 56px);
}
.step { border-top: 1px solid var(--line-3); padding-top: 22px; }
.step:first-child { border-top-color: var(--red); }
.step__no {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}
.step h3 {
  margin: 0 0 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.step p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--c-8a); text-wrap: pretty; }

/* generic checklist reusing gains look */
.checklist { border-top: 1px solid var(--line-2); }
.checklist__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.checklist__item .tick { color: var(--red); flex: none; font-family: var(--ff-mono); font-size: 12px; }
.checklist__item span:last-child {
  font-family: var(--ff-display);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

/* ---------- G. Image band ---------- */
.image-band {
  position: relative;
  width: 100%;
  aspect-ratio: 21/8;
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.image-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.image-band__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,10,11,.7), transparent 45%, rgba(10,10,11,.5));
  pointer-events: none;
}
.image-band__cap {
  position: absolute; left: var(--gutter); bottom: clamp(20px, 3vw, 40px);
  display: flex; align-items: center; gap: 12px;
}
.image-band__cap .dash { width: 22px; height: 1px; background: var(--red); }
.image-band__cap .mono {
  font-family: var(--ff-mono);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-c0);
}

/* ---------- H. CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: clamp(72px, 9vw, 130px) var(--gutter);
}
.cta-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
}
.cta-band__h {
  margin: 0;
  max-width: 16ch;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--ink);
}
.cta-band__aside { display: flex; flex-direction: column; gap: 18px; }
.cta-band__aside p {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.66;
  color: var(--c-9c);
  text-wrap: pretty;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band__actions .btn--primary { padding: 18px 28px; font-size: 14px; gap: 14px; }
.cta-band__actions .btn--ghost { padding: 18px 26px; font-size: 14px; }

/* ---------- I. Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 86px);
  align-items: start;
}
.form { display: grid; gap: clamp(18px, 2vw, 24px); }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 22px);
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-7c);
}
.field label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-3);
  padding: 14px 16px;
  transition: border-color .3s ease, background .3s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C7C84' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--c-5e); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,0.05); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--red); }
.field__error {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--red-hi);
  display: none;
}
.field.is-invalid .field__error { display: block; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.form__submit .btn--primary { padding: 18px 30px; font-size: 14px; gap: 14px; border: 0; }
.form__note {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--c-7c);
  line-height: 1.6;
  max-width: 30ch;
}
.form__success {
  border: 1px solid var(--red);
  background: rgba(230,9,25,0.1);
  padding: 20px 22px;
  display: none;
}
.form__success.is-shown { display: block; }
.form__success h3 {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.form__success p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--c-c0); }

.contact-aside { display: flex; flex-direction: column; gap: clamp(26px, 3vw, 38px); }
.contact-card {
  border-top: 1px solid var(--line-3);
  padding-top: 22px;
}
.contact-card:first-child { border-top-color: var(--red); }
.contact-card__k {
  font-family: var(--ff-mono);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-7c);
  margin-bottom: 12px;
}
.contact-card__v {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.contact-card__v a { color: var(--ink); transition: color .25s ease; }
.contact-card__v a:hover { color: var(--red-hi); }
.contact-card address { font-style: normal; font-size: 15px; line-height: 1.66; color: var(--c-c0); }
.contact-card__sub { margin-top: 8px; font-size: 14.5px; color: var(--c-9c); }
.contact-card__sub a { color: var(--c-9c); }
.contact-card__sub a:hover { color: var(--ink); }

/* map embed */
.map-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line-3);
  filter: grayscale(0.4) contrast(1.05) brightness(0.85);
}

/* ---------- K. PowerBox tier cards ---------- */
.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.pb-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  padding: clamp(26px, 2.8vw, 38px);
}
.pb-card.is-flagship { border-color: var(--red); }
.pb-card__no {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 14px;
}
.pb-card__name {
  margin: 0 0 4px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.pb-card__headline {
  margin: 0 0 16px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: -0.02em;
  color: var(--red);
}
.pb-card__body {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--c-9c);
  text-wrap: pretty;
}
.pb-card .specs { margin-top: auto; }

/* =============================================================
   L. ART DIRECTION — imagery, layering, depth, graphics
   ============================================================= */
:root {
  --shadow:    0 24px 50px -28px rgba(0,0,0,0.8);
  --shadow-lg: 0 40px 90px -34px rgba(0,0,0,0.9);
}

/* Image frame primitive ---------------------------------------- */
.shot {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-3);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.shot--shadow { box-shadow: var(--shadow); }
/* branded duotone: desaturate + red/black wash so any photo fits */
.shot--duo img { filter: grayscale(1) contrast(1.08) brightness(0.82); }
.shot--duo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(230,9,25,0.34) 0%, rgba(10,10,11,0.28) 42%, rgba(10,10,11,0.62) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.shot--dark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.7), transparent 55%);
  pointer-events: none;
}
/* technical corner ticks */
.shot--ticks .tick-tl, .shot--ticks .tick-br {
  position: absolute; width: 16px; height: 16px; pointer-events: none; z-index: 2;
}
.shot--ticks .tick-tl { top: 10px; left: 10px; border-top: 1px solid rgba(255,255,255,.5); border-left: 1px solid rgba(255,255,255,.5); }
.shot--ticks .tick-br { bottom: 10px; right: 10px; border-bottom: 1px solid rgba(255,255,255,.5); border-right: 1px solid rgba(255,255,255,.5); }
/* mono label chip on an image */
.shot__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font: 500 9px/1 var(--ff-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-c0);
  background: rgba(10,10,11,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 10px;
}

/* Overlapping / layered composition --------------------------- */
.compose { position: relative; }
.compose__over {
  position: absolute;
  right: -5%;
  bottom: -9%;
  width: 44%;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.compose__over--left { right: auto; left: -5%; top: -9%; bottom: auto; }

/* Floating data chip ------------------------------------------ */
.chip {
  position: absolute; z-index: 4;
  background: rgba(14,14,17,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-3);
  box-shadow: var(--shadow);
  padding: 15px 18px;
}
.chip__n {
  font: 800 clamp(22px, 2.4vw, 32px)/1 var(--ff-display);
  letter-spacing: -0.035em; color: #FFF;
}
.chip__n .red { color: var(--red); }
.chip__l {
  margin-top: 5px;
  font: 500 9px/1 var(--ff-mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-9c);
}

/* Dyno power-curve graphic ------------------------------------ */
.dyno { position: relative; width: 100%; }
.dyno svg { display: block; width: 100%; height: auto; }
.dyno .grid-l { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.dyno .axis { stroke: rgba(255,255,255,0.18); stroke-width: 1; }
.dyno .curve { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dyno .curve--stock { stroke: #55555e; stroke-dasharray: 5 5; }
.dyno .curve--tuned { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(230,9,25,0.5)); }
/* draw the tuned curve once, on load (path uses pathLength="1") */
.dyno .curve--draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dynoDraw 1.9s var(--ease) 1.1s forwards;
}
@keyframes dynoDraw { to { stroke-dashoffset: 0; } }
.dyno__label {
  font: 500 9px var(--ff-mono); letter-spacing: 0.14em;
  text-transform: uppercase; fill: var(--c-7c);
}
.dyno__cap {
  display: flex; gap: 22px; margin-top: 16px;
  font: 500 9.5px/1 var(--ff-mono); letter-spacing: 0.16em; text-transform: uppercase;
}
.dyno__cap span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-7c); }
.dyno__cap .k { width: 16px; height: 2px; }
.dyno__cap .k--tuned { background: var(--red); }
.dyno__cap .k--stock { background: #55555e; }

/* Circuit / trace texture ------------------------------------- */
.traces {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.5;
}
.traces svg { width: 100%; height: 100%; }
.traces path { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.traces circle { fill: rgba(230,9,25,0.35); }

/* Marquee ticker ---------------------------------------------- */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: marqueeMove 34s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Card lift --------------------------------------------------- */
.cov__cell, .pb-card { transition: background .35s ease, transform .4s var(--ease), box-shadow .4s var(--ease), border-color .35s ease; }
.cov__cell:hover, .pb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Section image band with duotone (reused on subpages) -------- */
.band-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(360px, 42vw, 560px);
}
.band-split__media { position: relative; overflow: hidden; }
.band-split__media img { width: 100%; height: 100%; object-fit: cover; }
.band-split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,6vw,90px) var(--gutter); }
.band-split--alt { direction: rtl; }
.band-split--alt > * { direction: ltr; }

/* Image cluster (3-up asymmetric) ----------------------------- */
.cluster {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  aspect-ratio: 1/1;
}
.cluster > :nth-child(1) { grid-row: 1 / 3; }

/* Hero spec panel --------------------------------------------- */
.hero__panel {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  top: 52%;
  transform: translateY(-50%);
  width: min(30vw, 340px);
  z-index: 3;
}
.hero__figure { position: relative; }
.hero__shot { aspect-ratio: 4/5; }
.hero__chip { left: -28px; bottom: -22px; }
.hero__dyno {
  margin-top: 42px;
  background: rgba(14,14,17,0.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-3);
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}
.hero__dyno-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hero__dyno-head .mono { font: 500 9px var(--ff-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-7c); }
.hero__dyno-gain { color: var(--red) !important; }
.hero__chip { left: -26px; bottom: 92px; }
.hero__marquee {
  flex: 1;
  font: 500 9.5px/1 var(--ff-mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-7c);
}
.hero__marquee i { color: var(--c-3a); font-style: normal; margin: 0 clamp(14px,2.4vw,34px); }
@media (min-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; max-width: 520px; gap: clamp(22px,2.4vw,32px); }
}
@media (max-width: 1079px) {
  .hero__panel { display: none; }
}

/* Coverage — dotted UK map background */
.cov__map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(240,240,242,0.17) 1.5px, transparent 1.7px);
  background-size: 17px 17px;
  -webkit-mask-image: url(../uk-map.svg);
  mask-image: url(../uk-map.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 90% 48%;
  mask-position: 90% 48%;
  -webkit-mask-size: auto 92%;
  mask-size: auto 92%;
}
/* a soft red glow behind the map's south, where the workshop sits */
.cov__map::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(230,9,25,0.5), transparent 70%);
  filter: blur(6px);
  opacity: 0.5;
}
@media (max-width: 860px) {
  .cov__map { -webkit-mask-position: 50% 20%; mask-position: 50% 20%; -webkit-mask-size: auto 46%; mask-size: auto 46%; opacity: 0.6; }
  .cov__map::after { display: none; }
}

/* Full-bleed showcase band */
.showcase {
  position: relative;
  min-height: clamp(360px, 52vw, 600px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.showcase__img {
  position: absolute; inset: -6% 0;
  width: 100%; height: 112%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.66);
}
.showcase__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.95) 4%, rgba(10,10,11,0.45) 58%, rgba(230,9,25,0.14) 100%);
}
.showcase__inner { position: relative; z-index: 2; width: 100%; padding: clamp(40px,6vw,88px) var(--gutter); }
.showcase__kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font: 500 9.5px var(--ff-mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-9c);
}
.showcase__kicker .dash { width: 22px; height: 1px; background: var(--red); }
.showcase__statement {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 20ch;
}
.showcase__statement .red { color: var(--red); }

/* Technical — ECU grid + image column */
.tech__cover {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  gap: clamp(30px, 3.2vw, 56px);
  align-items: stretch;
}
.tech__media .shot { height: 100%; }
@media (max-width: 920px) {
  .tech__cover { grid-template-columns: 1fr; }
  .tech__media .shot { min-height: 300px; }
}

/* Tuning boxes — duotone band */
.box__band {
  position: relative;
  margin: clamp(30px, 4vw, 52px) 0;
  aspect-ratio: 24/7;
  overflow: hidden;
}
.box__band img { width: 100%; height: 100%; object-fit: cover; }
.box__band-cap { position: absolute; left: clamp(16px,2vw,26px); bottom: clamp(14px,1.6vw,20px); z-index: 2; }
.box__band-cap .mono { font: 500 9.5px var(--ff-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-c0); }
.box__chip { right: clamp(16px,2.4vw,34px); top: -20px; }
@media (max-width: 640px) { .box__band { aspect-ratio: 16/9; } }

/* Diagnostics — floating shot over grid */
.diag__media {
  position: absolute;
  top: clamp(96px, 12vw, 150px);
  right: var(--gutter);
  width: min(30vw, 360px);
  z-index: 1;
}
.diag__media .shot { aspect-ratio: 4/3; }
@media (max-width: 1000px) { .diag__media { display: none; } }

/* Wider services with image column */
.wider__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: clamp(36px, 4.5vw, 84px);
  align-items: stretch;
}
.wider__aside {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}
.wider__shot {
  height: 100%;
  min-height: 320px;
}
.wider__chip { left: -26px; bottom: 26px; }
@media (max-width: 900px) {
  .wider__grid { grid-template-columns: 1fr; }
  .wider__shot { min-height: 340px; aspect-ratio: 16/10; }
  .wider__chip { left: 20px; bottom: 20px; }
}

/* Remapping section chip */
.remap__chip { top: 20px; left: -22px; }
@media (max-width: 720px) { .remap__chip { top: 12px; left: 10px; } }

/* Responsive for art devices ---------------------------------- */
@media (max-width: 720px) {
  .compose__over { position: static; width: 62%; margin: -14% 0 0 auto; aspect-ratio: 4/3; }
  .compose__over--left { margin: 0 auto -14% 0; }
  .band-split { grid-template-columns: 1fr; }
  .band-split--alt { direction: ltr; }
  .band-split__media { min-height: 300px; }
  .chip { padding: 12px 14px; }
}

/* =============================================================
   M. LOCATION PAGES
   ============================================================= */
.loc-services {
  border-top: 1px solid var(--line-2);
  margin-top: clamp(28px, 3.4vw, 46px);
}
.loc-service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(18px, 2.2vw, 26px) clamp(4px, 1vw, 14px);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  border-left: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s ease, padding-left .4s var(--ease);
}
.loc-service:hover {
  border-left-color: var(--red);
  background: rgba(255,255,255,0.022);
  padding-left: clamp(14px, 1.8vw, 26px);
}
.loc-service__no {
  font-family: var(--ff-mono);
  font-size: 10.5px; letter-spacing: 0.14em; color: var(--c-4e);
  transition: color .4s ease;
}
.loc-service:hover .loc-service__no { color: var(--red); }
.loc-service__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 32px);
  letter-spacing: -0.035em;
  color: var(--c-9c);
  transition: color .4s ease;
}
.loc-service:hover .loc-service__name { color: #FFF; }
.loc-service__arrow {
  font-family: var(--ff-display);
  font-size: 18px; color: var(--c-3a);
  transition: color .4s ease, transform .5s var(--ease);
}
.loc-service:hover .loc-service__arrow { color: var(--red); transform: translateX(5px); }

.loc-nearby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,200px), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  margin-top: clamp(28px, 3.4vw, 46px);
}
.loc-nearby__item {
  display: block;
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.2vw, 28px);
  background: var(--card);
  text-decoration: none;
  transition: background .35s ease, transform .4s var(--ease);
}
.loc-nearby__item:hover { background: #141418; }
.loc-nearby__city {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 28px);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.1;
}
.loc-nearby__meta {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-mono);
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-7c);
}

/* ---------- J. Responsive ---------- */
@media (max-width: 1160px) {
  .nav__actions .nav__portal { display: none; }
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .image-band { aspect-ratio: 3/2; }
}
@media (max-width: 620px) {
  .nav__panel-grid { grid-template-columns: 1fr; }
}
