/* =========================================================
   13th CMFS Winter School — v2 demo
   Layout system: "white workshop with pastel sticky notes" (DESIGN.md)
   Colours + type: the new square CMFS poster
     navy ink · sunset gold · cream paper · steel blue
     script "CMFS" · classical serif caps · clean sans
   ========================================================= */

:root {
  /* Poster colours */
  --navy: #0a2342;
  /* "CMFS" ink, sea */
  --navy-2: #1d3a5f;
  --navy-hover: #14335c;
  --gold: #e0a33e;
  /* brush ribbon "Hands-on cadaver" */
  --gold-soft: #f3c77a;
  --gold-ink: #8a5a12;
  /* gold for text on light surfaces (AA) */
  --steel: #98aec7;
  --sky: #80acd3;
  --terracotta: #9a6e55;

  /* Neutrals */
  --ink: #2b2f36;
  --slate: #545a66;
  --iron: #7d8088;
  --mist: #e2d9cc;
  --pebble: #ece4d8;
  --canvas: #fbf7f0;
  --canvas2: #f0f9fb;
  /* cream paper */
  --snow: #ffffff;

  /* Pastel sticky-note surfaces (poster family) */
  --p-cream: #fcf3e4;
  --p-sand: #f3e7d6;
  --p-peach: #fde6c8;
  --p-sky: #e4edf6;
  --p-steel: #dde5ee;
  --p-stone: #ece6df;

  /* Type */
  --font: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Kaushan Script', 'Brush Script MT', cursive;

  /* Shape & elevation */
  --r-badge: 6px;
  --r-img: 12px;
  --r-card: 24px;
  --r-pill: 160px;
  --shadow: rgba(170, 150, 120, 0.22) 0 2px 48px 0;
  --shadow-hover: rgba(10, 35, 66, 0.16) 0 6px 45px 0;

  --section-gap: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--snow);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--navy);
}

a {
  color: var(--navy-2);
}

::selection {
  background: var(--p-peach);
}

.container-xl {
  max-width: 1200px;
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section--canvas {
  background: var(--canvas2);
}

.section--navy {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 10px;
}

.section--navy .eyebrow {
  color: var(--gold-soft);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: .01em;
  margin-bottom: 14px;
}

.section-title .script {
  font-family: var(--font-script);
  text-transform: none;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

.section-lead {
  color: var(--slate);
  font-size: 19px;
  max-width: 720px;
}

.section--navy .section-lead {
  color: rgba(255, 255, 255, .78);
}

.text-slate {
  color: var(--slate) !important;
}

.serif {
  font-family: var(--font-serif);
}

.serif-caps {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.script {
  font-family: var(--font-script);
}

/* Brush divider (gold stroke) */
.brush {
  display: block;
  width: 92px;
  height: 10px;
  margin-bottom: 18px;
  background: var(--gold);
  border-radius: 50% 40% 60% 30% / 60% 50% 50% 40%;
  transform: rotate(-2deg);
  opacity: .9;
}

/* ---------- Buttons ---------- */
.btn-pill {
  border-radius: var(--r-pill);
  font-weight: 600;
  padding: 13px 24px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 35, 66, .28);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy-2);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-soft);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transform: translateY(-2px);
}

.btn-pill .arrow {
  transition: transform .25s var(--ease);
}

.btn-pill:hover .arrow {
  transform: translateX(4px);
}

.btn-sm-pill {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-pill[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

/* ---------- Placeholder marker ---------- */
.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--p-peach);
  border: 1px dashed #d39a3c;
  border-radius: var(--r-badge);
  padding: 3px 9px;
  white-space: nowrap;
}

.ph-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.6);
    opacity: .4;
  }
}

.ph-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--mist);
  font-size: 15px;
}

.ph-field:last-child {
  border-bottom: 0;
}

.ph-field span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.skeleton {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--p-stone) 25%, var(--pebble) 50%, var(--p-stone) 75%);
  background-size: 200% 100%;
  animation: skel 1.6s linear infinite;
  margin-top: 10px;
}

