/* Inter Tight (variable, weights 400–700), served from this site. SIL Open Font License 1.1. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   JAB Electrical Supplies
   Palette: the logo's three colours only. Black, blue, white.
   ========================================================= */

:root {
  --black: #000000;
  --black-2: #07090E;           /* raised surfaces */
  --blue: #1F6BFF;              /* JAB electric blue */
  --blue-deep: #0A2A8C;         /* the deep blue of the logo background */
  --white: #FFFFFF;

  --white-70: rgba(255, 255, 255, .7);
  --white-45: rgba(255, 255, 255, .45);
  --white-20: rgba(255, 255, 255, .2);
  --white-12: rgba(255, 255, 255, .12);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-tag: 0.75rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --t-h2: clamp(2.4rem, 1.4rem + 4.2vw, 5.25rem);
  --t-hero: clamp(3.6rem, 0.4rem + 17vw, 12.5rem);

  --wrap: 1360px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --section: clamp(88px, 12vw, 180px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.045em; line-height: .95; }
p { margin: 0; }
address { font-style: normal; }
ol, ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.dim { color: var(--white-45); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blue); color: var(--white); padding: 10px 16px; font-weight: 600; border-radius: 999px;
}
.skip:focus { top: 16px; }

/* ---------- Tags: [ like this ] ---------- */
.tag {
  font-size: var(--t-tag); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  color: var(--white-70);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px 0 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill .arr { display: inline-block; transition: transform .25s ease; }
.pill:hover .arr { transform: translate(2px, -2px); }
.pill-arc { background: var(--blue); color: var(--white); }
.pill-arc:hover { background: var(--white); color: var(--black); }
.pill-outline { border-color: var(--white-45); color: var(--white); }
.pill-outline:hover { border-color: var(--white); background: var(--white); color: var(--black); }
.pill-white { background: var(--white); color: var(--black); }
.pill-white:hover { background: var(--blue); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px; border-bottom: 1px solid var(--white-20);
}
.brand img { width: 150px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.pill) {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--white-70);
  transition: color .2s ease;
}
.site-nav a:not(.pill):hover { color: var(--white); }
.nav-shop { min-height: 40px; margin-left: 8px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--white-45); background: transparent; color: var(--white);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; margin-inline: auto;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 80px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--black);
    border-bottom: 1px solid var(--white-20);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.pill) {
    font-size: 2rem; letter-spacing: -0.04em; color: var(--white);
    padding: 12px 0; border-bottom: 1px solid var(--white-12);
  }
  .nav-shop { margin: 24px 0 0; justify-content: center; min-height: 52px; }
  .site-header:has(.site-nav.is-open) { background: var(--black); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: 80px;
  background:
    radial-gradient(70% 60% at 72% 30%, rgba(31, 107, 255, .42), transparent 70%),
    radial-gradient(50% 50% at 20% 90%, rgba(10, 42, 140, .55), transparent 70%),
    var(--black);
}
.hero-arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-flash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 55% at var(--fx, 65%) 30%, rgba(255, 255, 255, .35), rgba(31, 107, 255, .25) 40%, transparent 72%);
}
.hero-flash.is-on { animation: flash 1s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 16% { opacity: .3; } 26% { opacity: .9; } 100% { opacity: 0; } }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, transparent 55%, rgba(0,0,0,.85) 100%);
}

.hero-top { display: flex; justify-content: flex-end; padding-top: 28px; }
.hero-aside { max-width: 30ch; text-align: right; font-size: .95rem; line-height: 1.4; color: var(--white-70); }

