/* ============================================================
   LUNARIS GARAGE — About Us (loads after styles.css)
   ============================================================ */
#main-content {
  background: var(--color-black);
  color: var(--color-white);
}

.ab-eyebrow {
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.ab-title {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.ab-title strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ab-body {
  max-width: 520px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.ab-section {
  padding: 120px 48px;
}

/* A short line between a heading and its text */
.ab-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
}

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

/* ---------- Opening ---------- */
.ab-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-black);
}

.ab-hero-img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  object-fit: cover;
  object-position: 50% 70%;
  filter: brightness(0.82) contrast(1.05);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}

.ab-hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 40px) 24px 0;
  text-align: center;
}

.ab-hero-title {
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ab-hero-title strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ab-hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Split sections ---------- */
.ab-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 88px;
  max-width: 1400px;
  margin: 0 auto;
}

.ab-split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.ab-align-end {
  align-items: flex-end;
  text-align: right;
}

.ab-split-media {
  margin: 0;
}

.ab-split-media img {
  display: block;
  width: 100%;
}

/* Black parts on a white studio shot, flipped into a negative for the black page */
.ab-parts img {
  filter: invert(1) grayscale(1) contrast(1.25);
}

.ab-parts figcaption {
  margin-top: 16px;
  font-family: 'Inconsolata', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.ab-photo img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 62%;
}

.ab-split-reverse {
  padding-top: 0;
}

.ab-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: background 0.3s ease, color 0.3s ease;
}

.ab-link:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* ---------- Numbers ---------- */
.ab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ab-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
}

.ab-stat + .ab-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.ab-stat-num {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ab-stat-label {
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Two numbers side by side */
.ab-stats.ab-stats-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- How ordering works ---------- */
.ab-order {
  padding-bottom: 0;
}

.ab-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
}

.ab-step {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ab-step-num {
  display: block;
  margin-bottom: 14px;
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}

.ab-step-title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ab-step-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- On the road ---------- */
.ab-road-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 64px auto 0;
}

.ab-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-dark-mid);
}

.ab-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.ab-card::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.ab-card:hover img {
  transform: scale(1.04);
}

.ab-card-name {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Day and night ---------- */
.ab-culture {
  padding-bottom: 120px;
}

/* Each photo gets the full width to itself, cropped with the car in the middle */
.ab-wide {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
}

.ab-culture-line {
  padding: 96px 24px;
}

/* A wide photo with the car's name under it */
.ab-wide-fig {
  margin: 0;
}

.ab-wide-fig + .ab-wide-fig {
  margin-top: 56px;
}

.ab-wide-fig figcaption {
  padding: 16px 24px 0;
  font-family: 'Inconsolata', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- GR Yaris ad ---------- */
.ab-ad {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--color-black);
}

.ab-ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-smooth);
}

.ab-ad-slide.is-active {
  opacity: 1;
}

.ab-ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab-ad-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 22%, transparent 42%, transparent 68%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.ab-ad-top {
  position: absolute;
  top: calc(var(--nav-height) + 16px);
  left: 0;
  right: 0;
  padding: 0 24px;
  text-align: center;
}

.ab-ad-title {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.ab-ad-sub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ab-ad-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  padding: 16px;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.ab-ad-arrow:hover {
  opacity: 0.6;
}

.ab-ad-prev { left: 32px; }
.ab-ad-next { right: 32px; }

.ab-ad-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ab-ad-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: gap 0.3s var(--ease-out-expo);
}

.ab-ad-more:hover {
  gap: 16px;
}

.ab-ad-dots {
  display: flex;
  gap: 8px;
}

.ab-ad-dots button {
  width: 44px;
  height: 14px;
  padding: 0;
  border: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)) center / 100% 3px no-repeat;
  cursor: pointer;
}

.ab-ad-dots button.is-active {
  background: linear-gradient(var(--color-white), var(--color-white)) center / 100% 3px no-repeat;
}

/* ---------- Close ---------- */
.ab-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 120px 24px;
  text-align: center;
}

.ab-close-line {
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.ab-close-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .ab-section { padding: 72px 24px; }
  .ab-split-reverse { padding-top: 0; }

  .ab-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ab-align-end {
    align-items: flex-start;
    text-align: left;
  }

  /* Picture first on the fitment block, text first on the material block */
  .ab-split-reverse .ab-split-media { order: 0; }

  .ab-road-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .ab-culture { padding-bottom: 72px; }

  .ab-culture-line { padding: 64px 24px; }

  .ab-wide-fig + .ab-wide-fig { margin-top: 40px; }

  .ab-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  .ab-ad-prev { left: 4px; }
  .ab-ad-next { right: 4px; }
}

@media (max-width: 600px) {
  .ab-hero-sub br { display: none; }

  /* Phones carry the billboard as a second row under the nav */
  .ab-hero-copy { padding-top: calc(var(--nav-height) + 84px); }
  .ab-ad-top { top: calc(var(--nav-height) + 72px); }

  .ab-hero-img {
    height: 42%;
    object-position: 42% 70%;
  }

  .ab-stats,
  .ab-stats.ab-stats-2 { grid-template-columns: 1fr; }

  .ab-stat { padding: 36px 24px; }

  .ab-stat + .ab-stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ab-ad-sub {
    font-size: 12px;
    letter-spacing: 0.14em;
  }
}
