/* =========================================================
   The Exchange — site styles
   1. Fonts   2. Tokens   3. Base   4. Components
   5. Sections   6. Motion   7. Responsive
   ========================================================= */

/* ---------- 1. Fonts ---------- */
@font-face { font-family: "Syne"; src: url("../fonts/Syne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/Syne-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/Syne-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Ballinger"; src: url("../fonts/Ballinger-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ballinger"; src: url("../fonts/Ballinger-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ballinger"; src: url("../fonts/Ballinger-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }

/* ---------- 2. Tokens ---------- */
:root {
  /* Brand */
  --navy: #071a3b;
  --cream: #f7f6f1;
  --purple: #944cd5;

  /* Supporting tones derived from the brand artwork */
  --navy-900: #050f26;
  --navy-700: #0c2350;
  --indigo: #1d1468;
  --violet: #5a2fc2;
  --lilac: #c49cf2;

  --grad-brand: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 50%, var(--lilac) 100%);
  --grad-glossy: radial-gradient(circle at 100% 100%, var(--indigo) 0%, #3a1fa0 38%, var(--purple) 72%, var(--lilac) 100%);

  --text: var(--cream);
  --text-muted: rgba(247, 246, 241, 0.66);
  --line: rgba(247, 246, 241, 0.12);

  --font-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Ballinger", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --section-pad: clamp(80px, 12vw, 160px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--purple); color: var(--cream); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--navy); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }

/* ---------- 4. Components ---------- */

/* Buttons */
.btn {
  --btn-pad-y: 14px; --btn-pad-x: 24px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s, border-color .3s;
}
.btn-sm { --btn-pad-y: 10px; --btn-pad-x: 18px; font-size: 14px; }
.btn-lg { --btn-pad-y: 18px; --btn-pad-x: 30px; font-size: 17px; }

.btn-primary { background: var(--purple); color: var(--cream); box-shadow: 0 8px 30px -10px rgba(148, 76, 213, .8); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-brand); opacity: 0; transition: opacity .4s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(148, 76, 213, 1); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost { background: rgba(247, 246, 241, .04); color: var(--cream); border-color: rgba(247, 246, 241, .28); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(247, 246, 241, .1); transform: translateY(-2px); }

.btn-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Labels */
.eyebrow, .kicker, .tag, .cta-label, .cd-label {
  font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: 12px;
}
.kicker { color: var(--lilac); margin-bottom: 18px; }
.tag { color: var(--lilac); margin-bottom: 10px; }

/* Section heads */
.section { position: relative; padding: var(--section-pad) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title { font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
.section-sub { margin-top: 20px; color: var(--text-muted); font-size: 1.1em; max-width: 560px; }

/* Cards */
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(247, 246, 241, .05), rgba(247, 246, 241, .015));
  border: 1px solid var(--line);
}
.card-body { padding: clamp(24px, 3vw, 40px); }
.card-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.card-body > p:not(.tag) { color: var(--text-muted); }

/* ---------- 5. Sections ---------- */

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0; transition: padding .35s var(--ease-out), background-color .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 12px 0; background: rgba(7, 26, 59, .86);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: clamp(156px, 15.6vw, 204px); height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { text-decoration: none; font-size: 15px; color: var(--text-muted); transition: color .2s; }
.nav-link:hover { color: var(--cream); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: clamp(84px, 13vh, 130px) 0 clamp(28px, 5vh, 72px); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(247, 246, 241, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 246, 241, .05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 620px; height: 620px; right: -120px; top: 6%; background: var(--violet); animation: drift 18s ease-in-out infinite alternate; }
.glow-2 { width: 480px; height: 480px; left: -160px; bottom: -160px; background: var(--indigo); opacity: .9; animation: drift 22s ease-in-out infinite alternate-reverse; }
.cursor-glow {
  position: absolute; left: -130px; top: -130px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 156, 242, .06), transparent 60%);
  transition: opacity .4s; opacity: 0;
}
.hero:hover .cursor-glow { opacity: 1; }

/* Brand quarter shapes (from the guideline artwork) */
.shape { position: absolute; display: block; background: var(--grad-glossy); }
.shape-q1 { width: clamp(180px, 26vw, 380px); aspect-ratio: 1; left: 0; top: 0; border-bottom-right-radius: 100%; translate: 0 0; transform: translate(-30%, -30%); opacity: .9; }
.shape-q2 { width: clamp(160px, 18vw, 280px); aspect-ratio: 1.6; left: 0; bottom: 0; transform: translate(-55%, 35%); background: radial-gradient(circle at 100% 0%, var(--lilac) 0%, var(--purple) 30%, #3a1fa0 70%, var(--indigo) 100%); opacity: .8; }
.shape-sq { width: clamp(120px, 14vw, 220px); aspect-ratio: 1.5; right: 0; top: 0; transform: translateX(30%); background: radial-gradient(circle at 0% 100%, var(--lilac) 0%, var(--purple) 30%, #3a1fa0 70%, var(--indigo) 100%); opacity: .55; }

.hero-inner { position: relative; z-index: 2; }
.hero-copy {
  max-width: 980px;
  /* One spacing value between title, date line, buttons and countdown keeps the rhythm even */
  --rhythm: clamp(32px, 6vh, 60px);
  --meta-pad: 18px;
}

.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--lilac); margin-bottom: clamp(16px, 3vh, 28px); }

/* Sized so "or Evaporate?" (about 6.2em wide) always fits on one line */
.hero-title { font-size: clamp(2.4rem, min(calc((100vw - 2 * var(--gutter)) / 6.4), 11.5vh), 7.5rem); line-height: 1; letter-spacing: -0.035em; }
.hero-title .line { display: block; }
.hero-title .nowrap { white-space: nowrap; }
.highlight {
  position: relative; display: inline-block; padding: 0 .16em .04em; margin-left: -.16em;
  background: var(--grad-brand); background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite;
}
.highlight::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 62%);
  background-size: 250% 100%; background-position: 150% 0;
  animation: sheen 5s 1.6s var(--ease-out) infinite;
}
.hero-meta {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  margin: var(--rhythm) 0 0; padding-block: var(--meta-pad);
  border-block: 1px solid var(--line);
  font-size: clamp(17px, 1.35vw, 21px); letter-spacing: .01em;
}
.meta-sep { width: 1px; height: 1.1em; background: var(--lilac); opacity: .6; }

.hero-stack { display: grid; width: fit-content; max-width: 100%; }
.cta-block { margin-top: var(--rhythm); }
.cta-label { color: var(--text-muted); margin-bottom: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  /* Oversized and cropped off the right edge */
  --size: min(70vw, 118vh);
  position: absolute; z-index: 1; pointer-events: none;
  width: var(--size); aspect-ratio: 1;
  right: calc(var(--size) * -0.3); top: 50%; margin-top: calc(var(--size) * -0.5);
}
.emblem-wrap { position: relative; width: 100%; filter: drop-shadow(0 40px 80px rgba(90, 47, 194, .55)); }
/* 2000px colour image cut out by a sharp-edged mask, so the edges stay crisp at large sizes */
.emblem {
  width: 100%; height: auto;
  -webkit-mask: url("../img/emblem-mask.png") 0 0 / 100% 100% no-repeat;
  mask: url("../img/emblem-mask.png") 0 0 / 100% 100% no-repeat;
  animation: float 9s ease-in-out infinite;
}

/* Compact countdown */
.mini-countdown { display: flex; flex-direction: column; gap: 10px; margin-top: var(--rhythm); }
.mc-label { font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--lilac); }
.mc-units { display: flex; }
.mc-unit { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-width: 52px; }
.mc-unit + .mc-unit { padding-left: 16px; margin-left: 16px; border-left: 1px solid var(--line); }
.mc-num {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.mc-num.tick { animation: tick .6s var(--ease-out); }
.mc-sub { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--text-muted); }

/* Marquee */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  background: var(--grad-brand);
  border-block: 1px solid rgba(247, 246, 241, .15);
}
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 30px); white-space: nowrap; letter-spacing: -.01em; }
.marquee img { width: 22px; height: 22px; filter: brightness(0) invert(96%) sepia(4%) saturate(250%); }

/* Countdown */
.countdown-section { background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(90, 47, 194, .35), transparent 70%); }
.countdown-section .section-head { margin-inline: auto; text-align: center; }
.countdown-section .section-sub { margin-inline: auto; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2vw, 24px); max-width: 1040px; margin: 0 auto; }
.cd-unit {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: clamp(22px, 4vw, 48px) 8px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(12, 35, 80, .9), rgba(7, 26, 59, .9)) padding-box,
    linear-gradient(160deg, rgba(196, 156, 242, .7), rgba(148, 76, 213, .1) 40%, rgba(148, 76, 213, .55)) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}
