:root {
  --giallo: #ffc000;
  --giallo-ombra: #917300;
  --carbony: #202020;
  --carbon-deep: #181818;
  --black: #000;
  --white: #fff;
  --marble: #f5f5f5;
  --graphite: #494949;
  --steel: #7d7d7d;
  --ash: #969696;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, sans-serif;
  --track: .023em;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font: 400 16px/1.5 var(--text); color: var(--carbony); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Type: one weight, uppercase, uniform tracking — voice through scale */
h1, h2, h3, .label, .btn, .nav, .eyebrow, summary, .stat b {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: var(--track);
}
.hero-title { font-size: clamp(48px, 9vw, 120px); line-height: .92; }
.h-display { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; }
.h-lg { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.19; }
.h-sm { font-size: clamp(20px, 2vw, 27px); line-height: 1.2; }
.label { font-size: 12px; line-height: 1.5; }
.eyebrow { font-size: 14px; line-height: 1.5; }
.muted { color: var(--steel); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 80px 0; }
.dark { background: var(--carbony); color: var(--white); }
.deep { background: var(--carbon-deep); color: var(--white); }
.marble { background: var(--marble); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; padding: 16px 24px; text-decoration: none; border: 1px solid transparent; }
.btn::after { content: "→"; font-size: 18px; }
/* ponytail: dark ink on Giallo — white-on-#ffc000 fails WCAG contrast */
.btn-giallo { background: var(--giallo); color: var(--carbony); }
.btn-giallo:hover { background: var(--giallo-ombra); color: var(--white); }
.btn-outline { border-color: var(--steel); }
.btn-outline:hover { border-color: currentColor; }
.btn-ghost { padding-left: 0; padding-right: 0; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn::after { transition: transform .2s; }
:focus-visible { outline: 2px solid var(--giallo); outline-offset: 3px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: 64px; background: var(--carbony); color: var(--white);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); font-size: 13px; }
.nav button { all: unset; cursor: pointer; display: inline-flex; gap: 12px; align-items: center; }
.nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; }
.nav .logo img { width: 40px; height: 40px; }
.nav .right { justify-self: end; display: flex; gap: 24px; }
.nav .right a { text-decoration: none; }
.burger { width: 20px; height: 12px; border-block: 1px solid currentColor; position: relative; }
.burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }
#menu { inset: 64px 0 auto; width: 100%; max-width: none; height: calc(100dvh - 64px); margin: 0; border: 0; padding: 48px var(--gutter);
  background: var(--carbon-deep); color: var(--white); }
#menu ul { list-style: none; padding: 0; display: grid; gap: 8px; }
#menu a { font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); font-size: clamp(36px, 6vw, 80px); line-height: 1; text-decoration: none; }
#menu a:hover { color: var(--ash); }
@media (max-width: 640px) { .nav .right .hide-sm, .nav .logo span { display: none; } }

