/* ═══════════════════════════════════════════════════════
   MOTORSPORT CLINIC — Steins;Gate Divergence Meter × Retro Motorsport
   Nixie tube glow · CRT scanlines · Filament wire dividers
   ═══════════════════════════════════════════════════════ */

/* ── Type Scale ── */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* ── Spacing (4px base) ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Fonts ── */
  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* ── Radius ── */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Content widths ── */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ═══════════════════════════════════
   NIXIE TUBE PALETTE
   Dark vacuum tube interior, warm amber cathode glow
   ═══════════════════════════════════ */

:root, [data-theme="dark"] {
  /* Surfaces — inside of a vacuum tube */
  --color-bg:             #0a0a08;
  --color-surface:        #141210;
  --color-surface-2:      #1c1a16;
  --color-surface-offset: #111010;
  --color-divider:        #2a2722;
  --color-border:         #3a3630;

  /* Text — warm cream under tungsten light */
  --color-text:           #e8dcc8;
  --color-text-muted:     #7a7264;
  --color-text-faint:     #4e4a42;
  --color-text-inverse:   #0a0a08;

  /* Nixie amber — signature warm orange cathode glow */
  --color-nixie:          #ff8c00;
  --color-nixie-dim:      #8b5e2b;
  --color-nixie-bright:   #ffb347;

  /* Accent — racing red (used sparingly) */
  --color-accent:         #c4291c;
  --color-accent-hover:   #a82218;
  --color-accent-active:  #8c1c13;

  /* Glass border — subtle tube glass reflection */
  --color-glass:          rgba(255,180,80,0.15);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
}

[data-theme="light"] {
  --color-bg:             #f5f0e6;
  --color-surface:        #eee8dc;
  --color-surface-2:      #e5dfd3;
  --color-surface-offset: #f0ebe0;
  --color-divider:        #d4cfc3;
  --color-border:         #c4bfb3;

  --color-text:           #1a1816;
  --color-text-muted:     #6e6a60;
  --color-text-faint:     #a09c92;
  --color-text-inverse:   #f5f0e6;

  --color-nixie:          #c46a00;
  --color-nixie-dim:      #a08050;
  --color-nixie-bright:   #e08800;

  --color-accent:         #b52418;
  --color-accent-hover:   #961e14;
  --color-accent-active:  #7a1810;

  --color-glass:          rgba(180,120,40,0.15);

  --shadow-sm: 0 1px 2px rgba(40,35,20,0.08);
  --shadow-md: 0 4px 12px rgba(40,35,20,0.12);
  --shadow-lg: 0 12px 32px rgba(40,35,20,0.16);
}

/* System preference fallback */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #f5f0e6;
    --color-surface:        #eee8dc;
    --color-surface-2:      #e5dfd3;
    --color-surface-offset: #f0ebe0;
    --color-divider:        #d4cfc3;
    --color-border:         #c4bfb3;
    --color-text:           #1a1816;
    --color-text-muted:     #6e6a60;
    --color-text-faint:     #a09c92;
    --color-text-inverse:   #f5f0e6;
    --color-nixie:          #c46a00;
    --color-nixie-dim:      #a08050;
    --color-nixie-bright:   #e08800;
    --color-accent:         #b52418;
    --color-accent-hover:   #961e14;
    --color-accent-active:  #7a1810;
    --color-glass:          rgba(180,120,40,0.15);
    --shadow-sm: 0 1px 2px rgba(40,35,20,0.08);
    --shadow-md: 0 4px 12px rgba(40,35,20,0.12);
    --shadow-lg: 0 12px 32px rgba(40,35,20,0.16);
  }
}

/* ═══════════════════════════════════
   LAYOUT
   ═══════════════════════════════════ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ═══════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s var(--ease-out);
}

[data-theme="light"] .header {
  background: rgba(245,240,230,0.92);
}

.header--scrolled {
  box-shadow: var(--shadow-sm), 0 1px 20px rgba(255,140,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .header-inner { padding-inline: var(--space-8); }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

[data-theme="light"] .logo-img {
  filter: invert(1);
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-nixie);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition-interactive);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-nixie);
}

/* Theme toggle */
.theme-toggle {
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-nixie);
  background: var(--color-surface-2);
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 110;
  position: relative;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  background: #0a0a08;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  list-style: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

[data-theme="light"] .nav-mobile {
  background: #f5f0e6;
}

.nav-mobile.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.nav-mobile a:hover {
  color: var(--color-nixie);
}

/* ═══════════════════════════════════
   NIXIE TUBE ELEMENTS
   ═══════════════════════════════════ */

/* Nixie glow text utility */
.nixie-glow {
  color: var(--color-nixie);
  text-shadow: 0 0 10px var(--color-nixie), 0 0 20px rgba(255,140,0,0.5), 0 0 40px rgba(255,140,0,0.25), 0 0 80px rgba(255,140,0,0.12);
}