.hero-main {
  align-self: end;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px;
  padding-bottom: clamp(32px, 5vh, 56px);
}
.hero-main .tag { grid-column: 1 / -1; margin-bottom: -4px; }
.hero-title {
  font-size: var(--t-hero); font-weight: 500; line-height: .86; letter-spacing: -0.06em;
  margin-left: -0.05em;
}
.hero-title .line { display: block; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-cta { margin-bottom: 1.2vw; }

.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid var(--white-20); padding-block: 20px 24px;
}
.hero-towns { display: flex; gap: clamp(20px, 4vw, 56px); }
.hero-towns a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.hero-towns span { font-size: var(--t-tag); text-transform: uppercase; letter-spacing: .06em; color: var(--white-45); }
.hero-towns strong { font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.hero-towns a:hover strong { color: var(--blue); }
.hero-hours { font-size: .9rem; color: var(--white-70); }

/* Load sequence (only when JS runs) */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero:not(.is-settled) .hero-title .line { clip-path: inset(-1em -1em 0 -1em); }
.js .hero .tag, .js .hero-aside, .js .hero-cta, .js .hero-foot { opacity: 0; }
.js .hero.is-live .hero-title .line > span { transform: none; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.js .hero.is-live .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.js .hero.is-live .tag, .js .hero.is-live .hero-aside,
.js .hero.is-live .hero-cta, .js .hero.is-live .hero-foot { opacity: 1; transition: opacity .8s ease .45s; }

@media (max-width: 760px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-cta { justify-self: start; margin-bottom: 0; }
  .hero-top { justify-content: flex-start; }
  .hero-aside { text-align: left; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-towns { flex-direction: column; gap: 10px; width: 100%; }
  .hero-towns a { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--white-12); padding-block: clamp(20px, 3vw, 40px); }
.marquee-track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  color: var(--white);
}
.marquee-track span:nth-of-type(even) { color: var(--white-45); }
.mq-bolt { width: clamp(22px, 2.4vw, 40px); height: auto; fill: var(--blue); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { font-size: var(--t-h2); max-width: 18ch; }

/* ---------- About ---------- */
.about { padding-block: var(--section) calc(var(--section) * .6); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.split-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.bolt { width: 42px; fill: var(--blue); }
.statement {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.4rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em;
  max-width: 24ch;
}

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(64px, 9vw, 128px); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(300px, 30vw, 420px); padding: 28px; border-radius: 22px;
  background: var(--black-2); border: 1px solid var(--white-12); text-decoration: none;
}
.tile p:not(.tag):not(.big-num) { color: var(--white-70); max-width: 32ch; margin-top: 14px; }
.tile-arc { background: var(--blue); border-color: var(--blue); transition: background-color .25s ease; }
.tile-arc .tag, .tile-arc p { color: rgba(255,255,255,.85) !important; }
.tile-arc:hover { background: #3A7DFF; }
.tile-title { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); max-width: 10ch; }
.tile-go {
  position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--black); font-weight: 600;
  transition: transform .25s ease;
}
.tile-arc:hover .tile-go { transform: rotate(45deg); }
.big-num { font-size: clamp(4.5rem, 3rem + 6vw, 9rem); font-weight: 500; letter-spacing: -0.07em; line-height: .85; }
.big-num sup { font-size: .28em; letter-spacing: -0.02em; vertical-align: top; margin-left: .1em; color: var(--blue); position: relative; top: .3em; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-side { flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 260px; }
}

/* ---------- Branches ---------- */
.branches { padding-block: calc(var(--section) * .6) var(--section); }
.branch-rows { border-top: 1px solid var(--white-20); }
.branch-row {
  display: grid; grid-template-columns: 1.3fr 1.2fr .9fr auto; align-items: center; gap: 24px;
  padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--white-20);
  transition: background-color .25s ease;
}
.branch-row h3 { font-size: clamp(2.6rem, 1.5rem + 4vw, 5.5rem); letter-spacing: -0.055em; transition: color .25s ease; }
.branch-row:hover h3 { color: var(--blue); }
.branch-row address { color: var(--white-70); line-height: 1.45; }
.branch-tel { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; font-variant-numeric: tabular-nums; }
.branch-tel:hover { color: var(--blue); }

@media (max-width: 900px) {
  .branch-row { grid-template-columns: 1fr auto; gap: 12px 20px; }
  .branch-row h3 { grid-column: 1 / -1; }
  .branch-row address { grid-column: 1 / -1; }
}

/* ---------- Services ---------- */
.services { padding-block: var(--section); background: var(--black-2); border-block: 1px solid var(--white-12); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--white-20); }
.service {
  display: flex; flex-direction: column; gap: 16px; padding: 32px 32px 40px 0; text-decoration: none;
  min-height: 300px;
}
.service + .service { padding-left: 32px; border-left: 1px solid var(--white-20); }
.service h3 { font-size: var(--t-h3); }
.service p { color: var(--white-70); max-width: 34ch; }
.service-go { margin-top: auto; font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; }
.service-go .arr { color: var(--blue); transition: transform .25s ease; }
.service:hover h3 { color: var(--blue); }
.service:hover .service-go .arr { transform: translate(3px, -3px); }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; min-height: 0; }
  .service + .service { border-top: 1px solid var(--white-20); }
}

/* ---------- TradeVolt ---------- */
.tradevolt { padding-block: var(--section); position: relative; overflow: hidden; }
.tradevolt::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(31, 107, 255, .35), transparent 70%);
}
.tv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.tv-logo { width: clamp(180px, 22vw, 300px); }
.tv-title { font-size: clamp(3rem, 1.4rem + 7vw, 9rem); letter-spacing: -0.06em; line-height: .9; }
.tv-body {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
}
.tv-lede { font-size: var(--t-lead); line-height: 1.4; color: var(--white-70); max-width: 44ch; }
.tv-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(56px, 7vw, 96px) 0 0;
  border-top: 1px solid var(--white-20);
}
.tv-facts > div { padding: 28px 24px 0 0; }
.tv-facts > div + div { padding-left: 24px; border-left: 1px solid var(--white-20); }
.tv-facts dt { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.tv-facts dd { margin: 12px 0 0; color: var(--white-70); max-width: 26ch; }

@media (max-width: 900px) {
  .tv-facts { grid-template-columns: 1fr 1fr; }
  .tv-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tv-facts > div:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--white-20); }
}
@media (max-width: 520px) {
  .tv-head { flex-direction: column; }
  .tv-facts { grid-template-columns: 1fr; }
  .tv-facts > div, .tv-facts > div + div { padding-left: 0; border-left: 0; }
  .tv-facts > div + div { margin-top: 24px; border-top: 1px solid var(--white-20); }
}

