:root {
  /* SPAC 20-year palette: chairman's dark red; teal kept only in the logo */
  --red: #96223a;
  --red-bright: #a8293d;
  --red-mid: #7a1626;
  --red-deep: #3f0a14;
  --blush: #f3d3d2;
  --champagne: #ead2b4;
  --cream: #fdf7f2;
  --background: #f5f3ef;
  --card: #ffffff;
  --foreground: #222222;
  --muted: #555555;
  --border: #dcd9d4;
  --on-panel: var(--cream);
  --panel-gradient: radial-gradient(120% 95% at 28% 20%, var(--red-bright) 0%, var(--red-mid) 45%, var(--red-deep) 100%);
  --font-sans: "Arimo", Arial, "Helvetica Neue", sans-serif;
  --font-serif: "Tinos", "Times New Roman", Times, serif;
  --header-h: 6.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd, ol { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
}

.wrap { max-width: 80rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) { .wrap { padding-left: 2rem; padding-right: 2rem; } }

.label-caps { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { color: var(--red); }
.accent { color: var(--red); }

/* Header: floats over the full-bleed hero, turns solid once scrolled */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; transition: background 0.25s, box-shadow 0.25s; }
.site-header.scrolled { background: var(--background); box-shadow: 0 1px 0 var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a, .nav-place { color: var(--cream); transition: color 0.2s, opacity 0.2s; }
.nav a { font-size: 0.875rem; opacity: 0.85; }
.nav a:hover { opacity: 1; }
.nav-place { border-left: 1px solid color-mix(in srgb, var(--cream) 35%, transparent); padding-left: 2rem; }
.scrolled .nav a, .scrolled .nav-place { color: var(--foreground); }
.scrolled .nav a:hover { color: var(--red); }
.scrolled .nav-place { border-left-color: var(--border); }
.menu-btn { display: none; background: none; border: 0; padding: 0.25rem; color: var(--cream); cursor: pointer; }
.scrolled .menu-btn { color: var(--foreground); }

@media (max-width: 1199px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 1.25rem; background: var(--background); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a, .nav-place, .scrolled .nav a { color: var(--foreground); font-size: 1rem; opacity: 1; }
  .nav-place { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
  :root { --header-h: 4.5rem; }
  .site-header { background: var(--background); box-shadow: 0 1px 0 var(--border); }
  .menu-btn { color: var(--foreground); }
  .brand img { height: 44px; }
}

/* Panels */
.panel { position: relative; overflow: hidden; background: var(--panel-gradient); color: var(--on-panel); }
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.rings { position: absolute; pointer-events: none; color: var(--cream); }
.rings circle { fill: none; stroke: currentColor; stroke-opacity: 0.22; stroke-width: 1; }
.rings circle.band { stroke-opacity: 0.08; stroke-width: 16; }
.layer { position: relative; z-index: 1; }

/* Hero: edge to edge, runs up under the app bar */
.hero { display: grid; min-height: 100vh; min-height: 100svh; }
.hero-copy {
  background: var(--card); display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
}
.hero-copy h1 { font-size: clamp(3.75rem, 6.4vw, 7.5rem); line-height: 0.95; letter-spacing: -0.055em; }
.lead { margin-top: 2.25rem; max-width: 22rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.soon { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); max-width: 34rem; }
.soon .muted { margin-top: 0.5rem; }
.soon-label { display: flex; align-items: center; gap: 0.75rem; color: var(--red); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-panel { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--header-h) 1rem 3rem; }
.glow {
  position: absolute; inset: -25%; pointer-events: none;
  background:
    radial-gradient(35% 30% at 30% 30%, color-mix(in srgb, #c8384f 55%, transparent), transparent 70%),
    radial-gradient(30% 28% at 75% 70%, color-mix(in srgb, #5a0f1d 70%, transparent), transparent 70%);
  animation: glow-drift 22s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0% { transform: translate3d(-4%, -3%, 0) scale(1); }
  100% { transform: translate3d(5%, 4%, 0) scale(1.08); }
}
.rings-tr { right: -14rem; top: -18rem; width: 38rem; height: 38rem; }
.rings-bl { left: -16rem; bottom: -22rem; width: 34rem; height: 34rem; }
.big-20 {
  position: relative; z-index: 1;
  font-family: var(--font-serif); font-weight: 700; line-height: 0.9; letter-spacing: -0.07em;
  font-size: clamp(11rem, 23vw, 26rem); padding: 0 0.12em 0 0.05em;
  background: linear-gradient(90deg,
    var(--cream) 0%, var(--blush) 22%, var(--cream) 38%, #ffffff 46%, #ffffff 50%,
    var(--champagne) 56%, var(--cream) 68%, #f0c2c4 86%, var(--cream) 100%);
  background-size: 200% 100%; background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1px rgba(70, 8, 20, 0.55)) drop-shadow(0 18px 40px rgba(40, 4, 10, 0.35));
  animation: sheen 14s linear infinite;
}
@keyframes sheen {
  /* 200% of a 200%-wide tile moves it exactly one tile, so the loop has no seam */
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
.hero-years { position: relative; z-index: 1; margin-top: 1.75rem; letter-spacing: 0.4em; color: color-mix(in srgb, var(--cream) 88%, transparent); }

@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-panel { min-height: 100%; }
  .hero-copy { padding-left: max(2rem, calc((100vw - 80rem) / 2 + 2rem)); padding-right: 3rem; }
}
@media (max-width: 767px) {
  .hero-panel { order: -1; padding-top: calc(var(--header-h) + 3rem); }
  .hero-copy { padding-top: 3.5rem; }
}

/* Sections */
.section { border-top: 1px solid var(--border); scroll-margin-top: 6rem; }
.section > .wrap { padding-top: 6rem; padding-bottom: 6rem; }
.section-card { background: var(--card); }
.section h2 { margin-top: 1rem; max-width: 48rem; font-size: 2.25rem; line-height: 1.2; }
@media (min-width: 640px) { .section h2 { font-size: 3rem; } }

.about-grid { margin-top: 3.5rem; display: grid; gap: 3.5rem; }
.about-copy p { font-size: 1.125rem; line-height: 1.625; color: var(--muted); }
.about-copy p + p { margin-top: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); align-self: start; }
.stats > div { padding: 2rem 1rem; }
.stats > div:first-child { padding-left: 0; }
.stats > div + div { border-left: 1px solid var(--border); }
.stat-num { font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--red); }
.stat-label { margin-top: 0.75rem; font-size: 11px; line-height: 1.375; color: var(--muted); }
@media (min-width: 640px) { .stat-num { font-size: 3.75rem; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* Timeline */
.timeline { list-style: none; margin-top: 4rem; padding: 0 0 0 2rem; display: grid; gap: 2.5rem; border-left: 1px solid var(--red); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -37px; top: 0.5rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--card);
}
.year { font-family: var(--font-serif); font-size: 2.25rem; color: var(--red); }
.timeline .muted { margin-top: 0.75rem; }
@media (min-width: 768px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; padding: 2.5rem 0 0; border-left: 0; border-top: 1px solid var(--red); }
  .timeline li::before { left: 0; top: -46px; }
}

/* Brands */
.brands { margin-top: 3.5rem; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.brand-card { background: var(--card); padding: 2.5rem; display: flex; flex-direction: column; transition: background 0.2s; }
.brand-card:hover { background: color-mix(in srgb, var(--red) 5%, var(--card)); }
.brand-card h3 { margin-top: 1.5rem; font-size: 1.875rem; }
.brand-card .muted { margin-top: 1rem; flex: 1; }
.brand-link { margin-top: 1.5rem; color: var(--red); font-size: 11px; }
@media (min-width: 768px) { .brands { grid-template-columns: repeat(3, 1fr); } }

/* Contact + footer: one full-bleed red close */
.contact-section { scroll-margin-top: 4rem; }
.contact-grid { position: relative; z-index: 1; display: grid; gap: 3rem; padding-top: 6rem; padding-bottom: 6rem; }
.rings-contact { right: -8rem; top: -8rem; width: 26rem; height: 26rem; }
.contact-section h2 { margin-top: 1rem; max-width: 34rem; font-size: 2.5rem; line-height: 1.1; }
.on-panel-soft { color: color-mix(in srgb, var(--on-panel) 80%, transparent); }
.contact-section .actions { margin-top: 2.5rem; }
.contact-list { align-self: end; display: grid; gap: 1.5rem; }
.contact-list > div { border-top: 1px solid color-mix(in srgb, var(--cream) 25%, transparent); padding-top: 1rem; }
.contact-list dt { color: color-mix(in srgb, var(--cream) 72%, transparent); }
.contact-list dd { margin-top: 0.25rem; font-size: 1.125rem; }
.contact-list a:hover { color: var(--blush); }
@media (min-width: 640px) { .contact-section h2 { font-size: 3.5rem; } }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.site-footer { background: var(--red-deep); color: color-mix(in srgb, var(--cream) 78%, transparent); border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent); }
.footer-row { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Buttons */
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 3rem; padding: 0 1.75rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { border: 1px solid color-mix(in srgb, var(--foreground) 80%, transparent); color: var(--foreground); }
.btn-outline:hover { background: var(--foreground); color: var(--background); }

.btn-light { background: var(--cream); color: var(--red-mid); }
.btn-light:hover { background: #fff; }

/* The 20: light bursts from behind, toward the viewer */
.stage { position: relative; z-index: 1; display: grid; place-items: center; animation: stage-float 11s ease-in-out infinite; will-change: transform; }
@keyframes stage-float {
  0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translate3d(-8px, 6px, 0); }
  50% { transform: perspective(1000px) rotateY(5deg) rotateX(-2deg) translate3d(8px, -8px, 0); }
}
/* Volumetric rays (drawn by main.js): light hidden behind the digits, leaking past their edges */
.rays {
  position: absolute; left: 50%; top: 50%; width: 190%; height: 210%;
  transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; z-index: 0;
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot, .glow, .big-20, .stage { animation: none; }
}
