/* ============================================================
   TEDx Rungta College — Style System
   Theme: Youth as a Catalyst of Change
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-black:       #0a0a0a;
  --color-near-black:  #111111;
  --color-dark:        #1a1a1a;
  --color-dark-gray:   #222222;
  --color-gray:        #333333;
  --color-mid-gray:    #666666;
  --color-light-gray:  #999999;
  --color-off-white:   #e8e8e8;
  --color-white:       #f5f5f5;
  --color-pure-white:  #ffffff;
  --color-red:         #eb0028;
  --color-red-dark:    #eb0028;
  --color-red-glow:    rgba(235, 0, 40, 0.15);
  --color-red-subtle:  rgba(235, 0, 40, 0.08);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-accent:  'Manrope', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;
  --space-4xl:  12rem;

  /* Layout */
  --max-width:  1400px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-mid:  0.4s;
  --duration-slow: 0.8s;

  /* Borders */
  --border-subtle: 1px solid rgba(255,255,255,0.06);
  --border-light:  1px solid rgba(255,255,255,0.1);
  --border-red:    1px solid var(--color-red);
}

/* --- Light Theme --- */
[data-theme="light"] {
  --color-black:       #ffffff;
  --color-near-black:  #f7f7f7;
  --color-dark:        #f0f0f0;
  --color-dark-gray:   #e5e5e5;
  --color-gray:        #cccccc;
  --color-mid-gray:    #777777;
  --color-light-gray:  #555555;
  --color-off-white:   #222222;
  --color-white:       #1a1a1a;
  --color-pure-white:  #0a0a0a;
  --border-subtle: 1px solid rgba(0,0,0,0.08);
  --border-light:  1px solid rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-off-white);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.is-loading {
  overflow-y: hidden;
}

.site-parallax-layer {
  translate: 0 var(--site-parallax-y, 0px);
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-black);
  opacity: 1;
}

.has-preloader .site-preloader {
  display: flex;
}

.site-preloader.is-hidden {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-preloader__content {
  width: min(100%, 660px);
  text-align: center;
}

.site-preloader__name {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.05em 0.22em;
  color: var(--color-pure-white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.site-preloader__name span {
  opacity: 0;
  transform: translateY(12px);
  animation: preloader-word-in 0.55s var(--ease-out) forwards;
}

.site-preloader__name span:nth-child(2) {
  animation-delay: 0.12s;
}

.site-preloader__name span:nth-child(3) {
  animation-delay: 0.24s;
}

.site-preloader__name span:nth-child(4) {
  animation-delay: 0.36s;
}

.site-preloader__bar {
  display: block;
  width: clamp(90px, 20vw, 150px);
  height: 2px;
  margin: 1.6rem auto 0;
  background: var(--color-red-subtle);
  transform: scaleX(0);
  transform-origin: left;
  animation: preloader-bar-in 1.25s var(--ease-out) 0.15s forwards;
}

@media (min-width: 769px) {
  .site-preloader__content {
    width: max-content;
    max-width: 100%;
  }

  .site-preloader__name {
    flex-wrap: nowrap;
    gap: 0.05em 0.22em;
    font-size: clamp(1rem, 2.8vw, 2.6rem);
    white-space: nowrap;
  }

  .site-preloader__bar {
    width: 100%;
  }
}

@keyframes preloader-word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloader-bar-in {
  to {
    background: var(--color-red);
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader__name span {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .site-preloader__bar {
    background: var(--color-red);
    transform: none;
    animation: none;
  }

  .site-preloader.is-hidden {
    transition: none;
  }
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  box-shadow: 0 0 0 2px var(--color-red), 0 0 8px rgba(235, 0, 40, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.custom-cursor.is-visible {
  opacity: 1;
}

@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: none !important;
  }
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--duration-mid) var(--ease-out),
              border-color var(--duration-mid) var(--ease-out),
              backdrop-filter var(--duration-mid) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-pure-white);
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar__logo-ted {
  color: var(--color-red);
  font-weight: 800;
}

.navbar__logo-x {
  display: inline-block;
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.68em;
  line-height: 1;
  position: relative;
  top: -0.48em;
  margin-left: 0.02em;
}

.navbar__logo-ted,
.navbar__logo-x,
.footer__x,
.tedx-inter {
  font-family: var(--font-body);
}

.footer__x {
  display: inline-block;
  position: relative;
  top: -0.48em;
  margin-left: 0.02em;
  font-size: 0.68em;
  line-height: 1;
}

.tedx-inter {
  white-space: nowrap;
}

.tedx-inter sup {
  display: inline-block;
  position: relative;
  top: -0.48em;
  margin-left: 0.02em;
  font-size: 0.68em;
  line-height: 1;
  vertical-align: baseline;
}

.navbar__logo-name {
  color: var(--color-pure-white);
  font-weight: 500;
  margin-left: 0.35rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar__link {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-light-gray);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width var(--duration-mid) var(--ease-out);
}

.navbar__link:hover {
  color: var(--color-pure-white);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  background: var(--color-red);
  color: var(--color-pure-white);
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.navbar__cta:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-off-white);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.15);
  color: var(--color-off-white);
}

.theme-toggle:hover {
  border-color: var(--color-red);
  transform: scale(1.05);
}

.theme-toggle__icon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark mode: show sun (to switch to light), hide moon */
.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-90deg);
}

