:root {
  --cursor-size: 10px;
  --cursor-outline-size: 40px;
  --preloader-bg: #0d0d0d;
}

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

/* Base custom selection and smooth scroll */
html {
  scroll-behavior: auto; /* Changed to auto because GSAP will orchestrate smooth scrolling if needed, but smooth here conflicts sometimes with ScrollTrigger pinning */
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: transparent;
  color: #ffffff;
  line-height: 1.6;
  opacity: 0; /* Preloader will fade this in */
  isolation: isolate;
}

.site-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.5);
  z-index: -2;
  pointer-events: none;
}

.site-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.86) 0%, rgba(4, 4, 4, 0.58) 42%, rgba(4, 4, 4, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 18% 26%, rgba(230, 43, 30, 0.14), transparent 24%);
}

/* Premium Glowing Text Selection */
::selection {
  background-color: rgba(230, 43, 30, 0.4);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

body.loaded {
  opacity: 1;
}

/* =======================================
   CUSTOM CURSOR
======================================= */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  background-color: #e62b1e;
}

.cursor-outline {
  width: var(--cursor-outline-size);
  height: var(--cursor-outline-size);
  border: 1px solid rgba(230, 43, 30, 0.4);
  background-color: rgba(230, 43, 30, 0.05);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(230, 43, 30, 0.2);
  border-color: transparent;
  mix-blend-mode: exclusion;
}

/* =======================================
   PRELOADER
======================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--preloader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.preloader-logo {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(230, 43, 30, 0.6);
  animation: spin 3s linear infinite;
}

.preloader-x {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e62b1e;
}

.preloader-text {
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0.8;
}

.preloader-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #e62b1e;
}

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

/* =======================================
   AMBIENT ORB
======================================= */
.ambient-orb {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,43,30,0.1) 0%, rgba(230,43,30,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  will-change: transform;
}

/* =======================================
   TEXT REVEAL UTILS (SplitType)
======================================= */
.line, .word, .char {
  overflow: hidden; /* For smooth text reveal masking */
}

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 1000;
  background: linear-gradient(90deg, #e62b1e, #ff7a2f, #ffffff);
  box-shadow: 0 0 18px rgba(230, 43, 30, 0.35);
}

a {
  text-decoration: none;
  color: inherit;
}

.hero {
  min-height: 100vh;
  padding: 24px 8%;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.9) 0%, rgba(4, 4, 4, 0.64) 42%, rgba(4, 4, 4, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 18% 26%, rgba(230, 43, 30, 0.16), transparent 22%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 78%);
  opacity: 0.22;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.nav h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: logo-intro 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 18px rgba(230, 43, 30, 0.16);
}

.brand-mark-x {
  position: relative;
  z-index: 1;
  color: #e62b1e;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.brand-logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #e62b1e, transparent 82%);
  transform: scaleX(0);
  transform-origin: left;
  animation: logo-line 0.8s ease 0.9s forwards;
}

.nav h2 span {
  color: #e62b1e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-links a.is-active {
  color: #ffffff;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: #e62b1e;
}

.nav-btn,
.btn {
  position: relative;
  overflow: hidden;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
  display: inline-block;
}

.nav-btn::before,
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transition: left 0.65s ease;
}

.nav-btn:hover::before,
.btn:hover::before {
  left: 145%;
}

.nav-btn,
.btn.primary {
  background: #e62b1e;
  color: white;
}

.nav-btn:hover,
.btn.primary:hover {
  background: #ff3b2f;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(230, 43, 30, 0.28);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.02);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-panel {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
}

.hero-content {
  max-width: 100%;
  padding: 34px 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.48));
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero-art-panel {
  position: relative;
  z-index: 1;
}

.hero-art-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 70% 24%, rgba(230, 43, 30, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(12, 12, 12, 0.94), rgba(6, 6, 6, 0.72));
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.34);
  animation: hero-art-float 5.8s ease-in-out infinite;
}

.hero-art-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.hero-art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.04) contrast(1.04);
}

.hero-art-placeholder {
  background-image:
    linear-gradient(180deg, rgba(4, 4, 4, 0.08) 0%, rgba(4, 4, 4, 0.48) 100%),
    url("media/tedx_hero_art.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-art-glow {
  position: absolute;
  inset: auto -18% -24% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 43, 30, 0.36), transparent 68%);
  filter: blur(10px);
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}

.hero-art-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8, 8, 8, 0.76), rgba(8, 8, 8, 0.36));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-art-label {
  color: #ff5e52;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-art-copy h3 {
  font-size: 1.6rem;
  line-height: 1.15;
  max-width: 250px;
}

.eyebrow {
  color: #e62b1e;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  animation: fade-up 0.8s ease both;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 18px;
  animation: fade-up 1s ease both;
}

