/* ==========================================================================
   Sonic the Hedgehog Fan Page — style.css
   Deep dark blue #001433 · Sonic blue #00a8e8 · Ring gold #f5a623
   Fugaz One headings (italicised) · DM Sans body
   Advanced: scroll-driven animations · clip-path diagonal dividers
             @property ring-gold cycling · ring spin decoration
   ========================================================================== */

/* --------------------------------------------------------------------------
   @property — ring-gold animated custom property
   -------------------------------------------------------------------------- */
@property --ring-gold {
  syntax: '<color>';
  inherits: false;
  initial-value: #f5a623;
}

/* --------------------------------------------------------------------------
   Custom Properties — theme
   -------------------------------------------------------------------------- */
:root {
  --bg:            #001433;
  --bg-card:       #001f50;
  --bg-alt:        #000d22;
  --bg-nav:        rgba(0, 20, 51, 0.97);
  --text:          #d8eeff;
  --text-muted:    #6a8aaf;
  --accent:        #00a8e8;
  --accent-dim:    #0080b8;
  --accent-glow:   rgba(0, 168, 232, 0.25);
  --secondary:     #f5a623;
  --secondary-dim: #c4821a;
  --border:        #002060;
  --border-accent: #00a8e8;
  --ring-gold:     #f5a623;

  --font-heading: 'Fugaz One', Impact, 'Arial Black', sans-serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --nav-height:    64px;
  --container-max: 1200px;
  --radius:        4px;
}

/* --------------------------------------------------------------------------
   @keyframes
   -------------------------------------------------------------------------- */
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ring-gold-cycle {
  0%, 100% { --ring-gold: #f5a623; }
  33%       { --ring-gold: #ffd700; }
  66%       { --ring-gold: #e8900a; }
}

@keyframes speed-sweep {
  0%   { transform: translateX(-110%); opacity: 0.7; }
  100% { transform: translateX(110%);  opacity: 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ring-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes easter-egg-slide {
  0%   { transform: translateY(80px); opacity: 0; }
  15%  { transform: translateY(0);    opacity: 1; }
  85%  { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--secondary); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-style: italic;
}

h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); color: var(--accent); }
h3 { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--secondary); }
h4 { font-size: 1.1rem; color: var(--text); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  border-radius: var(--radius);
  transition: top 0.1s;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 500;
  background: var(--bg-nav);
  border-bottom: 2px solid var(--accent);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 0 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-brand:hover { color: var(--secondary); }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-link:hover,
.nav-link--active,
.nav-link[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 168, 232, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-style: italic;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    border-bottom: 2px solid var(--accent);
    padding: 1rem;
    gap: 0.5rem;
    justify-content: flex-start;
    display: none;
  }
  .nav-menu.nav-menu--open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { display: block; width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #000d22 0%, #001433 40%, #001f50 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
  padding-bottom: 5rem;
  animation: hero-fade-in 0.6s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(2px) brightness(0.6);
}

.hero-speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-speed-lines::before,
.hero-speed-lines::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 8px,
    rgba(0, 168, 232, 0.06) 8px,
    rgba(0, 168, 232, 0.06) 9px
  );
  animation: speed-sweep 2.4s ease-in-out infinite;
}
.hero-speed-lines::after {
  animation-delay: 1.2s;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  animation: slide-up 0.5s 0.1s ease both;
}

.hero-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  color: var(--text);
  text-shadow:
    0 0 40px var(--accent-glow),
    3px 3px 0 var(--accent-dim);
  line-height: 1;
  margin-bottom: 1rem;
  animation: slide-up 0.5s 0.2s ease both;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 0;
  animation: slide-up 0.5s 0.3s ease both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  animation: slide-up 0.5s 0.4s ease both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-stat .num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Ring Decoration (spinning gold ring)
   -------------------------------------------------------------------------- */
.ring-deco {
  width: 56px;
  height: 56px;
  border: 5px solid var(--ring-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation:
    ring-spin 3s linear infinite,
    ring-gold-cycle 2s ease-in-out infinite;
  position: relative;
  flex-shrink: 0;
}

.ring-deco::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(245, 166, 35, 0.3);
}

.ring-deco--sm {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.ring-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  animation: ring-gold-cycle 2s ease-in-out infinite;
  color: var(--ring-gold);
}

.ring-counter__label {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ring-counter__value {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--ring-gold);
}

/* --------------------------------------------------------------------------
   Section dividers (clip-path diagonal speed-slash)
   -------------------------------------------------------------------------- */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
  clip-path: polygon(0 1.5rem, 100% 0, 100% calc(100% - 1.5rem), 0 100%);
  padding: 5.5rem 0;
}

