:root {
  /* Colors */
  --ink: #050505;
  --ink-light: #0a0a0a;
  --ink-medium: #111111;
  --deep-crimson: #7A0015;
  --red: #D90429;
  --hot-red: #FF334F;
  --red-glow: rgba(217, 4, 41, 0.15);
  --gold: #C8A45D;
  --gold-light: #E8D5A3;
  --cream: #F5F2EA;
  --cream-dim: rgba(245, 242, 234, 0.7);
  --cream-muted: rgba(245, 242, 234, 0.45);
  --gray-dark: #1a1a1a;
  --gray-medium: #333333;
  --gray-light: #666666;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.25rem);
  --space-xl: clamp(2.25rem, 4vw, 3.5rem);
  --space-2xl: clamp(3.5rem, 6vw, 5rem);
  --space-3xl: clamp(5rem, 8vw, 7.5rem);
  --space-4xl: clamp(7.5rem, 12vw, 10rem);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
  --duration-slower: 1200ms;
}

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

html {
  scroll-behavior: auto;
  font-size: 16px;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ink-light);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: var(--radius-full);
}

/* Film Grain Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 2px);
  background-size: 4px 4px;
  opacity: 0.03;
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-bg::before,
.ambient-bg::after,
.ambient-bg .orb-gold {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
}

.ambient-bg::before {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--deep-crimson);
  opacity: 0.25;
}

.ambient-bg::after {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--red);
  opacity: 0.15;
}

.ambient-bg .orb-gold {
  bottom: -20%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: var(--gold);
  opacity: 0.15;
}

/* Typography Classes */
.text-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.text-hero {
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.text-chapter-num {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
}

.text-section-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
}

.text-body {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.75;
  max-width: 680px;
}

.text-caption {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.text-hand {
  font-family: var(--font-hand);
  font-size: 1.5rem;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-gold {
  color: var(--gold);
}

.text-red {
  color: var(--red);
}

.text-muted {
  color: var(--cream-muted);
}

.text-center {
  text-align: center;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: 720px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: clamp(5rem, 12vh, 10rem) 0;
  position: relative;
}

.section--full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading Screen */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.loader__text {
  font-family: var(--font-display);
  font-size: var(--space-sm);
  letter-spacing: 0.3em;
  color: var(--cream-muted);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: var(--radius-full);
  transition: width 2s ease;
}

.loader--hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}

/* Cinematic Opening */
.opening {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.opening__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--cream-muted);
  opacity: 0;
  transform: translateY(20px);
}

.opening__subtitle {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--cream-dim);
  opacity: 0;
  margin: 1rem 0;
}

.opening__number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 900;
  line-height: 0.85;
  color: var(--cream);
  opacity: 0;
  transform: scale(0.9);
}

.opening__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: 0.15em;
  font-weight: 800;
  line-height: 0.9;
  opacity: 0;
}

.opening__level {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.3em;
  opacity: 0;
  margin-top: 1rem;
}

.opening__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0;
  transition: all 2s;
}

.opening__cta {
  border: 1px solid var(--cream-muted);
  padding: 1rem 3rem;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: all 0.4s;
  opacity: 0;
  border-radius: var(--radius-full);
}

.opening__cta:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
}

.opening--hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s;
}

/* Navigation */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.4s;
}

.nav--hidden {
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.nav__logo span {
  color: var(--red);
}

.nav__links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav__link {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav__link.active,
.nav__link:hover {
  color: var(--cream);
}

.nav__link.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--cream);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--cream-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu--open .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--cream);
}

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  right: 0;
  top: 0;
  width: 3px;
  height: 100vh;
  z-index: 700;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress__fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  border-radius: var(--radius-full);
  transition: height 0.1s;
}

/* Custom Cursor */
@media (hover: hover) {
  .cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
  }
  
  .cursor__dot {
    width: 8px;
    height: 8px;
    background: var(--cream);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.15s;
  }
  
  .cursor__ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--cream);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
    opacity: 0.4;
  }
  
  .cursor--hover .cursor__ring {
    width: 80px;
    height: 80px;
    border-color: var(--red);
    opacity: 0.6;
  }
  
  .cursor--hover .cursor__dot {
    transform: translate(-50%, -50%) scale(0.5);
  }
  
  .cursor__label {
    position: absolute;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    top: 15px;
    left: 15px;
  }
  
  .cursor--hover .cursor__label {
    opacity: 1;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  min-height: 80vh;
}

.hero__text {
  z-index: 2;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.hero__name {
  display: block;
  color: var(--red);
}

.hero__tagline {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--cream-dim);
  margin: 1.5rem 0;
}

.hero__meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.hero__cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--glass-border);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  text-decoration: none;
}