.tagline {
  font-size: 1.2rem;
  color: #dedede;
  margin-bottom: 30px;
  max-width: 620px;
  animation: fade-up 1.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 1.4s ease both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  animation: fade-up 1.55s ease both;
}

.hero-stat {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-stat strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.hero-stat span {
  color: #bebebe;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  animation: fade-up 1.6s ease both;
}

.brandmark-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brandmark-logo {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brandmark-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle, rgba(230, 43, 30, 0.2), transparent 72%);
}

.brandmark-logo-x {
  position: relative;
  z-index: 1;
  color: #ff3b2f;
  font-size: 1.1rem;
  font-weight: 700;
}

.brandmark-copy p {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brandmark-copy span {
  color: #b1b1b1;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 36px;
  margin-bottom: 8px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(8, 8, 8, 0.55), rgba(18, 18, 18, 0.28));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.event-strip {
  overflow: hidden;
}

.event-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 16px;
  animation: marquee 24s linear infinite;
}

.event-bar:hover .event-track {
  animation-play-state: paused;
}

.event-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.event-pill-label {
  color: rgba(230, 43, 30, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-pill strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  font-weight: 600;
}

section {
  padding: clamp(42px, 6vw, 64px) 8%;
  scroll-margin-top: 96px;
}

section h2 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}

.about {
  padding-top: clamp(52px, 8vw, 76px);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-label {
  color: #e62b1e;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-copy {
  max-width: 680px;
  color: #b7b7b7;
  font-size: 1.02rem;
}

.about p,
.tickets p {
  max-width: 750px;
  color: #cfcfcf;
  margin-bottom: 16px;
}

.speakers {
  padding-top: clamp(58px, 9vw, 96px);
}

.speakers-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.speakers-carousel {
  position: relative;
  overflow: hidden;
  margin: 40px 0 60px;
}

.speakers-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.speakers-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.speaker-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(12, 12, 12, 0.6));
  overflow: hidden;
  transition: all 0.35s ease;
}

.speaker-card:hover {
  border-color: #e62b1e;
  box-shadow: 0 16px 40px rgba(230, 43, 30, 0.15);
  transform: translateY(-6px);
}

.speaker-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 220px;
}

.speaker-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.speaker-card:hover .speaker-card-image img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.speaker-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.speaker-card-content h3 {
  font-size: 1.7rem;
  color: #ff5e52;
  margin-bottom: 8px;
  font-weight: 700;
}

.speaker-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.speaker-card-content span {
  color: #b8b8b8;
  font-size: 1.02rem;
  line-height: 1.6;
}

.speakers-controls {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.speakers-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #e62b1e;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speakers-arrow:hover {
  background: #ff3b2f;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 43, 30, 0.2);
}

.speakers-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.speakers-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.25s ease;
}

.speakers-dot.active {
  background: #e62b1e;
  transform: scaleX(1.3);
}

.card {
  position: relative;
  background: linear-gradient(180deg, #181818, #121212);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #e62b1e;
  box-shadow: 0 20px 38px rgba(230, 43, 30, 0.12);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.speaker-media {
  position: relative;
  overflow: hidden;
}

.speaker-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.speaker-photo {
  width: 100%;
  height: 260px;
  display: block;
  transition: transform 0.55s ease, filter 0.4s ease;
  object-fit: cover;
  object-position: center 26%;
}

.speaker-photo-arjun {
  object-position: center 22%;
}

.speaker-photo-fathima {
  object-position: center 20%;
}

.speaker-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(230, 43, 30, 0.92);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(230, 43, 30, 0.18);
}

.card:hover .speaker-photo {
  transform: scale(1.05);
  filter: brightness(1.04);
}

.card h3 {
  font-size: 1.3rem;
  margin: 18px 18px 8px;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: #ffffff;
}

.card p {
  color: #d0d0d0;
  margin: 0 18px 6px;
}

.card span {
  display: block;
  color: #9f9f9f;
  margin: 0 18px 20px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.visual-story {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(230, 43, 30, 0.12), transparent 24%),
    radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #090909, #050505);
}

.visual-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  pointer-events: none;
}

.visual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.visual-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.3);
  isolation: isolate;
  transform: translateY(0);
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease;
  will-change: transform, opacity;
}

.visual-card-large {
  min-height: 420px;
}

.visual-card-tall {
  min-height: 420px;
  grid-row: span 2;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.75s ease, filter 0.45s ease;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.22) 52%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(135deg, rgba(230, 43, 30, 0.24), transparent 46%);
  z-index: 0;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -34% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 43, 30, 0.28), transparent 68%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 1;
}

.visual-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(230, 43, 30, 0.6);
  box-shadow: 0 25px 50px rgba(230, 43, 30, 0.16), 0 0 20px rgba(230, 43, 30, 0.1);
}

.visual-card:hover img {
  transform: scale(1.1);
  filter: saturate(1.05);
}

