/* ==========================================================================
   GT Auto — Site Stylesheet
   Colors, type, and layout are all defined here — edit the variables in
   :root to change the whole site's look in one place.
   ========================================================================== */

:root {
  --color-black: #2b2b2b;       /* dark charcoal ink for text — kept dark for readability, never pure black */
  --color-panel: #f2f2f2;       /* light grey panel background, used where the site once had black bands */
  --color-panel-line: #e2e2e2;  /* border/separator on light panels */
  --color-red: #e8641e;
  --color-red-dark: #b8500f;
  --color-white: #ffffff;
  --color-off-white: #f5f5f5;
  --color-gray: #6b6b6b;
  --color-light-gray: #e2e2e2;

  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-tag {
  display: inline-block;
  color: var(--color-red);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--color-gray);
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.section-sub.center,
.section-heading.center,
.section-tag.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  skew-transform: none;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-off-white);
  color: var(--color-black);
  border-color: var(--color-light-gray);
}

.btn-dark:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--color-panel);
  color: var(--color-gray);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--color-panel-line);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar a {
  color: var(--color-gray);
}

.topbar a:hover {
  color: var(--color-red);
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

.topbar-socials a {
  margin-left: 12px;
  font-weight: 600;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 60px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1px;
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 6px 2px;
  position: relative;
  color: var(--color-black);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.2s ease;
}

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

.nav-links a.active {
  color: var(--color-red);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-red);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--color-panel);
  color: var(--color-black);
  padding: 150px 0 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 1;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 10%, rgba(255,255,255,0.9) 28%, rgba(255,255,255,0.55) 58%, rgba(255,255,255,0.2) 100%);
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-tag {
  color: var(--color-red);
  font-family: var(--font-heading);
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: block;
}

.hero .hero-tag,
.hero h1,
.hero p {
  text-shadow: 0 0 14px rgba(245,245,245,0.85), 0 0 4px rgba(245,245,245,0.9);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--color-black);
}

.hero h1 span {
  color: var(--color-red);
}

.hero p {
  max-width: 560px;
  color: var(--color-gray);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-black);
}

.hero-stats div span {
  color: var(--color-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  background: var(--color-panel);
  color: var(--color-black);
  padding: 110px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-panel-line);
}

.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 1;
  z-index: 0;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 10%, rgba(255,255,255,0.9) 28%, rgba(255,255,255,0.55) 58%, rgba(255,255,255,0.2) 100%);
}

.page-header .container {
  position: relative;
  z-index: 3;
}

.page-header .breadcrumb {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.page-header .breadcrumb a:hover {
  color: var(--color-red);
}

.page-header .breadcrumb,
.page-header .hero-tag,
.page-header h1,
.page-header p {
  text-shadow: 0 0 14px rgba(245,245,245,0.85), 0 0 4px rgba(245,245,245,0.9);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.page-header p {
  color: var(--color-gray);
  max-width: 560px;
  font-size: 1.05rem;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .page-header {
    padding: 90px 0 50px;
  }
  .page-header-bg {
    opacity: 1;
  }
  .page-header-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.5) 65%, rgba(255,255,255,0.2) 100%);
  }
}

/* ---------- Feature / service cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-cta {
  display: inline-block;
  margin-top: 14px;
  color: var(--color-red);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card:hover .card-cta {
  text-decoration: underline;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(224, 38, 42, 0.1);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

.card .price {
  margin-top: 18px;
  font-family: var(--font-heading);
  color: var(--color-red);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Dark band / CTA ---------- */

.band-dark {
  background: var(--color-panel);
  color: var(--color-black);
}

.cta-band {
  background: linear-gradient(120deg, var(--color-red), var(--color-red-dark));
  color: var(--color-white);
  padding: 56px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-band h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(255,255,255,0.9);
}

/* ---------- About / split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  background: var(--color-off-white);
  border: 2px dashed var(--color-light-gray);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  text-align: center;
  font-size: 0.9rem;
  padding: 20px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.checklist li::before {
  content: '\2713';
  background: var(--color-red);
  color: var(--color-white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  background: var(--color-off-white);
  padding: 48px 0;
}

.stats-strip .grid-4 {
  text-align: center;
}

.stats-strip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-red);
}

.stats-strip span {
  color: var(--color-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Testimonials ---------- */

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius);
  padding: 30px;
}

.stars {
  color: var(--color-red);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card p.quote {
  color: var(--color-black);
  font-size: 1rem;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232, 100, 30, 0.12);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--color-gray);
  font-size: 0.82rem;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-gray);
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-red);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: #e9f9ee;
  border: 1px solid #b7e6c6;
  color: #1f7a3d;
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-success.show {
  display: block;
}

/* ---------- Contact info cards ---------- */

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  background: rgba(232, 100, 30, 0.12);
  color: var(--color-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  text-transform: none;
}

.contact-info-item p, .contact-info-item a {
  color: var(--color-gray);
  font-size: 0.92rem;
}

.map-placeholder {
  background: var(--color-off-white);
  border: 2px dashed var(--color-light-gray);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-panel);
  color: var(--color-gray);
  padding: 64px 0 24px;
  border-top: 1px solid var(--color-panel-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 48px;
  width: auto;
}

.footer-col h4 {
  color: var(--color-black);
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-red);
}

.footer-col p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--color-panel-line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-gray);
}

.footer-bottom a:hover {
  color: var(--color-red);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .brand img {
    height: 46px;
  }
  .nav-links,
  .nav-cta .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-wrap.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--color-light-gray);
    box-shadow: var(--shadow);
  }
  .grid-3, .grid-4, .grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 100px 0 70px;
  }
  .hero-bg {
    object-position: center 30%;
    opacity: 1;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.5) 65%, rgba(255,255,255,0.2) 100%);
  }
  .cta-band .container {
    flex-direction: column;
    text-align: center;
  }
  .topbar .container {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   Brand trust strip — "Authorized Dealer / Brands We Work With"
   ========================================================================== */

.brand-strip {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
  padding: 34px 0;
}

.brand-strip .brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-strip-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-right: 8px;
}