.section--speed-slash {
  position: relative;
  padding: 4rem 0;
}
.section--speed-slash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), transparent);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-left: 3px solid var(--secondary);
  padding-left: 0.6rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 70ch;
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal (.reveal / .is-visible)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: slide-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* --------------------------------------------------------------------------
   Trivia aside
   -------------------------------------------------------------------------- */
aside.trivia {
  background: rgba(0, 168, 232, 0.06);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
aside.trivia strong {
  color: var(--accent);
  font-family: var(--font-heading);
  font-style: italic;
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Dev quote blockquote
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  position: relative;
  background: rgba(245, 166, 35, 0.05);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
}
blockquote.dev-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--secondary);
  line-height: 0;
  position: absolute;
  top: 1.5rem;
  left: 0.5rem;
  opacity: 0.4;
}
blockquote.dev-quote p {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
blockquote.dev-quote footer {
  font-size: 0.82rem;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-style: normal;
  padding-left: 1.5rem;
}
blockquote.dev-quote footer::before { content: '— '; }

/* --------------------------------------------------------------------------
   Cards (general)
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Game Card (games.html)
   -------------------------------------------------------------------------- */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.game-card:hover { border-color: var(--accent); }

.game-card__art {
  width: 180px;
  min-height: 220px;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  padding: 1.5rem;
}

.game-card__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.game-card__year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.game-card__zones {
  margin-top: 0.75rem;
}
.game-card__zones h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  list-style: none;
}
.zone-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: rgba(0, 168, 232, 0.08);
  border: 1px solid rgba(0, 168, 232, 0.25);
  border-radius: 3px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .game-card {
    grid-template-columns: 1fr;
  }
  .game-card__art {
    width: 100%;
    min-height: 200px;
  }
}

/* --------------------------------------------------------------------------
   Platform badges
   -------------------------------------------------------------------------- */
.platform-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-style: italic;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.platform-badge--md  { background: #00306a; color: #80c8ff; border: 1px solid #0060a0; }
.platform-badge--gg  { background: #2a1a00; color: #f5a623; border: 1px solid #6a4000; }
.platform-badge--sms { background: #0a3000; color: #80ff80; border: 1px solid #204010; }
.platform-badge--scd { background: #1a0030; color: #c080ff; border: 1px solid #4a0080; }
.platform-badge--sat { background: #200010; color: #ff80b0; border: 1px solid #600030; }
.platform-badge--pc  { background: #202020; color: #d0d0d0; border: 1px solid #606060; }

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   People cards (people.html)
   -------------------------------------------------------------------------- */
.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4rem;
}

.person-card__header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}

.person-card__portrait {
  width: 220px;
  min-height: 260px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card__info {
  padding: 2rem;
}

.person-card__name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.person-card__role {
  font-size: 0.85rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: 1rem;
}

.person-card__bio {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.person-card__bio p { margin-bottom: 1rem; }
.person-card__bio p:last-child { margin-bottom: 0; }

.person-card__body {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.person-card__embed {
  margin-top: 1.5rem;
  aspect-ratio: 16/9;
}
.person-card__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .person-card__header {
    grid-template-columns: 1fr;
  }
  .person-card__portrait {
    width: 100%;
    min-height: 240px;
  }
}

/* --------------------------------------------------------------------------
   Screenshot strip (index.html)
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.screenshot-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}
.screenshot-strip img:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Character card (index.html)
   -------------------------------------------------------------------------- */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.character-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.character-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.character-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.character-card__name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.character-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Stat bar (index.html / history.html)
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-item__value {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   Video embed (videos.html)
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-card__embed {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
}
.video-card__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__body {
  padding: 0.85rem 1rem;
}

.video-card__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.video-card__tag {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Gallery grid (gallery.html)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  z-index: 1;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   History timeline (history.html)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--secondary));
}

.timeline-entry {
  position: relative;
  margin-bottom: 3.5rem;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px var(--accent-glow);
}

.timeline-year {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.timeline-image {
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.timeline-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Zone breakdown (flagship.html)
   -------------------------------------------------------------------------- */
.zone-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.zone-section__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.zone-section__body {
  padding: 1.25rem;
}
.zone-section__name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Easter egg toast
   -------------------------------------------------------------------------- */
.easter-egg-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 168, 232, 0.4);
  animation: easter-egg-slide 3s ease forwards;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Placeholder (if image fails to load)
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

/* --------------------------------------------------------------------------
   Inline embed (aspect-ratio wrapper)
   -------------------------------------------------------------------------- */
.embed-wrapper {
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Page header (non-hero pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

/* --------------------------------------------------------------------------
   Prose (long-form text sections)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 72ch;
}
.prose h2, .prose h3 { margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1.1rem; }

/* --------------------------------------------------------------------------
   Two-column layout
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Notable works list
   -------------------------------------------------------------------------- */
.works-list {
  list-style: none;
  padding: 0;
}
.works-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.works-list li:first-child { border-top: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}
footer a { color: var(--accent); }
