/* ==========================================================================
   CC AUTOVISION — Car Service Zagreb
   Art direction: "OBSIDIAN" — true black, film grain, editorial mega-type,
   hairline technical grid, one electric signal colour.
   ========================================================================== */

/* ------------------------------------------------------------ 1. Tokens */
:root {
  --void: #050507;
  --carbon: #0a0b0e;
  --panel: #101216;
  --panel-2: #15181d;
  --edge: rgba(255, 255, 255, 0.09);
  --edge-mid: rgba(255, 255, 255, 0.16);
  --edge-hi: rgba(255, 255, 255, 0.32);

  --bone: #f2f0ed;
  --ash: #8d949c;
  --dim: #79818b;

  --signal: #00c8f0;
  --signal-dim: rgba(0, 200, 240, 0.16);
  --heat: #ff5f1f;
  --amber: #ffb300;
  --lime: #3ddb85;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(18px, 4.4vw, 78px);
  --maxw: 1560px;
  --narrow: 720px;
  --nav-h: 84px;

  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ------------------------------------------------------------ 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: clamp(15.5px, 0.42vw + 14.4px, 17.5px);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
::selection { background: var(--signal); color: #04070a; }

/* film grain — the texture that stops flat black looking cheap */
.grain {
  position: fixed; inset: -120px; z-index: 200; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 700ms steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-14px, 8px); }
  66% { transform: translate(9px, -12px); }
  100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------ 3. Type */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--bone);
}

.h-mega {
  font-size: clamp(2.6rem, 8.6vw, 10rem);
  line-height: 0.84;
  letter-spacing: -0.052em;
  font-stretch: 118%;
}
.h-1 { font-size: clamp(2.4rem, 6.6vw, 5.6rem); line-height: 0.86; letter-spacing: -0.048em; font-stretch: 116%; }
.h-2 { font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 0.88; letter-spacing: -0.042em; font-stretch: 114%; }
.h-3 {
  font-size: clamp(1.02rem, 1.2vw, 1.28rem);
  font-weight: 800; font-stretch: 106%;
  letter-spacing: -0.022em; line-height: 1.1;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.28vw, 1.42rem);
  line-height: 1.45;
  letter-spacing: -0.014em;
  color: var(--bone);
  font-weight: 400;
}
.muted { color: var(--ash); }

/* mono metadata — the technical counter-voice to the mega type */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex; align-items: center; gap: 0.9em;
  margin: 0 0 1.6rem;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px;
  background: currentColor; flex: none; opacity: 0.7;
}
.eyebrow.is-plain::before { display: none; }

.tag {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim);
}

/* ------------------------------------------------------------ 4. Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--narrow); }

.section { padding-block: clamp(76px, 11vw, 190px); position: relative; }
.section-tight { padding-block: clamp(52px, 6.5vw, 108px); }

/* hairline technical rules between sections */
.section::before {
  content: ""; position: absolute; top: 0;
  left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--edge); opacity: 0;
}
.section.has-rule::before { opacity: 1; }

.section-head { max-width: 44ch; margin-bottom: clamp(40px, 5.5vw, 84px); }
.section-head .lede { margin-top: 1.4rem; color: var(--ash); }

.rule { border: 0; border-top: 1px solid var(--edge); margin: 0; }

.grid { display: grid; gap: clamp(14px, 1.6vw, 28px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 96px);
  align-items: start;
}

@media (max-width: 1000px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ 5. Intro curtain */
.intro {
  position: fixed; inset: 0; z-index: 300;
  background: var(--void);
  display: grid; place-items: center;
  transition: opacity 0.5s var(--e-io), visibility 0.5s;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-inner { display: grid; justify-items: center; gap: 26px; }
.intro svg { width: 74px; height: 48px; }
.intro svg circle {
  fill: none; stroke: var(--signal); stroke-width: 4.6;
  stroke-dasharray: 92; stroke-dashoffset: 92;
  animation: draw 1s var(--e-out) forwards;
}
.intro svg circle:nth-child(2) { animation-delay: 0.16s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro-bar {
  width: min(220px, 46vw); height: 1px; background: var(--edge-mid); position: relative;
}
.intro-bar i {
  position: absolute; inset: 0 auto 0 0; width: 0; background: var(--signal);
  animation: load 1.15s var(--e-io) 0.2s forwards;
}
@keyframes load { to { width: 100%; } }
.intro-num {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em;
  color: var(--dim); text-transform: uppercase;
}

/* ------------------------------------------------------------ 6. Cursor */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 250;
  pointer-events: none; border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
  mix-blend-mode: difference;
}
.cursor { width: 6px; height: 6px; background: var(--bone); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 0.32s var(--e-out), height 0.32s var(--e-out), margin 0.32s var(--e-out), opacity 0.3s;
}
body.cur-hot .cursor-ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; border-color: var(--signal); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ------------------------------------------------------------ 7. Header */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--signal); color: #04070a; padding: 12px 20px;
  font-family: var(--mono); font-size: 0.72rem;
}
.skip:focus { left: 0; top: 0; }

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.5s var(--e-out), background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--edge);
}
.site-head.is-hidden { transform: translateY(-102%); }

.head-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 44px);
}

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-img { height: 42px; width: auto; display: block; transition: opacity 0.3s, transform 0.3s var(--e-out); }
.logo:hover .logo-img { opacity: 0.85; }
@media (max-width: 640px) { .logo-img { height: 34px; } }
.logo-mark { width: 40px; height: 26px; flex: none; overflow: visible; }
.logo-mark path { fill: none; stroke: var(--signal); transition: stroke 0.4s; }
.logo:hover .logo-mark .cc-b { stroke: var(--bone); }
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--display); font-weight: 900; font-stretch: 108%;
  font-size: 1.1rem; letter-spacing: -0.04em; text-transform: uppercase; color: var(--bone);
}
.logo-sub {
  font-family: var(--mono); font-size: 0.47rem; letter-spacing: 0.4em;
  color: var(--dim); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); margin-left: auto; }
.nav a, .nav-drop > button {
  font-family: var(--display); font-size: 0.98rem; font-weight: 700;
  font-stretch: 104%; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ash); padding: 10px 0; position: relative;
  transition: color 0.3s; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: var(--signal); transition: right 0.4s var(--e-out);
}
.nav a:hover, .nav-drop:hover > button, .nav-drop.is-open > button { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--bone); }

.nav-drop { position: relative; }
.nav-drop > button::after {
  content: ""; width: 4px; height: 4px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); transition: transform 0.3s;
}
.nav-drop.is-open > button::after { transform: rotate(-135deg) translate(-2px, -2px); }

