/* ESD Motorsport — colours taken from the Ethan Stier Development logo */
:root {
  --bg: #0a111b; /* logo background navy-black */
  --bg-alt: #0f1824;
  --surface: #142030;
  --line: #22303f;
  --lime: #d6f31f; /* logo bull / accent lime */
  --steel: #8c96a2; /* logo bull shadow grey */
  --white: #f2f4f6; /* logo wordmark */
  --text: #c9d0d8;
  --radius: 14px;
  --nav-h: 68px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}
h3 {
  font-size: 1.45rem;
}
.accent {
  color: var(--lime);
}
strong {
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--lime);
  font-size: 0.9rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--lime);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  padding: 14px 28px;
  border: 2px solid var(--lime);
  border-radius: 4px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.btn-ghost {
  background: rgba(10, 17, 27, 0.4);
  color: var(--white);
  border-color: var(--steel);
}
.btn-ghost:hover {
  background: rgba(10, 17, 27, 0.6);
  color: var(--lime);
  border-color: var(--lime);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 1rem;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 17, 27, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
}
.brand em {
  color: var(--lime);
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(46% at 51% 50%);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover {
  color: var(--lime);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* HERO — full-width photo */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 72px 0;
}
/* Desktop: one sharp photo fills the whole screen; the left side is darkened
   so the headline stays readable over it. */
.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-photo-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  animation: hero-zoom 1.6s ease-out both;
}
@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 17, 27, 0.9) 0%, rgba(10, 17, 27, 0.75) 30%, rgba(10, 17, 27, 0.3) 52%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero h1,
.hero .lead,
.hero .eyebrow {
  text-shadow: 0 2px 18px rgba(10, 17, 27, 0.75);
}
.hero-inner {
  position: relative;
  z-index: 3;
}
.hero-copy {
  max-width: 620px;
}
.hero-badge {
  width: 64px;
  height: 64px;
  object-fit: cover;
  clip-path: circle(46% at 51% 50%);
  margin-bottom: 20px;
}
.lead {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 0 30px;
  color: #dde2e8;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.champ-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  background: rgba(20, 32, 48, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 8px;
}
.champ-badge svg {
  width: 34px;
  height: 34px;
  color: var(--lime);
  flex: none;
}
.champ-badge strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.champ-badge span {
  font-size: 0.88rem;
  color: var(--steel);
}

/* Speed lines streaking across the hero */
.speed-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.speed-lines span {
  position: absolute;
  right: -40%;
  height: 2px;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(214, 243, 31, 0.9));
  opacity: 0;
  animation: streak 3.6s linear infinite;
}
.speed-lines span:nth-child(1) {
  top: 22%;
  animation-delay: 0s;
}
.speed-lines span:nth-child(2) {
  top: 38%;
  width: 18%;
  animation-delay: 1.1s;
  background: linear-gradient(90deg, transparent, rgba(242, 244, 246, 0.7));
}
.speed-lines span:nth-child(3) {
  top: 57%;
  animation-delay: 2.2s;
}
.speed-lines span:nth-child(4) {
  top: 71%;
  width: 22%;
  animation-delay: 0.6s;
  background: linear-gradient(90deg, transparent, rgba(242, 244, 246, 0.6));
}
.speed-lines span:nth-child(5) {
  top: 84%;
  width: 14%;
  animation-delay: 1.7s;
}
@keyframes streak {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(-420%);
    opacity: 0;
  }
}

/* STATS */
.stats {
  background: var(--lime);
  color: var(--bg);
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-grid div {
  padding: 28px 16px;
  border-right: 1px solid rgba(10, 17, 27, 0.2);
}
.stats-grid div:last-child {
  border-right: 0;
}
.stats b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  line-height: 1;
}
.stats span {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Racing details: kerb stripe + chequered flag */
.kerb {
  height: 12px;
  background: repeating-linear-gradient(115deg, var(--lime) 0 28px, var(--white) 28px 56px);
  opacity: 0.9;
}
.checker {
  height: 28px;
  background: repeating-conic-gradient(var(--white) 0 25%, var(--bg) 0 50%) 0 0 / 28px 28px;
  opacity: 0.85;
}

/* SECTIONS */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
}
.section-lead {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 0 40px;
}

