/* =========================================================================
   IslandIQ — Beyond the Beach
   Design system + experience styles. Static, no build step.
   ========================================================================= */

/* ------------------------------ 1. TOKENS ------------------------------- */
:root {
  /* Dark (default) — warm near-black luxury */
  --bg:        #1a1815;
  --bg-deep:   #131110;
  --surface:   #221f1b;
  --surface-2: #2b2721;
  --line:      rgba(242, 237, 227, 0.12);
  --line-soft: rgba(242, 237, 227, 0.07);
  --text:      #f2ede3;
  --muted:     #a49b8c;
  --accent:    #2fb6b0;
  --accent-dim: rgba(47, 182, 176, 0.18);
  --coral:     #e2703a;
  --scrim-1:   rgba(12, 11, 10, 0.30);
  --scrim-2:   rgba(12, 11, 10, 0.82);
  --shadow:    0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --veil:      rgba(12, 11, 10, 0.72);
  --media-op:  0.5;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 56px);
  --sp-section: clamp(72px, 11vw, 148px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --bg:        #f7f4ee;
  --bg-deep:   #efe9dd;
  --surface:   #fffdf8;
  --surface-2: #f1ece1;
  --line:      rgba(30, 27, 23, 0.14);
  --line-soft: rgba(30, 27, 23, 0.08);
  --text:      #1e1b17;
  --muted:     #6b6357;
  --accent:    #0f7b76;          /* darkened for AA contrast on cream */
  --accent-dim: rgba(15, 123, 118, 0.14);
  --coral:     #b8501f;
  --scrim-1:   rgba(18, 16, 14, 0.28);
  --scrim-2:   rgba(18, 16, 14, 0.62);
  --shadow:    0 24px 60px -32px rgba(60, 50, 35, 0.45);
  --veil:      rgba(247, 244, 238, 0.80);
  --media-op:  0.26;
}