[data-theme="light"] .nixie-glow {
  text-shadow: none;
}

/* Divergence Meter (hero) */
.divergence-meter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-3);
  background: rgba(10,10,8,0.6);
  border: 1px solid rgba(255,180,80,0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
}

.nixie-digit-tube {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  border: 1px solid rgba(255,180,80,0.2);
  border-radius: 6px;
  background: rgba(255,140,0,0.03);
}

.nixie-digit {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff8c00;
  text-shadow: 0 0 10px #ff8c00, 0 0 20px rgba(255,140,0,0.5), 0 0 40px rgba(255,140,0,0.25), 0 0 80px rgba(255,140,0,0.12);
  line-height: 1;
}

.nixie-dot {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff8c00;
  text-shadow: 0 0 10px #ff8c00, 0 0 20px rgba(255,140,0,0.5);
  line-height: 1;
  margin: 0 -1px;
}

[data-theme="light"] .divergence-meter {
  background: rgba(245,240,230,0.8);
  border-color: rgba(180,120,40,0.2);
}

[data-theme="light"] .nixie-digit-tube {
  border-color: rgba(180,120,40,0.2);
  background: rgba(200,130,0,0.05);
}

[data-theme="light"] .nixie-digit,
[data-theme="light"] .nixie-dot {
  color: var(--color-nixie);
  text-shadow: none;
}

/* Nixie Section Counter */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.nixie-section-counter {
  display: flex;
  gap: 4px;
}

.nixie-tube {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 52px;
  border: 1px solid rgba(255,180,80,0.2);
  border-radius: 8px;
  background: rgba(255,140,0,0.03);
  position: relative;
}

/* Subtle top highlight on glass */
.nixie-tube::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,180,80,0.3), transparent);
}

.nixie-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff8c00;
  text-shadow: 0 0 10px #ff8c00, 0 0 20px rgba(255,140,0,0.5), 0 0 40px rgba(255,140,0,0.25), 0 0 80px rgba(255,140,0,0.12), 0 0 15px rgba(255,140,0,0.4), 0 0 30px rgba(255,140,0,0.15);
  line-height: 1;
}

[data-theme="light"] .nixie-tube {
  border-color: rgba(180,120,40,0.2);
  background: rgba(200,130,0,0.05);
}

[data-theme="light"] .nixie-num {
  color: var(--color-nixie);
  text-shadow: none;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-nixie);
  white-space: nowrap;
}

/* ═══════════════════════════════════
   CRT SCANLINE OVERLAY
   ═══════════════════════════════════ */

.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.15) 0px,
    rgba(0,0,0,0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.3;
}

[data-theme="light"] .crt-overlay {
  opacity: 0.1;
}

/* ═══════════════════════════════════
   FILAMENT WIRE DIVIDERS
   ═══════════════════════════════════ */

.filament-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,140,0,0.38), #ff8c00, rgba(255,140,0,0.38), transparent);
  box-shadow: 0 0 12px rgba(255,140,0,0.35), 0 0 32px rgba(255,140,0,0.16), 0 0 64px rgba(255,140,0,0.07);
  margin-block: 0;
}

[data-theme="light"] .filament-divider {
  background: linear-gradient(90deg, transparent, rgba(180,120,40,0.3), var(--color-nixie), rgba(180,120,40,0.3), transparent);
  box-shadow: none;
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    #0a0a08 0%,
    rgba(10,10,8,0.85) 30%,
    rgba(10,10,8,0.15) 55%,
    rgba(10,10,8,0.05) 70%,
    rgba(10,10,8,0.4) 90%,
    #0a0a08 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    #f5f0e6 0%,
    rgba(245,240,230,0.85) 30%,
    rgba(245,240,230,0.15) 55%,
    rgba(245,240,230,0.05) 70%,
    rgba(245,240,230,0.4) 90%,
    #f5f0e6 100%
  );
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: var(--content-wide);
  margin-inline: auto;
  width: 100%;
}

.hero-top {
  padding: var(--space-6) var(--space-4) 0;
}

.hero-bottom {
  padding: 0 var(--space-4) var(--space-6);
}

.hero-bottom .hero-desc {
  color: #0a0a08;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(255,255,255,0.3);
}

[data-theme="light"] .hero-bottom .hero-desc {
  color: #1a1816;
}

.hero-bottom .btn-outline {
  background: rgba(255,255,255,0.5);
  color: #0a0a08;
  font-weight: 700;
  border-color: rgba(255,255,255,0.6);
}

@media (min-width: 768px) {
  .hero-top {
    padding: var(--space-8) var(--space-8) 0;
  }
  .hero-bottom {
    padding: 0 var(--space-8) var(--space-8);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  color: var(--color-text);
  line-height: 0.95;
  margin-bottom: var(--space-6);
  max-width: 12ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-nixie);
  text-shadow: 0 0 30px rgba(255,140,0,0.3);
}

