/* Landing page for the GEC Raipur 1991 yearbook.
   Visual system: landing-page-design skill (Part B).
   Spacing, radius, and type values resolve to the tokens below only. */

:root,
[data-theme-mode="dark"] {
  /* Surfaces (Apple Obsidian & Titanium Palette) */
  --bg: #0b0c0e;
  --surface: #131518;
  --surface-2: #1a1d22;
  --surface-3: #232529;
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.16);

  /* Text & Accents */
  --text: #f4f5f7;
  --text-muted: #8e939e;
  --text-faint: rgba(244, 245, 247, 0.25);
  --accent: #d4af37;
  --accent-ink: #0b0c0e;
  --error: #f2a08c;

  /* Typography */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", SFMono-Regular, Consolas, monospace;

  /* Spacing */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Radius */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* Spring Physics Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Blueprint Precision (Industrial Technical) */
[data-theme-mode="blueprint"] {
  --bg: #0a1628;
  --surface: #102038;
  --surface-2: #162c4d;
  --surface-3: #1f3b64;
  --line: rgba(104, 178, 248, 0.18);
  --line-hover: rgba(104, 178, 248, 0.35);
  --text: #f4f6f9;
  --text-muted: #8ba9c4;
  --text-faint: rgba(244, 246, 249, 0.25);
  --accent: #e8a317;
  --accent-ink: #0a1628;
  --error: #f2a08c;
}

/* Forged Heritage (Storytelling Legacy) */
[data-theme-mode="heritage"] {
  --bg: #161616;
  --surface: #1f1e1d;
  --surface-2: #2a2927;
  --surface-3: #363431;
  --line: rgba(139, 111, 71, 0.25);
  --line-hover: rgba(139, 111, 71, 0.45);
  --text: #f5f1ea;
  --text-muted: #a89f91;
  --text-faint: rgba(245, 241, 234, 0.25);
  --accent: #c4823f;
  --accent-ink: #161616;
  --error: #c54f36;
}

/* Flow & Connection (Network Visualization) */
[data-theme-mode="flow"] {
  --bg: #0b1120;
  --surface: #111c33;
  --surface-2: #172644;
  --surface-3: #1f335b;
  --line: rgba(34, 211, 238, 0.2);
  --line-hover: rgba(34, 211, 238, 0.4);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: rgba(248, 250, 252, 0.25);
  --accent: #22d3ee;
  --accent-ink: #0b1120;
  --error: #f2a08c;
}

/* Warm Archival Linen Mode (Fine-Art Cotton Rag) */
[data-theme-mode="linen"] {
  --bg: #f5f2eb;
  --surface: #ffffff;
  --surface-2: #ede7dc;
  --surface-3: #e2dbce;
  --line: rgba(44, 38, 30, 0.1);
  --line-hover: rgba(44, 38, 30, 0.22);
  --text: #1d1914;
  --text-muted: #6e675d;
  --text-faint: rgba(29, 25, 20, 0.25);
  --accent: #9a7322;
  --accent-ink: #ffffff;
  --error: #c54f36;
}

/* Studio Pure Light Mode (Apple Gallery Daylight) */
[data-theme-mode="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eaedf1;
  --surface-3: #dde1e7;
  --line: rgba(15, 23, 42, 0.08);
  --line-hover: rgba(15, 23, 42, 0.18);
  --text: #0f141c;
  --text-muted: #5e6878;
  --text-faint: rgba(15, 20, 28, 0.25);
  --accent: #a17822;
  --accent-ink: #ffffff;
  --error: #c54f36;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* Engineering Theme Atmospheric Backgrounds */
[data-theme-mode="blueprint"] body {
  background-color: var(--bg);
  background-image: 
    linear-gradient(to right, rgba(104, 178, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(104, 178, 248, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

[data-theme-mode="heritage"] body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(196, 130, 63, 0.06), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(139, 111, 71, 0.05), transparent 45%);
}

[data-theme-mode="flow"] body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.06), transparent 45%);
}