/* Light mode: show moon (to switch to dark), hide sun */
[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile actions container */
.navbar__mobile-actions {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle--mobile {
  display: none;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-pure-white);
  transition: transform var(--duration-mid) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--color-black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.9rem, 4vh, 2.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--nav-height) + env(safe-area-inset-top)) 1rem calc(1.5rem + env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-mid) var(--ease-out);
}

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

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-off-white);
  letter-spacing: -0.02em;
  transition: color var(--duration-fast) var(--ease-out);
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--duration-mid) var(--ease-out),
              opacity var(--duration-mid) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  flex: 0 0 auto;
}

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

.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu__link:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu__link:nth-child(7) { transition-delay: 0.35s; }

.mobile-menu__link:hover {
  color: var(--color-red);
}

@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
  }

  .navbar__links {
    display: none;
  }

  .navbar__mobile-actions {
    display: flex;
  }

  .theme-toggle--mobile,
  .navbar__hamburger {
    display: flex;
  }
}

@media (max-height: 500px) and (max-width: 900px) {
  .mobile-menu {
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .mobile-menu__link {
    font-size: clamp(1.2rem, 4vw, 1.65rem);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-black);
}

/* Animated grid background */
.hero__grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: calc(0.12 + var(--hero-parallax-progress, 0) * 0.12);
  scale: calc(1 + var(--hero-parallax-progress, 0) * 0.18);
  translate: 0 var(--hero-parallax-y, 0px);
}

.hero__grid-line {
  position: absolute;
  background: var(--color-pure-white);
}

.hero__grid-line--v {
  width: 1px;
  height: 100%;
  animation: gridPulse 4s ease-in-out infinite;
}

.hero__grid-line--h {
  width: 100%;
  height: 1px;
  animation: gridPulse 4s ease-in-out infinite;
}

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

/* Red glow */
.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: glowFloat 8s ease-in-out infinite;
  scale: calc(1 + var(--hero-parallax-progress, 0) * 0.45);
  translate: 0 var(--hero-parallax-y, 0px);
}

.hero__glow--1 {
  top: 10%;
  right: -10%;
}

.hero__glow--2 {
  bottom: 10%;
  left: -10%;
  animation-delay: -4s;
  opacity: 0.5;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-20px, 15px) scale(1.05); }
  50% { transform: translate(10px, -20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Floating words */
.hero__floating-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  scale: calc(1 + var(--hero-parallax-progress, 0) * 0.12);
  translate: 0 var(--hero-parallax-y, 0px);
}

.hero__floating-word {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: calc(0.05 + var(--hero-parallax-progress, 0) * 0.15);
  white-space: nowrap;
}

.hero__floating-word--1 {
  font-size: clamp(2rem, 6vw, 5rem);
  top: 15%;
  left: -5%;
  animation: floatWord1 20s linear infinite;
}

.hero__floating-word--2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  top: 65%;
  right: -5%;
  animation: floatWord2 25s linear infinite;
}