[data-theme="light"] .hero h1 em {
  text-shadow: none;
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-location {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 0 15px rgba(255,140,0,0.2), var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-nixie-dim);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ═══════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════ */

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.05;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

/* ═══════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════ */

.services-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,140,0,0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.service-card:hover {
  border-color: rgba(255,140,0,0.3);
  box-shadow: 0 0 20px rgba(255,140,0,0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-nixie-dim);
  line-height: 1;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════
   AWARDS TABLE
   ═══════════════════════════════════ */
.awards-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-glass);
  background: var(--color-surface);
}

.awards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.awards-table thead {
  background: var(--color-surface-2);
}

.awards-table th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-nixie);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid rgba(255,140,0,0.25);
}

.awards-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.awards-table tbody tr:last-child td {
  border-bottom: none;
}

.awards-table tbody tr:hover {
  background: rgba(255,140,0,0.04);
}

.awards-table tbody tr:hover td {
  color: var(--color-text);
}

.awards-prize {
  color: var(--color-nixie) !important;
  font-weight: 500;
}

.awards-sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.awards-sortable:hover {
  color: #fff;
}

.awards-sortable.sort-active {
  color: #fff;
}

.awards-sort-icon {
  font-size: 10px;
  opacity: 0.7;
}

/* Filter dropdowns */
.awards-filters {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.awards-filters select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6) var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
}

.awards-filters select:hover,
.awards-filters select:focus {
  border-color: var(--color-nixie);
  color: var(--color-text);
  outline: none;
}

@media (max-width: 639px) {
  .awards-table {
    font-size: var(--text-xs);
  }
  .awards-table th,
  .awards-table td {
    padding: var(--space-2) var(--space-3);
  }
  .awards-filters {
    gap: var(--space-2);
  }
  .awards-filters select {
    font-size: var(--text-xs);
    min-width: 0;
    flex: 1;
  }
}

/* ═══════════════════════════════════
   PHOTO STRIPS (Workshop Life / On Track)
   ═══════════════════════════════════ */

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  width: 100%;
  height: clamp(220px, 32vw, 400px);
  overflow: hidden;
}

.photo-strip-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.photo-strip-item {
  overflow: hidden;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.4s ease;
}

.photo-strip-item:hover img {
  filter: grayscale(0%) contrast(1.1);
}

@media (max-width: 639px) {
  .photo-strip {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .photo-strip-item img {
    height: clamp(140px, 35vw, 200px);
  }
  .photo-strip-3 {
    grid-template-columns: 1fr 1fr;
  }
  .photo-strip-3 .photo-strip-item:last-child {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════
   GARAGE / BUILDS
   ═══════════════════════════════════ */

.builds-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .builds-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Satria spans full width */
.build-card-featured {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .build-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .build-card-featured .build-card-image {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.build-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.build-card:hover {
  border-color: rgba(255,140,0,0.3);
  box-shadow: 0 0 20px rgba(255,140,0,0.1);
  transform: translateY(-2px);
}

.build-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.build-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.build-card:hover .build-card-image img.active {
  transform: scale(1.03);
}

/* Gallery: stacked images */
.build-card-image .gallery-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.build-card-image .gallery-img.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Gallery dots */
.gallery-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.build-card-image:hover .gallery-dots,
.build-card-image.touching .gallery-dots,
.founder-image:hover .gallery-dots,
.founder-image.touching .gallery-dots {
  opacity: 1;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-dot.active {
  background: var(--color-nixie);
  border-color: var(--color-nixie);
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(255,140,0,0.5);
}

/* Hover zone indicator */
[data-gallery] {
  cursor: ew-resize;
}

.build-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 4;
}

.build-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.build-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.build-card-body .build-subtitle {
  font-size: var(--text-sm);
  color: var(--color-nixie);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.build-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.mod-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.mod-list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════
   EVENTS SECTION
   ═══════════════════════════════════ */

.events-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}

.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
  border-color: rgba(255,140,0,0.3);
  box-shadow: 0 0 20px rgba(255,140,0,0.1);
  transform: translateY(-2px);
}

.event-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s var(--ease-out);
}

.event-card:hover .event-card-image img {
  transform: scale(1.03);
}

.event-card-body {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
}

.event-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 56px;
  padding-top: var(--space-1);
}

.event-day {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-nixie);
  line-height: 1;
}

.event-day.nixie-glow {
  text-shadow: 0 0 10px var(--color-nixie), 0 0 20px rgba(255,140,0,0.5), 0 0 40px rgba(255,140,0,0.25);
}

[data-theme="light"] .event-day.nixie-glow {
  text-shadow: none;
}

.event-month {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.event-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.event-venue {
  font-size: var(--text-sm);
  color: var(--color-nixie);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.event-details {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.event-info .btn {
  margin-top: var(--space-2);
}

/* Event gallery strip */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-10);
}

.event-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-glass);
  filter: grayscale(10%) contrast(1.02);
}