/* ---------- Brands (light section) ---------- */
.brands { padding-block: var(--section); background: var(--white); color: var(--black); }
.brands .tag { color: rgba(0,0,0,.6); }
.brands .dim { color: rgba(0,0,0,.4); }
.brand-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0,0,0,.15); border-left: 1px solid rgba(0,0,0,.15);
}
.brand-grid li {
  display: grid; place-items: center; min-height: clamp(96px, 10vw, 150px); padding: 16px;
  border-right: 1px solid rgba(0,0,0,.15); border-bottom: 1px solid rgba(0,0,0,.15);
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.04em;
  transition: background-color .2s ease, color .2s ease;
}
.brand-grid li:hover { background: var(--blue); color: var(--white); }
@media (max-width: 760px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA ---------- */
.cta {
  padding-block: var(--section);
  background:
    radial-gradient(60% 80% at 85% 100%, rgba(31, 107, 255, .55), transparent 70%),
    var(--blue-deep);
}
.cta h2 { font-size: clamp(3.4rem, 1.4rem + 9vw, 11rem); letter-spacing: -0.06em; line-height: .88; margin-top: 24px; }
.cta .tag { color: rgba(255,255,255,.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.cta .pill-arc { background: var(--white); color: var(--black); }
.cta .pill-arc:hover { background: var(--black); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-block: clamp(56px, 7vw, 96px) 40px;
}
.footer-grid .tag { margin-bottom: 14px; color: var(--white-45); }
.footer-grid p:not(.tag) { color: var(--white-70); }
.footer-grid p + p { margin-top: 8px; }
.footer-grid a { color: var(--white); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 20px; border-top: 1px solid var(--white-20); font-size: .875rem; color: var(--white-45);
}
.footer-base a { color: var(--white-70); }
/* full JAB wordmark across the foot of the page */
.footer-mark {
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 40px);
}
.footer-mark img { width: 100%; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-title .line > span { transform: none; }
  .js .hero .tag, .js .hero-aside, .js .hero-cta, .js .hero-foot { opacity: 1; }
  .marquee-track { flex-wrap: wrap; width: auto; }
}

/* =========================================================
   Inner pages
   ========================================================= */

.site-nav a[aria-current="page"]:not(.pill) { color: var(--white); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 8px; }

.footer-nav {
  display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 0 28px;
  font-size: .95rem;
}
.footer-nav a { color: var(--white-70); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(80px + clamp(72px, 12vw, 160px));
  padding-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--white-12);
  background:
    radial-gradient(55% 70% at 85% 0%, rgba(31, 107, 255, .38), transparent 70%),
    var(--black);
}
.page-hero h1 {
  font-size: clamp(3.2rem, 0.6rem + 11vw, 10.5rem); line-height: .88; letter-spacing: -0.06em;
  margin: 24px 0 0 -0.04em; max-width: 12ch;
}
.page-hero-foot {
  display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
}
.page-hero .lede { font-size: var(--t-lead); line-height: 1.45; color: var(--white-70); max-width: 46ch; }

/* ---------- Generic blocks ---------- */
.block { padding-block: var(--section); }
.block + .block { padding-top: 0; }
.block-alt { background: var(--black-2); border-block: 1px solid var(--white-12); }
.block-alt + .block { padding-top: var(--section); }
.block-light { background: var(--white); color: var(--black); }
.block-light .tag { color: rgba(0,0,0,.6); }
.block-light .dim { color: rgba(0,0,0,.4); }

.rows { border-top: 1px solid var(--white-20); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px;
  padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--white-20);
}
.row h3 { font-size: var(--t-h3); }
.row p { color: var(--white-70); max-width: 52ch; }
.row p + p { margin-top: 12px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }

.prose { max-width: 62ch; color: var(--white-70); font-size: var(--t-lead); line-height: 1.5; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--white); font-weight: 600; }

