/* ──────────────────────────────────────────────────────────────────
   ConfManager — Public site design system
   Editorial / academic aesthetic
   Navy + cream + medal-gold
   ──────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --ink:        #0a1f3a;   /* deep navy */
  --ink-soft:   #1a3556;
  --ink-line:   rgba(10,31,58,0.12);
  --cream:      #f6f1e6;   /* page bg */
  --cream-deep: #ece4d2;
  --paper:      #ffffff;
  --gold:       #b89042;   /* medal gold, slightly desaturated */
  --gold-bright:#d4a256;
  --teal:       #0d3d4a;
  --rust:       #8a3a1c;   /* secondary accent for emphasis */
  --muted:      #6c7a8c;

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--rust); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography ────────────────────────────────────────────────── */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.muted { color: var(--muted); }
.italic-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ── Navbar ────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 230, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: .55rem;
}
.brand .mark {
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .05em;
  border-radius: 2px;
}
.nav-links {
  display: flex; gap: 1.65rem;
  font-size: .9rem;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: .5rem; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-primary  { background: var(--ink); color: var(--cream); }
.btn-primary:hover  { background: var(--ink-soft); color: var(--cream); transform: translateY(-1px); }
.btn-gold     { background: var(--gold); color: var(--ink); }
.btn-gold:hover     { background: var(--gold-bright); color: var(--ink); transform: translateY(-1px); }
.btn-ghost    { background: transparent; color: var(--ink); border-color: var(--ink-line); }
.btn-ghost:hover    { border-color: var(--ink); color: var(--ink); }
.btn-link     { background: transparent; padding: .5rem 0; color: var(--ink-soft); }
.btn-link:hover     { color: var(--rust); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}
.hero::before {
  /* topographic decoration */
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(184,144,66,0.10) 0, transparent 35%),
    radial-gradient(circle at 90% 90%, rgba(13,61,74,0.07) 0, transparent 40%);
  pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 .accent {
  display: inline-block;
  color: var(--gold);
  font-style: italic;
}
.hero-meta {
  margin-top: 2rem;
  border-top: 1px solid var(--ink-line);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.hero-meta .item .lbl {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.hero-meta .item .val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.poster-frame {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--paper);
  border: 1px solid var(--ink-line);
  box-shadow:
    0 1px 0 var(--ink-line),
    0 30px 60px -25px rgba(10,31,58,0.35),
    0 12px 30px -20px rgba(10,31,58,0.25);
  transform: rotate(1.2deg);
  transition: transform .4s ease;
}
.poster-frame:hover { transform: rotate(0deg) scale(1.01); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-frame .placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--cream-deep) 0 12px, var(--cream) 12px 24px);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.poster-tag {
  position: absolute; left: -10px; top: 1.5rem;
  background: var(--rust); color: var(--cream);
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .2em;
  padding: .4rem .7rem;
  text-transform: uppercase;
}

/* ── Section ───────────────────────────────────────────────────── */
.section { padding: 5rem 0; position: relative; }
.section.alt { background: var(--paper); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.section.ink { background: var(--ink); color: var(--cream); }
.section.ink h1, .section.ink h2, .section.ink h3 { color: var(--cream); }
.section.ink .muted { color: rgba(246,241,230,0.65); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: end;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}
.section-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--gold);
  letter-spacing: .15em;
}
.section-num::after {
  content: ''; display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  margin-top: .8rem;
}
.section-title h2 { margin-bottom: .5rem; }

/* ── Announcement banner ───────────────────────────────────────── */
.banner-strip {
  background: var(--ink);
  color: var(--cream);
  padding: .85rem 0;
  font-size: .87rem;
}
.banner-strip .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.banner-strip .tag {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase;
  padding: .15rem .55rem; margin-right: .8rem;
}
.banner-strip a { color: var(--gold-bright); }

/* ── Deadline cards ────────────────────────────────────────────── */
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .deadline-grid { grid-template-columns: 1fr; } }
.deadline-card {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  padding: 1.75rem;
  position: relative;
}
.deadline-card::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 3px; height: 100%; background: var(--gold);
}
.deadline-card .num {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .2em; color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.deadline-card h3 { margin-bottom: .25rem; font-size: 1.4rem; }
.deadline-card .deadline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--rust);
  margin: .25rem 0 1rem;
}
.deadline-card.closed .deadline { color: var(--muted); text-decoration: line-through; }
.deadline-card.closed::before { background: var(--muted); }