@media (max-width: 767px) {
  .event-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .event-gallery img {
    height: 160px;
  }
}

@media (max-width: 479px) {
  .event-gallery {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }
  .event-gallery img {
    height: 120px;
  }
}

/* ═══════════════════════════════════
   ABOUT / SPLIT SECTION
   ═══════════════════════════════════ */

.split-section {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .split-section { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-glass);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.split-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.05;
}

.split-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.stat-row {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-glass);
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-nixie);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-value.nixie-glow {
  text-shadow: 0 0 10px var(--color-nixie), 0 0 20px rgba(255,140,0,0.5), 0 0 40px rgba(255,140,0,0.25);
}

[data-theme="light"] .stat-value.nixie-glow {
  text-shadow: none;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════
   FOUNDER
   ═══════════════════════════════════ */

.founder-section {
  padding-block: clamp(var(--space-8), 6vw, var(--space-16));
}

.founder-card {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: 640px;
  margin-inline: auto;
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-xl);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
  border-color: rgba(255,140,0,0.3);
  box-shadow: 0 0 20px rgba(255,140,0,0.08);
}

.founder-image {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-glass);
  cursor: ew-resize;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.founder-image .gallery-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.founder-image .gallery-img.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.founder-image .gallery-dots {
  bottom: var(--space-2);
}

.founder-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-nixie);
  margin-bottom: var(--space-1);
}

.founder-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.founder-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 639px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6) var(--space-5);
    gap: var(--space-5);
  }
  .founder-image {
    width: 100%;
    aspect-ratio: 16/10;
  }
}

/* ═══════════════════════════════════
   CONTACT
   ═══════════════════════════════════ */

.contact-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
}

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-nixie);
  margin-top: 2px;
}

.contact-item h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-item p,
.contact-item a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--color-nixie);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-nixie);
  box-shadow: 0 0 0 3px rgba(255,140,0,0.15), 0 0 12px rgba(255,140,0,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

.footer {
  padding-block: var(--space-8);
}

.footer-logo {
  text-align: center;
  margin-bottom: var(--space-8);
}

.footer-logo img {
  height: 80px;
  width: auto;
  opacity: 0.7;
}

[data-theme="light"] .footer-logo img {
  filter: invert(1);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links a:hover {
  color: var(--color-nixie);
}

/* ═══════════════════════════════════
   SCROLL REVEAL (CSS-only)
   ═══════════════════════════════════ */

.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   SELECTION
   ═══════════════════════════════════ */

::selection {
  background: rgba(255,140,0,0.25);
  color: var(--color-text);
}

/* ═══════════════════════════════════
   HEADER CTA
   ═══════════════════════════════════ */

.btn-header-cta {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .btn-header-cta {
    display: none;
  }
}

/* ═══════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════ */

.logo-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-nixie);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,140,0,0.25), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  padding: 10px;
}

.logo-float img {
  width: 100%;
  height: auto;
  display: block;
}

[data-theme="light"] .logo-float img {
  filter: invert(1);
}

.logo-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(255,140,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
}

.logo-float:active {
  transform: scale(0.95);
}

@media (max-width: 639px) {
  .logo-float {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 52px;
    height: 52px;
    padding: 8px;
  }
}

/* ═══════════════════════════════════
   FOOTER WHATSAPP
   ═══════════════════════════════════ */

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.footer-whatsapp:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   ADMIN CMS — Content Manager UI
   Nixie tube aesthetic, matching existing design language
   ═══════════════════════════════════════════════════════ */


/* ── Login Overlay ── */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

[data-theme="light"] .admin-login-overlay {
  background: rgba(245, 240, 230, 0.92);
}

.admin-login-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-login-modal {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 40px rgba(255, 140, 0, 0.1), var(--shadow-lg);
}

.admin-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.admin-modal-close:hover {
  color: var(--color-nixie);
  background: var(--color-surface-2);
}

.admin-login-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-login-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admin-login-error {
  color: var(--color-accent);
  font-size: var(--text-sm);
  min-height: 1.4em;
}

/* ── Admin Panel Overlay ── */
.admin-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: rgba(10, 10, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
  padding: var(--space-4);
}

[data-theme="light"] .admin-panel-overlay {
  background: rgba(245, 240, 230, 0.85);
}

.admin-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-panel {
  width: 100%;
  max-width: 800px;
  margin: var(--space-4) auto;
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 60px rgba(255, 140, 0, 0.08), var(--shadow-lg);
  align-self: flex-start;
}

@media (max-width: 639px) {
  .admin-panel {
    padding: var(--space-4) var(--space-4);
    margin: 0;
    border-radius: var(--radius-lg);
  }
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-glass);
}