/* ------------------------------ 2. BASE --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #0e0d0c; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -160%);
  background: var(--surface); color: var(--text); padding: 10px 18px;
  border: 1px solid var(--line); z-index: 200; text-decoration: none;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.center { text-align: center; }

/* --------------------------- 3. TYPE PRIMITIVES ------------------------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
}
.section-title.small { font-size: clamp(28px, 4.4vw, 44px); }

/* line — dot — line */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 0 34px;
}
.divider.center { justify-content: center; }
.divider span {
  display: block; height: 1px; width: clamp(48px, 12vw, 104px);
  background: linear-gradient(90deg, transparent, var(--accent));
}
.divider span:last-of-type { background: linear-gradient(90deg, var(--accent), transparent); }
.divider i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ------------------------------ 4. BUTTONS ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 0 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-primary { background: var(--accent); color: #08201f; border-color: var(--accent); }
[data-theme="light"] .btn-primary { color: #fffdf8; }
.btn-primary:hover { transform: translateY(-2px); background: transparent; color: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-soft); border-radius: 50%;
  color: var(--text); cursor: pointer; font-size: 16px;
  transition: border-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn[disabled] { opacity: .28; pointer-events: none; }

/* ------------------------------ 5. HEADER ------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gut);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), padding .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-top: 12px; padding-bottom: 12px;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(10,9,8,.42), transparent);
  transition: opacity .45s var(--ease);
}
.site-header.is-stuck::before { opacity: 0; }
.brand { text-decoration: none; color: #f4efe6; line-height: 1.1; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.site-header.is-stuck .brand { color: var(--text); text-shadow: none; }
.site-header .theme-toggle { color: rgba(244,239,230,.72); border-color: rgba(244,239,230,.28); }
.site-header.is-stuck .theme-toggle { color: var(--muted); border-color: var(--line); }
.site-header.is-stuck .brand { text-shadow: none; }
.brand-mark {
  display: block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
}
.brand-sub {
  display: block; font-family: var(--font-display);
  font-size: 15px; letter-spacing: 0.22em; color: var(--accent); margin-top: 3px;
}
.theme-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle-icon {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

/* ------------------------------- 6. HERO -------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 128px var(--gut) 108px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: -3%;
  background-size: cover; background-position: center;
  z-index: -2;
  animation: kenburns 34s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.10) translate3d(-1.2%, -1%, 0); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(102% 70% at 50% 44%, rgba(10,9,8,.10) 0%, rgba(10,9,8,.38) 48%, rgba(10,9,8,.72) 100%),
    linear-gradient(180deg, rgba(10,9,8,.42) 0%, rgba(10,9,8,.06) 26%, rgba(10,9,8,.22) 60%, var(--bg) 99%);
}
.hero-rule { position: absolute; top: 16vh; bottom: 16vh; width: 1px; z-index: 1; display: none;
  background: linear-gradient(180deg, transparent, var(--accent) 34%, var(--accent) 66%, transparent); opacity: .5; }
.hero-rule-left { left: max(38px, 4vw); }
.hero-rule-right { right: max(38px, 4vw); }

.hero-inner { position: relative; z-index: 2; max-width: 860px; text-align: center; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 9.2vw, 104px);
  line-height: 1.02;
  letter-spacing: 0.012em;
  margin: 0;
  text-wrap: balance;
}
.hero-sub {
  max-width: 620px; margin: 0 auto;
  color: var(--text); opacity: .88;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.78;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 40px;
}
.hero .btn-ghost { border-color: rgba(242,237,227,.34); color: #f2ede3; }
[data-theme="light"] .hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .hero-title, .hero .hero-sub, .hero .eyebrow { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
[data-theme="light"] .hero .hero-title,
[data-theme="light"] .hero .hero-sub { color: #fbf8f2; }
[data-theme="light"] .hero .eyebrow { color: #7fe3dd; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--muted);
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
}
[data-theme="light"] .scroll-hint { color: rgba(255,255,255,.8); }
.scroll-hint-line { width: 1px; height: 54px; background: linear-gradient(180deg, currentColor, transparent); }
.scroll-hint-line { animation: drift 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes drift { 0%,100% { transform: scaleY(.45); opacity:.5 } 50% { transform: scaleY(1); opacity:1 } }

/* ----------------------------- 7. SECTIONS ------------------------------ */
.section { padding: var(--sp-section) 0; position: relative; }
.how { background: var(--bg); }

.beats {
  list-style: none; margin: clamp(40px, 6vw, 76px) 0 0; padding: 0;
  display: grid; gap: clamp(34px, 5vw, 54px);
  grid-template-columns: 1fr;
}
.beat { padding-top: 26px; border-top: 1px solid var(--line-soft); }
.beat-num {
  display: block; font-family: var(--font-display); font-size: 15px;
  letter-spacing: .3em; color: var(--accent); margin-bottom: 14px;
}
.beat-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(23px, 3vw, 30px); line-height: 1.22; margin: 0 0 12px;
}
.beat-body { margin: 0; color: var(--muted); font-size: 16px; }

.pool {
  margin: clamp(56px, 8vw, 96px) auto clamp(40px, 6vw, 64px);
  max-width: 780px; text-align: center;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px);
  border: 1px solid var(--line-soft); background: var(--surface);
}
.pool-list {
  /* flex so the browser can wrap between names — they are joined by dots
     with no spaces, which the text layout treats as one unbreakable run. */
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  font-family: var(--font-display); font-size: clamp(18px, 4.6vw, 27px);
  line-height: 1.7; margin: 0 0 14px; color: var(--text);
}
.pool-list .pool-name { white-space: nowrap; }
.pool-list .dot { color: var(--accent); padding: 0 clamp(7px, 2vw, 10px); }
.pool-note { margin: 0; color: var(--muted); font-size: 13.5px; letter-spacing: .04em; }

/* ------------------------------- 8. QUIZ -------------------------------- */
.quiz {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.quiz-media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: var(--media-op); transition: opacity 1.1s var(--ease), background-image .6s linear;
}
.quiz-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, transparent 0%, var(--veil) 82%),
              linear-gradient(180deg, var(--bg) 0%, transparent 26%, transparent 60%, var(--bg) 100%);
}
.quiz-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 18px;
  padding: 18px var(--gut);
}
.progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 12.5%;
  background: var(--accent); transition: width .55s var(--ease);
}
.quiz-inner {
  position: relative; z-index: 3;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 900px; margin: 0 auto;
  padding: 8px var(--gut) clamp(32px, 7vh, 72px);
  overflow-y: auto;
}
.quiz-count {
  margin: 0 0 16px; font-size: 10.5px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--accent);
}
.quiz-question {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 6.4vw, 60px); line-height: 1.08; margin: 0 0 clamp(28px, 4.5vh, 46px);
  text-wrap: balance;
}
.quiz-options { display: grid; gap: 10px; grid-template-columns: 1fr; }
.opt {
  position: relative; text-align: left; cursor: pointer;
  padding: 20px 54px 20px 22px;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text); font-size: 16.5px; font-weight: 300; line-height: 1.4;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -22px rgba(0,0,0,.5);
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              transform .3s var(--ease), color .3s var(--ease);
}
.opt::after {
  content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(-6px);
  color: var(--accent); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.opt:hover, .opt:focus-visible { border-color: var(--accent); transform: translateX(4px); }
.opt:hover::after, .opt:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.opt.is-picked { background: var(--accent-dim); border-color: var(--accent); }
.quiz-inner.is-swapping .quiz-count,
.quiz-inner.is-swapping .quiz-question,
.quiz-inner.is-swapping .quiz-options { opacity: 0; transform: translateY(14px); }
.quiz-count, .quiz-question, .quiz-options {
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}

/* ------------------------------ 9. RESULTS ------------------------------ */
.results { padding-top: clamp(104px, 14vh, 168px); }
.persona { text-align: center; max-width: 720px; margin: 0 auto clamp(60px, 9vw, 104px); }
.persona-name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 8.4vw, 88px); line-height: 1.04; margin: 6px 0 0;
}
.persona-desc { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 620px; }