/* COACHING CARDS — cut corner like the buttons */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 30px 24px 28px;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  border-radius: var(--radius) 0 var(--radius) var(--radius);
  transition:
    transform 0.25s,
    background 0.25s;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--lime);
  transform: scaleY(0.25);
  transform-origin: top;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, #18263a, var(--bg-alt));
}
.card:hover::before {
  transform: scaleY(1);
}
.card p {
  margin: 0;
  font-size: 0.96rem;
}
.card-num {
  position: absolute;
  top: 18px;
  right: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
}
.card-icon {
  width: 52px;
  height: 44px;
  background: rgba(214, 243, 31, 0.12);
  color: var(--lime);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.card-icon svg {
  width: 24px;
  height: 24px;
}

/* DATA */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 32px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 12px;
  background: var(--lime);
  clip-path: polygon(0 50%, 15% 35%, 40% 60%, 85% 0, 100% 15%, 40% 90%);
}
.checks b {
  color: var(--white);
}
.telemetry {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.telemetry figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}
.l-you {
  background: var(--lime);
}
.l-ref {
  background: var(--steel);
}
.delta {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--white);
}
.delta b {
  color: var(--lime);
}
.telemetry svg {
  width: 100%;
  height: 240px;
  display: block;
}
.telemetry .grid line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.trace-ref,
.trace-you {
  fill: none;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.trace-ref {
  stroke: var(--steel);
  stroke-dasharray: 6 5;
}
.trace-you {
  stroke: var(--lime);
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.telemetry.in-view .trace-you {
  animation: draw 2.2s ease-out forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.telemetry-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--steel);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.about-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.about-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 17, 27, 0.6), transparent 45%);
}
.about-title {
  position: absolute;
  left: 0;
  bottom: 24px;
  z-index: 1;
  background: var(--lime);
  color: var(--bg);
  padding: 10px 22px 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.about-title b {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
}
.about-title span {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: 1.05rem;
}
#about p {
  max-width: 620px;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery figure {
  aspect-ratio: 4 / 5;
}
/* "More from the track": one row that scrolls sideways, so the section stays short */
.g-strip-wrap {
  margin-top: 40px;
}
.g-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.g-strip-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.g-strip-head h3 span {
  margin-left: 10px;
  font-family: inherit;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.g-strip-nav {
  display: flex;
  gap: 8px;
}
.g-strip-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.g-strip-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g-strip-btn:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}
.g-strip-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.g-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.g-strip::-webkit-scrollbar {
  display: none;
}
.g-strip:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
/* Each tile keeps its photo's own shape (tall or wide), so nothing is cropped */
.g-strip figure {
  flex: 0 0 auto;
  height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  scroll-snap-align: start;
}
.g-strip .g-open {
  width: auto;
  height: 100%;
}
.g-strip .g-open img {
  width: auto;
  height: 100%;
}
/* Soft fade on the edge that has more photos, so a part-shown photo reads as "scroll for more" */
.g-strip {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
}
.g-strip.mid {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
}
.g-strip.at-end {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px);
  mask-image: linear-gradient(90deg, transparent, #000 72px);
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
}
.g-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.g-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.g-open::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 17, 27, 0.7)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6f31f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  opacity: 0;
  transition: opacity 0.25s;
}
.g-open::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--lime);
  transition: width 0.3s;
}
.g-open:hover img,
.g-open:focus-visible img {
  transform: scale(1.04);
}
.g-open:hover::before,
.g-open:focus-visible::before {
  opacity: 1;
}
.g-open:hover::after,
.g-open:focus-visible::after {
  width: 100%;
}
.g-open:focus-visible {
  outline-offset: -3px;
}

/* LIGHTBOX */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #05090f;
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox[open] {
  display: flex;
  animation: lb-in 0.25s ease-out;
}
.lightbox::backdrop {
  background: #05090f;
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lb-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: calc(100vw - 160px);
}
.lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-count {
  position: absolute;
  top: 18px;
  left: 20px;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 32, 48, 0.85);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.lb-btn:hover {
  background: var(--lime);
  color: var(--bg);
}
.lb-btn svg {
  width: 22px;
  height: 22px;
}
.lb-close {
  top: 12px;
  right: 14px;
}
.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* STEPS */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps li {
  border-top: 3px solid var(--line);
  padding-top: 20px;
  transition: border-color 0.3s;
}
.steps li:hover {
  border-color: var(--lime);
}
.steps span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--lime);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.steps p {
  margin: 0;
  font-size: 0.96rem;
}

