
/* ============================================================
   INTER CAR TRADING, the film
   One continuous scroll-driven journey: ignition, the brief,
   the drive from NL to ES, arrival, credits.
   ============================================================ */

:root {
  --bg: #0a0b0e;
  --bg-2: #101218;
  --white: #f4f3f0;
  --dim: #8a8d96;
  --faint: #3a3d46;
  --red: #e10600;
  --line: rgba(244, 243, 240, 0.1);

  --display: "Archivo", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

::selection { background: var(--red); color: var(--white); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 4px;
}

/* ============================================================
   ATMOSPHERE
   ============================================================ */
.grain {
  position: fixed; inset: -60px; z-index: 96; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-18px, 12px); }
  66% { transform: translate(14px, -16px); }
  100% { transform: translate(0, 0); }
}

/* Letterbox bars (cinema frame) */
.bar { position: fixed; left: 0; right: 0; height: 6vh; background: #000; z-index: 94; transform: scaleY(0); transition: transform 0.8s var(--ease-out); pointer-events: none; }
.bar.top { top: 0; transform-origin: top; }
.bar.bottom { bottom: 0; transform-origin: bottom; }
body.cinema .bar { transform: scaleY(1); }

/* Custom cursor removed — use system cursor */

/* ============================================================
   PRELOADER (ignition)
   ============================================================ */
.preloader { position: fixed; inset: 0; z-index: 150; display: flex; background: #000; }
.preloader .panel { flex: 1; background: var(--bg-2); transition: transform 0.9s var(--ease-out); }
.preloader .panel:nth-child(2) { transition-delay: 0.08s; }
.preloader .panel:nth-child(3) { transition-delay: 0.16s; }
.preloader.done .panel { transform: translateY(-101%); }

.preloader-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.35s var(--ease);
}
.preloader.done .preloader-center { opacity: 0; }
.preloader-center .brand-mark { width: 120px; }
.preloader-count { font-family: var(--mono); font-size: 12px; letter-spacing: 4px; color: var(--dim); }
.preloader-count b { color: var(--red); font-weight: 500; }

.brand-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.brand-mark.draw path { animation: drawArc 1.1s var(--ease) forwards; }
.brand-mark.draw path:nth-child(1) { animation-delay: 0.05s; }
.brand-mark.draw path:nth-child(2) { animation-delay: 0.2s; }
.brand-mark.draw path:nth-child(3) { animation-delay: 0.34s; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }

/* ============================================================
   FIXED FILM UI
   ============================================================ */
.ui-brand {
  position: fixed; top: 28px; left: 34px; z-index: 120;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 2px;
  background: rgba(10,11,14,0.72); border: 1px solid rgba(244,243,240,0.12);
}
.ui-brand .brand-mark { width: 44px; }
.ui-brand .brand-ict {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 20px; letter-spacing: -0.5px; color: #fff;
}

.ui-menu {
  position: fixed; top: 20px; right: 22px; z-index: 130;
  display: flex; align-items: center; gap: 14px;
  min-width: 44px; min-height: 44px; padding: 12px 14px;
  background: rgba(10,11,14,0.72); border: 1px solid rgba(244,243,240,0.12); border-radius: 2px;
}
.ui-menu .menu-word { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #fff; }
.ui-menu .menu-lines { width: 34px; height: 14px; position: relative; }
.ui-menu .menu-lines span {
  position: absolute; left: 0; width: 100%; height: 2px; background: #fff;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.ui-menu .menu-lines span:nth-child(1) { top: 0; }
.ui-menu .menu-lines span:nth-child(2) { bottom: 0; width: 60%; }
.ui-menu:hover .menu-lines span:nth-child(2) { width: 100%; }
body.menu-open .ui-menu .menu-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .ui-menu .menu-lines span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

/* HUD: scene label + timecode + km */
.hud-scene {
  position: fixed; bottom: 30px; left: 34px; z-index: 110; mix-blend-mode: difference;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.hud-scene .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.hud-data {
  position: fixed; bottom: 30px; right: 34px; z-index: 110; mix-blend-mode: difference;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: #fff;
  display: flex; gap: 26px;
}
.hud-data .km b { color: #fff; font-weight: 500; }

/* Timeline scrubber */
.timeline {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 112; height: 3px; background: rgba(244,243,240,0.12);
}
.timeline .played { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; will-change: transform; }
.timeline .seg {
  position: absolute; top: -5px; width: 1px; height: 13px; background: rgba(244,243,240,0.4);
}
.timeline .seg::after {
  content: attr(data-label); position: absolute; bottom: 16px; left: 0;
  font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint);
  white-space: nowrap; opacity: 0; transform: translateY(4px); transition: all 0.3s var(--ease);
}
.timeline:hover .seg::after { opacity: 1; transform: translateY(0); }
.timeline .seg-hit { position: absolute; top: -18px; height: 21px; cursor: pointer; }

/* ============================================================
   OVERLAY MENU
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 118; background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease-out);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8vw; visibility: hidden;
}
body.menu-open .overlay { clip-path: inset(0 0 0% 0); visibility: visible; }
.overlay-links { display: flex; flex-direction: column; }
.overlay-link {
  position: relative; display: flex; align-items: baseline; gap: 26px;
  padding: 2.4vh 0; border-bottom: 1px solid var(--line);
}
.overlay-link .num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 2px; }
.overlay-link .word-mask { overflow: hidden; display: block; }
.overlay-link .word {
  display: block; font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(44px, 9vw, 110px); line-height: 1; letter-spacing: -2px;
  text-transform: uppercase; color: var(--white);
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out), color 0.3s var(--ease);
}
body.menu-open .overlay-link .word { transform: translateY(0); }
body.menu-open .overlay-link:nth-child(1) .word { transition-delay: 0.18s; }
body.menu-open .overlay-link:nth-child(2) .word { transition-delay: 0.28s; }
.overlay-link:hover .word { color: var(--red); }
.overlay-link .arrow {
  margin-left: auto; font-family: var(--mono); font-size: clamp(20px, 3vw, 34px); color: var(--faint);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.overlay-link:hover .arrow { transform: translateX(12px); color: var(--red); }
.overlay-foot {
  position: absolute; left: 8vw; right: 8vw; bottom: 4.5vh;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim);
  opacity: 0; transition: opacity 0.5s var(--ease) 0.35s;
}
body.menu-open .overlay-foot { opacity: 1; }
.overlay-foot a:hover { color: var(--red); }

/* ============================================================
   ACT I: TITLE (pinned, ignition)
   ============================================================ */
.act-title { position: relative; height: 240vh; }
.act-title .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }

.title-bg { position: absolute; inset: 0; }
.title-bg-img {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center 38%;
  filter: brightness(0.14) saturate(0.8);
  will-change: transform, filter; transform: scale(1.12);
}
body.ready .title-bg-img { animation: titleSettle 2.4s var(--ease-out) forwards; }
@keyframes titleSettle { to { transform: scale(1.02); } }
.title-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10,11,14,0.72) 100%),
              linear-gradient(to top, var(--bg) 0%, transparent 24%);
}