.hero__cta:hover {
  border-color: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
}

.hero__portrait {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 8s ease-out;
}

.hero__age {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  opacity: 0.3;
}

/* Chapter System */
.chapter {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) 0;
}

.chapter__number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
  color: rgba(217, 4, 41, 0.08);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.chapter__header {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.chapter__year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.5rem;
}

.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--cream);
}

.chapter__subtitle {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--cream-dim);
  margin-top: 0.5rem;
}

.chapter__content {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.75;
  max-width: 680px;
  color: var(--cream-dim);
}

.chapter__image {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.chapter__image img {
  width: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.2s var(--ease-out-expo);
}

.chapter__image--revealed img {
  transform: scale(1);
}

.chapter__quote {
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--cream-dim);
  margin: 2rem 0;
}

.chapter__read-more {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--red);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: all 0.3s;
  text-transform: uppercase;
}

/* Story Intro */
.story-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.story-intro__line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  margin: 0.25em 0;
}

.story-intro__sub {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.75;
  max-width: 500px;
  color: var(--cream-muted);
  opacity: 0;
  margin-top: 1rem;
}

.story-intro__cta {
  border: 1px solid var(--cream-muted);
  padding: 1rem 3rem;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: all 0.4s;
  opacity: 0;
  border-radius: var(--radius-full);
  margin-top: 2rem;
  text-transform: uppercase;
}

.story-intro__cta:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
}

/* Cinematic Moment */
.cinematic {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  position: relative;
}

.cinematic__big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 15rem);
  font-weight: 900;
  line-height: 0.85;
}

.cinematic__text {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.75;
  max-width: 600px;
  color: var(--cream-dim);
  margin: 1.5rem 0;
}

.cinematic__red {
  color: var(--red);
}

.cinematic__gold {
  color: var(--gold);
}

.cinematic__pause {
  height: 30vh;
}

/* Chapter Progress */
.chapter-progress {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.chapter-progress__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.chapter-progress__dot.active {
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

.chapter-progress__dot:hover::after {
  content: attr(data-label);
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
  background: var(--ink-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.chapter-progress__line {
  width: 1px;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
}

/* Book Archive */
.books {
  position: relative;
}

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

.book-card {
  position: relative;
  cursor: pointer;
  transition: all 0.4s;
}

.book-card__cover {
  aspect-ratio: 3 / 4;
  background: var(--gray-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  color: var(--cream);
}

.book-card:hover {
  transform: translateY(-8px);
}

.book-card:hover .book-card__cover {
  box-shadow: 0 20px 60px rgba(217, 4, 41, 0.15);
}

/* Glass Panel */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass--red {
  background: rgba(217, 4, 41, 0.05);
  border-color: rgba(217, 4, 41, 0.15);
}

.glass--gold {
  background: rgba(200, 164, 93, 0.05);
  border-color: rgba(200, 164, 93, 0.15);
}

/* Message Wall */
.message-wall {
  columns: 3;
  column-gap: 1.5rem;
}

.message-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s;
}

.message-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 4, 41, 0.2);
}

.message-card__text {
  font-size: 1rem;
  color: var(--cream-dim);
  line-height: 1.7;
  font-style: italic;
}

.message-card__author {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.message-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  color: var(--cream-muted);
}

.message-card--featured {
  border-color: rgba(200, 164, 93, 0.3);
  background: rgba(200, 164, 93, 0.03);
}

/* Message Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--red);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select option {
  background: var(--ink);
  color: var(--cream);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-top: 0.25rem;
}

/* Quiz */
.quiz {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.quiz__progress {
  margin-bottom: 2rem;
}

.quiz__progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out-expo);
}

.quiz__progress-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.5rem;
}

.quiz__question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--cream);
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.quiz__option {
  padding: 1rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s;
  text-align: left;
}

.quiz__option:hover {
  border-color: rgba(217, 4, 41, 0.4);
  background: rgba(217, 4, 41, 0.05);
  color: var(--cream);
  transform: translateX(4px);
}

.quiz__option--selected {
  border-color: var(--red);
  background: rgba(217, 4, 41, 0.1);
  color: var(--cream);
}

.quiz__option--correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.quiz__option--wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.quiz__result {
  text-align: center;
}

.quiz__score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.quiz__message {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--cream-dim);
  margin: 1rem 0;
}

/* Gift Room */
.gifts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gift-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.gift-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.gift-card--cash::before {
  background: radial-gradient(circle at center, rgba(217, 4, 41, 0.1) 0%, transparent 70%);
}

.gift-card--physical::before {
  background: radial-gradient(circle at center, rgba(200, 164, 93, 0.1) 0%, transparent 70%);
}

