/* =============================================
   XRM 2027 – Core Styles (Light Theme)
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Tokens ── */
:root {
  --bg:      #ffffff;
  --bg2:     #f3f4f8;
  --card:    #ffffff;
  --border:  rgba(0,0,0,.09);
  --primary: #4f46e5;
  --primary2: #6366f1;
  --accent:  #7c3aed;
  --text:    #1e1b4b;
  --muted:   #6b7280;
  --white:   #ffffff;
  --sky:     #e0e7ff;

  --font-sans: 'Inter', 'Noto Sans KR', sans-serif;
  --font-display: 'Outfit', 'Noto Sans KR', sans-serif;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 12px rgba(79,70,229,.08), 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 6px 28px rgba(79,70,229,.12), 0 2px 8px rgba(0,0,0,.07);
  --shadow-lg: 0 16px 56px rgba(79,70,229,.14), 0 4px 16px rgba(0,0,0,.08);
  --glow:      0 0 40px rgba(99,102,241,.18);

  --section-pad: 5rem;
  --container-max: 1200px;
}

/* ── Base ── */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-fill-color: initial;
}

body.lang-ko .lang-en { display: none !important; }
body.lang-en .lang-ko { display: none !important; }
body:not(.lang-ko):not(.lang-en) .lang-en { display: none !important; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.95) 50%, rgba(224, 231, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform .3s ease;
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.navbar.hidden { transform: translateY(-100%); }

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 78px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #312e81, #e567dd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-links li a {
  display: block;
  padding: .45rem .8rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #374151;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links li a:hover { color: #4f46e5; background: rgba(79, 70, 229, 0.07); }
.nav-links li a.active { color: #4f46e5; background: rgba(79, 70, 229, 0.1); }
.nav-links li a.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .45rem 1.3rem;
  margin-left: .5rem;
}
.nav-links li a.btn-nav:hover { opacity: .88; }

.lang-toggle-wrap {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: .8rem;
  padding-left: .8rem;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}
.lang-btn {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .4rem .65rem;
  border-radius: 4px;
  color: #6b7280;
  background: transparent;
  transition: .15s;
}
.lang-btn:hover { color: #4f46e5; background: rgba(79, 70, 229, 0.08); }
.lang-btn.active { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.lang-divider { color: #d1d5db; }

.nav-toggle {
  display: none;
  font-size: 1.55rem;
  color: #1e1b4b;
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,.15);
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  background: transparent;
  color: var(--primary2);
  font-weight: 600;
  font-size: .85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(99,102,241,.4);
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(99,102,241,.1); border-color: var(--primary); }

/* ── Page Hero ── */
.page-hero {
  position: relative;
  margin-top: 78px;
  padding: 6rem 0 5rem;
  background-color: #1e1b4b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(49, 46, 129, 0.6) 100%);
  pointer-events: none;
}
.page-hero-label {
  position: relative;
  z-index: 2;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #ffffff;
  margin-bottom: 1rem;
}
.page-hero p {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Hero ── */
.hero {
  position: relative;
  margin-top: 78px;
  min-height: 12vh;
  padding: 1.2rem 0 1rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero_bg_xrm2027.png');
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(30, 27, 75, 0.65) 100%),
              radial-gradient(ellipse at 20% 70%, rgba(99,102,241,.3) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 20%, rgba(219,39,119,.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary2);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--white);
  max-width: 900px;
  margin-bottom: 2rem;
}
.hero-theme {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(99,102,241,.5);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
}
.hero-meta-item strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Stats ── */
.stats-strip { background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%); border-top: none; border-bottom: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 2.5rem 2rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 800; color: #ffffff; }
.stat-label { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: .5rem; letter-spacing: .06em; text-transform: uppercase; }

/* ── Section ── */
section { padding: var(--section-pad) 0; }

.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
}
.highlight { color: var(--primary); }

/* ── Coming soon ── */
.coming-soon-notice {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-sm);
  padding: .9rem 1.2rem;
  font-size: .85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 3rem;
}

/* ── Cards ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.25rem;
}
.about-card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.25); }
.about-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: #eef2ff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.about-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.about-card p { font-size: .85rem; color: var(--muted); line-height: 1.75; }

/* ── Program items ── */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.25rem; }
.program-item {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.program-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.25); }
.program-item-icon { width: 28px; height: 28px; margin-bottom: 1rem; }
.program-item-icon svg { width: 100%; height: 100%; }
.program-sub { font-size: .80rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .5rem; font-weight: 600; }
.program-item h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.program-item p { font-size: .84rem; color: var(--muted); line-height: 1.75; }