@keyframes skel {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Top bar + Nav ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  padding: 7px 0;
}

.topbar b {
  color: var(--gold-soft);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-nav {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--pebble);
  padding: 10px 0;
  transition: box-shadow .3s;
}

.site-header.scrolled .site-nav {
  box-shadow: 0 6px 24px rgba(10, 35, 66, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-script);
  font-size: 15px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  border-right-color: transparent;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.brand-text {
  line-height: 1.1;
  min-width: 0;
}

.brand-text b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-text b .script {
  font-family: var(--font-script);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--navy);
  font-size: 18px;
}

.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav .nav-link {
  color: var(--slate);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 10px !important;
  border-radius: var(--r-badge);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active,
.site-nav .nav-link.show {
  color: var(--navy);
  background: var(--p-cream);
}

.site-nav .dropdown-menu {
  border: 1px solid var(--pebble);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  padding: 8px;
  min-width: 240px;
}

.site-nav .dropdown-item {
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item.active {
  background: var(--p-cream);
  color: var(--navy);
}

.site-nav .dropdown-item small {
  display: block;
  color: var(--iron);
  font-size: 12px;
}

.navbar-toggler {
  border: 1px solid var(--pebble);
  border-radius: var(--r-badge);
  padding: 8px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--p-peach);
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(800px 420px at 100% 0%, var(--p-peach) 0%, transparent 65%),
    radial-gradient(700px 420px at 0% 100%, var(--p-sky) 0%, transparent 70%),
    var(--canvas);
}

.hero-num {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  display: block;
  transform: rotate(-4deg);
  transform-origin: left;
}

.hero-cmfs {
  font-family: var(--font-script);
  color: var(--navy);
  font-size: clamp(84px, 13vw, 168px);
  line-height: .9;
  margin: 0;
  letter-spacing: .01em;
}

.hero-ws {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: .02em;
  margin: 6px 0 12px;
}

.hero-tag {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--navy-2);
  font-size: clamp(14px, 1.6vw, 18px);
  padding: 10px 0;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  display: inline-block;
}

.hero-full {
  color: var(--slate);
  font-size: 17px;
  margin: 14px 0 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 22px 0 26px;
}

.hero-meta .m {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta .m svg {
  width: 34px;
  height: 34px;
  color: var(--navy);
  flex-shrink: 0;
}

.hero-meta .m b {
  display: block;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.15;
  font-size: 17px;
}

.hero-meta .m span {
  font-size: 14px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.hero-ctas .btn-pill {
  justify-content: space-between;
}

.hero-statement {
  margin-top: 22px;
  font-size: 16px;
  color: var(--slate);
  max-width: 560px;
}

.hero-visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero-poster {
  position: relative;
  z-index: 2;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(10, 35, 66, .28);
  transform: rotate(2deg);
  transition: transform .6s var(--ease);
}

.hero-poster:hover {
  transform: rotate(0) scale(1.01);
}

.hero-poster img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.hero-visual .blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-visual .blob.b1 {
  width: 70%;
  height: 70%;
  background: var(--p-peach);
  top: -8%;
  right: -10%;
  animation: drift 10s ease-in-out infinite alternate;
}

.hero-visual .blob.b2 {
  width: 50%;
  height: 50%;
  background: var(--p-sky);
  bottom: -10%;
  left: -10%;
  animation: drift 12s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  to {
    transform: translate(6%, -5%) scale(1.05);
  }
}

.ribbon {
  position: absolute;
  z-index: 3;
  font-family: var(--font-script);
  color: var(--navy);
  background: var(--gold);
  padding: 10px 22px;
  font-size: 22px;
  box-shadow: var(--shadow-hover);
  border-radius: 6px 30px 6px 30px;
  animation: floaty 6s ease-in-out infinite;
}

.ribbon.r1 {
  left: -22px;
  bottom: -22px;
  transform: rotate(-5deg);
}

.note {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: var(--shadow-hover);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  animation: floaty 7s ease-in-out infinite;
  animation-delay: -3s;
}

.note b {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
}

.note.n1 {
  right: -22px;
  top: 44%;
  transform: rotate(4deg);
}

@keyframes floaty {
  50% {
    translate: 0 -10px;
  }
}

/* Countdown strip */
.countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.countdown .unit {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 16px;
  min-width: 78px;
  padding: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.countdown .unit b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown .unit span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--iron);
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(700px 320px at 100% 0%, var(--p-peach) 0%, transparent 65%),
    radial-gradient(600px 320px at 0% 100%, var(--p-sky) 0%, transparent 70%),
    var(--canvas);
  border-bottom: 1px solid var(--pebble);
}

.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0 0 14px;
}