/* ---------- Photo slots (placeholders until real photos arrive) ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 80% at 70% 20%, rgba(31, 107, 255, .55), transparent 70%),
    linear-gradient(160deg, var(--blue-deep), var(--black));
  border: 1px solid var(--white-12);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-label {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  font-size: var(--t-tag); text-transform: uppercase; letter-spacing: .06em; color: var(--white-70);
}
.photo-wide { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .photo-wide { aspect-ratio: 4 / 3; } }

/* ---------- Branch detail ---------- */
.branch-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 8vw, 120px); border-bottom: 1px solid var(--white-20);
  scroll-margin-top: 80px;
}
.branch-detail:first-child { padding-top: 0; }
.branch-detail h2 { font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem); letter-spacing: -0.06em; margin-top: 18px; }
.branch-detail address { margin-top: 28px; font-size: var(--t-lead); line-height: 1.45; color: var(--white-70); }
.branch-detail .branch-tel { display: inline-block; margin-top: 20px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.hours { margin-top: 32px; border-top: 1px solid var(--white-20); max-width: 420px; }
.hours div { display: flex; justify-content: space-between; padding-block: 12px; border-bottom: 1px solid var(--white-12); }
.hours dt { color: var(--white-70); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.branch-media { display: grid; gap: 16px; align-content: start; }
.map {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 22px; background: var(--black-2);
  filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.9);
}
@media (max-width: 900px) { .branch-detail { grid-template-columns: 1fr; } }

/* ---------- Two-up panels ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.5vw, 48px);
  border-radius: 22px; background: var(--black-2); border: 1px solid var(--white-12);
}
.panel-blue { background: var(--blue); border-color: var(--blue); }
.panel-blue p, .panel-blue .tag, .panel-blue dd { color: rgba(255,255,255,.88) !important; }
.panel h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); letter-spacing: -0.05em; }
.panel p { color: var(--white-70); max-width: 44ch; }
.panel .pill { align-self: flex-start; margin-top: auto; }
.panel-facts { display: grid; gap: 0; margin: 8px 0 0; border-top: 1px solid var(--white-20); }
.panel-facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--white-20); }
.panel-facts dt { font-weight: 600; }
.panel-facts dd { margin: 0; color: var(--white-70); }
.panel-blue .panel-facts, .panel-blue .panel-facts div { border-color: rgba(255,255,255,.35); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .panel-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Checklist ---------- */
.ticks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--white-20); }
.ticks li {
  display: flex; gap: 14px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--white-20);
  font-size: var(--t-lead);
}
.ticks li::before {
  content: ""; flex: none; width: 10px; height: 14px; background: var(--blue);
  clip-path: polygon(62% 0, 8% 56%, 44% 56%, 34% 100%, 92% 40%, 56% 40%);
}
@media (max-width: 760px) { .ticks { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); }
.form-aside { display: grid; gap: 24px; align-content: start; }
.form-aside h2 { font-size: var(--t-h2); }
.form-aside p { color: var(--white-70); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 0; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 4px; font-size: var(--t-tag); text-transform: uppercase; letter-spacing: .06em; color: var(--white-70); grid-column: 1 / -1; }
.form fieldset + fieldset { margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--white-20); }
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 500; }
.field .opt { color: var(--white-45); font-weight: 400; }
.field .hint { font-size: .875rem; color: var(--white-45); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--white);
  background: var(--black-2); border: 1px solid var(--white-20); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field select option { background: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 107, 255, .35);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.field-branch select { border-color: var(--blue); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; color: var(--white-70); font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-submit .pill { border: 0; cursor: pointer; font: inherit; font-weight: 600; min-height: 54px; padding-inline: 28px 24px; }
.form-submit .pill[disabled] { opacity: .6; cursor: progress; }
.form-status { grid-column: 1 / -1; padding: 16px 20px; border-radius: 12px; display: none; }
.form-status.is-ok { display: block; background: rgba(31, 107, 255, .18); border: 1px solid var(--blue); }
.form-status.is-error { display: block; background: rgba(255, 122, 122, .12); border: 1px solid var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .form, .form fieldset { grid-template-columns: 1fr; }
}

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--white-20); }
.contact-grid > div { padding: 28px 28px 32px 0; display: grid; gap: 10px; align-content: start; }
.contact-grid > div + div { padding-left: 28px; border-left: 1px solid var(--white-20); }
.contact-grid h3 { font-size: var(--t-h3); }
.contact-grid address { color: var(--white-70); }
.contact-grid .branch-tel { font-size: 1.5rem; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div, .contact-grid > div + div { padding: 24px 0; border-left: 0; }
  .contact-grid > div + div { border-top: 1px solid var(--white-20); }
}

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; align-content: end; }