/* ── Speakers ── */
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 1.25rem; }
.speaker-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.speaker-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #eef2ff;
  border: 2px solid #c7d2fe;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.speaker-card h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.speaker-card p { font-size: .78rem; color: var(--muted); }
.speaker-tag {
  display: inline-block;
  margin-top: .65rem;
  padding: .2rem .65rem;
  font-size: .63rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
}

/* ── Deadlines ── */
.deadline-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin: 1.5rem 0; }
.deadline-item {
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.deadline-item:hover { border-color: rgba(79,70,229,.3); box-shadow: var(--shadow-md); }
.deadline-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.deadline-date { font-size: 1rem; font-weight: 700; color: var(--text); }

/* ── Topic pills ── */
.theme-topics { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0; }
.topic-pill {
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid #e0e7ff;
  color: #4338ca;
  background: #eef2ff;
  transition: all .2s;
  cursor: default;
}
.topic-pill:hover { background: #4f46e5; border-color: #4f46e5; color: #ffffff; }

/* ── Info box ── */
.info-box {
  border-radius: var(--radius);
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}
.info-box h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.info-box p { font-size: .9rem; color: var(--muted); line-height: 1.8; }

/* ── Direction cards ── */
.direction-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.25rem; }
.direction-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.direction-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.25); }
.direction-num { font-size: .7rem; letter-spacing: .12em; color: var(--primary); font-weight: 600; margin-bottom: .9rem; opacity: .7; }
.direction-card h3 { font-size: .98rem; font-weight: 700; color: var(--text); margin-bottom: .55rem; }
.direction-card p { font-size: .84rem; color: var(--muted); line-height: 1.75; }

/* ── Registration cards ── */
.reg-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.25rem; margin: 2rem 0; }
.reg-card {
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.reg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.reg-card.featured { background: linear-gradient(135deg, #4f46e5, #7c3aed); border-color: transparent; box-shadow: 0 8px 32px rgba(79,70,229,.35); }
.reg-type { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; font-weight: 600; }
.reg-card.featured .reg-type { color: rgba(255,255,255,.65); }
.reg-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 1.5rem; }
.reg-card.featured .reg-price { color: #ffffff; }
.reg-features { margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.reg-features li { font-size: .83rem; color: var(--muted); }
.reg-card.featured .reg-features li { color: rgba(255,255,255,.75); }
.reg-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .6rem;
  background: linear-gradient(135deg,var(--primary),var(--accent));
  color: var(--white); border-radius: 100px; font-weight: 600;
}

/* ── Sponsor logos ── */
.sponsor-logos-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 1.1rem; margin: 2rem 0; }
.sponsor-logo-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed #c7d2fe;
  font-size: .66rem; letter-spacing: .1em; color: #a5b4fc;
  text-transform: uppercase; background: #f5f5ff;
}

/* ── Map placeholder ── */
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  height: 220px; border-radius: var(--radius); border: 1.5px dashed #c7d2fe;
  background: #f5f5ff; font-size: .85rem; color: var(--muted); margin: 2rem 0;
}

/* ── Venue info ── */
.venue-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.venue-info-card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.venue-info-card:hover { border-color: rgba(79,70,229,.25); box-shadow: var(--shadow-md); }
.venue-info-card h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.venue-info-card p, .venue-info-card a { font-size: .85rem; color: var(--muted); line-height: 1.8; }
.venue-info-card a:hover { color: var(--primary); }

/* ── Seoul banner ── */
.seoul-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 2rem; }
.seoul-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.seoul-text {
  padding: 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
  background: #f5f5ff; border-left: 1px solid #e0e7ff;
}
.seoul-text h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.seoul-text p { font-size: .9rem; color: var(--muted); line-height: 1.85; margin-bottom: .75rem; }

