/* =====================================================
   ACHCPS 2026 — Stylesheet
   ===================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: none; cursor: pointer; }

a { text-decoration: none; color: inherit; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 700; }

:target { scroll-margin-top: 90px; }

/* ---------- Root variables ---------- */
:root {
  --color-navy: #0A2440;
  --color-navy-deep: #071A30;
  --color-teal: #0F4A59;
  --color-gold: #BEA05F;
  --color-gold-bright: #d8bd7d;
  --color-offwhite: #F4F3F1;
  --color-white: #ffffff;
  --color-ink: #14202f;
  --color-muted: #5b6b7d;
  --color-line: rgba(10, 36, 64, 0.12);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (major third-ish, fluid) */
  --fs-900: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --fs-800: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
  --fs-700: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  --fs-600: clamp(1.35rem, 1.15rem + 0.8vw, 1.6rem);
  --fs-500: 1.15rem;
  --fs-400: 1rem;
  --fs-300: 0.9rem;
  --fs-200: 0.78rem;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 140px;
  --shadow-sm: 0 4px 14px rgba(7, 26, 48, 0.08);
  --shadow-md: 0 18px 40px rgba(7, 26, 48, 0.16);
  --shadow-lg: 0 30px 70px rgba(7, 26, 48, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  color: var(--color-ink);
  background: var(--color-offwhite);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.9rem;
}
.eyebrow.light { color: var(--color-gold-bright); }

h1, h2, h3 { font-family: var(--font-serif); color: var(--color-navy); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head h2 { font-size: var(--fs-800); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-300);
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy-deep);
  box-shadow: 0 10px 24px rgba(190, 160, 95, 0.35);
}
.btn-gold:hover { background: var(--color-gold-bright); }