.nav-drop::after {
  content: ""; position: absolute; top: 100%; left: -18px; right: -18px; height: 22px;
}
.drop-menu {
  position: absolute; top: calc(100% + 16px); left: -18px; min-width: 288px;
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--edge); padding: 8px; display: grid; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.3s var(--e-out), transform 0.3s var(--e-out), visibility 0.3s;
}
.nav-drop.is-open .drop-menu, .nav-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover > button { color: var(--bone); }
.drop-menu a {
  padding: 14px 16px; font-family: var(--body); font-size: 1.02rem;
  letter-spacing: 0; text-transform: none; color: var(--ash);
  border-left: 1px solid transparent; transition: background 0.25s, color 0.25s, border-color 0.25s, padding-left 0.25s;
}
.drop-menu a::after { display: none; }
.drop-menu a:hover { background: var(--panel); color: var(--bone); border-left-color: var(--signal); padding-left: 20px; }

.head-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 0.86rem; font-weight: 800;
  font-stretch: 104%; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--bone); border: 1px solid var(--edge-mid);
  padding: 11px 18px; flex: none; position: relative; overflow: hidden;
  transition: color 0.35s var(--e-out), border-color 0.35s;
}
.head-cta span { position: relative; z-index: 1; }
.head-cta svg { width: 12px; height: 12px; stroke: var(--signal); fill: none; stroke-width: 2; position: relative; z-index: 1; transition: stroke 0.35s; }
.head-cta::before {
  content: ""; position: absolute; inset: 0; background: var(--signal);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.42s var(--e-out);
}
.head-cta:hover { color: #04070a; border-color: var(--signal); }
.head-cta:hover svg { stroke: #04070a; }
.head-cta:hover::before { transform: scaleY(1); }

.burger {
  display: none; border: 1px solid var(--edge-mid); width: 46px; height: 46px;
  margin-left: auto; position: relative; flex: none;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.4px; background: var(--bone);
  transition: transform 0.35s var(--e-out), opacity 0.2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1180px) { .nav, .head-cta { display: none; } .burger { display: block; } }

.drawer {
  position: fixed; inset: 0; z-index: 89; background: var(--void);
  padding: calc(var(--nav-h) + 26px) var(--gutter) 40px;
  overflow-y: auto; opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.5s var(--e-out), clip-path 0.6s var(--e-out), visibility 0.5s;
}
body.nav-open .drawer { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); }
body.nav-open { overflow: hidden; }
.drawer nav { display: grid; }
.drawer nav a {
  font-family: var(--display); font-weight: 900; font-stretch: 112%;
  text-transform: uppercase; font-size: clamp(1.5rem, 6vw, 2.2rem);
  letter-spacing: -0.04em; padding: 14px 0;
  border-bottom: 1px solid var(--edge); color: var(--bone);
  transition: color 0.3s, padding-left 0.3s var(--e-out);
}
.drawer nav a:hover { color: var(--signal); padding-left: 12px; }
.drawer nav a.sub {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ash);
  padding: 11px 0 11px 18px; border-bottom-color: transparent;
}
.drawer .drawer-foot { margin-top: 34px; display: grid; gap: 12px; }

/* ------------------------------------------------------------ 8. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 19px 32px; border: 1px solid var(--signal);
  color: #04070a; position: relative; overflow: hidden;
  transition: color 0.4s var(--e-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--signal);
  transform: scaleY(1); transform-origin: 50% 100%;
  transition: transform 0.5s var(--e-out);
}
.btn:hover { color: var(--signal); }
.btn:hover::before { transform: scaleY(0); }
.btn > * { position: relative; z-index: 1; }
.btn-label { position: relative; z-index: 1; }

.btn-ghost { color: var(--bone); border-color: var(--edge-mid); }
.btn-ghost::before { background: var(--bone); transform: scaleY(0); }
.btn-ghost:hover { color: #04070a; border-color: var(--bone); }
.btn-ghost:hover::before { transform: scaleY(1); }

.btn-arrow .btn-label::after { content: " →"; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--signal);
  padding-bottom: 4px; position: relative;
}
.link-more::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.45s var(--e-out);
}
.link-more:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ------------------------------------------------------------ 9. Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 14px); overflow: hidden; isolation: isolate;
}
.hero-media {
  position: absolute; inset: -8% 0 -4% 0; z-index: -2;
  background: var(--void) center/cover no-repeat; will-change: transform;
  filter: brightness(0.92) contrast(1.04);
  transform: scale(1.14); animation: heroIn 1.8s var(--e-out) 0.35s forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.8) 0%, rgba(5, 5, 7, 0.24) 30%, rgba(5, 5, 7, 0.9) 80%, var(--void) 100%),
    linear-gradient(94deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.1) 64%);
}
.scan-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 72% 66% at 68% 42%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 68% 42%, #000 0%, transparent 76%);
}

.hero-body { position: relative; width: 100%; padding-bottom: clamp(18px, 2.6vw, 44px); }
.hero-body .h-mega { max-width: 15ch; }
.hero-body .h-mega em {
  font-style: normal; display: block;
  color: transparent; -webkit-text-stroke: 1.2px var(--edge-hi);
}
.hero-copy {
  max-width: 46ch; margin: clamp(16px, 1.9vw, 26px) 0 clamp(20px, 2.4vw, 32px);
  color: var(--ash); font-size: clamp(1.05rem, 1.15vw, 1.22rem);
}

/* spec bar — configurator readout */
.spec-bar {
  border-top: 1px solid var(--edge);
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(22px, 3vw, 50px);
}
.spec-bar div { padding: 18px 24px 4px 0; border-right: 1px solid var(--edge); position: relative; }
.spec-bar div:last-child { border-right: 0; }
.spec-bar div::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px;
  background: var(--signal); transition: width 0.9s var(--e-out);
}
.spec-bar.in div::before { width: 100%; }
.spec-bar div:nth-child(2)::before { transition-delay: 0.1s; }
.spec-bar div:nth-child(3)::before { transition-delay: 0.2s; }
.spec-bar div:nth-child(4)::before { transition-delay: 0.3s; }
.spec-bar b {
  display: block; font-family: var(--display); font-weight: 900; font-stretch: 116%;
  font-size: clamp(1.7rem, 3vw, 2.9rem); letter-spacing: -0.05em; line-height: 0.9; color: var(--bone);
}
.spec-bar span {
  display: block; margin-top: 12px; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); line-height: 1.6;
}
@media (max-width: 780px) {
  .spec-bar { grid-template-columns: repeat(2, 1fr); }
  .spec-bar div:nth-child(2n) { border-right: 0; }
  .spec-bar div:nth-child(-n+2) { border-bottom: 1px solid var(--edge); padding-bottom: 18px; }
}

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(26px, 4vw, 56px); z-index: 2;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--dim);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue i { display: block; width: 1px; height: 42px; background: var(--edge-mid); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--signal);
  animation: cue 2.1s var(--e-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(66px, 10vw, 150px));
  padding-bottom: clamp(52px, 7.5vw, 110px);
  border-bottom: 1px solid var(--edge);
}
.page-hero .hero-media { inset: 0; transform: none; animation: none; }
.page-hero.hero-showcase .hero-scrim {
  background:
    linear-gradient(180deg, rgba(5,5,7,0.7) 0%, rgba(5,5,7,0.28) 42%, rgba(5,5,7,0.72) 84%, var(--void) 100%),
    linear-gradient(96deg, rgba(5,5,7,0.9) 2%, rgba(5,5,7,0.4) 38%, rgba(5,5,7,0.05) 66%, rgba(5,5,7,0.1) 100%);
}
.page-hero.hero-showcase .hero-media { filter: none; }
.page-hero.hero-showcase .hero-media { background-position: 82% center; background-size: cover; }
.page-hero.hero-showcase .hero-scrim {
  background:
    linear-gradient(180deg, rgba(5,5,7,0.7) 0%, rgba(5,5,7,0.3) 42%, rgba(5,5,7,0.74) 84%, var(--void) 100%),
    linear-gradient(96deg, rgba(5,5,7,0.98) 0%, rgba(5,5,7,0.9) 20%, rgba(5,5,7,0.5) 40%, rgba(5,5,7,0.12) 62%, rgba(5,5,7,0) 82%, rgba(5,5,7,0.1) 100%);
}
.page-hero .hero-scrim {
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.78) 0%, rgba(5, 5, 7, 0.42) 40%, rgba(5, 5, 7, 0.82) 82%, var(--void) 100%),
    linear-gradient(96deg, rgba(5, 5, 7, 0.95) 4%, rgba(5, 5, 7, 0.55) 44%, rgba(5, 5, 7, 0.12) 78%),
    radial-gradient(ellipse 80% 90% at 78% 44%, rgba(0, 200, 240, 0.05), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 60% 70% at 76% 42%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 76% 42%, #000 0%, transparent 70%);
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 58ch; margin-top: 1.6rem; color: var(--ash); }

