/* =========================================================
   PeMSAA 18th International Medical Congress 2026
   Palette taken from the official flyer: maroon, copper, blush
   ========================================================= */
/* Self-hosted web fonts (Barlow Condensed, Cormorant Garamond, Inter — SIL Open Font License) */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --maroon-950: #2A0911;
  --maroon-900: #3E0E19;
  --maroon-800: #561424;
  --maroon: #6E1B2E;
  --wine: #8E2D41;
  --copper: #B8794E;
  --copper-dark: #9A5F37;
  --copper-light: #DDA87F;
  --gold-glow: #F3C38F;
  --blush-50: #FBF6F4;
  --blush-100: #F6EAE8;
  --blush-200: #EDD7D5;
  --blush-300: #DDBBB8;
  --ink: #2B171B;
  --ink-soft: #5E4A4E;
  --white: #FFFFFF;

  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(62, 14, 25, .08);
  --shadow: 0 18px 50px -18px rgba(62, 14, 25, .35);
  --shadow-lg: 0 30px 80px -25px rgba(42, 9, 17, .55);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 2px); }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--blush-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
sup { font-size: .55em; vertical-align: super; line-height: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }

svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.12rem; }
.btn-copper { background: linear-gradient(135deg, var(--copper-light), var(--copper) 55%, var(--copper-dark)); color: var(--white); box-shadow: 0 10px 26px -10px rgba(184, 121, 78, .8); }
.btn-copper:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(184, 121, 78, .95); }
.btn-maroon { background: linear-gradient(135deg, var(--wine), var(--maroon) 60%, var(--maroon-800)); color: var(--white); box-shadow: 0 12px 28px -12px rgba(110, 27, 46, .8); }
.btn-maroon:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(110, 27, 46, .9); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: var(--white); }
.btn-outline { color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: #0000006b;
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -12px rgba(62, 14, 25, .35);
  --header-h: 68px;
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-emblem { width: 48px; height: 48px; border-radius: 50%; background: var(--white); padding: 2px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: width .3s, height .3s; }
.scrolled .brand-emblem { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; color: var(--white); transition: color .3s; }
.brand-sub { white-space: nowrap; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-top: 4px; transition: color .3s; }
.scrolled .brand-name { color: var(--maroon); }
.scrolled .brand-sub { color: var(--copper-dark); }

.primary-nav { display: flex; align-items: center; gap: 1.2rem; }
.primary-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.primary-nav ul a {
  position: relative; display: block;
  font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88); padding: .5rem .7rem; white-space: nowrap;
  transition: color .25s;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px;
  background: var(--copper-light); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav ul a:hover, .primary-nav ul a.active { color: var(--white); }
.primary-nav ul a:hover::after, .primary-nav ul a.active::after { transform: scaleX(1); }
.scrolled .primary-nav ul a { color: var(--ink-soft); }
.scrolled .primary-nav ul a:hover, .scrolled .primary-nav ul a.active { color: var(--maroon); }
.scrolled .primary-nav ul a::after { background: var(--copper); }
.nav-cta { padding: .6rem 1.2rem; font-size: .95rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.scrolled .nav-toggle { background: var(--blush-100); }
.scrolled .nav-toggle span { background: var(--maroon); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 600px;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 6px) 0 56px;
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(42, 9, 17, .96) 0%, rgba(62, 14, 25, .9) 30%, rgba(86, 20, 36, .62) 55%, rgba(110, 27, 46, .18) 80%, rgba(110, 27, 46, .05) 100%),
    linear-gradient(0deg, rgba(42, 9, 17, .55) 0%, transparent 40%);
}
.hero-network { position: absolute; left: -60px; top: 40px; width: 640px; height: 640px; z-index: -1; opacity: .45; }
.hero-inner { display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 3rem; }
.hero-content { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-head); font-size: 1rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper-light); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--copper-light); }
.hero-title { display: flex; flex-direction: column; font-family: var(--f-head); font-weight: 700; text-transform: none; }
.t-brand { font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: .9; letter-spacing: .01em; }
.t-line { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.02; margin-top: .25rem; font-weight: 600; }
.t-ord { color: var(--copper-light); }
.t-year {
  font-family: var(--f-serif); font-weight: 700; font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; width: fit-content;
  background: linear-gradient(180deg, #F6CFA8 0%, var(--copper-light) 45%, var(--copper) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.35; color: rgba(255, 255, 255, .92); margin: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.5rem; }
.meta-chip {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1.2rem .7rem .75rem; border-radius: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
}
.meta-chip svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--copper); color: var(--white); stroke-width: 1.8; flex: none; }
.meta-chip small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); line-height: 1.2; }
.meta-chip strong { font-family: var(--f-head); font-size: 1.2rem; font-weight: 600; letter-spacing: .03em; line-height: 1.2; }
.hero-yearline { display: flex; align-items: center; gap: 1.3rem; margin: .9rem 0 1.6rem; padding-top: .9rem; border-top: 1px solid rgba(221, 168, 127, .45); width: fit-content; }
.hero-yearline .hero-tagline { padding-left: 1.3rem; border-left: 2px solid var(--copper-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-badge {
  width: 168px; height: 168px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); padding: 10px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 0 0 9px rgba(221, 168, 127, .45), var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
  margin-bottom: 2rem;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-caption {
  position: absolute; right: 28px; bottom: 96px;
  font-family: var(--f-head); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); padding: .35rem .9rem; border-left: 2px solid var(--copper-light);
  background: rgba(42, 9, 17, .35); backdrop-filter: blur(4px); margin: 0;
}
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; }