.admin-panel-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.admin-panel-title-row h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}

.admin-panel-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Admin Tabs ── */
.admin-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 0;
}

.admin-tab {
  position: relative;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-interactive);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.admin-tab:hover {
  color: var(--color-text);
}

.admin-tab.active {
  color: var(--color-nixie);
  border-bottom-color: var(--color-nixie);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* ── Admin List ── */
.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.admin-list-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-interactive);
}

.admin-list-item:hover {
  border-color: rgba(255, 140, 0, 0.3);
}

.admin-list-item-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1;
}

.admin-list-item-info strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-list-item-info small {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-list-item-info em {
  color: var(--color-nixie);
}

.admin-list-item-date {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
}

.admin-list-item-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.admin-list-item-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.admin-btn-danger {
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

.admin-btn-danger:hover {
  background: var(--color-accent) !important;
  color: #fff !important;
}

/* ── Admin Forms ── */
.admin-form-container {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 140, 0, 0.1);
}

.admin-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.admin-form-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-nixie);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 479px) {
  .admin-form-row {
    grid-template-columns: 1fr;
  }
}

.admin-form-checkbox {
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-3);
}

.admin-form-checkbox label {
  display: flex !important;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.admin-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-nixie);
  cursor: pointer;
}

.admin-form-actions {
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

/* ── Floating Edit Buttons ── */
.admin-edit-float {
  position: fixed;
  left: var(--space-4);
  z-index: 89;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-nixie);
  border-radius: var(--radius-full);
  color: var(--color-nixie);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.admin-edit-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  background: var(--color-surface-2);
}

#admin-edit-awards {
  bottom: calc(var(--space-6) + 72px);
}

#admin-edit-services {
  bottom: calc(var(--space-6) + 120px);
}

#admin-edit-events {
  bottom: calc(var(--space-6) + 168px);
}

#admin-edit-cars {
  bottom: calc(var(--space-6) + 216px);
}

@media (max-width: 639px) {
  #admin-edit-awards {
    bottom: calc(var(--space-4) + 64px);
  }
  #admin-edit-services {
    bottom: calc(var(--space-4) + 108px);
  }
  #admin-edit-events {
    bottom: calc(var(--space-4) + 152px);
  }
  #admin-edit-cars {
    bottom: calc(var(--space-4) + 196px);
  }
  .admin-edit-float {
    padding: var(--space-2) var(--space-3);
  }
}

/* ── Scrollbar styling for admin panel ── */
.admin-panel::-webkit-scrollbar {
  width: 6px;
}
.admin-panel::-webkit-scrollbar-track {
  background: var(--color-surface);
}
.admin-panel::-webkit-scrollbar-thumb {
  background: var(--color-divider);
  border-radius: 3px;
}
.admin-panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-nixie-dim);
}

/* ── Admin Form textarea/input inherit existing styles ── */
.admin-form .form-group input,
.admin-form .form-group textarea {
  font-family: var(--font-body);
}

.admin-form .form-group textarea {
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ═══════════════════════════════════
   UPLOAD ZONES — Native Photo Upload
   ═══════════════════════════════════ */

.upload-zone {
  position: relative;
  border: 2px dashed var(--color-glass);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-nixie);
  background: rgba(255,140,0,0.04);
}

.upload-zone.dragover {
  box-shadow: 0 0 20px rgba(255,140,0,0.15) inset;
}

.upload-zone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--color-text-faint);
}

.upload-zone-prompt svg {
  color: var(--color-nixie-dim);
  opacity: 0.6;
}

.upload-zone:hover .upload-zone-prompt svg {
  opacity: 1;
  color: var(--color-nixie);
}