.branch-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.block-light .tv-facts { border-top-color: rgba(0,0,0,.15); }
.block-light .tv-facts > div + div { border-left-color: rgba(0,0,0,.15); }
.block-light .tv-facts > div:nth-child(n+3) { border-top-color: rgba(0,0,0,.15); }
.block-light .tv-facts dd { color: rgba(0,0,0,.6); }
.about-facts { margin-top: 0; }
.form-aside a, .prose a { color: var(--white); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.form-aside a[href^="tel:"] { white-space: nowrap; }

/* ---------- Brand logos (single colour via CSS mask) ---------- */
.brand-logo {
  display: block; width: 68%; height: 44%; max-width: 190px;
  background-color: var(--black);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  transition: background-color .2s ease;
}
.brand-grid li:hover .brand-logo { background-color: var(--white); }
/* optical balancing: compact marks get more height, long wordmarks less */
.brand-cktools, .brand-wera { height: 62%; }
.brand-aico, .brand-hager { height: 50%; }
.brand-envirovent, .brand-robus, .brand-vortice { width: 74%; }
.brand-text { font-size: clamp(1.25rem, 1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.04em; }

.footer-base { align-items: center; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--white-20); color: var(--white);
  transition: background-color .2s ease, border-color .2s ease;
}
.socials a:hover { background: var(--blue); border-color: var(--blue); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.brand-wago, .brand-scolmore { height: 56%; width: 72%; }

/* ---------- TradeVolt CTA: lime text taken from the TradeVolt logo ---------- */
:root { --tv-lime: #D4F51F; }
.nav-shop { color: var(--tv-lime); }
.nav-shop:hover { background: var(--tv-lime); border-color: var(--tv-lime); color: var(--black); }

/* =========================================================
   Round 2: accessibility, contrast, tap targets, TradeVolt
   ========================================================= */
:root {
  --white-60: rgba(255, 255, 255, .6);   /* small text on black: ~7:1 */
  --line: rgba(255, 255, 255, .42);      /* form field borders: >3:1 */
  --ink-55: rgba(0, 0, 0, .55);          /* secondary text on white: ~4.7:1 */
  --blue-hover: #1557E0;                 /* white text stays above 4.5:1 */
  --error: #FF7A7A;
}

h2.tag { font-size: var(--t-tag); font-weight: 500; letter-spacing: .06em; line-height: 1.5; }

/* ---- Contrast ---- */
.tile-arc .tag, .tile-arc p,
.panel-blue p, .panel-blue .tag, .panel-blue dd, .panel-blue dt { color: var(--white) !important; }
.tile-arc:hover { background: var(--blue-hover); }
.brands .dim, .block-light .dim { color: var(--ink-55); }
.footer-grid .tag, .footer-base, .field .opt, .field .hint { color: var(--white-60); }
.field input, .field select, .field textarea { border-color: var(--line); }
.brand-grid li:hover { background: var(--white); color: inherit; }
.brand-grid li:hover .brand-logo { background-color: var(--black); }

/* ---- Arrows: ↗ leaves the site, → stays on it ---- */
.pill:hover .arr-in, .service:hover .arr-in { transform: translateX(3px); }
.tile-arc:hover .tile-go { transform: translateX(4px); }

/* ---- Hero: branches lead ---- */
.hero-foot { flex-direction: column; align-items: stretch; gap: 14px; }
.hero-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hero-branches li { display: flex; flex-direction: column; padding-right: 24px; }
.hero-branches li + li { padding-left: 24px; border-left: 1px solid var(--white-20); }
.hb-town { font-size: var(--t-tag); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--white-60); }
.hb-tel {
  display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start;
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em;
  text-decoration: none; font-variant-numeric: tabular-nums; transition: color .2s ease;
}
.hb-tel:hover { color: var(--blue); }
.hb-mail {
  display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start;
  font-size: .9rem; color: var(--white-70); text-decoration: underline; text-decoration-color: var(--white-20); text-underline-offset: 4px;
}
.hb-mail:hover { color: var(--white); text-decoration-color: var(--blue); }
.hero-hours { color: var(--white-70); }
@media (max-width: 760px) {
  .hero-branches { grid-template-columns: 1fr; }
  .hero-branches li, .hero-branches li + li { padding: 10px 0; border-left: 0; }
  .hero-branches li + li { border-top: 1px solid var(--white-20); }
  .hero-branches li { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .hb-town { grid-column: 1; }
  .hb-tel { grid-column: 2; grid-row: 1 / span 2; }
  .hb-mail { grid-column: 1; min-height: 44px; }
}

/* ---- Tap targets ---- */
.branch-contact { display: flex; flex-direction: column; align-items: flex-start; }
.branch-tel { display: inline-flex; align-items: center; min-height: 44px; }
.branch-mail {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--white-70); text-decoration: underline; text-decoration-color: var(--white-20); text-underline-offset: 4px;
}
.branch-mail:hover { color: var(--white); text-decoration-color: var(--blue); }
.branch-detail .branch-mail { font-size: var(--t-lead); }
.contact-grid .branch-mail { font-size: .95rem; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-grid p + p { margin-top: 0; }
.footer-grid p:not(.tag) + p { margin-top: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav { gap: 0 24px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.socials a { width: 44px; height: 44px; }
.check input { width: 24px; height: 24px; margin-top: 0; }

/* ---- Mobile menu: branch phone numbers ---- */
.nav-call { display: none; }
@media (max-width: 1020px) {
  .site-nav { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; }
  .nav-call { display: grid; margin-top: 20px; border-top: 1px solid var(--white-20); }
  .site-nav .nav-call a {
    display: flex; justify-content: space-between; align-items: center; min-height: 52px;
    font-size: 1.1rem; letter-spacing: -0.01em; padding: 0; border-bottom: 1px solid var(--white-12);
    font-variant-numeric: tabular-nums;
  }
  .site-nav .nav-call span { color: var(--white-60); font-size: var(--t-tag); text-transform: uppercase; letter-spacing: .06em; }
}

/* ---- TradeVolt: lime, and higher up the page ---- */
.pill-tv { background: var(--tv-lime); color: var(--black); }
.pill-tv:hover { background: var(--white); color: var(--black); }
.tradevolt { background: var(--tv-lime); color: var(--black); }
.tradevolt::before { display: none; }
.tradevolt .tag { color: rgba(0, 0, 0, .72); }
.tradevolt .tv-title { max-width: 14ch; }
.tradevolt .tv-lede { color: rgba(0, 0, 0, .78); }
.tradevolt .tv-facts { border-top-color: rgba(0, 0, 0, .3); }
.tradevolt .tv-facts > div + div { border-left-color: rgba(0, 0, 0, .3); }
.tradevolt .tv-facts > div:nth-child(n+3) { border-top-color: rgba(0, 0, 0, .3); }
.tradevolt .tv-facts dt { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.tradevolt .tv-facts dd { color: rgba(0, 0, 0, .78); }
.tradevolt .pill-tv { background: var(--black); color: var(--tv-lime); }
.tradevolt .pill-tv:hover { background: var(--white); color: var(--black); }
.tradevolt :focus-visible { outline-color: var(--black); }

/* ---- Two tiles now, not three ---- */
.tiles { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }

/* ---- Ticker: pause control (WCAG 2.2.2) ---- */
.marquee { position: relative; }
.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--black); color: var(--white); border: 1px solid var(--line);
}
.marquee-toggle:hover { background: var(--white); color: var(--black); }
.marquee-toggle svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; }
.marquee-toggle .mt-play { display: none; }
.marquee.is-paused .mt-play { display: block; }
.marquee.is-paused .mt-pause { display: none; }
.marquee-track span { font-size: clamp(2rem, 1.2rem + 4vw, 5.6rem); }
@media (prefers-reduced-motion: reduce) { .marquee-toggle { display: none; } }

/* ---- Softer lightning flash ---- */
@keyframes flash { 0% { opacity: 0; } 10% { opacity: .65; } 22% { opacity: .2; } 32% { opacity: .5; } 100% { opacity: 0; } }

/* ---- Form errors ---- */
.form-note { grid-column: 1 / -1; font-size: .95rem; color: var(--white-70); }
.form-errors {
  grid-column: 1 / -1; padding: 18px 20px; border-radius: 12px;
  border: 2px solid var(--error); background: rgba(255, 122, 122, .1);
}
.form-errors[hidden] { display: none; }
.form-errors:focus { outline: none; }
.form-errors h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.3; }
.form-errors ul { margin-top: 10px; display: grid; gap: 4px; }
.form-errors a { color: var(--white); text-decoration-color: var(--error); text-underline-offset: 3px; display: inline-flex; min-height: 32px; align-items: center; }
.field-error { font-size: .9rem; font-weight: 500; color: var(--error); display: flex; gap: 8px; align-items: baseline; }
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: var(--black); font-size: .75rem; font-weight: 700; transform: translateY(2px); }
.field [aria-invalid="true"], .check input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.check-wrap { grid-column: 1 / -1; display: grid; gap: 8px; }
.form-errors, .field input, .field select, .field textarea, .check input { scroll-margin-top: 110px; }

/* Fail-safe: once settled, hero content is shown outright, never left waiting on a transition */
.js .hero.is-settled .tag, .js .hero.is-settled .hero-aside,
.js .hero.is-settled .hero-cta, .js .hero.is-settled .hero-foot { opacity: 1; transition: none; }
.js .hero.is-settled .hero-title .line > span { transform: none; transition: none; }
@media (max-width: 760px) { .hero-main { padding-top: 28px; } }
.branch-detail .branch-mail { display: flex; width: fit-content; }
.contact-grid .branch-mail, .contact-grid .branch-tel { width: fit-content; }

/* ---- TradeVolt section v3: white, black type, neon on black ---- */
.tradevolt { background: var(--white); color: var(--black); }
.tradevolt .tag { color: rgba(0, 0, 0, .62); }
.tradevolt .tv-lede { color: rgba(0, 0, 0, .72); }
.tradevolt .pill-tv { background: var(--black); color: var(--tv-lime); }
.tradevolt .pill-tv:hover { background: var(--tv-lime); color: var(--black); }
.tradevolt :focus-visible { outline-color: var(--blue); }
.tradevolt .tv-facts {
  background: var(--black); border: 0; border-radius: 22px;
  padding: clamp(8px, 1.5vw, 16px) clamp(20px, 3vw, 40px);
}
.tradevolt .tv-facts > div { padding: 24px 24px 26px 0; }
.tradevolt .tv-facts > div + div { padding-left: 24px; border-left: 1px solid var(--white-20); }
.tradevolt .tv-facts dt { color: var(--tv-lime); }
.tradevolt .tv-facts dd { color: var(--white-70); }
@media (max-width: 900px) {
  .tradevolt .tv-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tradevolt .tv-facts > div:nth-child(n+3) { margin-top: 0; border-top: 1px solid var(--white-20); }
}
@media (max-width: 520px) {
  .tradevolt .tv-facts > div, .tradevolt .tv-facts > div + div { padding-left: 0; border-left: 0; }
  .tradevolt .tv-facts > div + div { margin-top: 0; border-top: 1px solid var(--white-20); }
}

/* Every TradeVolt text link on dark backgrounds is lime too */
.footer-nav a[href^="https://tradevolt"],
.footer-base a[href^="https://tradevolt"],
.form-aside a[href^="https://tradevolt"] { color: var(--tv-lime); text-decoration-color: var(--tv-lime); }
.footer-nav a[href^="https://tradevolt"]:hover,
.footer-base a[href^="https://tradevolt"]:hover,
.form-aside a[href^="https://tradevolt"]:hover { color: var(--white); }

/* A shaded section always gets its full top padding, even straight after another section */
.block + .block-alt { padding-top: var(--section); }

/* =========================================================
   Legal, privacy and cookies
   ========================================================= */
.link-button {
  font: inherit; color: var(--white); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.link-button:hover { color: var(--blue); }

.footer-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 32px; flex-wrap: wrap;
  padding-block: 4px 16px; font-size: .875rem; color: var(--white-60);
}
.footer-legal p { max-width: 80ch; }
.footer-legal p:last-child { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; text-decoration-color: var(--blue); }

/* ---- Privacy page ---- */
.legal { max-width: 74ch; margin-inline: 0; color: var(--white-70); font-size: var(--t-body); line-height: 1.65; }
.legal h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1;
  color: var(--white); margin: 56px 0 16px; scroll-margin-top: 100px;
}
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.2em; margin: 14px 0; display: grid; gap: 8px; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--white); font-weight: 600; }
.legal a { color: var(--white); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.legal .link-button { min-height: 0; display: inline; }
.legal-table { overflow-x: auto; margin: 20px 0; border: 1px solid var(--white-20); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--white-12); }
.legal th { color: var(--white); font-weight: 600; background: var(--black-2); }
.legal tr:last-child td { border-bottom: 0; }

