:root {
  --black: #0D0D0D;
  --black-deep: #050505;
  --panel: #131313;
  --red: #E61E1E;
  --red-dim: #7A1010;
  --white: #F5F5F5;
  --gray: #8C8C8C;
  --line: rgba(245,245,245,0.08);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 3px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 800px 500px at 15% -10%, rgba(230,30,30,0.05), transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% 30%, rgba(255,255,255,0.025), transparent 60%);
  background-attachment: fixed;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.2px;
  color: var(--white);
}

p { color: var(--white); }

/* Scroll progress rail */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 100;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(230,30,34,0.6);
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 64px; width: auto; }

.main-nav { display: flex; gap: 40px; }
.main-nav a {
  position: relative;
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--white); }

/* Language switch (EN / ID) */
.main-nav a.lang-switch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 10px;
  letter-spacing: 1px;
}
.main-nav a.lang-switch::after { display: none; }
.main-nav a.lang-switch:hover { border-color: var(--red); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 0;
}

.hero-inner {
  text-align: center;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}

.hero-mark {
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-position {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray);
  max-width: 46ch;
  margin: 0 auto 44px;
  font-weight: 400;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}
.scroll-cue span {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--gray), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.trust-strip-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}
.trust-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray);
}

.section-index {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ============ HERITAGE — Vespa-timeline inspired, recolored to brand ============ */

.heritage { border-top: 1px solid var(--line); scroll-margin-top: 92px; }

/* Photo-grade placeholders: color-graded, grain, vignette — stand in for real photography */
.photo-grade {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.photo-grade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.4) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.photo-grade::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0,0,0,0.65);
}

.grade-a {
  background:
    linear-gradient(150deg, rgba(230,30,30,0.28), transparent 55%),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px),
    linear-gradient(200deg, #2a1414, #0d0d0d 70%);
}
.grade-b {
  background:
    linear-gradient(20deg, rgba(255,255,255,0.10), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(230,30,30,0.08) 0 1px, transparent 1px 20px),
    linear-gradient(160deg, #1a1a1a, #050505 75%);
}
.grade-c {
  background:
    radial-gradient(circle at 65% 35%, rgba(230,30,30,0.32), transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #150808, #0a0a0a 70%);
}
.grade-d {
  background:
    linear-gradient(200deg, rgba(255,255,255,0.08), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 22px),
    linear-gradient(140deg, #171717, #050505 70%);
}
.grade-e {
  background:
    radial-gradient(circle at 50% 45%, rgba(230,30,30,0.35), transparent 65%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 18px),
    linear-gradient(210deg, #1c0f0f, #080808 70%);
}

/* Archive collage — organic, scattered, black & white, like a real photo board */
.archive-photo {
  position: absolute;
  overflow: hidden;
  background: var(--black-deep);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  border: none;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.archive-collage.is-visible .archive-photo {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.archive-collage.is-visible .archive-photo--1 { transition-delay: 0s; }
.archive-collage.is-visible .archive-photo--2 { transition-delay: 0.06s; }
.archive-collage.is-visible .archive-photo--3 { transition-delay: 0.12s; }
.archive-collage.is-visible .archive-photo--4 { transition-delay: 0.09s; }
.archive-collage.is-visible .archive-photo--5 { transition-delay: 0.15s; }
.archive-collage.is-visible .archive-photo--6 { transition-delay: 0.21s; }
.archive-collage.is-visible .archive-photo--7 { transition-delay: 0.27s; }
.archive-collage.is-visible .archive-photo--8 { transition-delay: 0.24s; }
.archive-collage.is-visible .archive-photo--9 { transition-delay: 0.18s; }
.archive-collage.is-visible .archive-photo--10 { transition-delay: 0.3s; }
.archive-collage.is-visible .archive-photo--11 { transition-delay: 0.33s; }
.archive-collage.is-visible .archive-photo--12 { transition-delay: 0.14s; }
.archive-collage.is-visible .archive-photo--13 { transition-delay: 0.22s; }
.archive-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.08);
}

/* Mathematically uniform collage: every column reaches exactly the same height,
   every gap (horizontal and vertical) is exactly 6px, verified with zero overlap/overflow */
.archive-collage-wrap {
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.archive-collage {
  position: relative;
  height: 445px;
  width: 900px;
  flex-shrink: 0;
  padding: 24px 0 0;
  transform-origin: top center;
}

/* Column A: storefront, tall anchor, sized to reach the full top-row height alone */
.archive-photo--1 { top: 0; left: 0; width: 160px; height: 284px; }

/* Column B: banner -> bib106, stack sums to exactly 284px with a proportional gap */
.archive-photo--2 { top: 0; left: 164px; width: 198px; height: 132px; }
.archive-photo--5 { top: 136px; left: 164px; width: 198px; height: 148px; }

/* Column C: race-action (hero) -> pitcrew, stack sums to exactly 284px */
.archive-photo--4 { top: 0; left: 366px; width: 203px; height: 127px; }
.archive-photo--12 { top: 132px; left: 366px; width: 203px; height: 153px; }

/* Column D: child (tall) -> bib66, stack sums to exactly 284px */
.archive-photo--7 { top: 0; left: 574px; width: 132px; height: 177px; }
.archive-photo--11 { top: 181px; left: 574px; width: 132px; height: 103px; }

/* Column E: team-sitting -> interior, stack sums to exactly 284px */
.archive-photo--13 { top: 0; left: 710px; width: 190px; height: 137px; }
.archive-photo--3 { top: 142px; left: 710px; width: 190px; height: 142px; }

/* Bottom row: all 4 tiles share one uniform height, proportional gaps, total width matches top row exactly */
.archive-photo--10 { top: 289px; left: 0; width: 208px; height: 156px; }
.archive-photo--8 { top: 289px; left: 213px; width: 235px; height: 156px; }
.archive-photo--9 { top: 289px; left: 452px; width: 208px; height: 156px; }
.archive-photo--6 { top: 289px; left: 664px; width: 236px; height: 156px; }

.heritage-title-wrap {
  padding: 20px 0 4px;
  text-align: center;
}
.heritage-title {
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: 2px;
  line-height: 1.08;
}

.heritage-lead-wrap {
  padding: 12px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.heritage-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 600;
}
.heritage-lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 84ch;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.8;
}
.heritage-lead strong { color: var(--white); font-weight: 600; font-style: normal; }

/* Era frames — Porsche-style: uniform full-bleed photo, giant year stamp, expandable info card */
.era-frame {
  position: relative;
  height: 58vh;
  min-height: 400px;
  max-height: 560px;
  max-width: 820px;
  margin: 48px auto;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.era-frame.is-visible { opacity: 1; transform: translateY(0); }

.era-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.08);
  transform: scale(1.08);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.era-frame.is-visible .era-photo { transform: scale(1); }
.era-photo--grade { transform: none; }
.era-photo--top { object-position: 65% 8%; }
.era-photo--grade .photo-grade { position: absolute; inset: 0; }

/* Darkening gradient so the year numeral and controls stay legible on any photo */
.era-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Giant vintage-serif year, stamped across the center like Porsche's timeline */
.era-year-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 9vw, 100px);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 6px 50px rgba(0,0,0,0.5);
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Letter-by-letter reveal for word-based stamps (Growth, Team) */
.era-year-stamp[data-text-reveal] .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.era-year-stamp[data-text-reveal].is-revealed .letter {
  opacity: 1;
  transform: translateY(0);
}

/* Closed state: small label + icon, bottom-right, like Porsche's collapsed card */
.era-info-toggle {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13,13,13,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245,245,245,0.14);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  max-width: calc(100% - 56px);
  transition: background 0.2s ease, opacity 0.25s ease;
}
.era-info-toggle:hover { background: rgba(13,13,13,0.88); }
.era-info-label {
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
  text-align: left;
}
.era-info-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,245,245,0.3);
  border-radius: 50%;
  font-size: 16px;
  color: var(--white);
  line-height: 1;
}