.page-head h1 .script {
  font-family: var(--font-script);
  text-transform: none;
  font-weight: 400;
  color: var(--gold);
}

.page-head p {
  color: var(--slate);
  font-size: 19px;
  max-width: 760px;
  margin: 0;
}

.crumbs {
  font-size: 13px;
  color: var(--iron);
  margin-bottom: 14px;
}

.crumbs a {
  color: var(--slate);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--navy);
}

.page-head .deco {
  position: absolute;
  right: -40px;
  bottom: -60px;
  font-family: var(--font-script);
  font-size: 220px;
  color: rgba(10, 35, 66, .05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ---------- Stats ---------- */
.stat-card {
  border-radius: var(--r-card);
  padding: 26px 22px;
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.stat-card .n {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(46px, 5vw, 66px);
  line-height: 1;
  color: var(--navy);
}

.stat-card .l {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 8px;
}

.stat-card p {
  font-size: 15px;
  color: var(--slate);
  margin: 6px 0 0;
}

/* ---------- Pastel cards ---------- */
.p-card {
  border-radius: var(--r-card);
  padding: 26px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.p-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.p-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.p-card .ic svg {
  width: 22px;
  height: 22px;
}

.p-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  font-family: var(--font);
}

.p-card h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.p-card p {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

.p-card p.lg {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.bg-cream {
  background: var(--p-cream);
}

.bg-sand {
  background: var(--p-sand);
}

.bg-peach {
  background: var(--p-peach);
}

.bg-sky {
  background: var(--p-sky);
}

.bg-steel {
  background: var(--p-steel);
}

.bg-stone {
  background: var(--p-stone);
}

.w-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 26px;
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.w-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.soon-card {
  border: 1.5px dashed var(--mist);
  background: #fff;
  border-radius: var(--r-card);
  padding: 24px;
  height: 100%;
  transition: border-color .3s, transform .3s var(--ease);
}

.soon-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.soon-card h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  margin: 12px 0 6px;
}

.soon-card p {
  font-size: 15px;
  color: var(--slate);
  margin: 0;
}

.soon-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 15px;
  color: var(--slate);
}

.soon-card ul li {
  margin-bottom: 4px;
}

.status-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: var(--r-badge);
  white-space: nowrap;
  display: inline-block;
}

.lv-b {
  background: var(--p-sky);
  color: var(--navy-2);
}

.lv-i {
  background: var(--p-peach);
  color: var(--gold-ink);
}

.lv-a {
  background: var(--navy);
  color: #fff;
}

/* Deadlines */
.deadline {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 18px;
  padding: 16px 18px;
  height: 100%;
  box-shadow: var(--shadow);
}

.deadline .cal {
  width: 54px;
  height: 58px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.deadline .cal b {
  font-family: var(--font-serif);
  font-size: 22px;
  display: block;
}

.deadline .cal small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.deadline h4 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--navy);
}

/* ---------- Tracks ---------- */
.track-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.track-card .no {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.track-card b {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.track-card span.d {
  font-size: 16px;
  color: var(--slate);
}

.track-card .go {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-2);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.track-card:hover .go .arrow {
  transform: translateX(4px);
}

.track-card .go .arrow {
  transition: transform .25s var(--ease);
}

.levels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.track-block {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 100px;
}

.track-block .tb-head {
  padding: 28px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.track-block .tb-no {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
}

.track-block h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 4px;
  line-height: 1.1;
}

.track-block .tb-desc {
  color: var(--slate);
  font-size: 18px;
  margin: 0;
}

.track-block .tb-body {
  border-top: 1px solid var(--pebble);
  padding: 22px 30px 26px;
  background: var(--canvas);
}

.track-nav {
  position: sticky;
  top: 86px;
}

.track-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--slate);
  font-weight: 600;
  font-size: 15px;
}

.track-nav a:hover,
.track-nav a.active {
  background: var(--p-cream);
  color: var(--navy);
}

.track-nav a span {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-ink);
  width: 18px;
}