.brand-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--color-black);
  padding: 10px 22px;
  border: 1.5px solid var(--color-light-gray);
  border-radius: 3px;
  background: var(--color-white);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.brand-badge:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.brand-strip.on-dark {
  background: var(--color-panel);
  border-color: var(--color-panel-line);
}

.brand-strip.on-dark .brand-strip-label {
  color: var(--color-gray);
}

.brand-strip.on-dark .brand-badge {
  background: var(--color-white);
  border-color: var(--color-light-gray);
  color: var(--color-black);
}

.brand-strip.on-dark .brand-badge:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

/* ==========================================================================
   Record / achievement spotlight
   ========================================================================== */

.record-spotlight {
  background: var(--color-panel);
  color: var(--color-black);
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  border-top: 1px solid var(--color-panel-line);
  border-bottom: 1px solid var(--color-panel-line);
}

.record-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(0,0,0,0.025) 0px, rgba(0,0,0,0.025) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.record-spotlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: -8%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent 45%, var(--color-red) 45.5%, var(--color-red) 47%, transparent 47.5%);
  opacity: 0.55;
  pointer-events: none;
}

.record-spotlight .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.record-eyebrow {
  font-family: var(--font-heading);
  color: var(--color-red);
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

.record-figures {
  display: flex;
  justify-content: center;
  gap: 90px;
  flex-wrap: wrap;
  margin: 30px 0 26px;
}

.record-figure strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--color-black);
}

.record-figure strong .unit {
  font-size: 0.4em;
  color: var(--color-red);
  margin-left: 4px;
}

.record-figure span {
  display: block;
  margin-top: 10px;
  color: var(--color-gray);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.record-spotlight h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-black);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* ==========================================================================
   Category tabs (Services page)
   ========================================================================== */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}

.category-tabs a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1.5px solid var(--color-light-gray);
  border-radius: 30px;
  color: var(--color-black);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-tabs a:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.category-block {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-block-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--color-red);
  padding-bottom: 14px;
}

.category-block-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.category-block-head span {
  color: var(--color-gray);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

/* ==========================================================================
   Category photo (Services page) + Gallery grid + Stage packages
   ========================================================================== */

.category-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: block;
}

.gallery-section {
  margin-bottom: 60px;
}

.gallery-section:last-child {
  margin-bottom: 0;
}

.gallery-section-head {
  margin-bottom: 22px;
}

.gallery-section-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-section-head span {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-off-white);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(to top, rgba(255,255,255,0.92), transparent);
  color: var(--color-black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(245,245,245,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-lightbox .lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  color: var(--color-black);
  font-size: 2rem;
  font-family: var(--font-heading);
  cursor: pointer;
  line-height: 1;
}

.gallery-lightbox .lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* GT-R stage packages */

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stage-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stage-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.stage-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stage-label {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-light-gray);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.stage-card.featured .stage-label {
  background: var(--color-red);
}

.stage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.stage-card ul {
  margin-bottom: 20px;
  flex: 1;
}

.stage-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-gray);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.stage-card ul li::before {
  content: '\2192';
  color: var(--color-red);
  font-weight: 700;
  flex-shrink: 0;
}

.stage-card .price {
  font-size: 1.05rem;
  padding-top: 16px;
  border-top: 1px solid var(--color-light-gray);
}

.gtr-hero {
  background: var(--color-panel);
  position: relative;
  overflow: hidden;
}

.gtr-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 1;
}

.gtr-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 10%, rgba(255,255,255,0.9) 28%, rgba(255,255,255,0.55) 58%, rgba(255,255,255,0.2) 100%);
}

.gtr-hero-overlay .container {
  color: var(--color-black);
}

.gtr-hero-overlay .hero-tag,
.gtr-hero-overlay h1,
.gtr-hero-overlay p {
  text-shadow: 0 0 14px rgba(245,245,245,0.85), 0 0 4px rgba(245,245,245,0.9);
}

.gtr-hero-overlay h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 640px;
  margin-bottom: 16px;
}

.gtr-hero-overlay p {
  max-width: 540px;
  color: var(--color-gray);
  font-size: 1.05rem;
}

/* ---------- Dyno results table ---------- */

.dyno-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-panel-line);
  border-radius: var(--radius);
}

.dyno-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.dyno-table th,
.dyno-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-panel-line);
  font-size: 0.95rem;
}

.dyno-table thead th {
  background: var(--color-panel);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--color-gray);
}

.dyno-table tbody th {
  color: var(--color-black);
  font-weight: 600;
  white-space: nowrap;
}

.dyno-table tbody tr:last-child td,
.dyno-table tbody tr:last-child th {
  border-bottom: none;
}

.dyno-table td strong {
  color: var(--color-black);
}

.dyno-note {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 16px;
  max-width: 760px;
}

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

@media (max-width: 720px) {
  .gallery-grid,
  .stage-grid {
    grid-template-columns: 1fr;
  }
  .gtr-hero img {
    height: 280px;
  }
  .category-photo {
    height: 180px;
  }
}

@media (max-width: 720px) {
  .record-figures {
    gap: 40px;
  }
  .brand-strip .brand-strip-inner {
    gap: 18px;
  }
  .brand-strip-label {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 6px;
  }
}

/* ==========================================================================
   MOTION & 3D LAYER
   Everything below is additive polish: scroll reveals, 3D tilt cards,
   glass navigation, parallax banners, animated counters, lightbox,
   mobile action bar. All of it respects prefers-reduced-motion.
   Delete this whole block to return to the static site.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 88px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-lift: 0 22px 48px rgba(0,0,0,0.14);
  --glass: rgba(255,255,255,0.78);
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip; /* slide-in reveals must never create a sideways scroll */
}

/* Each band clips its own sideways overflow (3D faces, slide-ins, decorative
   frames) so phones never get a horizontal wobble. `clip` keeps 3D intact. */
section, .site-footer, .ticker, .brand-strip {
  overflow-x: clip;
}

/* ---- Page enter / exit ---- */

html.js body {
  animation: page-in 0.55s var(--ease-out) both;
}

html.js body.page-leaving {
  animation: page-out 0.28s ease forwards;
}

