/* ==========================================================================
   MECH-12 FETR — Design System
   Technical / blueprint aesthetic for a solar structural steel manufacturer
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy-900: #061428;
  --navy-800: #0a1f3d;
  --navy-700: #102c52;
  --navy-600: #163a6b;
  --blue-500: #1b4e9f;   /* logo navy-blue */
  --blue-400: #2b83e0;
  --blue-300: #62a8f0;
  --orange-500: #e8722c; /* logo orange */
  --orange-400: #f58f4a;
  --amber-400: #f5a623;  /* logo bolt */

  /* Neutrals */
  --ink: #0c1826;
  --ink-2: #33465c;
  --steel: #6b7f96;
  --steel-2: #9aabbe;
  --line: #dde5ee;
  --paper: #ffffff;
  --paper-2: #f4f7fb;
  --paper-3: #eaf0f7;

  /* On dark */
  --d-text: #e8eff8;
  --d-mute: #96abc4;
  --d-line: rgba(255, 255, 255, .12);
  --d-line-2: rgba(255, 255, 255, .06);

  /* Type */
  --f-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Space */
  --wrap: 1240px;
  --gut: 24px;
  --sec-y: clamp(64px, 8vw, 118px);
  --r: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.22, .8, .28, 1);
  --shadow-1: 0 1px 2px rgba(10, 31, 61, .05), 0 8px 24px -12px rgba(10, 31, 61, .18);
  --shadow-2: 0 24px 60px -28px rgba(10, 31, 61, .42);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.05rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.85rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.03rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--orange-500); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-block: clamp(48px, 5vw, 76px); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.bg-paper { background: var(--paper-2); }
.bg-dark { background: var(--navy-800); color: var(--d-text); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }

/* Blueprint grid overlay */
.blueprint { position: relative; isolation: isolate; }
.blueprint::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--d-line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--d-line-2) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
}
.blueprint--light::before {
  background-image:
    linear-gradient(to right, rgba(16, 44, 82, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 44, 82, .05) 1px, transparent 1px);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .705rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-500);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.bg-dark .eyebrow { color: var(--orange-400); }
.lead { font-size: 1.09rem; color: var(--steel); max-width: 62ch; }
.bg-dark .lead { color: var(--d-mute); }
.sec-head { max-width: 660px; margin-bottom: clamp(34px, 4vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }
.mono { font-family: var(--f-mono); }
.hl { color: var(--orange-500); }
.hl-grad {
  background: linear-gradient(100deg, var(--blue-400), var(--orange-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange-500); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 26px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-head); font-weight: 600; font-size: .95rem;
  letter-spacing: -.01em;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(238, 123, 50, .8); }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }
.btn--blue { --bg: var(--blue-500); }
.btn--blue:hover { box-shadow: 0 14px 30px -14px rgba(27, 98, 196, .85); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--paper-2); box-shadow: none; }
.bg-dark .btn--ghost, .hero .btn--ghost, .phero .btn--ghost,
.ctaband .btn--ghost, .figpanel .btn--ghost, .drawer .btn--ghost {
  --fg: #fff; border-color: rgba(255, 255, 255, .28);
}
.bg-dark .btn--ghost:hover, .hero .btn--ghost:hover, .phero .btn--ghost:hover,
.ctaband .btn--ghost:hover, .figpanel .btn--ghost:hover, .drawer .btn--ghost:hover {
  background: rgba(255, 255, 255, .09);
}
.btn--sm { padding: 10px 20px; font-size: .87rem; }

.txtlink {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--f-head); font-weight: 600; font-size: .92rem;
  color: var(--blue-500);
}
.txtlink svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.txtlink:hover svg { transform: translateX(4px); }

/* ---------- Header ----------
   Transparent over the dark hero; white glass once the page scrolls (.is-stuck). */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.hdr__in { display: flex; align-items: center; gap: 20px; height: 82px; transition: height .35s var(--ease); }
.hdr.is-stuck {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px -20px rgba(10, 31, 61, .5);
}
.hdr.is-stuck .hdr__in { height: 70px; }

