/* =========================================================
   ICAC-2027 — International Conference on Algebra and Combinatorics
   ========================================================= */

:root {
  --navy-900: #0b1530;
  --navy-800: #122044;
  --navy-700: #1b2d5c;
  --navy-100: #e7ebf5;
  --red: #d7263d;
  --red-dark: #b01a2f;
  --gold: #c9a24a;
  --ink: #1d2433;
  --muted: #5d6679;
  --line: #e4e7ee;
  --bg: #ffffff;
  --bg-alt: #f7f5f0;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(11, 21, 48, .06);
  --shadow: 0 12px 32px rgba(11, 21, 48, .10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(215, 38, 61, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-900); }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(11,21,48,.75), rgba(11,21,48,0));
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .8rem; color: #fff; min-width: 0; }
.brand-logo { width: 54px; height: 38px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 0 6px rgba(232,53,77,.45)); }
.brand-text {
  display: flex; flex-direction: column; justify-content: center; line-height: 1;
  padding-left: .8rem; border-left: 1px solid rgba(255,255,255,.3); min-width: 0;
}
.brand-text strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: .04em; color: #fff; }
.brand-text strong em { font-style: normal; color: var(--gold); margin-left: .28rem; }
.brand-text small {
  margin-top: .3rem; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85); white-space: nowrap;
}
.scrolled .brand-text { border-left-color: var(--line); }
.scrolled .brand-text strong { color: var(--navy-900); }
.scrolled .brand-text strong em { color: var(--red); }
.scrolled .brand-text small { color: var(--muted); }
.scrolled .brand-logo { filter: none; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 500; position: relative; white-space: nowrap; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:not(.btn):hover { color: #fff; }
.scrolled .nav a:not(.btn) { color: var(--ink); }
.scrolled .nav a:not(.btn):hover, .scrolled .nav a.active { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.scrolled .nav-toggle span { background: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  --logo-size: 104px;
  position: relative;
  padding: calc(var(--header-h) + 28px) 0 48px;
  color: #fff; text-align: center; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 80% 10%, rgba(215,38,61,.18), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(201,162,74,.12), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
#graph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-inner { position: relative; z-index: 1; }

.hero-logos { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-bottom: 1.4rem; }
.hero-logo { width: var(--logo-size); height: var(--logo-size); flex-shrink: 0; display: block; }
.uni-logo {
  object-fit: contain; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.1), 0 10px 26px rgba(0,0,0,.35);
}
.logo-divider { width: 1px; height: calc(var(--logo-size) * .7); background: linear-gradient(transparent, rgba(232,194,106,.7), transparent); }
.conf-mark { overflow: visible; }
.conf-mark .edges line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw-edge 1.6s ease forwards; }
.conf-mark .edges line:nth-child(n+4) { animation-delay: .35s; }
.conf-mark .nodes circle {
  transform-box: fill-box; transform-origin: center;
  animation: pop-node .5s cubic-bezier(.3,1.6,.5,1) both;
  filter: drop-shadow(0 0 6px rgba(255,59,82,.9));
}
.conf-mark .nodes circle:nth-child(n+5) { animation-delay: .15s; }
.conf-mark .formula { opacity: 0; animation: fade-in .8s ease 1s forwards; }
@keyframes draw-edge { to { stroke-dashoffset: 0; } }
@keyframes pop-node { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fade-in { to { opacity: 1; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem; font-weight: 600;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.08;
  margin-bottom: .4em; letter-spacing: -.005em;
}
.hero h1 .t-word {
  background: linear-gradient(180deg, #ffffff 30%, #f1dfb4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.35));
}
.hero h1 .amp { font-style: italic; color: var(--red); font-weight: 500; filter: drop-shadow(0 0 14px rgba(215,38,61,.55)); }
.hero-tag { margin-bottom: 1.2rem; }
.hero-tag span {
  display: inline-block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem); letter-spacing: .2em; color: #fff;
  padding: .25rem 1.1rem .25rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(232,194,106,.55);
  background: linear-gradient(90deg, rgba(215,38,61,.25), rgba(232,194,106,.18));
}
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; margin-bottom: .9rem; }
.meta-item {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: .45rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
}
.meta-item svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-org { color: rgba(255,255,255,.7); font-size: .88rem; max-width: 56rem; margin: 0 auto 1.6rem; }

.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.countdown { display: inline-grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.countdown div {
  min-width: 66px; padding: .5rem .4rem; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.countdown span { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.countdown small { display: block; margin-top: .25rem; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-head h2 { position: relative; padding-bottom: .5em; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.section-sub { color: var(--muted); margin-top: 1rem; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.kicker.light { color: var(--gold); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; color: var(--navy-900); }
.about-text p:not(.lead) { color: var(--muted); }

.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center;
}
.stat strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--red); line-height: 1; margin-bottom: .35rem; }
.stat span { font-size: .85rem; color: var(--muted); }

.uni-block {
  margin-top: 4rem; display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255,255,255,.82); border-radius: 20px; padding: 3rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.uni-block::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,.02), 0 0 0 80px rgba(255,255,255,.015);
}
.uni-block h3 { color: #fff; font-size: 2rem; }
.uni-block .kicker { color: var(--gold); }
.uni-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; position: relative; }
.uni-facts div { border-left: 2px solid var(--red); padding-left: 1rem; }
.uni-facts strong { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1.1; }
.uni-facts span { font-size: .85rem; }

/* ---------- Speakers ---------- */
.speakers-section {
  position: relative; color: rgba(255,255,255,.8); overflow: hidden;
  background:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(800px 500px at 0% 0%, rgba(215,38,61,.22), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(201,162,74,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.speakers-section h2 { color: #fff; }
.speakers-section .section-sub { color: rgba(255,255,255,.7); }

.speaker-filter { display: flex; justify-content: center; gap: .6rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  padding: .5rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: transparent; color: rgba(255,255,255,.85); transition: all .2s ease;
}
.chip span { opacity: .6; margin-left: .25rem; }
.chip:hover { border-color: var(--gold); color: #fff; }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(215,38,61,.35); }

.speaker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.speaker {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.1rem 1.25rem 1.6rem; border-radius: 20px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.speaker::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.speaker:hover {
  transform: translateY(-6px); background: rgba(255,255,255,.08);
  border-color: rgba(201,162,74,.35); box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.speaker:hover::before { transform: scaleX(1); }
.speaker.hidden { display: none; }

.speaker-photo { position: relative; width: 104px; height: 104px; margin-bottom: 1.2rem; }
.speaker-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), var(--gold), var(--red));
  transition: transform .8s ease;
}
.speaker:hover .speaker-photo::before { transform: rotate(180deg); }
.speaker-photo > * {
  position: absolute; inset: 4px; border-radius: 50%; border: 3px solid var(--navy-900);
  width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover;
}
.speaker-photo span {
  display: grid; place-items: center; color: #fff;
  font-family: var(--serif); font-size: 2rem; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, #24386f, #13214a);
}
.speaker-photo.v1 span { background: linear-gradient(135deg, #8e1b2c, #4a1020); }
.speaker-photo.v2 span { background: linear-gradient(135deg, #1f4d5c, #102a36); }
.speaker-photo.v3 span { background: linear-gradient(135deg, #6b5320, #3a2c10); }

.speaker h3 { color: #fff; font-size: 1.35rem; margin: 0 0 .35rem; }
.speaker .inst { margin: 0 0 1.1rem; font-size: .86rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.speaker .country {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,162,74,.1); border: 1px solid rgba(201,162,74,.28);
  padding: .3rem .8rem; border-radius: 999px;
}
.speaker .country img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }

.avatar {
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--serif); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  position: relative;
}
.avatar::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid var(--red); opacity: .35;
}

/* ---------- Topics ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.topic-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 2.2rem 2rem; transition: transform .25s ease, box-shadow .25s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--navy-100); display: grid; place-items: center; margin-bottom: 1.2rem; }
.topic-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--navy-800); stroke-width: 2.2; }
.topic-icon svg circle { fill: var(--red); stroke: none; }
.topic-icon svg text { font-family: var(--serif); font-size: 30px; font-weight: 700; font-style: italic; fill: var(--navy-800); stroke: none; }
.topic-card ul { list-style: none; padding: 0; margin: 0; }
.topic-card li { position: relative; padding: .5rem 0 .5rem 1.4rem; border-top: 1px dashed var(--line); font-size: .95rem; }
.topic-card li:first-child { border-top: 0; }
.topic-card li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.topic-feature { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); border: 0; color: rgba(255,255,255,.9); }
.topic-feature h3 { color: #fff; }
.topic-feature .topic-icon { background: rgba(255,255,255,.1); }
.topic-feature .topic-icon svg circle { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.topic-feature li { border-color: rgba(255,255,255,.14); }
.topic-feature li::before { background: var(--gold); }
.badge {
  position: absolute; top: 1.4rem; right: 1.4rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: var(--red); color: #fff; padding: .25rem .65rem; border-radius: 999px;
}

/* ---------- Call for papers ---------- */
.cfp {
  color: rgba(255,255,255,.82);
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(215,38,61,.25), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
}
.cfp h2 { color: #fff; }
.cfp a:not(.btn):not(.cfp-mail) { color: var(--gold); border-bottom: 1px solid rgba(201,162,74,.4); }
.cfp-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: center; }
.cfp-box { background: #fff; color: var(--ink); border-radius: 20px; padding: 2.2rem; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.cfp-label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cfp-mail { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--navy-900); margin: .2rem 0 1.2rem; word-break: break-all; }
.cfp-points { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.cfp-points li { padding: .35rem 0 .35rem 1.7rem; position: relative; font-size: .95rem; }
.cfp-points li::before {
  content: ""; position: absolute; left: 0; top: .72rem; width: 14px; height: 8px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
/* line sits in the centre of the 64px gap between date and card */
.timeline::before {
  content: ""; position: absolute; left: 201px; top: 1.4rem; bottom: 1.4rem; width: 2px;
  background: linear-gradient(var(--red), var(--gold));
  opacity: .35;
}
.timeline li { display: grid; grid-template-columns: 170px 1fr; column-gap: 64px; align-items: center; padding: .7rem 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 193px; top: 50%; margin-top: -9px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 3px solid var(--red); z-index: 1;
}
.timeline time {
  text-align: right; font-family: var(--serif); font-weight: 700; color: var(--navy-900);
  font-size: 1.25rem; line-height: 1.2;
}
.timeline p {
  margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy-700);
  border-radius: 12px; padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); font-weight: 500;
  transition: transform .25s ease, box-shadow .25s ease;
}
.timeline li:hover p { transform: translateX(4px); box-shadow: var(--shadow); }
.timeline li.past::before { background: #e4e7ee; border-color: #b9bfcc; }
.timeline li.past time { color: var(--muted); }
.timeline li.past p { color: var(--muted); border-left-color: #b9bfcc; }
.timeline li.next::before { background: var(--red); box-shadow: 0 0 0 6px rgba(215,38,61,.15); }
.timeline li.next p { border-left-color: var(--red); }
.timeline li.next p::after {
  content: "Next deadline"; display: inline-block; margin-left: .6rem; vertical-align: middle;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: .15rem .5rem; border-radius: 999px;
}
.timeline li.highlight::before { background: var(--gold); border-color: var(--navy-900); }
.timeline li.highlight p { background: var(--navy-900); color: #fff; border-color: var(--navy-900); border-left-color: var(--gold); font-weight: 600; }
.timeline li.highlight p::after { content: none; }

/* ---------- Registration ---------- */
.fee-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem; }
.fee-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fee-table th, .fee-table td { padding: 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.fee-table thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
.fee-table thead th:first-child { border-radius: 10px 0 0 10px; text-align: left; }
.fee-table thead th:last-child { border-radius: 0 10px 10px 0; }
.fee-table tbody th { text-align: left; font-weight: 600; color: var(--navy-900); }
.fee-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.fee-table td { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.fee-table tbody tr:last-child th, .fee-table tbody tr:last-child td { border-bottom: 0; }

.fee-intl { display: flex; flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(160deg, var(--red), var(--red-dark)); color: rgba(255,255,255,.9); border: 0; }
.fee-intl h3 { color: #fff; }
.price { font-family: var(--serif); font-size: 4.2rem; font-weight: 700; color: #fff; line-height: 1; margin: .6rem 0 1rem; }
.price span { font-size: 1.3rem; vertical-align: super; margin-right: .3rem; letter-spacing: .08em; }
.fee-intl p { margin: 0; font-size: .92rem; }

.register-cta {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: #fff; border: 1px dashed #c8cdd8; border-radius: 18px; padding: 1.6rem 2rem;
}
.register-cta h3 { margin-bottom: .2rem; }
.register-cta p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Committee ---------- */
.committee-tier { margin-bottom: 2.8rem; text-align: center; }
.committee-tier:last-child { margin-bottom: 0; }
.tier-title {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1.4rem;
}
.tier-title::before, .tier-title::after { content: ""; width: 36px; height: 1px; background: var(--line); }
.person-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.person {
  width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.8rem 1.4rem; transition: transform .25s ease, box-shadow .25s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person .avatar { width: 68px; height: 68px; margin: 0 auto 1rem; font-size: 1.35rem; }
.person h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.person p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.person-accent { border: 2px solid var(--red); }
.person-accent .avatar { background: linear-gradient(135deg, var(--red), var(--red-dark)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.4rem; }
.contact-card h2 { font-size: 2rem; }
address { font-style: normal; color: var(--muted); line-height: 1.8; margin: 1rem 0 1.5rem; }
address strong { color: var(--navy-900); font-size: 1.05rem; }
.contact-mail {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 600;
  background: var(--navy-100); color: var(--navy-900); padding: .7rem 1.2rem; border-radius: 12px;
}
.contact-mail svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--navy-100); }
.map-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 3.5rem 0 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-logo { width: 72px; height: 48px; object-fit: contain; }
.footer-brand strong { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer-brand p, .footer-org p { margin: 0; line-height: 1.6; }
.footer-org { text-align: right; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; padding-bottom: 1.4rem; font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .conf-mark .edges line, .conf-mark .nodes circle, .conf-mark .formula { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 1.1rem; }
  .nav a:not(.btn) { font-size: .86rem; }
}

@media (max-width: 1024px) {
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .topic-feature { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 24px 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { color: var(--ink); padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .site-header.menu-open { background: #fff; }
  .menu-open .brand { color: var(--navy-900); }
  .menu-open .nav-toggle span { background: var(--navy-900); }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .about-grid, .uni-block, .cfp-inner, .fee-grid, .contact-grid { grid-template-columns: 1fr; }
  .uni-block { padding: 2.2rem; gap: 2rem; }
  .register-cta { flex-direction: column; align-items: flex-start; }
  .footer-org { text-align: left; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .topic-grid { grid-template-columns: 1fr; }
  .hero { --logo-size: 80px; padding: calc(var(--header-h) + 20px) 0 40px; }
  .hero-logos { gap: 1.1rem; margin-bottom: 1.1rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .18em; gap: .5rem; }
  .eyebrow::before, .eyebrow::after { width: 20px; }
  .meta-item { font-size: .84rem; padding: .4rem .85rem; }
  .hero-org { font-size: .82rem; }
  .hero-bottom { flex-direction: column; }
  .countdown div { min-width: 0; padding: .5rem .8rem; }
  .brand-logo { width: 44px; height: 30px; }
  .brand-text { padding-left: .65rem; }
  .brand-text strong { font-size: 1.4rem; }
  .brand-text small { font-size: .58rem; letter-spacing: .12em; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; row-gap: .5rem; padding-left: 2.2rem; }
  .timeline li::before { left: 0; top: 1.15rem; margin-top: 0; }
  .timeline time { text-align: left; font-size: 1.1rem; }
  .speaker-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .speaker { padding: 1.6rem .8rem 1.2rem; }
  .speaker-photo { width: 84px; height: 84px; }
  .speaker-photo span { font-size: 1.6rem; }
  .speaker h3 { font-size: 1.15rem; }
  .speaker .inst { font-size: .8rem; }
  .fee-card, .contact-card { padding: 1.5rem; }
  .fee-table th, .fee-table td { padding: .75rem .5rem; }
  .fee-table td { font-size: 1.2rem; }
  .fee-table thead th { font-size: .65rem; letter-spacing: .04em; }
  .fee-table tbody th { font-size: .88rem; }
  .cfp-mail { font-size: 1.5rem; }
  .stat strong { font-size: 2.1rem; }
}

/* very small phones */
@media (max-width: 360px) {
  .hero { --logo-size: 68px; }
  .brand-text small { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .countdown div { padding: .45rem .5rem; }
}

/* large and ultra-wide displays */
@media (min-width: 1600px) {
  html { font-size: 17px; }
  .container { max-width: 1320px; }
  .hero { --logo-size: 120px; }
}
@media (min-width: 2200px) {
  html { font-size: 19px; }
  .container { max-width: 1480px; }
}

/* short landscape screens (phones turned sideways) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { --logo-size: 64px; padding-top: calc(var(--header-h) + 12px); }
}