.hero__floating-word--3 {
  font-size: clamp(1rem, 3vw, 2.5rem);
  bottom: 20%;
  left: 10%;
  animation: floatWord3 18s linear infinite;
}

@keyframes floatWord1 {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(calc(100vw + 100%)); }
}

@keyframes floatWord2 {
  0% { transform: translateX(calc(100vw + 100%)); }
  100% { transform: translateX(-100%); }
}

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

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: calc(1 - var(--hero-parallax-progress, 0) * 0.65);
  scale: calc(1 - var(--hero-parallax-progress, 0) * 0.06);
  translate: 0 var(--hero-parallax-y, 0px);
}

@media (max-height: 800px) {
  .hero__content {
    padding-top: var(--nav-height);
  }
}

.hero__tagline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.hero__tagline-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero__tagline-copy .hero__subtitle {
  margin-bottom: 0;
}

.hero__countdown-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero__countdown {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-display);
}

.hero__partner-logo {
  display: block;
  width: clamp(160px, 22vw, 280px);
  height: auto;
}

.hero__countdown-value {
  color: var(--color-red);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero__countdown-label {
  color: var(--color-light-gray);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero__countdown--time .hero__countdown-value {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0.04em;
}

.hero__countdown--time .hero__countdown-label {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero__tagline-row {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero__tagline-copy {
    width: 100%;
  }

  .hero__countdown-group {
    align-self: flex-end;
    translate: 0 clamp(8px, 1.5vh, 14px);
  }

  .hero__cta-group {
    margin-top: var(--space-md);
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__eyebrow-dot {
  position: relative;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}

.hero__eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  animation: eyebrowPulse 1.8s ease-out infinite;
}

@keyframes eyebrowPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow-dot::after {
    animation: none;
  }
}

.hero__eyebrow-text {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--color-pure-white);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

.hero__headline-accent {
  color: var(--color-red);
  display: inline;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  color: var(--color-light-gray);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.hero__meta-item {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
}

.hero__meta-divider {
  width: 1px;
  height: 24px;
  background: var(--color-gray);
}

.hero__cta {
  position: relative;
  display: inline-flex;
  width: min(15rem, 100%);
  height: 4.5rem;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-pure-white);
  padding: 1.25rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  transition: background var(--duration-mid) var(--ease-out),
              border-color var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out);
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--color-off-white), var(--color-off-white)) left top / 2px 10px no-repeat,
    linear-gradient(var(--color-off-white), var(--color-off-white)) left top / 10px 2px no-repeat,
    linear-gradient(var(--color-off-white), var(--color-off-white)) right top / 2px 10px no-repeat,
    linear-gradient(var(--color-off-white), var(--color-off-white)) right top / 10px 2px no-repeat,
    linear-gradient(var(--color-off-white), var(--color-off-white)) left bottom / 2px 10px no-repeat,
    linear-gradient(var(--color-off-white), var(--color-off-white)) left bottom / 10px 2px no-repeat,
    linear-gradient(var(--color-off-white), var(--color-off-white)) right bottom / 2px 10px no-repeat,
    linear-gradient(var(--color-off-white), var(--color-off-white)) right bottom / 10px 2px no-repeat;
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.hero__cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta-arrow {
  font-size: 1.35rem;
  transition: transform var(--duration-mid) var(--ease-out);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(5px);
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.hero__cta--secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.hero__cta--secondary::before {
  display: none;
}

.hero__cta--secondary:hover {
  border-color: var(--color-red);
}

@media (max-width: 480px) {
  .hero__cta {
    gap: 0.9rem;
    padding: 1rem 1.5rem;
    white-space: nowrap;
  }

  .hero__cta-group {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   SECTION — SHARED
   ============================================================ */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section--dark {
  background: var(--color-near-black);
}

.section--darker {
  background: var(--color-black);
}

.section__label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-red);
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-pure-white);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--color-light-gray);
  max-width: 560px;
  line-height: 1.7;
}

.typing-char {
  visibility: hidden;
}

.typing-char.is-typed {
  visibility: visible;
}

.about__brand-heading {
  text-transform: none;
  letter-spacing: -0.02em;
}

