/* Ken Block / Gymkhana energy — full video, full send */

:root {
  --black: #0d0d0d;
  --white: #f5f5f0;
  --smoke: #8a8a85;
  --green: #c8f135;
  --green-dim: rgba(200, 241, 53, 0.15);
  --orange: #ff4d00;
  --red: #e8192c;
  --font-impact: "Bebas Neue", impact, sans-serif;
  --font-tech: "Barlow Condensed", sans-serif;
  --skew: -4deg;
  --ease-hit: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-snap: cubic-bezier(0.85, 0, 0.15, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-tech);
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading,
body.is-scroll-locked {
  overflow: hidden;
  height: 100dvh;
}

body.is-in-section .intro__video {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.is-in-section .intro {
  pointer-events: none;
}

/* ── Boot loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--black);
  overflow: hidden;
}

.loader.is-done {
  pointer-events: none;
  visibility: hidden;
}

.loader__speed {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 50px,
    var(--white) 50px,
    var(--white) 52px
  );
}

.loader__inner {
  position: relative;
  z-index: 1;
  width: min(22rem, 88vw);
  text-align: center;
}

.loader__mark {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  font-family: var(--font-impact);
  font-size: 1.25rem;
  background: var(--green);
  color: var(--black);
  transform: skewX(var(--skew));
}

.loader__logo {
  font-family: var(--font-impact);
  font-size: clamp(2.5rem, 10vw, 4rem);
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  line-height: 1;
}

.loader__exe {
  color: var(--green);
}

.loader__status {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}

.loader__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 1rem;
}

.loader__fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  box-shadow: 0 0 16px rgba(200, 241, 53, 0.5);
}

.loader__readouts {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.loader__pct {
  font-family: var(--font-impact);
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: 0.08em;
}

.loader__wipe {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: bottom center;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Racing livery stripes */
.livery {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 40px,
    var(--white) 40px,
    var(--white) 42px
  );
}

/* ── INTRO: full bleed video ── */

.intro {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.intro__video {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.intro__video video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) contrast(1.05) saturate(0.75);
  transform: scale(1.06);
}

.intro__video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(200, 241, 53, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255, 77, 0, 0.1) 0%, transparent 50%),
    linear-gradient(175deg, #1a1a18 0%, #0d0d0d 50%, #141412 100%);
}

.intro__video-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.35) 45%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 55%
    );
  pointer-events: none;
}

.intro__smoke {
  display: none;
}

/* Speed lines — GSAP animates these */
.speed-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.speed-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transform-origin: left center;
}

/* GSAP overlay stage */
.intro__stage {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-top: calc(clamp(1.25rem, 4vw, 3rem) + var(--top-hud-h, 5.5rem));
}

.intro__top {
  display: none;
}

.intro__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.intro__brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-family: var(--font-impact);
  font-size: 1.1rem;
  background: var(--green);
  color: var(--black);
  transform: skewX(var(--skew));
}

.intro__brand-mark span {
  transform: skewX(calc(var(--skew) * -1));
  display: block;
}

.intro__brand-name {
  font-family: var(--font-impact);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.intro__brand-exe {
  color: var(--green);
}

.intro__brand-sub {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--green);
  margin-top: 0.15rem;
}

.intro__edition {
  font-family: var(--font-impact);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  opacity: 0;
}

/* Main headline — Ken Block poster energy */
.intro__headline {
  font-family: var(--font-impact);
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  overflow: hidden;
}

.intro__headline .line {
  display: block;
  overflow: hidden;
}

.intro__headline .char {
  display: inline-block;
  will-change: transform;
}

.intro__headline .highlight {
  color: var(--green);
  -webkit-text-stroke: 0;
}

.intro__headline .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.intro__tag {
  display: inline-block;
  margin: 1rem 0 1.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--black);
  transform: skewX(var(--skew));
}

.intro__tag span {
  display: inline-block;
  transform: skewX(calc(var(--skew) * -1));
}

.intro__sub {
  max-width: 26rem;
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: skewX(var(--skew));
  transition: transform 0.2s var(--ease-hit), box-shadow 0.2s;
}

.btn span {
  transform: skewX(calc(var(--skew) * -1));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--send {
  background: var(--green);
  color: var(--black);
}

.btn--send:hover {
  transform: skewX(var(--skew)) scale(1.04);
  box-shadow: 0 0 40px rgba(200, 241, 53, 0.45);
}

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Live booth HUD — temp + spray PSI (subtle — supports, not competes) */
.booth-hud {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 3rem);
  right: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  gap: 0.65rem;
  transform: skewX(var(--skew));
  opacity: 0.72;
}