.crumbs {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 1.8rem; display: flex; flex-wrap: wrap; gap: 9px;
}
.crumbs a { color: var(--ash); transition: color 0.25s; }
.crumbs a:hover { color: var(--signal); }
.crumbs span[aria-hidden] { opacity: 0.45; }

/* ------------------------------------------------------------ 10. Split-text reveal */
.line { display: block; overflow: hidden; }
.line > i {
  display: block; font-style: inherit;
  transform: translateY(105%); opacity: 0;
  transition: transform 1s var(--e-out), opacity 0.7s var(--e-out);
}
.split-in .line > i { transform: none; opacity: 1; }
.line:nth-child(2) > i { transition-delay: 0.07s; }
.line:nth-child(3) > i { transition-delay: 0.14s; }
.line:nth-child(4) > i { transition-delay: 0.21s; }
[data-split] > *:nth-child(2) .line > i { transition-delay: 0.14s; }
[data-split] > *:nth-child(2) .line:nth-child(2) > i { transition-delay: 0.21s; }
[data-split] > *:nth-child(3) .line > i { transition-delay: 0.28s; }

/* ------------------------------------------------------------ 11. Marquee */
.marquee {
  border-block: 1px solid var(--edge);
  padding-block: clamp(20px, 2.2vw, 34px);
  overflow: hidden; display: flex; user-select: none;
  background: var(--carbon);
}
.marquee-track { display: flex; flex: none; gap: clamp(28px, 4vw, 72px); padding-right: clamp(28px, 4vw, 72px); will-change: transform; }
.marquee span {
  font-family: var(--display); font-weight: 900; font-stretch: 118%;
  text-transform: uppercase; font-size: clamp(1.5rem, 3.4vw, 3rem);
  letter-spacing: -0.04em; color: transparent;
  -webkit-text-stroke: 1px var(--edge-hi); white-space: nowrap;
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.marquee span:nth-child(even) { color: var(--panel-2); -webkit-text-stroke: 0; }
.marquee:hover span { color: var(--bone); -webkit-text-stroke-color: transparent; }

/* ------------------------------------------------------------ 12. Statement */
.statement { max-width: 22ch; }
.statement-body {
  font-family: var(--display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(1.5rem, 3.1vw, 2.9rem); line-height: 1.08;
  letter-spacing: -0.038em; color: var(--dim);
  max-width: 26ch; text-transform: none;
}
.statement-body b { color: var(--bone); font-weight: 800; }
.statement-body u { text-decoration: none; color: var(--signal); }

/* ------------------------------------------------------------ 13. Cards */
.card {
  position: relative; padding: clamp(26px, 2.4vw, 38px);
  background: var(--carbon); border: 1px solid var(--edge);
  display: flex; flex-direction: column; gap: 15px; min-height: 100%;
  overflow: hidden; transition: border-color 0.5s, background 0.5s;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 200, 240, 0.09), transparent 62%);
  opacity: 0; transition: opacity 0.45s; pointer-events: none;
}
.card:hover { border-color: var(--edge-mid); background: var(--panel); }
.card:hover::after { opacity: 1; }
.card .icon { width: 30px; height: 30px; stroke: var(--signal); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--ash); font-size: 1.02rem; line-height: 1.62; }
.card .link-more { margin-top: auto; align-self: flex-start; padding-top: 8px; }
a.card:hover .h-3 { color: var(--signal); }
.card .card-num {
  position: absolute; top: clamp(22px, 2vw, 30px); right: clamp(22px, 2vw, 30px);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--dim);
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li {
  position: relative; padding: 13px 0 13px 30px; color: var(--ash);
  font-size: 1.03rem; line-height: 1.55; border-bottom: 1px solid var(--edge);
}
.checks li:first-child { border-top: 1px solid var(--edge); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 1.35em;
  width: 10px; height: 5px;
  border-left: 1.4px solid var(--signal); border-bottom: 1.4px solid var(--signal);
  transform: rotate(-45deg);
}
.checks strong { color: var(--bone); font-weight: 600; }

/* ------------------------------------------------------------ 14. Horizontal rail */
.rail-track { position: relative; }
.rail-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.rail-head {
  padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; width: 100%;
  margin-bottom: clamp(26px, 3.4vw, 48px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.rail-strip { display: flex; gap: clamp(14px, 1.4vw, 24px); padding-inline: var(--gutter); will-change: transform; }
.rail-card {
  flex: none; width: clamp(260px, 27vw, 380px);
  border: 1px solid var(--edge); background: var(--carbon);
  padding: clamp(24px, 2.2vw, 34px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: clamp(320px, 42vh, 440px);
  transition: border-color 0.45s, background 0.45s, transform 0.45s var(--e-out);
  position: relative; overflow: hidden;
}
.rail-card:hover { border-color: var(--signal); background: var(--panel); }
.rail-card .icon { width: 32px; height: 32px; stroke: var(--signal); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rail-card p { color: var(--ash); font-size: 1rem; line-height: 1.62; }
.rail-card .card-num { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--dim); }
.rail-card .link-more { margin-top: auto; align-self: flex-start; }
.rail-bar { margin: clamp(26px, 3vw, 44px) var(--gutter) 0; height: 1px; background: var(--edge); position: relative; }
.rail-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--rp, 0) * 100%); background: var(--signal); }

