/* ============================================
   NSFR Conference — Editorial Academic Aesthetic
   ============================================ */

/* --- CSS Variables --- */
:root {
  --ivory: #FAF7F2;
  --cream: #F5F0E8;
  --parchment: #EDE6D8;
  --charcoal: #1A1A1A;
  --slate: #2D2D2D;
  --ink: #4A4A4A;
  --muted: #7A7A7A;
  --ember: #8B1A1A;
  --ember-deep: #6B1010;
  --ember-light: #A52A2A;
  --gold: #C9A84C;
  --gold-light: #D4B85C;
  --navy: #1B2A4A;
  --navy-deep: #0F1A30;
  --white: #FFFFFF;

  --font-display: 'EB Garamond', serif;
  --font-serif: 'Source Serif 4', serif;
  --font-body: 'DM Sans', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Tailwind color overrides --- */
.bg-ivory { background-color: var(--ivory); }
.bg-charcoal { background-color: var(--charcoal); }
.text-charcoal { color: var(--charcoal); }
.text-ember { color: var(--ember); }
.text-cream { color: var(--cream); }
.text-gold { color: var(--gold-light); }
.bg-ember { background-color: var(--ember); }
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); }
.font-body { font-family: var(--font-body); }

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-out-expo);
  max-width: 360px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #10B981;
}

.toast.error {
  border-left: 4px solid var(--ember);
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.toast.success .toast-icon {
  color: #10B981;
}

.toast.error .toast-icon {
  color: var(--ember);
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  transition: color 0.2s;
}

.toast-close:hover {
  color: var(--charcoal);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* --- Material Symbols --- */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  font-size: 1.25em;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.preloader-active {
  overflow: hidden;
}

.preloader-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  animation: flipVertical 1s ease-in-out infinite;
}

@keyframes flipVertical {
  0% { transform: perspective(600px) rotateY(0deg); }
  50% { transform: perspective(600px) rotateY(180deg); }
  100% { transform: perspective(600px) rotateY(360deg); }
}

/* ============================================
   MINI HERO (Page Header)
   ============================================ */
.mini-hero {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  background-image: url('/assets/conference/images/bg.png');
  background-size: cover;
  background-position: center;
}

.mini-hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, rgba(26, 32, 44, 0.85) 0%, rgba(44, 55, 78, 0.75) 100%); */
}

.mini-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.mini-hero-content {
  text-align: left;
  margin-top: 5rem;
}

.mini-hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.mini-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  margin-bottom: 8px;
}

.mini-hero-back:hover {
  opacity: 1;
}

.mini-hero-back .material-symbols-outlined {
  font-size: 1.25rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.nav-bar.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-logo-img:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.75rem;
}

.nav-bar.scrolled .nav-logo-img:last-child {
  border-left-color: rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-bar.scrolled .nav-link {
  color: var(--ink);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--white);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #1a1a1a;
  color: var(--white);
}

.nav-bar:not(.scrolled) .nav-btn {
  background: var(--white);
  color: var(--charcoal);
}

.nav-bar:not(.scrolled) .nav-btn:hover {
  background: #e5e5e5;
  color: var(--charcoal);
}

.nav-bar.scrolled .nav-btn {
  background: var(--ember);
  color: var(--white);
}

.nav-bar.scrolled .nav-btn:hover {
  background: var(--ember-deep);
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ember);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--ember);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.nav-bar.scrolled .nav-toggle-bar {
  background: var(--charcoal);
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-bar:not(.scrolled) .nav-toggle.open .nav-toggle-bar {
  background: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--cream);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 26, 48, 0.72), rgba(15, 26, 48, 0.82)),
    url('images/banner.png') center/cover no-repeat;
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding-top: 2rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  color: var(--ember-light);
  font-style: italic;
}

.hero-theme {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.6;
  color: var(--cream);
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.hero-theme-label {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--gold);
  margin-right: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.75);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  min-width: 75px;
  backdrop-filter: blur(8px);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.02em;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 240, 232, 0.45);
  margin-top: 0.4rem;
}

.countdown-separator {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ember-light);
  opacity: 0.6;
  margin-top: -1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.5);
}

.hero-meta-item .material-symbols-outlined {
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.7;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.08);
}

.hero-circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  animation: pulse-slow 8s ease-in-out infinite;
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  border-color: rgba(139, 26, 26, 0.08);
  animation: pulse-slow 10s ease-in-out infinite reverse;
}