/* ── Speakers ──────────────────────────────────────────────────── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.speaker {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.speaker .photo {
  aspect-ratio: 4/5;
  background: var(--cream-deep);
  overflow: hidden;
  position: relative;
}
.speaker .photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(40%) contrast(1.05);
  transition: filter .4s ease, transform .4s ease;
}
.speaker:hover .photo img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.02);
}
.speaker .photo .role-tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .15em;
  padding: .4rem .65rem;
  text-transform: uppercase;
}
.speaker h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.speaker .affil { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.speaker .mode {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--teal); margin-top: .35rem;
}

/* ── Scope / Topics ────────────────────────────────────────────── */
.topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-line);
}
@media (max-width: 720px) { .topic-list { grid-template-columns: 1fr; } }
.topic {
  padding: 2rem 0;
  border-bottom: 1px solid var(--ink-line);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.topic + .topic { border-left: none; }
.topic-list .topic:nth-child(odd) { padding-right: 2rem; }
.topic-list .topic:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--ink-line); }
@media (max-width: 720px) {
  .topic-list .topic:nth-child(odd),
  .topic-list .topic:nth-child(even) { padding: 2rem 0; border-left: none; }
}
.topic .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.topic h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.topic p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ── Countdown ─────────────────────────────────────────────────── */
.countdown {
  display: flex; justify-content: center; gap: 2.5rem;
  font-family: var(--font-display);
}
@media (max-width: 640px) { .countdown { gap: 1.25rem; } }
.countdown .unit {
  display: flex; flex-direction: column; align-items: center;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .5rem;
  min-width: 84px;
}
.countdown .unit .n {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.countdown .unit .l {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .6rem;
}

/* ── Venue ─────────────────────────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}
@media (max-width: 820px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-info { display: flex; flex-direction: column; justify-content: center; }
.venue-map {
  aspect-ratio: 16/12;
  background: var(--cream-deep);
  border: 1px solid var(--ink-line);
}
.venue-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Contact ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.contact-card .role {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.contact-card .name { font-family: var(--font-display); font-size: 1.15rem; }
.contact-card a { font-size: .92rem; }
.contact-card svg, .contact-card .ico { color: var(--teal); }

/* ── Logo strip ────────────────────────────────────────────────── */
.logo-strip {
  display: flex; gap: 2rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
  padding: 1.5rem 0;
}
.logo-strip img { height: 44px; opacity: .8; filter: grayscale(20%); transition: opacity .2s; }
.logo-strip img:hover { opacity: 1; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 4px solid var(--gold);
  padding: 3rem 0 1.5rem;
}
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer a { color: var(--gold-bright); }
.footer .small { font-size: .82rem; opacity: .7; }

/* ── Tracks chips ──────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .65rem;
  background: var(--cream-deep);
  color: var(--ink);
  border: 1px solid var(--ink-line);
}

/* ── Reveal on scroll ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-stagger="1"] { transition-delay: .08s; }
.reveal[data-stagger="2"] { transition-delay: .16s; }
.reveal[data-stagger="3"] { transition-delay: .24s; }
.reveal[data-stagger="4"] { transition-delay: .32s; }

/* ── Utilities ─────────────────────────────────────────────────── */
.divider-gold { height: 1px; background: var(--gold); width: 60px; margin: 1rem 0; }
.rule { border: 0; height: 1px; background: var(--ink-line); margin: 2rem 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* ── Small screen tweaks ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   v2 additions: stats band, timeline, mobile menu, hover bio,
   organizer logos, sponsor strip, refined countdown
   ════════════════════════════════════════════════════════════════ */

/* ── Topographic background pattern (hero) ────────────────────── */
.topo-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(10,31,58,0.07) 1px, transparent 1px),
    radial-gradient(rgba(10,31,58,0.05) 1px, transparent 1px);
  background-size: 32px 32px, 16px 16px;
  background-position: 0 0, 8px 8px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ── Stats band ────────────────────────────────────────────────── */
.stats-band {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(212, 162, 86, 0.25);
  border-bottom: 1px solid rgba(212, 162, 86, 0.25);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  display: flex; flex-direction: column;
  gap: .3rem; padding: .5rem 1rem;
  border-left: 1px solid rgba(212, 162, 86, 0.25);
}
.stat:first-child { border-left: none; }
@media (max-width: 720px) {
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(2) { border-left: 1px solid rgba(212,162,86,0.25); }
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.7);
}