@media (max-width: 900px) {
  .rail-track { height: auto !important; }
  .rail-pin { position: static; height: auto; }
  .rail-strip {
    display: grid; grid-template-columns: 1fr; transform: none !important;
    max-width: var(--maxw); margin-inline: auto;
  }
  .rail-card { width: auto; min-height: 0; }
  .rail-bar { display: none; }
}

/* ------------------------------------------------------------ 15. X-ray */
.xray-stage { position: relative; background: var(--void); }
.xray-track { height: 340vh; position: relative; }
.xray-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.xray-pin::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 74% 64% at 52% 54%, rgba(0, 200, 240, 0.12), transparent 72%);
}
.xray-pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 66% 60% at 52% 54%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 52% 54%, #000 0%, transparent 82%);
}
.xray-inner { position: relative; width: 100%; max-width: 1640px; padding-inline: clamp(6px, 2vw, 26px); }
.xray-caption { position: absolute; top: calc(var(--nav-h) + 2px); left: var(--gutter); right: var(--gutter); z-index: 3; pointer-events: none; }
.xray-caption .h-2 { max-width: 16ch; }
.xray-caption .lede { color: var(--ash); }
.xray-readout {
  position: absolute; bottom: clamp(16px, 3.4vh, 42px); left: var(--gutter); right: var(--gutter);
  z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--dim); pointer-events: none;
}
.xray-readout b { color: var(--signal); font-weight: 500; margin-left: 8px; }
.xray-progress { flex: 1; max-width: 320px; height: 1px; background: var(--edge-mid); position: relative; }
.xray-progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--signal); box-shadow: 0 0 14px rgba(0, 200, 240, 0.6); }

.xray-svg {
  width: 100%; height: auto;
  transform: perspective(2000px) rotateY(calc(-15deg + var(--p, 0) * 24deg)) rotateX(calc(5deg - var(--p, 0) * 6deg)) scale(calc(0.92 + var(--p, 0) * 0.1));
  transform-origin: 50% 56%; transition: transform 0.12s linear;
}
/* dim base pass */
.xr-ghost-lines { color: #39454f; }
.xr-ghost-lines path, .xr-ghost-lines circle, .xr-ghost-lines line { stroke: currentColor; }
.xr-ghost-lines .xr-fine { opacity: 0.5; }
.xr-ghost-lines .xr-disc { stroke: #2a333b; }
.xr-ghost-lines .xr-cal { fill: #10151a; stroke: #39454f; }
.xr-ghost-lines .xr-spokes path { opacity: 0.45; }
/* bright scan pass, clipped by the sweep */
.xr-scan-lines { color: var(--signal); }
.xr-scan-lines path, .xr-scan-lines circle, .xr-scan-lines line { stroke: currentColor; }
.xr-scan-lines .xr-disc { stroke: var(--signal); opacity: 0.7; }
.xr-scan-lines .xr-cal { fill: rgba(0,200,240,.08); stroke: var(--signal); }
.xray-svg g[id] circle, .xray-svg use { fill: none; }

.xr-hood { transform-box: fill-box; transform-origin: 100% 100%; transform: rotate(calc(var(--hood, 0) * -22deg)); transition: transform 0.18s linear; }
.xr-hood path { stroke: var(--signal); }
.xr-engine { opacity: var(--hood, 0); transition: opacity 0.3s; }
.xr-engine path, .xr-engine circle, .xr-engine rect { stroke: var(--heat); stroke-width: 1.6; }
.xr-scanline { stroke: #8fefff; stroke-width: 2.5; opacity: 0.9; filter: drop-shadow(0 0 14px var(--signal)); }

.xr-hot circle { fill: var(--signal); stroke: none; }
.xr-hot .xr-ping { fill: none; stroke: var(--signal); stroke-width: 1; opacity: 0.4; }
.xr-hot line { stroke: rgba(0, 200, 240, 0.4); stroke-width: 1; }
.xr-hot text { font-family: var(--mono); font-size: 15px; letter-spacing: 1.5px; fill: var(--bone); text-transform: uppercase; }
.xr-hot .v { fill: var(--signal); }
.xr-hot .xr-spec { font-size: 11.5px; fill: var(--dim); letter-spacing: 1px; }
.xr-hot g { opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--e-out), transform 0.45s var(--e-out); }
.xr-hot g.on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .xray-track { height: 300vh; }
  .xray-caption .lede { display: none; }
  .xray-readout > span:first-child { display: none; }
  .xr-hot text { font-size: 19px; }
  .xr-hot .xr-spec { font-size: 15px; }
}

/* ------------------------------------------------------------ 16. Strips */
.strip {
  position: relative; min-height: clamp(300px, 42vw, 560px);
  overflow: hidden; display: grid; place-items: center; isolation: isolate;
}
.strip-media { position: absolute; inset: -18% 0; z-index: -2; background: center/cover no-repeat; will-change: transform; }
.strip::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 5, 7, 0.6), rgba(5, 5, 7, 0.82)); }
.strip .eyebrow { justify-content: center; }
.strip-quote {
  max-width: 20ch; text-align: center;
  font-family: var(--display); font-weight: 900; font-stretch: 116%;
  text-transform: uppercase; font-size: clamp(1.7rem, 5.2vw, 4.4rem);
  line-height: 0.9; letter-spacing: -0.048em; padding-inline: var(--gutter);
}
.strip-quote span { color: var(--signal); }