/* Hero stage */
.hero { position: relative; min-height: 100svh; padding: 0; display: flex; align-items: flex-end; background: var(--black); color: var(--white); overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero .copy { max-width: 900px; }
.hero .eyebrow { margin-bottom: 24px; }
.hero p.lead { font-size: 18px; max-width: 520px; margin: 24px 0 40px; color: #ddd; }
.pips { display: flex; align-items: center; gap: 24px; }
.pips i { width: 40px; height: 2px; background: var(--white); opacity: .4; }
.pips i:first-child { opacity: 1; }
.hex { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.hex svg { width: 44px; height: 44px; }

/* Section heading block */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.step { border-top: 1px solid var(--ash); padding-top: 24px; }
.dark .step { border-color: var(--graphite); }
.step .num { font-family: var(--display); font-size: 80px; line-height: 1; letter-spacing: var(--track); }
.step h3 { margin: 16px 0 8px; }

.tile img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tile .label { margin: 16px 0 8px; display: block; opacity: .7; }
.tile h3 { margin-bottom: 8px; }
.tile a { text-decoration: none; }
.tile a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* Car photos are 16:9 with the car centred — never crop tighter than that, on any screen */
.fullbleed { width: 100%; aspect-ratio: 16/9; max-height: 88vh; object-fit: cover; background: var(--black); }

/* Car showcase: alternating photo / copy rows */
.car { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; background: var(--black); color: var(--white); }
.car:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.car:nth-child(even) img { order: 2; }
.car img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.car .copy { padding: 48px var(--gutter); }
.car .copy p { color: #bbb; margin: 16px 0 24px; max-width: 460px; }
.car .h-display { font-size: clamp(40px, 6vw, 80px); line-height: .95; }
@media (max-width: 860px) {
  .car, .car:nth-child(even) { grid-template-columns: 1fr; }
  .car:nth-child(even) img { order: 0; }
  .car .copy { padding: 24px var(--gutter) 56px; }
}

/* Battery brands: full colour, one card each */
.brand-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.brand { background: var(--carbon-deep); border-top: 2px solid var(--graphite); display: flex; flex-direction: column; transition: border-color .2s; }
.brand:hover { border-color: var(--giallo); }
.brand .logo-box { background: var(--white); aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden; }
.brand .logo-box img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; transition: transform .4s; }
.brand:hover .logo-box img { transform: scale(1.05); }
.brand .wordmark { font-family: var(--display); font-size: clamp(48px, 6vw, 80px); letter-spacing: .08em; color: #0b3d91; text-transform: uppercase; }
.brand .body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.brand .body p { color: #ccc; }
.brand dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; border-top: 1px solid var(--graphite); padding-top: 16px; margin-top: auto; }
.brand dt { font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); color: var(--ash); font-size: 13px; padding-top: 2px; }
.brand dd { margin: 0; }

/* Battery finder */
.finder { display: grid; gap: 16px; grid-template-columns: 1fr 1.4fr auto; align-items: end; }
.finder label { display: grid; gap: 8px; }
.finder select, .finder input { font: inherit; font-size: 18px; padding: 16px; border: 1px solid var(--steel); border-radius: 0; background: var(--white); color: var(--carbony); width: 100%; }
.finder .btn { border: 0; cursor: pointer; font: inherit; font-family: var(--display); }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr; } }

.stat b { display: block; font-size: clamp(54px, 7vw, 120px); line-height: .92; }
.stat span { display: block; margin-top: 8px; }

.list { list-style: none; padding: 0; columns: 2 280px; column-gap: 48px; }
.list li { padding: 16px 0; border-bottom: 1px solid var(--graphite); break-inside: avoid; }

blockquote { border-top: 1px solid var(--ash); padding-top: 24px; font-size: 18px; }
blockquote footer { margin-top: 16px; }

/* FAQ — native details */
details { border-bottom: 1px solid var(--ash); }
summary { list-style: none; cursor: pointer; padding: 24px 0; font-size: clamp(18px, 2vw, 27px); display: flex; justify-content: space-between; gap: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 24px; max-width: 760px; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 48px 0 16px; }
.article h3 { font-size: 20px; margin: 32px 0 8px; }
.article p, .article li { font-size: 18px; line-height: 1.7; margin-bottom: 16px; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 16px; }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.article th, .article td { border-bottom: 1px solid var(--ash); padding: 12px 8px; text-align: left; }
.article th { font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); font-weight: 400; }
.callout { background: var(--carbony); color: var(--white); padding: 40px; margin: 48px 0; }
.callout p { font-size: 18px; }
.crumbs { font-size: 12px; margin-bottom: 24px; }
.crumbs a { text-decoration: none; }

.footer { background: var(--carbon-deep); color: var(--white); padding: 80px 0 120px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { color: var(--ash); }

/* Mobile emergency bar */
.sticky-cta { display: none; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 15; }
  .sticky-cta a { padding: 16px; text-align: center; text-decoration: none; font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); font-size: 16px; }
  .sticky-cta a:first-child { background: var(--carbony); color: var(--white); }
  .sticky-cta a:last-child { background: var(--giallo); color: var(--carbony); }
  .hero .pips { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