.visual-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.visual-card-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.visual-card-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(230, 43, 30, 0.88);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-card-copy h3 {
  max-width: 280px;
  font-size: 1.7rem;
  line-height: 1.15;
}

.visual-reel {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.visual-reel-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  animation: reel-scroll 18s linear infinite;
}

.visual-reel-track span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f1f1f1;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a1a, #111111);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px;
  min-height: 220px;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 43, 30, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card::before {
  content: "";
  position: absolute;
  inset: auto -25% -85% auto;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(230, 43, 30, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.highlight-card:hover {
  transform: translateY(-8px);
  border-color: #e62b1e;
  box-shadow: 0 16px 32px rgba(230, 43, 30, 0.12);
}

.highlight-card:hover::after {
  opacity: 1;
}

.highlight-card:hover::before {
  opacity: 1;
  transform: scale(1.18);
}

.highlight-kicker {
  color: rgba(230, 43, 30, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

.highlight-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.highlight-card p:last-child {
  color: #bcbcbc;
  max-width: 320px;
}

.journey-section {
  padding: 96px 8%;
  background:
    radial-gradient(circle at 10% 14%, rgba(230, 43, 30, 0.12), transparent 24%),
    radial-gradient(circle at 92% 80%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(165deg, #040404, #0a0a0a 45%, #070707);
  position: relative;
  border-top: 1px solid rgba(230, 43, 30, 0.2);
  border-bottom: 1px solid rgba(230, 43, 30, 0.12);
}

.journey-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(230, 43, 30, 0.08), transparent 20%),
    radial-gradient(circle at 85% 78%, rgba(255, 255, 255, 0.04), transparent 18%);
  pointer-events: none;
}

.journey-heading {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.journey-heading h2 {
  margin-bottom: 0;
  font-size: 4rem;
  text-transform: uppercase;
}

.journey-heading h2 span {
  color: #e62b1e;
}

.journey-eye {
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  --eye-rotation: 0deg;
  --glow-intensity: 0.8;
  --pulse-scale: 1;
}

.journey-eye-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  will-change: transform;
}

.journey-eye-ring-outer {
  animation: spin 18s linear infinite;
}

.journey-eye-ring-inner {
  inset: 18px;
  border-style: solid;
  border-color: rgba(230, 43, 30, 0.22);
  animation: spin-reverse 12s linear infinite;
}

.journey-eye-core {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #141414 0 18px, #ffffff 19px 30px, #111111 31px 42px, transparent 43px),
    radial-gradient(circle at 50% 50%, rgba(230, 43, 30, 0.35), rgba(230, 43, 30, 0.03) 70%);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 40px calc(26px * var(--glow-intensity)) rgba(230, 43, 30, calc(0.24 * var(--glow-intensity))),
    0 0 80px calc(48px * var(--glow-intensity)) rgba(230, 43, 30, calc(0.12 * var(--glow-intensity)));
  transform: scale(var(--pulse-scale));
  transition: transform 0.08s ease-out;
}

.journey-controls {
  display: flex;
  gap: 18px;
}

.journey-arrow {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #e62b1e;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.journey-arrow:hover {
  background: #ff3b2f;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(230, 43, 30, 0.16);
}

.journey-arrow.is-paused {
  background: #ffffff;
  color: #111111;
}

.journey-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 56px;
  padding-top: 32px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.32);
}

.journey-copy {
  position: relative;
  min-height: 370px;
  padding: 10px 6px 0;
}

.journey-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.journey-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.journey-slide h3 {
  color: #ff3b2f;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(230, 43, 30, 0.2);
}

.journey-year {
  color: #767e90;
  font-size: 3rem;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.journey-slide p:last-child {
  color: #a8aebb;
  font-size: 1.04rem;
  line-height: 1.72;
  max-width: 580px;
}

.journey-visuals {
  position: relative;
  min-height: 400px;
}

.journey-image {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
}

.journey-image.active {
  opacity: 1;
  transform: scale(1);
}

.journey-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
}

.journey-image-2019 {
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.05)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1200&q=80");
}

.journey-image-2021 {
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.32), rgba(10, 10, 10, 0.04)),
    url("https://images.unsplash.com/photo-1528605248644-14dd04022da1?auto=format&fit=crop&w=1200&q=80");
}

.journey-image-2022 {
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.32), rgba(10, 10, 10, 0.04)),
    url("https://images.unsplash.com/photo-1505373877841-8d25f7d46678?auto=format&fit=crop&w=1200&q=80");
}

.journey-image-2023 {
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.05)),
    url("media/journey_2023.png");
}

.visual-image-future {
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.1)),
    url("media/visual_1.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
}

.journey-image-badge,
.journey-image-caption {
  position: absolute;
  left: 22px;
  z-index: 1;
}

.journey-image-badge {
  top: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(230, 43, 30, 0.9);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.journey-image-caption {
  bottom: 24px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
}

.journey-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.journey-metrics {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journey-metric-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(230, 43, 30, 0.1), rgba(255, 255, 255, 0.02));
  padding: 16px 18px;
  text-align: center;
}