.vibe-bars {
  list-style: none; margin: 38px 0 0; padding: 0;
  display: grid; gap: 12px; max-width: 440px; margin-inline: auto;
}
.vibe-bars li { display: grid; grid-template-columns: 104px 1fr 34px; align-items: center; gap: 12px; }
.vibe-bars .vb-name {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-align: left;
}
.vibe-bars .vb-track { height: 2px; background: var(--line); position: relative; }
.vibe-bars .vb-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; transition: width 1s var(--ease); }
.vibe-bars .vb-val { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.matches-head { margin-bottom: clamp(30px, 4vw, 46px); }

.cards { display: grid; gap: clamp(20px, 3vw, 30px); grid-template-columns: 1fr; align-items: start; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; padding: 0;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; overflow: hidden; }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,8,.45) 0%, transparent 32%),
    linear-gradient(180deg, transparent 40%, rgba(10,9,8,.72) 100%);
}
.card:hover .card-media { transform: scale(1.04); }
.card-media { transition: transform 1.2s var(--ease); }
.card-rank {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .26em; color: #f2ede3;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.card-score {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: color-mix(in oklab, var(--accent) 92%, black);
  color: #06201f; font-size: 11px; font-weight: 600; letter-spacing: .12em;
  padding: 6px 11px; border-radius: 999px;
}
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-country { display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0; }
.card-name { display: block; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0; }
.card-why { display: block; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card-more {
  margin-top: auto; padding-top: 12px;
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--text);
  display: inline-flex; gap: 8px; align-items: center;
}
.card-more span { color: var(--accent); transition: transform .3s var(--ease); display: inline-block; }
.card:hover .card-more span { transform: translateX(5px); }

.capture {
  margin: clamp(60px, 9vw, 108px) 0 0;
  border: 1px solid var(--line); background: var(--surface);
}
.capture-inner { padding: clamp(30px, 5vw, 56px); max-width: 640px; margin: 0 auto; text-align: center; }
.capture .eyebrow { text-align: center; }
.capture-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 28px;
}
.capture-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.capture-input {
  flex: 1 1 260px; min-height: 54px; padding: 0 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); font-size: 16px; font-weight: 300;
  transition: border-color .3s var(--ease);
}
.capture-input::placeholder { color: var(--muted); }
.capture-input:focus { border-color: var(--accent); outline: none; }
.capture-input[aria-invalid="true"] { border-color: var(--coral); }
.capture-msg { margin: 16px 0 0; min-height: 22px; font-size: 14px; color: var(--accent); }
.capture-msg.is-error { color: var(--coral); }

.results-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: clamp(34px, 5vw, 52px);
}

/* ------------------------------ 10. DETAIL ------------------------------ */
.detail {
  position: fixed; inset: 0; z-index: 130; background: var(--bg);
}
.detail-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.detail-back {
  position: fixed; top: 20px; left: var(--gut); z-index: 140;
  display: inline-flex; align-items: center; gap: 10px;
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; cursor: pointer;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.detail-back:hover { border-color: var(--accent); color: var(--accent); }

.detail-hero {
  position: relative; min-height: 72svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gut) clamp(40px, 7vw, 72px);
  overflow: hidden;
}
.detail-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.detail-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,.04) 26%, rgba(10,9,8,.46) 54%, rgba(10,9,8,.80) 78%, rgba(10,9,8,.93) 94%, var(--bg) 100%);
}
.detail-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.detail-name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(42px, 9vw, 96px); line-height: 1.02; margin: 0;
  color: #f7f3ec; text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.detail-hero .eyebrow { color: #7fe3dd; text-shadow: 0 1px 16px rgba(0,0,0,.8); }
