/* Tru-Vu Drive-In — Shared Design System
   Load order: tokens.css -> main.css -> (optional) page-specific <style>.
   Every component below consumes tokens only — no raw hex outside this file. */

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; max-width: var(--measure); }
table { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }
.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: -100px; left: var(--space-m); z-index: 1000;
  background: var(--brand-dark); color: #fff; padding: 0.7em 1.2em; border-radius: var(--radius-s);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-m); }

/* ============ Layout primitives ============ */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - var(--gutter) * 2, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-3xl); }
.section-tight { padding-block: var(--space-2xl); }
.section-light { background: var(--bg); color: var(--text); }
.section-cream { background: var(--cream-100); color: var(--text); }
.section-dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--text-on-dark); }
.section-dark a:not(.btn) { color: var(--gold-300); }
.section-dark .text-muted { color: var(--text-on-dark-muted); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--space-m); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }
.u-center { text-align: center; margin-inline: auto; }
.text-muted { color: var(--text-muted); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 0.7em; }

/* ============ Typography ============ */
.kicker {
  font-family: var(--font-heading); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700);
  display: inline-flex; align-items: center; gap: 0.5em;
}
.section-dark .kicker { color: var(--gold-400); }
.kicker::before { content: ''; width: 1.6em; height: 2px; background: currentColor; display: inline-block; }
h1, .h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2, .h2 { font-size: var(--step-3); color: var(--navy-800); margin-top: var(--space-3xs); }
.section-dark h2, .section-dark .h2 { color: #fff; }
h3, .h3 { font-size: var(--step-2); }
.marquee-text {
  font-family: var(--font-marquee); font-weight: 400; letter-spacing: 0.01em;
  text-transform: uppercase; line-height: 1.02;
}
.eyebrow-rule { display: block; width: 3.2rem; height: 3px; background: var(--accent); border-radius: 999px; margin: 0.6em auto 1em; }
.lede { font-size: var(--step-1); color: var(--text-muted); max-width: 42ch; }
.section-dark .lede { color: var(--text-on-dark-muted); }

/* ============ Buttons ============ */
.btn {
  --_bg: var(--brand); --_fg: #fff; --_bg-hover: oklch(from var(--_bg) calc(l + 0.08) c h);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none;
  padding: 0.95em 1.7em; border-radius: var(--radius-full); border: 1px solid transparent;
  background: var(--_bg); color: var(--_fg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  min-height: 44px;
}
.btn:hover { background: var(--_bg-hover); transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.btn:active { transform: translateY(0); }
.btn-primary { --_bg: var(--accent); box-shadow: var(--shadow-glow-red); }
.btn-gold { --_bg: var(--gold-400); --_fg: var(--navy-950); box-shadow: var(--shadow-glow-gold); }
.btn-ghost { --_bg: transparent; --_fg: var(--brand); border-color: var(--line-on-light); box-shadow: none; }
.btn-ghost:hover { background: var(--sky-100); box-shadow: none; }
.btn-on-dark { --_bg: transparent; --_fg: #fff; border-color: var(--line-on-dark); box-shadow: none; }
.btn-on-dark:hover { background: rgba(255,255,255,0.08); box-shadow: none; }
.btn-lg { padding: 1.1em 2.1em; font-size: var(--step-0); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ============ Live weather status banner (go/no-go for tonight) ============ */
.weather-banner {
  display: flex; align-items: center; justify-content: center; gap: 0.7em;
  padding: 0.6em 1.2em; font-size: var(--step--1); font-family: var(--font-heading); font-weight: 500;
  text-align: center; flex-wrap: wrap; border-bottom: 1px solid var(--line-on-light);
}
.weather-banner .icon { font-size: 1.15em; line-height: 1; }
.weather-banner[data-status="loading"], .weather-banner[data-status="error"] { background: var(--cream-100); color: var(--text-muted); }
.weather-banner[data-status="good"] { background: #eef5ec; color: #2d5a27; }
.weather-banner[data-status="watch"] { background: rgba(232,163,61,0.15); color: var(--gold-600); }
.weather-banner[data-status="rain"] { background: rgba(200,16,46,0.1); color: var(--red-700); }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  padding-block: 1.1rem;
  transition: padding var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.site-header, .site-header::before {
  background: linear-gradient(180deg, rgba(10,20,32,0.92), rgba(10,20,32,0.72));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header { border-bottom: 1px solid var(--line-on-dark); }
.site-header.is-scrolled { padding-block: 0.65rem; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
.brand { display: flex; align-items: center; gap: 0.7em; text-decoration: none; color: #fff; }
.brand-mark { height: 48px; width: auto; flex-shrink: 0; }
.brand-word { font-family: var(--font-marquee); font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-word small { display: block; font-family: var(--font-heading); font-size: 0.55rem; letter-spacing: 0.24em; color: var(--gold-300); font-weight: 500; }
.nav-links { display: none; }
@media (min-width: 860px) {
  .nav-links {
    display: flex; gap: var(--space-l); align-items: center;
    font-family: var(--font-heading); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em;
  }
  .nav-links a { text-decoration: none; color: var(--text-on-dark-muted); padding: 0.4em 0; position: relative; }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0%;
    background: var(--gold-400); transition: width var(--dur-fast) var(--ease-out);
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
  .nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
}
.nav-actions { display: flex; align-items: center; gap: 0.6em; }
.nav-toggle {
  display: inline-flex; background: transparent; border: 1px solid var(--line-on-dark); border-radius: var(--radius-s);
  color: #fff; width: 44px; height: 44px; align-items: center; justify-content: center;
}
@media (min-width: 860px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }

/* Native popover mobile menu */
#mobile-menu {
  border: 1px solid var(--line-on-dark); border-radius: var(--radius-m);
  background: var(--navy-950); color: #fff; padding: var(--space-m);
  width: min(92vw, 360px); margin: 0; inset: unset; top: 4.4rem; right: var(--gutter);
  box-shadow: var(--shadow-elevated);
}
#mobile-menu::backdrop { background: rgba(6,10,16,0.5); }
#mobile-menu[popover] { position: fixed; }
#mobile-menu nav { display: flex; flex-direction: column; gap: 0.2em; font-family: var(--font-heading); }
#mobile-menu a { display: block; padding: 0.85em 0.5em; text-decoration: none; color: var(--text-on-dark-muted); border-radius: var(--radius-s); min-height: 44px; }
#mobile-menu a:hover, #mobile-menu a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.06); }
#mobile-menu .btn { margin-top: var(--space-s); width: 100%; }

/* ============ Hero / dusk-sky depth system (CSS-only, per vivere-3d ladder) ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  padding-block: 0 clamp(3rem, 6vw, 5rem);
}
.hero-banner {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--navy-700), var(--navy-900) 55%, var(--navy-950) 100%);
  padding-block: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,20,32,0.4) 0%, rgba(10,20,32,0.6) 55%, var(--navy-950) 100%),
    linear-gradient(100deg, rgba(10,20,32,0.65), rgba(10,20,32,0.15) 42%, rgba(10,20,32,0.6));
}
.starfield {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 65%, #fff, transparent),
    radial-gradient(1px 1px at 33% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 48% 40%, #fff, transparent),
    radial-gradient(1px 1px at 61% 78%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 74% 24%, #fff, transparent),
    radial-gradient(1px 1px at 85% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 93% 82%, #fff, transparent),
    radial-gradient(1px 1px at 14% 88%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 68% 8%, #fff, transparent);
  opacity: 0.55;
}
.hero .screen-glow {
  position: absolute; z-index: 0; left: 50%; top: 8%; width: min(70vw, 900px); aspect-ratio: 16/9;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(232,163,61,0.16), transparent 70%);
  filter: blur(6px);
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { font-size: var(--step-5); }
.hero .lede { color: var(--text-on-dark-muted); font-size: var(--step-1); }
.marquee-frame {
  border: 3px solid var(--gold-400); border-radius: var(--radius-m); padding: var(--space-l);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  position: relative; box-shadow: var(--shadow-glow-gold), inset 0 0 40px rgba(232,163,61,0.05);
}
.bulb-row { display: flex; justify-content: space-between; padding: 0 0.2rem; margin-bottom: var(--space-s); }
.bulb { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 6px 2px rgba(242,196,107,0.7); }
@media (prefers-reduced-motion: no-preference) {
  .bulb { animation: bulb-twinkle 2.6s ease-in-out infinite; }
  .bulb:nth-child(odd) { animation-delay: 1.3s; }
}
@keyframes bulb-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Headlight silhouettes across the bottom of the hero — depth layer */
.headlight-row { position: relative; z-index: 1; display: flex; gap: clamp(1rem, 4vw, 2.4rem); justify-content: center; margin-top: var(--space-2xl); opacity: 0.9; flex-wrap: wrap; }
.headlight { width: clamp(46px, 6vw, 72px); height: clamp(22px, 3vw, 34px); background: var(--navy-950); border-radius: 8px 8px 3px 3px; position: relative; box-shadow: var(--shadow-card); }
.headlight::before, .headlight::after { content: ''; position: absolute; top: 40%; width: 22%; height: 30%; background: var(--gold-300); border-radius: 50%; box-shadow: 0 0 10px 2px rgba(242,196,107,0.55); }
.headlight::before { left: 8%; } .headlight::after { right: 8%; }

/* ============ Stat band ============ */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-l);
  padding: var(--space-xl) 0; border-top: 1px solid var(--line-on-dark); border-bottom: 1px solid var(--line-on-dark);
  margin-top: var(--space-2xl);
}
@media (max-width: 700px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band .stat { text-align: center; }
.stat-band .num { font-family: var(--font-marquee); font-size: var(--step-3); color: var(--gold-400); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-band .lbl { font-size: var(--step--1); color: var(--text-on-dark-muted); margin-top: 0.5em; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ Cards (container-query ready) ============ */
.card-grid { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); container-type: inline-size; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--line-on-light); border-radius: var(--radius-l);
  padding: var(--space-l); box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  container-type: inline-size;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.card .price { font-family: var(--font-marquee); color: var(--accent); font-size: var(--step-2); }
@container (min-width: 340px) {
  .card-media-row { display: flex; gap: var(--space-m); align-items: flex-start; }
}
.card-dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; border-color: var(--line-on-dark); }

/* Card with a bled photo on top — consistent treatment for real photography across the site */
.card-photo { padding: 0; overflow: clip; }
.card-photo img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.card-photo .card-photo-body { padding: var(--space-l); }
figure.photo-feature { margin: 0; }
figure.photo-feature img {
  width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-elevated); display: block;
  object-fit: cover;
}
figure.photo-feature figcaption {
  font-size: var(--step--1); color: var(--text-muted); margin-top: 0.6em; text-align: center;
}
.section-dark figure.photo-feature figcaption { color: var(--text-on-dark-muted); }
.card-dark .text-muted { color: var(--text-on-dark-muted); }

/* ============ Badges / pills ============ */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--step--1);
  font-weight: 600; padding: 0.3em 0.85em; border-radius: var(--radius-full);
  background: var(--sky-100); color: var(--navy-800);
}
.badge-gold { background: rgba(232,163,61,0.15); color: var(--gold-600); }
.badge-red { background: rgba(200,16,46,0.1); color: var(--red-700); }
.badge-on-dark { background: rgba(255,255,255,0.08); color: var(--text-on-dark); }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line-on-light); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 0.85em 1.1em; text-align: left; border-bottom: 1px solid var(--line-on-light); }
thead th { background: var(--navy-900); color: #fff; position: sticky; top: var(--nav-offset); font-family: var(--font-heading); font-weight: 600; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:nth-child(even) td { background: var(--cream-100); }
td.num { text-align: right; }

/* ============ Forms ============ */
.field { position: relative; margin-block: var(--space-m); }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.3em 1em 0.6em; border: 1.5px solid var(--line-on-light); border-radius: var(--radius-s);
  background: var(--bg-elevated); font-size: var(--step-0);
}
.field label {
  position: absolute; left: 1em; top: 1.1em; color: var(--text-muted); pointer-events: none;
  transition: transform var(--dur-fast) var(--ease-out), font-size var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  transform-origin: left top;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); }
.field:has(input:focus) label,
.field:has(input:not(:placeholder-shown)) label,
.field:has(select) label,
.field:has(textarea:focus) label,
.field:has(textarea:not(:placeholder-shown)) label {
  transform: translateY(-0.65em) scale(0.78); color: var(--navy-700);
}
.field:has(:user-invalid) input, .field:has(:user-invalid) select { border-color: var(--accent); }

/* ============ Ticket flow (Quick-Ticket demo) ============ */
.ticket-app { background: var(--bg-elevated); border-radius: var(--radius-l); box-shadow: var(--shadow-elevated); overflow: clip; border: 1px solid var(--line-on-light); }
.ticket-steps { display: flex; background: var(--navy-950); color: #fff; }
.ticket-steps li { flex: 1; text-align: center; padding: 0.9em 0.4em; font-family: var(--font-heading); font-size: var(--step--1); letter-spacing: 0.03em; position: relative; opacity: 0.5; }
.ticket-steps li.is-active { opacity: 1; color: var(--gold-400); }
.ticket-steps li.is-done { opacity: 0.85; }
.ticket-steps li.is-done::after { content: '✓'; margin-left: 0.4em; }
.ticket-panel { padding: var(--space-xl); display: none; }
.ticket-panel.is-active { display: block; }
.showtime-option {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-m);
  padding: var(--space-m); border: 1.5px solid var(--line-on-light); border-radius: var(--radius-m); margin-bottom: var(--space-s);
  cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast);
  min-height: 44px;
}
.showtime-option:hover { border-color: var(--navy-600); }
.showtime-option:has(input:checked) { border-color: var(--accent); background: rgba(200,16,46,0.04); }
.showtime-option input { accent-color: var(--accent); width: 20px; height: 20px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-s) 0; border-bottom: 1px solid var(--line-on-light); gap: var(--space-m); }
.qty-row:last-of-type { border-bottom: none; }
.qty-control { display: flex; align-items: center; gap: 0.8em; }
.qty-control button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-on-light); background: var(--bg-elevated);
  font-size: 1.1rem; font-weight: 700; color: var(--navy-800); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qty-control button:hover { background: var(--sky-100); }