/* Brand lockup: logo.png (emblem) + logo-name.png (wordmark) + tagline */
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex-shrink: 0; }
.brand__mark { height: 46px; width: auto; flex-shrink: 0; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { display: block; height: 21px; width: auto; }
/* Two copies of the wordmark: white-text on the dark hero, original artwork on light */
.brand__name--dark { display: none; }
.hdr.is-stuck .brand__name--light { display: none; }
.hdr.is-stuck .brand__name--dark { display: block; }
.brand__tag {
  font-family: var(--f-body); font-size: .6rem; font-weight: 500;
  letter-spacing: .01em; color: var(--d-mute); margin-top: 6px; white-space: nowrap;
}
.hdr.is-stuck .brand__tag { color: var(--ink-2); }
.brand__tag::before { content: "— "; color: var(--steel-2); }
.brand__tag::after { content: " —"; color: var(--steel-2); }
.hdr.is-stuck .brand__mark { height: 40px; }
@media (max-width: 480px) {
  .brand { gap: 9px; }
  .brand__mark, .hdr.is-stuck .brand__mark { height: 34px; }
  .brand__name { height: 15px; }
  .brand__tag { display: none; }
}
/* Footer is dark: stacked logo (as in the original artwork) on a transparent ground,
   using the white-text wordmark like the dark header */
.ftr .brand {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%;
}
.ftr .brand__txt { align-items: center; }
.ftr .brand__mark { width: 176px; max-width: 100%; height: auto; }
.ftr .brand__name { width: 204px; max-width: 100%; height: auto; }
.ftr .brand__tag { display: block; color: var(--d-mute); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: 999px;
  font-size: .925rem; font-weight: 500; color: rgba(255, 255, 255, .82);
  transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a.active { color: #fff; }
.hdr.is-stuck .nav a { color: var(--ink-2); }
.hdr.is-stuck .nav a:hover { color: var(--navy-800); background: var(--paper-3); }
.hdr.is-stuck .nav a.active { color: var(--navy-800); }
.nav a.active::after {
  content: ""; display: block; height: 2px; width: 16px;
  background: var(--orange-500); border-radius: 2px;
  margin: 3px auto -6px;
}
.hdr__cta { flex-shrink: 0; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.8px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hdr.is-stuck .burger { border-color: var(--line); }
.hdr.is-stuck .burger span { background: var(--navy-800); }
body.nav-open .burger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy-900);
  padding: 104px var(--gut) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }
.drawer a.dlink {
  font-family: var(--f-head); font-size: 1.5rem; font-weight: 600; color: #fff;
  padding: 13px 0; border-bottom: 1px solid var(--d-line-2);
  display: flex; align-items: baseline; gap: 14px;
}
.drawer a.dlink span { font-family: var(--f-mono); font-size: .66rem; color: var(--orange-500); }
.drawer .btn { margin-top: 26px; align-self: flex-start; }
.drawer__foot { margin-top: auto; padding-top: 30px; color: var(--d-mute); font-size: .87rem; }
.drawer__foot a { color: var(--d-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 720px at 78% 14%, #17427c 0%, transparent 62%), var(--navy-900);
  color: var(--d-text);
  padding: clamp(122px, 15vw, 168px) 0 clamp(70px, 7vw, 104px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--d-line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--d-line-2) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 30%, #000, transparent 75%);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
  opacity: .5; animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow--a { width: 480px; height: 480px; background: #1b62c4; top: -140px; right: -60px; }
.hero__glow--b { width: 380px; height: 380px; background: #e8722c; bottom: -170px; left: -80px; opacity: .3; animation-delay: -7s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero__glow { animation: none; } }

.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
@media (max-width: 1020px) { .hero__in { grid-template-columns: 1fr; gap: 44px; } }

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__sub { font-size: 1.1rem; color: var(--d-mute); max-width: 54ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--d-mute); }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange-500); }

/* Rotating word */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > i {
  grid-area: 1/1; font-style: normal;
  background: linear-gradient(96deg, var(--blue-300), var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.32em); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.rotator > i.on { opacity: 1; transform: none; }

/* Technical SVG figure */
.figure-tech { position: relative; }
.figure-tech svg { width: 100%; height: auto; overflow: visible; }
.figure-tech figcaption {
  font-family: var(--f-mono); font-size: .655rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--d-mute); margin-top: 16px; text-align: center;
}
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.6s var(--ease) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw { animation: none; stroke-dashoffset: 0; } }
.panel-fill { animation: fadein .7s ease forwards; opacity: 0; }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Spec strip / stats ---------- */
.specstrip {
  position: relative; z-index: 3;
  background: var(--navy-800);
  border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line);
}
.specstrip__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec {
  padding: 30px 26px; border-right: 1px solid var(--d-line-2);
}
.spec:last-child { border-right: 0; }
.spec b {
  display: block; font-family: var(--f-head); font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  font-weight: 600; color: #fff; letter-spacing: -.035em; line-height: 1;
}
.spec b i { font-style: normal; color: var(--orange-500); }
.spec small {
  display: block; margin-top: 9px; font-family: var(--f-mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--d-mute);
}
@media (max-width: 860px) {
  .specstrip__in { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--d-line-2); }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #cbd8e8; }
.bg-paper .card { background: #fff; }
.card__num {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em;
  color: var(--steel-2); margin-bottom: 16px; display: block;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--steel); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li {
  position: relative; padding-left: 19px; font-size: .9rem; color: var(--steel);
  margin-bottom: 6px;
}
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border: 1.5px solid var(--orange-500); border-radius: 2px;
}

/* icon tile */
.itile {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(27, 98, 196, .1), rgba(238, 123, 50, .12));
  border: 1px solid rgba(27, 98, 196, .16);
  color: var(--blue-500);
}
.itile svg { width: 24px; height: 24px; }
.card:hover .itile { color: var(--orange-500); }