.title-inner { position: relative; z-index: 2; text-align: center; will-change: transform, opacity; }
.title-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--dim); margin-bottom: 3vh;
}
.title-kicker .r { color: var(--red); }

.act-title h1 {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(52px, 11.4vw, 190px); line-height: 0.92; letter-spacing: -3px;
  text-transform: uppercase;
}
.act-title h1 .hline { display: block; overflow: hidden; padding: 0.04em 0.1em; will-change: transform; }
.act-title h1 .hline > span { display: block; transform: translateY(112%); }
body.ready .act-title h1 .hline > span { animation: lineUp 1.1s var(--ease-out) 0.15s forwards; }
body.ready .act-title h1 .hline:nth-child(2) > span { animation-delay: 0.28s; }
.act-title h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--white); }
@keyframes lineUp { to { transform: translateY(0); } }

.title-sub { margin-top: 3.2vh; font-size: 15px; color: var(--dim); opacity: 0; }
body.ready .title-sub { animation: fadeUp 1s var(--ease-out) 0.7s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ignition status line, swaps as lights come on */
.ign {
  margin-top: 2.2vh; font-family: var(--mono); font-size: 10.5px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--faint); opacity: 0;
}
body.ready .ign { animation: fadeUp 1s var(--ease-out) 0.9s forwards; }
.ign .st { color: var(--dim); transition: color 0.3s var(--ease); }
.ign.on .st { color: var(--red); }

.title-cue {
  position: absolute; bottom: 9vh; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 3.4px; text-transform: uppercase; color: var(--dim);
  opacity: 0;
}
body.ready .title-cue { animation: fadeUp 1s var(--ease-out) 1.1s forwards; }
.title-cue .wheel { width: 22px; height: 36px; border: 1px solid var(--faint); border-radius: 12px; position: relative; }
.title-cue .wheel::after {
  content: ""; position: absolute; top: 6px; left: 50%; margin-left: -1px;
  width: 2px; height: 7px; background: var(--red); border-radius: 2px;
  animation: cueDot 1.8s var(--ease) infinite;
}
@keyframes cueDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   ACT II: THE BRIEF (scroll-fill text)
   ============================================================ */