.about__edition {
  display: inline-block;
  margin-left: 0.15em;
  color: var(--color-red);
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: baseline;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  border-top: var(--border-subtle);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

.about__text-block {
  min-width: 0;
}

.about__text-block p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--color-off-white);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.about__big-x {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__big-x--mobile {
  display: none;
}

.about__x-letter {
  font-family: var(--font-display);
  font-size: clamp(16rem, 30vw, 28rem);
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  opacity: 0.12;
  user-select: none;
}

.about__theme-overlay {
  position: absolute;
  text-align: center;
}

.about__theme-word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-pure-white);
  text-transform: uppercase;
  line-height: 1.1;
}

.about__theme-word--accent {
  color: var(--color-red);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: var(--border-subtle);
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-pure-white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.about__stat-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
}

/* ============================================================
   SPEAKERS SECTION
   ============================================================ */
.speakers {
  border-top: var(--border-subtle);
}

.speakers__header {
  margin-bottom: var(--space-2xl);
}

.speakers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 270px));
  justify-content: center;
  gap: var(--space-sm);
}

.speaker-card {
  position: relative;
  overflow: hidden;
  background: var(--color-near-black);
  cursor: pointer;
  group: speaker;
}

.speaker-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.speaker-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.speaker-card:hover .speaker-card__image {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.speaker-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(10,10,10, 0.95) 0%,
    rgba(10,10,10, 0.3) 40%,
    transparent 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: background var(--duration-mid) var(--ease-out);
}

.speaker-card:hover .speaker-card__overlay {
  background: linear-gradient(0deg,
    rgba(10,10,10, 0.98) 0%,
    rgba(10,10,10, 0.5) 50%,
    rgba(235,0,40, 0.08) 100%
  );
}

.speaker-card__number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-red);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.speaker-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-pure-white);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.speaker-card__role {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-light-gray);
  margin-bottom: var(--space-sm);
}

.speaker-card__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              opacity var(--duration-mid) var(--ease-out);
  opacity: 0;
}

.speaker-card:hover .speaker-card__desc {
  max-height: 100px;
  opacity: 1;
}

/* ============================================================
   THEME SECTION
   ============================================================ */
.theme {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  overflow: hidden;
}

.theme__header {
  margin-bottom: var(--space-lg);
}

.theme__journey {
  border: var(--border-light);
  background: linear-gradient(135deg, var(--color-red-subtle), transparent 45%);
}

.theme__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: var(--border-light);
}

.theme__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  padding: 1.15rem 1.4rem;
  color: var(--color-light-gray);
  text-align: left;
  transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.theme__tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--color-red);
  content: '';
  transform: scaleX(0);
  transition: transform var(--duration-mid) var(--ease-out);
}

.theme__tab:hover,
.theme__tab[aria-selected="true"] {
  color: var(--color-pure-white);
  background: var(--color-red-subtle);
}

.theme__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.theme__tab:focus-visible,
.theme__next:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: -3px;
}

.theme__tab-index,
.theme__panel-step {
  color: var(--color-red);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.theme__tab-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme__panel[hidden] {
  display: none;
}

.theme__panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 230px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.theme__panel.is-active {
  animation: theme-panel-in var(--duration-mid) var(--ease-out) both;
}

.theme__panel-heading {
  min-width: 0;
}

.theme__panel-step {
  display: block;
  margin-bottom: 0.65rem;
}

.theme__panel-step span {
  color: var(--color-mid-gray);
}

.theme__word {
  color: var(--color-pure-white);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.theme__word--accent {
  color: var(--color-red);
}

.theme__word-sub {
  max-width: 390px;
  color: var(--color-light-gray);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
}

.theme__next {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.75rem;
  padding: 0.8rem 0;
  color: var(--color-pure-white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.theme__next span {
  color: var(--color-red);
  font-size: 1.15rem;
  transition: transform var(--duration-fast) ease;
}

.theme__next:hover span {
  transform: translateX(4px);
}

.theme__description {
  max-width: 700px;
  margin: var(--space-md) auto 0;
  text-align: center;
}

.theme__description p {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 300;
  color: var(--color-mid-gray);
  line-height: 1.7;
}

@keyframes theme-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SCHEDULE SECTION
   ============================================================ */
.schedule {
  border-top: var(--border-subtle);
  overflow: hidden;
}

.schedule::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  opacity: 0.2;
}

.schedule__header {
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.schedule__intro {
  max-width: 760px;
  margin-top: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-red);
  color: var(--color-light-gray);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.schedule__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--space-md);
}

.schedule__card-wrap {
  display: flex;
  min-width: 0;
}

.schedule__card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 310px;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  overflow: hidden;
  border: var(--border-subtle);
  border-top: 3px solid transparent;
  background: var(--color-near-black);
  color: var(--color-off-white);
  text-align: left;
  transition: border-color var(--duration-mid) var(--ease-out),
              background var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out);
}