.qty-value { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.order-summary { background: var(--cream-100); border-radius: var(--radius-m); padding: var(--space-l); margin-top: var(--space-l); }
.order-summary .row { display: flex; justify-content: space-between; padding: 0.4em 0; font-variant-numeric: tabular-nums; }
.order-summary .total { font-family: var(--font-heading); font-size: var(--step-1); border-top: 1.5px solid var(--line-on-light); margin-top: 0.5em; padding-top: 0.6em; }
.demo-banner {
  display: flex; gap: 0.6em; align-items: center; background: rgba(232,163,61,0.12); color: var(--gold-600);
  border: 1px solid rgba(232,163,61,0.35); border-radius: var(--radius-s); padding: 0.7em 1em; font-size: var(--step--1); margin-bottom: var(--space-l);
}
.wallet-pass {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; border-radius: var(--radius-l);
  padding: var(--space-l); box-shadow: var(--shadow-elevated); position: relative; overflow: hidden;
}
.wallet-pass::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% -10%, rgba(232,163,61,0.25), transparent 60%); }
.wallet-qr { width: 132px; height: 132px; background: #fff repeating-conic-gradient(#12161c 0 25%, #fff 0 50%) 0/16px 16px; border-radius: var(--radius-s); margin-inline: auto; }

/* ============ Trailer embed (lazy facade — no YouTube iframe/JS until clicked) ============ */
.trailer-embed {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-m); overflow: hidden;
  background: var(--navy-950); box-shadow: var(--shadow-card); cursor: pointer;
}
.trailer-embed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-embed .play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(10,20,32,0.1), rgba(10,20,32,0.55));
}
.trailer-embed .play-btn svg { width: 60px; height: 60px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45)); transition: transform var(--dur-fast) var(--ease-out); }
.trailer-embed:hover .play-btn svg, .trailer-embed:focus-visible .play-btn svg { transform: scale(1.08); }
.trailer-embed .play-btn circle { fill: rgba(232,163,61,0.92); }
.trailer-embed .play-btn path { fill: var(--navy-950); }
.trailer-caption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.7em; gap: 0.6em; }