.detail-score {
  margin: 16px 0 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: #f2ede3; opacity: .85; text-shadow: 0 1px 16px rgba(0,0,0,.8);
}
.detail-body { padding-bottom: clamp(70px, 10vw, 120px); }
.detail-intro {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(21px, 3.2vw, 30px); line-height: 1.5;
  max-width: 760px; margin: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 84px);
}
.detail-block { margin-bottom: clamp(48px, 7vw, 84px); }
.detail-fit { margin: 0; max-width: 720px; font-size: 17px; color: var(--text); }

.highlights { display: grid; gap: 16px; grid-template-columns: 1fr; }
.hl {
  border: 1px solid var(--line-soft); background: var(--surface);
  padding: 26px 24px; border-radius: var(--radius);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.hl:hover { border-color: var(--accent); transform: translateY(-3px); }
.hl-kicker { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.hl-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.hl-body { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; }
.tags li {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.tags li.is-strong { color: var(--accent); border-color: var(--accent); }
.detail-cta { padding-top: 8px; }

/* --------------------- 10. FOUNDER VIDEO (phase 2) ---------------------- */
.founder { padding-bottom: 0; }
.founder .founder-blurb {
  max-width: 62ch; margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center; color: var(--muted); font-size: 16.5px;
}
.video {
  position: relative; margin: 0 auto; max-width: 900px;
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2);
}
.video-poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s var(--ease), filter .5s var(--ease);
}
.video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 70% at 50% 50%, rgba(10,9,8,.20), rgba(10,9,8,.62));
}
.video-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  width: 100%; background: none; border: 0; cursor: pointer;
  color: #f4efe6; font-family: var(--font-body);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(0,0,0,.7);
}
.video-play-mark {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1px solid rgba(244,239,230,.55);
  display: grid; place-items: center;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}
.video-play-mark::before {
  content: ""; display: block;
  border-left: 15px solid currentColor;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  margin-left: 5px;
}
.video-play:hover .video-play-mark,
.video-play:focus-visible .video-play-mark {
  border-color: var(--accent); color: var(--accent); transform: scale(1.06);
}
.video-play:hover ~ .video-poster { transform: scale(1.03); }
.video.is-pending .video-play { cursor: default; }
.video.is-pending .video-play-mark { opacity: .5; }
.video.is-pending .video-play:hover .video-play-mark { border-color: rgba(244,239,230,.55); color: inherit; transform: none; }
.video iframe, .video video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; z-index: 3;
  background: #000;
}