/* opacity only: a transform on <body> (even an identity one left by a
   filled animation) would break position: fixed for the back-to-top button */
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes page-out {
  to { opacity: 0; }
}

/* ---- Scroll progress bar ---- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-red), #ffb27a);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1200;
  pointer-events: none;
}

/* ---- Glass sticky header ---- */

.site-header {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header .nav-wrap {
  transition: padding 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.site-header.is-scrolled .nav-wrap {
  padding: 8px 0;
}

.site-header .brand img {
  transition: height 0.35s var(--ease-out);
}

.site-header.is-scrolled .brand img {
  height: 48px;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s var(--ease-spring);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

/* Hamburger -> X */

.nav-toggle span {
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
  transform-origin: center;
}

.nav-wrap.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-wrap.menu-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-wrap.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 720px) {
  .site-header { background: rgba(255,255,255,0.96); }
  .nav-wrap.menu-open .nav-links {
    animation: menu-in 0.3s var(--ease-out) both;
    background: var(--color-white);
  }
  .nav-wrap.menu-open .nav-links a {
    animation: menu-item-in 0.4s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 45ms + 60ms);
    font-size: 1rem;
  }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes menu-item-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Scroll reveal (JS adds data-reveal; no JS = nothing hidden) ---- */

[data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 0.75s var(--ease-out),
    translate 0.75s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, translate;
}

[data-reveal="left"]  { translate: -20px 0; }
[data-reveal="right"] { translate: 20px 0; }
[data-reveal="zoom"]  { translate: 0; scale: 0.94; transition-property: opacity, scale; }

[data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  will-change: auto;
}

/* ---- 3D tilt cards ---- */

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  isolation: isolate;
}

.tilt.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-lift);
  border-color: transparent;
  z-index: 2;
}

/* glare that follows the pointer */
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.32),
    rgba(255,255,255,0) 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 3;
}

.tilt.is-tilting::after {
  opacity: 1;
}

/* depth layers inside tilting cards */
.tilt .card-icon,
.tilt .stage-label,
.tilt .price,
.tilt .card-cta,
.tilt h3 {
  transform: translateZ(28px);
}

.tilt .card-icon {
  transform: translateZ(44px);
  transition: transform 0.4s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}

.tilt.is-tilting .card-icon {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateZ(56px) scale(1.06);
}

/* the old hover lift stays for keyboard / touch users, tilt takes over for a mouse */
.card.tilt:hover,
.stage-card.tilt:hover {
  transform: translateY(-6px);
}

.stage-card img,
.card .card-photo {
  transition: transform 0.7s var(--ease-out), filter 0.5s ease;
}

.stage-card.is-tilting img {
  transform: scale(1.06);
}

/* ---- Buttons: shine sweep + focus ring ---- */

.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0s;
  pointer-events: none;
}

.btn:hover::before {
  left: 125%;
  transition: left 0.65s var(--ease-out);
}

.btn:hover {
  box-shadow: 0 10px 24px rgba(232,100,30,0.25);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(232,100,30,0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Banner parallax (JS drives --py) ---- */

.hero-bg,
.page-header-bg {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
  will-change: transform;
}

.hero .container,
.page-header .container {
  transform: translate3d(0, var(--py-text, 0px), 0);
}

.gtr-hero img {
  will-change: object-position;
}

/* Ken Burns slow drift on banners as a fallback for touch devices */
@media (hover: none) {
  .hero-bg,
  .page-header-bg {
    animation: kenburns 18s ease-in-out infinite alternate;
  }
}

@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to   { transform: scale(1.16) translate3d(0,-1.5%,0); }
}

/* ---- Headline text reveal (hero / page header) ---- */

html.js .hero h1,
html.js .hero .hero-tag,
html.js .hero p,
html.js .hero .hero-actions,
html.js .hero .hero-stats,
html.js .page-header .breadcrumb,
html.js .page-header .hero-tag,
html.js .page-header h1,
html.js .page-header p,
html.js .gtr-hero-overlay .hero-tag,
html.js .gtr-hero-overlay h1,
html.js .gtr-hero-overlay p {
  animation: rise-in 0.9s var(--ease-out) both;
}

html.js .hero .hero-tag,   html.js .page-header .breadcrumb        { animation-delay: 0.10s; }
html.js .hero h1,          html.js .page-header .hero-tag,
html.js .gtr-hero-overlay .hero-tag                                { animation-delay: 0.22s; }
html.js .hero p,           html.js .page-header h1,
html.js .gtr-hero-overlay h1                                       { animation-delay: 0.34s; }
html.js .hero .hero-actions, html.js .page-header p,
html.js .gtr-hero-overlay p                                        { animation-delay: 0.46s; }
html.js .hero .hero-stats                                          { animation-delay: 0.60s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Hero: 3D floating stat cards (home) ---- */

.hero {
  perspective: 1400px;
}

.hero-scene {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 380px;
  height: 360px;
  transform: translateY(-50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  z-index: 2;
  pointer-events: none;
}

.hero-scene.is-live {
  transition: transform 0.12s linear;
}

.hero-chip {
  position: absolute;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  transform: translateZ(var(--z, 40px));
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  min-width: 190px;
}

.hero-chip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-black);
}

.hero-chip strong .unit {
  font-size: 0.45em;
  color: var(--color-red);
  margin-left: 3px;
}

.hero-chip span {
  display: block;
  margin-top: 6px;
  color: var(--color-gray);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-chip .chip-bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-red), #ffb27a);
  margin-top: 12px;
  transform-origin: 0 50%;
  animation: bar-grow 1.4s var(--ease-out) 1s both;
}

.hero-chip:nth-child(1) { top: 0;    right: 0;    --z: 70px; --d: 0s; }
.hero-chip:nth-child(2) { top: 130px; right: 120px; --z: 40px; --d: -2s; }
.hero-chip:nth-child(3) { top: 250px; right: 20px;  --z: 20px; --d: -4s; }

@keyframes float {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -10px; }
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(43,43,43,0.45);
  border-radius: 14px;
  z-index: 3;
}

.hero-scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-red);
  translate: -50% 0;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 1100px) {
  .hero-scene { display: none; }
}