/* ---- Maps wait for consent ---- */
.map-consent {
  aspect-ratio: 4 / 3; border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 16px;
  background:
    linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.2)),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--white-12) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--white-12) 39px 40px),
    var(--black-2);
  border: 1px solid var(--white-12);
}
.map-consent p { color: var(--white-70); max-width: 34ch; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(7, 9, 14, .96); border-top: 1px solid var(--white-20);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-block: 18px calc(18px + env(safe-area-inset-bottom));
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.cookie-inner p { color: var(--white-70); max-width: 70ch; font-size: .95rem; }
.cookie-inner p a { color: var(--white); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .pill { border: 1px solid var(--white-45); cursor: pointer; font: inherit; font-weight: 600; }
.cookie-actions .pill-arc { border-color: var(--blue); }
body.has-cookie-banner { padding-bottom: 140px; }
@media (max-width: 640px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .pill { flex: 1; justify-content: center; }
  body.has-cookie-banner { padding-bottom: 220px; }
}
button.pill { cursor: pointer; font: inherit; font-weight: 600; }
button.pill-outline { background: transparent; color: var(--white); }
button.pill-outline:hover { background: var(--white); color: var(--black); }
.brand-kosnic { width: 76%; height: 54%; }
.check a { color: var(--white); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.block + .block-light, .block-light + .block { padding-top: var(--section); }

/* =========================================================
   Round 3: hardening
   ========================================================= */
/* Focus ring stays visible on blue surfaces */
.panel-blue :focus-visible, .tile-arc:focus-visible, .cta :focus-visible, .pill-arc:focus-visible { outline-color: var(--white); }
.form-errors:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
#main:focus { outline: none; }

/* Long emails and addresses wrap instead of overflowing */
.hb-mail, .branch-mail, .footer-grid a, .legal a, address { overflow-wrap: anywhere; }

/* Mobile menu covers the whole screen below the header */
@media (max-width: 1020px) {
  .site-nav.is-open { min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px); }
}

/* Confirmation that replaces a sent form */
.form-done {
  display: grid; gap: 14px; align-content: start; padding: clamp(28px, 4vw, 48px);
  border-radius: 22px; background: var(--blue); color: var(--white);
}
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.form-done .tag { color: var(--white); }
.form-done h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); letter-spacing: -0.05em; }
.form-done p { max-width: 52ch; font-size: var(--t-lead); line-height: 1.45; }
.field .hint { margin-top: -2px; }