/* Corner-tick decoration */
.tick::before, .tick::after {
  content: ""; position: absolute; width: 11px; height: 11px; opacity: 0;
  transition: opacity .3s var(--ease);
}
.tick::before { top: -1px; left: -1px; border-top: 2px solid var(--orange-500); border-left: 2px solid var(--orange-500); border-radius: var(--r) 0 0 0; }
.tick::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--orange-500); border-right: 2px solid var(--orange-500); border-radius: 0 0 var(--r) 0; }
.tick:hover::before, .tick:hover::after { opacity: 1; }

/* Solution card with figure */
.scard { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.scard__fig {
  aspect-ratio: 16/10; background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  position: relative; overflow: hidden; display: grid; place-items: center;
}
.scard__fig svg { width: 100%; height: 100%; }
.scard__fig::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.scard__tag {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(6, 20, 40, .7); color: var(--orange-400);
  padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}
.scard__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.scard__body .txtlink { margin-top: auto; padding-top: 16px; }

/* Dark figure panel used beside split copy */
.figpanel {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(158deg, var(--navy-800) 0%, var(--navy-600) 100%);
  box-shadow: var(--shadow-2);
}
.figpanel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 80% at 40% 30%, #000, transparent 80%);
}
.figpanel svg { position: relative; z-index: 1; width: 100%; height: auto; }
.figpanel__cap {
  position: relative; z-index: 1; display: block; margin-top: 14px; text-align: center;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--d-mute);
}

/* Anchor offset under the fixed header */
[id] { scroll-margin-top: 96px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.split--rev > *:first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }
}
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 32px; font-size: .96rem; }
.checklist li strong { color: var(--ink); font-weight: 600; }
.bg-dark .checklist li strong { color: #fff; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 19px; height: 19px; border-radius: 6px;
  background: rgba(238, 123, 50, .14);
  border: 1px solid rgba(238, 123, 50, .4);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: .48em;
  width: 6px; height: 9px; border: solid var(--orange-500);
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}