.act-brief { position: relative; height: 240vh; }
.act-brief .stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 9vw; }
.brief-label {
  position: absolute; top: 13vh; left: 9vw;
  font-family: var(--mono); font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--dim);
}
.act-brief p {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 4.4vw, 62px); line-height: 1.24; letter-spacing: -1px;
  text-transform: uppercase; max-width: 1150px;
}
.act-brief p .w { color: var(--faint); transition: color 0.18s linear; }
.act-brief p .w.lit { color: var(--white); }
.act-brief p .w.red.lit { color: var(--red); }

/* ============================================================
   ACT III: THE JOURNEY (route film)
   ============================================================ */
.act-journey { position: relative; height: 520vh; }
.act-journey .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.j-layer {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  filter: brightness(0.34) saturate(0.85);
  opacity: 0; will-change: opacity, transform;
}
.act-journey .stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,11,14,0.55) 0%, transparent 30%, transparent 55%, rgba(10,11,14,0.88) 100%);
  pointer-events: none;
}

.j-word-wrap { position: absolute; top: 16vh; left: 7vw; z-index: 4; }
.j-chip { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 3.6px; text-transform: uppercase; color: var(--red); margin-bottom: 1.6vh; }
.j-word {
  margin: 0;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(52px, 9.4vw, 150px); line-height: 0.9; letter-spacing: -3px; text-transform: uppercase;
  will-change: transform, opacity; color: var(--white);
}
.j-desc { margin-top: 2.2vh; max-width: 380px; color: var(--dim); font-size: 15.5px; }

.j-km {
  position: absolute; top: 16vh; right: 7vw; z-index: 4; text-align: right;
  font-family: var(--mono);
}
.j-km .n {
  display: block; font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(38px, 5.4vw, 84px); letter-spacing: -2px; line-height: 1; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.j-km .u { font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase; color: var(--dim); }

/* Route */
.j-route { position: absolute; left: 0; right: 0; bottom: 13vh; z-index: 4; padding: 0 7vw; }
.j-route svg { width: 100%; height: auto; overflow: visible; }
.j-route .track { stroke: rgba(244,243,240,0.16); stroke-width: 2; fill: none; }
.j-route .drawn { stroke: var(--red); stroke-width: 2.5; fill: none; }
.j-route .stop { fill: var(--bg); stroke: rgba(244,243,240,0.5); stroke-width: 2; }
.j-route .stop.lit { fill: var(--red); stroke: var(--red); }
.j-car { fill: var(--white); }
.j-car-glow { fill: rgba(225,6,0,0.35); }

.j-stops {
  display: flex; justify-content: space-between; margin-top: 2.4vh;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--dim);
}
.j-stops span { transition: color 0.3s var(--ease); }
.j-stops span.lit { color: var(--white); }
.j-stops span.lit b { color: var(--red); font-weight: 500; }

/* ============================================================
   PASSING SIGNS (kinetic)
   ============================================================ */
.kinetic { padding: 15vh 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.krow { display: flex; width: max-content; will-change: transform; }
.krow + .krow { margin-top: 2vh; }
.krow .kitem {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(64px, 11vw, 170px); line-height: 1; letter-spacing: -3px;
  text-transform: uppercase; white-space: nowrap; padding: 0 3vw;
  display: flex; align-items: center; gap: 5vw;
}
.krow .kitem .dot { width: 0.14em; height: 0.14em; border-radius: 50%; background: var(--red); flex: none; }
.krow.outline .kitem { color: transparent; -webkit-text-stroke: 1.5px rgba(244,243,240,0.4); }
.krow.solid .kitem { color: var(--white); }

/* ============================================================
   ACT IV: CREDITS
   ============================================================ */
.act-credits {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative; padding: 16vh 6vw 12vh;
}
.credits-roll { margin-bottom: 7vh; }
.credit-line {
  font-family: var(--mono); font-size: 12px; letter-spacing: 3.4px; text-transform: uppercase; color: var(--dim);
  margin-bottom: 1.6vh; display: flex; gap: 22px; justify-content: center;
}
.credit-line b { color: var(--white); font-weight: 500; }

.cta-title {
  display: inline-block; font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(58px, 13vw, 220px); line-height: 0.92; letter-spacing: -4px;
  text-transform: uppercase; will-change: transform;
}
.cta-title .lt { display: inline-block; transition: transform 0.4s var(--ease), color 0.4s var(--ease); }
.cta-title .lt.sp { width: 0.3em; }
.cta-title:hover .lt { color: var(--red); }
.cta-title .lt:hover { transform: translateY(-0.09em) skewX(-6deg); }

.cta-contacts {
  margin-top: 6vh; display: flex; gap: 5vw; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 1.8px; color: var(--dim);
}
.cta-contacts a { position: relative; padding-bottom: 6px; transition: color 0.3s var(--ease); }
.cta-contacts a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.cta-contacts a:hover { color: var(--white); }
.cta-contacts a:hover::after { transform: scaleX(1); transform-origin: left; }

.foot {
  border-top: 1px solid var(--line); padding: 28px 34px 36px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim);
}
.foot a:hover { color: var(--red); }

