/* styles.css — AutoTork Performance site theme */

/* ── Design tokens ──────────────────────────────────────────────────── */
:root {
  --bg: #1F1F1F;
  --panel: #262626;
  --accent: #c8102e;
  --text: #fff;
  --muted: rgba(255,255,255,.7);
  --maxw: 1100px;
  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  /* Type scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

/* ── Font faces ─────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/c98fb0f8949aff87ccca197bd8eefe57/30e74ce1259c9cf8cc37eab4958296b9.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/836a013946065127f7ad367c4ee0cc02/8827a4384abb49cd4908a955efa461f7.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/836a013946065127f7ad367c4ee0cc02/8346bdde57cda57cb1ca0088bdfcb665.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/836a013946065127f7ad367c4ee0cc02/89110cd1014235597e1a7bcd3ee54877.woff2') format('woff2');
}

/* ── Base reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .04em;
  margin: 0 0 .3em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

section { padding: clamp(40px, 8vw, var(--sp-24)) var(--sp-4); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Button base ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: var(--text-base);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 200ms ease-out, transform 150ms ease-out;
  min-height: 44px;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ── Top contact bar ────────────────────────────────────────────────── */
.contact-bar {
  background: #141414;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: var(--sp-2) var(--sp-4);
}
.contact-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding: 0 var(--sp-4);
}
.contact-bar__link {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color 150ms ease-out;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.contact-bar__link:hover { color: #fff; }
.contact-bar__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Instagram link sits at the right on wider screens */
.contact-bar__link--ig { margin-left: auto; }
@media (max-width: 480px) {
  .contact-bar__inner { gap: var(--sp-4); }
  .contact-bar__link--ig { margin-left: 0; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.at-footer {
  background: #141414;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--sp-12) var(--sp-4);
}
.at-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  text-align: center;
}
.at-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
  justify-content: center;
}
.at-footer__link {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color 150ms ease-out;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.at-footer__link:hover { color: #fff; }
.at-footer__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.at-footer__address {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--text-base);
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0;
}
.at-footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  letter-spacing: .03em;
  margin: 0;
  max-width: 480px;
}

/* ── Scroll-reveal ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Hero section ────────────────────────────────────────────────────── */
.hero {
  padding: 0; /* override section base */
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.52) 0%,
      rgba(0,0,0,.44) 40%,
      rgba(0,0,0,.58) 75%,
      rgba(0,0,0,.80) 100%
    ),
    url('images/hero-porsche.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 860px;
  padding: clamp(var(--sp-16), 14vw, 120px) var(--sp-8) clamp(var(--sp-24), 14vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.hero__wordmark {
  width: clamp(140px, 26vw, 280px);
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.6));
}

.hero__title {
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 1.04;
  letter-spacing: .04em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,.75), 0 1px 4px rgba(0,0,0,.5);
  max-width: 800px;
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255,255,255,.87);
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
  max-width: 540px;
  margin: 0;
  line-height: 1.6;
}

.hero__cta {
  font-size: var(--text-lg);
  padding: 16px 40px;
  margin-top: var(--sp-2);
  box-shadow: 0 4px 20px rgba(200,16,46,.4), 0 2px 8px rgba(0,0,0,.35);
}
.hero__cta:hover {
  opacity: .88;
  box-shadow: 0 6px 24px rgba(200,16,46,.55), 0 2px 8px rgba(0,0,0,.35);
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: hero-scroll-pulse 2.4s ease-in-out infinite;
}

.hero__scroll-cue-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 100%);
}

.hero__scroll-cue-label {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.6);
  letter-spacing: .12em;
  text-transform: uppercase;
}

@keyframes hero-scroll-pulse {
  0%, 100% { opacity: .7; transform: translateX(-50%) translateY(0); }
  55% { opacity: 1; transform: translateX(-50%) translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue { animation: none; }
}

@media (max-width: 480px) {
  .hero__inner { gap: var(--sp-4); }
  .hero__cta {
    width: 100%;
    max-width: 320px;
  }
}

/* ── Sticky "Request Service" CTA ──────────────────────────────────── */
#at-cta {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 1000; /* z-1000: fixed CTA above page content — approved 2026-06-30 */
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--text-lg);
  letter-spacing: .06em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-out, transform 150ms ease-out;
  min-height: 44px;
}
#at-cta.show {
  opacity: 1;
  pointer-events: auto;
}
#at-cta:hover { opacity: .88; }
#at-cta:active { transform: scale(.96); }
#at-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ── Modal overlay ──────────────────────────────────────────────────── */
#at-modal {
  position: fixed;
  inset: 0;
  z-index: 1001; /* z-1001: modal scrim above sticky CTA + page — approved 2026-06-30 */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: var(--sp-4);
}
#at-modal.open {
  display: flex;
}