/* =========================================================
   Round 3: clarity
   ========================================================= */
body.has-cookie-banner { padding-bottom: 0; }
.cookie-banner { padding-block: 12px calc(12px + env(safe-area-inset-bottom)); }
.cookie-inner { flex-wrap: nowrap; }
.cookie-inner p { font-size: .95rem; }
.cookie-actions { flex: none; }
.cookie-actions .pill { min-height: 44px; padding-inline: 20px; }
@media (max-width: 640px) {
  .cookie-inner { flex-wrap: wrap; gap: 10px; }
  .cookie-actions { width: 100%; }
}

/* Utility pages: shorter hero so the useful part shows sooner */
.page-hero-compact { padding-top: calc(80px + clamp(40px, 6vw, 88px)); padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero-compact h1 { font-size: clamp(3rem, 0.8rem + 8vw, 7.5rem); }
.hero-branches-compact { width: 100%; margin-top: 8px; }
.hero-branches-compact li { padding-block: 4px; }

/* Phones: headline first, then the supporting line */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero-main { order: 1; margin-top: auto; padding-bottom: 12px; }
  .hero-top { order: 2; padding-top: 0; padding-bottom: 20px; }
  .hero-foot { order: 3; }
}

/* =========================================================
   Round 3: adapt (tablet, landscape phones, large screens)
   ========================================================= */
/* Headline scales with screen height too, so landscape phones aren't all headline */
:root { --t-hero: clamp(3.4rem, min(0.4rem + 17vw, 24vh + 1rem), 12.5rem); }
/* Tablets and narrow laptops: button drops under the headline instead of squeezing it */
@media (max-width: 1100px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-cta { justify-self: start; margin-bottom: 0; }
}
/* Short landscape screens: let the hero be as tall as its content */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-inner, .hero-main { padding-top: 24px; }
}
/* Very large screens: keep the hero and sections from feeling stretched */
@media (min-width: 1800px) {
  :root { --wrap: 1560px; }
}

/* =========================================================
   Hero headline v2: words power on like strip lights.
   Nothing is clipped, so descenders (y, j) are never cut off.
   ========================================================= */
.js .hero-title .line > span { transform: none; }                 /* retire the old slide-up */
.js .hero:not(.is-settled) .hero-title .line { clip-path: none; }  /* and its clipping */
.hero-title .line { padding-bottom: 0; }
.hero-title .w { display: inline-block; }