.booth-hud__gauge {
  position: relative;
  width: 5.5rem;
  padding: 0.5rem 0.45rem 0.55rem;
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  text-align: center;
}

.booth-hud__gauge--psi {
  border-color: rgba(200, 241, 53, 0.15);
  box-shadow: inset 0 0 16px rgba(200, 241, 53, 0.02);
}

.booth-hud__title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  transform: skewX(calc(var(--skew) * -1));
}

.booth-hud__arc,
.booth-hud__mano {
  width: 100%;
  height: auto;
  display: block;
  transform: skewX(calc(var(--skew) * -1));
}

.booth-hud__arc-bg,
.booth-hud__mano-bg {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
  stroke-linecap: round;
}

.booth-hud__arc-fill {
  stroke: rgba(255, 77, 0, 0.75);
  stroke-width: 3;
  stroke-linecap: round;
}

.booth-hud__mano-tick {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.booth-hud__needle {
  stroke: rgba(200, 241, 53, 0.8);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.booth-hud__hub {
  fill: rgba(200, 241, 53, 0.8);
}

.booth-hud__readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 0.15rem;
  transform: skewX(calc(var(--skew) * -1));
}

.booth-hud__value {
  font-family: var(--font-impact);
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(200, 241, 53, 0.78);
  font-variant-numeric: tabular-nums;
}

.booth-hud__gauge--temp .booth-hud__value {
  color: rgba(255, 77, 0, 0.78);
}

.booth-hud__unit {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--smoke);
}

.booth-hud__range {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  transform: skewX(calc(var(--skew) * -1));
}

@media (min-width: 640px) {
  .booth-hud {
    gap: 0.85rem;
  }

  .booth-hud__gauge {
    width: 6.25rem;
  }

  .booth-hud__value {
    font-size: 1.35rem;
  }
}

/* ── Stage panel — menu-driven sections ── */

.stage-panel {
  position: fixed;
  top: var(--top-hud-h, 4.25rem);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--black);
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
}

body.is-in-section .stage-panel {
  visibility: visible;
  pointer-events: auto;
}

.stage-panel:focus {
  outline: none;
}

/* ── CHAPTERS (Gymkhana numbered sections) ── */

.page {
  position: relative;
  background: var(--black);
}

.chapter {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 3px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.chapter::before {
  content: attr(data-num);
  position: absolute;
  top: -0.15em;
  right: clamp(0.5rem, 3vw, 2rem);
  font-family: var(--font-impact);
  font-size: clamp(8rem, 25vw, 18rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.chapter__inner {
  max-width: 68rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.chapter__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
}

.chapter__label::before {
  content: "";
  width: 2rem;
  height: 3px;
  background: var(--green);
  transform: skewX(var(--skew));
}

.chapter__title {
  font-family: var(--font-impact);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.chapter__lead {
  max-width: 32rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  color: var(--smoke);
  line-height: 1.65;
}

/* Service cards — skewed panels */
.card-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 2rem 1.75rem;
  background: var(--black);
  border-left: 3px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.card:hover {
  border-color: var(--green);
  background: rgba(200, 241, 53, 0.03);
}

.card__num {
  font-family: var(--font-impact);
  font-size: 2.5rem;
  color: rgba(200, 241, 53, 0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-family: var(--font-impact);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--smoke);
  line-height: 1.5;
}

/* Video strip */
.video-strip {
  position: relative;
  aspect-ratio: 21 / 9;
  margin-top: 2rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transform: skewX(var(--skew));
}

.video-strip__inner {
  transform: skewX(calc(var(--skew) * -1)) scale(1.08);
  height: 100%;
}

.video-strip video,
.video-strip__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-strip__fallback {
  background: linear-gradient(135deg, #1a1a18, #0d0d0d);
}

.video-strip__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--red);
  transform: skewX(calc(var(--skew) * -1));
}

/* Quote slam block */
.slam-cta {
  text-align: center;
  padding: clamp(5rem, 15vw, 10rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(200, 241, 53, 0.08) 0%, transparent 50%),
    var(--black);
  border-top: 3px solid var(--green);
}

.slam-cta__title {
  font-family: var(--font-impact);
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.slam-cta__title em {
  font-style: normal;
  color: var(--green);
}

.slam-cta p {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--smoke);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.85rem;
  color: var(--smoke);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer a:hover {
  color: var(--green);
}

/* Local SEO — visible for users & search engines */
.local-seo {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.local-seo__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.local-seo__title {
  font-family: var(--font-impact);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--smoke);
}

.local-seo__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.local-seo__areas {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

.local-seo__areas strong {
  color: rgba(200, 241, 53, 0.6);
  font-weight: 600;
}

/* ── Always-visible top HUD bar ── */

:root {
  --top-hud-h: 8.75rem;
}

@media (min-width: 960px) {
  :root {
    --top-hud-h: 4.25rem;
  }
}

.top-hud__label-text--short {
  display: none;
}

.top-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.top-hud.is-solid {
  background: rgba(8, 8, 8, 0.96);
}

.top-hud__stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--orange), var(--green));
  background-size: 200% 100%;
  animation: hud-stripe 4s linear infinite;
}

@keyframes hud-stripe {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

.top-hud__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem) 0.75rem;
}

.top-hud__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.top-hud__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-family: var(--font-impact);
  font-size: 0.95rem;
  background: var(--green);
  color: var(--black);
  transform: skewX(var(--skew));
}