.schedule__card:hover,
.schedule__card:focus-visible {
  border-top-color: var(--color-red);
  background: var(--color-near-black);
  transform: translateY(-4px);
}

.schedule__card:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.schedule__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.schedule__time {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-light-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--color-red-glow);
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.schedule__event {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--color-off-white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.schedule__summary {
  margin-top: auto;
  padding-top: var(--space-lg);
  color: var(--color-light-gray);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
}

.schedule__dialog {
  width: min(92vw, 760px);
  max-width: none;
  max-height: min(88vh, 720px);
  max-height: min(88dvh, 720px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: var(--border-light);
  background: var(--color-near-black);
  color: var(--color-off-white);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.schedule__dialog[open] {
  animation: schedule-dialog-in 0.25s var(--ease-out) both;
}

.schedule__dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.schedule__cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 9px;
  height: 9px;
  border: 1px solid var(--color-red);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75), 0 0 10px rgba(235, 0, 40, 0.9);
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.schedule__cursor.is-visible {
  opacity: 1;
}

.schedule__dialog,
.schedule__dialog * {
  cursor: none !important;
}

body.schedule-dialog-open,
body.schedule-dialog-open * {
  cursor: auto !important;
}

body.schedule-dialog-open .schedule__dialog,
body.schedule-dialog-open .schedule__dialog * {
  cursor: none !important;
}

body.schedule-dialog-open .schedule__dialog button {
  cursor: none !important;
}

@keyframes schedule-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.schedule__dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: var(--border-subtle);
  background: var(--color-black);
}

.schedule__dialog-time {
  margin-bottom: var(--space-xs);
  color: var(--color-red);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.schedule__dialog-title {
  color: var(--color-pure-white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}

.schedule__dialog-close {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  color: var(--color-light-gray);
  font-size: 2rem;
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.schedule__dialog-close:hover {
  color: var(--color-red);
  transform: rotate(90deg);
}

.schedule__dialog-content {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--color-light-gray);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.schedule__dialog-content ul {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.schedule__dialog-content li {
  position: relative;
  padding-left: 2rem;
}

.schedule__dialog-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-family: var(--font-body);
  font-weight: 700;
}

.schedule__dialog-footer {
  margin: 0 clamp(1.25rem, 4vw, 2.5rem);
  padding: var(--space-lg) 0;
  border-top: var(--border-subtle);
  color: var(--color-mid-gray);
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

@media (max-width: 600px) {
  .schedule__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule__card {
    min-height: 250px;
  }

  .schedule__card-top {
    margin-bottom: var(--space-lg);
  }

  .schedule__dialog {
    width: calc(100vw - 1.5rem);
    max-height: 92vh;
    max-height: 92dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule__dialog[open] {
    animation: none;
  }
}

/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
.experience {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  border-top: var(--border-subtle);
}

.experience__header {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.experience__header .section__label {
  margin-bottom: 0.75rem;
}

.experience__header .section__heading {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.experience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.experience__item {
  padding: clamp(2rem, 3.5vw, 3rem);
  background: var(--color-near-black);
  border: 1px solid rgba(255,255,255,0.03);
  transition: border-color var(--duration-mid) var(--ease-out),
              background var(--duration-mid) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.experience__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-red);
  transition: height var(--duration-slow) var(--ease-out);
}

.experience__item:hover::before {
  height: 100%;
}

.experience__item:hover {
  border-color: rgba(235,0,40,0.15);
  background: rgba(235,0,40,0.02);
}

.experience__word {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--color-pure-white);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.experience__desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  font-weight: 300;
  color: var(--color-light-gray);
  line-height: 1.65;
  max-width: 360px;
}

/* ============================================================
   VENUE SECTION
   ============================================================ */
.venue {
  border-top: var(--border-subtle);
}

.venue__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

.venue__info-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-pure-white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.venue__info-location {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-light-gray);
  margin-bottom: var(--space-lg);
}

.venue__info-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.venue__map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-pure-white);
  border-bottom: 1px solid var(--color-red);
  padding-bottom: 0.5rem;
  transition: gap var(--duration-mid) var(--ease-out);
}

.venue__map-link:hover {
  gap: var(--space-sm);
}

.venue__map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: var(--border-subtle);
  overflow: hidden;
}

.venue__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   REGISTRATION CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--space-4xl) 0;
  background: var(--color-red);
  position: relative;
  overflow: hidden;
}