[data-theme-mode="linen"] body {
  background-color: var(--bg);
  background-image: radial-gradient(#d6cebe 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

/* Engineering Dimension Divider */
.dimension-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: var(--s-600) auto;
  padding: 0 var(--s-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
}

.dimension-divider::before,
.dimension-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.dimension-divider .dim-arrow {
  color: var(--accent);
  font-weight: 700;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: var(--s-200); left: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 var(--s-300); }

/* Buttons (B1, B2, B9) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent; border-radius: var(--r-lg);
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease);
}
.btn-sm { font-size: 0.875rem; line-height: 1.25rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #E4C285; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  margin-bottom: var(--s-200);
  color: var(--accent); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.eyebrow i { font-size: 1rem; }

/* Navigation (B7) */
.nav-wrap {
  position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 var(--s-200);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: var(--s-75);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; text-decoration: none;
}
.nav-mark {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink);
  font-size: 0.75rem; line-height: 1rem; font-weight: 700;
}
.nav-links { display: flex; gap: var(--s-300); }
.nav-links a {
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.25rem; text-decoration: none;
  transition: color 300ms var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }

/* Appearance Switcher Component */
.appearance-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px;
  border-radius: var(--r-full);
  gap: 2px;
}

.appearance-pill {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 180ms var(--ease);
  line-height: 1;
}

.appearance-pill:hover {
  color: var(--text);
}

.appearance-pill.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mobile-appearance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-100) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--s-100) 0;
}

.mobile-appearance-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Inner radius = 16px outer − 8px gap = 8px (B3) */
.nav-cta { border-radius: var(--r-lg); }

.menu-toggle {
  display: none; position: relative; width: 40px; height: 40px;
  border: 0; border-radius: var(--r-lg); background: transparent; cursor: pointer;
}
.menu-line {
  position: absolute; left: var(--s-100); right: var(--s-100); height: 2px;
  background: var(--text); border-radius: var(--r-full);
  transition: transform 500ms var(--ease);
}
.menu-line:first-child { transform: translateY(-4px); }
.menu-line:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-line:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  padding: var(--s-900) var(--s-300) var(--s-300);
  background: rgba(19, 18, 9, 0.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s-300); }
.mobile-menu a:not(.btn) { font-size: 1.5rem; line-height: 2rem; font-weight: 600; text-decoration: none; }
.mobile-menu li { opacity: 0; transform: translateY(24px); }
.mobile-menu.is-open li {
  opacity: 1; transform: translateY(0);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

/* Hero (B5) */
.hero { padding-top: calc(var(--s-900) + var(--s-700)); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
  max-width: 680px;
  font-size: 3.75rem; line-height: 1; /* text-6xl */
  font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 680px; margin-top: var(--s-300);
  color: var(--text-muted); font-size: 1.125rem; line-height: 1.75rem; /* text-lg */
}

.find-form {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-75);
  width: 100%; max-width: 560px; margin-top: var(--s-500);
  padding: var(--s-75);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl);
  text-align: left;
}
.find-field { position: relative; display: flex; align-items: center; }
.find-field i { position: absolute; left: var(--s-100); color: var(--text-muted); font-size: 1.125rem; }
.find-field input {
  width: 100%; height: 40px;
  padding: var(--s-75) var(--s-100) var(--s-75) var(--s-500);
  /* Inner radius = 16px − 8px gap = 8px (B3) */
  border: 1px solid transparent; border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 1rem; line-height: 1.5rem;
  transition: border-color 300ms var(--ease);
}
.find-field input::placeholder { color: var(--text-muted); }
.find-field input:focus { outline: none; border-color: var(--accent); }
.find-form[data-invalid] input { border-color: var(--error); }
.form-error {
  grid-column: 1 / -1; min-height: 0;
  color: var(--error); font-size: 0.875rem; line-height: 1.25rem;
}
.form-error:empty { display: none; }
.form-error:not(:empty) { padding: var(--s-50) var(--s-75); }

.proof-line {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-300);
  margin-top: var(--s-300);
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.25rem;
}
.proof-line strong { color: var(--text); font-weight: 600; }

.hero-photo {
  margin-top: var(--s-700);
  margin-bottom: 0;
  max-width: 1560px !important;
  width: 95vw !important;
}

.hero-reels-stage {
  display: flex;
  align-items: stretch;
  gap: var(--s-200);
  width: 100%;
  position: relative;
}

.hero-reels-stage .photo-frame {
  flex: 1;
  min-width: 0;
  padding: var(--s-75);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
}

.hero-reels-stage .ambient-reel {
  width: 165px;
  min-width: 165px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.hero-reels-stage .reel-header {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
}

.hero-reels-stage .reel-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(232, 163, 23, 0.15);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid rgba(232, 163, 23, 0.25);
}

.hero-reels-stage .reel-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-reels-stage .reel-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  max-height: 540px;
}