@media (max-width: 720px) {
  .hero-scroll-cue { display: none; }
}

/* ---- Ticker / marquee (home) ---- */

.ticker {
  background: var(--color-black);
  color: var(--color-off-white);
  overflow: hidden;
  border-top: 3px solid var(--color-red);
  padding: 14px 0;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 34px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item strong {
  color: #ffb27a;
  font-weight: 700;
}

.ticker-item::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  margin-left: 34px;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---- Service link cards (home "What we do") ---- */

.card.card-link {
  cursor: pointer;
}

.card .card-arrow {
  position: absolute;
  top: 26px;
  right: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 1rem;
  transition: transform 0.35s var(--ease-spring), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transform: translateZ(30px);
}

.card:hover .card-arrow,
.card.is-tilting .card-arrow {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  transform: translateZ(50px) rotate(-45deg);
}

/* ---- Platform cards (was a full Y-flip on hover; now a calm slide-up
   reveal so the pointer never loses the card mid-rotation) ---- */

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.flip-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.5s ease, transform 0.6s var(--ease-out);
  isolation: isolate;
}

.flip-card:hover,
.flip-card:focus-within,
.flip-card.is-flipped {
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* front: photo + label, gentle settle-in zoom */
.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease-out), filter 0.7s ease;
}

.flip-card:hover .flip-front img,
.flip-card:focus-within .flip-front img,
.flip-card.is-flipped .flip-front img {
  transform: scale(1.06);
  filter: brightness(0.75) saturate(0.9);
}

.flip-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.85) 0%, rgba(20,20,20,0.15) 55%, transparent 100%);
}

.flip-front-label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: var(--color-white);
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}

.flip-card:hover .flip-front-label,
.flip-card:focus-within .flip-front-label,
.flip-card.is-flipped .flip-front-label {
  opacity: 0;
  transform: translateY(-14px);
}

.flip-front-label span {
  display: block;
  font-family: var(--font-heading);
  color: #ffb27a;
  letter-spacing: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flip-front-label h3 {
  font-size: 1.6rem;
  line-height: 1.1;
}

.flip-front-label .flip-hint {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* back: detail panel slides up over the photo */
.flip-back {
  background: linear-gradient(160deg, rgba(38,38,38,0.96), rgba(20,20,20,0.98));
  color: var(--color-off-white);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.65s var(--ease-out);
  z-index: 3;
}

.flip-card:hover .flip-back,
.flip-card:focus-within .flip-back,
.flip-card.is-flipped .flip-back {
  transform: translateY(0);
}

/* contents of the panel drift in a beat after the panel itself */
.flip-back > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.55s var(--ease-out);
  transition-delay: 0.18s;
}

.flip-back > *:nth-child(2) { transition-delay: 0.24s; }
.flip-back > *:nth-child(3) { transition-delay: 0.30s; }
.flip-back > *:nth-child(4) { transition-delay: 0.36s; }

.flip-card:hover .flip-back > *,
.flip-card:focus-within .flip-back > *,
.flip-card.is-flipped .flip-back > * {
  opacity: 1;
  transform: none;
}

.flip-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 22px);
  pointer-events: none;
  opacity: 1 !important;
  transform: none !important;
}

.flip-back h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--color-white);
}

.flip-back p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.flip-back ul {
  margin-bottom: 24px;
}

.flip-back li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.flip-back li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--color-red);
}

.flip-back .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip-card { height: 360px; }
}

/* ---- Framed image with floating badge (split sections) ---- */

.frame-3d {
  position: relative;
  border-radius: var(--radius);
  transform-style: preserve-3d;
}

.frame-3d img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.frame-3d::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--color-red);
  border-radius: var(--radius);
  opacity: 0.45;
  z-index: -1;
  transform: translateZ(-40px);
}

.frame-badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  background: var(--color-white);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  transform: translateZ(50px);
  min-width: 180px;
}

.frame-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-red);
}

.frame-badge span {
  display: block;
  font-size: 0.72rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .frame-3d::before { inset: 12px 0 -12px 12px; }
  .frame-badge { left: 12px; bottom: 12px; }
}

/* ---- Auto 1-6 step pills ---- */

.step-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}

.step-pills a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--color-light-gray);
  transition: all 0.25s var(--ease-spring);
}

.step-pills a:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.04);
}

.step-pills .sep {
  width: 14px;
  height: 1.5px;
  background: var(--color-light-gray);
}

/* ---- Gallery preview tiles (home) ---- */

.tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.tile:hover img,
.tile.is-tilting img {
  transform: scale(1.08);
}

.tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(20,20,20,0.85), transparent);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  translate: 0 8px;
  opacity: 0;
  transition: opacity 0.35s ease, translate 0.35s var(--ease-out);
}

.tile:hover .tile-cap,
.tile.is-tilting .tile-cap {
  opacity: 1;
  translate: 0 0;
}

/* ---- Process steps (services "how it works") ---- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  counter-reset: step;
}

.process::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--color-light-gray);
  z-index: 0;
}

.process-line {
  position: absolute;
  top: 34px;
  left: 12%;
  height: 2px;
  width: 76%;
  background: linear-gradient(90deg, var(--color-red), #ffb27a);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) 0.3s;
  z-index: 0;
}

.process.is-visible .process-line {
  transform: scaleX(1);
}

.process-step {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 8px;
}

.process-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-red);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-spring), border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  transform: translateZ(0) rotateY(0);
}

.process-step:hover .process-num {
  transform: translateY(-4px) rotateY(360deg);
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--color-gray);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before, .process-line { display: none; }
}

@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
}

/* ---- Services: sticky category tabs + scrollspy + alternating blocks ---- */

.category-tabs {
  position: sticky;
  top: calc(var(--header-h) - 6px);
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 12px 10px;
  border-radius: 40px;
  border: 1px solid rgba(226,226,226,0.8);
  box-shadow: var(--shadow-soft);
}

.category-tabs a {
  position: relative;
  background: transparent;
}

.category-tabs a.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 8px 18px rgba(232,100,30,0.3);
}