.cta-section__bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 800;
  color: rgba(0,0,0,0.1);
  text-transform: uppercase;
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: -0.04em;
}

.cta-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-pure-white);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.cta-section__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-md);
}

.cta-section__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  background: var(--color-pure-white);
  padding: 1.1rem 2.5rem;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              gap var(--duration-mid) var(--ease-out);
}

.cta-section__button:hover {
  background: var(--color-off-white);
  transform: translateY(-2px);
  gap: var(--space-md);
}

.cta-section__button--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.cta-section__button--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-3xl) 0 var(--space-lg);
  background: var(--color-black);
  border-top: var(--border-subtle);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: var(--border-subtle);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-pure-white);
  margin-bottom: var(--space-sm);
}

.footer__brand-name .navbar__logo-ted,
.footer__brand-name .footer__x {
  color: var(--color-red);
}

.footer__edition {
  color: var(--color-red);
  font-size: 0.48em;
  font-weight: 600;
  white-space: nowrap;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  font-style: italic;
}

.footer__links {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-md) var(--space-lg);
  flex-wrap: wrap;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-light-gray);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: var(--color-red);
}

.footer__link:hover {
  color: var(--color-red);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-mid-gray);
}

.footer__ted-note {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-gray);
  max-width: 400px;
  text-align: right;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__big-x {
    order: -1;
  }

  .about__x-letter {
    font-size: 20rem;
  }

  .about__theme-word {
    font-size: clamp(1.7rem, 4vw, 2.1rem);
  }

  .speakers__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 300px));
  }

  .venue__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .venue__map-frame {
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: clamp(4rem, 12vw, 6rem) 0;
  }

  /* Hero */
  .hero__headline {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .hero__meta-divider {
    display: none;
  }

  .about__big-x:not(.about__big-x--mobile) {
    display: none;
  }

  .about__big-x--mobile {
    display: flex;
    min-height: 12rem;
    margin: 0 0 var(--space-md);
  }

  .about__theme-word {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  /* Speakers */
  .speakers__grid {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
    gap: var(--space-sm);
  }

  .speaker-card__image-wrap {
    aspect-ratio: 4 / 5;
  }

  .speaker-card__desc {
    max-height: 0;
    opacity: 0;
  }

  .speaker-card:not(.is-expanded) .speaker-card__desc {
    max-height: 0;
    opacity: 0;
  }

  .speaker-card.is-expanded .speaker-card__desc {
    flex-shrink: 0;
    max-height: 100px;
    opacity: 1;
  }

  .speaker-card__image {
    filter: grayscale(40%);
  }

  /* Schedule */
  .schedule__item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
  }

  /* Experience */
  .experience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience__item {
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  /* Venue */
  .venue__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .venue__map-frame {
    min-height: 19rem;
    aspect-ratio: auto;
  }

  /* About stats */
  .about__stats {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__links {
    justify-content: flex-start;
  }

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

  .footer__ted-note {
    text-align: left;
  }

  /* Theme */
  .theme {
    padding: clamp(4rem, 12vw, 6rem) 0;
  }

  .theme__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem var(--space-md);
  }

  .theme__panel-heading,
  .theme__word-sub {
    grid-column: 1 / -1;
  }

  .theme__word {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .theme__next {
    grid-column: 2;
    grid-row: 3;
  }
}

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

  .theme__tab {
    gap: 0.45rem;
    padding: 0.9rem 0.7rem;
  }

  .theme__tab-name {
    font-size: 0.95rem;
  }

  .theme__panel {
    min-height: 250px;
    padding: 1.4rem 1.1rem;
  }

  .theme__word {
    font-size: clamp(2.75rem, 16vw, 4rem);
  }

  .theme__next {
    font-size: 0.75rem;
  }

  /* CTA */
  .cta-section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .experience {
    padding: 1.5rem 0;
  }

  .experience__header {
    margin-bottom: 1.25rem;
  }

  .experience__header .section__label {
    margin-bottom: 0.5rem;
  }

  .experience__header .section__heading {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .experience__grid {
    gap: 0.5rem;
  }

  .experience__item {
    padding: 1.25rem 1rem;
  }

  .experience__word {
    font-size: clamp(1.2rem, 5.5vw, 1.7rem);
    margin-bottom: 0.65rem;
  }

  .experience__desc {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .hero__headline {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
  }

  .about__x-letter {
    font-size: clamp(14rem, 58vw, 16rem);
  }

  .about__theme-word {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }

  .about__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.5rem, 3vw, 1.25rem);
  }

  .about__stats > * {
    min-width: 0;
  }

  .about__stat-number {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .about__stat-label {
    font-size: clamp(0.55rem, 2.6vw, 0.7rem);
    letter-spacing: clamp(0.02em, 0.4vw, 0.08em);
    overflow-wrap: anywhere;
  }

  .cta-section__heading {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .cta-section__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-section__button {
    justify-content: center;
    width: 100%;
  }
}

@media (hover: none) and (min-width: 769px) {
  .speaker-card:not(.is-expanded):hover .speaker-card__desc {
    max-height: 0;
    opacity: 0;
  }

  .speaker-card.is-expanded .speaker-card__desc {
    max-height: 100px;
    opacity: 1;
  }

  .speaker-card:hover .speaker-card__image {
    filter: grayscale(40%);
    transform: none;
  }
}

/* ============================================================
   LIGHT THEME — Section-specific overrides
   ============================================================ */
[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .schedule::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 0.7px, transparent 0.7px);
}

[data-theme="light"] .hero__grid-line {
  background: var(--color-gray);
}

[data-theme="light"] .hero__floating-word {
  opacity: 0.03;
}

[data-theme="light"] .speaker-card__overlay {
  background: linear-gradient(0deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.3) 40%,
    transparent 60%
  );
}

[data-theme="light"] .speaker-card:hover .speaker-card__overlay {
  background: linear-gradient(0deg,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(235,0,40,0.05) 100%
  );
}

[data-theme="light"] .speaker-card__image:not([src$="default-avatar.svg"]) {
  filter: saturate(1.08) contrast(1.03);
}

[data-theme="light"] .speaker-card:hover .speaker-card__image:not([src$="default-avatar.svg"]) {
  filter: saturate(1.08) contrast(1.03);
}

[data-theme="light"] .experience__item {
  border: 1px solid rgba(0,0,0,0.05);
}

[data-theme="light"] .experience__item:hover {
  border-color: rgba(235,0,40,0.2);
  background: rgba(235,0,40,0.02);
}

[data-theme="light"] .cta-section {
  background: var(--color-red);
}

[data-theme="light"] .cta-section__heading,
[data-theme="light"] .cta-section__text {
  color: #fff;
}

[data-theme="light"] .cta-section__button {
  color: var(--color-red);
  background: #fff;
}

[data-theme="light"] .cta-section__button:hover {
  background: #f0f0f0;
}

[data-theme="light"] .cta-section__bg-text {
  color: rgba(0,0,0,0.08);
}

[data-theme="light"] .mobile-menu {
  background: var(--color-black);
}

/* ============================================================
   FOOTER — Additional elements & Support Channels Directory
   ============================================================ */
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: var(--border-subtle);
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
}