.journey-metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.journey-metric-label {
  margin: 0;
  color: #a8aebb;
  font-size: 0.9rem;
}

.journey-dot {
  width: 30px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.journey-dot.active {
  background: #e62b1e;
  transform: scaleX(1.2);
}

.hero-stat {
  animation: stat-float 5.5s ease-in-out infinite;
}

.hero-stat:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-stat:nth-child(3) {
  animation-delay: 1s;
}

.journey-metric-card {
  animation: fade-up 0.7s ease both;
}

.journey-metric-card:nth-child(2) {
  animation-delay: 0.12s;
}

.journey-metric-card:nth-child(3) {
  animation-delay: 0.24s;
}

.journey-section.is-paused .journey-arrow {
  background: #ffffff;
  color: #111111;
}

.tickets {
  background:
    linear-gradient(180deg, rgba(230, 43, 30, 0.08), rgba(230, 43, 30, 0.02)),
    linear-gradient(145deg, #161010, #0d0d0d);
}

.tickets-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.tickets-copy h2 {
  margin-bottom: 18px;
}

.tickets-copy p:last-child {
  margin-bottom: 0;
}

.tickets-action {
  min-width: 220px;
  text-align: center;
}

.tickets-note {
  margin-top: 16px;
  color: #9f9f9f;
  font-size: 0.92rem;
}

.contact-section {
  padding: 88px 8%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)),
    #080808;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.contact-subtitle {
  max-width: 520px;
  color: #b8b8b8;
  margin-bottom: 28px;
}

.contact-cards {
  display: grid;
  gap: 22px;
}

.contact-card,
.location-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.contact-card {
  padding: 24px 26px;
}

.contact-card h3 {
  color: #ff2a2a;
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact-card p {
  color: #bcbcbc;
  margin-bottom: 18px;
}

.contact-card a {
  display: inline-block;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.35rem;
}

.location-panel {
  padding: 30px;
}

.location-text {
  color: #e8e8e8;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.location-note {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.map-frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111111;
  min-height: 320px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.map-actions {
  margin-top: 18px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: #e62b1e;
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.map-link:hover {
  background: #ff3b2f;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(230, 43, 30, 0.2);
}

.social-section {
  padding: 0 8% 88px;
  background: radial-gradient(circle at top left, rgba(230, 43, 30, 0.08), transparent 40%), #080808;
}

.social-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.social-copy p:last-child {
  max-width: 560px;
  color: #d2d2d2;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e62b1e, #ff5d2f);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(230, 43, 30, 0.22);
  filter: saturate(1.1);
}

@media (max-width: 1200px) {
  .social-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .social-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .social-link {
    min-width: 140px;
    flex: 1 1 45%;
  }
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(230, 43, 30, 0.22);
}

.social-link-secondary {
  background: linear-gradient(135deg, #202020, #111111);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link-secondary:hover {
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.08);
}

:focus-visible {
  outline: 2px solid #ff4a3d;
  outline-offset: 3px;
}

@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;
  }
}

/* =======================================
   HAMBURGER MENU (Mobile Nav)
======================================= */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 50;
  padding: 0;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 4px 0;
  transition: all 0.3s ease;
  display: block;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* =======================================
   FAQ SECTION
======================================= */
.faq-section {
  padding-top: 72px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1000px;
}

.faq-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.55), rgba(10, 10, 10, 0.35));
  cursor: pointer;
  transition: all 0.35s ease;
}

.faq-item:hover {
  border-color: #e62b1e;
  background: linear-gradient(145deg, rgba(30, 20, 20, 0.65), rgba(15, 10, 10, 0.45));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #e62b1e;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  color: white;
  font-weight: bold;
  margin-right: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  content: "−";
  background: #ff3b2f;
}

.faq-item p {
  color: #b8b8b8;
  margin-top: 16px;
  line-height: 1.8;
}

.faq-item p a {
  color: #e62b1e;
  transition: color 0.25s ease;
}

.faq-item p a:hover {
  color: #ff3b2f;
}

/* =======================================
   AGENDA SECTION
======================================= */
.agenda-section {
  padding-top: 96px;
  background: radial-gradient(circle at 80% 50%, rgba(230, 43, 30, 0.08), transparent 50%);
}

.agenda-timeline {
  position: relative;
  max-width: 900px;
  padding: 40px 0;
}

.agenda-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #e62b1e, transparent);
}

.agenda-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
  padding-left: 80px;
}

.agenda-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  width: 32px;
  height: 32px;
  background: #e62b1e;
  border-radius: 50%;
  border: 3px solid #0d0d0d;
}

.agenda-time {
  font-weight: 700;
  color: #e62b1e;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agenda-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.agenda-content p {
  color: #b8b8b8;
  font-size: 1rem;
}