.hero-reels-stage .reel-viewport::before,
.hero-reels-stage .reel-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 5;
  pointer-events: none;
}

.hero-reels-stage .reel-viewport::before {
  top: 0;
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
}

.hero-reels-stage .reel-viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--surface) 0%, transparent 100%);
}

.hero-reels-stage .reel-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 8px;
}

.hero-reels-stage .ambient-reel-left .reel-track {
  animation: reel-scroll-up 45s linear infinite;
}

.hero-reels-stage .ambient-reel-right .reel-track {
  animation: reel-scroll-down 45s linear infinite;
}

.hero-reels-stage .reel-track:hover {
  animation-play-state: paused;
}

@keyframes reel-scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes reel-scroll-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-reels-stage .ambient-reel {
    display: none !important;
  }
}

.photo-frame {
  padding: var(--s-75);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3xl);
}
.photo-stage {
  position: relative; overflow: hidden;
  border-radius: var(--r-2xl); /* 24px − 8px gap */
}
.photo-stage img { width: 100%; }
.hero-photo figcaption {
  margin-top: var(--s-200); text-align: center;
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.25rem;
}

/* Name tags on the hero photo */
.face-tag {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  text-decoration: none; pointer-events: auto;
}
.face-tag.is-on { opacity: 1; }
.face-ring {
  width: 40px; height: 40px; border-radius: var(--r-full);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 178, 106, 0.2);
}
.face-label {
  position: absolute; bottom: calc(100% + var(--s-75));
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

/* Sections */
.section { padding: var(--s-900) 0; }
.section-title {
  max-width: 680px;
  font-size: 2.25rem; line-height: 2.5rem; /* text-4xl */
  letter-spacing: -0.01em;
}
.section-sub { max-width: 680px; margin-top: var(--s-200); color: var(--text-muted); font-size: 1.125rem; line-height: 1.75rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover {
  border-color: var(--line-hover);
}

/* Apple Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-300);
  margin-top: var(--s-600);
}
.bento-card {
  padding: var(--s-400);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-hero {
  grid-column: span 7;
  background: linear-gradient(160deg, #181b22 0%, #111317 100%);
  border-color: rgba(255, 255, 255, 0.12);
}
.bento-hero h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: var(--s-200) 0 var(--s-100);
  letter-spacing: -0.02em;
}
.bento-badge {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}
.bento-proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-100);
  margin-top: var(--s-300);
}
.proof-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--r-lg);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: var(--s-200);
}
.bento-grid > .bento-card:nth-child(2),
.bento-grid > .bento-card:nth-child(3) {
  grid-column: span 5;
}
.bento-wide {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  gap: var(--s-400);
}
.bento-wide .bento-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.bento-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: var(--s-75);
}

@media (max-width: 900px) {
  .bento-hero,
  .bento-grid > .bento-card:nth-child(2),
  .bento-grid > .bento-card:nth-child(3),
  .bento-wide {
    grid-column: span 12;
  }
  .bento-wide {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tagline reveal (B11) */
.tagline-section { padding: var(--s-900) 0; }
.tagline {
  max-width: 680px; margin: 0 auto;
  font-size: 3rem; line-height: 1; /* text-5xl */
  font-weight: 600; letter-spacing: -0.02em; text-align: center; text-wrap: balance;
}
.tagline .word {
  display: inline-block; margin-right: 0.25em; padding-bottom: var(--s-75);
  color: var(--text-faint);
  transition: color 600ms var(--ease);
}
.tagline .word.is-lit { color: var(--text); }
.tagline .word.is-accent.is-lit { color: var(--accent); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200); margin-top: var(--s-600); }
.step { padding: var(--s-300); }
.step-num {
  display: inline-block; margin-bottom: var(--s-300);
  color: var(--accent); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Faces grid */
.row-tabs { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-400); }
.chip {
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: transparent; color: var(--text-muted);
  font: inherit; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip:active { transform: scale(0.98); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.face-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: var(--s-200); margin-top: var(--s-400);
}
.face-card {
  display: flex; flex-direction: column; gap: var(--s-75);
  padding: var(--s-75);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  text-decoration: none;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.face-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.face-card:active { transform: scale(0.98); }
.face-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-md); /* 12px outer − 8px gap = 4px, use rounded-md as nearest */
  filter: grayscale(1);
  background: var(--surface-3);
}
.face-name { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.face-meta { color: var(--text-muted); font-size: 0.75rem; line-height: 1rem; }
.face-skeleton {
  aspect-ratio: 3 / 4; border-radius: var(--r-xl); background: var(--surface-2);
  animation: pulse 1600ms var(--ease) infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-700); align-items: start; }
.faq { display: flex; flex-direction: column; gap: var(--s-75); }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  transition: background-color 300ms var(--ease);
}
.faq details[open] { background: var(--surface-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
  padding: var(--s-200) var(--s-300); cursor: pointer; list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1.75rem;
  transition: transform 500ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-300) var(--s-300); color: var(--text-muted); }