.cd-unit::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(247, 246, 241, .06);
}
.cd-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--cream) 30%, var(--lilac) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd-num.tick { animation: tick .6s var(--ease-out); }
.cd-label { color: var(--text-muted); font-size: clamp(10px, 1.1vw, 12px); }
.countdown.is-live .cd-unit { opacity: .5; }

/* Host & venue */
.hv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); }
.host-photo { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: var(--indigo); }
.host-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease-out); }
.host-card:hover .host-photo img { transform: scale(1.04); }

.venue-visual {
  position: relative; aspect-ratio: 5 / 4; display: grid; place-content: center;
  grid-template-columns: repeat(2, clamp(70px, 11vw, 130px)); grid-template-rows: repeat(2, clamp(70px, 11vw, 130px));
  gap: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(90, 47, 194, .45), transparent 65%),
    linear-gradient(to right, rgba(247, 246, 241, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(247, 246, 241, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--navy-900);
}
.venue-visual .vq { display: block; transition: transform 1s var(--ease-out); }
.vq-1 { border-bottom-left-radius: 100%; background: radial-gradient(circle at 100% 100%, var(--indigo), #3a1fa0 40%, var(--purple) 75%, var(--lilac)); }
.vq-2 { border-top-left-radius: 100%;    background: radial-gradient(circle at 0% 100%, var(--indigo), #3a1fa0 40%, var(--purple) 75%, var(--lilac)); }
.vq-3 { border-bottom-right-radius: 100%; background: radial-gradient(circle at 100% 0%, var(--indigo), #3a1fa0 40%, var(--purple) 75%, var(--lilac)); }
.vq-4 { border-top-right-radius: 100%;   background: radial-gradient(circle at 0% 0%, var(--indigo), #3a1fa0 40%, var(--purple) 75%, var(--lilac)); }
.venue-card:hover .vq-1 { transform: translate(-8px, -8px); }
.venue-card:hover .vq-2 { transform: translate(8px, -8px); }
.venue-card:hover .vq-3 { transform: translate(-8px, 8px); }
.venue-card:hover .vq-4 { transform: translate(8px, 8px); }

.venue-facts { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.venue-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.venue-facts dt { color: var(--text-muted); font-size: 14px; }
.venue-facts dd { margin: 0; text-align: right; }

/* More to come (light section) */
.more { background: var(--cream); color: var(--navy); overflow: hidden; }
.more .kicker { color: var(--purple); }
.more .section-sub { color: rgba(7, 26, 59, .7); }
.more-bg {
  position: absolute; right: 0; top: 0; width: clamp(200px, 30vw, 440px); aspect-ratio: 1;
  border-bottom-left-radius: 100%; background: var(--grad-glossy); opacity: .95;
  transform: translate(25%, -25%);
}

.upcoming { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(7, 26, 59, .15); }
.upcoming li {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 16px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid rgba(7, 26, 59, .15);
  transition: padding .4s var(--ease-out), color .3s;
}
.upcoming li:hover { padding-left: 14px; color: var(--purple); }
.up-num { font-family: var(--font-body); font-size: 14px; color: rgba(7, 26, 59, .5); }
.up-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3.6vw, 3rem); letter-spacing: -.02em; line-height: 1.1; }
.up-status {
  font-size: 12px; text-transform: uppercase; letter-spacing: .18em; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(7, 26, 59, .2); white-space: nowrap;
}

.final-cta {
  position: relative; margin-top: clamp(56px, 8vw, 100px); overflow: hidden; isolation: isolate;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: calc(var(--radius) + 8px); background: var(--navy); color: var(--cream);
  text-align: center;
}
.final-cta::before, .final-cta::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; background: var(--grad-glossy); }
.final-cta::before { width: clamp(140px, 22vw, 300px); left: 0; bottom: 0; border-top-right-radius: 100%; transform: translate(-20%, 20%); }
.final-cta::after { width: clamp(100px, 14vw, 200px); right: 0; top: 0; border-bottom-left-radius: 100%; transform: translate(20%, -20%); opacity: .8; }
.final-cta h3 { font-size: clamp(2.25rem, 6vw, 5rem); }
.final-cta p { margin: 18px auto 34px; max-width: 520px; color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--navy-900); padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-note, .footer-copy { color: var(--text-muted); font-size: 14px; }

/* ---------- 6. Motion ---------- */

/* Hero entrance */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.is-loaded .reveal {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
.hero-visual { opacity: 0; transform: scale(.85) rotate(-25deg); }
.is-loaded .hero-visual { opacity: 1; transform: none; transition: opacity 1.4s var(--ease-out) .3s, transform 1.8s var(--ease-out) .3s; }
.shape { opacity: 0; }
.is-loaded .shape { transition: opacity 1.6s var(--ease-out) .5s; }
.is-loaded .shape-q1 { opacity: .9; }
.is-loaded .shape-q2 { opacity: .8; }
.is-loaded .shape-sq { opacity: .55; }

/* Scroll reveal */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
.hv-grid .reveal-on-scroll:nth-child(2) { transition-delay: .12s; }

@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes sheen { 0% { background-position: 150% 0; } 40%, 100% { background-position: -100% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes tick { from { transform: translateY(35%); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }

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

/* ---------- 7. Responsive ---------- */
@media (max-width: 960px) {
  .hero-visual { --size: 110vw; right: calc(var(--size) * -0.42); top: 0; margin-top: 0; opacity: .35 !important; }
  .hv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-link { display: none; }
  /* Phones: spacing scales with the visible screen height (svh) so it all fits without scrolling */
  .hero { padding: clamp(72px, 12svh, 104px) 0 clamp(16px, 4svh, 40px); }
  .hero-visual { --size: 125vw; right: calc(var(--size) * -0.45); top: 40px; }
  .eyebrow { margin-bottom: clamp(8px, 2svh, 16px); }
  .hero-title { font-size: clamp(2.2rem, min(calc((100vw - 2 * var(--gutter)) / 6.4), 8.2svh), 4rem); }
  .hero-copy { --rhythm: clamp(18px, 4svh, 36px); --meta-pad: clamp(10px, 1.8svh, 16px); }
  .hero-stack { width: 100%; }
  .hero-meta { font-size: 17px; }
  .cta-label { margin-bottom: 10px; }
  .cta-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
  .cta-row .btn { --btn-pad-x: 10px; --btn-pad-y: clamp(13px, 2svh, 17px); justify-content: center; font-size: 15px; }
  .cta-row .btn-arrow { display: none; }
  .mini-countdown { gap: 8px; }
  .mc-num { font-size: 1.5rem; }
  .mc-unit { min-width: 0; }
  .mc-unit + .mc-unit { padding-left: 12px; margin-left: 12px; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .upcoming li { grid-template-columns: 1fr auto; }
  .up-num { display: none; }
  .up-status { font-size: 10px; padding: 6px 10px; letter-spacing: .12em; }
}

/* Short laptop screens: tighten vertical spacing so the page still fits one screen */
@media (max-height: 820px) and (min-width: 641px) {
  .hero-title { font-size: clamp(2.4rem, min(calc((100vw - 2 * var(--gutter)) / 6.4), 10vh), 7.5rem); }
  .hero-copy { --rhythm: clamp(22px, 4.2vh, 60px); --meta-pad: 14px; }
}

/* ---------- 8. Questionnaire pop-up ---------- */
.fd-locked { overflow: hidden; }

.form-dialog {
  width: min(720px, calc(100% - 32px)); max-height: min(760px, calc(100svh - 32px));
  margin: auto; padding: 0; border: 1px solid rgba(196, 156, 242, .3); border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(90, 47, 194, .35), transparent 60%),
    var(--navy);
  color: var(--cream); overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(7, 26, 59, .5);
}
.form-dialog[open] { display: flex; animation: fd-in .5s var(--ease-out); }
.form-dialog::backdrop { background: rgba(5, 15, 38, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.fd-shell { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.fd-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 18px clamp(24px, 4vw, 44px); }
.fd-kicker { font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--lilac); }
.fd-close {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(247, 246, 241, .06); border: 1px solid var(--line); color: var(--cream); cursor: pointer;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.fd-close:hover { background: rgba(247, 246, 241, .14); transform: rotate(90deg); }
.fd-track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.fd-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--lilac)); transition: width .5s var(--ease-out); }

.fd-body { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 44px); }
.fd-step { display: flex; flex-direction: column; gap: 20px; animation: fd-step .5s var(--ease-out); }

.fd-intro { color: var(--text-muted); max-width: 52ch; }
.fd-q {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem); text-wrap: balance; padding: 0; margin: 0;
}
.fd-num { font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; color: var(--lilac); }
.fd-optional { font-family: var(--font-body); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.fd-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.fd-input {
  width: 100%; font: inherit; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid rgba(247, 246, 241, .3);
  padding: 12px 2px; border-radius: 0; outline: none; transition: border-color .2s;
}
.fd-input::placeholder { color: rgba(247, 246, 241, .35); }
.fd-input:focus { border-bottom-color: var(--lilac); box-shadow: 0 1px 0 0 var(--lilac); }
.fd-textarea { resize: vertical; min-height: 120px; border: 1px solid rgba(247, 246, 241, .3); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 1.05rem; }
.fd-textarea:focus { border-color: var(--lilac); box-shadow: none; }
.fd-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23c49cf2' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 6px center;
}
.fd-select option { color: var(--navy); background: var(--cream); }

.fd-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fd-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fd-sublabel { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }

.fd-options { display: grid; gap: 10px; }
.fd-option {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(247, 246, 241, .2); background: rgba(247, 246, 241, .03);
  transition: border-color .2s, background-color .2s, transform .3s var(--ease-out);
}
.fd-option:hover { border-color: rgba(196, 156, 242, .7); background: rgba(148, 76, 213, .1); }
.fd-radio { position: absolute; opacity: 0; pointer-events: none; }
.fd-key {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 6px;
  border: 1px solid rgba(247, 246, 241, .3); font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.fd-option:has(.fd-radio:checked) { border-color: var(--purple); background: rgba(148, 76, 213, .22); }
.fd-option:has(.fd-radio:checked) .fd-key { background: var(--purple); border-color: var(--purple); color: var(--cream); }
.fd-option:has(.fd-radio:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 2px; }

.fd-hint { font-size: 13px; color: var(--text-muted); }
.fd-hint kbd { font-family: inherit; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: rgba(247, 246, 241, .1); }
.fd-error { min-height: 1.4em; font-size: 15px; color: #ffb4b4; }
.has-error .fd-input { border-bottom-color: #ffb4b4; }

.fd-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fd-choose-btn {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 24px 22px 56px; border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--cream);
  border: 1px solid rgba(247, 246, 241, .2); background: rgba(247, 246, 241, .03);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease-out);
}
.fd-choose-btn:hover { border-color: var(--purple); background: rgba(148, 76, 213, .16); transform: translateY(-2px); }
.fd-choose-title { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.01em; }
.fd-choose-text { color: var(--text-muted); font-size: 15px; }
.fd-choose-arrow { position: absolute; left: 22px; bottom: 20px; color: var(--lilac); transition: transform .3s var(--ease-out); }
.fd-choose-btn:hover .fd-choose-arrow { transform: translateX(6px); }

.fd-summary { margin: 0; display: grid; border-top: 1px solid var(--line); }
.fd-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fd-summary dt { color: var(--text-muted); }
.fd-summary dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.fd-consent { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--text-muted); }
.fd-consent a { color: var(--lilac); }
.fd-check { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--purple); cursor: pointer; }
.fd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fd-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px clamp(24px, 4vw, 44px) 20px; border-top: 1px solid var(--line);
}
.fd-footer[hidden] { display: none; }
.fd-footer .btn { --btn-pad-y: 13px; --btn-pad-x: 22px; }
.fd-back[hidden] { display: inline-flex !important; visibility: hidden; }
.fd-count { white-space: nowrap; font-size: 13px; letter-spacing: .12em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.fd-done { align-items: flex-start; padding-block: 12px; }
.fd-done-mark { width: 56px; height: 56px; animation: spin-in 1s var(--ease-out); }

@keyframes fd-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fd-step { from { opacity: 0; transform: translateY(14px); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-180deg) scale(.4); } }

@media (max-width: 640px) {
  .form-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
  .fd-top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .fd-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .fd-group, .fd-choose { grid-template-columns: 1fr; }
  .fd-choose-btn { padding-bottom: 50px; }
  .fd-hint { display: none; }
}