/* ---------- Workshops ---------- */
.model-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.model-filter button {
  border: 1px solid var(--mist);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
  font-family: inherit;
  transition: all .25s var(--ease);
}

.model-filter button .c {
  background: var(--p-stone);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  margin-left: 6px;
  font-size: 12px;
}

.model-filter button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.model-filter button.active .c {
  background: rgba(255, 255, 255, .2);
}

.ws-item.hide {
  display: none;
}

.ws-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ws-card .no {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.ws-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.ws-card p {
  color: var(--slate);
  font-size: 16px;
  margin: 0;
}

.ws-card details {
  border-top: 1px dashed var(--mist);
  padding-top: 10px;
}

.ws-card summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-2);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ws-card summary::-webkit-details-marker {
  display: none;
}

.ws-card summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  transition: transform .3s var(--ease);
}

.ws-card details[open] summary::after {
  transform: rotate(45deg);
}

.ws-card .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ws-card.is-tba {
  border-style: dashed;
  background: var(--canvas);
  box-shadow: none;
}

.ws-card.is-tba .no {
  color: var(--mist);
}

.model-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-badge);
  color: var(--navy);
  line-height: 1.3;
}

.m-cadaver {
  background: var(--p-peach);
}

.m-skull {
  background: var(--p-sand);
}

.m-simulator {
  background: var(--p-sky);
}

.m-phantom {
  background: var(--p-steel);
}

.m-tba {
  background: var(--p-stone);
}

.model-tiles .p-card .n {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

/* ---------- Comeback band ---------- */
.comeback {
  position: relative;
}

.comeback .years {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.comeback .years .arrow {
  color: var(--gold);
  font-size: .6em;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    translate: 8px 0;
  }
}

.comeback .years .now {
  color: var(--gold-soft);
}

.obj-card {
  border-radius: var(--r-card);
  padding: 24px;
  height: 100%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .3s, transform .3s var(--ease);
}

.obj-card:hover {
  background: rgba(255, 255, 255, .11);
  transform: translateY(-4px);
}

.obj-card .k {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--gold-soft);
}

.obj-card h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  margin: 8px 0 6px;
}

.obj-card p {
  color: rgba(255, 255, 255, .75);
  margin: 0;
  font-size: 16px;
}

.section--navy .glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  background: var(--gold);
  top: -260px;
  right: -160px;
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ---------- Welcome & board ---------- */
.welcome-text p {
  color: var(--slate);
  font-size: 17.5px;
}

.welcome-text p.first {
  font-size: 21px;
  color: var(--ink);
}

.welcome-text .closing {
  color: var(--navy);
  font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.welcome-sign {
  margin-top: 22px;
}

.welcome-sign .script {
  font-size: 34px;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}

.welcome-sign small {
  color: var(--slate);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.person {
  text-align: center;
}

.person .ph {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 16px;
  position: relative;
  background: var(--p-stone);
}

.person .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .8s var(--ease);
}

.person:hover .ph img {
  transform: scale(1.06);
}

.person h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 4px;
}

.person p {
  color: var(--slate);
  font-size: 15px;
  margin: 0;
}

.board-mini {
  display: flex;
}

.board-mini img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid #fff;
  margin-left: -12px;
  box-shadow: var(--shadow);
}