.footer__date {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
  margin-top: var(--space-sm);
}

.footer__socials {
  margin-top: var(--space-xl);
}

.footer__socials .footer__section-label {
  margin-bottom: var(--space-sm);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.12em;
}

.footer__section-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.footer__support-col {
  display: flex;
  flex-direction: column;
}

.footer__support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.footer__support-item {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-subtle);
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.footer__support-item:hover {
  background: rgba(235, 0, 40, 0.05);
  border-color: rgba(235, 0, 40, 0.35);
  transform: translateY(-2px);
}

.footer__support-category {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-light-gray);
  margin-bottom: 0.35rem;
}

.footer__support-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__mail-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-off-white);
  text-decoration: none;
  word-break: break-all;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__mail-link:hover {
  color: var(--color-red);
}

/* Light theme for footer support directory */
[data-theme="light"] .footer__support-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer__support-item:hover {
  background: rgba(235, 0, 40, 0.04);
  border-color: rgba(235, 0, 40, 0.3);
}

[data-theme="light"] .footer__support-category {
  color: var(--color-mid-gray);
}

[data-theme="light"] .footer__mail-link {
  color: var(--color-pure-white);
}

[data-theme="light"] .footer__mail-link:hover {
  color: var(--color-red);
}

/* Keep placeholder avatars legible against light cards without inverting portraits. */
[data-theme="light"] .speaker-card {
  background: #eaeaea;
}