.upload-zone-prompt span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.upload-zone-prompt small {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.upload-zone-sm .upload-zone-prompt {
  padding: var(--space-5) var(--space-4);
}

/* Upload preview (single image — events) */
.upload-zone-preview {
  position: relative;
  width: 100%;
}

.upload-zone-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.upload-zone-remove {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 28px;
  height: 28px;
  background: rgba(196,41,28,0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.upload-zone-remove:hover {
  background: rgba(196,41,28,1);
  transform: scale(1.1);
}

/* Upload gallery (multiple images — cars) */
.upload-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.upload-gallery-item {
  position: relative;
  border: 1px solid var(--color-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.upload-gallery-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.upload-gallery-alt {
  display: block;
  width: 100%;
  padding: var(--space-1) var(--space-2);
  border: none;
  border-top: 1px solid var(--color-glass);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: 11px;
  font-family: var(--font-body);
}

.upload-gallery-alt:focus {
  outline: none;
  background: var(--color-surface);
  color: var(--color-text);
}

.upload-gallery-alt::placeholder {
  color: var(--color-text-faint);
}

.upload-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(196,41,28,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.upload-gallery-item:hover .upload-gallery-remove {
  opacity: 1;
}

.upload-gallery-remove:hover {
  background: rgba(196,41,28,1);
  transform: scale(1.1);
}

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

/* ═══════════════════════════════════════════════════════════════
   POLISHED VISUAL EFFECTS & ENTRANCE ANIMATIONS
   All wrapped in prefers-reduced-motion: no-preference
   Only transform + opacity animated (GPU composited, no layout)
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {

  /* ──────────────────────────────────────────
     KEYFRAMES
     ────────────────────────────────────────── */

  /* Hero bg: Ken Burns slow zoom with subtle pan */
  @keyframes hero-ken-burns {
    0%   { transform: scale(1.05) translate(1%, 0.5%); }
    100% { transform: scale(1.0)  translate(0%,   0%); }
  }

  /* Hero bg: initial fade-in from black */
  @keyframes hero-bg-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Generic fade-up entrance (hero elements) */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Generic fade-in (no translate) */
  @keyframes fade-only {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* CRT overlay: monitor warming up — fade from 0 to target opacity */
  @keyframes crt-warm-up {
    0%   { opacity: 0; }
    40%  { opacity: 0.18; }
    70%  { opacity: 0.28; }
    100% { opacity: 0.3; }
  }

  /* Nixie "Faster" em: flicker on then hold — like a tube striking */
  @keyframes nixie-strike {
    0%   { opacity: 0; }
    8%   { opacity: 0.9; }
    14%  { opacity: 0.05; }
    22%  { opacity: 0.85; }
    28%  { opacity: 0.1; }
    36%  { opacity: 1; }
    100% { opacity: 1; }
  }

  /* Subtle ongoing text-shadow breathe on the nixie em */
  @keyframes nixie-breathe {
    0%   { text-shadow: 0 0 20px rgba(255,140,0,0.25), 0 0 40px rgba(255,140,0,0.1); }
    50%  { text-shadow: 0 0 30px rgba(255,140,0,0.5),  0 0 60px rgba(255,140,0,0.22), 0 0 100px rgba(255,140,0,0.1); }
    100% { text-shadow: 0 0 20px rgba(255,140,0,0.25), 0 0 40px rgba(255,140,0,0.1); }
  }

  /* Filament divider glow pulse */
  @keyframes filament-pulse {
    0%   { box-shadow: 0 0 6px  rgba(255,140,0,0.18), 0 0 16px rgba(255,140,0,0.08); }
    50%  { box-shadow: 0 0 12px rgba(255,140,0,0.35), 0 0 30px rgba(255,140,0,0.18), 0 0 60px rgba(255,140,0,0.07); }
    100% { box-shadow: 0 0 6px  rgba(255,140,0,0.18), 0 0 16px rgba(255,140,0,0.08); }
  }

  /* Section counter: slide in from left */
  @keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* Awards table rows stagger in */
  @keyframes row-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }


  /* ──────────────────────────────────────────
     1. HERO ENTRANCE SEQUENCE (on page load)
     ────────────────────────────────────────── */

  /* Ken Burns on the hero background image */
  .hero-bg img {
    animation:
      hero-bg-fadein 0.3s ease-out both,
      hero-ken-burns 20s ease-out 0.3s both;
  }

  /* Hero h1: fade up */
  .hero h1 {
    animation: fade-up 0.6s ease-out 0.2s both;
  }

  /* "Faster" em: nixie tube striking, then breathes forever */
  .hero h1 em {
    animation:
      nixie-strike  1.2s ease-out 0.8s both,
      nixie-breathe 4s   ease-in-out 2.2s infinite;
  }

  /* Hero description: fade up */
  .hero-desc {
    animation: fade-up 0.5s ease-out 0.6s both;
  }

  /* Hero CTA buttons: fade up */
  .hero-actions {
    animation: fade-up 0.5s ease-out 0.8s both;
  }

  /* Hero location badge: fade only (no translate — it's small detail text) */
  .hero-location {
    animation: fade-only 0.5s ease-out 1.0s both;
  }

  /* CRT overlay: monitor warming up */
  .crt-overlay {
    opacity: 0;
    animation: crt-warm-up 1.5s ease-out 0.1s forwards;
  }

  /* Light theme CRT warms to 0.1 */
  [data-theme="light"] .crt-overlay {
    animation: none;
    opacity: 0.1;
  }


  /* ──────────────────────────────────────────
     2. IMPROVED SCROLL REVEAL (.fade-in)
        translateY + opacity via scroll-driven API
        (keyframe already updated above in reveal-fade)
     ────────────────────────────────────────── */
  /* No additional changes needed here — the reveal-fade @keyframes
     was updated in place above to include translateY(24px) → 0. */


  /* ──────────────────────────────────────────
     3. SECTION HEADER ENTRANCES
        .nixie-section-counter → slide in from left
        .section-label → fade in
        Both use scroll-driven animation-timeline: view()
     ────────────────────────────────────────── */

  @supports (animation-timeline: scroll()) {

    .nixie-section-counter {
      animation: slide-in-left linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    .section-label {
      animation: fade-only linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    /* ──────────────────────────────────────────
       6. AWARDS TABLE ROW STAGGER ENTRANCES
          tbody tr:nth-child(n) with delay increments
       ────────────────────────────────────────── */

    .awards-table tbody tr {
      animation: row-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    /* Stagger: each row gets a slightly later range start */
    .awards-table tbody tr:nth-child(1)  { animation-range: entry  0% entry 70%; }
    .awards-table tbody tr:nth-child(2)  { animation-range: entry  5% entry 75%; }
    .awards-table tbody tr:nth-child(3)  { animation-range: entry 10% entry 80%; }
    .awards-table tbody tr:nth-child(4)  { animation-range: entry 15% entry 85%; }
    .awards-table tbody tr:nth-child(5)  { animation-range: entry 20% entry 90%; }
    .awards-table tbody tr:nth-child(6)  { animation-range: entry 25% entry 95%; }
    .awards-table tbody tr:nth-child(n+7){ animation-range: entry 30% entry 100%; }

  }


  /* ──────────────────────────────────────────
     4. AMBIENT EFFECTS
     ────────────────────────────────────────── */

  /* Filament divider: gentle glow pulse */
  .filament-divider {
    animation: filament-pulse 4s ease-in-out infinite;
  }

  /* Light mode: no glow pulse (filament has no box-shadow in light) */
  [data-theme="light"] .filament-divider {
    animation: none;
  }

  /* Service cards: scale on hover (enhance existing border/shadow hover) */
  .service-card {
    transition:
      border-color var(--transition-interactive),
      box-shadow   var(--transition-interactive),
      transform    0.3s var(--ease-out);
  }
  .service-card:hover {
    transform: scale(1.02);
  }

  /* Build cards: already have translateY(-2px) — upgrade to scale(1.02) */
  .build-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  }
  .build-card:hover {
    transform: scale(1.02);
  }

  /* Event cards: same treatment */
  .event-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  }
  .event-card:hover {
    transform: scale(1.02);
  }

} /* end @media (prefers-reduced-motion: no-preference) */


/* ── Smooth anchor scroll (already in base.css; added here as belt-and-braces) ── */
/* html { scroll-behavior: smooth; } — set in base.css */


/* ═══════════════════════════════════════════════════════════════
   MOTORSPORT VISUAL OVERHAUL — Premium Enhancements
   Racing stripes · Grain overlay · Vignette · Micro-interactions
   Scrollbar · Focus rings · Print styles · Performance
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────
   1. CUSTOM SCROLLBAR
   ───────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a08;
}

::-webkit-scrollbar-thumb {
  background: var(--color-nixie-dim);
  border-radius: var(--radius-full);
  border: 2px solid #0a0a08;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-nixie);
}

[data-theme="light"]::-webkit-scrollbar-track {
  background: #f5f0e6;
}

[data-theme="light"]::-webkit-scrollbar-thumb {
  background: var(--color-nixie-dim);
  border-color: #f5f0e6;
}


/* ─────────────────────────────────────────────────────────
   2. FOCUS STYLES — keyboard navigation
   ───────────────────────────────────────────────────────── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-nixie);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ─────────────────────────────────────────────────────────
   3. RACING STRIPE — left edge of main
   ───────────────────────────────────────────────────────── */

main {
  position: relative;
}

main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 8px,
    rgba(255,140,0,0.5) 8px,
    rgba(255,140,0,0.5) 12px,
    #0a0a08 12px,
    #0a0a08 16px
  );
  z-index: 40;
  pointer-events: none;
  opacity: 0.6;
}

[data-theme="light"] main::before {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 8px,
    rgba(196,106,0,0.4) 8px,
    rgba(196,106,0,0.4) 12px,
    #f5f0e6 12px,
    #f5f0e6 16px
  );
}


/* ─────────────────────────────────────────────────────────
   4. CHECKERED FLAG ACCENT — section headers
   ───────────────────────────────────────────────────────── */

.section-header {
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-image: repeating-conic-gradient(
    rgba(255,140,0,0.18) 0% 25%,
    transparent 0% 50%
  );
  background-size: 12px 12px;
  border-radius: var(--radius-sm);
  opacity: 0.15;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────
   5. HERO ENHANCEMENTS — vignette + text glow
   ───────────────────────────────────────────────────────── */

/* Vignette overlay — darken edges for cinematic depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.45) 100%
  );
}

[data-theme="light"] .hero::after {
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.15) 100%
  );
}

/* Hero h1: stronger presence against image */
.hero h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 4px 40px rgba(0,0,0,0.3);
}

/* Grain overlay on hero for cinematic film texture */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}


/* ─────────────────────────────────────────────────────────
   6. NAV DESKTOP — active link underline indicator
   ───────────────────────────────────────────────────────── */

.nav-desktop a {
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-nixie);
  transition: width var(--transition-interactive);
  border-radius: var(--radius-full);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}


/* ─────────────────────────────────────────────────────────
   7. SECTION DEPTH — top-edge highlight gradient
   ───────────────────────────────────────────────────────── */

.section {
  position: relative;
  contain: content;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255,140,0,0.025) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}


