/* ============================================================
   Brightwire Electric — demo build by NorthPilot.ai
   Dark-first design system, circuit-trace motif, no frameworks.
   ============================================================ */

:root {
  --ink: #15181E;          /* primary dark surface */
  --ink-2: #1B1F27;        /* raised dark surface */
  --ink-3: #232936;        /* highest dark surface */
  --paper: #F5F4F0;        /* light section surface */
  --paper-2: #ECEAE3;      /* raised light surface */
  --amber: #FFB300;
  --amber-hot: #FFC63D;
  --gray: #9CA3AF;
  --gray-dark: #5B6270;    /* secondary text on light */
  --line: rgba(245, 244, 240, 0.12);
  --line-soft: rgba(245, 244, 240, 0.07);
  --line-light: rgba(21, 24, 30, 0.14);
  --glow: 0 0 18px rgba(255, 179, 0, 0.35);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --wrap: 1160px;
  --radius: 10px;
  --speed: 200ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--amber); color: var(--ink);
  padding: 0.7rem 1.2rem; border-radius: 6px;
  font-weight: 600; text-decoration: none;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 24, 30, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; margin-right: auto;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.22rem; letter-spacing: -0.01em;
  min-height: 44px;
}
.brand .mark { flex: none; }
.brand em { font-style: normal; color: var(--amber); }
.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.9rem;
  text-decoration: none; color: var(--gray);
  font-weight: 500; font-size: 0.98rem;
  border-radius: 6px;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
  position: relative;
}
.site-nav a:hover { color: var(--paper); background: var(--line-soft); }
.site-nav a[aria-current="page"] { color: var(--paper); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 6px;
  height: 2px; background: var(--amber); border-radius: 1px;
}
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.cart-btn {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; color: var(--paper);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.cart-btn:hover { border-color: var(--amber); background: var(--line-soft); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: var(--ink);
  font-size: 0.72rem; font-weight: 700;
  border-radius: 10px; line-height: 1;
}
.cart-count[hidden] { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; color: var(--paper);
  align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.6rem;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  text-decoration: none; border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 150ms var(--ease), box-shadow var(--speed) var(--ease),
              background var(--speed) var(--ease), border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--ink); font-weight: 700; }
.btn-amber:hover { background: var(--amber-hot); box-shadow: var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.section--light .btn-ghost { border-color: var(--line-light); color: var(--ink); }
.section--light .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0.45rem 1.1rem; font-size: 0.93rem; }