.top-hud__name {
  font-family: var(--font-impact);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.top-hud__exe {
  color: var(--green);
}

.top-hud__nav {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 960px) {
  .top-hud__nav {
    flex: 1 1 auto;
  }
}

.top-hud__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green), 0 0 30px rgba(200, 241, 53, 0.45);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.top-hud__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.top-hud__list::-webkit-scrollbar {
  display: none;
}

.top-hud__item {
  flex: 1 0 auto;
  scroll-snap-align: start;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.top-hud__item:last-child {
  border-right: none;
}

.top-hud__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 5.25rem;
  padding: 0.55rem 0.75rem 0.65rem;
  text-align: center;
  transition: color 0.2s, background 0.25s, box-shadow 0.25s;
}

.top-hud__link:hover,
.top-hud__link.is-active {
  color: var(--green);
  background: rgba(200, 241, 53, 0.06);
}

.top-hud__num {
  font-family: var(--font-impact);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(200, 241, 53, 0.5);
  line-height: 1;
}

.top-hud__link:hover .top-hud__num,
.top-hud__link.is-active .top-hud__num {
  color: var(--green);
}

.top-hud__label {
  font-family: var(--font-impact);
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.top-hud__item--cta {
  z-index: 1;
}

.top-hud__item--cta .top-hud__link {
  background: linear-gradient(135deg, var(--green) 0%, #a8d92a 100%);
  color: var(--black);
  transform: skewX(var(--skew));
  margin: 0 0.25rem;
  padding: 0.65rem 1rem 0.75rem;
  min-width: 6.5rem;
  box-shadow:
    0 0 0 1px rgba(200, 241, 53, 0.5),
    0 0 24px rgba(200, 241, 53, 0.35),
    0 4px 20px rgba(0, 0, 0, 0.3);
  animation: cta-glow 2s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(200, 241, 53, 0.5),
      0 0 20px rgba(200, 241, 53, 0.3),
      0 4px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.4),
      0 0 36px rgba(200, 241, 53, 0.55),
      0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

.top-hud__item--cta .top-hud__label,
.top-hud__item--cta .top-hud__num {
  transform: skewX(calc(var(--skew) * -1));
}

.top-hud__item--cta .top-hud__num {
  color: rgba(0, 0, 0, 0.45);
}

.top-hud__item--cta .top-hud__label {
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.08em;
}

.top-hud__pulse {
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transform: skewX(var(--skew));
  pointer-events: none;
  opacity: 0;
}

.top-hud__item--cta .top-hud__link:hover {
  background: var(--white);
  color: var(--black);
  animation: none;
  box-shadow: 0 0 40px rgba(200, 241, 53, 0.6);
}

.top-hud__item--cta .top-hud__link:hover .top-hud__num {
  color: rgba(0, 0, 0, 0.45);
}

.top-hud__link--quote.is-zapped {
  animation: quote-hit 0.35s ease-out;
}

.top-hud__link--quote.is-locked {
  animation: cta-lock-pulse 0.9s ease-in-out infinite;
}

@keyframes quote-hit {
  0% { transform: skewX(var(--skew)) scale(1); }
  35% { transform: skewX(var(--skew)) scale(1.12); }
  100% { transform: skewX(var(--skew)) scale(1.05); }
}

@keyframes cta-lock-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.55),
      0 0 40px rgba(200, 241, 53, 0.55),
      0 0 60px rgba(200, 241, 53, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.85),
      0 0 55px rgba(200, 241, 53, 0.75),
      0 0 80px rgba(255, 77, 0, 0.2);
  }
}