.js .hero .hero-title .w { opacity: 0; }
.js .hero.is-live .hero-title .w {
  animation: power-on 1.1s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i) * 110ms);
}
@keyframes power-on {
  0%   { opacity: 0;   filter: blur(10px); text-shadow: none; }
  8%   { opacity: .85; filter: blur(2px);  text-shadow: 0 0 28px rgba(159, 200, 255, .9); }
  13%  { opacity: .1; }
  21%  { opacity: .95; filter: blur(0);    text-shadow: 0 0 36px rgba(120, 175, 255, .85); }
  26%  { opacity: .4; }
  36%  { opacity: 1;   text-shadow: 0 0 40px rgba(60, 140, 255, .7); }
  100% { opacity: 1;   filter: blur(0);    text-shadow: 0 0 40px rgba(31, 107, 255, .25); }
}

/* Supporting content follows once the headline is lit */
.js .hero.is-live .tag,
.js .hero.is-live .hero-aside,
.js .hero.is-live .hero-cta,
.js .hero.is-live .hero-foot { transition: opacity .7s ease .55s; }

/* Fail-safe: once settled, everything is simply shown */
.js .hero.is-settled .hero-title .w { opacity: 1; animation: none; filter: none; text-shadow: 0 0 40px rgba(31, 107, 255, .25); }

@media (prefers-reduced-motion: reduce) {
  .js .hero .hero-title .w { opacity: 1; animation: none; filter: none; }
}

/* Recurring strike on the headline: soft local flash + the hit word flashes once */
.hero-flash.is-soft {
  background: radial-gradient(38% 42% at var(--fx, 50%) var(--fy, 40%), rgba(255, 255, 255, .22), rgba(31, 107, 255, .2) 40%, transparent 70%);
}
.hero-flash.is-soft.is-on { animation: flash-soft .8s ease-out; }
@keyframes flash-soft { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

.js .hero.is-settled .hero-title .w.is-zapped { animation: zap .9s cubic-bezier(.16, 1, .3, 1); }
@keyframes zap {
  0%   { opacity: 1;  text-shadow: 0 0 40px rgba(31, 107, 255, .25); }
  10%  { opacity: 1;  color: #EAF2FF; text-shadow: 0 0 22px rgba(200, 225, 255, 1), 0 0 60px rgba(60, 140, 255, .9); }
  18%  { opacity: .55; }
  30%  { opacity: 1;  text-shadow: 0 0 30px rgba(120, 175, 255, .9), 0 0 70px rgba(31, 107, 255, .6); }
  100% { opacity: 1;  color: var(--white); text-shadow: 0 0 40px rgba(31, 107, 255, .25); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero.is-settled .hero-title .w.is-zapped { animation: none; }
}

/* Room for the host's "Powered by Netlify" badge (bottom-right) when it's present */
.cookie-banner.has-host-badge { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

/* =========================================================
   Brands: full-colour logos scrolling past on one strip
   ========================================================= */
.logo-strip {
  position: relative; overflow: hidden; padding-block: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; width: max-content; animation: logo-scroll 48s linear infinite; }
.logo-set {
  display: flex; align-items: center; gap: clamp(56px, 6vw, 104px);
  padding-right: clamp(56px, 6vw, 104px); margin: 0; list-style: none;
}
.logo-set li { flex: none; display: flex; align-items: center; height: var(--h, 54px); }
.logo-set li.tall { --h: 72px; }
.logo-set li.wide { --h: 40px; }
.logo-set li.xwide { --h: 30px; }
.logo-set img { display: block; height: 100%; width: auto; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }

/* Pause: on hover, on keyboard focus, or with the button (WCAG 2.2.2) */
.logo-strip:hover .logo-track,
.logo-strip:focus-within .logo-track,
.logo-strip.is-paused .logo-track { animation-play-state: paused; }
.strip-toggle {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 1;
  display: grid; place-items: center;
  background: var(--white); color: var(--black); border: 1px solid rgba(0, 0, 0, .25);
}
.strip-toggle:hover { background: var(--black); color: var(--white); }
.strip-toggle svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; }
.strip-toggle .mt-play { display: none; }
.logo-strip.is-paused .mt-play { display: block; }
.logo-strip.is-paused .mt-pause { display: none; }
.brands .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

@media (max-width: 760px) {
  .logo-set li { height: calc(var(--h, 54px) * .75); }
  .logo-track { animation-duration: 36s; }
}

/* Reduced motion: no scrolling, logos simply wrap onto centred rows */
@media (prefers-reduced-motion: reduce) {
  .logo-strip { -webkit-mask-image: none; mask-image: none; }
  .logo-track { width: auto; animation: none; justify-content: center; }
  .logo-set { flex-wrap: wrap; justify-content: center; row-gap: 32px; padding: 0 var(--gutter); }
  .logo-set[aria-hidden="true"], .strip-toggle { display: none; }
}

/* =========================================================
   Final polish (pre-launch critique)
   ========================================================= */
/* Phone numbers and the main button never wait for the intro animation.
   The headline still powers on; the label and aside fade in with it. */
.js .hero .hero-cta, .js .hero .hero-foot { opacity: 1; transition: none; }

/* Logo strip: fade the logos at the edges, not the pause button */
.logo-strip { -webkit-mask-image: none; mask-image: none; }
.logo-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@media (prefers-reduced-motion: reduce) { .logo-viewport { -webkit-mask-image: none; mask-image: none; } }
.logo-strip { position: relative; }
.logo-strip .logo-track { width: max-content; }
.strip-toggle { border-color: rgba(0, 0, 0, .55); box-shadow: 0 0 0 6px var(--white); }