/* Final CTA */
.final-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--s-800) var(--s-300);
  border-radius: var(--r-3xl);
}
.final-card .section-title, .final-card .section-sub { margin-left: auto; margin-right: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: var(--s-400) 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200);
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.25rem;
}
.footer ul { display: flex; gap: var(--s-300); }
.footer a { text-decoration: none; transition: color 300ms var(--ease); }
.footer a:hover { color: var(--text); }

/* Scroll reveal (B7) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: var(--s-400); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { gap: var(--s-200); }
  .hero { padding-top: calc(var(--s-900) + var(--s-400)); }
  .hero-title { font-size: 2.25rem; line-height: 2.5rem; } /* text-4xl */
  .hero-sub { font-size: 1rem; line-height: 1.5rem; }
  .find-form { grid-template-columns: 1fr; }
  .section { padding: var(--s-800) 0; }
  .section-title { font-size: 1.875rem; line-height: 2.25rem; } /* text-3xl */
  .tagline { font-size: 2.25rem; line-height: 2.5rem; } /* text-4xl */
  .benefit-grid, .steps { grid-template-columns: 1fr; }
  .face-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s-100); }
  .face-ring { width: 24px; height: 24px; }
  .face-label { font-size: 0.75rem; }
  .final-card { padding: var(--s-600) var(--s-200); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mobile-menu li, .benefit, .face-card, .face-tag { transform: none !important; transition: opacity 300ms linear; }
  .face-skeleton { animation: none; }
}


/* 35th Jubilee Special Styles Showcase */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-16, 16px);
  margin-top: var(--s-24, 24px);
}

.style-card {
  padding: var(--s-16, 16px);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease, 0.2s ease), border-color var(--ease, 0.2s ease);
}

.style-card:hover {
  transform: translateY(-2px);
  border-color: #404040;
}

.style-card img {
  width: 100%;
  aspect-ratio: 1520 / 1212;
  object-fit: cover;
  border-radius: var(--r-sm, 4px);
  margin-bottom: var(--s-12, 12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.style-category {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3px 8px;
  border-radius: var(--r-md);
  margin-bottom: 8px;
}

.style-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--s-50, 4px);
  color: #ffffff;
  letter-spacing: -0.01em;
}

.style-card p {
  font-size: 0.85rem;
  color: #9b9b9b;
  line-height: 1.45;
}


/* 35-Year Mechanical Milestones Showcase */
.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-100);
  margin-top: var(--s-300);
  margin-bottom: var(--s-400);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-200);
}

.milestone-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-200);
  cursor: pointer;
  transition: all 220ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
}

.milestone-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.milestone-card-img {
  width: 100%;
  aspect-ratio: 320 / 220;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #0a1628;
  object-fit: cover;
}

.milestone-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.milestone-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.milestone-card-formula {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--surface-2);
  padding: 3px 6px;
  border-radius: var(--r-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
}

/* Modal Overlay & Card for Landing */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-300);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal-overlay.open {
  opacity: 1 !important;
  display: flex !important;
  pointer-events: auto !important;
}

.profile-modal.milestone-modal {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: var(--s-300) var(--s-400);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-box h3 {
  font-size: 1.15rem;
  color: var(--text);
}

.modal-title-box p {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.close-modal-btn:hover {
  color: var(--text);
}

.milestone-modal-body {
  padding: var(--s-400);
  display: flex;
  flex-direction: column;
  gap: var(--s-200, 16px);
}

.milestone-era-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--r-md);
  margin-bottom: 4px;
}

.milestone-schematic-wrap {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1628;
}

.milestone-schematic-img {
  width: 100%;
  height: auto;
  display: block;
}

.milestone-formula-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.formula-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.milestone-formula-card code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  word-break: break-all;
}

.milestone-desc-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.milestone-desc-box p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.milestone-memory-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-200);
}

.milestone-memory-box .memory-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.milestone-memory-box p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
}