/* --------------------- 11. AMBIENT SOUND (phase 2) ---------------------- */
.sound-toggle {
  position: fixed; right: max(16px, 2.4vw); bottom: max(16px, 2.4vw); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 13px; cursor: pointer;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  transition: color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.sound-toggle:hover { color: var(--accent); border-color: var(--accent); }
.sound-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.sound-wave { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.sound-wave i {
  width: 2px; height: 4px; background: currentColor; display: block; border-radius: 1px;
  transition: height .3s var(--ease);
}
.sound-toggle[aria-pressed="true"] .sound-wave i { animation: sw 1.1s var(--ease) infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-wave i:nth-child(2) { animation-delay: .18s; }
.sound-toggle[aria-pressed="true"] .sound-wave i:nth-child(3) { animation-delay: .36s; }
@keyframes sw { from { height: 4px; } to { height: 13px; } }
@media (prefers-reduced-motion: reduce) {
  .sound-toggle[aria-pressed="true"] .sound-wave i { animation: none; height: 9px; }
}

/* ---------------------- 12. FULL VIBE REPORT ---------------------------- */
.report {
  scroll-margin-top: 96px;   /* clears the fixed header when it scrolls into view */
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(30px, 5vw, 56px) clamp(22px, 4vw, 48px);
  border: 1px solid var(--accent); background: var(--surface);
}
.report-lead {
  max-width: 64ch; margin: 0 auto clamp(34px, 5vw, 52px);
  text-align: center; color: var(--muted); font-size: 16.5px;
}
.report-block { margin-bottom: clamp(34px, 5vw, 52px); }
.report-block:last-of-type { margin-bottom: clamp(20px, 3vw, 30px); }

.report-dims { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.report-dims li {
  display: grid; grid-template-columns: 96px 1fr; gap: 4px 14px; align-items: baseline;
}
.report-dims .rd-name {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text);
}
.report-dims .rd-track { position: relative; height: 2px; background: var(--line); align-self: center; }
.report-dims .rd-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.report-dims .rd-meaning {
  grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.5;
}
.report-dims .rd-val {
  grid-column: 1; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}

.report-ranks { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.report-ranks li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 14px;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.report-ranks li:first-child { border-top: 0; }
.report-ranks .rr-num {
  font-family: var(--font-display); font-size: 17px; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.report-ranks .rr-name { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.report-ranks .rr-country {
  grid-column: 2; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}
.report-ranks .rr-why { grid-column: 2; color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.report-ranks .rr-score {
  font-size: 12px; letter-spacing: .1em; color: var(--text); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.report-note {
  margin: 0; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.6;
}
@media (max-width: 560px) {
  .report-dims li { grid-template-columns: 74px 1fr; }
  .report-ranks li { grid-template-columns: 26px 1fr; }
  .report-ranks .rr-score { grid-column: 2; margin-top: 6px; }
}

/* ------------------- 13. MATCH FEEDBACK (per card) ---------------------- */
/* One verdict per destination. Persona + destination in a single event. */
.card-slot { display: flex; flex-direction: column; gap: 12px; }

.vote {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: -6px 0 4px; padding: 0 2px;
}
.vote-q {
  flex: 1 1 100%; margin-bottom: 2px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: color .3s var(--ease);
}
.vote-btn {
  background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; color: var(--muted);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.vote-btn:hover { color: var(--accent); border-color: var(--accent); }
.vote.is-voted .vote-q { color: var(--accent); }
.vote.is-voted .vote-btn { pointer-events: none; opacity: .35; }
.vote.is-voted .vote-btn.is-picked {
  opacity: 1; color: var(--accent); border-color: var(--accent); background: var(--accent-dim);
}

/* ------------------ 14. SHAREABLE RESULT CARD --------------------------- */
.share-card {
  margin: clamp(34px, 5vw, 56px) auto 0; max-width: 520px; text-align: center;
}
.share-card .eyebrow { text-align: center; }
.share-card-img {
  width: 100%; height: auto; display: block; margin: 0 auto 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.share-card-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------ 15. FOOTER ------------------------------ */
.site-footer {
  padding: clamp(60px, 9vw, 100px) 0 clamp(40px, 6vw, 60px);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep); text-align: center;
}
.footer-brand {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px);
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; font-weight: 300;
}
.footer-line { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 15px; }
.footer-social { display: flex; gap: 26px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.footer-social a {
  color: var(--text); text-decoration: none; font-size: 10.5px;
  letter-spacing: .26em; text-transform: uppercase; padding: 6px 2px;
  border-bottom: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-social a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-legal { color: var(--muted); font-size: 12px; letter-spacing: .06em; margin: 0; }

/* ------------------------------- 16. TOAST ------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px);
  z-index: 200; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 12px 22px; font-size: 13px; letter-spacing: .04em;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
  box-shadow: var(--shadow);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------ 17. REVEAL ------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal[data-delay="1"].is-in { transition-delay: .10s; }
.reveal[data-delay="2"].is-in { transition-delay: .20s; }
.reveal[data-delay="3"].is-in { transition-delay: .30s; }
.reveal[data-delay="4"].is-in { transition-delay: .40s; }

/* --------------------------- 18. BREAKPOINTS ---------------------------- */
@media (min-width: 700px) {
  .quiz-options { grid-template-columns: 1fr 1fr; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .capture-form { flex-wrap: nowrap; }
}

@media (min-width: 1000px) {
  .hero-rule { display: block; }
  .beats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.count-4 { grid-template-columns: repeat(4, 1fr); }
  .card-name { font-size: 27px; }
}

/* --------------------------- 19. REDUCED MOTION ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-media { animation: none; }
}

/* ---------------------------------------------------------------------------
   20. FULL REPORT CTA
   The report is free. The button exists so the tap itself measures appetite
   for depth — see build-status notes on report_unlocked.
--------------------------------------------------------------------------- */
.report-cta {
  margin: clamp(30px, 4.5vw, 48px) auto 0;
  max-width: 520px;
  text-align: center;
}
.report-cta-note {
  margin: 12px 0 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}
.capture-sub {
  margin: 10px 0 18px;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--muted);
}