/* Booth HUD — reticle locks on Free Quote, callout drops below nav */
.quote-zap {
  position: fixed;
  inset: 0;
  z-index: 902;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
}

.quote-zap.is-ready {
  visibility: visible;
}

.quote-zap__reticle {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 2px;
}

.quote-zap__corner {
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--green));
}

.quote-zap__corner--tl {
  top: 0;
  left: 0;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}

.quote-zap__corner--tr {
  top: 0;
  right: 0;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
}

.quote-zap__corner--bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
}

.quote-zap__corner--br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
}

.quote-zap__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--orange), var(--green), transparent);
  box-shadow: 0 0 14px rgba(200, 241, 53, 0.85);
  opacity: 0;
  transform: translateY(0);
}

.quote-zap__callout {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: min(16.5rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid rgba(200, 241, 53, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(200, 241, 53, 0.12);
  transform: skewX(var(--skew));
  opacity: 0;
  overflow: hidden;
}

.quote-zap__callout-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  font-family: var(--font-impact);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--black);
  background: linear-gradient(180deg, var(--green) 0%, #a8d92a 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.quote-zap__callout-body {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem 0.6rem;
  transform: skewX(calc(var(--skew) * -1));
}

.quote-zap__tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.15rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
}

.quote-zap__ping {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: quote-zap-ping 1.2s ease-in-out infinite;
}

@keyframes quote-zap-ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.quote-zap__headline {
  margin: 0;
  font-family: var(--font-impact);
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
}

.quote-zap__label {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.25;
}

.quote-zap__label-text--desktop {
  display: none;
}

.quote-zap__spray-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.quote-zap__spray-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--green));
  box-shadow: 0 0 10px rgba(200, 241, 53, 0.65);
}

@media (max-width: 959px) {
  .quote-zap__callout {
    min-width: 0;
    max-width: calc(100vw - 1rem);
    transform: skewX(-2deg);
  }

  .quote-zap__callout-body {
    transform: skewX(2deg);
    padding: 0.45rem 0.6rem 0.5rem;
  }

  .quote-zap__callout-mark {
    width: 2rem;
    font-size: 1rem;
  }

  .quote-zap__tag {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .quote-zap__headline {
    font-size: 1rem;
  }

  .quote-zap__label {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .quote-zap__corner {
    width: 0.65rem;
    height: 0.65rem;
  }
}

@media (min-width: 960px) {
  .quote-zap__label-text--mobile {
    display: none;
  }

  .quote-zap__label-text--desktop {
    display: inline;
  }

  .quote-zap__callout {
    min-width: 14rem;
  }
}

@media (max-width: 959px) {
  .top-hud__inner {
    gap: 0.35rem 0.75rem;
    padding: 0.5rem 0.65rem 0.55rem;
  }

  .top-hud__brand {
    width: 100%;
  }

  .top-hud__mark {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }

  .top-hud__name {
    font-size: 0.95rem;
  }

  .top-hud__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
    width: 100%;
  }

  .top-hud__item {
    flex: none;
    scroll-snap-align: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .top-hud__item:nth-child(3n) {
    border-right: none;
  }

  .top-hud__item:nth-child(n + 4) {
    border-bottom: none;
  }

  .top-hud__link {
    min-width: 0;
    width: 100%;
    padding: 0.38rem 0.2rem 0.48rem;
    gap: 0.08rem;
  }

  .top-hud__num {
    font-size: 0.58rem;
  }

  .top-hud__label {
    font-size: 0.56rem;
    letter-spacing: 0.03em;
    white-space: normal;
    line-height: 1.15;
    max-width: 100%;
  }

  .top-hud__label-text--long {
    display: none;
  }

  .top-hud__label-text--short {
    display: inline;
  }

  .top-hud__item--cta .top-hud__link {
    min-width: 0;
    margin: 0;
    padding: 0.42rem 0.25rem 0.52rem;
  }

  .top-hud__item--cta .top-hud__label {
    font-size: 0.56rem;
  }
}

@media (min-width: 960px) {
  .top-hud__inner {
    flex-wrap: nowrap;
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem);
  }

  .top-hud__list {
    justify-content: flex-end;
  }

  .top-hud__item {
    flex: 0 1 auto;
  }

  .top-hud__link {
    flex-direction: row;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.6rem 1rem;
  }

  .top-hud__label {
    font-size: 0.88rem;
  }

  .top-hud__item--cta .top-hud__link {
    padding: 0.65rem 1.25rem;
  }

  .top-hud__item--cta .top-hud__label {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-hud__item--cta .top-hud__link {
    animation: none;
  }

  .quote-zap {
    display: none;
  }

  .intro__video video {
    transform: none;
    filter: none;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gallery-card__imgs {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-card__imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-hit);
}

.gallery-card:hover .gallery-card__imgs img {
  transform: scale(1.06);
}

.gallery-card__tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--black);
}

.gallery-card p {
  margin: 0;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--smoke);
}