/* ── Mailing form ── */
.mailing-form { display: flex; gap: .6rem; max-width: 460px; }
.mailing-form input {
  flex: 1; padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  font: inherit; font-size: .9rem;
  background: rgba(255,255,255,.12); color: var(--white);
  outline: none; transition: border-color .2s;
}
.mailing-form input::placeholder { color: rgba(255,255,255,.45); }
.mailing-form input:focus { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.18); }
.mailing-form button {
  padding: .75rem 1.4rem;
  background: #ffffff;
  color: var(--primary); font-size: .85rem; font-weight: 700;
  border-radius: var(--radius-sm); white-space: nowrap; transition: opacity .2s;
}
.mailing-form button:hover { opacity: .9; }
.mailing-success { margin-top: .8rem; font-size: .85rem; color: #a7f3d0; font-weight: 500; }

/* ── Footer ── */
.footer { background: #1e1b4b; border-top: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .nav-logo { margin-bottom: .8rem; display: block; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.75; }
.footer-links h4, .footer-newsletter h4 { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.2rem; font-weight: 500; }
.footer-links ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-newsletter p { font-size: .83rem; color: rgba(255,255,255,.5); }
.footer-bottom { padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .77rem; color: rgba(255,255,255,.25); }
.footer-note { font-size: .65rem !important; }

/* ── Fade-in ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Utilities ── */
.bg-cream { background: #f5f5ff; }
.bg-white { background: var(--bg); }
.text-center { text-align: center; }
.section-mono { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.intro-split { display: grid; grid-template-columns: 1fr 1.7fr; gap: 5rem; align-items: start; margin-bottom: 4rem; }

/* ── Responsive ── */

@media (max-width: 1200px) {
  .nav-logo { font-size: 1.7rem; }
  .nav-links li a { font-size: 1rem; padding: .4rem .6rem; }
  .lang-btn { font-size: .85rem; padding: .3rem .5rem; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .intro-split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem; }
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; height: calc(100vh - 78px); bottom: auto; flex-direction: column; align-items: stretch; background: #eef2ff; padding: 1rem; gap: .3rem; overflow-y: auto; z-index: 999; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: .7rem 1rem; border-radius: var(--radius-sm); }
  .lang-toggle-wrap { justify-content: center; border-left: none; border-top: 1px solid rgba(0,0,0,.1); padding-top: .8rem; margin-left: 0; }
  .nav-toggle { display: block; }
  .hero-title { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid, .program-grid, .direction-grid { grid-template-columns: 1fr; }
  .speakers-grid { grid-template-columns: repeat(2,1fr); }
  .deadline-grid { grid-template-columns: 1fr 1fr; }
  .reg-cards { grid-template-columns: 1fr; }
  .seoul-banner { grid-template-columns: 1fr; }
  .seoul-img { display: none; }
  .venue-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
  .mailing-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .speakers-grid { grid-template-columns: 1fr; }
  .deadline-grid { grid-template-columns: 1fr; }
}

/* =============================================
   XRM 2027 Professional Event Redesign
   ============================================= */
:root {
  --bg: #f8f8ff;
  --bg2: #eef0ff;
  --card: #ffffff;
  --border: #d9d9ee;
  --primary: #4f46e5;
  --primary2: #7c3aed;
  --accent: #ec4899;
  --text: #17143f;
  --muted: #62677e;
  --white: #ffffff;
  --sky: #dfe7ff;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 0 rgba(17, 24, 39, .06);
  --shadow-md: 0 16px 36px rgba(17, 24, 39, .08);
  --shadow-lg: 0 28px 70px rgba(17, 24, 39, .14);

  --section-pad: 6rem;
  --container-max: 1180px;
}

html { background: var(--bg); }

body {
  background:
    linear-gradient(90deg, rgba(79,70,229,.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, #f8f8ff 0%, #f3f5ff 100%);
  color: var(--text);
  letter-spacing: 0;
}

body::selection { background: #ddd6fe; color: #17143f; }

.container,
.nav-container,
.hero-content {
  max-width: var(--container-max);
}

.navbar {
  background: rgba(248, 248, 255, .94);
  border-bottom: 1px solid rgba(23, 20, 63, .12);
  box-shadow: none;
}

.nav-container { height: 72px; }

.nav-logo,
.footer .nav-logo {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-logo span,
.footer .nav-logo span {
  color: #2563eb;
  -webkit-text-fill-color: currentColor !important;
}

.footer .nav-logo {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.footer .nav-logo span {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
}

.nav-links { gap: .2rem; }

.nav-links li a {
  color: #28264b;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  padding: .45rem .75rem;
}

.nav-links li a:hover,
.nav-links li a.active,
.lang-btn:hover,
.lang-btn.active {
  color: #312e81;
  background: rgba(124, 58, 237, .1);
}

.nav-links li a.btn-nav,
.btn-primary {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 48%, #ec4899 100%);
  color: #fff;
  border: 0;
  box-shadow: none;
}

.nav-links li a.btn-nav:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 50%, #db2777 100%);
  opacity: 1;
  transform: translateY(-1px);
}

.lang-toggle-wrap {
  border-left-color: rgba(17, 24, 39, .14);
}

.lang-btn {
  color: #6a7280;
  letter-spacing: .02em;
}

.nav-toggle {
  color: var(--text);
  border-color: rgba(23, 20, 63, .18);
  background: #fff;
}

.hero {
  margin-top: 72px;
  min-height: clamp(560px, 78svh, 760px);
  padding: 0;
  background: #1e1b4b;
  isolation: isolate;
}

.hero-bg {
  opacity: .66;
  filter: saturate(.95) contrast(1.04);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(17, 15, 61, .9) 0%, rgba(49, 46, 129, .66) 48%, rgba(79, 70, 229, .2) 100%),
    linear-gradient(180deg, rgba(17, 15, 61, .16), rgba(30, 27, 75, .78));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, #ec4899 0%, #7c3aed 46%, #06b6d4 100%);
  z-index: 3;
}

.hero-content {
  padding: clamp(4rem, 6vw, 6.5rem) 2rem clamp(4.25rem, 6vw, 6rem);
}

.hero-title {
  max-width: 820px;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  filter: none !important;
  font-size: clamp(3rem, 8vw, 7.2rem) !important;
  line-height: .94 !important;
  letter-spacing: 0 !important;
  margin-bottom: 1.6rem !important;
}

.hero-title span:not(.lang-ko):not(.lang-en) {
  color: #f472b6 !important;
  -webkit-text-fill-color: #f472b6 !important;
}

.hero-meta {
  gap: .7rem !important;
  margin-bottom: 1.5rem !important;
}

.hero-meta-item {
  padding: .5rem .75rem;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border-radius: 999px;
}

.hero-meta-item svg { stroke: #a5b4fc !important; }
.hero-meta-item span { color: rgba(255,255,255,.9) !important; font-size: .86rem !important; }

.hero-content > p {
  max-width: 760px !important;
  color: rgba(255,255,255,.9) !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.hero-theme-line {
  display: block;
}

.hero-theme-phrase {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-theme-line > .hero-theme-phrase {
    display: block;
  }
}

.hero-actions { gap: .75rem; }

.btn-primary,
.btn-secondary,
.btn-outline {
  min-height: 44px;
  border-radius: 999px;
  padding: .76rem 1.2rem;
  font-size: .86rem;
  font-weight: 800;
}

.btn-primary,
.nav-links li a.btn-nav {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 10px 26px rgba(79,70,229,.22);
}

.btn-primary::after,
.nav-links li a.btn-nav::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}

.btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.16);
}

.btn-outline,
a[style*="background:#eef2ff"] {
  color: #312e81 !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 999px !important;
}

.btn-outline:hover,
a[style*="background:#eef2ff"]:hover {
  background: #e0e7ff !important;
  border-color: #a5b4fc !important;
}

section:not(.hero):not(.page-hero):not(#mailing):not(.home-program),
body[data-page="home"] section:not(.hero):not(.page-hero):not(#mailing):not(.home-program)[style*="background:#fff"],
body[data-page="home"] section:not(.hero):not(.page-hero):not(#mailing):not(.home-program)[style*="background:#f5f5ff"] {
  background: transparent !important;
}

body[data-page="home"] section:not(.hero) {
  border-bottom: 1px solid rgba(49, 46, 129, .11);
}

body[data-page="home"] section:not(.hero):not(.home-program):nth-of-type(even) {
  background: rgba(255,255,255,.55) !important;
}

.section-title {
  color: var(--text) !important;
  font-size: clamp(1.85rem, 3vw, 3.15rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  font-weight: 900 !important;
}

body[data-page="home"] section > .container > div:first-child h2::before,
body[data-page="home"] section > .container > h2::before,
.section-title::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: .9rem;
  background: linear-gradient(90deg, #ec4899 0%, #7c3aed 50%, #06b6d4 100%);
}

body[data-page="home"] section > .container > p,
.section-desc,
.info-box p,
.direction-card p,
.program-item p,
.about-card p,
.venue-info-card p,
.venue-info-card a {
  color: var(--muted) !important;
}

.about-grid,
.program-grid,
.direction-grid,
.reg-cards,
.sponsor-logos-grid,
.speakers-grid {
  gap: 1px !important;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-grid,
.speakers-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.speakers-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  background: #fff !important;
  gap: 0 !important;
}

.speakers-grid .speaker-card {
  border-right: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
}

.about-card,
.program-item,
.direction-card,
.speaker-card,
.reg-card,
.venue-info-card,
.deadline-item,
.info-box,
div[style*="border:1px solid #e0e7ff"],
div[style*="border:1.5px dashed #c7d2fe"] {
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.about-card,
.program-item,
.direction-card,
.speaker-card,
.reg-card,
.venue-info-card {
  padding: 2rem !important;
}

.about-card:hover,
.program-item:hover,
.direction-card:hover,
.speaker-card:hover,
.reg-card:hover,
.venue-info-card:hover,
.deadline-item:hover {
  transform: none;
  box-shadow: inset 0 0 0 2px rgba(124, 58, 237, .22) !important;
}

.about-icon,
.speaker-avatar,
.program-item-icon {
  color: var(--primary);
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

.about-icon svg,
.program-item-icon svg,
.speaker-avatar svg {
  stroke: var(--primary) !important;
}

.about-icon {
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 1rem !important;
}

.program-item-icon {
  width: 36px !important;
  height: 36px !important;
  margin-bottom: 1.1rem !important;
}

.program-item-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.speaker-avatar {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 1rem !important;
}

.speaker-avatar svg {
  width: 29px !important;
  height: 29px !important;
}

.about-card h3,
.direction-card h3,
.speaker-card h4,
.info-box h3,
.venue-info-card h4 {
  color: var(--text) !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}

.speaker-card h4 {
  letter-spacing: -.01em !important;
  word-spacing: 0 !important;
  white-space: normal !important;
}

.program-sub,
.direction-num,
.section-label,
.section-mono,
.deadline-label,
.reg-type,
.speaker-tag {
  color: var(--primary) !important;
  letter-spacing: .08em;
  font-weight: 900;
}

.topic-pill,
.speaker-tag {
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  color: #312e81 !important;
  border-radius: 999px !important;
}

.deadline-grid {
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.deadline-date,
.reg-price {
  color: var(--text) !important;
}

.reg-card.featured {
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 55%, #ec4899 100%) !important;
  color: #fff;
}

.reg-card.featured .reg-type,
.reg-card.featured .reg-price,
.reg-card.featured .reg-features li {
  color: #fff !important;
}

.reg-badge {
  background: #f472b6;
  color: #fff;
  border-radius: 999px;
}

.sponsor-logo-placeholder,
div[style*="height:90px"][style*="dashed"] {
  background:
    repeating-linear-gradient(135deg, #fff 0 12px, #f6f8f7 12px 24px) !important;
  color: #7b8491 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.page-hero {
  margin-top: 72px;
  min-height: 300px;
  display: grid;
  place-content: end start;
  text-align: left;
  padding: 6.5rem max(2rem, calc((100vw - var(--container-max)) / 2)) 3.5rem;
  background-color: #1e1b4b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(17,15,61,.9) 0%, rgba(49,46,129,.62) 50%, rgba(79,70,229,.24) 100%),
    linear-gradient(180deg, rgba(17,15,61,.15), rgba(30,27,75,.78));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, #ec4899 0%, #7c3aed 46%, #06b6d4 100%);
  z-index: 2;
}

.page-hero-label {
  color: #c4b5fd;
  letter-spacing: .12em;
  margin-bottom: .9rem;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: 0;
  margin: 0;
}

.coming-soon-notice {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-left: 6px solid #7c3aed;
  border-radius: var(--radius);
  box-shadow: none;
}

section#mailing {
  background-image: url('img/mailing_bg_xrm2027.png') !important;
}

section#mailing > div:first-child {
  background:
    radial-gradient(circle at 50% 54%, rgba(17,15,61,.52) 0%, rgba(17,15,61,.78) 48%, rgba(17,15,61,.9) 100%),
    linear-gradient(90deg, rgba(17,15,61,.82), rgba(49,46,129,.64)) !important;
}

section#mailing h2,
section#mailing p,
section#mailing span,
section#mailing div {
  color: #fff !important;
}

section#mailing .container {
  max-width: min(920px, calc(100vw - 3rem)) !important;
}

section#mailing h2 {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-wrap: balance;
}

section#mailing h2::before {
  margin-left: auto;
  margin-right: auto;
}

section#mailing p {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: rgba(255,255,255,.78) !important;
}

.mailing-form input,
#mailingEmail {
  border-radius: 999px !important;
  border-color: rgba(255,255,255,.38) !important;
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
}

.mailing-form input::placeholder,
#mailingEmail::placeholder {
  color: rgba(255,255,255,.66) !important;
}

.mailing-form button,
form[onsubmit*="handleSubscribe"] button {
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #4f46e5, #ec4899) !important;
}

.footer {
  background: #11103a;
  border-top: 8px solid #7c3aed;
}

.footer-grid {
  border-bottom-color: rgba(255,255,255,.12);
}

.footer-links h4,
.footer-newsletter h4 {
  color: rgba(255,255,255,.58);
  letter-spacing: .1em;
}

.footer-brand p,
.footer-links a,
.footer-newsletter p,
.footer-bottom p {
  color: rgba(255,255,255,.62);
}

.footer-links a:hover,
.footer-newsletter a:hover {
  color: #c4b5fd !important;
}

@media (max-width: 900px) {
  .nav-links {
    background: rgba(248,248,255,.98);
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 4.25rem 1.25rem 4rem;
  }

  .hero-title {
    font-size: clamp(2.65rem, 14vw, 5rem) !important;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    justify-content: center;
  }

  .about-grid,
  .program-grid,
  .direction-grid,
  .reg-cards,
  .sponsor-logos-grid,
  .speakers-grid,
  .deadline-grid {
    grid-template-columns: 1fr !important;
  }

  .page-hero {
    min-height: 260px;
    padding: 5rem 1.25rem 2.6rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    top: 72px !important;
    height: calc(100vh - 72px) !important;
    border-top: 0 !important;
    margin-top: -1px;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Official conference information */
.conference-content {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.conference-section {
  padding: 0;
}

.conference-section + .conference-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.conference-section h2 {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.3;
  color: var(--text);
}

.conference-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.conference-theme {
  max-width: 940px;
}

.conference-introduction p {
  max-width: 880px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.conference-introduction p:nth-last-child(-n + 2) {
  margin-bottom: 0;
}

.conference-introduction .theme-emphasis {
  color: var(--primary);
  font-weight: 800;
}

.theme-ending {
  white-space: nowrap;
}

.conference-section p,
.conference-list,
.submission-structure {
  color: var(--muted);
  line-height: 1.85;
}

.submission-tracks,
.presentation-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.presentation-tracks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.submission-track,
.presentation-track {
  min-width: 0;
  padding: 1.75rem;
  background: #fff;
}

.submission-track .track-length {
  margin-top: .65rem;
  color: var(--text);
  font-weight: 600;
}

.submission-track .structure-label {
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  font-weight: 600;
}

.submission-structure {
  padding-left: 1.35rem;
}

.conference-list {
  list-style: disc;
  padding-left: 1.4rem;
}

.conference-list li + li {
  margin-top: .5rem;
}

.proceedings-lengths {
  margin-top: 1rem;
}

.submission-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  border-radius: var(--radius);
}

.submission-panel .btn-primary {
  flex-shrink: 0;
  text-align: center;
}

.submission-panel .deadline-label {
  margin-top: 1.25rem;
  font-size: .9rem;
}

.submission-panel .deadline-value {
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

body[data-page="register"] main {
  background: linear-gradient(180deg, #fff 0%, #faf9ff 100%);
}

.registration-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  width: 100%;
  margin-inline: auto;
}

.registration-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
}

.registration-intro h2 {
  margin: 0;
}

.registration-intro p {
  max-width: 34rem;
  margin: 0;
  color: #535560;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.registration-calendar {
  width: 100%;
  margin: 0;
  padding: 0;
}

.registration-calendar-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2.75rem .75rem 1.5rem .125rem;
  scrollbar-width: thin;
  scrollbar-color: #c9c7d4 transparent;
}

.registration-calendar-scroll:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.registration-calendar-strip {
  display: flex;
  align-items: center;
  min-width: 1080px;
  height: 132px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.registration-calendar-strip li {
  position: relative;
  display: flex;
  flex: 1 0 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80px;
  border: 1px solid #e9e7f2;
  border-right: 0;
  background: linear-gradient(180deg, #fafaff, #fff);
  text-align: center;
}

.registration-calendar-strip li:first-child {
  border-radius: 8px 0 0 8px;
}

.calendar-weekday {
  color: #706e7b;
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.4;
}

.registration-calendar-strip time {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 40px;
  color: #656079;
  font-size: .875rem;
  font-weight: 500;
}

.registration-calendar-strip .calendar-sunday .calendar-weekday,
.registration-calendar-strip .calendar-sunday time {
  color: #c63e50;
}

.registration-calendar-strip .calendar-deadline {
  position: sticky;
  right: 0;
  z-index: 1;
  flex: 0 0 92px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  background: linear-gradient(155deg, #8975ff, #6246ec 52%, #4f46df);
  box-shadow: -8px 0 0 #fcfbff, 0 14px 24px -9px rgba(86, 63, 203, .4);
}

.calendar-deadline .calendar-weekday {
  position: absolute;
  top: 17px;
  color: #f5f2ff;
  font-size: .75rem;
  font-weight: 500;
}

.registration-calendar-strip .calendar-deadline time {
  width: auto;
  height: 64px;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.calendar-deadline-accent {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 68px;
  height: 32px;
  color: #8065ee;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (max-width: 700px) {
  .registration-overview {
    gap: 1.75rem;
  }
}

.conference-dates > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .7fr);
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.conference-dates > div:nth-child(odd) {
  background: #eef2ff;
}

.conference-dates dt {
  color: var(--muted);
}

.conference-dates dd {
  font-weight: 700;
}

@media (max-width: 900px) {
  .submission-tracks,
  .presentation-tracks {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .conference-content {
    padding: 2rem 1.25rem 3rem;
  }

  .conference-section + .conference-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .submission-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
  }

  .conference-dates > div {
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
  }

}

/* Content polish: retain the existing section and card order. */
body[data-page="home"] .home-section {
  padding: 4rem 0 !important;
}

/* One type scale for each heading level on the home page. */
body[data-page="home"] .home-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--text) !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body[data-page="home"] .home-section h3 {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  font-weight: 700 !important;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.home-section .section-heading {
  margin-bottom: 2rem !important;
}

.home-section .about-card,
.home-section .program-item {
  padding: 1.5rem !important;
  min-width: 0;
}

.home-section .about-card h3 {
  margin-bottom: .75rem;
}

.home-section .about-card p,
.home-section .program-item p {
  font-size: .9375rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body[data-page="home"] section.home-section.home-program {
  background: #fff !important;
  border-bottom: 0;
}

body[data-page="home"] section.home-program > .container > .section-heading h2::before {
  display: none;
}

.home-conference-activities {
  background: #fff;
  border-bottom: 1px solid rgba(49, 46, 129, .11);
}

.program-details {
  padding: .5rem 0;
  color: #444652;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-color: #c3c4ca;
}

.program-details:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.program-list {
  border-top: 1px solid #2e3039;
}

.program-row {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr);
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e3e3e8;
}

.program-name {
  margin: 0;
  color: #242630;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.65;
  word-break: keep-all;
}

.program-description {
  min-width: 0;
  color: #5c5e68;
  font-size: .9375rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.program-description strong {
  color: #343641;
  font-weight: 650;
}

.program-description .program-lead {
  margin-bottom: .3rem;
  color: #343641;
  font-weight: 600;
}

.program-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.program-facts dt,
.program-structure-label {
  display: inline-block;
  margin: 0 0 .6rem;
  padding: .25rem .5rem;
  border-radius: 3px;
  background: #f1eff8;
  color: #514776;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.program-facts dd {
  margin: 0;
  padding-inline-start: .75rem;
  color: #343641;
}

.program-facts dd > strong {
  display: block;
  color: #3730a3;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.program-note {
  display: block;
  margin-top: .3rem;
  color: #666874;
  font-size: .8125rem;
}

.program-structure {
  margin-top: 1.25rem;
}

.program-outline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 2rem;
  padding: 0 0 0 1.4rem;
  margin: 0;
  list-style: decimal;
  font-size: .875rem;
}

.program-outline li {
  margin-inline-start: .75rem;
  padding-left: .2rem;
}

.program-outline li::marker {
  color: #777985;
  font-variant-numeric: tabular-nums;
}

.program-activities {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  margin: 0 0 .4rem;
  padding: 0;
  color: #343641;
  font-weight: 600;
  list-style: none;
}

.program-activities li {
  position: relative;
  padding-left: .75rem;
}

.program-activities li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 3px;
  height: 3px;
  background: #7d7f8b;
}

.program-activities-paired {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
  font-weight: 500;
}

@media (max-width: 700px) {
  .program-row {
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
    padding: 1.25rem 0;
  }

  .program-name {
    font-size: 1rem;
  }

  .program-facts {
    gap: 1rem;
  }

  .program-activities-paired {
    gap: .45rem 1rem;
  }
}

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

  .program-activities-paired {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-speakers > .container > p {
  margin-bottom: 1.5rem !important;
}

.home-speakers .speaker-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .7rem;
  row-gap: .25rem;
  padding: 1.25rem 1rem !important;
  text-align: left !important;
}

.home-speakers .speaker-avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
}

.home-speakers .speaker-avatar svg {
  width: 20px !important;
  height: 20px !important;
}

.home-speakers .speaker-card h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  font-size: .9375rem !important;
  line-height: 1.45;
}

.home-speakers .speaker-card p {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  font-size: .875rem !important;
}

.home-speakers .speaker-tag {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  letter-spacing: .02em;
}

.venue-placeholder {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px dashed #c7c7e7;
  border-radius: var(--radius);
  background: rgba(255,255,255,.7);
  color: var(--muted);
  text-align: center;
  font-size: .9375rem;
}

.pending-sponsors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 3rem;
}

.pending-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border: 1px dashed #c7c7e7;
  border-radius: var(--radius);
  background: rgba(255,255,255,.6);
  color: var(--muted);
  font-size: .8125rem;
}

@media (min-width: 601px) and (max-width: 900px) {
  .home-speakers .speakers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  body[data-page="home"] .home-section {
    padding: 3rem 0 !important;
  }

  .home-section > .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .home-section .section-heading {
    margin-bottom: 1.5rem !important;
    gap: .75rem !important;
  }

  .home-section > .container > h2 {
    margin-bottom: 1.5rem !important;
  }

  .home-section .about-card,
  .home-section .program-item {
    padding: 1.25rem !important;
  }

  .conference-introduction p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .pending-sponsors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 2rem;
  }

  .venue-placeholder {
    min-height: 96px;
    margin-bottom: 1.5rem;
  }
}