.disc-strip {
  position: relative; min-height: clamp(300px, 40vw, 520px); overflow: hidden;
  background: var(--void); display: flex; align-items: center;
  padding-block: clamp(52px, 6vw, 90px);
}
.disc-svg {
  position: absolute; top: 50%; left: 74%;
  width: clamp(420px, 58vw, 880px); height: auto;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); will-change: transform;
}
.disc-svg .ring { fill: none; stroke: #2e3740; stroke-width: 2; }
.disc-svg .vane { stroke: #1c242c; stroke-width: 3; }
.disc-svg .hole { fill: none; stroke: #414c56; stroke-width: 1.6; }
.disc-svg .heat { fill: none; stroke: var(--heat); stroke-width: 3; opacity: 0.72; filter: blur(1px); }
.disc-svg .caliper { fill: #10151a; stroke: var(--signal); stroke-width: 2; }
.disc-strip .disc-copy { position: relative; z-index: 1; }
.disc-strip .strip-quote { text-align: left; max-width: 15ch; padding-inline: 0; }

/* ------------------------------------------------------------ 17. Brand tiles */
.brands { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--edge); }
.brand-tile {
  position: relative; padding: clamp(28px, 3vw, 54px) clamp(18px, 1.8vw, 30px);
  border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  display: flex; flex-direction: column; gap: 12px;
  min-height: clamp(200px, 21vw, 300px); overflow: hidden;
  transition: background 0.5s var(--e-out);
}
.brand-tile:last-child { border-right: 0; }
.brand-tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--e-out);
}
.brand-tile:hover { background: var(--carbon); }
.brand-tile:hover::after { transform: none; }
.brand-word {
  font-family: var(--display); font-weight: 900; font-stretch: 122%;
  text-transform: uppercase; font-size: clamp(1.3rem, 2.1vw, 2.1rem);
  letter-spacing: -0.05em; line-height: 0.9; color: var(--bone); transition: color 0.35s;
}
.brand-tile:hover .brand-word { color: var(--signal); }
.brand-tile p { font-size: 0.95rem; color: var(--ash); line-height: 1.55; }
.brand-tile .link-more { margin-top: auto; align-self: flex-start; }
@media (max-width: 1080px) { .brands { grid-template-columns: repeat(2, 1fr); } .brand-tile:nth-child(2n) { border-right: 0; } }
@media (max-width: 520px) { .brands { grid-template-columns: 1fr; } .brand-tile { border-right: 0; } }

/* ------------------------------------------------------------ 18. Lamps */
.cluster { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); border-top: 1px solid var(--edge); border-left: 1px solid var(--edge); }
.lamp {
  position: relative; border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  padding: clamp(22px, 2.4vw, 34px) 18px; display: flex; flex-direction: column;
  align-items: center; gap: 14px; text-align: center; background: var(--carbon);
  transition: background 0.4s;
}
.lamp svg {
  width: 44px; height: 44px; stroke: #333c46; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.6s var(--e-out), filter 0.6s var(--e-out);
}
.lamp span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); transition: color 0.4s; }
.lamp.lit svg { stroke: var(--lamp-c, var(--amber)); filter: drop-shadow(0 0 12px var(--lamp-c, var(--amber))); }
.lamp.lit span { color: var(--ash); }
.lamp:hover { background: var(--panel); }
.lamp:hover span { color: var(--bone); }
.lamp[data-c="ember"] { --lamp-c: var(--heat); }
.lamp[data-c="cyan"] { --lamp-c: var(--signal); }
.lamp[data-c="green"] { --lamp-c: var(--lime); }

/* ------------------------------------------------------------ 19. Steps */
.steps { counter-reset: s; display: grid; border-top: 1px solid var(--edge); }
.step {
  counter-increment: s; display: grid;
  grid-template-columns: clamp(70px, 8vw, 130px) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3vw, 44px); padding: clamp(26px, 3.2vw, 46px) 0;
  border-bottom: 1px solid var(--edge); align-items: start;
  transition: background 0.5s, padding-left 0.5s var(--e-out);
}
.step:hover { background: var(--carbon); padding-left: 16px; }
.step::before {
  content: "0" counter(s);
  font-family: var(--display); font-weight: 900; font-stretch: 116%;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.2px var(--edge-hi); line-height: 0.9;
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.step:hover::before { color: var(--signal); -webkit-text-stroke-color: transparent; }
.step p { color: var(--ash); font-size: 1.04rem; line-height: 1.6; }
@media (max-width: 880px) { .step { grid-template-columns: 56px minmax(0, 1fr); } .step p { grid-column: 2; } }

/* ------------------------------------------------------------ 20. Video */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; padding: 0; display: block;
  background: var(--carbon) center/cover no-repeat;
  border: 1px solid var(--edge); overflow: hidden; cursor: pointer;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 7, 0.3), rgba(5, 5, 7, 0.72)); }
.video-frame.is-live::after { display: none; }
.play-btn {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 2;
  width: clamp(74px, 8vw, 112px); height: clamp(74px, 8vw, 112px); border-radius: 50%;
  border: 1px solid var(--signal); background: rgba(5, 5, 7, 0.5);
  backdrop-filter: blur(8px); display: grid; place-items: center;
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--e-out);
}
.play-btn::before {
  content: ""; width: 0; height: 0; border-left: 17px solid var(--signal);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px;
}
.video-frame:hover .play-btn { background: rgba(0, 200, 240, 0.18); box-shadow: 0 0 60px -12px rgba(0, 200, 240, 0.8); transform: translate(-50%, -50%) scale(1.07); }
.video-frame.is-live .play-btn { display: none; }
.video-label {
  position: absolute; left: clamp(16px, 2vw, 30px); bottom: clamp(14px, 2vw, 26px); z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash);
}
.video-frame.is-live .video-label { display: none; }

/* ------------------------------------------------------------ 21. Tables & FAQ */
.tbl { width: 100%; border-collapse: collapse; font-size: 1.01rem; }
.tbl caption { text-align: left; font-family: Verdana, Geneva, sans-serif; font-size: 0.95rem; letter-spacing: 0.01em; text-transform: none; color: var(--ash); padding-bottom: 18px; }
.tbl th, .tbl td { text-align: left; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.tbl th { font-family: var(--mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.tbl td { color: var(--ash); }
.tbl tbody tr { transition: background 0.3s; }
.tbl tbody tr:hover { background: var(--carbon); }
.tbl td:first-child { color: var(--bone); font-weight: 500; }
.tbl td:last-child, .tbl th:last-child {
  padding-right: 0; text-align: right; white-space: nowrap;
  font-family: var(--mono); font-size: 0.86rem; color: var(--signal);
}
.tbl-wrap { overflow-x: auto; }

.faq { border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--display); font-weight: 800; font-stretch: 106%;
  text-transform: uppercase; font-size: clamp(0.98rem, 1.3vw, 1.24rem);
  letter-spacing: -0.028em; color: var(--bone); transition: color 0.3s, padding-left 0.4s var(--e-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--signal); padding-left: 10px; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 12px; height: 12px;
  border-right: 1.4px solid var(--signal); border-bottom: 1.4px solid var(--signal);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.35s var(--e-out);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .faq-body { padding: 0 0 30px; color: var(--ash); max-width: 74ch; font-size: 1.05rem; line-height: 1.65; }

/* ------------------------------------------------------------ 22. Prose */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--ash); line-height: 1.78; font-size: 1.06rem; }
.prose h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.3rem); margin-top: 2.4em;
  padding-top: 1.2em; border-top: 1px solid var(--edge);
}
.prose h3 { font-size: clamp(1.02rem, 1.4vw, 1.2rem); margin-top: 2em; color: var(--bone); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--signal); border-bottom: 1px solid rgba(0, 200, 240, 0.3); }
.prose a:hover { border-bottom-color: var(--signal); }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--ash); }
.prose li { margin-bottom: 0.55em; line-height: 1.7; font-size: 1.04rem; }
.prose li::marker { color: var(--signal); }
.prose blockquote {
  margin: 2.2em 0; padding: 26px 30px; border-left: 2px solid var(--signal);
  background: var(--carbon); color: var(--bone);
}
.prose .tbl-wrap { margin-block: 2em; }
.prose table.tbl { margin-block: 0; }