@media (max-width: 720px) {
  .category-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0;
    margin-left: -24px;
    margin-right: -24px;
    padding: 10px 24px;
    border-left: 0;
    border-right: 0;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tabs a { flex-shrink: 0; }
}

.category-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 34px;
}

.category-block:nth-of-type(even) .category-intro {
  direction: rtl;
}

.category-block:nth-of-type(even) .category-intro > * {
  direction: ltr;
}

.category-intro .category-photo {
  height: 300px;
  margin-bottom: 0;
  box-shadow: var(--shadow-lift);
}

.category-intro-text p {
  color: var(--color-gray);
  font-size: 1rem;
  margin-bottom: 20px;
}

.category-intro-text .category-block-head {
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.category-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-red);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.category-cta::after {
  content: '\2192';
  transition: transform 0.3s var(--ease-spring);
}

.category-cta:hover::after {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .category-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .category-intro .category-photo { height: 220px; }
}

/* ---- Lightbox upgrades ---- */

.gallery-lightbox {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(245,245,245,0.94);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.open {
  opacity: 1;
}

.gallery-lightbox img {
  animation: lb-in 0.4s var(--ease-out);
  user-select: none;
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--color-light-gray);
  background: var(--color-white);
  color: var(--color-black);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--shadow-soft);
}

.lightbox-nav:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  transform: scale(1.08);
}

.lightbox-nav.prev { left: 26px; }
.lightbox-nav.next { right: 26px; }

.lightbox-counter {
  position: absolute;
  top: 26px;
  left: 30px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  color: var(--color-gray);
  font-size: 0.9rem;
}

.gallery-lightbox .lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring), background 0.25s ease, color 0.25s ease;
}

.gallery-lightbox .lightbox-close:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: rotate(90deg);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 720px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

/* ---- Gallery items: subtle 3D on hover ---- */

.gallery-item {
  transform-style: preserve-3d;
}

.gallery-item .gallery-caption {
  translate: 0 6px;
  transition: opacity 0.3s ease, translate 0.3s var(--ease-out);
}

.gallery-item:hover .gallery-caption,
.gallery-item.is-tilting .gallery-caption {
  translate: 0 0;
}

/* ---- Lazy image fade-in ---- */

html.js img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

html.js img[loading="lazy"].is-loaded {
  opacity: 1;
}

/* ---- Back to top with progress ring ---- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-white);
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  z-index: 900;
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
  transition: opacity 0.35s ease, translate 0.35s var(--ease-out), background 0.25s ease, color 0.25s ease;
}

.to-top.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.to-top svg {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  transform: rotate(-90deg);
}

.to-top svg circle {
  fill: none;
  stroke: var(--color-red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: var(--ring, 163.36);
}

.to-top .arrow {
  font-size: 1.1rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* ---- Mobile action bar (call / book) ---- */

.action-bar {
  display: none;
}

@media (max-width: 720px) {
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-light-gray);
    border-top: 1px solid var(--color-light-gray);
    z-index: 800;
    translate: 0 100%;
    transition: translate 0.4s var(--ease-out);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar.is-visible {
    translate: 0 0;
  }
  .action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--color-white);
    color: var(--color-black);
  }
  .action-bar a.primary {
    background: var(--color-red);
    color: var(--color-white);
  }
  body.has-action-bar {
    padding-bottom: 58px;
  }
  .to-top {
    bottom: 76px;
    right: 14px;
    width: 44px;
    height: 44px;
  }
}

/* ---- Final CTA band: animated gradient + pattern ---- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--color-red), var(--color-red-dark), #d9531a, var(--color-red));
  background-size: 300% 300%;
  animation: gradient-shift 12s ease infinite;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 28px);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band .btn-dark:hover {
  background: var(--color-black);
  border-color: var(--color-black);
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
}

.cta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-meta span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
}

/* ---- Section heading accent ---- */

.section-heading {
  position: relative;
}

.section-heading.center::after,
.section-heading:not(.center)::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-red), #ffb27a);
  margin-top: 14px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) 0.25s;
}

.section-heading.center::after {
  margin-left: auto;
  margin-right: auto;
  transform-origin: 50% 50%;
}

.section-heading.is-visible::after,
html:not(.js) .section-heading::after {
  transform: scaleX(1);
}

/* ---- Reduced motion: turn it all off ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  .hero-bg, .page-header-bg {
    transform: none;
  }
  .hero-scene, .hero-scroll-cue, .scroll-progress {
    display: none;
  }
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .section-heading::after {
    transform: scaleX(1);
  }
  .process-line {
    transform: scaleX(1);
  }
}

/* Home hero: make room for the 3D chips on wide screens */
@media (min-width: 1101px) {
  .hero .container {
    padding-right: 440px;
  }
  .hero-scene ~ .container .hero-stats {
    display: none;
  }
}

/* Nav "Call Us" should never wrap; give the header row a little more room */
.btn { white-space: nowrap; }
.nav-wrap { gap: 18px; }
.nav-links { gap: 18px; }
.nav-cta .btn { padding: 12px 22px; }

/* Hero chips: keep the unit on the same line as the number */
.hero-chip strong .unit { display: inline; margin-top: 0; }

@media (min-width: 1101px) {
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
}

.hero h1 span { white-space: normal; }   /* was nowrap for the two-word "Prove It"; the new line must wrap on phones */

/* Record figures: unit stays inline with the number (was wrapping) */
.record-figure strong .unit { display: inline; margin-top: 0; }

/* While the lightbox is open, hide the floating UI */
body.no-scroll .to-top,
body.no-scroll .scroll-progress,
body.no-scroll .action-bar { opacity: 0; pointer-events: none; }

/* ---- Contact: Google Maps embed ---- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-light-gray);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 7;
  min-height: 320px;
  background: var(--color-off-white);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--color-gray);
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .map-embed { aspect-ratio: 4 / 3; min-height: 260px; }
  .map-actions { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Mobile fixes: full hero photo, darker banner subtitles
   ========================================================================== */