/* =======================================
   NEWSLETTER SECTION
======================================= */
.newsletter-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.newsletter-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.6));
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.3);
}

.newsletter-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.newsletter-content p {
  color: #b8b8b8;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  width: 100%;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #e62b1e;
}

.newsletter-form button {
  padding: 14px 32px;
  white-space: nowrap;
  border: none;
}

.newsletter-note {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  height: 20px;
}

.newsletter-note.success {
  color: #4ade80;
  font-weight: 600;
}

.newsletter-note.error {
  color: #ff6b6b;
  font-weight: 600;
}

/* =======================================
   ENHANCED NAVIGATION ANIMATIONS
======================================= */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(230, 43, 30, 0.03) 0%,
    transparent 30%,
    transparent 70%,
    rgba(230, 43, 30, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.contact-section.nav-highlight::before {
  opacity: 1;
}

.contact-card,
.location-panel {
  transform: translateZ(0); /* Enable hardware acceleration */
  will-change: transform, opacity;
}

.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px) rotateY(2deg);
  box-shadow: 0 20px 40px rgba(230, 43, 30, 0.15);
}

.location-panel {
  position: relative;
  overflow: hidden;
}

.location-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(230, 43, 30, 0.1),
    transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.location-panel.nav-animated::before {
  left: 100%;
}

.map-frame {
  transform: translateZ(0);
  will-change: transform, opacity;
  position: relative;
  overflow: hidden;
}

.map-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    rgba(230, 43, 30, 0.05),
    transparent,
    rgba(230, 43, 30, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.map-frame.nav-animated::after {
  opacity: 1;
  animation: mapPulse 2s ease-in-out;
}

@keyframes mapPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Enhanced section transitions */
section {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Navigation ripple effect */
.nav-links a[data-nav-link] {
  position: relative;
  overflow: hidden;
}

.nav-links a[data-nav-link]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(230, 43, 30, 0.2), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.nav-links a[data-nav-link]:active::before {
  width: 300px;
  height: 300px;
}

/* Smooth section reveals */
.about, .speakers, .journey-section, .highlights, .visual-story, .tickets, .contact-section {
  opacity: 0;
  transform: translateY(30px);
  animation: sectionReveal 0.8s ease-out forwards;
}

.about { animation-delay: 0.1s; }
.speakers { animation-delay: 0.2s; }
.journey-section { animation-delay: 0.3s; }
.highlights { animation-delay: 0.4s; }
.visual-story { animation-delay: 0.5s; }
.tickets { animation-delay: 0.6s; }
.contact-section { animation-delay: 0.7s; }

@keyframes sectionReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced contact section specific animations */
.contact-section .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
}

.contact-copy,
.location-panel {
  opacity: 0;
  transform: translateX(-50px);
  animation: contactSlideIn 1s ease-out forwards;
}

.contact-copy {
  animation-delay: 0.2s;
}

.location-panel {
  animation-delay: 0.4s;
}

@keyframes contactSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-card {
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(12, 12, 12, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(230, 43, 30, 0.1),
    transparent);
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card h3 {
  color: #e62b1e;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.contact-card p {
  color: #b8b8b8;
  margin-bottom: 12px;
}

.contact-card a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #e62b1e;
}

/* =======================================
   FOOTER IMPROVEMENTS
======================================= */
.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #b8b8b8;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: #e62b1e;
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #777;
}

.footer-tedx-disclaimer {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
}