#at-modal .at-card {
  position: relative;
  background: var(--panel);
  color: var(--text);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.4);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

#at-modal .at-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: .04em;
  margin: 0 0 var(--sp-4);
  padding-right: var(--sp-6);
}

/* Close button */
.at-modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 150ms ease-out, color 150ms ease-out;
  min-height: unset;
}
.at-modal-close:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.at-modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Form inputs */
#at-modal input,
#at-modal textarea {
  width: 100%;
  margin: var(--sp-2) 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: var(--text-base);
  box-sizing: border-box;
  transition: border-color 150ms ease-out;
  min-height: 44px;
}
#at-modal input::placeholder,
#at-modal textarea::placeholder {
  color: rgba(255,255,255,.4);
}
#at-modal input:focus,
#at-modal textarea:focus {
  outline: none;
  border-color: var(--accent);
}
#at-modal textarea {
  resize: vertical;
  min-height: 96px;
}

/* Honeypot — hidden from real users, invisible to bots inspecting CSS */
#at-modal .at-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Submit */
#at-modal button.at-submit {
  width: 100%;
  margin-top: var(--sp-3);
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--text-lg);
  letter-spacing: .06em;
  cursor: pointer;
  transition: opacity 200ms ease-out, transform 150ms ease-out;
  min-height: 44px;
}
#at-modal button.at-submit:hover { opacity: .88; }
#at-modal button.at-submit:active { transform: scale(.98); }
#at-modal button.at-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Status message */
#at-modal .at-status {
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  min-height: 18px;
  color: var(--muted);
  text-align: center;
}

/* ── Services section (Task 4) ──────────────────────────────────────── */
#services {
  background:
    linear-gradient(rgba(20,20,20,.90), rgba(20,20,20,.93)),
    url('images/fleet-3.jpg') center / cover no-repeat;
}

.at-section-heading {
  font-size: clamp(32px, 5vw, 60px);
  text-align: center;
  margin: 0 0 var(--sp-3);
  letter-spacing: .04em;
}

.at-section-intro {
  text-align: center;
  color: var(--muted);
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  max-width: 600px;
  margin: 0 auto var(--sp-12);
  line-height: 1.65;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start; /* cards size to their content — no empty stretched boxes */
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

/* .svc-card overrides .reveal's transition so both reveal (opacity/transform
   at 600ms) and hover (border/shadow at 220ms) work without conflict.
   No transform on :hover keeps hover fast despite the 600ms transform duration. */
.svc-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  transition: opacity .6s ease-out, transform .6s ease-out,
              border-color 220ms ease-out, box-shadow 220ms ease-out;
}

.svc-card:hover {
  border-color: rgba(200,16,46,.4);
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
}

.svc-card__icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.svc-card__icon svg {
  width: 100%;
  height: 100%;
}

.svc-card__title {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.svc-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  flex: 1;
}

.svc-card__list li {
  padding: 4px 0 4px 14px;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.svc-card__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

.svc-cta-wrap { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .svc-card { transition: none; }
}

/* ── Race Series section (Task 5) ──────────────────────────────────── */
#race-series {
  background:
    linear-gradient(rgba(20,20,20,.88), rgba(20,20,20,.92)),
    url('images/fleet-5.jpg') center / cover no-repeat;
}

.race-narrative {
  max-width: 680px;
  margin: 0 auto var(--sp-12);
  color: var(--muted);
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  line-height: 1.65;
  text-align: center;
}

.race-narrative strong {
  color: var(--text);
  font-weight: 700;
}

.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.race-figure {
  margin: 0;
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.race-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.race-figure figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.4;
}

/* ── Fleet Gallery section (Task 6) ──────────────────────────────── */
#fleet {
  background: var(--bg);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

/* Carousel wrapper: position:relative so absolute buttons overlay
   the static carousel-track without needing z-index > 1. */
.carousel {
  position: relative;
}

/* Horizontally-scrollable track */
.carousel-track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  padding-bottom: var(--sp-1); /* clearance for Windows scrollbar */
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Individual fleet cards */
.fleet-card {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 340px);
  margin: 0;
  scroll-snap-align: start;
  background: var(--panel);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color 220ms ease-out, box-shadow 220ms ease-out;
}
.fleet-card:hover {
  border-color: rgba(200,16,46,.3);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.fleet-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.fleet-card figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.4;
}

