/* McDonald's Tribute — Industry-Grade Futuristic Theme */

:root {
  --mcd-yellow: #FFC72C;
  --mcd-red: #DA291C;
  --bg: #060606;
  --bg-mid: #0b0b0b;
  --bg-card: #0f0f0f;
  --text: #ECECEC;
  --text-secondary: #909090;
  --border: rgba(255, 199, 44, 0.12);
  --border-red: rgba(218, 41, 28, 0.28);
  --yellow-glow: rgba(255, 199, 44, 0.38);
  --grid-line: rgba(255, 199, 44, 0.055);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 70px),
    repeating-linear-gradient(90deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 70px);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
.tribute-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 52px;
  background: rgba(6, 6, 6, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-red);
}

.tribute-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mcd-yellow);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
  transition: color 0.2s, gap 0.2s;
}

.tribute-nav-back:hover {
  color: #fff;
  gap: 0.65rem;
}

.tribute-nav-back svg { flex-shrink: 0; }

.tribute-nav-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--mcd-red);
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
}

/* ── HERO ── */
.tribute-hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tribute-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/mcd-tribute.png') center center / cover no-repeat;
  filter: brightness(0.28) saturate(1.4);
  z-index: 1;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.09) translateY(-2.5%); }
}

.tribute-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  animation: scanmove 12s linear infinite;
}

@keyframes scanmove {
  from { background-position: 0 0; }
  to   { background-position: 0 400px; }
}

.tribute-hero-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--mcd-red), var(--mcd-yellow), var(--mcd-red), transparent);
  z-index: 4;
  animation: neon-pulse 2.6s ease-in-out infinite;
}

.tribute-hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem 1.5rem;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Location badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.9rem;
  border: 1px solid rgba(218, 41, 28, 0.4);
  background: rgba(218, 41, 28, 0.08);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Courier New', monospace;
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mcd-red);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(218, 41, 28, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(218, 41, 28, 0); }
}

/* Glitch headline */
.hero-glitch {
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--mcd-yellow);
  text-transform: uppercase;
  font-family: system-ui, -apple-system, sans-serif;
  text-shadow:
    0 0 25px var(--yellow-glow),
    0 0 70px var(--yellow-glow),
    0 0 140px rgba(255, 199, 44, 0.15);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.hero-glitch::before,
.hero-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  letter-spacing: inherit;
}

.hero-glitch.glitch-active::before {
  color: var(--mcd-red);
  animation: glitch-before 0.28s steps(2) forwards;
  clip-path: polygon(0 18%, 100% 18%, 100% 44%, 0 44%);
}

.hero-glitch.glitch-active::after {
  color: #00eeff;
  animation: glitch-after 0.28s steps(2) forwards;
  clip-path: polygon(0 56%, 100% 56%, 100% 82%, 0 82%);
}

@keyframes glitch-before {
  0%   { opacity: 1; transform: translateX(-6px); }
  50%  { opacity: 1; transform: translateX(6px); }
  100% { opacity: 0; transform: translateX(0); }
}

@keyframes glitch-after {
  0%   { opacity: 1; transform: translateX(6px); }
  50%  { opacity: 1; transform: translateX(-6px); }
  100% { opacity: 0; transform: translateX(0); }
}

/* Typewriter */
.hero-typewriter-wrap {
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  padding: 0 1rem;
}

.hero-typewriter {
  font-size: clamp(0.88rem, 2vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--text);
  font-family: 'Courier New', monospace;
}

.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--mcd-yellow);
  margin-left: 3px;
  vertical-align: text-bottom;
  box-shadow: 0 0 8px var(--mcd-yellow);
  animation: blink 0.6s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sublabel {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: 'Courier New', monospace;
  margin-top: 1.5rem;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.4;
  animation: cue-bob 2.4s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.hero-scroll-cue span {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--mcd-yellow));
}

.hero-scroll-cue p {
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mcd-yellow);
  font-family: 'Courier New', monospace;
}

/* ── IDENTITY STRIP ── */
.identity-strip {
  display: flex;
  align-items: stretch;
  background: var(--bg-mid);
  border-top: 1px solid var(--border-red);
  border-bottom: 1px solid var(--border-red);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.identity-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.75rem;
}

.identity-divider {
  width: 1px;
  background: var(--border-red);
  flex-shrink: 0;
  align-self: stretch;
}

.identity-label {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mcd-red);
  font-family: 'Courier New', monospace;
}

.identity-value {
  font-size: 0.82rem;
  color: var(--text);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
}

.identity-active {
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.identity-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot-green 2.4s ease-in-out infinite;
}

@keyframes pulse-dot-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* ── SECTIONS ── */
.tribute-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  border-top: 1px solid rgba(255, 199, 44, 0.06);
}

.tribute-container {
  max-width: 920px;
  margin: 0 auto;
}

/* Chapter mark */
.chapter-mark {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.chapter-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 199, 44, 0.25));
}

.chapter-line-right {
  background: linear-gradient(to left, transparent, rgba(255, 199, 44, 0.25));
}

.chapter-glyph {
  font-size: 1.6rem;
  font-weight: 900;
  font-style: italic;
  color: var(--mcd-yellow);
  text-shadow: 0 0 22px var(--yellow-glow);
  flex-shrink: 0;
  line-height: 1;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Opening text */
.opening-text {
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  line-height: 1.8;
  color: var(--text);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.opening-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.opening-text em {
  color: var(--mcd-yellow);
  font-style: normal;
  text-shadow: 0 0 16px var(--yellow-glow);
}

/* Section header */
.section-header { margin-bottom: 3.5rem; }

.section-tag {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mcd-red);
  font-family: 'Courier New', monospace;
  margin-bottom: 0.75rem;
}

.section-display {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--mcd-yellow);
  line-height: 1.1;
  text-shadow: 0 0 50px rgba(255, 199, 44, 0.18);
  letter-spacing: -0.01em;
}