.board-mini img:first-child {
  margin-left: 0;
}

/* ---------- History ---------- */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare th,
.compare td {
  padding: 15px 18px;
  vertical-align: top;
  font-size: 15.5px;
  border-bottom: 1px solid var(--pebble);
}

.compare thead th {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 2px solid var(--mist);
}

.compare thead th.now {
  color: var(--navy);
}

.compare td:first-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--iron);
  width: 22%;
}

.compare td.now {
  background: var(--p-cream);
  font-weight: 600;
  color: var(--navy);
}

.compare tr:last-child td {
  border-bottom: 0;
}

.new-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--r-badge);
  padding: 2px 7px;
  margin: 0 8px 0 4px;
}

.poster-stack {
  display: grid;
  max-width: 380px;
  margin: 0 auto;
  padding: 18px 26px;
}

.poster-card-s {
  grid-area: 1 / 1;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  align-self: center;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}

.poster-card-s img {
  width: 100%;
  display: block;
}

.poster-card-s:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.poster-card-s.is-back {
  z-index: 1;
  transform: translate(-22px, -14px) rotate(-6deg) scale(.96);
  filter: saturate(.75) brightness(.95);
}

.poster-card-s.is-back:hover {
  transform: translate(-30px, -20px) rotate(-8deg) scale(.97);
  filter: none;
}

.poster-card-s.is-front {
  z-index: 2;
  transform: translate(14px, 10px) rotate(3deg);
  cursor: zoom-in;
}

.poster-card-s.is-front:hover {
  transform: translate(14px, 6px) rotate(1deg) scale(1.02);
}

.poster-card-s.lift {
  animation: liftSwap .7s var(--ease);
}

@keyframes liftSwap {
  40% {
    transform: translate(-150px, -10px) rotate(-12deg) scale(.98);
  }
}

.poster-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.poster-caption small {
  font-size: 14px;
  color: var(--slate);
}

.poster-caption .hint {
  font-size: 12px;
  color: var(--iron);
}

/* ---------- Venue ---------- */
.venue-photo,
.venue-map {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 420px;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--mist);
  background: var(--p-stone);
}

.venue-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
  transition: transform 1.2s var(--ease);
}

.venue-photo:hover img {
  transform: scale(1.06);
}

.venue-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}

.pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: pinPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pinPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 163, 62, .6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(224, 163, 62, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(224, 163, 62, 0);
  }
}

.venue-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.venue-map .map-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

/* ---------- Logo strip (sponsors placeholder) ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.logo-slot {
  aspect-ratio: 3/2;
  border: 1.5px dashed var(--mist);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--iron);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #fff;
}

/* ---------- Journeys ---------- */
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey li {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

.journey li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 700;
}

.journey li {
  margin-right: 10px;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-clean .accordion-item {
  border: 1px solid var(--mist);
  border-radius: 16px !important;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}

.accordion-clean .accordion-button {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  background: #fff;
  padding: 18px 22px;
}

.accordion-clean .accordion-button:not(.collapsed) {
  background: var(--p-cream);
  box-shadow: none;
}

.accordion-clean .accordion-button:focus {
  box-shadow: 0 0 0 3px var(--p-peach);
}

/* ---------- CTA band & footer ---------- */
.cta-band {
  background: var(--navy);
  border-radius: 32px;
  padding: clamp(32px, 6vw, 72px);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 20% 30%, rgba(152, 174, 199, .35), transparent 40%), radial-gradient(circle at 80% 70%, rgba(224, 163, 62, .35), transparent 40%);
  animation: drift 12s ease-in-out infinite alternate;
}

.cta-band>* {
  position: relative;
}

.cta-band h2 {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: .02em;
}