/* ── Organizer logos strip ─────────────────────────────────────── */
.logos-band {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-line);
  padding: 1.75rem 0;
}
.logos-grid {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2.5rem;
}
.logo-item {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.logo-item img {
  height: 48px; max-width: 120px; object-fit: contain;
  filter: grayscale(80%); opacity: .85;
  transition: filter .3s, opacity .3s;
}
.logo-item:hover img { filter: grayscale(0%); opacity: 1; }
.logo-item .caption {
  font-family: var(--font-mono); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.logo-placeholder {
  width: 90px; height: 48px;
  border: 1px dashed var(--ink-line);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink-soft);
  background: var(--cream);
}

/* ── Timeline (horizontal schedule) ────────────────────────────── */
.timeline {
  position: relative;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 880px) {
  .timeline { grid-template-columns: 1fr; gap: 1rem; }
}
.timeline::before {
  content: ''; position: absolute;
  top: 3.2rem; left: 6%; right: 6%;
  height: 1px; background: var(--ink-line);
  z-index: 0;
}
@media (max-width: 880px) { .timeline::before { display: none; } }
.tline-step {
  position: relative; z-index: 1;
  padding: 0 1rem;
  text-align: center;
}
.tline-step .dot {
  width: 18px; height: 18px;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  transition: background .25s ease, transform .25s ease;
}
.tline-step.done .dot { background: var(--gold); }
.tline-step.current .dot {
  background: var(--rust); border-color: var(--rust);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(138,58,28,0.15);
}
.tline-step .num {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .2em; color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.tline-step h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
.tline-step .date {
  font-family: var(--font-display); font-style: italic;
  color: var(--rust); font-size: .95rem;
}
.tline-step.done .date { color: var(--muted); text-decoration: line-through; }

/* ── Speaker hover bio reveal ──────────────────────────────────── */
.speaker .photo .bio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,58,0.0) 0%, rgba(10,31,58,0.95) 60%);
  color: var(--cream);
  padding: 1.5rem 1.25rem 1rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0;
  transition: opacity .35s ease;
}
.speaker:hover .photo .bio-overlay { opacity: 1; }
.speaker .photo .bio-overlay p {
  font-size: .82rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Hero polish: badge sticker on poster ──────────────────────── */
.poster-frame .deadline-sticker {
  position: absolute;
  right: -1.5rem; bottom: 2rem;
  background: var(--rust);
  color: var(--cream);
  width: 110px; height: 110px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: .85rem;
  text-align: center;
  line-height: 1.25;
  font-style: italic;
  box-shadow: 0 10px 25px -8px rgba(138,58,28,0.5);
  transform: rotate(-8deg);
  z-index: 2;
}
.poster-frame .deadline-sticker strong {
  font-style: normal;
  font-size: 1.1rem;
  display: block;
}
@media (max-width: 880px) { .poster-frame .deadline-sticker { right: 1rem; } }

/* ── Mobile menu (hamburger) ───────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--ink-line);
  border-radius: 2px;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ''; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 100;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 4px solid var(--gold);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: .5rem;
}
.mobile-menu .close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 40px; height: 40px;
  border: none; background: none;
  font-size: 2rem; cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ── Refined section number ────────────────────────────────────── */
.section-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--gold);
  letter-spacing: .2em;
  font-weight: 500;
}

/* ── Page-level loading fade-in ────────────────────────────────── */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageIn .6s ease both; }

/* ── Print friendly ────────────────────────────────────────────── */
@media print {
  .topbar, .mobile-menu, .menu-toggle, .nav-actions, .hero-cta { display: none !important; }
  .section { padding: 1rem 0; break-inside: avoid; }
  body { background: white; color: black; }
  .footer { background: white; color: black; border-top: 2px solid black; }
}

/* ── Big "Submit your paper" CTA card ──────────────────────────── */
.submit-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 2.5rem;
  border-left: 4px solid var(--gold);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 720px) { .submit-cta { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }
.submit-cta h3 { color: var(--cream); font-size: 2rem; margin: 0 0 .5rem; }
.submit-cta p { color: rgba(246,241,230,0.75); margin: 0 0 1rem; }
.submit-cta .actions { display: flex; flex-direction: column; gap: .6rem; }
.submit-cta .actions .btn { width: 100%; justify-content: center; }