@media (max-width: 720px) {
  /* Home hero: show the whole photo (no cropping), text sits below it on a
     white fade instead of on top of the picture. */
  .hero {
    padding: 0 0 56px;
    background: var(--color-white);
  }
  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 1066;
    object-fit: contain;
    object-position: center top;
    transform: none !important;
    animation: none !important;
    display: block;
  }
  .hero-overlay {
    inset: 0 0 auto 0;
    height: auto;
    aspect-ratio: 1600 / 1066;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.72) 24%, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.15) 100%);
  }
  .hero .container {
    margin-top: 22px;
    transform: none !important;
  }
  .hero h1 {
    text-shadow: none;
  }

  /* Banner subtitles: darker grey on phones for legibility over the photo */
  .hero p,
  .page-header p,
  .gtr-hero-overlay p,
  .page-header .breadcrumb,
  .page-header .breadcrumb a {
    color: #3a3a3a;
  }
  .hero-stats div span,
  .hero-stats div strong {
    color: #2b2b2b;
  }
  .hero-stats div span {
    color: #4a4a4a;
  }
}

/* Ticker driven by JS: switch the CSS loop off and keep the layer light */
.ticker-track.js-marquee {
  animation: none !important;
  will-change: transform;
  flex-wrap: nowrap;
}

/* ==========================================================================
   Three-car airfield photo: Home hero + Contact banner
   The cars sit along the bottom of this picture, so these two banners fade
   top-to-bottom (white sky -> clear photo) instead of left-to-right, and the
   banner box keeps the photo's 16:9 shape so nothing is cropped away.
   ========================================================================== */

@media (min-width: 721px) {
  .hero,
  .page-header.full-photo {
    aspect-ratio: 16 / 9;
    padding: 0;
    min-height: 0;
    display: flex;
    align-items: flex-start;
  }
  .hero .container,
  .page-header.full-photo .container {
    width: 100%;
    padding-top: 64px;
  }
  .page-header.full-photo .container {
    padding-top: 56px;
  }
  .hero-bg,
  .page-header.full-photo .page-header-bg {
    object-position: center center;
    transform: translate3d(0, var(--py, 0px), 0); /* no zoom: keep the whole picture */
    animation: none;
  }
  .hero-overlay,
  .page-header.full-photo .page-header-overlay {
    /* pure white at the top, photo at 85% strength at the bottom edge */
    background: linear-gradient(180deg,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,0.86) 16%,
      rgba(255,255,255,0.58) 40%,
      rgba(255,255,255,0.32) 68%,
      rgba(255,255,255,0.15) 100%);
  }
  .hero p,
  .page-header.full-photo p {
    color: #3a3a3a;
  }
  .hero h1 {
    max-width: 720px;
  }
  /* keep the text block inside the sky area */
  .hero .hero-actions { margin-bottom: 0; }
  .hero-scene {
    top: 32%;
    height: 320px;
  }
  .hero-chip:nth-child(1) { top: 0; }
  .hero-chip:nth-child(2) { top: 112px; }
  .hero-chip:nth-child(3) { top: 224px; }
}

@media (min-width: 1101px) {
  .hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }
  .hero p { max-width: 560px; font-size: 1.02rem; margin-bottom: 26px; }
}

@media (max-width: 720px) {
  /* match the new photo's shape */
  .hero-bg, .hero-overlay { aspect-ratio: 16 / 9; }

  /* Contact banner behaves like the Home hero on phones: whole photo on top,
     text underneath on a white fade */
  .page-header.full-photo {
    padding: 0 0 40px;
    background: var(--color-white);
  }
  .page-header.full-photo .page-header-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    transform: none !important;
    animation: none !important;
    display: block;
  }
  .page-header.full-photo .page-header-overlay {
    inset: 0 0 auto 0;
    height: auto;
    aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.72) 24%, rgba(255,255,255,0.4) 55%, rgba(255,255,255,0.15) 100%);
  }
  .page-header.full-photo .container {
    margin-top: 22px;
    transform: none !important;
  }
  .page-header.full-photo h1 { text-shadow: none; }
}

/* ---- Mobile: no ticker; top bar relocated to the bottom of the page ---- */
@media (max-width: 720px) {
  .ticker { display: none; }
  .topbar.topbar--bottom {
    border-bottom: 0;
    border-top: 1px solid var(--color-panel-line);
    padding: 10px 0 60px; /* keeps the links clear of the back-to-top button */
  }
  .topbar.topbar--bottom .container {
    flex-direction: column;
    gap: 8px;
  }
  .topbar.topbar--bottom .topbar-item {
    margin-right: 0;
  }
}

/* Brand strip: 14 authorized brands, so keep the badges compact */
.brand-strip { padding: 26px 0; }
.brand-strip .brand-strip-inner { gap: 10px 12px; max-width: 1080px; }
.brand-strip-label { width: 100%; text-align: center; margin: 0 0 8px; }
.brand-badge { font-size: 0.82rem; padding: 8px 14px; letter-spacing: 0.6px; }
@media (max-width: 720px) {
  .brand-badge { font-size: 0.74rem; padding: 7px 11px; }
}
/* Hero chip: room for the longer record label */
.hero-chip { min-width: 230px; max-width: 290px; }
.hero-chip span { line-height: 1.4; }

/* Review cards: greyed stars for sub-5 ratings + source link */
.stars .star-off { color: var(--color-light-gray); }
.review-source {
  display: block;
  font-size: 0.75rem;
  color: var(--color-gray);
  margin-top: 2px;
  text-decoration: underline;
  text-decoration-color: var(--color-light-gray);
  text-underline-offset: 3px;
}
.review-source:hover { color: var(--color-red); }
.testimonial-card .quote { font-size: 0.97rem; }

/* ---- Featured builds (Notable Builds page) ---- */
.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.build-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: auto;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.build-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.build-media {
  position: relative;
  background: var(--color-panel);
  min-height: 300px;
}
.build-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
}
.build-card:hover .build-media img { transform: scale(1.04); }
.build-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.25s ease, color 0.25s ease;
}
.build-card:hover .build-zoom { background: var(--color-red); color: var(--color-white); }
.build-body { padding: 24px 24px 20px; display: flex; flex-direction: column; }
.build-kicker {
  font-family: var(--font-heading);
  color: var(--color-red);
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.build-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.build-body p { color: var(--color-gray); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.build-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-light-gray);
  padding-top: 14px;
}
.build-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-black);
}
.build-stats strong span { font-size: 0.55em; color: var(--color-red); margin-left: 3px; }
.build-stats small { display: block; color: var(--color-gray); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }
/* Full build sheet in the lightbox: portrait posters need the height */
.gallery-lightbox img { max-height: 92vh; }
@media (max-width: 1000px) {
  .build-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .build-card { grid-template-columns: 1fr; }
  .build-media { min-height: 0; aspect-ratio: 5 / 4; }
}