.cta-band h2 .script {
  font-family: var(--font-script);
  text-transform: none;
  font-weight: 400;
  color: var(--gold);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
  padding: 64px 0 28px;
  font-size: 15px;
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.site-footer h6 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-footer .brand-text b,
.site-footer .brand-text b .script {
  color: #fff;
}

.site-footer .brand-text small {
  color: rgba(255, 255, 255, .65);
}

.site-footer .brand-mark {
  background: #fff;
  color: var(--navy);
}

.site-footer hr {
  border-color: rgba(255, 255, 255, .15);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all .3s var(--ease);
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.progress-bar-top {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--steel), var(--gold));
  z-index: 1040;
}

/* ---------- Marquee ---------- */
.marquee-band {
  background: var(--navy);
  color: #fff;
  padding: 22px 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.marquee-band:hover .marquee {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(17px, 2vw, 22px);
  padding: 0 26px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

.marquee span::after {
  content: "✦";
  color: var(--gold);
  font-size: 13px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .site-nav .nav-link {
    font-size: 14px;
    padding: 8px 7px !important;
  }
}

@media (max-width: 991.98px) {
  :root {
    --section-gap: 72px;
  }

  .site-nav .navbar-collapse {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px;
    box-shadow: var(--shadow-hover);
    max-height: 75vh;
    overflow-y: auto;
  }

  .site-nav .dropdown-menu {
    box-shadow: none;
    border: 0;
    padding: 0 0 0 10px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    max-width: 420px;
    margin-top: 24px;
  }

  .ribbon.r1 {
    left: -6px;
  }

  .note.n1 {
    right: -6px;
  }

  .track-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .track-nav a {
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--mist);
  }

  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .venue-photo,
  .venue-map {
    min-height: 340px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-gap: 56px;
  }

  body {
    font-size: 16px;
  }

  .topbar .hide-sm {
    display: none;
  }

  .hero-ctas {
    grid-template-columns: 1fr;
  }

  .compare td:first-child {
    width: 30%;
  }

  .compare th,
  .compare td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .track-block .tb-head {
    grid-template-columns: auto 1fr;
    padding: 22px;
  }

  .track-block .tb-head .levels {
    grid-column: 1 / -1;
  }

  .track-block .tb-body {
    padding: 18px 22px 22px;
  }

  .venue-photo,
  .venue-map {
    min-height: 300px;
  }

  .page-head {
    padding: 52px 0 40px;
  }
}

@media (max-width: 575.98px) {
  .brand-text b {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .countdown .unit {
    min-width: 64px;
  }

  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Serif display faces can default to old-style figures ("10" reads as "IO") — force lining numerals */
body,
.serif,
.serif-caps,
.section-title,
.page-head h1,
.hero-ws,
.stat-card .n,
.countdown .unit b,
.track-card .no,
.tb-no,
.ws-card .no,
.note b,
.comeback .years,
.deadline .cal b,
.model-tiles .p-card .n,
.obj-card .k,
.compare {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.ws-card>.ph-badge,
.soon-card>.ph-badge {
  align-self: flex-start;
  width: fit-content;
}

/* =========================================================
   Header colour animation (ported from v1, poster palette)
   - "13th CMFS" hero title: gradient sweeping through the letters
   - Logo mark: spinning colour ring
   ========================================================= */
:root {
  --grad-shimmer: linear-gradient(90deg, #0a2342 0%, #1d3a5f 20%, #98aec7 40%, #e0a33e 55%, #1d3a5f 75%, #0a2342 100%);
  --grad-ring: conic-gradient(from 270deg, #98aec7 10%, #e0a33e 35%, #f3c77a 50%, #0a2342 70%, #98aec7 100%);
}

.hero-cmfs,
.hero-num {
  background: var(--grad-shimmer);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  padding-right: .12em;
  /* keep the brush overhang inside the clip */
}

.hero-num {
  /* "13th" stays gold-led, offset so it isn't in sync with CMFS */
  background-image: linear-gradient(90deg, #e0a33e 0%, #f3c77a 30%, #98aec7 50%, #e0a33e 70%, #b9822a 100%);
  animation-delay: -2s;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.brand-mark::after {
  border: 0;
  inset: -4px;
  background: var(--grad-ring);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin 6s linear infinite;
}