/* ─────────────────────────────────────────────────────────
   8. CARD LEFT-BORDER ACCENT — racing stripe on cards
   ───────────────────────────────────────────────────────── */

/* Service cards */
.service-card {
  border-left: 3px solid transparent;
}

.service-card:hover {
  border-left-color: var(--color-nixie);
}

/* Build cards — inner shadow on image for depth */
.build-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -40px 40px -10px rgba(10,10,8,0.6);
  z-index: 2;
}

/* Event cards — left amber border timeline indicator */
.event-card {
  border-left: 3px solid transparent;
  transition: border-left-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
  border-left-color: var(--color-nixie);
}


/* ─────────────────────────────────────────────────────────
   9. AWARDS TABLE — alternating rows
   ───────────────────────────────────────────────────────── */

.awards-table tbody tr:nth-child(even) {
  background: rgba(255,140,0,0.02);
}


/* ─────────────────────────────────────────────────────────
   10. FOOTER LINKS — underline slide-in animation
   ───────────────────────────────────────────────────────── */

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-nixie);
  transition: width 0.25s var(--ease-out);
}

.footer-links a:hover::after {
  width: 100%;
}


/* ─────────────────────────────────────────────────────────
   11. PERFORMANCE — will-change & content-visibility
   ───────────────────────────────────────────────────────── */