/* ============================================================
   CONTACT PAGE (epilogue)
   ============================================================ */
.contact-hero {
  position: relative; min-height: 74vh; overflow: hidden;
  display: flex; align-items: flex-end; padding: 0 6vw 8vh;
}
.contact-hero .title-bg-img { background-position: center; filter: brightness(0.4) saturate(0.85); }
body.ready .contact-hero .title-bg-img { animation: titleSettle 2.4s var(--ease-out) forwards; }
.contact-hero h1 {
  position: relative; z-index: 2;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(64px, 16vw, 260px); line-height: 0.9; letter-spacing: -5px; text-transform: uppercase;
}
.contact-hero h1 .hline { display: block; overflow: hidden; padding: 0.04em 0.06em; }
.contact-hero h1 .hline > span { display: block; transform: translateY(112%); }
body.ready .contact-hero h1 .hline > span { animation: lineUp 1.1s var(--ease-out) 0.1s forwards; }
.contact-hero .title-kicker { position: absolute; top: 16vh; left: 6vw; z-index: 2; margin: 0; }

.rows { border-top: 1px solid var(--line); }
.row-link {
  position: relative; display: grid; grid-template-columns: 90px 1fr auto; align-items: center;
  gap: 4vw; padding: 5.4vh 6vw; border-bottom: 1px solid var(--line); overflow: hidden;
}
.row-link .bgfill {
  position: absolute; inset: 0; background: var(--white);
  transform: translateY(101%); transition: transform 0.5s var(--ease-out); z-index: 0;
}
.row-link:hover .bgfill { transform: translateY(0); }
.row-link > * { position: relative; z-index: 1; }
.row-link .rnum { font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px; color: var(--dim); transition: color 0.4s var(--ease); }
.row-link .rlabel {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(30px, 5.4vw, 74px); letter-spacing: -1.5px; text-transform: uppercase; line-height: 1;
  transition: color 0.4s var(--ease);
}
.row-link .rvalue {
  font-family: var(--mono); font-size: clamp(11px, 1.4vw, 14px); letter-spacing: 1.4px; color: var(--dim);
  text-align: right; transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.row-link:hover .rnum { color: var(--red); }
.row-link:hover .rlabel { color: var(--bg); }
.row-link:hover .rvalue { color: var(--bg); transform: translateX(-10px); }

.contact-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; padding: 12vh 6vw; }
.contact-lower .col-label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--dim);
  margin: 0 0 4vh;
}
.xfield { position: relative; margin-bottom: 40px; }
.xfield input, .xfield textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--faint);
  padding: 12px 0; color: var(--white); font-family: var(--body); font-size: 17px; resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.xfield textarea { min-height: 110px; }
.xfield label {
  position: absolute; left: 0; top: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim);
  pointer-events: none; transition: transform 0.3s var(--ease), font-size 0.3s var(--ease), color 0.3s var(--ease);
}
.xfield input:focus, .xfield textarea:focus { border-color: var(--white); outline: none; }
.xfield input:focus-visible, .xfield textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.xfield input:focus + label, .xfield textarea:focus + label,
.xfield input:not(:placeholder-shown) + label, .xfield textarea:not(:placeholder-shown) + label {
  transform: translateY(-26px); font-size: 11px; color: var(--dim);
}
.xfield input::placeholder, .xfield textarea::placeholder { color: transparent; }
.xfield .bar2 {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.xfield input:focus ~ .bar2, .xfield textarea:focus ~ .bar2 { transform: scaleX(1); }

.xsubmit {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.5px; text-transform: uppercase; color: var(--white);
  padding-bottom: 8px; border-bottom: 2px solid var(--red);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.xsubmit:hover { color: var(--red); transform: translateX(6px); }
.xsubmit .arr { transition: transform 0.35s var(--ease); }
.xsubmit:hover .arr { transform: translateX(8px); }
.form-note { margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--dim); }
.form-note a { color: var(--white); text-decoration: underline; }

.map-dark { border: 1px solid var(--line); }
.map-dark iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) grayscale(0.35) contrast(0.92); }