.hero-circle-3 {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 15%;
  border-color: rgba(201, 168, 76, 0.05);
  animation: pulse-slow 6s ease-in-out infinite 2s;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quart);
  min-height: 48px;
}

.btn .material-symbols-outlined {
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--ember);
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(139, 26, 26, 0.3);
}

.btn-primary:hover {
  background: var(--ember-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 26, 26, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label-light {
  color: rgba(245, 240, 232, 0.5);
}

.section-label-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.section-label-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--charcoal);
}

.section-heading-light {
  color: var(--cream);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.about-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 600px;
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}

.stat-card {
  background: var(--white);
  padding: 1.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(26, 26, 26, 0.06);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ============================================
   CFP SECTION
   ============================================ */
.section-cfp {
  background: var(--cream);
}

.cfp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .cfp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cfp-card {
  background: var(--ivory);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 26, 0.05);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s;
}

.cfp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.cfp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cfp-card-icon .material-symbols-outlined {
  color: var(--cream);
  font-size: 1.25rem;
}

.cfp-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.cfp-card-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

.cfp-submit {
  background: var(--navy-deep);
  border-radius: 12px;
  overflow: hidden;
}

.cfp-submit-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
}

@media (min-width: 768px) {
  .cfp-submit-inner {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem 3rem;
  }
}

.cfp-submit-icon {
  font-size: 2rem;
  color: var(--gold);
}

.cfp-submit-inner > div {
  flex: 1;
}

.cfp-submit-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.cfp-submit-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.6);
}

/* ============================================
   PUBLICATION SECTION
   ============================================ */
.publication-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 4rem 3rem;
}

.publication-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  z-index: 0;
}

.publication-card-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(201,168,76,0.02) 40px, rgba(201,168,76,0.02) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(201,168,76,0.02) 40px, rgba(201,168,76,0.02) 41px);
}

.publication-card-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08), transparent 70%);
}

.publication-card-content {
  position: relative;
  z-index: 1;
}

.publication-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.75);
  max-width: 600px;
  margin-bottom: 2rem;
}

.publication-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publication-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.publication-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.publication-item .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.25rem;
}

/* ============================================
   TRACKS SECTION
   ============================================ */
.section-tracks {
  background: var(--ivory);
}

.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tracks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.track-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 26, 0.05);
  transition: all 0.3s var(--ease-out-quart);
}

.track-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-color: rgba(139, 26, 26, 0.15);
}

.track-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  min-width: 2rem;
}

.track-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ============================================
   DATES / TIMELINE SECTION
   ============================================ */
.section-dates {
  background: var(--cream);
}

/* ============================================
   HORIZONTAL ZIGZAG TIMELINE
   ============================================ */
.dates-timeline {
  position: relative;
  width: 100%;
  padding: 8rem 0;
}

.timeline-track {
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--parchment), var(--ember));
  border-radius: 3px;
  transform: translateY(-50%);
}

.timeline-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18%;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ivory);
  border: 3px solid var(--parchment);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.3s;
}

.timeline-node-active .timeline-dot {
  border-color: var(--ember);
  background: var(--ember);
  box-shadow: 0 0 0 5px rgba(139, 26, 26, 0.15);
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ivory);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline-node-active .timeline-dot::after {
  opacity: 1;
}

/* Card connector line from dot to card */
.timeline-card::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: var(--parchment);
  transform: translateX(-50%);
}

.timeline-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--ivory);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  cursor: pointer;
}

.timeline-card:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.timeline-desc {
  display: none;
}

/* Above cards — odd items (1, 3) */
.timeline-card-above {
  bottom: calc(50% + 1.5rem);
  top: auto;
}

.timeline-card-above::before {
  bottom: -1.5rem;
}

/* Below cards — even items (2, 4) */
.timeline-card-below {
  top: calc(50% + 1.5rem);
  bottom: auto;
}

.timeline-card-below::before {
  top: -1.5rem;
}

/* Phase label */
.timeline-phase {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ember);
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.6rem;
  background: rgba(139, 26, 26, 0.06);
  border-radius: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.timeline-date {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ember);
  margin-bottom: 0.6rem;
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.section-registration {
  background: var(--ivory);
}

.registration-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 600px;
  margin-bottom: 2rem;
}

.registration-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 769px) {
  .registration-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.reg-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(26, 26, 26, 0.06);
  position: relative;
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s;
}

.reg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.reg-card-featured {
  border-color: var(--ember);
  border-width: 2px;
}