/* ---------- Sections & rhythm ---------- */
main { display: block; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .eyebrow { color: #B87F00; }
.section--light .muted { color: var(--gray-dark); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.muted { color: var(--gray); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor;
  box-shadow: 22px 0 0 -4px currentColor;
}
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end; gap: 1.5rem;
}
.section-head--split > div { max-width: 620px; }

/* Circuit divider between sections */
.circuit-divider { display: block; width: 100%; height: 34px; }
.circuit-divider .trace { stroke: var(--line); }
.circuit-divider .node { fill: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 9vw, 7rem);
}
.hero-grid {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--gray); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-meta {
  display: flex; gap: 2rem; margin-top: 2.8rem; flex-wrap: wrap;
  font-size: 0.92rem; color: var(--gray);
}
.hero-meta strong {
  display: block; font-family: var(--font-head); font-size: 1.5rem;
  color: var(--paper); font-variant-numeric: tabular-nums;
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* Circuit trace animation */
.trace-anim {
  stroke-dasharray: 12 220;
  animation: trace-flow 5.5s linear infinite;
}
.trace-anim.t2 { animation-duration: 7s; animation-delay: -2.4s; }
.trace-anim.t3 { animation-duration: 8.5s; animation-delay: -4.2s; }
@keyframes trace-flow { to { stroke-dashoffset: -464; } }
.node-pulse { animation: node-pulse 2.6s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--ink-2); }
.trust-items {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; padding: 1.4rem 0;
}
.trust-item { display: flex; align-items: center; gap: 0.85rem; font-size: 0.95rem; }
.trust-item svg { flex: none; color: var(--amber); }
.trust-item strong { display: block; font-family: var(--font-head); font-weight: 500; }
.trust-item span { color: var(--gray); font-size: 0.85rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

.svc-card {
  position: relative; padding: 1.9rem 1.7rem 1.7rem;
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 0.4rem;
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.svc-card:hover { border-color: rgba(255, 179, 0, 0.55); transform: translateY(-3px); background: var(--ink-3); }
.svc-card .icon { color: var(--amber); margin-bottom: 0.9rem; }
.svc-card h3 { margin-bottom: 0.25rem; }
.svc-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }
.svc-card .card-cta {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 500;
  color: var(--amber); display: inline-flex; align-items: center; gap: 0.4rem;
}
.svc-card:hover .card-cta svg { transform: translateX(4px); }
.card-cta svg { transition: transform var(--speed) var(--ease); }

/* Featured shop row — asymmetric */
.shop-teaser {
  display: grid; gap: 1.4rem;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.shop-teaser-intro {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 1rem;
}

/* ---------- Product cards ---------- */
.product-card {
  background: #FFFFFF; border: 1px solid var(--line-light);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.product-card:hover { border-color: var(--amber); box-shadow: 0 10px 30px rgba(21,24,30,0.10); transform: translateY(-3px); }
.product-art {
  background: var(--ink); padding: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 150px;
}
.product-art svg { width: 84px; height: 84px; color: var(--amber); }
.product-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-cat {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-dark); font-weight: 600;
}
.product-name { font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; margin: 0; color: var(--ink); }
.product-desc { font-size: 0.88rem; color: var(--gray-dark); margin: 0; }
.product-foot { margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.product-price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.btn-add {
  min-height: 44px; padding: 0.4rem 1rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 7px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.9rem;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.btn-add:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: var(--glow); }
.btn-add.added { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* On dark shop-teaser variant */
.section:not(.section--light) .product-card { background: var(--ink-2); border-color: var(--line-soft); }
.section:not(.section--light) .product-card .product-name { color: var(--paper); }
.section:not(.section--light) .product-card .product-price { color: var(--paper); }
.section:not(.section--light) .product-card .product-cat,
.section:not(.section--light) .product-card .product-desc { color: var(--gray); }
.section:not(.section--light) .product-art { background: var(--ink); border-bottom: 1px solid var(--line-soft); }
.section:not(.section--light) .btn-add { background: transparent; border-color: var(--line); color: var(--paper); }
.section:not(.section--light) .btn-add:hover,
.section:not(.section--light) .btn-add.added { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* ---------- Shop filters ---------- */
.shop-controls { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-bottom: 2.2rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  min-height: 44px; padding: 0.4rem 1.05rem;
  border: 1px solid var(--line-light); border-radius: 999px;
  background: transparent; color: var(--gray-dark);
  font-family: var(--font-head); font-weight: 500; font-size: 0.9rem;
  transition: all var(--speed) var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--amber); }
.shop-search { margin-left: auto; position: relative; }
.shop-search input {
  min-height: 44px; width: min(280px, 100%);
  padding: 0.5rem 1rem 0.5rem 2.6rem;
  border: 1px solid var(--line-light); border-radius: 999px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 0.95rem;
}
.shop-search svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--gray-dark); pointer-events: none; }
.shop-empty { padding: 3rem 0; text-align: center; color: var(--gray-dark); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 12, 16, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity var(--speed) var(--ease);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(420px, 100vw);
  background: var(--ink-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 260ms var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line-soft);
}
.cart-head h2 { margin: 0; font-size: 1.2rem; }
.cart-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--paper);
  transition: border-color var(--speed) var(--ease);
}
.cart-close:hover { border-color: var(--amber); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.6rem 1.4rem; }
.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 0.9rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line-soft);
}
.cart-item-art {
  width: 56px; height: 56px; border-radius: 8px;
  background: var(--ink); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.cart-item-art svg { width: 32px; height: 32px; color: var(--amber); }
.cart-item-name { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; }
.cart-item-price { color: var(--gray); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.cart-qty { display: flex; align-items: center; gap: 0.15rem; margin-top: 0.4rem; }
.qty-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--paper);
  font-weight: 600; transition: border-color var(--speed) var(--ease);
}
.qty-btn:hover { border-color: var(--amber); }
.qty-val { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-remove {
  background: none; border: none; color: var(--gray);
  font-size: 0.8rem; text-decoration: underline; padding: 0.5rem 0.25rem;
  transition: color var(--speed) var(--ease);
}
.cart-remove:hover { color: var(--amber); }
.cart-line-total { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-empty { padding: 3rem 1rem; text-align: center; color: var(--gray); }
.cart-foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--line); background: var(--ink-3); }
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.35rem; font-variant-numeric: tabular-nums;
}
.cart-note { font-size: 0.8rem; color: var(--gray); margin-bottom: 1rem; }
.cart-foot .btn { width: 100%; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.page-hero .lede { color: var(--gray); max-width: 40rem; font-size: 1.12rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--gray); margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; gap: 0.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.breadcrumbs a { color: var(--gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.page-hero-bg svg { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 520px; height: auto; }

/* ---------- Services page ---------- */
.svc-block {
  display: grid; grid-template-columns: 120px 1fr; gap: 2rem;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.section--light .svc-block { border-color: var(--line-light); }
.svc-block:last-child { border-bottom: none; }
.svc-block .icon-plate {
  width: 96px; height: 96px; border-radius: 14px;
  background: var(--ink-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.section--light .svc-block .icon-plate { background: var(--ink); }
.svc-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc-block .muted { max-width: 42rem; }

.circuit-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.circuit-list li { position: relative; padding-left: 1.9rem; }
.circuit-list li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 9px; height: 9px; background: var(--amber);
  transform: rotate(45deg);
}
.circuit-list li::after {
  content: ""; position: absolute; left: 13px; top: calc(0.52em + 4px);
  width: 10px; height: 1px; background: var(--amber); opacity: 0.5;
}

.callout {
  margin-top: 1.6rem; padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--amber);
  background: rgba(255, 179, 0, 0.07);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
.callout strong { font-family: var(--font-head); }
.section--light .callout { background: rgba(255, 179, 0, 0.12); }

/* EV comparison table */
.ev-compare { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: 0.95rem; }
.ev-compare th, .ev-compare td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.ev-compare th { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ev-compare thead th:not(:first-child) { color: var(--amber); }
.ev-compare td:first-child { color: var(--gray); font-weight: 500; }
.section--light .ev-compare th, .section--light .ev-compare td { border-color: var(--line-light); }
.section--light .ev-compare thead th:not(:first-child) { color: #B87F00; }
.section--light .ev-compare td:first-child { color: var(--gray-dark); }
.table-scroll { overflow-x: auto; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process-step { position: relative; padding: 0 1.4rem 0 0; counter-increment: step; }
.process-step::before {
  content: "0" counter(step);
  font-family: var(--font-head); font-weight: 700;
  font-size: 2.6rem; color: transparent;
  -webkit-text-stroke: 1px var(--amber);
  display: block; line-height: 1; margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.process-step::after {
  content: ""; position: absolute; top: 1.25rem; left: 4.2rem; right: 1rem;
  height: 1px; background: var(--line);
}
.process-step:last-child::after { display: none; }
.process-step h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.process-step p { color: var(--gray); font-size: 0.92rem; margin: 0; }

/* ---------- Areas ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.area-tag {
  padding: 0.5rem 1.05rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.9rem; color: var(--gray);
  font-family: var(--font-head);
}
.section--light .area-tag { border-color: var(--line-light); color: var(--gray-dark); }
.area-tag.hq { border-color: var(--amber); color: var(--amber); }
.section--light .area-tag.hq { color: #9A6B00; border-color: #B87F00; }

/* ---------- About ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.stat { border-top: 2px solid var(--amber); padding-top: 1rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: var(--gray); font-size: 0.9rem; }
.section--light .stat span { color: var(--gray-dark); }

.value-card { padding: 1.7rem; background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line-light); }
.value-card h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.1rem; }
.value-card h3 svg { color: #B87F00; flex: none; }
.value-card p { margin: 0; color: var(--gray-dark); font-size: 0.95rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.team-card { text-align: center; }
.team-card .avatar {
  width: 110px; height: 110px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem;
  color: var(--amber); position: relative;
}
.team-card .avatar::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px dashed rgba(255, 179, 0, 0.35);
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.team-card p { color: var(--gray); font-size: 0.87rem; margin: 0; }

.cert-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cert {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--ink-2);
}
.cert svg { flex: none; color: var(--amber); }
.cert strong { font-family: var(--font-head); display: block; margin-bottom: 0.15rem; }
.cert span { color: var(--gray); font-size: 0.88rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; }
.field label .req { color: var(--amber); }
.section--light .field label .req { color: #B87F00; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0.65rem 0.95rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 0.98rem;
  transition: border-color var(--speed) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(245,244,240,0.3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #E5484D; }
.field-error { display: none; color: #FF8A8E; font-size: 0.82rem; }
.field.invalid .field-error { display: block; }
.section--light .field input, .section--light .field select, .section--light .field textarea {
  background: #fff; color: var(--ink); border-color: var(--line-light);
}
.section--light .field.invalid input, .section--light .field.invalid select, .section--light .field.invalid textarea { border-color: #C62A30; }
.section--light .field-error { color: #C62A30; }
.form-note { font-size: 0.85rem; color: var(--gray); }
.section--light .form-note { color: var(--gray-dark); }

.form-success {
  padding: 2.6rem 2rem; text-align: center;
  border: 1px solid rgba(255,179,0,0.4); border-radius: var(--radius);
  background: rgba(255, 179, 0, 0.06);
}
.form-success svg { margin: 0 auto 1rem; color: var(--amber); }
.form-success h3 { margin-bottom: 0.4rem; }
.form-success p { color: var(--gray); margin: 0; }
.section--light .form-success { background: rgba(255,179,0,0.1); }
.section--light .form-success p { color: var(--gray-dark); }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: start; }
.contact-aside { display: grid; gap: 1.3rem; }
.info-card { padding: 1.5rem 1.6rem; background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.info-card h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.info-card h3 svg { color: var(--amber); flex: none; }
.info-card p, .info-card li { color: var(--gray); font-size: 0.95rem; }
.info-card p { margin: 0; }
.info-card a { color: var(--paper); text-decoration-color: var(--amber); }
.info-card a:hover { color: var(--amber); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px dashed var(--line-soft); font-variant-numeric: tabular-nums; }
.hours li:last-child { border-bottom: none; }
.call-big {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 1.5rem; color: var(--paper); text-decoration: none;
  margin-top: 0.2rem;
}
.call-big:hover { color: var(--amber); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.demo-banner {
  display: flex; gap: 0.7rem; align-items: center;
  padding: 0.85rem 1.2rem; border-radius: 8px;
  background: rgba(255, 179, 0, 0.1); border: 1px dashed rgba(255,179,0,0.5);
  font-size: 0.92rem; margin-bottom: 2rem;
}
.demo-banner svg { flex: none; color: var(--amber); }
.summary-card { background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 100px; }
.summary-card h2 { font-size: 1.2rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.95rem; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.summary-line .qty { color: var(--gray); }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding-top: 1rem; font-variant-numeric: tabular-nums; }
.summary-sub { display: flex; justify-content: space-between; color: var(--gray); font-size: 0.9rem; padding: 0.4rem 0; font-variant-numeric: tabular-nums; }
fieldset { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.6rem; margin: 0 0 1.6rem; }
legend { font-family: var(--font-head); font-weight: 700; padding: 0 0.6rem; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer { background: #101318; border-top: 1px solid var(--line-soft); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-grid > * { min-width: 0; }
.footer-grid h3 { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); font-weight: 500; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--paper); text-decoration: none; font-size: 0.95rem; transition: color var(--speed) var(--ease); }
.footer-grid a:hover { color: var(--amber); }
.footer-brand p { color: var(--gray); font-size: 0.92rem; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between;
  font-size: 0.84rem; color: var(--gray);
}
.footer-bottom a { color: var(--amber); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .trace-anim { animation: none; stroke-dasharray: none; }
  .node-pulse { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art { max-width: 560px; }
  .shop-teaser { grid-template-columns: 1fr 1fr; }
  .shop-teaser-intro { grid-column: 1 / -1; padding-right: 0; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.4rem; }
  .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cert-strip { grid-template-columns: 1fr; }
  .contact-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .shop-teaser { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: 1fr; gap: 0.4rem; }
  .svc-block { grid-template-columns: 1fr; gap: 1.1rem; }
  .svc-block .icon-plate { width: 72px; height: 72px; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 48px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .shop-search { margin-left: 0; width: 100%; }
  .shop-search input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 480px) {
  .team-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 1.3rem; }
}