.toc { border: 1px solid var(--edge); background: var(--carbon); padding: 26px 28px; margin-bottom: 2.6em; }
.toc p { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ash); font-size: 1.02rem; border: 0; transition: color 0.25s, padding-left 0.3s; }
.toc a:hover { color: var(--signal); padding-left: 4px; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim);
  padding-block: 20px; border-block: 1px solid var(--edge);
  margin-bottom: clamp(32px, 4vw, 54px);
}

.post-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.3vw, 34px);
  border: 1px solid var(--edge); background: var(--carbon); min-height: 100%;
  position: relative; overflow: hidden;
  transition: border-color 0.5s, background 0.5s;
}
.post-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--e-out);
}
.post-card:hover { border-color: var(--edge-mid); background: var(--panel); }
.post-card:hover::after { transform: none; }
.post-card h3 { font-size: clamp(1rem, 1.2vw, 1.18rem); line-height: 1.1; }
.post-card:hover h3 { color: var(--signal); }
.post-card p { font-size: 1rem; color: var(--ash); line-height: 1.62; }
.post-card .tag { margin-top: auto; padding-top: 8px; }

/* ------------------------------------------------------------ 23. Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(34px, 5vw, 92px); }
@media (max-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.nap { display: grid; gap: 0; border-top: 1px solid var(--edge); }
.nap-item { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--edge); }
.nap-item .tag { color: var(--signal); }
.nap-item a, .nap-item p {
  font-family: var(--display); font-weight: 800; font-stretch: 108%;
  font-size: clamp(1.1rem, 1.7vw, 1.6rem); letter-spacing: -0.035em;
  color: var(--bone); margin: 0; text-transform: none;
}
.nap-item a { transition: color 0.25s; }
.nap-item a:hover { color: var(--signal); }
.nap-item small { color: var(--ash); font-size: 0.96rem; font-family: var(--body); letter-spacing: 0; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--edge-mid);
  color: var(--bone); font-family: var(--body); font-size: 1rem;
  padding: 12px 2px; border-radius: 0; transition: border-color 0.3s; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--signal) 50%), linear-gradient(135deg, var(--signal) 50%, transparent 50%); background-position: calc(100% - 14px) 20px, calc(100% - 8px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.field select option { background: var(--panel); color: var(--bone); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--signal); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.form .hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.8rem; color: var(--dim); line-height: 1.5; }
.consent input { width: 17px; height: 17px; accent-color: var(--signal); flex: none; margin-top: 2px; }
.form-note { font-size: 0.8rem; color: var(--dim); }
.form-msg { padding: 14px 16px; border: 1px solid var(--edge); font-size: 0.98rem; display: none; }
.form-msg.ok { display: block; border-color: var(--lime); color: var(--lime); }
.form-msg.err { display: block; border-color: var(--heat); color: var(--heat); }
@media (min-width: 620px) { .form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }

.map-embed { border: 1px solid var(--edge); filter: grayscale(1) invert(0.92) contrast(0.84) hue-rotate(178deg); width: 100%; height: 400px; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hours td { padding: 14px 0; border-bottom: 1px solid var(--edge); color: var(--ash); }
.hours td:last-child { text-align: right; font-family: var(--mono); font-size: 0.8rem; color: var(--bone); }

/* ------------------------------------------------------------ 24. Callout */
.callout {
  position: relative; padding: clamp(40px, 5.4vw, 92px);
  border: 1px solid var(--edge); background: var(--carbon); overflow: hidden;
}
.callout::before {
  content: ""; position: absolute; top: -60%; right: -10%; width: 50%; height: 220%;
  background: radial-gradient(ellipse at center, rgba(0, 200, 240, 0.16), transparent 66%);
  pointer-events: none;
}
.callout > * { position: relative; }
.callout .h-2 { max-width: 16ch; }
.callout .lede { max-width: 52ch; margin-top: 1.4rem; color: var(--ash); }
.callout .btn-row { margin-top: clamp(28px, 3.2vw, 40px); }

.logo-wall { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.6vw, 46px); align-items: center; }
.logo-wall span {
  font-family: var(--display); font-weight: 900; font-stretch: 116%;
  text-transform: uppercase; font-size: clamp(0.9rem, 1.4vw, 1.4rem);
  letter-spacing: -0.03em; color: var(--dim); transition: color 0.35s;
}
.logo-wall span:hover { color: var(--bone); }

/* ------------------------------------------------------------ 25. Footer */
.site-foot { border-top: 1px solid var(--edge); background: var(--carbon); padding-top: clamp(56px, 6.5vw, 100px); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(28px, 4vw, 60px); padding-bottom: clamp(44px, 5vw, 72px); }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-size: 0.62rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.24em; color: var(--dim); margin-bottom: 20px; text-transform: uppercase; font-stretch: normal; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col a { color: var(--ash); font-size: 0.98rem; transition: color 0.25s, padding-left 0.3s var(--e-out); }
.foot-col a:hover { color: var(--signal); padding-left: 5px; }
.foot-about p { color: var(--ash); font-size: 0.98rem; max-width: 40ch; margin-top: 20px; line-height: 1.6; }
.foot-bar {
  border-top: 1px solid var(--edge); padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
}
.foot-bar a { color: var(--dim); }
.foot-bar a:hover { color: var(--signal); }

.callbar { position: fixed; inset: auto 0 0 0; z-index: 88; display: none; border-top: 1px solid var(--edge); background: rgba(5, 5, 7, 0.94); backdrop-filter: blur(14px); }
.callbar a {
  flex: 1; padding: 16px 8px; text-align: center;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bone); border-right: 1px solid var(--edge);
}
.callbar a:last-child { border-right: 0; color: var(--signal); }
@media (max-width: 760px) { .callbar { display: flex; } body { padding-bottom: 54px; } }

/* ------------------------------------------------------------ 26. Reveal */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--e-out), transform 1s var(--e-out); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }

/* image mask reveal */
.mask { position: relative; overflow: hidden; }
.mask img { transform: scale(1.16); transition: transform 1.4s var(--e-out); }
.mask::after {
  content: ""; position: absolute; inset: 0; background: var(--void);
  transform-origin: 0 50%; transition: transform 1.1s var(--e-out);
}
.mask.in img { transform: none; }
.mask.in::after { transform: scaleX(0); transform-origin: 100% 50%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .rv, .mask::after { opacity: 1; transform: none; }
  .mask::after { display: none; }
  .mask img, .hero-media { transform: none !important; }
  .line > i { transform: none; opacity: 1; }
  .intro { display: none; }
  .grain { display: none; }
  .xray-track, .rail-track { height: auto !important; }
  .xray-pin, .rail-pin { position: static; height: auto; padding-block: 80px; }
  .xray-svg { transform: none; }
  .xr-hood { transform: rotate(24deg); }
  .xr-engine { opacity: 1; }
  .xr-hot g { opacity: 1; transform: none; }
  .rail-strip { transform: none !important; }
}

/* ============================================================ ADD-ONS v3 */

/* white brand wordmark rows (drop real SVGs to /assets/img/logo-*.svg) */
.brand-logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 46px); }
.brand-mark { display: inline-flex; align-items: center; line-height: 1; }
.brand-img { height: clamp(20px, 2.2vw, 30px); width: auto; filter: brightness(0) invert(1); opacity: 0.86; transition: opacity 0.3s; }
.brand-mark:hover .brand-img { opacity: 1; }
.brand-txt {
  font-family: var(--display); font-weight: 900; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(1rem, 1.5vw, 1.5rem); color: var(--bone); opacity: 0.9;
  transition: color 0.3s, opacity 0.3s;
}
.brand-txt:hover { color: #fff; opacity: 1; }
.hero-brands { margin-top: clamp(18px, 2vw, 26px); }
.hero-brands .brand-txt { color: rgba(255,255,255,.82); }
.section-brands { margin-top: clamp(26px, 3vw, 40px); }
.tyre-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(16px, 2.4vw, 40px); max-width: 1000px; margin-inline: auto;
}
.tyre-logos .brand-txt { font-stretch: 108%; font-size: clamp(0.92rem, 1.3vw, 1.32rem); color: var(--ash); }
.tyre-logos .brand-mark:hover .brand-txt { color: var(--bone); }

/* full-bleed feature bands (tyre hotel, dashboard lamps) */
.feature-band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 78vh, 820px);
  display: flex; align-items: center;
  padding-block: clamp(60px, 8vw, 120px);
}
.feature-media {
  position: absolute; inset: -12% 0; z-index: -2;
  background: var(--void) center/cover no-repeat; will-change: transform;
}
.feature-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* matte, non-glossy shading so the photo never glares */
.feature-fade-left {
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(5,5,7,0.82) 34%, rgba(5,5,7,0.35) 70%, rgba(5,5,7,0.6) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.55) 0%, rgba(5,5,7,0.2) 40%, var(--void) 100%);
}
.feature-fade-bottom {
  background:
    linear-gradient(180deg, rgba(5,5,7,0.72) 0%, rgba(5,5,7,0.35) 42%, rgba(5,5,7,0.72) 78%, var(--void) 100%),
    radial-gradient(ellipse 90% 80% at 50% 46%, transparent 30%, rgba(5,5,7,0.5) 100%);
}
.feature-inner { position: relative; z-index: 1; }
.feature-copy { max-width: 620px; }
.feature-copy .h-2 { max-width: 15ch; }
.feature-band .checks li { border-color: rgba(255,255,255,0.12); color: var(--ash); }
.lamps-band { min-height: clamp(600px, 82vh, 860px); }
.lamps-band .cluster { position: relative; z-index: 2; margin-top: clamp(30px, 4vw, 56px); background: rgba(10,11,14,0.5); backdrop-filter: blur(3px); }
.lamps-band .lamp { background: rgba(10,11,14,0.4); }
.lamps-band .lamp:hover { background: rgba(16,18,22,0.7); }

/* ============================================================ FULL-SLIDE MODE (desktop) */
@media (min-width: 1025px) and (hover: hover) {
  body.slides-on { overflow: hidden; height: 100vh; }
  body.slides-on .site-head { mix-blend-mode: normal; }
  .slides-viewport {
    position: fixed; inset: 0; z-index: 1;
    transition: transform 0.95s cubic-bezier(0.7, 0, 0.2, 1);
    will-change: transform;
  }
  /* slide dots */
  .slide-dots {
    position: fixed; right: clamp(18px, 2vw, 34px); top: 50%; transform: translateY(-50%);
    z-index: 80; display: none; flex-direction: column; gap: 14px;
  }
  body.slides-on .slide-dots { display: flex; }
  .slide-dots button {
    width: 10px; height: 10px; border: 1px solid var(--edge-hi); border-radius: 50%;
    background: transparent; padding: 0; position: relative; transition: border-color 0.3s;
  }
  .slide-dots button::after {
    content: ""; position: absolute; inset: 2px; border-radius: 50%;
    background: var(--signal); transform: scale(0); transition: transform 0.35s var(--e-out);
  }
  .slide-dots button.active { border-color: var(--signal); }
  .slide-dots button.active::after { transform: scale(1); }
  .slide-dots button:hover { border-color: var(--signal); }
  .slide-counter {
    position: fixed; left: clamp(18px, 2vw, 34px); bottom: clamp(20px, 3vw, 40px); z-index: 80;
    font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em; color: var(--dim);
    display: none;
  }
  body.slides-on .slide-counter { display: block; }
  body.slides-on .slide-counter b { color: var(--signal); font-weight: 500; }
  /* progress hint */
  .slide-progress {
    position: fixed; inset: auto 0 0 0; height: 2px; z-index: 80; background: transparent;
    display: none;
  }
  body.slides-on .slide-progress { display: block; }
  .slide-progress i { display: block; height: 100%; width: 0; background: var(--signal); transition: width 0.6s var(--e-out); }
}

/* the internal pinned scroll sections (rail, x-ray) can't live inside a fixed slide;
   in slide mode they collapse to a single viewport each and animate on entry instead */
@media (min-width: 1025px) and (hover: hover) {
  body.slides-on .xray-track, body.slides-on .rail-track { height: 100vh !important; }
  body.slides-on .xray-pin, body.slides-on .rail-pin { height: 100vh; }
  body.slides-on .rail-strip { transition: transform 1.1s var(--e-out); }
}

