/* ── VARIABLES ── */
:root {
  --blue-dark:  #081840;
  --blue-mid:   #2757D6;
  --blue-light: #C8DAFF;
  --cream:      #FAF7F2;
  --cream-deep: #F4EFE6;
  --copper:     #B5714A;
  --sage:       #7A9180;
  --slate:      #5E7198;

  --bg:           var(--cream);
  --surface:      #FFFFFF;
  --surface-blue: #EDF3FF;
  --border:       var(--cream-deep);
  --text-1:       var(--blue-dark);
  --text-2:       var(--blue-dark);
  --text-3:       var(--slate);
  --text-inv:     var(--cream);
  --accent:       var(--blue-mid);
  --accent-dark:  #1D45B8;

  --ff-display: 'Fahkwang', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-hand:    'Kalam', cursive;
  --ff-mono:    var(--ff-body);

  --txs:  0.75rem;
  --tsm:  0.875rem;
  --tbase:1rem;
  --tlg:  1.125rem;
  --txl:  1.375rem;
  --t2xl: 1.75rem;
  --t3xl: 2.25rem;
  --t4xl: 3rem;
  --t5xl: 4rem;
  --t6xl: 5.5rem;

  --s1:0.25rem; --s2:0.5rem; --s3:0.75rem; --s4:1rem;
  --s5:1.25rem; --s6:1.5rem; --s8:2rem; --s10:2.5rem;
  --s12:3rem; --s16:4rem; --s20:5rem; --s24:6rem;

  --r-sm:4px; --r-md:8px; --r-lg:14px; --r-xl:24px; --r-full:9999px;

  --sh-sm: 0 1px 4px rgba(8,24,64,.07);
  --sh-md: 0 4px 16px rgba(8,24,64,.09), 0 1px 4px rgba(8,24,64,.05);
  --sh-lg: 0 12px 40px rgba(8,24,64,.12), 0 3px 10px rgba(8,24,64,.06);
  --sh-blue: 0 6px 24px rgba(39,87,214,.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 240ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: var(--tbase);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: var(--blue-dark);
  padding: var(--s3) 0;
  border-bottom: 1px solid rgba(200,218,255,.1);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(200,218,255,.08);
  border: 1px solid rgba(200,218,255,.15);
  color: var(--cream);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--s1) var(--s4);
  border-radius: var(--r-full);
}
.header-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

/* ── MAIN LAYOUT ── */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--s10) var(--s8) var(--s10);
}

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--tsm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--blue-mid);
  opacity: .5;
}

/* ── TITLE ── */
.main-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, var(--t5xl));
  font-weight: 300;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: var(--s6);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.main-title em {
  font-style: italic;
  color: var(--blue-mid);
}

/* ── META ROW ── */
.meta-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s8);
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--tsm);
  color: var(--text-3);
}
.meta-dot {
  color: var(--border);
}

/* ── PLAYER CARD ── */
.player-card {
  background: var(--blue-dark);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s10);
  margin-bottom: var(--s8);
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.player-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,87,214,.22) 0%, transparent 70%);
  pointer-events: none;
}
.player-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,218,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

.player-inner {
  position: relative;
  z-index: 1;
}

.player-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.player-label::before {
  content: '♪';
  font-style: normal;
}

/* ── PROGRESS BAR ── */
.progress-wrap {
  margin-bottom: var(--s5);
}
.timeline {
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border: none;
  padding: 0;
  display: block;
}
.timeline::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(to right,
    var(--blue-mid) 0%,
    var(--blue-mid) var(--progress, 0%),
    rgba(200,218,255,.15) var(--progress, 0%),
    rgba(200,218,255,.15) 100%
  );
  transition: height var(--dur) var(--ease);
}
.timeline:hover::-webkit-slider-runnable-track {
  height: 5px;
}
.timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(39,87,214,.4);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur) var(--ease);
}
.timeline:hover::-webkit-slider-thumb {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 0 5px rgba(39,87,214,.3);
}
.timeline::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 3px rgba(39,87,214,.4);
  transition: background var(--dur) var(--ease);
}
.timeline:hover::-moz-range-thumb {
  background: #fff;
}
.timeline::-moz-range-track {
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(200,218,255,.15);
}
.timeline::-moz-range-progress {
  background: var(--blue-mid);
  border-radius: var(--r-full);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s2);
}
.time-val {
  font-family: var(--ff-mono);
  font-size: var(--tsm);
  color: var(--cream);
  letter-spacing: 0.06em;
  transition: color var(--dur) var(--ease);
}
.time-val:hover {
  color: #fff;
}

/* ── CONTROLS ── */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s6);
}

.ctrl-group {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
  padding: var(--s2);
  border-radius: var(--r-md);
  line-height: 1;
}
.ctrl-btn:hover {
  color: #fff;
  transform: scale(1.1);
}
.ctrl-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-mid);
  border: none;
  cursor: pointer;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-blue);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur);
  flex-shrink: 0;
}
.play-btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(39,87,214,.42);
}
.play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play  { display: none; }
.play-btn.playing .icon-pause { display: block; }