.btn-outline {
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
}
.btn-outline:hover { background: var(--color-gold); color: var(--color-navy-deep); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-navy {
  background: var(--color-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--color-teal); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-bright));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: var(--color-navy-deep);
  box-shadow: 0 6px 24px rgba(7, 26, 48, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-flag {
  width: 120px;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.brand-logo {
  width: 128px;
  height: 128px;
  min-width: 128px;
  max-width: 128px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-text span { color: var(--color-gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.header-partners {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.header-dcs-logo {
  width: 128px;
  height: 128px;
  min-width: 128px;
  max-width: 128px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-300);
  font-weight: 500;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }
.nav-cta { color: var(--color-gold); }
.nav-cta:hover { color: var(--color-navy-deep); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
  z-index: 1002;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-navy-deep);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  transition: color 0.25s var(--ease);
}
.mobile-nav-link:hover { color: var(--color-gold); }
.mobile-nav-cta { font-family: var(--font-sans); font-size: var(--fs-400); margin-top: 0.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }

/* Hero slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease);
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 8s linear forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero-slide-dots { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 26, 48, 0.55) 0%, rgba(7, 26, 48, 0.35) 40%, rgba(7, 26, 48, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 26, 48, 0.85) 0%, rgba(7, 26, 48, 0.2) 70%);
}
.hero-content { padding-top: var(--header-h); max-width: 820px; }
.hero-eyebrow {
  font-size: var(--fs-500);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 2rem + 6vw, 6.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.hero-title-accent { color: var(--color-gold); }
.hero-title-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 0.4rem + 1vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
}
.hero-subhead {
  font-size: var(--fs-500);
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.4rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  margin-bottom: 2rem;
}
.hero-meta .dot { opacity: 0.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.2rem);
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 0.7rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
}
.cd-num {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: var(--fs-200);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.35rem;
}
.cd-sep { font-size: 1.6rem; font-weight: 700; color: var(--color-gold); align-self: flex-start; margin-top: 0.6rem; }

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- About ---------- */
.about { background: var(--color-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.about-text h2 { font-size: var(--fs-800); margin-bottom: 1.2rem; }
.about-text p { color: var(--color-muted); margin-bottom: 1.1rem; }
.about-text .btn { margin-top: 0.6rem; }
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--color-line);
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
}

/* ---------- Themes ---------- */
.themes { background: var(--color-offwhite); }
#themes .section-head,
#programme .section-head {
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.theme-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.theme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.theme-media { aspect-ratio: 4 / 3; overflow: hidden; }
.theme-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.theme-card:hover .theme-media img { transform: scale(1.07); }
.theme-body { padding: 1.3rem; }
.theme-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}
.theme-body h3 { font-size: var(--fs-600); margin: 0.35rem 0 0.5rem; }
.theme-body p { font-size: var(--fs-300); color: var(--color-muted); }

/* ---------- Our Aim band ---------- */
.aim-band {
  background:
    linear-gradient(rgba(7, 26, 48, 0.92), rgba(7, 26, 48, 0.92)),
    var(--color-teal);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  text-align: center;
}
.aim-inner { max-width: 840px; margin-inline: auto; }
.aim-inner h2 { color: #fff; font-size: var(--fs-800); margin-bottom: 1.1rem; }
.aim-line-nowrap { white-space: nowrap; }
.aim-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-500);
  max-width: 700px;
  margin-inline: auto;
}

/* ---------- Conference Objectives ---------- */
.objectives { background: var(--color-white); }
.section-lead { color: var(--color-muted); margin-top: 1rem; }
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.objective {
  background: var(--color-offwhite);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.objective:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.objective-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.objective p { color: var(--color-muted); font-size: var(--fs-400); }
.objectives-grid .objective { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Conference Experience ---------- */
.experience { background: var(--color-white); }
.experience-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.experience-text h2 { font-size: var(--fs-800); margin-bottom: 1.2rem; }
.experience-text p { color: var(--color-muted); margin-bottom: 1.1rem; }
.experience-text .btn { margin-top: 0.6rem; }
.experience-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Expected Outcomes ---------- */
.outcomes { background: var(--color-offwhite); }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.outcome {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.outcome:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.outcome-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.outcome p { color: var(--color-muted); font-size: var(--fs-300); align-self: center; }
.outcomes-grid .outcome { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Programme timeline ---------- */
.programme { background: var(--color-navy); color: #fff; }
.programme .section-head h2 { color: #fff; }
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  padding-inline: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.tl-item { position: relative; padding-left: 1.8rem; padding-bottom: 1.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute;
  top: 4px;
  left: -1.4rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 3px solid var(--color-gold);
}
.tl-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.3rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.tl-card:hover { transform: translateY(-5px); }
.tl-day {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  white-space: nowrap;
  padding-top: 0.3rem;
}
.tl-body { min-width: 0; }
.tl-card h3 { color: rgb(216, 189, 125); font-size: var(--fs-600); margin: 0 0 0.6rem; }
.tl-day-tag { font-family: var(--font-sans); }
.tl-card p { font-size: var(--fs-300); color: rgba(255, 255, 255, 0.75); }
.tl-card p + p { margin-top: 0.6rem; }
.tl-extra {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.tl-extra-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 0.4rem;
}
.tl-dress { margin-top: 0.9rem; }
.tl-dress-label {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}
.tl-dress-list {
  margin: 0.4rem 0 0 1.1rem;
  padding: 0;
  list-style: disc;
}
.tl-dress-list li {
  font-size: var(--fs-300);
  color: rgba(255, 255, 255, 0.75);
}
.tl-dress-list li + li { margin-top: 0.35rem; }

.programme-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.programme-note span:first-child { color: var(--color-gold-bright); }
.programme-note-pre { margin-top: 1.4rem; }
.programme-note-post { margin-top: clamp(2rem, 1rem + 3vw, 3rem); }

.tl-item.is-active .tl-marker { background: var(--color-gold); box-shadow: 0 0 0 5px rgba(190, 160, 95, 0.25); }
.tl-item.is-active .tl-card {
  background: rgba(190, 160, 95, 0.14);
  border-color: var(--color-gold);
}

/* ---------- Gallery / Carousel (coverflow) ---------- */
.gallery { background: var(--color-offwhite); overflow: hidden; }
.carousel {
  --card-w: clamp(240px, 34vw, 440px);
  --card-h: clamp(300px, 44vw, 560px);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  user-select: none;
}
.carousel-stage {
  position: relative;
  height: var(--card-h);
  perspective: 1600px;
  transform-style: preserve-3d;
}
.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform, opacity;
}
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 48, 0.28);
  transition: background 0.5s var(--ease);
}
.carousel-card.is-active { box-shadow: var(--shadow-lg); cursor: zoom-in; }
.carousel-card.is-active::after { background: rgba(7, 26, 48, 0); }
.carousel-card:not(.is-active) { cursor: pointer; }

/* Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.carousel-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  background: var(--color-white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover {
  background: var(--color-navy);
  color: var(--color-gold-bright);
  border-color: var(--color-navy);
  transform: translateY(-2px);
}
.carousel-btn:active { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(7, 26, 48, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-size: 2.6rem;
  line-height: 1;
  color: #fff;
}

/* ---------- Accommodation ---------- */
.accommodation { background: var(--color-white); }
.acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.acc-card h2 { font-size: var(--fs-800); margin-bottom: 1rem; }
.acc-lead { color: var(--color-muted); margin-bottom: 1.6rem; }
.acc-details { margin-bottom: 1.8rem; border-top: 1px solid var(--color-line); }
.acc-details li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-line);
}
.acc-details span { color: var(--color-muted); font-size: var(--fs-300); }
.acc-details strong { font-family: var(--font-serif); font-size: var(--fs-500); color: var(--color-navy); }
.acc-note { margin-top: 1.1rem; font-size: var(--fs-300); color: var(--color-muted); }
.acc-notice {
  margin-top: 1.6rem;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--color-gold, #b8902a);
  background: #fdf8ef;
  border-radius: 0 6px 6px 0;
}
.acc-notice p { margin-bottom: 0.8rem; font-size: var(--fs-300); line-height: 1.65; color: var(--color-body); }
.acc-notice p:last-child { margin-bottom: 0; }
.acc-notice-title {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.acc-notice a { color: var(--color-navy); text-decoration: underline; }
.acc-notice-warning { font-weight: 600; color: var(--color-navy); }
.acc-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Sponsorship ---------- */
.sponsorship { background: var(--color-offwhite); }
.tiers {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  padding-left: clamp(2.25rem, 1.6rem + 2vw, 3rem);
}
.tiers::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: calc(clamp(2.25rem, 1.6rem + 2vw, 3rem) / 2 - 1px);
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-line));
}
.tiers-note {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  color: var(--color-muted);
  font-size: var(--fs-200);
  text-align: center;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tier::before {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: calc(-1 * clamp(2.25rem, 1.6rem + 2vw, 3rem) / 2 - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 0 4px var(--color-offwhite);
  z-index: 1;
}
.tier-feature::before { background: var(--color-gold); border-color: var(--color-navy); }
.tier:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.tier-feature {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-gold);
}
.tier-feature h3, .tier-feature .tier-price { color: #fff; }
.tier-feature .tier-amount { color: var(--color-gold-bright); }
.tier-badge {
  display: inline-block;
  align-self: center;
  text-align: center;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy-deep);
  background: var(--color-gold);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.tier h3 { font-size: var(--fs-600); margin-bottom: 0.3rem; }
.tier-price {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-teal);
  font-size: var(--fs-300);
  margin-bottom: 0.3rem;
}
.tier-amount {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-navy);
  font-size: var(--fs-500);
  margin-bottom: 1.2rem;
}
.tier ul { display: flex; flex-direction: column; gap: 0.7rem; }
.tier li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-300);
  color: var(--color-muted);
}
.tier-feature li { color: rgba(255, 255, 255, 0.82); }
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ---------- Attendees ---------- */
.attendees { background: var(--color-white); }
.attendees-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.attendees-text h2 { font-size: var(--fs-800); margin-bottom: 1rem; }
.attendees-text p { color: var(--color-muted); }
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
.checklist li {
  position: relative;
  padding-left: 2.2rem;
  font-weight: 500;
  color: var(--color-ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-teal);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Travel Requirements ---------- */
.travel { background: var(--color-white); }
.travel .section-head { max-width: 1000px; }
.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.travel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-offwhite);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.travel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.travel-card h3 {
  font-size: var(--fs-600);
  margin-bottom: 0.7rem;
}
.travel-card p { color: var(--color-muted); }
.travel-card p + p { margin-top: 0.9rem; }
.travel-card a:not(.btn) {
  color: var(--color-teal);
  font-weight: 600;
  text-underline-offset: 3px;
}
.travel-card a:not(.btn):hover { color: var(--color-navy); }
.travel-card .btn { margin: 1rem 0 0.4rem; }