/* Gallery — live before/after cards (DB) */
.chapter--gallery {
  padding: 0;
  overflow: visible;
}

.chapter--gallery::before {
  right: auto;
  left: clamp(0.5rem, 3vw, 2rem);
}

.gallery-layout {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 0;
}

.gallery-layout__aside {
  padding: clamp(3rem, 10vw, 6rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.gallery-layout__aside .chapter__lead {
  margin-bottom: 1.5rem;
}

.chapter--gallery .gallery-section__count {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.gallery-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}

.gallery-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gallery-legend__sw {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-legend__sw--before {
  background: var(--red);
}

.gallery-legend__sw--after {
  background: var(--green);
}

.gallery-legend__sw--action {
  background: transparent;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(200, 241, 53, 0.35);
}

.gallery-grid--compare {
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-layout__grid {
  width: 100%;
  min-width: 0;
  margin: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery-layout__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-layout {
    grid-template-columns: minmax(15rem, 32vw) minmax(0, 1fr);
    align-items: stretch;
    min-height: min(100vh, 100%);
  }

  .gallery-layout__aside {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow: auto;
    padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--black);
    z-index: 2;
  }

  .gallery-layout__grid {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (min-width: 1200px) {
  .gallery-layout__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1600px) {
  .gallery-layout__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card--compare {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--black);
  border: 0;
  border-left: 3px solid transparent;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease-hit);
}

.gallery-card--compare:hover,
.gallery-card--compare:focus-visible {
  border-left-color: var(--green);
  background: rgba(200, 241, 53, 0.03);
  outline: none;
  transform: none;
}

@media (max-width: 899px) {
  .gallery-card--compare:hover,
  .gallery-card--compare:focus-visible {
    transform: translateY(-2px);
  }
}

.gallery-card--compare .gallery-card__media {
  position: relative;
  background: #111;
}

.gallery-card__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  min-height: clamp(10rem, 22vw, 14rem);
}

.gallery-card__half {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #111;
}

.gallery-card__half--after {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-card__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(10rem, 22vw, 14rem);
  object-fit: cover;
  transition: transform 0.45s var(--ease-hit);
}

.gallery-card--compare:hover .gallery-card__img {
  transform: scale(1.04);
}

.gallery-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  padding: 0.2rem 0.45rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.gallery-card__badge--before {
  color: var(--white);
  background: rgba(232, 25, 44, 0.92);
}

.gallery-card__badge--after {
  color: var(--black);
  background: rgba(200, 241, 53, 0.95);
}

.gallery-card__hint {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gallery-card--compare:hover .gallery-card__hint,
.gallery-card--compare:focus-visible .gallery-card__hint {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.gallery-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-impact);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.gallery-card__caption {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--smoke);
}

@media (min-width: 900px) {
  .gallery-layout__grid .gallery-card__split,
  .gallery-layout__grid .gallery-card__img {
    min-height: clamp(11rem, 18vw, 16rem);
  }
}

/* TikTok — full-width split layout (copy left, clips right) */
.chapter--tiktok {
  padding: 0;
  overflow: visible;
}

.chapter--tiktok::before {
  right: auto;
  left: clamp(0.5rem, 3vw, 2rem);
}

.tiktok-layout {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 0;
}

.tiktok-layout__aside {
  padding: clamp(3rem, 10vw, 6rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.tiktok-layout__aside .chapter__lead {
  margin-bottom: 1.5rem;
}

.tiktok-section__count {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.tiktok-layout__main {
  width: 100%;
  min-width: 0;
  padding: 0 clamp(1rem, 2.5vw, 2rem) clamp(3rem, 8vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tiktok-layout__main .hoon-tiktok-root {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) {
  .tiktok-layout {
    grid-template-columns: minmax(15rem, 32vw) minmax(0, 1fr);
    align-items: stretch;
    min-height: min(100vh, 100%);
  }

  .tiktok-layout__aside {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow: auto;
    padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--black);
    z-index: 2;
  }

  .tiktok-layout__main {
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.75rem) clamp(3rem, 6vw, 4rem);
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* TikTok grid */
.tiktok-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .tiktok-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tiktok-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  padding: 2rem;
  background: var(--black);
  text-align: center;
  transition: background 0.25s;
}

.tiktok-tile:hover {
  background: rgba(200, 241, 53, 0.05);
}

.tiktok-tile__play {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  background: var(--green);
  color: var(--black);
  border-radius: 50%;
  transform: skewX(var(--skew));
}

.tiktok-tile__label {
  font-family: var(--font-impact);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tiktok-tile--cta {
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.15), transparent);
}

.tiktok-tile--cta .tiktok-tile__label {
  color: var(--orange);
}

/* Quote lookup */
.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 24rem;
}

.lookup-form label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
}

.lookup-form input {
  padding: 1rem 1.15rem;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--green);
  border-radius: 0;
}

.lookup-form input:focus {
  outline: none;
  border-color: var(--green);
}

.lookup-form .btn {
  align-self: flex-start;
}

/* Contact — full-width split layout (copy left, map right) */
.chapter--contact {
  padding: 0;
  overflow: visible;
}

.chapter--contact::before {
  right: auto;
  left: clamp(0.5rem, 3vw, 2rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 0;
}

.chapter--contact .chapter__label {
  margin-bottom: 0.65rem;
}

.chapter--contact .chapter__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 0.65rem;
}

.contact-layout__aside {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.15rem, 3vw, 2rem) 1.5rem;
}

.contact-layout__aside .chapter__lead {
  max-width: none;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-layout__aside .contact-grid {
  grid-template-columns: 1fr;
  margin-bottom: 1.15rem;
}

.contact-layout__aside .contact-block {
  padding: 1rem 1.1rem;
}

.contact-layout__aside .contact-block h3 {
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
}

.contact-layout__aside .contact-block a {
  font-size: 1.05rem;
  line-height: 1.2;
}

.contact-layout__aside .contact-block p {
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-directions-panel {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-directions-panel__title {
  font-family: var(--font-impact);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.contact-directions-panel__lead {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  color: var(--smoke);
  line-height: 1.45;
}

.contact-directions-panel__external {
  margin: 0.75rem 0 0;
}

.contact-directions-panel__external a {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-directions-panel__external a:hover {
  text-decoration: underline;
}

.contact-directions__status {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--smoke);
}

.contact-directions__badge {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--green);
}

.contact-directions__badge[hidden] {
  display: none;
}

.contact-layout__map {
  width: 100%;
  min-width: 0;
  min-height: clamp(14rem, 38vh, 20rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.contact-route-map__canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  touch-action: none;
}

.contact-route-map,
.contact-layout__map {
  overflow: hidden;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(18rem, 1.05fr) minmax(16rem, 0.95fr);
    align-items: start;
    gap: 0;
  }

  .contact-layout__aside {
    padding: clamp(1.75rem, 3.5vh, 2.35rem) clamp(1.25rem, 2vw, 1.85rem);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--black);
  }

  .contact-layout__aside .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout__map {
    position: sticky;
    top: 0.75rem;
    align-self: start;
    height: min(58vh, 28rem);
    min-height: min(58vh, 28rem);
    max-height: 28rem;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (min-width: 900px) and (min-height: 800px) {
  .contact-layout__map {
    height: min(62vh, 30rem);
    min-height: min(62vh, 30rem);
    max-height: 30rem;
  }
}

/* Contact grid */
.contact-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-block {
  padding: 1.75rem;
  background: var(--black);
}

.contact-block h3 {
  font-family: var(--font-impact);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.5rem;
}

.contact-block a {
  font-family: var(--font-impact);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.contact-block a:hover {
  color: var(--green);
}

.contact-block p {
  margin: 0;
  color: var(--smoke);
  line-height: 1.6;
}