/* Open state: expanded info panel, replaces the toggle in the same corner */
.era-info-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  width: min(380px, calc(100% - 56px));
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245,245,245,0.16);
  border-radius: var(--radius);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.era-frame.is-open .era-info-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.era-frame.is-open .era-info-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.era-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.era-info-close:hover { color: var(--white); }

.era-info-panel h3 {
  font-size: 22px;
  margin-bottom: 8px;
  padding-right: 20px;
}
.era-info-panel .era-sub {
  font-size: 13px;
  color: var(--red);
  font-style: normal;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.era-info-panel .era-copy {
  color: rgba(245,245,245,0.82);
  font-size: 14px;
  line-height: 1.7;
}

/* Press proof block — real magazine coverage, shown full-page */
.era-press {
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--black-deep);
}
.era-press-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}
.era-press-title {
  font-size: clamp(24px, 2.8vw, 36px);
  margin-bottom: 18px;
}
.era-press-copy {
  color: var(--gray);
  font-size: 15px;
  max-width: 60ch;
  margin: 0 auto 48px;
}
.era-press-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.era-press-clip {
  width: 320px;
  max-width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid var(--line);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}
.era-press-clip:nth-child(2) { transform: rotate(1.5deg); }
.era-press-clip:hover { transform: rotate(0deg) scale(1.03); }
.era-press-clip img {
  width: 100%;
  height: auto;
  display: block;
}



/* Categories */
.categories {
  position: relative;
  overflow: hidden;
  padding: 120px 0 0;
  border-top: 1px solid var(--line);
}
/* real shop photo (parts cabinet + wheel rims) fading into the dark page, top right */
.categories::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 620px;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(13,13,13,0.72) 38%, rgba(13,13,13,0.35) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(13,13,13,0) 45%),
    url("../images/history/shop-interior_bw.jpeg") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.categories > .container { position: relative; z-index: 1; }