[data-theme="light"] .speaker-card__image[src$="default-avatar.svg"] {
  filter: invert(0.92) hue-rotate(180deg);
}

[data-theme="light"] .speaker-card:hover .speaker-card__image[src$="default-avatar.svg"] {
  filter: invert(0.92) hue-rotate(180deg);
}

[data-theme="light"] .speakers {
  background: #f3f4f6;
}

[data-theme="light"] .previous-speakers {
  background: #fafafa;
}

[data-theme="light"] .speakers__header .section__subtitle {
  color: #555b66;
}

[data-theme="light"] .speaker-card {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: border-color var(--duration-mid) var(--ease-out),
              box-shadow var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out);
}

[data-theme="light"] .speaker-card:hover,
[data-theme="light"] .speaker-card:focus-visible {
  border-color: rgba(235, 0, 40, 0.45);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.14);
}

[data-theme="light"] .speaker-card:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
}

[data-theme="light"] .speaker-card__overlay {
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.8) 18%,
    rgba(255, 255, 255, 0.48) 38%,
    rgba(255, 255, 255, 0.16) 54%,
    rgba(255, 255, 255, 0) 68%
  );
}

[data-theme="light"] .speaker-card:hover .speaker-card__overlay,
[data-theme="light"] .speaker-card:focus-visible .speaker-card__overlay,
[data-theme="light"] .speaker-card.is-expanded .speaker-card__overlay {
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.84) 20%,
    rgba(255, 255, 255, 0.54) 42%,
    rgba(255, 255, 255, 0.2) 62%,
    rgba(255, 255, 255, 0) 76%
  );
}

[data-theme="light"] .speaker-card__number {
  color: var(--color-red);
}

[data-theme="light"] .speaker-card__name {
  color: #17191f;
}

[data-theme="light"] .speaker-card__role {
  color: #4b515c;
}

[data-theme="light"] .speaker-card__desc {
  color: #454b55;
}

[data-theme="light"] .speaker-card__image[src$="default-avatar.svg"] {
  filter: invert(0.92) grayscale(1);
}

[data-theme="light"] .speaker-card:hover .speaker-card__image[src$="default-avatar.svg"] {
  filter: invert(0.92) grayscale(1);
}

.footer__ai-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
}

.footer__disclaimer-icon {
  font-size: 1.2rem;
  color: var(--color-red);
  line-height: 1.5;
  flex-shrink: 0;
}

.footer__disclaimer-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-mid-gray);
  line-height: 1.65;
  max-width: 700px;
}

/* Mobile overrides for footer and navbar */
@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

@media (max-width: 768px) {
  .footer__ai-disclaimer {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .theme-toggle {
    display: flex;
  }

  .navbar__hamburger {
    display: flex;
    order: 2;
  }

  .theme-toggle--mobile {
    display: flex;
    order: 1;
    margin-right: var(--space-sm);
  }
}