/* ---------- Countdown (in hero) ---------- */
.countdown {
  position: relative; color: var(--ink);
  background: rgba(255, 255, 255, .97); border-radius: 26px; padding: 1.5rem 1.6rem 1.3rem;
  box-shadow: 0 0 0 1px rgba(221, 168, 127, .6), 0 0 0 9px rgba(255, 255, 255, .1), 0 30px 70px -20px rgba(0, 0, 0, .6);
  border-top: 5px solid var(--copper);
}
.cd-head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--blush-200); }
.cd-cal { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--white);
  background: radial-gradient(circle at 30% 25%, var(--wine), var(--maroon) 60%, var(--maroon-800)); }
.cd-cal svg { width: 26px; height: 26px; }
.cd-head small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-dark); line-height: 1.3; }
.cd-head strong { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.55rem; color: var(--maroon); line-height: 1.15; letter-spacing: .01em; }
.cd-label { display: flex; align-items: center; gap: .7rem; margin: .9rem 0 .7rem; }
.cd-label span { flex: 1; height: 1px; background: var(--blush-300); }
.cd-label strong { font-family: var(--f-head); font-weight: 600; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-dark); }
.cd-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.cd-unit { text-align: center; padding: .75rem .2rem .55rem; border-radius: 16px; color: var(--white);
  background: linear-gradient(160deg, var(--wine), var(--maroon) 55%, var(--maroon-900));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 10px 20px -10px rgba(110, 27, 46, .8); }
.cd-num { display: block; font-family: var(--f-head); font-weight: 700; font-size: 2.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--white); }
.cd-txt { display: block; margin-top: .3rem; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-light); }
.cd-venue { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1rem; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--maroon); }
.cd-venue svg { width: 18px; height: 18px; color: var(--copper); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--copper-dark); margin-bottom: .8rem;
}
.kicker::before, .section-head .kicker::after { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.kicker-light { color: var(--copper-light); }
.section h2, .venue h2 {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: .01em; color: var(--maroon);
}
h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 600; color: var(--copper); letter-spacing: 0; }
.section-head p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.06rem; }

/* ---------- Highlights ---------- */
.highlights { padding-top: 80px; background:
  radial-gradient(800px 400px at 100% 0%, rgba(237, 215, 213, .55), transparent 70%),
  radial-gradient(600px 400px at 0% 100%, rgba(237, 215, 213, .5), transparent 70%); }
.hl-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.hl-card { grid-column: span 2; }
.hl-card:nth-child(4) { grid-column: 2 / span 2; }
.hl-card:nth-child(5) { grid-column: 4 / span 2; }
.hl-card {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.8rem 1.8rem;
  border: 1px solid var(--blush-200); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.hl-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--copper));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.hl-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--blush-300); }