/* ---------- Process timeline ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 30px 24px 34px;
  border-right: 1px solid var(--d-line-2); border-bottom: 1px solid var(--d-line-2);
  transition: background .3s;
}
.step:hover { background: rgba(255, 255, 255, .035); }
.step:nth-child(4n) { border-right: 0; }
.step:nth-child(n+5) { border-bottom: 0; }
@media (max-width: 900px) {
  .step:nth-child(4n) { border-right: 1px solid var(--d-line-2); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(n+5) { border-bottom: 1px solid var(--d-line-2); }
  .step:nth-child(n+7) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .step { border-right: 0 !important; border-bottom: 1px solid var(--d-line-2) !important; }
  .step:last-child { border-bottom: 0 !important; }
}
.step__n {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em;
  color: var(--orange-500); display: block; margin-bottom: 14px;
}
.step h4 {
  color: #fff; font-family: var(--f-head); font-size: 1.02rem;
  letter-spacing: -.01em; margin-bottom: .45rem;
}
.step p { font-size: .875rem; color: var(--d-mute); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; position: relative; padding: 20px 0;
  border-block: 1px solid var(--line); background: var(--paper);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 46px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee__item {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--steel); display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
}
.marquee__item::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--orange-500); }

/* ---------- Product / accessory chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2); transition: .25s var(--ease);
}
.chip:hover { border-color: var(--orange-500); color: var(--orange-500); transform: translateY(-2px); }
.bg-dark .chip { background: rgba(255, 255, 255, .04); border-color: var(--d-line); color: var(--d-text); }

/* Filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filters button {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  font-family: var(--f-mono); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); transition: .25s var(--ease);
}
.filters button:hover { color: var(--ink); border-color: var(--steel-2); }
.filters button.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.is-hidden { display: none !important; }

/* ---------- Spec table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.spec-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .93rem; }
.spec-table th {
  text-align: left; padding: 15px 20px;
  background: var(--navy-800); color: #fff;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 500;
}
.spec-table td { padding: 15px 20px; border-top: 1px solid var(--line); color: var(--steel); vertical-align: top; }
.spec-table tbody tr:nth-child(even) { background: var(--paper-2); }
.spec-table td:first-child { color: var(--ink); font-weight: 600; font-family: var(--f-head); white-space: nowrap; }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 46px 22px 0; position: relative;
  font-family: var(--f-head); font-weight: 600; font-size: 1.04rem; color: var(--ink);
  letter-spacing: -.015em;
}
.acc__btn::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--orange-500); border-bottom: 2px solid var(--orange-500);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.acc__item.open .acc__btn::after { transform: translateY(-25%) rotate(-135deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.acc__item.open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 24px; font-size: .96rem; color: var(--steel); max-width: 78ch; }

/* ---------- Page hero (inner) ---------- */
.phero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 520px at 82% 0%, #16407a 0%, transparent 60%), var(--navy-900);
  color: var(--d-text);
  padding: clamp(126px, 14vw, 168px) 0 clamp(54px, 6vw, 80px);
}
.phero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--d-line-2) 1px, transparent 1px), linear-gradient(to bottom, var(--d-line-2) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 70% 90% at 25% 20%, #000, transparent 72%);
}
.phero__in { position: relative; z-index: 2; max-width: 780px; }
.phero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.phero p { color: var(--d-mute); font-size: 1.06rem; max-width: 60ch; }
.crumb {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--d-mute); margin-bottom: 22px; display: flex; gap: 9px; align-items: center;
}
.crumb a:hover { color: var(--orange-400); }
.crumb span { color: rgba(255, 255, 255, .3); }