/* ---- slide mode: compress panels to fit one viewport ---- */
@media (min-width: 1025px) and (hover: hover) {
  body.slides-on .slide-panel {
    height: 100vh; min-height: 100vh; overflow: hidden;
    padding: 0;
  }
  /* folded connectors (marquee/statement/disc) shrink so they share a slide gracefully */
  body.slides-on .slide-panel > .section { padding-block: clamp(28px, 4vh, 64px); }
  body.slides-on .slide-panel > .marquee { padding-block: clamp(14px, 2vh, 26px); }
  body.slides-on .slide-panel > .disc-strip,
  body.slides-on .slide-panel > .strip,
  body.slides-on .slide-panel > .feature-band { min-height: 0; }
  /* the hero should stand alone: give it its own slide by not folding marquee when it fits */
  body.slides-on .hero { min-height: 100vh; }
  /* x-ray & rail already 100vh via earlier rule; hide their internal scrollbars */
  body.slides-on .xray-pin, body.slides-on .rail-pin { position: relative; }
  /* tall content sections (steps, lamps) scale down slightly to fit */
  body.slides-on .slide-panel .steps { gap: 4px; }
  body.slides-on .slide-panel .step { padding-block: clamp(14px, 1.8vh, 26px); }
  body.slides-on .slide-panel .cluster { margin-top: clamp(18px, 2vh, 34px); }
  body.slides-on .slide-panel .section-head { margin-bottom: clamp(20px, 2.6vh, 44px); }
  /* if a panel genuinely can't fit, allow it to scroll within itself */
  body.slides-on .slide-panel.tall { overflow-y: auto; justify-content: flex-start; padding-top: var(--nav-h); }
}

/* ---- slide mode: collapse the tall scroll-tracks of x-ray & rail ---- */
@media (min-width: 1025px) and (hover: hover) {
  body.slides-on .xray-track,
  body.slides-on .rail-track { height: 100vh !important; min-height: 100vh; }
  body.slides-on .xray-pin,
  body.slides-on .rail-pin { position: relative !important; top: 0; height: 100vh; }
  /* the tyre + statement + disc connectors get comfortable vertical centring */
  body.slides-on .slide-panel > .disc-strip { min-height: 100vh; align-items: center; }
  body.slides-on .slide-panel > .strip { min-height: 100vh; }
  body.slides-on .slide-panel > .feature-band { min-height: 100vh; }
  /* steps slide: let the 5 steps breathe within one screen */
  body.slides-on .slide-panel .steps { border: 0; }
}

/* ============================================================ SECTION IMAGE BANDS v5 */

/* feature-section: a normal section that also carries a full-bleed backdrop */
.feature-section { position: relative; overflow: hidden; isolation: isolate; }
.feature-media-soft { opacity: 0.5; }
.feature-fade-full {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--void) 0%, rgba(5,5,7,0.72) 30%, rgba(5,5,7,0.72) 70%, var(--void) 100%),
    linear-gradient(96deg, rgba(5,5,7,0.9) 6%, rgba(5,5,7,0.4) 50%, rgba(5,5,7,0.72) 100%);
}
.feature-section .feature-media { z-index: -2; }

/* reference-style left gradient: strong dark on the copy side, image breathes on the other */
.feature-fade-left {
  background:
    linear-gradient(96deg, var(--void) 0%, rgba(5,5,7,0.92) 24%, rgba(5,5,7,0.62) 52%, rgba(5,5,7,0.28) 78%, rgba(5,5,7,0.55) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.5) 0%, rgba(5,5,7,0.15) 42%, var(--void) 100%);
}
.feature-fade-right {
  background:
    linear-gradient(-96deg, var(--void) 0%, rgba(5,5,7,0.92) 24%, rgba(5,5,7,0.62) 52%, rgba(5,5,7,0.28) 78%, rgba(5,5,7,0.55) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.5) 0%, rgba(5,5,7,0.15) 42%, var(--void) 100%);
}

/* disc-strip with a real photographic backdrop */
.disc-strip.has-bg { isolation: isolate; }
.disc-strip.has-bg .feature-media { position: absolute; inset: -12% 0; z-index: -2; background: var(--void) center/cover no-repeat; }
.disc-strip.has-bg .disc-svg { opacity: 0.5; }
.disc-strip.has-bg .disc-copy { z-index: 2; }

/* copy over images always stays crisp */
.feature-band .feature-copy .lede,
.feature-section .lede { color: rgba(255,255,255,0.82); }
.feature-band .feature-copy .checks li { color: rgba(255,255,255,0.8); }

/* make brands tiles readable over the soft backdrop */
.feature-section .brands { background: rgba(5,5,7,0.4); backdrop-filter: blur(2px); }
.feature-section .brand-tile { background: rgba(10,11,14,0.55); }
.feature-section .brand-tile:hover { background: rgba(16,18,22,0.8); }
.feature-section .step { background: rgba(10,11,14,0.5); }
.feature-section .step:hover { background: rgba(16,18,22,0.75); }

/* ============================================================ UNIVERSAL SECTION BACKDROPS v6 */
.section.sec-bg { position: relative; overflow: hidden; isolation: isolate; }
.sec-media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--void) center/cover no-repeat;
  opacity: 0.55;
}
.sec-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--void) 0%, rgba(5,5,7,0.78) 26%, rgba(5,5,7,0.78) 74%, var(--void) 100%),
    linear-gradient(96deg, rgba(5,5,7,0.92) 4%, rgba(5,5,7,0.55) 46%, rgba(5,5,7,0.72) 100%);
}
/* content sits above the backdrop */
.section.sec-bg > .wrap { position: relative; z-index: 1; }
/* cards/forms/tables get a touch of translucency so the texture reads behind them */
.section.sec-bg .card,
.section.sec-bg .post-card,
.section.sec-bg .lamp,
.section.sec-bg .brand-tile { background: rgba(10, 11, 14, 0.72); backdrop-filter: blur(2px); }
.section.sec-bg .form { background: rgba(10, 11, 14, 0.6); backdrop-filter: blur(3px); border: 1px solid var(--edge); padding: clamp(20px,2.4vw,32px); border-radius: 2px; }
.section.sec-bg .tbl-wrap { background: rgba(10, 11, 14, 0.55); }

/* real logo in intro curtain */
.intro-logo { height: 52px; width: auto; opacity: 0; animation: introLogo 0.8s var(--e-out) 0.2s forwards; }
@keyframes introLogo { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* stronger left darkening for heroes over bright photos (e.g. oil pour) */
.page-hero.hero-dark-left .hero-scrim {
  background:
    linear-gradient(180deg, rgba(5,5,7,0.82) 0%, rgba(5,5,7,0.45) 40%, rgba(5,5,7,0.85) 82%, var(--void) 100%),
    linear-gradient(96deg, rgba(5,5,7,0.98) 0%, rgba(5,5,7,0.92) 26%, rgba(5,5,7,0.6) 48%, rgba(5,5,7,0.25) 72%, rgba(5,5,7,0.4) 100%);
}