.hero-bg img {
  will-change: transform;
}

.service-card,
.build-card,
.event-card {
  will-change: transform;
}

/* Below-fold sections get lazy render */
#garage,
#events,
#awards,
#about,
#contact {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Ensure images render cleanly */
img {
  image-rendering: auto;
}


/* ─────────────────────────────────────────────────────────
   12. ANIMATIONS (prefers-reduced-motion: no-preference)
   ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {

  /* WhatsApp floating button: subtle pulse */
  @keyframes float-pulse {
    0%   { transform: scale(1); box-shadow: 0 4px 20px rgba(255,140,0,0.25), 0 2px 8px rgba(0,0,0,0.4); }
    50%  { transform: scale(1.05); box-shadow: 0 6px 28px rgba(255,140,0,0.4), 0 4px 12px rgba(0,0,0,0.3); }
    100% { transform: scale(1); box-shadow: 0 4px 20px rgba(255,140,0,0.25), 0 2px 8px rgba(0,0,0,0.4); }
  }

  .logo-float {
    animation: float-pulse 2s ease-in-out infinite;
  }

  /* Pause pulse on hover so hover scale takes over cleanly */
  .logo-float:hover {
    animation: none;
  }

  /* Racing stripe: slide in from top on load */
  @keyframes stripe-reveal {
    from { opacity: 0; }
    to   { opacity: 0.6; }
  }

  main::before {
    animation: stripe-reveal 1s ease-out 0.5s both;
  }

  /* Nav underline: transition already covered by width 0→100% above */

  /* Service card hover top-line: make it more visible */
  .service-card:hover::before {
    opacity: 1;
  }

} /* end @media (prefers-reduced-motion: no-preference) */


/* ─────────────────────────────────────────────────────────
   13. PRINT STYLESHEET
   ───────────────────────────────────────────────────────── */

@media print {
  /* Hide non-essential chrome */
  .header,
  .logo-float,
  .footer-whatsapp,
  .admin-login-overlay,
  .admin-panel-overlay,
  .admin-edit-float,
  .nav-toggle,
  .theme-toggle,
  .btn-header-cta,
  .crt-overlay,
  .hero-grain,
  main::before,
  .section::before,
  .filament-divider {
    display: none !important;
  }

  /* Force light readability */
  * {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  a {
    color: #111 !important;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  .hero-bg,
  .hero-overlay {
    display: none;
  }

  .hero h1 {
    font-size: 24pt;
    color: #111 !important;
  }

  .section {
    padding-block: 1rem;
    page-break-inside: avoid;
  }

  .section-title {
    color: #111 !important;
  }

  .awards-table-wrap {
    overflow: visible;
  }

  .awards-table {
    white-space: normal;
  }

  .photo-strip,
  .event-gallery {
    display: none;
  }

  .footer {
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
  }

  .footer-logo img {
    filter: invert(1) !important;
    opacity: 1 !important;
  }
}