/* ============ Marquee / brand-bar (duplicate-track loop) ============ */
.brandbar { overflow: hidden; background: var(--navy-950); padding-block: var(--space-s); border-block: 1px solid var(--line-on-dark); }
.brandbar-track { display: flex; width: max-content; gap: 3rem; animation: marquee 28s linear infinite; }
.brandbar:hover .brandbar-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .brandbar-track { animation: none; } }
.brandbar span { font-family: var(--font-marquee); letter-spacing: 0.08em; color: var(--gold-400); font-size: var(--step-0); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Scroll reveal (progressive enhancement) ============ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
@supports (animation-timeline: view()) {
  .reveal { opacity: 0; transform: translateY(28px); animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; transition: none; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Reading progress bar (scroll-driven, zero JS) */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: left; z-index: 300; background: linear-gradient(90deg, var(--accent), var(--gold-400)); }
@supports (animation-timeline: scroll(root)) {
  .progress-bar { animation: grow-progress linear; animation-timeline: scroll(root); }
}
@keyframes grow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ Timeline (history/about) ============ */
.timeline { position: relative; padding-left: var(--space-l); border-left: 3px solid var(--line-on-light); }
.section-dark .timeline { border-color: var(--line-on-dark); }
.timeline-item { position: relative; padding-bottom: var(--space-xl); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: calc(-1 * var(--space-l) - 8px); top: 0.3em; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-400); box-shadow: var(--shadow-glow-gold); }
.timeline-item .yr { font-family: var(--font-marquee); color: var(--gold-700); font-size: var(--step-2); }
.section-dark .timeline-item .yr { color: var(--gold-400); }

/* ============ Footer ============ */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); padding-block: var(--space-2xl) var(--space-l); }
.footer-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9em; }
.footer-grid a { text-decoration: none; color: var(--text-on-dark-muted); display: inline-block; padding: 0.3em 0; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: 0.7em; margin-top: var(--space-s); }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-on-dark); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-on-dark); margin-top: var(--space-2xl); padding-top: var(--space-l); display: flex; justify-content: space-between; gap: var(--space-m); flex-wrap: wrap; font-size: var(--step--1); }
.footer-bottom .vivere { color: var(--text-on-dark-muted); }

/* ============ Cross-page View Transitions (progressive enhancement) ============ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ============ Grain texture on dark sections (premium, non-flat) ============ */
.section-dark, .hero, .site-header, .site-footer {
  position: relative;
}
.section-dark::after, .hero::after, .site-footer::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section-dark > *, .hero-inner, .site-footer > * { position: relative; z-index: 1; }

/* ============ Hero scroll-linked parallax (CSS-only depth) ============ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll(root)) {
    .hero .starfield { animation: parallax-slow linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .hero .screen-glow { animation: parallax-fast linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
@keyframes parallax-slow { from { transform: translateY(0); } to { transform: translateY(10%); } }
@keyframes parallax-fast { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-8%); } }

/* ============ Card cursor-spotlight + tilt (JS sets --mx/--my; site.js gates by pointer:fine + reduced-motion) ============ */
.card { --mx: 50%; --my: 50%; position: relative; will-change: transform; }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(232,163,61,0.14), transparent 65%);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); pointer-events: none;
}
.card:hover::before, .card.is-tilting::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* ============ Accessibility & print ============ */
@media print {
  .site-header, .nav-toggle, .progress-bar, .btn, #mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