.categories-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  margin-bottom: 0;
}
.section-sub {
  color: var(--gray);
  font-size: 16px;
  max-width: 38ch;
  margin-bottom: 6px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(160deg, #151515 0%, #0d0d0d 70%);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
/* red glow that fades in from the bottom-left corner on hover */
.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%, rgba(230,30,30,0.22), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.category-tile > * { position: relative; z-index: 1; }
.category-tile:hover,
.category-tile:focus-visible {
  border-color: rgba(230,30,30,0.5);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.category-tile:hover::before,
.category-tile:focus-visible::before { opacity: 1; }
.category-tile:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* oversized outlined numeral, same idea as the heritage section */
.category-ghost {
  position: absolute !important;
  right: 24px;
  bottom: -26px;
  z-index: 0 !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 200px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,245,0.1);
  transition: -webkit-text-stroke-color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
}
.category-tile:hover .category-ghost {
  -webkit-text-stroke-color: rgba(230,30,30,0.55);
  transform: translateY(-8px);
}

.category-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,245,245,0.85);
  border: 1px solid rgba(245,245,245,0.16);
  border-radius: 50%;
  background: rgba(245,245,245,0.03);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.category-icon svg {
  width: 38px;
  height: 38px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-tile:hover .category-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.category-tile:hover .category-icon svg { transform: rotate(18deg) scale(1.08); }

.category-arrow {
  position: absolute !important;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid rgba(245,245,245,0.16);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.category-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-tile:hover .category-arrow { border-color: var(--red); background: rgba(230,30,30,0.12); }
.category-tile:hover .category-arrow svg { transform: translate(3px, -3px); }

.category-body { max-width: 34ch; }
.category-tile h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  margin-bottom: 10px;
}
.category-tile p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

/* red line that sweeps across the bottom edge on hover */
.category-line {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-tile:hover .category-line,
.category-tile:focus-visible .category-line { transform: scaleX(1); }

/* tiles rise in one after another when the grid scrolls into view (only hidden once JS is running) */
.category-grid.reveal-ready:not(.is-visible) .category-tile { opacity: 0; }
.category-grid.is-visible .category-tile {
  animation: tile-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 110ms);
}
@keyframes tile-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.categories-note {
  margin: 28px 0 72px;
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
}

/* slow-moving outlined ticker closing out the section */
.categories-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,245,0.3);
  white-space: nowrap;
}
.marquee-group i {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin: 0 36px;
  background: var(--red);
  transform: rotate(45deg);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .categories { padding-top: 80px; }
  .categories::before { width: 100%; height: 360px; opacity: 0.4; }
  .categories-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
  .section-sub { max-width: none; }
  .category-grid { grid-template-columns: 1fr; gap: 16px; }
  .category-tile { min-height: 250px; padding: 26px; }
  .category-ghost { font-size: 150px; right: 16px; }
  .category-arrow { top: 22px; right: 22px; }
  .categories-note { margin-bottom: 48px; }
  .categories-marquee { padding: 18px 0; }
  .marquee-group i { margin: 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .category-grid.is-visible .category-tile { animation: none; }
  .category-grid.reveal-ready:not(.is-visible) .category-tile { opacity: 1; }
  .category-icon svg, .category-ghost, .category-arrow svg, .category-line { transition: none; }
}

/* Contact */
.contact {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 20px;
}
.contact-copy p {
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 46ch;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-details dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 4px;
}
.contact-details dd a { color: var(--white); text-decoration: none; transition: color 0.2s ease; }
.contact-details dd a:hover { color: var(--red); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form label {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 16px;
}
.contact-form input,
.contact-form textarea {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form .btn { margin-top: 22px; align-self: flex-start; }
.form-note { font-size: 13px; margin-top: 12px; color: var(--red); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner p {
  font-size: 12px;
  color: var(--gray);
}

/* Responsive */
@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .archive-collage-wrap {
    overflow: visible;
    display: block;
    margin-top: 24px;
  }
  .archive-collage {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 20px 0;
    transform: none !important;
  }
  .archive-photo {
    position: static;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto;
  }
  .archive-photo img {
    height: auto;
    object-fit: contain;
  }
  .heritage-title { padding: 0 20px; }
  .era-frame { height: 46vh; min-height: 280px; margin: 28px 16px; border-radius: 8px; }
  .era-year-stamp { font-size: clamp(36px, 15vw, 72px); }
  .era-info-toggle, .era-info-panel { right: 16px; bottom: 16px; left: 16px; width: auto; max-width: none; }
  .era-info-toggle { padding: 14px 16px; }
  .era-press { padding: 64px 0; }
  .era-press-grid { gap: 24px; }
  .era-press-clip { width: 86%; transform: none; }
  .era-press-clip:hover { transform: scale(1.02); }
  .main-nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a {
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a.lang-switch { border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 32px; }
  .nav-toggle { display: flex; }
  .hero { min-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-tile, .progress-fill { transition: none; }
  .scroll-cue span { animation: none; }
  .era-frame, .era-photo, .photo-grade { transition: none; opacity: 1; transform: none; }
  .archive-photo { transition: none; opacity: 1; transform: none; }
  .era-year-stamp[data-text-reveal] .letter { transition: none; opacity: 1; transform: none; }
}