/* =======================================
   MOBILE RESPONSIVENESS
======================================= */
@media (max-width: 1024px) {
  .nav {
    flex-direction: row;
    padding: 0;
  }

  .nav-links {
    gap: 20px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-art-frame {
    min-height: 400px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 16px 16px;
    padding: 24px;
    gap: 12px;
    z-index: 40;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 0;
  }

  .nav-actions {
    display: none;
  }

  .nav-actions.mobile-visible {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-actions.mobile-visible a {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 60px 6%;
  }

  .hero {
    padding: 20px 6%;
    padding-top: 80px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .speakers-slide {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    grid-template-columns: 1fr;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda-timeline {
    padding: 20px 0;
  }

  .agenda-timeline::before {
    left: 14px;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 50px;
  }

  .agenda-item::before {
    width: 24px;
    height: 24px;
    left: 4px;
  }

  .newsletter-card {
    padding: 32px 24px;
    margin: 0 6%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-art-frame {
    min-height: 280px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 16px 4%;
    padding-top: 60px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .tagline {
    font-size: 1rem;
  }

  section {
    padding: 40px 4%;
  }

  .section-intro {
    margin-bottom: 24px;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .nav {
    margin-bottom: 40px;
  }

  .speaker-card {
    padding: 16px;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-card-large,
  .visual-card-tall {
    grid-column: auto;
  }

  .agenda-timeline::before {
    left: 10px;
  }

  .agenda-item {
    padding-left: 40px;
    margin-bottom: 24px;
  }

  .agenda-item::before {
    width: 20px;
    height: 20px;
    left: 0;
  }

  .btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    padding: 24px 16px;
    margin: 0 4%;
  }

  .newsletter-content h2 {
    font-size: 1.5rem;
  }

  .journey-slide h3 {
    font-size: 1.3rem;
  }
}

.footer {
  padding: 32px 8%;
  text-align: center;
  color: #9c9c9c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090909;
}

.footer-brand span {
  color: #e62b1e;
}

.footer-brand p:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f1f1;
  margin-bottom: 8px;
}

.footer-tag {
  color: #929292;
  font-size: 0.95rem;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.footer-mark span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e62b1e;
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(230, 43, 30, 0.35);
}

.footer-mark span:nth-child(2) {
  width: 14px;
  height: 14px;
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left.hidden {
  transform: translateX(-48px);
}

.reveal-right.hidden {
  transform: translateX(48px);
}

.reveal-left.show,
.reveal-right.show {
  transform: translateX(0);
}

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

@keyframes logo-intro {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

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

@keyframes reel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

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

@media (max-width: 992px) {
  .hero {
    min-height: 92vh;
  }

  .nav {
    flex-wrap: wrap;
    gap: 20px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-panel {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-art-frame {
    min-height: 420px;
  }

  .journey-heading {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .journey-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }

  section {
    scroll-margin-top: 84px;
  }

  .journey-copy,
  .journey-visuals {
    min-height: 360px;
  }

  .journey-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .speaker-grid,
  .highlight-grid,
  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .speakers-slide {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }

  .visual-card-large,
  .visual-card-tall {
    min-height: 320px;
    grid-row: auto;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .tickets-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .tickets-action {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    gap: 14px 18px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .hero {
    padding: 20px 5%;
    min-height: 100svh;
  }

  section {
    padding: 40px 5%;
    scroll-margin-top: 74px;
  }

  .hero-content {
    padding: 26px 22px 24px;
    border-radius: 22px;
  }

  .hero-art-frame {
    min-height: 360px;
    border-radius: 24px;
  }

  .hero-art-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-art-copy h3 {
    font-size: 1.3rem;
  }

  .journey-stage {
    padding: 18px;
    border-radius: 18px;
  }

  .journey-image {
    border-radius: 12px;
  }

  .journey-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .event-bar {
    margin-top: 36px;
    border-radius: 20px;
  }

  .event-track {
    gap: 14px;
    padding: 4px 12px;
  }

  .event-pill {
    min-width: 190px;
    padding: 12px 16px;
  }

  .event-pill-label {
    font-size: 0.66rem;
  }

  .event-pill strong {
    font-size: 0.86rem;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .journey-heading h2 {
    font-size: 2.7rem;
  }

  .journey-eye {
    width: 132px;
    height: 132px;
  }

  .journey-eye-core {
    width: 72px;
    height: 72px;
  }

  .journey-copy,
  .journey-visuals {
    min-height: 420px;
  }

  .journey-slide h3 {
    font-size: 1.8rem;
  }

  .journey-year {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 12px;
  }

  .speaker-grid,
  .highlight-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-card,
  .visual-card-large,
  .visual-card-tall {
    min-height: 260px;
  }

  .speakers-slide {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .speaker-card-image {
    min-height: 180px;
  }

  .visual-card-copy h3 {
    font-size: 1.4rem;
  }

  .hero-brandmark {
    width: 100%;
    justify-content: center;
  }

  .highlight-card {
    min-height: auto;
    padding: 24px;
  }

  .tickets-panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .contact-card h3 {
    font-size: 1.55rem;
  }

  .contact-card a,
  .location-text,
  .location-note {
    font-size: 1rem;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 260px;
    height: 260px;
  }

  .social-section {
    padding: 0 5% 72px;
  }

  .social-panel {
    padding: 24px 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .nav-btn,
  .social-link {
    width: 100%;
    text-align: center;
  }

  .tickets-action {
    width: 100%;
    text-align: center;
  }
}

/* =======================================
   LUXURY FLIPBOOK
======================================= */
.flipbook-luxe {
  --book-angle: 58deg;
  --book-speed: 5s;
  --book-border: #9a7b4f;
  --book-img-1: url("media/journey_2019.png");
  --book-img-2: url("media/journey_2021.png");
  --book-img-3: url("media/journey_2022.png");
  --book-img-4: url("media/journey_2023.png");
  --book-img-5: url("media/visual_1.png");
  --book-img-6: url("media/tedx_hero_art.png");
  padding: 2rem 8% 2.8rem;
}

.imgLoader {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  background-image: var(--book-img-1), var(--book-img-2), var(--book-img-3), var(--book-img-4), var(--book-img-5), var(--book-img-6);
}

.flipbook-luxe .container {
  max-width: 620px;
  min-height: 280px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.flipbook-luxe .title {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: #f5e9d7;
}

.flipbook-luxe .credit {
  margin-top: 0.65rem;
  color: rgba(245, 233, 215, 0.72);
}

.book {
  position: relative;
  width: 420px;
  height: 300px;
  margin: 0.2rem auto 0;
  perspective: 640px;
  perspective-origin: center 52px;
  transform: scale(0.95);
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.5));
}

.gap {
  width: 10px;
  height: 300px;
  position: absolute;
  top: 0;
  left: calc(50% - 5px);
  transform: rotateX(var(--book-angle));
  transform-origin: bottom;
}

.gap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 5px;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  background: var(--book-border);
}

.pages,
.flips {
  transform-style: preserve-3d;
}

.page {
  width: 210px;
  height: 300px;
  position: absolute;
  top: 0;
  right: 50%;
  transform-origin: 100% 100%;
  border: 2px solid var(--book-border);
  background-size: 420px 300px;
  background-position: center;
  background-image: var(--book-img-1);
  transform-style: preserve-3d;
}

.page:nth-child(1) { transform: rotateX(var(--book-angle)) rotateY(3deg); }
.page:nth-child(2) { transform: rotateX(var(--book-angle)) rotateY(4.5deg); }
.page:nth-child(3) {
  transform: rotateX(var(--book-angle)) rotateY(6deg);
  animation: nextPage var(--book-speed) infinite steps(1);
}
.page:nth-child(4) { transform: rotateX(var(--book-angle)) rotateY(177deg); }
.page:nth-child(5) { transform: rotateX(var(--book-angle)) rotateY(175.5deg); }
.page:nth-child(6) {
  transform: rotateX(var(--book-angle)) rotateY(174deg);
  overflow: hidden;
}

.page:nth-child(6)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 210px;
  height: 300px;
  transform-origin: center;
  transform: rotateY(180deg);
  background-size: 420px 300px;
  background-position: 100% -2px;
  animation: nextPage var(--book-speed) infinite steps(1) reverse;
}

.flip {
  width: 32px;
  height: 300px;
  position: absolute;
  top: 0;
  right: 100%;
  transform-origin: 100% 100%;
  border: solid var(--book-border);
  border-width: 2px 0;
  background-size: 420px 300px;
  transform-style: preserve-3d;
}

.flip::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: center;
  background-size: 420px 300px;
}

.flip.flip1 {
  right: 50%;
  border-width: 2px 2px 2px 0;
  animation: flip1 var(--book-speed) infinite ease-in-out;
}

.flip.flip1::after {
  animation: nextFlip1 calc(var(--book-speed) * 1.15) infinite steps(1);
}

.flip:not(.flip1) {
  right: calc(100% - 2px);
  top: -2px;
  transform-origin: right;
  animation: flip2 var(--book-speed) infinite ease-in-out;
}

.flip.flip2::after { animation: nextFlip2 calc(var(--book-speed) * 1.15) infinite steps(1); }
.flip.flip3::after { animation: nextFlip3 calc(var(--book-speed) * 1.15) infinite steps(1); }
.flip.flip4::after { animation: nextFlip4 calc(var(--book-speed) * 1.15) infinite steps(1); }
.flip.flip5::after { animation: nextFlip5 calc(var(--book-speed) * 1.15) infinite steps(1); }
.flip.flip6::after { animation: nextFlip6 calc(var(--book-speed) * 1.15) infinite steps(1); }

.flip.flip7 {
  width: 30px;
  border-width: 2px 0 2px 2px;
}

.flip.flip7::after {
  animation: nextFlip7 calc(var(--book-speed) * 1.15) infinite steps(1);
}

.twitterLink {
  position: fixed;
  bottom: 0.5em;
  right: 0.5em;
}

.twitterLink img {
  width: 2em;
  filter: grayscale(100%);
  transition: filter 0.25s;
}

.twitterLink img:hover {
  filter: grayscale(0%);
}

@keyframes flip1 {
  0%, 20% { transform: rotateX(var(--book-angle)) rotateY(6deg); }
  80%, 100% { transform: rotateX(var(--book-angle)) rotateY(174deg); }
}

@keyframes flip2 {
  0%, 20% { transform: rotateY(0deg) translateY(0); }
  50% { transform: rotateY(-15deg) translateY(0); }
}

@keyframes nextPage {
  0%, 19.99% { background-image: var(--book-img-1); }
  20%, 39.99% { background-image: var(--book-img-2); }
  40%, 59.99% { background-image: var(--book-img-3); }
  60%, 79.99% { background-image: var(--book-img-4); }
  80%, 100% { background-image: var(--book-img-5); }
}

@keyframes nextFlip1 {
  0%, 10% { background-image: var(--book-img-1); background-position: -178px -2px; transform: rotateY(0); }
  10.01%, 30% { background-image: var(--book-img-2); background-position: -210px -2px; transform: rotateY(180deg); }
  30.01%, 50% { background-image: var(--book-img-3); background-position: -210px -2px; transform: rotateY(180deg); }
  50.01%, 70% { background-image: var(--book-img-4); background-position: -210px -2px; transform: rotateY(180deg); }
  70.01%, 90% { background-image: var(--book-img-5); background-position: -210px -2px; transform: rotateY(180deg); }
  90.01%, 100% { background-image: var(--book-img-6); background-position: -210px -2px; transform: rotateY(180deg); }
}

@keyframes nextFlip2 {
  0%, 19.99% { background-image: var(--book-img-1); background-position: -148px -2px; transform: rotateY(0); }
  20%, 39.99% { background-image: var(--book-img-2); background-position: -238px -2px; transform: rotateY(180deg); }
  40%, 59.99% { background-image: var(--book-img-3); background-position: -238px -2px; transform: rotateY(180deg); }
  60%, 79.99% { background-image: var(--book-img-4); background-position: -238px -2px; transform: rotateY(180deg); }
  80%, 100% { background-image: var(--book-img-5); background-position: -238px -2px; transform: rotateY(180deg); }
}

@keyframes nextFlip3 {
  0%, 19.99% { background-image: var(--book-img-1); background-position: -118px -2px; transform: rotateY(0); }
  20%, 39.99% { background-image: var(--book-img-2); background-position: -268px -2px; transform: rotateY(180deg); }
  40%, 59.99% { background-image: var(--book-img-3); background-position: -268px -2px; transform: rotateY(180deg); }
  60%, 79.99% { background-image: var(--book-img-4); background-position: -268px -2px; transform: rotateY(180deg); }
  80%, 100% { background-image: var(--book-img-5); background-position: -268px -2px; transform: rotateY(180deg); }
}

@keyframes nextFlip4 {
  0%, 19.99% { background-image: var(--book-img-1); background-position: -88px -2px; transform: rotateY(0); }
  20%, 39.99% { background-image: var(--book-img-2); background-position: -298px -2px; transform: rotateY(180deg); }
  40%, 59.99% { background-image: var(--book-img-3); background-position: -298px -2px; transform: rotateY(180deg); }
  60%, 79.99% { background-image: var(--book-img-4); background-position: -298px -2px; transform: rotateY(180deg); }
  80%, 100% { background-image: var(--book-img-5); background-position: -298px -2px; transform: rotateY(180deg); }
}

@keyframes nextFlip5 {
  0%, 19.99% { background-image: var(--book-img-1); background-position: -58px -2px; transform: rotateY(0); }
  20%, 39.99% { background-image: var(--book-img-2); background-position: -328px -2px; transform: rotateY(180deg); }
  40%, 59.99% { background-image: var(--book-img-3); background-position: -328px -2px; transform: rotateY(180deg); }
  60%, 79.99% { background-image: var(--book-img-4); background-position: -328px -2px; transform: rotateY(180deg); }
  80%, 100% { background-image: var(--book-img-5); background-position: -328px -2px; transform: rotateY(180deg); }
}

@keyframes nextFlip6 {
  0%, 19.99% { background-image: var(--book-img-1); background-position: -28px -2px; transform: rotateY(0); }
  20%, 39.99% { background-image: var(--book-img-2); background-position: -358px -2px; transform: rotateY(180deg); }
  40%, 59.99% { background-image: var(--book-img-3); background-position: -358px -2px; transform: rotateY(180deg); }
  60%, 79.99% { background-image: var(--book-img-4); background-position: -358px -2px; transform: rotateY(180deg); }
  80%, 100% { background-image: var(--book-img-5); background-position: -358px -2px; transform: rotateY(180deg); }
}

@keyframes nextFlip7 {
  0%, 19.99% { background-image: var(--book-img-1); background-position: -2px -2px; transform: rotateY(0); }
  20%, 39.99% { background-image: var(--book-img-2); background-position: -388px -2px; transform: rotateY(180deg); }
  40%, 59.99% { background-image: var(--book-img-3); background-position: -388px -2px; transform: rotateY(180deg); }
  60%, 79.99% { background-image: var(--book-img-4); background-position: -388px -2px; transform: rotateY(180deg); }
  80%, 100% { background-image: var(--book-img-6); background-position: -388px -2px; transform: rotateY(180deg); }
}

@media (max-width: 640px) {
  .flipbook-luxe {
    padding: 1.4rem 5% 1.8rem;
  }

  .flipbook-luxe .container {
    padding: 0;
    min-height: 220px;
  }

  .book {
    transform: scale(0.7);
    margin-top: 0.2rem;
  }

  .flipbook-luxe .credit {
    font-size: 0.92rem;
    padding: 0 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stat,
  .journey-metric-card {
    animation: none;
  }
}