/* ---------- Contact ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(43, 131, 224, .14);
}
.field .err { display: none; color: #c8412c; font-size: .78rem; margin-top: 5px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #e0705c; }
.field.invalid .err { display: block; }
.form__note { font-size: .82rem; color: var(--steel); }
.formmsg {
  display: none; padding: 14px 18px; border-radius: 10px; font-size: .92rem;
  background: rgba(31, 150, 90, .1); border: 1px solid rgba(31, 150, 90, .3); color: #17693f;
}
.formmsg.show { display: block; animation: fadein .4s ease; }
.formmsg.is-error { background: rgba(200, 65, 44, .08); border-color: rgba(200, 65, 44, .3); color: #a3321f; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
/* Honeypot: off-screen rather than display:none, so simple bots still fill it in */
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.infocard {
  display: flex; gap: 15px; padding: 20px 22px;
  border: 1px solid var(--d-line); border-radius: var(--r);
  background: rgba(255, 255, 255, .035);
}
.infocard svg { width: 21px; height: 21px; color: var(--orange-500); flex-shrink: 0; margin-top: 3px; }
.infocard h4 { color: #fff; font-size: .93rem; margin-bottom: 4px; }
.infocard p, .infocard a { color: var(--d-mute); font-size: .92rem; margin: 0; }
.infocard a:hover { color: var(--orange-400); }

/* ---------- CTA band ---------- */
.ctaband {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--navy-600) 55%, #1e4c8c 100%);
  padding: clamp(40px, 5.5vw, 66px);
  color: var(--d-text);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
@media (max-width: 820px) { .ctaband { grid-template-columns: 1fr; } }
.ctaband::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(115deg, #000, transparent 65%);
}
.ctaband::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: var(--orange-500); filter: blur(110px); opacity: .3; right: -70px; bottom: -120px;
}
.ctaband > * { position: relative; z-index: 2; }
.ctaband h2 { color: #fff; margin-bottom: .35em; }
.ctaband p { color: var(--d-mute); max-width: 52ch; }
.ctaband .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-900); color: var(--d-mute); padding-top: clamp(56px, 6vw, 82px); }
.ftr__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 940px) { .ftr__top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr h5 {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase;
  color: #fff; margin: 0 0 18px; font-weight: 500;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a:hover { color: var(--orange-400); }
.ftr p, .ftr li { font-size: .92rem; }
.ftr__brandline { max-width: 34ch; margin: 18px 0 22px; }
.ftr__bot {
  border-top: 1px solid var(--d-line-2); padding: 22px 0 28px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .84rem;
}
.ftr__bot .mono { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }
.socials { display: flex; gap: 9px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--d-line); transition: .25s var(--ease);
}
.socials a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Utility / motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.d1 { transition-delay: .08s } .d2 { transition-delay: .16s } .d3 { transition-delay: .24s }
.d4 { transition-delay: .32s } .d5 { transition-delay: .4s } .d6 { transition-delay: .48s }

.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-800); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .35s var(--ease); box-shadow: var(--shadow-2);
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--orange-500); }
.totop svg { width: 17px; height: 17px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--navy-800); padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Attachments: drop zone + file list ---------- */
.dropzone {
  position: relative; cursor: pointer; text-align: center;
  padding: 28px 22px; border-radius: var(--r);
  border: 1.5px dashed #c4d2e3; background: var(--paper-2);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.dropzone:hover { border-color: var(--blue-400); background: #eef4fb; }
.dropzone.is-over {
  border-color: var(--orange-500); background: rgba(232, 114, 44, .07);
  transform: scale(1.01);
}
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone input[type="file"]:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }
.dropzone__icon {
  width: 30px; height: 30px; margin: 0 auto 10px; color: var(--blue-500);
  transition: transform .25s var(--ease);
}
.dropzone.is-over .dropzone__icon { color: var(--orange-500); transform: translateY(-3px); }
.dropzone__text { font-size: .95rem; color: var(--ink-2); margin-bottom: 4px; }
.dropzone__text strong { color: var(--ink); font-weight: 600; }
.dropzone__browse { color: var(--blue-500); text-decoration: underline; }
.dropzone small { font-size: .78rem; color: var(--steel); }

.filelist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.filelist__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.filelist__ext {
  flex-shrink: 0; min-width: 44px; text-align: center;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 6px;
  background: rgba(27, 78, 159, .09); color: var(--blue-500);
}
.filelist__name {
  flex: 1; min-width: 0; font-size: .9rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filelist__size {
  flex-shrink: 0; font-family: var(--f-mono); font-size: .72rem; color: var(--steel);
}
.filelist__x {
  flex-shrink: 0; width: 26px; height: 26px; line-height: 1; font-size: 1.15rem;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  color: var(--steel); cursor: pointer; transition: .2s var(--ease);
}
.filelist__x:hover { background: #c8412c; border-color: #c8412c; color: #fff; }
.filelist__total {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel); padding-top: 2px;
}