.gift-card--wishlist::before {
  /* None, use glass */
}

.gift-card:hover::before {
  opacity: 1;
}

.gift-card:hover {
  transform: translateY(-6px);
}

.gift-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gift-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.gift-card__text {
  font-size: 0.9rem;
  color: var(--cream-muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.modal--open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
}

.modal__content {
  position: relative;
  z-index: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out-expo);
}

.modal--open .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--cream-muted);
  transition: all 0.3s;
}

.modal__close:hover {
  color: var(--cream);
  border-color: var(--red);
}

.modal__header {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.modal__subheader {
  font-size: 0.9rem;
  color: var(--cream-muted);
  margin-bottom: 1.5rem;
}

/* Gallery */
.gallery__strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
}

.gallery__strip::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 auto;
  width: clamp(250px, 30vw, 350px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__masonry {
  columns: 3;
  column-gap: 1rem;
}

.gallery__masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery__masonry-item img {
  width: 100%;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(5, 5, 5, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.lightbox--active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--cream-muted);
  transition: all 0.3s;
}

.lightbox__close:hover {
  color: var(--cream);
  border-color: var(--red);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: opacity 0.3s;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* Audio Control */
.audio-control {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s;
}

.audio-control:hover {
  border-color: rgba(217, 4, 41, 0.3);
}

.audio-control__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.audio-control__bar {
  width: 2px;
  background: var(--cream-muted);
  border-radius: 1px;
  transition: height 0.2s;
  height: 4px;
}

.audio-control--playing .audio-control__bar {
  background: var(--red);
  animation: waveform 0.8s ease-in-out infinite alternate;
}

.audio-control--playing .audio-control__bar:nth-child(1) {
  animation-name: waveform-1;
}

.audio-control--playing .audio-control__bar:nth-child(2) {
  animation-name: waveform-2;
  animation-delay: 0.2s;
}

.audio-control--playing .audio-control__bar:nth-child(3) {
  animation-name: waveform-3;
  animation-delay: 0.4s;
}

.audio-control__label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* Finale */
.finale {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.finale__line {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.75;
  color: var(--cream-muted);
  opacity: 0;
  margin: 0.5rem 0;
}

.finale__number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 18rem);
  font-weight: 900;
  line-height: 0.85;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
}

.finale__greeting {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
  opacity: 0;
  margin: 1rem 0;
}

.finale__name {
  color: var(--red);
}

.finale__message {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.75;
  max-width: 680px;
  margin: 2rem auto;
  color: var(--cream-dim);
  opacity: 0;
}

.finale__message p {
  margin-bottom: 1.25rem;
}

.finale__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.btn--primary:hover {
  background: transparent;
  color: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--glass-border);
}

.btn--secondary:hover {
  border-color: var(--cream);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--cream-muted);
}

.btn--ghost:hover {
  color: var(--cream);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
}

.btn--large {
  padding: 1.1rem 3rem;
  font-size: 0.8rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Success/Error States */
.success-state {
  text-align: center;
  padding: 2rem;
}

.success-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-state__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.success-state__text {
  color: var(--cream-muted);
}

.error-state {
  text-align: center;
  padding: 1rem;
  color: #ef4444;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--cream);
  z-index: 9500;
  opacity: 0;
  transition: all 0.4s;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Testimonial */
.testimonial {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial__quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.8;
}

.testimonial__author {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--cream-muted);
}

.testimonial__role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-light);
}

/* Impact Network */
.network {
  position: relative;
  min-height: 500px;
}

.network__canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.network__label {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s;
}

/* Philosophy Quotes */
.quote-moment {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.quote-moment__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 800px;
  color: var(--cream);
  line-height: 1.3;
}

.quote-moment__attr {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 1rem;
}

/* TAS Section */
.tas {
  text-align: center;
}

.tas__logo {
  max-width: 140px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tas__logo img {
  width: 100%;
  height: auto;
}

.tas__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.tas__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--cream-muted);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.social-link:hover {
  border-color: var(--red);
  color: var(--cream);
  transform: translateY(-3px);
}

/* Personality/Man Section */
.personality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.personality-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.personality-item__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.personality-item__text {
  font-size: 0.9rem;
  color: var(--cream-dim);
}

/* Utility Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes waveform-1 {
  0% { height: 4px; }
  100% { height: 16px; }
}

@keyframes waveform-2 {
  0% { height: 8px; }
  100% { height: 12px; }
}

@keyframes waveform-3 {
  0% { height: 6px; }
  100% { height: 20px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .nav, .cursor, .scroll-progress, .audio-control, .confetti-canvas, .loader, .opening {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