/* Lightbox caption: sits below the picture on its own panel instead of
   floating over the bottom of tall build sheets */
.gallery-lightbox.open {
  flex-direction: column;
  gap: 14px;
  padding: 56px 20px 24px;
}
.gallery-lightbox img {
  max-height: calc(100vh - 150px);
  max-width: min(100%, 1100px);
}
.gallery-lightbox .lightbox-caption {
  position: static;
  max-width: 760px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-light-gray);
}
.gallery-lightbox .lightbox-caption:empty { display: none; }
@media (max-width: 720px) {
  .gallery-lightbox.open { padding: 64px 12px 20px; }
  .gallery-lightbox img { max-height: calc(100vh - 190px); }
  .gallery-lightbox .lightbox-caption { font-size: 0.85rem; padding: 10px 14px; }
}

/* ==========================================================================
   Video layer: ambient hero/banner loop + gallery tile clip
   Videos are attached by JS only when motion is allowed; the still photo
   underneath is always there as the fallback.
   ========================================================================== */

.banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  transform: translate3d(0, var(--py, 0px), 0);
}
.banner-video.is-playing { opacity: 1; }

@media (max-width: 720px) {
  /* on phones the photo is an in-flow 16:9 block; the video sits exactly over it */
  .banner-video {
    inset: 0 0 auto 0;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: none !important;
  }
}

/* Gallery tile clip */
.gallery-item .tile-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.gallery-item .tile-video.is-playing { opacity: 1; }
.tile-play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--color-black);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.gallery-item.has-video:hover .tile-play { background: var(--color-red); color: var(--color-white); }

/* Lightbox video */
.gallery-lightbox video {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 150px);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
}
.gallery-lightbox.show-video video { display: block; }
.gallery-lightbox.show-video img { display: none; }

@media (prefers-reduced-motion: reduce) {
  .banner-video, .tile-video { display: none !important; }
}

/* Two-package grid (Porsche) */
.stage-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .stage-grid--two { grid-template-columns: 1fr; } }

/* ---- Nine-item nav (Porsche Packages added Oct 2026) ----
   The logo must never be squeezed by the menu; the menu compacts on
   mid-size screens and collapses to the hamburger below 1060px. */
.brand { flex-shrink: 0; }
.nav-links { flex-wrap: nowrap; }

@media (min-width: 1061px) {
  .brand img { height: 52px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; letter-spacing: 0.2px; }
}
@media (max-width: 1200px) and (min-width: 1061px) {
  .brand img { height: 46px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.74rem; letter-spacing: 0.1px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.78rem; }
}
@media (max-width: 1060px) {
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header { background: rgba(255,255,255,0.96); }
  .nav-wrap.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--color-light-gray);
    box-shadow: var(--shadow);
    animation: menu-in 0.3s var(--ease-out) both;
  }
  .nav-wrap.menu-open .nav-links a {
    animation: menu-item-in 0.4s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 45ms + 60ms);
    font-size: 1rem;
  }
}

/* Porsche banner: gradient at half strength (Oct 2026 request) */
.gtr-hero-overlay--light {
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.97) 8%, rgba(255,255,255,0.75) 26%, rgba(255,255,255,0.4) 48%, rgba(255,255,255,0.12) 72%, rgba(255,255,255,0) 100%);
}

/* Split-section photo whose top edge lines up with the section title (not the eyebrow tag) */
.split img.img-align-title { margin-top: 58px; }
@media (max-width: 900px) { .split img.img-align-title { margin-top: 0; } }

/* Lighter Porsche banner: keep the headline legible with a stronger white glow and darker copy */
.gtr-hero-overlay--light .hero-tag,
.gtr-hero-overlay--light h1,
.gtr-hero-overlay--light p {
  text-shadow: 0 0 16px rgba(255,255,255,0.95), 0 0 6px rgba(255,255,255,0.9);
}
.gtr-hero-overlay--light p { color: #2b2b2b; }

/* ==========================================================================
   History timeline (About page) — added Nov 2026
   ========================================================================== */
.history { background: var(--color-white); }
.history .section-sub { margin-bottom: 36px; }

.history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto 56px;
  max-width: 980px;
}
.history-stat {
  background: var(--color-panel);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  border-top: 3px solid var(--color-red);
}
.history-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-black);
  letter-spacing: 0.5px;
}
.history-stat strong em { font-style: normal; font-size: 0.5em; color: var(--color-red); margin-left: 2px; }
.history-stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--color-gray);
  line-height: 1.4;
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 10px 0 0;
  position: relative;
  max-width: 1040px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--color-red) 0%, #e9b48f 60%, var(--color-light-gray) 100%);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 44px;
}
.tl-item:last-child { margin-bottom: 0; }
/* Interleave the two columns on desktop so the timeline reads as one flowing story */
@media (min-width: 901px) {
  .tl-item + .tl-item { margin-top: -130px; }
  .tl-item:nth-child(odd)  .tl-card { margin-right: 20px; }
  .tl-item:nth-child(even) .tl-card { margin-left: 20px; }
}
.tl-marker {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tl-marker span {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--color-white), 0 6px 18px rgba(232,100,30,0.35);
}
.tl-card {
  grid-row: 1;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tl-item:nth-child(odd)  .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
/* connector from the card to the centre line */
.tl-item::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--color-red);
  opacity: 0.5;
}
.tl-item:nth-child(odd)::after  { left: calc(50% - 60px); }
.tl-item:nth-child(even)::after { right: calc(50% - 60px); }
.tl-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.tl-body { padding: 20px 22px 24px; }
.tl-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 8px;
}
.tl-body h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--color-black);
}
.tl-body p, .tl-body li { color: var(--color-gray); font-size: 0.94rem; line-height: 1.6; }
.tl-body ul { list-style: none; padding: 0; margin: 0; }
.tl-body li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.tl-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}
.tl-body li strong { color: var(--color-black); font-weight: 600; }
.tl-body a { color: var(--color-red); font-weight: 500; }