.reg-card-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--ember);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.reg-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.reg-card-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.reg-currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 0.15rem;
}

.reg-card-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.reg-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.reg-card-features li {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  padding-left: 1.25rem;
  position: relative;
}

.reg-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.reg-card-btn {
  width: 50%;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  min-height: fit-content !important;
  margin-top: 1rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--ivory);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, 0.05);
  text-align: center;
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--cream);
  font-size: 1.25rem;
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ember);
  word-break: break-all;
  transition: opacity 0.3s;
}

.contact-link:hover {
  opacity: 0.7;
}

.contact-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.4);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.6);
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-logo-img {
    height: 50px;
  }

  .footer-links {
    width: 100%;
    gap: 1.5rem;
  }

  .footer-col-title {
    margin-bottom: 0.75rem;
  }

  .footer-link {
    padding: 0.4rem 0;
  }
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.3);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.3);
  transition: color 0.3s;
}

.footer-legal-link:hover {
  color: rgba(245, 240, 232, 0.6);
}

/* ============================================
   MOBILE/TABLET RESPONSIVE
   ============================================ */

/* Mobile/Tablet - hamburger menu from 1024px and below */
@media (max-width: 1023px) {
  .nav-logo-img {
    height: 50px;
  }

  .nav-logo-img:last-child {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
    color: var(--ink) !important;
  }

  .nav-btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 6rem 1rem 3rem;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-content {
    padding-top: 1rem;
  }

  .hero-eyebrow {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-eyebrow-line {
    width: 20px;
  }

  .hero-eyebrow-text {
    font-size: 0.6rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-theme {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .hero-theme-label {
    font-size: 0.7rem;
  }

  .countdown {
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .countdown-block {
    padding: 0.4rem 0.5rem;
    min-width: 42px;
  }

  .countdown-number {
    font-size: 1rem;
  }

  .countdown-label {
    font-size: 0.5rem;
  }

  .countdown-separator {
    font-size: 0.85rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .publication-card {
    padding: 3rem 1.5rem;
  }

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

  .registration-cards {
    grid-template-columns: 1fr;
  }

  /* Timeline — stack vertical on mobile */
  .dates-timeline {
    padding: 2rem 0;
  }

  .timeline-track {
    top: 0;
    bottom: 0;
    left: 1.25rem;
    right: auto;
    width: 3px;
    height: auto;
    transform: none;
    background: linear-gradient(180deg, var(--ember), var(--parchment));
  }

  .timeline-nodes {
    flex-direction: column;
    padding: 0;
    gap: 2rem;
  }

  .timeline-node {
    width: 100%;
    flex-direction: row;
    padding-left: 3rem;
  }

  .timeline-dot {
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    transform: translateX(-50%);
  }

  .timeline-card {
    position: relative;
    left: auto;
    top: auto !important;
    bottom: auto !important;
    transform: none;
    width: 100%;
  }

  .timeline-card::before {
    display: none;
  }

  .timeline-card:hover {
    transform: translateY(-2px);
  }

  .hero-theme {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .hero-meta-item {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .section-heading {
    font-size: 2.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-img {
    max-width: 200px;
    margin: 0 auto;
  }

  .cfp-submit-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .track-card {
    padding: 1.25rem;
  }

  .track-num {
    font-size: 1.5rem;
  }

  .track-name {
    font-size: 0.9rem;
  }
}

/* ============================================
   DECORATIVE ACCENTS
   ============================================ */
.section-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--parchment), transparent);
}

.section-cfp::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,26,26,0.06), transparent);
}

.section-tracks::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--parchment), transparent);
}

/* Smooth scroll anchor offset */
html {
  scroll-padding-top: 80px;
}

/* Active nav link */
.nav-link.active {
  color: var(--ember);
}

.nav-link.active::after {
  width: 100%;
}

/* Staggered reveal delays for children */
.section .reveal:nth-child(1) { transition-delay: 0s; }
.section .reveal:nth-child(2) { transition-delay: 0.1s; }
.section .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 1024px) {
  .dates-timeline {
    padding: 7rem 0;
  }

  .timeline-card {
    width: 190px;
    padding: 1.15rem;
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-desc {
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  .dates-timeline {
    padding: 6rem 0;
  }

  .timeline-card {
    width: 160px;
    padding: 1rem;
  }

  .timeline-title {
    font-size: 0.92rem;
  }

  .timeline-date {
    font-size: 0.85rem;
  }

  .timeline-desc {
    font-size: 0.75rem;
  }
}