.travel-card-primary {
  background: var(--color-navy);
  border-color: var(--color-gold);
  color: #fff;
}
.travel-card-primary h3 { color: #fff; }
.travel-card-primary > p { color: rgba(255, 255, 255, 0.82); }

.travel-card-image {
  margin-top: auto;
  padding-top: 1.4rem;
}
.travel-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.travel-notice {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(190, 160, 95, 0.12);
  border: 1px solid rgba(190, 160, 95, 0.4);
  border-left: 3px solid var(--color-gold);
}
.travel-notice-label {
  display: block;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 0.4rem;
}
.travel-notice p { font-size: var(--fs-300); color: rgba(255, 255, 255, 0.85); margin: 0; }
.travel-notice strong { color: #fff; }

/* ---------- Explore Kingston ---------- */
.explore { background: var(--color-offwhite); }
.explore .section-head { max-width: 760px; }
.explore-subhead {
  font-size: var(--fs-600);
  color: var(--color-navy);
  margin-bottom: clamp(1.2rem, 1rem + 1.5vw, 2rem);
}
.venues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.venue-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.venue-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.venue-media { aspect-ratio: 4 / 3; overflow: hidden; }
.venue-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.venue-card:hover .venue-media img { transform: scale(1.07); }
.venue-body { padding: 1.2rem 1.25rem 1.4rem; }
.venue-body h4 {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.venue-body p { font-size: var(--fs-300); color: var(--color-muted); }
.venues-grid .venue-card { transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(7, 26, 48, 0.9), rgba(7, 26, 48, 0.9)),
    var(--color-teal);
  color: #fff;
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem);
  text-align: center;
}
.cta-inner { max-width: 680px; margin-inline: auto; }
.cta-inner h2 { color: #fff; font-size: var(--fs-800); margin-bottom: 1rem; }
.cta-sub { color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #000000; color: rgba(255, 255, 255, 0.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.footer-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; font-size: var(--fs-300); }
.footer-nav h4, .footer-links h4 {
  font-family: var(--font-sans);
  color: var(--color-gold);
  font-size: var(--fs-200);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav, .footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a, .footer-links a { font-size: var(--fs-300); transition: color 0.2s var(--ease); }
.footer-nav a:hover, .footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-200);
}
.footer-bottom p:last-child { font-family: var(--font-serif); font-style: italic; color: var(--color-gold-bright); }

/* ---------- Scroll reveal ---------- */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view, .reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* staggered theme cards */
.themes-grid .theme-card { transition-delay: calc(var(--i, 0) * 80ms); }
.tiers .tier { transition-delay: calc(var(--i, 0) * 80ms); }

/* Hero fade-in-up on load */
.hero-content .reveal-up {
  opacity: 0;
  transform: translateY(24px);
}
.hero-content.loaded .reveal-up {
  animation: fade-up 0.8s var(--ease) forwards;
}
.hero-content.loaded .reveal-up[data-delay="1"] { animation-delay: 0.12s; }
.hero-content.loaded .reveal-up[data-delay="2"] { animation-delay: 0.24s; }
.hero-content.loaded .reveal-up[data-delay="3"] { animation-delay: 0.36s; }
.hero-content.loaded .reveal-up[data-delay="4"] { animation-delay: 0.48s; }
.hero-content.loaded .reveal-up[data-delay="5"] { animation-delay: 0.6s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .venues-grid { grid-template-columns: repeat(3, 1fr); }
  .objectives-grid, .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-logo { width: 88px; height: 88px; min-width: 88px; max-width: 88px; }
  .header-dcs-logo { width: 88px; height: 88px; min-width: 88px; max-width: 88px; }
  .nav-desktop { gap: clamp(0.6rem, 1.4vw, 1.4rem); }
}

@media (max-width: 860px) {
  :root { --gutter: 1.25rem; --header-h: 116px; }

  html, body { overflow-x: clip; }

  .nav-desktop { display: none; }
  .header-partners { display: none; }
  .hamburger { display: flex; }
  .brand-logo { width: 104px; height: 104px; min-width: 104px; max-width: 104px; }
  .header-dcs-logo { width: 104px; height: 104px; }
  .about-grid, .acc-grid, .attendees-grid, .experience-grid { grid-template-columns: 1fr; }
  .venues-grid { grid-template-columns: repeat(2, 1fr); }
  .travel-grid { grid-template-columns: 1fr; }
  .about-media, .acc-media { order: -1; }
  .acc-media img { aspect-ratio: 16 / 10; }
  .experience-media img { aspect-ratio: 16 / 10; }

  /* timeline card: stack day label above content on narrower screens */
  .tl-card { grid-template-columns: 1fr; gap: 0.2rem; }
  .tl-day { padding-top: 0; }

  /* sponsorship tiers: tighten the connecting line/markers for tablet */
  .tiers { gap: 1.5rem; padding-left: 2rem; }
  .tiers::before { left: calc(2rem / 2 - 1px); }
  .tier { padding: 1.5rem 1.25rem; }
  .tier::before { left: calc(-1 * 2rem / 2 - 6px); top: 1.8rem; width: 12px; height: 12px; }
}

@media (max-width: 620px) {
  .themes-grid { grid-template-columns: 1fr; }
  .venues-grid { grid-template-columns: 1fr; }
  .theme-body { text-align: center; }
  .objectives-grid, .outcomes-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .carousel { --card-w: min(78vw, 320px); --card-h: min(96vw, 400px); }
  .carousel-btn { width: 48px; height: 48px; }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.5rem, 2vw, 1rem);
  }
  .stat-num { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    margin-top: 0.4rem;
  }
  .aim-inner h2 {
    font-size: clamp(1.6rem, 5.2vw, 2rem);
    overflow-wrap: break-word;
  }
  .aim-line-nowrap { white-space: normal; }
  .aim-lead {
    font-size: var(--fs-400);
    max-width: 100%;
  }
  .cd-unit { min-width: 54px; }
  .footer-bottom { justify-content: flex-start; }

  /* sponsorship tiers: compact connecting line/markers on mobile */
  .tiers { gap: 1.25rem; padding-left: 1.5rem; }
  .tiers::before { left: calc(1.5rem / 2 - 1px); }
  .tier { padding: 1.4rem 1.1rem; }
  .tier::before { left: calc(-1 * 1.5rem / 2 - 5px); top: 1.6rem; width: 10px; height: 10px; border-width: 2px; box-shadow: 0 0 0 3px var(--color-offwhite); }
  .tier h3 { font-size: var(--fs-500); }
}

@media (max-width: 400px) {
  .cd-unit { min-width: 46px; padding: 0.55rem 0.3rem; }
  .cd-sep { display: none; }
  .countdown { gap: 0.4rem; }
  .brand-text { font-size: 1.05rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-up, .hero-content .reveal-up { opacity: 1; transform: none; }
  .hero-slide { transition: opacity 0.01ms linear; animation: none; transform: none; }
  .hero-slide.is-active { transform: none; }
}