.hl-card:hover::before { transform: scaleX(1); }
.hl-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  background: radial-gradient(circle at 30% 25%, var(--wine), var(--maroon) 60%, var(--maroon-800));
  box-shadow: 0 0 0 6px var(--blush-100), 0 10px 22px -8px rgba(110, 27, 46, .7);
  margin-bottom: 1.4rem;
}
.hl-icon svg { width: 30px; height: 30px; }
.hl-num { position: absolute; top: .9rem; right: 1.4rem; font-family: var(--f-head); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--blush-200); transition: color .45s; }
.hl-card:hover .hl-num { color: rgba(184, 121, 78, .35); }
.hl-card h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.65rem; letter-spacing: .03em; text-transform: uppercase; color: var(--maroon); margin-bottom: .55rem; }
.hl-card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

.premier {
  position: relative; overflow: hidden;
  margin-top: 4.5rem; padding: 3rem 3.2rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 2.4rem; align-items: center;
  border-radius: 32px; color: var(--white);
  background:
    radial-gradient(500px 260px at 95% 0%, rgba(221, 168, 127, .35), transparent 70%),
    linear-gradient(135deg, var(--maroon-900), var(--maroon) 55%, var(--wine));
  box-shadow: var(--shadow-lg);
}
.premier::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(221, 168, 127, .3); box-shadow: 0 0 0 40px rgba(221, 168, 127, .05), 0 0 0 80px rgba(221, 168, 127, .04);
}
.premier-globe { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(221, 168, 127, .5); grid-row: span 2; }
.premier-globe svg { width: 64px; height: 64px; color: var(--copper-light); stroke-width: 1.4; animation: spinSlow 30s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.premier-text .kicker { margin-bottom: .4rem; }
.premier-statement { font-family: var(--f-serif); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.25; font-weight: 500; margin: 0; }
.premier-statement span { color: var(--copper-light); font-style: italic; font-weight: 600; }
.premier-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; position: relative; z-index: 1; }
.premier-pills li {
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid rgba(221, 168, 127, .55); background: rgba(255, 255, 255, .06);
}

/* ---------- Message sections (Chair / President) ---------- */
.president { background: var(--white); }
.president::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blush-300), transparent);
}
.msg-grid { display: grid; grid-template-columns: 400px 1fr; gap: 4.5rem; align-items: start; }
.msg-grid--rev { grid-template-columns: 1fr 400px; }
.msg-grid--rev .portrait { order: 2; }

.portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 30px); }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 24px 24px;
  overflow: hidden; background: linear-gradient(160deg, var(--blush-100), var(--blush-200));
  box-shadow: var(--shadow);
  isolation: isolate;
}
.portrait::before {
  content: ""; position: absolute; inset: -16px 16px 90px -16px;
  border: 2px solid var(--copper-light); border-radius: 210px 210px 30px 30px; z-index: -1;
}
.msg-grid--rev .portrait::before { inset: -16px -16px 90px 16px; }
.portrait-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; position: relative; z-index: 2; transition: transform .8s var(--ease); }
.portrait:hover .portrait-img { transform: scale(1.04); }
.portrait-placeholder {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .9), transparent 55%),
    linear-gradient(160deg, var(--blush-100), var(--blush-300));
}
.ph-mono {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-serif); font-weight: 700; font-size: 3.6rem; color: var(--white); letter-spacing: .04em;
  background: radial-gradient(circle at 30% 25%, var(--wine), var(--maroon) 60%, var(--maroon-900));
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .7), 0 0 0 10px var(--copper-light), var(--shadow);
}
.ph-note { font-family: var(--f-head); letter-spacing: .24em; text-transform: uppercase; font-size: .85rem; color: var(--maroon); opacity: .6; margin-top: .8rem; }
.nameplate {
  position: relative; z-index: 3; margin: -46px 22px 0; padding: 1.1rem 1.3rem;
  background: var(--white); border-radius: 18px; text-align: center; box-shadow: var(--shadow);
  border-bottom: 3px solid var(--copper);
}
.nameplate strong { display: block; font-family: var(--f-head); font-size: 1.45rem; letter-spacing: .03em; color: var(--maroon); line-height: 1.2; }
.nameplate span { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .25rem; line-height: 1.4; }