/* ============================================================
   REVEALS
   ============================================================ */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rv.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .contact-lower { grid-template-columns: 1fr; gap: 8vh; }
  .row-link { grid-template-columns: 54px 1fr; }
  .row-link .rvalue { grid-column: 2; text-align: left; margin-top: 6px; }
  .hud-data { display: none; }
  .j-km { top: auto; bottom: 28vh; }
  .j-desc { display: block; max-width: min(380px, 86vw); font-size: 14.5px; }
  .j-word-wrap { top: 12vh; max-width: 90vw; }
  .act-journey { height: 320vh; }
  .act-brief { height: 180vh; }
}

@media (max-width: 600px) {
  .ui-brand { top: 16px; left: 14px; }
  .ui-menu { top: 14px; right: 12px; }
  .ui-menu .menu-word { display: none; }
  .hud-scene { left: 20px; bottom: 22px; }
  .foot { padding: 24px 20px 32px; flex-direction: column; font-size: 12px; }
  .act-title h1 { letter-spacing: -1.5px; }
  .act-brief { height: 160vh; }
  .act-journey { height: 260vh; }
  .j-stops { font-size: 10px; letter-spacing: 1.4px; color: var(--dim); }
  .bar { height: 4.5vh; }
  .early-cta { margin-top: 2.4vh; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .grain, .bar { display: none; }
  .preloader { display: none; }
  .act-title, .act-brief, .act-journey { height: auto; }
  .act-title .stage, .act-brief .stage, .act-journey .stage { position: static; height: auto; min-height: 100vh; }
  .act-title h1 .hline > span, .contact-hero h1 .hline > span { transform: none; }
  .title-sub, .title-cue, .ign { opacity: 1; }
  .title-bg-img { transform: none; filter: brightness(0.45) saturate(0.85); }
  .act-brief p .w { color: var(--white); }
  .j-layer:first-of-type { opacity: 1; }
  .krow { transform: none !important; }
  .rv { opacity: 1; transform: none; }
  .overlay-link .word { transform: none; }
  .hud-scene .rec { animation: none; }
}




/* ---- audit / a11y ship fixes ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--white); color: var(--bg); padding: 12px 18px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}
.skip-link:focus { left: 12px; top: 12px; outline: 2px solid var(--red); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.title-plain {
  margin-top: 1.6vh; max-width: 34rem; font-size: 15px; color: var(--dim); opacity: 0;
}
body.ready .title-plain { animation: fadeUp 1s var(--ease-out) 0.7s forwards; }
.early-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 3.2vh;
  font-family: var(--mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--white); border-bottom: 1px solid var(--red); padding-bottom: 6px;
  opacity: 0;
}
body.ready .early-cta { animation: fadeUp 1s var(--ease-out) 0.9s forwards; }
.early-cta:hover { color: var(--red); }
.form-status {
  margin: 0 0 28px; padding: 14px 16px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--white);
}
.form-status.is-success { border-color: #3d7a4a; color: #b7e0c0; }
.form-status.is-error { border-color: var(--red); color: #ffb4ae; }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.optional { color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.ext-hint { display: block; margin-top: 4px; font-size: 11px; color: var(--dim); text-transform: none; letter-spacing: 0; }
.map-consent {
  min-height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 28px; background: var(--bg-2); color: var(--dim);
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
}
.map-load {
  align-self: flex-start; padding: 12px 18px; min-height: 44px;
  border: 1px solid var(--white); color: var(--white); background: transparent;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.map-load:hover { background: var(--white); color: var(--bg); }
.map-ext { color: var(--white); text-decoration: underline; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) grayscale(0.35) contrast(0.92); }
body.menu-open { overflow: hidden; }
.overlay[aria-hidden="false"] { visibility: visible; }

/* ---- photos ---- */
.img-headlight { background-image: url('../images/home-33e45ed3c9.jpg'); background-size: cover; background-position: center; }
.img-garage { background-image: url('../images/home-e519e1c565.jpg'); background-size: cover; background-position: center; }
.img-wheel { background-image: url('../images/home-10cb4f8b7a.jpg'); background-size: cover; background-position: center; }
.img-speedometer { background-image: url('../images/home-a177541e5f.jpg'); background-size: cover; background-position: center; }


/* P1 live audit: hide HUD on contact; pad credits/footer on short viewports */
body.page-template-page-contact .hud-scene,
body.page-id-contact .hud-scene,
body.contact-page .hud-scene { display: none !important; }
@media (max-height: 700px) {
  .act-credits { padding-bottom: max(12vh, 96px); }
  .foot { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .hud-scene { bottom: auto; top: 72px; opacity: 0.55; }
}