/* Volume */
.vol-wrap {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.vol-icon {
  color: var(--cream);
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}
.vol-wrap:hover .vol-icon {
  color: #fff;
}
.vol-slider {
  width: 72px;
  height: 20px;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border: none;
  padding: 0;
  display: block;
}
.vol-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(to right,
    rgba(200,218,255,.5) 0%,
    rgba(200,218,255,.5) var(--vol-progress, 80%),
    rgba(200,218,255,.15) var(--vol-progress, 80%),
    rgba(200,218,255,.15) 100%
  );
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.vol-slider:hover::-webkit-slider-thumb {
  background: #fff;
}
.vol-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.vol-slider:hover::-moz-range-thumb {
  background: #fff;
}
.vol-slider::-moz-range-track {
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(200,218,255,.15);
}

/* Speed badge */
.speed-badge {
  font-family: var(--ff-mono);
  font-size: var(--tsm);
  font-weight: 600;
  color: var(--cream);
  background: rgba(200,218,255,.07);
  border: 1px solid rgba(200,218,255,.12);
  border-radius: var(--r-sm);
  padding: 3px 7px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.speed-badge:hover {
  color: #fff;
  background: rgba(200,218,255,.12);
  border-color: rgba(200,218,255,.22);
}

/* ── ARIA LABEL ── */
.aria-label {
  font-size: var(--tsm);
  color: var(--text-3);
  margin-bottom: var(--s12);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Eyebrow direct child of page (player label) — matches 80% content width */
.page > .eyebrow {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* ── SUMMARY ── */
.summary-section {
  margin-bottom: var(--s12);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.summary-body {
  font-size: var(--tlg);
  color: var(--text-2);
  line-height: 1.78;
  font-weight: 300;
}
.summary-body p + p {
  margin-top: var(--s6);
}
.summary-body strong {
  font-weight: 700;
  color: var(--text-1);
}

/* Pull quote */
.pull-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: url('../images/quote.svg') no-repeat center / contain;
}
.pull-quote {
  margin: var(--s24) 0 var(--s10);
  padding: var(--s6) var(--s8);
  background: var(--cream-deep);
  border-radius: var(--r-md);
  width: 125%;
  margin-left: -12.5%;
  display: flex;
  align-items: flex-start;
  gap: var(--s5);
}
.pull-quote p {
  font-family: var(--ff-hand);
  font-size: var(--txl);
  font-weight: 500;
  color: var(--blue-mid);
  line-height: 1.5;
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: var(--s3);
  font-family: var(--ff-body);
  font-size: var(--tsm);
  font-style: normal;
  color: var(--text-3);
}

/* ── CONTENT SECTIONS ── */
.content-block {
  margin-top: var(--s12);
  padding-top: var(--s10);
}
.content-block:first-child,
.eyebrow + .content-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section-heading {
  font-family: var(--ff-display);
  font-size: 2.625rem;
  font-weight: 300;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin-bottom: var(--s6);
  line-height: 1.3;
}
.section-heading .section-num {
  color: var(--blue-mid);
  font-style: italic;
  margin-right: var(--s2);
}

/* ── DATA TABLE ── */
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--tsm);
  margin: var(--s6) 0;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.content-table thead tr {
  background: var(--blue-dark);
  color: var(--cream);
}
.content-table thead th {
  padding: var(--s3) var(--s5);
  text-align: left;
  font-weight: 500;
  font-size: var(--tsm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.content-table thead th:nth-child(2) {
  text-align: center;
}
.content-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
.content-table tbody tr:last-child {
  border-bottom: none;
}
.content-table tbody tr:hover {
  background: var(--surface-blue);
}
.content-table tbody td {
  padding: var(--s3) var(--s5);
  color: var(--text-2);
  line-height: 1.5;
}
.content-table tbody td strong {
  font-weight: 700;
  color: var(--text-1);
}
.content-table tbody td:first-child {
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
}
.content-table:not(.tension-table) tbody td:first-child {
  text-align: center;
  font-family: var(--ff-body);
  font-size: calc(var(--tbase) * 1.3);
  font-weight: 600;
  color: var(--blue-mid);
  white-space: nowrap;
}
.content-table:not(.tension-table) tbody td:nth-child(2) {
  color: var(--blue-dark);
  font-size: var(--tbase);
  line-height: 1.6;
}
.content-table.tension-table {
  table-layout: fixed;
}
.content-table.tension-table tbody td {
  font-size: var(--tbase);
}
.content-table.tension-table th:nth-child(1),
.content-table.tension-table td:nth-child(1) {
  width: 45%;
}
.content-table.tension-table th:nth-child(2),
.content-table.tension-table th:nth-child(3),
.content-table.tension-table td:nth-child(2),
.content-table.tension-table td:nth-child(3) {
  width: calc((100% - 45%) / 2);
}
.content-table.tension-table tbody td:nth-child(1),
.content-table.tension-table tbody td:nth-child(2),
.content-table.tension-table tbody td:nth-child(3) {
  white-space: normal;
}
.content-table.tension-table tbody td:first-child {
  color: var(--blue-dark);
  font-weight: 300;
}
.content-table.tension-table tbody td:nth-child(2) {
  color: var(--sage);
  text-align: left;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--tbase);
}
.content-table.tension-table tbody td:nth-child(3) {
  color: var(--copper);
  font-weight: 700;
  font-size: var(--tbase);
}
.content-table.tension-table .pct {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* ── CONTENT LIST ── */
.content-list {
  list-style: none;
  margin: var(--s6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.content-list li {
  display: flex;
  gap: var(--s4);
  font-size: var(--tlg);
  color: var(--text-2);
  line-height: 1.65;
}
.content-list li .li-marker {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--blue-mid);
  font-family: var(--ff-mono);
  font-size: calc(var(--tbase) * 1.3);
  padding-top: 2px;
  min-width: 2rem;
}
.content-list li strong {
  color: var(--text-1);
  font-weight: 700;
}
.content-list.bullets li .li-marker {
  font-size: 1rem;
  color: var(--blue-mid);
  min-width: 1.25rem;
}

/* ── STAT CHIPS ── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin: var(--s6) 0;
}
.stat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s6);
  min-width: 110px;
  flex: 1;
}
.stat-chip .chip-val {
  font-family: var(--ff-display);
  font-size: calc(var(--t2xl) * 1.5);
  font-weight: 400;
  color: var(--blue-mid);
  line-height: 1.1;
}
.stat-chip .chip-label {
  font-size: var(--tbase);
  color: var(--text-3);
  text-align: center;
  margin-top: var(--s1);
}

/* ── GEO BLOCK ── */
.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin: var(--s6) 0;
}
.geo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s5) var(--s6);
  box-shadow: var(--sh-sm);
}
.geo-card .geo-label {
  font-size: var(--txs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s3);
}
.geo-card .geo-title {
  font-size: var(--tbase);
  font-weight: 700;
  color: var(--blue-mid);
  margin-bottom: var(--s3);
}
.geo-card .geo-body {
  font-size: var(--tsm);
  color: var(--text-2);
  line-height: 1.6;
}

/* ── CTA ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  background: var(--blue-mid);
  color: #fff;
  font-family: var(--ff-body);
  font-size: var(--tbase);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--s4) var(--s8);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur);
  animation: pulse 2.2s infinite;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-blue);
  animation: none;
}
.btn-primary::after {
  content: '↗';
  margin-left: var(--s2);
  font-size: 0.95em;
}
.btn-primary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: .75;
}

/* White button variant (design system) */
.b-white {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: var(--surface);
  color: var(--blue-mid);
  font-family: var(--ff-body);
  font-size: var(--tbase);
  font-weight: 500;
  padding: var(--s3) var(--s6);
  border-radius: var(--r-sm);
  border: 1px solid var(--blue-mid);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.b-white:hover {
  background: var(--blue-mid);
  color: #fff;
  border-color: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: var(--sh-blue);
}
.b-white svg {
  stroke: currentColor;
  display: block;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--blue-dark);
  padding: var(--s8) 0;
  text-align: center;
  color: var(--cream);
  font-size: var(--tsm);
  font-family: var(--ff-body);
  font-weight: 400;
  margin-top: 0;
}
.site-footer strong {
  color: var(--cream);
  font-family: var(--ff-display);
  font-weight: 500;
}

/* ── PCT SIGN ── */
.pct-sign {
  font-size: 0.7em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,87,214,.45); }
  50%       { box-shadow: 0 0 0 10px rgba(39,87,214,0); }
}
.au-1 { animation: fadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.au-2 { animation: fadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) .1s both; }
.au-3 { animation: fadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) .2s both; }
.au-4 { animation: fadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) .32s both; }
.au-5 { animation: fadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) .44s both; }
.play-btn.idle { animation: pulse 2.2s infinite; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .main-title,
  .meta-row,
  .summary-section,
  .aria-label,
  .page > .eyebrow {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .pull-quote {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .page { padding: var(--s10) var(--s5) var(--s16); }
  .player-card { padding: var(--s6); }
  .controls { flex-wrap: wrap; gap: var(--s4); }
  .vol-wrap { display: none; }
  .main-title { font-size: var(--t3xl); }
  .header-inner { gap: var(--s4); }
  .geo-grid { grid-template-columns: 1fr; }
  .content-table { font-size: var(--txs); }
  .content-table.tension-table thead th,
  .content-table.tension-table tbody td { font-size: inherit; }
  .content-table tbody td:first-child { white-space: normal; }
  .stat-row { gap: var(--s2); }
  .stat-chip { min-width: 90px; }
  .stat-chip:first-child { flex-basis: 100%; }
}