/* ── SECOND BANNER ── */
.banner-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.banner-img {
  position: absolute;
  inset: -12% 0;
  background: url('/assets/mcd-tribute-2.png') center center / cover no-repeat;
  filter: brightness(0.38) saturate(1.2);
  will-change: transform;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(6, 6, 6, 0.55) 0%,
    rgba(6, 6, 6, 0.1) 40%,
    rgba(6, 6, 6, 0.1) 60%,
    rgba(6, 6, 6, 0.7) 100%
  );
}

.banner-quote {
  text-align: center;
  padding: 2.5rem;
  max-width: 820px;
}

.banner-quote-mark {
  display: block;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.6;
  color: var(--mcd-yellow);
  opacity: 0.22;
  font-family: Georgia, 'Times New Roman', serif;
  text-shadow: 0 0 60px rgba(255, 199, 44, 0.3);
  margin-bottom: 0.5rem;
  user-select: none;
}

.banner-quote blockquote {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1.45;
  color: #fff;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
  quotes: none;
}

.banner-quote cite {
  display: block;
  margin-top: 1.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 199, 44, 0.55);
  font-family: 'Courier New', monospace;
  font-style: normal;
}

/* ── PILLARS ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 199, 44, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease, border-color 0.3s, background 0.3s;
}

.pillar-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card:nth-child(2) { transition-delay: 0.13s; }
.pillar-card:nth-child(3) { transition-delay: 0.26s; }

.pillar-card:hover {
  border-color: rgba(255, 199, 44, 0.3);
  background: rgba(255, 199, 44, 0.03);
}

.pillar-card-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--mcd-yellow), var(--mcd-red));
}

.pillar-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 199, 44, 0.055);
  line-height: 1;
  font-family: 'Courier New', monospace;
  user-select: none;
  pointer-events: none;
}

.pillar-title {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mcd-yellow);
  margin-bottom: 1.1rem;
  font-family: 'Courier New', monospace;
}

.pillar-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #a8a8a8;
}

/* ── NUMBERS SECTION ── */
.numbers-section {
  background: var(--bg-mid);
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  border-top: 1px solid rgba(255, 199, 44, 0.06);
  border-bottom: 1px solid rgba(255, 199, 44, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.stat-card {
  padding: 3rem 1.75rem;
  text-align: center;
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:last-child { border-right: none; }

.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }

.stat-card:hover { background: rgba(255, 199, 44, 0.03); }

.stat-number {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--mcd-yellow);
  text-shadow: 0 0 35px rgba(255, 199, 44, 0.4);
  font-family: 'Courier New', monospace;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-unit {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mcd-red);
  font-family: 'Courier New', monospace;
  margin-bottom: 1.25rem;
}

.stat-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── OUTRO ── */
.tribute-outro {
  position: relative;
  padding: 10rem 2rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent, rgba(218, 41, 28, 0.05) 50%, transparent);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.outro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.outro-tag {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mcd-red);
  font-family: 'Courier New', monospace;
}

.outro-heading {
  font-size: clamp(1.6rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--mcd-yellow);
  text-shadow:
    0 0 25px var(--yellow-glow),
    0 0 70px rgba(255, 199, 44, 0.22);
  animation: letter-expand 8s ease-in-out infinite alternate;
}

@keyframes letter-expand {
  from { letter-spacing: 0.06em; }
  to   { letter-spacing: 0.42em; }
}

.outro-sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  margin-top: 0;
}

.outro-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem;
  border: 1px solid rgba(255, 199, 44, 0.35);
  color: var(--mcd-yellow);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.outro-cta:hover {
  background: var(--mcd-yellow);
  border-color: var(--mcd-yellow);
  color: #000;
}

/* ── FOOTER ── */
.tribute-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255, 199, 44, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tribute-footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.tribute-footer-copy a {
  color: var(--mcd-yellow);
  text-decoration: none;
}

.tribute-footer-copy a:hover { text-shadow: 0 0 8px var(--mcd-yellow); }

.tribute-footer-nav {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #444;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tribute-footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.tribute-footer-nav a[aria-current="page"] { color: var(--mcd-yellow); }
.tribute-footer-nav a:hover { color: var(--mcd-yellow); }

.footer-nav-upcoming em {
  font-style: italic;
  color: #3a3a3a;
}

/* ── KEYFRAMES (utilities) ── */
@keyframes neon-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-card:nth-child(1),
  .stat-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-card:nth-child(3),
  .stat-card:nth-child(4) { border-bottom: none; }
}

@media (max-width: 600px) {
  .tribute-nav { padding: 0 1rem; }
  .tribute-nav-label { display: none; }
  .tribute-section { padding: 4rem 1.25rem; }
  .numbers-section { padding: 4rem 1.25rem; }
  .hero-glitch { letter-spacing: 0.18em; }
  .identity-strip { flex-wrap: wrap; }
  .identity-item { flex: 1 1 50%; min-width: 140px; }
  .identity-divider { display: none; }
  .identity-strip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-red);
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tribute-outro { padding: 7rem 1.25rem; }
  .outro-heading { letter-spacing: 0.04em; }
  .tribute-footer-nav { flex-direction: column; gap: 0.45rem; }
  .footer-nav-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tribute-hero-bg,
  .tribute-hero::after,
  .tribute-hero-line,
  .hero-badge-dot,
  .identity-pulse,
  .hero-scroll-cue,
  .hero-glitch,
  .hero-cursor,
  .outro-heading {
    animation: none;
  }
}