/* Prev / Next buttons.
   position:absolute within position:relative .carousel — CSS paint order
   renders positioned elements above non-positioned siblings naturally.
   No z-index > 1 needed. */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(26,26,26,.88);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 150ms ease-out;
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn:hover { background: var(--accent); }
.carousel__btn:active { transform: translateY(-50%) scale(.93); }
.carousel__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

/* Desktop: indent track so buttons don't overlap first/last card */
@media (min-width: 769px) {
  .carousel-track {
    padding-left: 52px;
    padding-right: 52px;
  }
}

/* Mobile: hide prev/next, rely on native swipe scroll */
@media (max-width: 768px) {
  .carousel__btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-card { transition: none; }
  .carousel-track { scroll-behavior: auto; }
}

/* ── Testimonials section (Task 7) ───────────────────────────────── */
#testimonials {
  background:
    linear-gradient(rgba(20,20,20,.90), rgba(20,20,20,.93)),
    url('images/fleet-2.jpg') center / cover no-repeat;
}

.quote-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.06);
  padding: var(--sp-12) var(--sp-8);
  margin: 0 auto;
  max-width: 760px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

/* Large decorative open-quote mark */
.quote-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: .75;
  color: var(--accent);
  opacity: .45;
  display: block;
  margin-bottom: var(--sp-4);
}

.quote-card__text {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  line-height: 1.72;
  color: rgba(255,255,255,.92);
  font-style: italic;
  margin: 0 0 var(--sp-6);
}

.quote-card__attribution {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--sp-4);
}

.quote-card__author {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--text-xl);
  letter-spacing: .06em;
  color: var(--accent);
}

.quote-card__role {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: .03em;
}

@media (max-width: 480px) {
  .quote-card {
    padding: var(--sp-8) var(--sp-6);
  }
  .quote-card::before {
    font-size: 56px;
  }
}

/* ── Team section (Task 7) ───────────────────────────────────────── */
#team { background: var(--bg); }

.team-banner {
  margin: 0 0 var(--sp-12);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.team-banner img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.team-banner figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: .02em;
  background: var(--panel);
  line-height: 1.4;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
}

/* Reuses same transition pattern as .svc-card so reveal + hover don't conflict */
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: var(--sp-8) var(--sp-4);
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color 220ms ease-out, box-shadow 220ms ease-out;
}

.member-card:hover {
  border-color: rgba(200,16,46,.35);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

/* Shared shape for both photo and monogram containers */
.member-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 var(--sp-4);
  border: 2px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Monogram placeholder — initial letter centered on dark circle */
.member-card__photo--monogram {
  background: var(--bg);
  border-color: rgba(200,16,46,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 6vw, 38px);
  color: var(--accent);
  letter-spacing: .04em;
  /* Prevent the letter from being selectable / read as text */
  user-select: none;
  -webkit-user-select: none;
}

.member-card__name {
  font-size: 22px;
  letter-spacing: .04em;
  margin: 0 0 var(--sp-1);
}

.member-card__role {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
  letter-spacing: .03em;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-card { transition: none; }
}

/* ── Location section (Task 7) ───────────────────────────────────── */
#location { background: var(--panel); }

.location-info {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.location-address {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: .05em;
  color: var(--text);
  margin: 0 0 var(--sp-3);
}

.location-directions {
  font-size: var(--text-base);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 400px;
}

@media (max-width: 480px) {
  .location-map iframe {
    height: 280px;
  }
}

/* ── Past Seasons section (Task 8) ──────────────────────────────── */
#past-seasons {
  background:
    linear-gradient(rgba(20,20,20,.90), rgba(20,20,20,.94)),
    url('images/fleet-7.jpg') center / cover no-repeat;
  border-top: 1px solid rgba(255,255,255,.08);
}

.past-seasons__inner {
  text-align: center;
}

.past-seasons__sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: .06em;
  color: var(--accent);
  margin: 0 0 var(--sp-6);
}

.past-seasons__copy {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  color: var(--muted);
  margin: 0 0 var(--sp-4);
  line-height: 1.6;
}

.past-seasons__driver {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 12vw, 110px);
  letter-spacing: .04em;
  color: var(--text);
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

@media (max-width: 480px) {
  .past-seasons__driver {
    font-size: clamp(48px, 14vw, 80px);
  }
}

/* ── Affiliation band: based at Spring Mountain ─────────────────────── */
#affiliation {
  background: var(--bg);
  padding: clamp(28px, 5vw, 56px) var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.affiliation__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.affiliation__logo {
  width: clamp(220px, 40vw, 340px);
  height: auto;
  opacity: 0.95;
}
.affiliation__text {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.affiliation__text strong { color: var(--text); }