.msg-body h2 { margin-bottom: 1.4rem; }
.msg-sub { font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--copper-dark); margin: -.6rem 0 1.6rem; line-height: 1.4; }
.pull-quote {
  margin: 0 0 2rem; padding: 1.2rem 1.6rem 1.2rem 3.4rem; position: relative;
  font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--maroon);
  background: linear-gradient(90deg, var(--blush-100), transparent); border-left: 3px solid var(--copper); border-radius: 0 14px 14px 0;
}
.pull-quote::before { content: "“"; position: absolute; left: .8rem; top: -.2rem; font-size: 4.2rem; color: var(--copper); font-style: normal; line-height: 1; }
.prose p { color: var(--ink-soft); font-size: 1.04rem; }
.salutation { font-family: var(--f-serif); font-size: 1.3rem !important; font-style: italic; color: var(--maroon) !important; }
.dropcap::first-letter {
  float: left; font-family: var(--f-serif); font-weight: 700; font-size: 4.4rem; line-height: .82;
  color: var(--maroon); padding: .3rem .45rem 0 0;
}
.signature { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--blush-200); display: flex; flex-direction: column; gap: .15rem; }
.sig-regards { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.sig-name { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 2rem; color: var(--maroon); line-height: 1.2; }
.sig-role { font-size: .9rem; color: var(--copper-dark); letter-spacing: .02em; line-height: 1.5; }

.chair { background: linear-gradient(180deg, var(--blush-100), var(--blush-50)); }
.president .portrait-frame { background: var(--white); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 3.2rem 0 3rem; }
.pillar {
  position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  border: 1px solid var(--blush-200); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-no {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--f-serif); font-weight: 700; font-size: 1.4rem; color: var(--white);
  background: linear-gradient(135deg, var(--copper-light), var(--copper-dark)); margin-bottom: 1.1rem;
}
.pillar h3 { font-family: var(--f-head); font-size: 1.5rem; letter-spacing: .03em; color: var(--maroon); margin-bottom: .6rem; text-transform: uppercase; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.prose-wide { max-width: 860px; margin-inline: auto; text-align: center; }
.prose-wide .signature { align-items: center; }

/* ---------- Venue ---------- */
.venue {
  position: relative; overflow: hidden; color: var(--white);
  padding: 110px 0 100px;
  background:
    radial-gradient(700px 380px at 15% 10%, rgba(142, 45, 65, .55), transparent 70%),
    radial-gradient(900px 500px at 90% 20%, rgba(184, 121, 78, .22), transparent 70%),
    linear-gradient(180deg, var(--maroon-900) 0%, var(--maroon-800) 55%, #4A1020 100%);
}
.venue::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(243, 195, 143, .55) 1px, transparent 1.4px);
  background-size: 34px 34px; opacity: .12; mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
.hero-wave, .venue-scene, .hero-network { stroke: none; }
.venue-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 420px; }
.venue-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.venue h2.venue-name { color: var(--white); font-size: clamp(3rem, 6.6vw, 5.4rem); line-height: .95; margin-bottom: 1rem; }
.venue h2.venue-name em { color: var(--copper-light); display: block; }
.venue-loc { display: flex; align-items: center; gap: .5rem; font-family: var(--f-head); font-size: 1.4rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-glow); margin-bottom: 1.2rem; }
.venue-loc svg { width: 26px; height: 26px; }
.venue-desc { color: rgba(255, 255, 255, .82); font-size: 1.06rem; max-width: 520px; }
.venue-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem 2rem; margin: 2rem 0 2.2rem; padding: 1.4rem 0; border-top: 1px solid rgba(221, 168, 127, .35); border-bottom: 1px solid rgba(221, 168, 127, .35); justify-content: start; }
.venue-facts dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-light); }
.venue-facts dd { margin: .2rem 0 0; font-family: var(--f-head); font-size: 1.15rem; letter-spacing: .02em; line-height: 1.25; }
.venue-map::before { content: "The Grand Kandyan Hotel · Kandy"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); z-index: 0; }
.venue-map iframe { position: relative; z-index: 1; }
.venue-map {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 0 0 9px rgba(221, 168, 127, .45), var(--shadow-lg);
  background: var(--maroon-800);
}
.venue-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }

/* ---------- Registration ---------- */
.registration { background:
  radial-gradient(700px 360px at 0% 50%, rgba(237, 215, 213, .7), transparent 70%), var(--blush-50); margin-top: -1px; }
.reg-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
  background: var(--white); border-radius: 36px; padding: 3.6rem; box-shadow: var(--shadow); border: 1px solid var(--blush-200);
  position: relative; overflow: hidden;
}
.reg-card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--blush-100), transparent 70%); }
.reg-card > * { min-width: 0; position: relative; z-index: 1; }
.reg-card::after { z-index: 0; pointer-events: none; }
.reg-text h2 { margin-bottom: 1rem; }
.reg-text > p { color: var(--ink-soft); font-size: 1.06rem; }
.reg-points { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .6rem; }
.reg-points li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--ink); }
.reg-points svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--blush-100); color: var(--maroon); stroke-width: 2.6; flex: none; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.reg-link { margin: 1rem 0 0; font-size: .85rem; color: var(--copper-dark); letter-spacing: .04em; }
.reg-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.ticket {
  width: 100%; max-width: 380px; border-radius: 26px; color: var(--white); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--wine), var(--maroon) 45%, var(--maroon-900));
  box-shadow: var(--shadow-lg); transform: rotate(-3deg); transition: transform .6s var(--ease);
}
.ticket:hover { transform: rotate(0) translateY(-6px); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 62%; width: 34px; height: 34px; border-radius: 50%; background: var(--white); }
.ticket::before { left: -17px; }
.ticket::after { right: -17px; }
.ticket-top { display: flex; align-items: center; gap: .9rem; padding: 1.6rem 1.6rem 1.2rem; }
.ticket-top img { border-radius: 50%; background: var(--white); padding: 2px; }
.ticket-top span { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.ticket-top strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-light); font-weight: 600; margin-top: .3rem; line-height: 1.3; }
.ticket-date { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.6rem 1.8rem; border-bottom: 2px dashed rgba(221, 168, 127, .5); }
.td-day { font-family: var(--f-serif); font-weight: 700; font-size: 4.6rem; line-height: 1; background: linear-gradient(180deg, #F6CFA8, var(--copper)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.td-day small { font-size: 2rem; margin: 0 .15rem; }
.td-month { font-family: var(--f-head); font-weight: 600; font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; }
.ticket-foot { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.ticket-foot span:first-child { font-family: var(--f-head); font-size: 1.25rem; letter-spacing: .04em; color: var(--white); }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  padding: 2.4rem 1.4rem; border-radius: var(--radius-lg); background: var(--blush-50); border: 1px solid var(--blush-200);
  transition: transform .4s var(--ease), box-shadow .4s, background .4s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--white); }
.cc-icon { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; color: var(--white); margin-bottom: .8rem;
  background: radial-gradient(circle at 30% 25%, var(--wine), var(--maroon) 60%, var(--maroon-800)); box-shadow: 0 0 0 6px var(--blush-100); transition: transform .4s var(--ease); }
.contact-card:hover .cc-icon { transform: scale(1.08) rotate(-6deg); }
.cc-icon svg { width: 28px; height: 28px; }
.cc-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-dark); }
.contact-card strong { font-family: var(--f-head); font-size: 1.45rem; letter-spacing: .02em; color: var(--maroon); word-break: break-word; }
.contact-bottom { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--blush-200); display: flex; align-items: center; justify-content: center; }
.contact-logo { height: 78px; width: auto; }
.social { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.social > span { font-family: var(--f-head); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.social-links { display: flex; gap: .7rem; }
.social-links a {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: var(--maroon); border: 1.5px solid var(--maroon); transition: background .3s, color .3s, transform .3s var(--ease);
}
.social-links a:hover { background: var(--maroon); color: var(--white); transform: translateY(-4px); }
.social-links svg { width: 21px; height: 21px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(135deg, var(--maroon-950), var(--maroon-900)); color: rgba(255, 255, 255, .78); padding: 2.6rem 0 2.4rem; border-top: 3px solid var(--copper); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.footer-social { flex-direction: column; gap: .7rem; }
.footer-social > span { color: var(--copper-light); font-size: .9rem; }
.footer-social .social-links a { color: var(--white); border-color: rgba(221, 168, 127, .6); }
.footer-social .social-links a:hover { background: var(--copper); border-color: var(--copper); color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand img { border-radius: 50%; background: var(--white); padding: 2px; }
.footer-brand strong { display: block; color: var(--white); font-family: var(--f-head); font-size: 1.2rem; letter-spacing: .03em; font-weight: 600; }
.footer-brand span { font-family: var(--f-serif); font-style: italic; color: var(--copper-light); font-size: 1.05rem; }
.footer-copy { margin: 0; font-size: .85rem; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  background: linear-gradient(135deg, var(--copper-light), var(--copper-dark)); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav ul a { padding: .5rem .5rem; font-size: .95rem; }
  .primary-nav ul a::after { left: .5rem; right: .5rem; }
  .brand-sub { display: none; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: block; z-index: 2; }
  .site-header.scrolled { backdrop-filter: none; background: var(--white); }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
    padding: 100px 28px 28px; background: var(--white); box-shadow: -20px 0 60px -20px rgba(42, 9, 17, .5);
    transform: translateX(105%); transition: transform .45s var(--ease);
  }
  .nav-open .primary-nav { transform: none; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a, .scrolled .primary-nav ul a { color: var(--ink); font-size: 1.25rem; padding: .85rem .2rem; border-bottom: 1px solid var(--blush-100); }
  .primary-nav ul a.active { color: var(--maroon); }
  .primary-nav ul a::after { display: none; }
  .nav-cta { justify-content: center; }
  .nav-open .nav-toggle { background: var(--blush-100); }
  .nav-open .nav-toggle span { background: var(--maroon); }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(42, 9, 17, .45); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  .msg-grid, .msg-grid--rev { grid-template-columns: 1fr; gap: 3rem; }
  .msg-grid--rev .portrait { order: 0; }
  .portrait { position: relative; top: 0; max-width: 380px; margin-inline: auto; width: 100%; }
  .venue-inner { grid-template-columns: 1fr; }
  .reg-card { grid-template-columns: 1fr; padding: 2.6rem; }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-card, .hl-card:nth-child(4), .hl-card:nth-child(5) { grid-column: auto; }
  .hl-card:nth-child(5) { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr 400px; gap: 2rem; }
}
@media (max-width: 920px) {
  .hero { height: auto; padding: calc(var(--header-h) + 36px) 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .countdown { max-width: 480px; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .section { padding: 80px 0; }
  .hero { height: auto; padding-top: calc(var(--header-h) + 36px); padding-bottom: 80px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(42, 9, 17, .55) 0%, rgba(62, 14, 25, .88) 45%, rgba(42, 9, 17, .97) 100%); }
  .hero-bg img { object-position: 70% 30%; }
  .hero-caption { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .meta-chip { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .countdown { padding: 1.2rem 1.1rem 1.1rem; }
  .cd-head strong { font-size: 1.3rem; }
  .cd-units { gap: .4rem; }
  .cd-num { font-size: 2.2rem; }
  .cd-txt { font-size: .58rem; letter-spacing: .1em; }
  .cd-venue { font-size: .95rem; }
  .hero-yearline { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .hero-yearline .hero-tagline { padding-left: .9rem; }
  .hl-grid { grid-template-columns: 1fr; }
  .hl-card:nth-child(5) { grid-column: auto; }
  .premier { grid-template-columns: 1fr; padding: 2.2rem 1.6rem; text-align: left; }
  .premier-globe { width: 84px; height: 84px; grid-row: auto; }
  .premier-globe svg { width: 48px; height: 48px; }
  .venue { padding: 80px 0 80px; }
  .venue-facts { grid-template-columns: 1fr; }
  .venue-scene { height: 260px; }
  .reg-card { padding: 2rem 1.4rem; border-radius: 26px; }
  .reg-actions .btn { flex: 1 1 100%; justify-content: center; }
  .ticket { transform: rotate(-2deg); }
  .td-day { font-size: 3.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-bottom { flex-direction: column; text-align: center; }
  .social { flex-direction: column; }
  .contact-logo { height: 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .pull-quote { font-size: 1.25rem; }
  .portrait::before { inset: -10px 10px 90px -10px; }
  .msg-grid--rev .portrait::before { inset: -10px -10px 90px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