/* CONTACT */
.contact {
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 360px;
  height: 360px;
  background: repeating-conic-gradient(var(--white) 0 25%, transparent 0 50%) 0 0 / 40px 40px;
  opacity: 0.05;
  transform: rotate(12deg);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime);
}
.field .error {
  color: #ff8a7a;
  font-size: 0.85rem;
}
.field input[aria-invalid='true'] {
  border-color: #ff8a7a;
}
.form-status {
  margin: 0;
  color: var(--lime);
  font-weight: 600;
  min-height: 1.4em;
}
.wa-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.wa-direct {
  margin-top: 8px;
}
.wa-number {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--steel);
}
.wa-number a,
.footer-wa,
.form-status a {
  color: var(--lime);
  font-weight: 600;
}
.wa-number a:hover,
.footer-wa:hover,
.form-status a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  padding: 40px 0;
}
.footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 0.92rem;
}
.footer .small {
  color: var(--steel);
  font-size: 0.82rem;
}
.credit a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.credit a:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

/* SCROLL REVEAL (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.from-left {
  transform: translateX(-36px);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .cards,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid div:nth-child(2) {
    border-right: 0;
  }
  .stats-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(10, 17, 27, 0.2);
  }
  .nav-links {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .btn {
    margin-top: 16px;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero on phones: photo on top, text sliding up over its lower edge */
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 48px;
  }
  .hero-photo {
    position: relative;
    left: auto;
    display: block;
    height: clamp(300px, 92vw, 560px);
  }
  .hero-photo-main {
    width: 100%;
    object-position: 49% 20%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-shade {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 17, 27, 0.55) 30%, transparent 60%);
    height: clamp(300px, 92vw, 560px);
    bottom: auto;
  }
  .speed-lines {
    height: clamp(300px, 92vw, 560px);
    bottom: auto;
  }
  .hero-inner {
    margin-top: -56px;
  }
  .hero-badge {
    display: none;
  } /* logo is already in the menu bar; keeps the kart visible */
  .lead {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }
  .hero-cta {
    margin-bottom: 24px;
  }

  .data-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-card {
    max-width: 460px;
  }
  .section {
    padding: 64px 0;
  }
  .section-lead {
    margin-bottom: 28px;
    font-size: 1.02rem;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery figure {
    aspect-ratio: 1 / 1;
  }
  .g-strip-wrap {
    margin-top: 28px;
  }
  .g-strip figure {
    height: 220px;
  }
  .g-open::before {
    opacity: 1;
    width: 30px;
    height: 30px;
    background-size: 15px;
  }
  .lb-figure {
    max-width: 100vw;
    padding: 0 12px;
  }
  .lb-img {
    max-height: calc(100dvh - 160px);
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .lb-prev {
    left: calc(50% - 60px);
  }
  .lb-next {
    right: calc(50% - 60px);
  }
}
@media (max-width: 520px) {
  .cards,
  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .steps {
    gap: 24px;
  }
  .card {
    padding: 24px 20px 22px;
  }
  .stats-grid div {
    padding: 20px 12px;
  }
  .stats b {
    font-size: 1.6rem;
  }
  .stats span {
    font-size: 0.84rem;
  }
  .hero-cta {
    gap: 12px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
  .champ-badge {
    width: 100%;
    padding: 12px 16px;
  }
  .champ-badge strong {
    font-size: 1.1rem;
  }
  .section {
    padding: 56px 0;
  }
  .delta {
    margin-left: 0;
  }
  .telemetry {
    padding: 16px;
  }
  .telemetry svg {
    height: 190px;
  }
  .g-strip-nav {
    display: none;
  }
  .g-strip {
    margin-right: -16px;
    padding-right: 16px;
  }
  .about-title b {
    font-size: 2.1rem;
  }
  .contact-form {
    padding: 20px;
  }
  .kerb {
    height: 8px;
  }
  .checker {
    height: 20px;
    background-size: 20px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .speed-lines {
    display: none;
  }
  .trace-you {
    stroke-dashoffset: 0;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