/* The record year stands out */
.tl-item--featured .tl-card { border-color: var(--color-red); box-shadow: 0 14px 40px rgba(232,100,30,0.18); }
.tl-item--featured .tl-marker span { background: var(--color-black); box-shadow: 0 0 0 6px var(--color-white), 0 0 0 8px var(--color-red); }
.tl-item--featured .tl-body h3 { color: var(--color-red); font-size: 1.3rem; }

@media (max-width: 900px) {
  .history-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 22px; }
  .tl-item {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
    padding-left: 58px;
  }
  .tl-marker {
    grid-column: 1;
    grid-row: 1;
    position: absolute;
    left: 0;
    top: 0;
    justify-content: flex-start;
  }
  .tl-marker span { font-size: 0.8rem; padding: 6px 10px; margin-left: 2px; box-shadow: 0 0 0 4px var(--color-white); }
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 1; }
  .tl-item::after { display: none; }
  .tl-card img { height: 180px; }
}
@media (max-width: 480px) {
  .history-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .history-stat { padding: 14px 10px; }
  .history-stat strong { font-size: 1.6rem; }
  .tl-item { padding-left: 46px; }
  .timeline::before { left: 16px; }
  .tl-marker span { font-size: 0.72rem; padding: 5px 8px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-card, .tl-card:hover { transform: none; transition: none; }
}

/* ==========================================================================
   Social links — visible pills in the top strip, "Follow Us" block in footer
   ========================================================================== */
.topbar-socials { display: inline-flex; gap: 8px; margin-left: 14px; vertical-align: middle; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  color: #fff !important;
  line-height: 1;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
}
.social-pill svg { width: 15px; height: 15px; fill: currentColor; }
.social-pill--fb { background: #1877f2; }
.social-pill--ig { background: linear-gradient(45deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); }
.social-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.18); filter: brightness(1.06); }
@media (max-width: 720px) {
  .topbar-socials { margin-left: 0; margin-top: 10px; justify-content: center; width: 100%; }
  .social-pill { padding: 8px 16px 8px 11px; font-size: 0.86rem; }
  .social-pill svg { width: 18px; height: 18px; }
}

.footer-follow-title { margin-top: 26px; }
.footer-social { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.social-btn svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.social-btn span { display: flex; flex-direction: column; font-weight: 600; font-size: 0.95rem; line-height: 1.15; }
.social-btn span small { font-weight: 400; font-size: 0.75rem; opacity: 0.85; margin-top: 2px; }
.social-btn--fb { background: #1877f2; }
.social-btn--ig { background: linear-gradient(45deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.footer-social-inline a { font-weight: 600; }

/* ==========================================================================
   Intro film overlay (Home) — plays once per visitor
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.intro[hidden] { display: none; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-inner {
  position: relative;
  /* Shown at the film's native 910×380 so it is never upscaled (which made it look soft) */
  width: min(100%, 910px);
  aspect-ratio: 910 / 380;
  max-height: calc(100vh - 150px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.intro-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.intro-caption {
  position: absolute;
  left: 22px; bottom: 22px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  pointer-events: none;
}
.intro-tag {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffb27a;
  margin-bottom: 4px;
}
.intro-caption strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  letter-spacing: 0.5px;
}
.intro-caption strong span { font-size: 0.55em; color: var(--color-red); }
.intro-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.18); }
.intro-progress span { display: block; height: 100%; width: 0; background: var(--color-red); transition: width 0.25s linear; }
.intro-controls {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.intro-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.intro-btn:hover { background: rgba(255,255,255,0.18); border-color: #fff; transform: translateY(-1px); }
.intro-skip { background: var(--color-red); border-color: var(--color-red); }
.intro-skip:hover { background: #ff7a33; border-color: #ff7a33; }
.intro-sound[aria-pressed="true"] { border-color: var(--color-red); color: #ffb27a; }
.intro-hint { margin-top: 14px; color: rgba(255,255,255,0.55); font-size: 0.8rem; text-align: center; }
.intro-hint kbd {
  font-family: inherit; font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; padding: 1px 6px;
}
/* Skip stays reachable on phones: controls pinned to the top-right corner over the film */
@media (max-width: 720px) {
  .intro { padding: 16px; justify-content: center; }
  .intro-inner { max-height: 60vh; }
  .intro-controls { margin-top: 16px; width: 100%; }
  .intro-btn { flex: 1 1 auto; text-align: center; padding: 14px 16px; }
  .intro-caption { left: 14px; bottom: 14px; }
}
body.intro-open { overflow: hidden; }

.hero-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-black);
  cursor: pointer;
  align-self: center;
  transition: color 0.2s, border-color 0.2s;
}
.hero-replay:hover { color: var(--color-red); border-bottom-color: var(--color-red); }
html:not(.js) .hero-replay { display: none; }

/* Intro title above the film */
.intro-title { text-align: center; color: #fff; margin-bottom: 18px; max-width: 910px; }
.intro-logo { height: 52px; width: auto; display: block; margin: 0 auto 16px; }
.intro-time {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: 1px;
  color: #ffb27a;
}
.intro-time span { font-size: 0.5em; color: var(--color-red); margin-left: 2px; }
.intro-title h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 4px 0 8px;
}
.intro-title p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  letter-spacing: 0.5px;
  margin: 0;
}
@media (max-width: 720px) {
  .intro-title { margin-bottom: 12px; }
  .intro-logo { height: 38px; margin-bottom: 10px; }
  .intro-title p { padding: 0 8px; }
}
@media (max-height: 640px) {
  .intro-logo { display: none; }
  .intro-title { margin-bottom: 8px; }
  .intro-time { font-size: 1.4rem; }
  .intro-title h2 { font-size: 1.5rem; }
}
