/* ───────── Tokens ─────────
   Palette carried over from the Squarespace site: near-black ground, and the
   Golden Arrowhead's green, gold and red as accents. */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0e0e0e;
  --ink-2: #181818;
  --card: rgba(255, 255, 255, .055);
  --paper: #f5f7fb;
  --muted: rgba(245, 247, 251, .68);
  --faint: rgba(245, 247, 251, .14);
  --green: #469c53;          /* the site's green */
  --flag-green: #009e49;
  --gold: #fcd116;
  --gold-deep: #d9a520;
  --red: #ce1126;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; }
p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ───────── Page shell ───────── */
.page {
  position: relative; isolation: isolate;
  background:
    radial-gradient(60vw 50vw at 50% 18%, rgba(252, 209, 22, .10), transparent 62%),
    radial-gradient(40vw 40vw at 8% 92%, rgba(0, 158, 73, .12), transparent 60%),
    radial-gradient(34vw 30vw at 96% 60%, rgba(206, 17, 38, .10), transparent 62%),
    var(--ink);
}

/* ───────── Top bar ───────── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
}
.brand {
  font: 800 clamp(15px, 1.2vw + 6px, 20px)/1 var(--display); letter-spacing: -.01em;
  color: var(--paper); text-decoration: none; white-space: nowrap;
}
.brand__kd { color: var(--gold); margin-left: .12em; }

/* Pills: label plus a round knob, after the inspiration's CTA shape */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 5px 5px 5px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 15px/1 var(--body); letter-spacing: .01em;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.pill:hover { transform: translateY(-2px); }
.pill__knob {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 16px;
  transition: transform .35s var(--ease);
}
.pill:hover .pill__knob { transform: rotate(-12deg) scale(1.06); }
.pill--gold { background: var(--gold); color: var(--ink); }
.pill--red { background: var(--red); color: #fff; }
.pill--red .pill__knob { background: #fff; color: var(--red); }
.pill--ghost { border-color: rgba(245, 247, 251, .35); color: var(--paper); background: transparent; }
.pill--ghost .pill__knob { background: var(--paper); color: var(--ink); }
.pill--ghost:hover, .pill--ghost[aria-expanded="true"] { border-color: var(--gold); }

/* ───────── Hero ─────────
   Desktop: intro | capsule portrait | player, with the name set wall to wall below. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "intro portrait player"
    "name  name     name";
  align-items: end; column-gap: clamp(20px, 3vw, 56px);
  padding: clamp(8px, 2vh, 24px) var(--gutter) 0;
  min-height: calc(100svh - 92px - 64px);
}
.hero__intro { grid-area: intro; padding-bottom: clamp(18px, 5vh, 56px); max-width: 420px; }
.hero__portrait { grid-area: portrait; margin: 0; justify-self: center; width: min(100%, 380px); position: relative; }
.player { grid-area: player; align-self: center; justify-self: end; }
.hero__name { grid-area: name; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}

/* Three bars in flag colours; they dance while music plays */
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; flex: none; }
.bars i { display: block; width: 4px; border-radius: 1px; height: 100%; transform-origin: bottom; }
.bars i:nth-child(1) { background: var(--flag-green); transform: scaleY(.55); }
.bars i:nth-child(2) { background: var(--gold); }
.bars i:nth-child(3) { background: var(--red); transform: scaleY(.75); }
.bars--sm { height: 11px; gap: 2px; }
.bars--sm i { width: 3px; }
.is-playing .bars i { animation: eq 1s ease-in-out infinite alternate; }
.is-playing .bars i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.is-playing .bars i:nth-child(3) { animation-duration: .85s; animation-delay: -.5s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

.hero__bio {
  font-size: clamp(16px, .45vw + 13px, 19px); line-height: 1.55; color: var(--paper);
  white-space: pre-line; text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Capsule portrait with a gold halo */
.hero__portrait::before {
  content: ""; position: absolute; inset: -8% -14% 4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(252, 209, 22, .30), rgba(217, 165, 32, .10) 55%, transparent);
  filter: blur(18px);
}
.hero__portrait img {
  width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: 50% 22%;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(252, 209, 22, .28), 0 30px 80px -30px rgba(0, 0, 0, .9);
}

/* Name set wall to wall; JS fits it, CSS gives a sane starting size */
.hero__name {
  margin: clamp(14px, 3vh, 30px) 0 clamp(16px, 3.4vh, 34px);
  font: 800 clamp(34px, 9.6vw, 200px)/.9 var(--display); letter-spacing: -.035em;
  text-transform: uppercase; white-space: nowrap; text-align: center;
  color: var(--paper);
}
.hero__name .gold {
  background: linear-gradient(180deg, #ffe46b 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__name.is-wrapped { white-space: normal; }

/* ───────── Player card ───────── */
.player {
  width: min(100%, 360px); padding: 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border: 1px solid var(--faint);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
}
.player:focus { outline: none; }
.player__head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.player__art { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.player__meta { min-width: 0; }
.player__label {
  display: flex; align-items: center; gap: 7px;
  font: 600 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.player__title {
  margin-top: 7px; font: 700 15px/1.2 var(--display); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__artist { font-size: 13px; color: var(--muted); margin-top: 3px; }

.player__seek { margin-top: 16px; }
.player__seek input {
  --pct: 0%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 18px;
  background: transparent; margin: 0; cursor: pointer;
}
.player__seek input::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) var(--pct), rgba(255, 255, 255, .16) var(--pct));
}
.player__seek input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.player__seek input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
.player__seek input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%;
  background: var(--paper); border: 0; box-shadow: 0 0 0 3px rgba(252, 209, 22, .35);
}
.player__seek input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 0; }
.player__times { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.player__controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.ctl {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--paper); cursor: pointer; font-size: 20px;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.ctl:hover { background: rgba(255, 255, 255, .08); }
.ctl--main { width: 56px; height: 56px; background: var(--gold); color: var(--ink); font-size: 22px; }
.ctl--main:hover { background: #ffe04d; transform: scale(1.05); }
.ctl--list { margin-left: auto; margin-right: -4px; font-size: 19px; color: var(--muted); }
.ctl--list[aria-expanded="true"] { color: var(--gold); background: rgba(252, 209, 22, .1); }
.player__controls .ctl[data-prev] { margin-left: 44px; } /* balance the list button so play sits centred */

.tracks { list-style: none; margin: 12px -6px 0; padding: 8px 0 0; border-top: 1px solid var(--faint); }
.tracks[hidden] { display: none; }
.track {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  width: 100%; min-height: 42px; padding: 6px 10px; border: 0; border-radius: 12px;
  background: transparent; text-align: left; cursor: pointer; font-size: 13.5px;
}
.track:hover { background: rgba(255, 255, 255, .06); }
.track__n { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track__t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.track[aria-current="true"] { background: rgba(252, 209, 22, .1); }
.track[aria-current="true"] .track__t, .track[aria-current="true"] .track__n { color: var(--gold); }
.track.is-broken { opacity: .45; }

.links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--faint); }
.links[hidden] { display: none; }
.links a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--muted); font-size: 18px; transition: color .2s, background-color .2s, transform .2s var(--ease);
}
.links a:hover { color: var(--gold); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }

/* ───────── Flag band ─────────
   Green, white, gold, black, red: the Golden Arrowhead read as stripes. */
.band {
  position: relative; overflow: hidden;
  background: var(--gold); color: var(--ink);
  border-top: 7px solid var(--flag-green);
  border-bottom: 7px solid var(--red);
  box-shadow: inset 0 2px 0 #fff, inset 0 -2px 0 #000;
}
.band__track { display: flex; width: max-content; }
.band__track.is-ready { animation: marquee var(--marquee-dur, 38s) linear infinite; }
.band__run { display: flex; flex: none; }
.band__run span {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 16px 0; font: 800 clamp(18px, 1.6vw + 8px, 30px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase;
}
.band__run span::after { content: "✱"; color: var(--red); margin: 0 .8em; font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Tablet ───────── */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "portrait intro"
      "portrait player"
      "name     name";
    align-items: start; row-gap: 28px; min-height: 0; padding-top: 12px;
  }
  .hero__intro { align-self: end; padding-bottom: 0; }
  .hero__portrait { width: min(100%, 360px); }
  .player { align-self: start; justify-self: start; }
}

/* ───────── Phone ───────── */
@media (max-width: 760px) {
  .top { padding-top: 16px; padding-bottom: 12px; }
  .top .pill { min-height: 42px; padding-left: 16px; font-size: 14px; gap: 10px; }
  .top .pill__knob { width: 32px; height: 32px; font-size: 14px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "portrait" "name" "intro" "player";
    row-gap: 0; padding-bottom: 36px;
  }
  .hero__portrait { width: min(72vw, 320px); margin-top: 8px; }
  .hero__name { margin: 22px 0 26px; }
  .hero__intro { max-width: none; }
  .eyebrow { justify-content: center; text-align: left; }
  .hero__bio { text-align: center; }
  .hero__ctas { justify-content: center; }
  .player { width: 100%; justify-self: stretch; margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .band__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .band__run[aria-hidden="true"] { display: none; }
}

/* ───────── ATG branding footer (shared house block) ─────────
   Portable: set the three --atg-foot-* tokens per site; nothing else changes. */
.atg-foot {
  --atg-foot-fg: var(--paper, #fff);
  --atg-foot-muted: rgba(255, 255, 255, .69);
  --atg-foot-line: var(--faint, rgba(255, 255, 255, .14));
  text-align: center; color: var(--atg-foot-fg);
  border-top: 1px solid var(--atg-foot-line);
  padding: clamp(36px, 6vh, 56px) 16px calc(clamp(28px, 5vh, 44px) + var(--dock-space, 0px));
  transition: padding .5s ease;
}
.atg-foot__copy { margin: 0; font-size: clamp(15px, 1vw + 8px, 18px); font-weight: 500; }
.atg-foot__credit {
  margin: 2.25vh 0 0; font-family: system-ui, sans-serif; font-size: 90%; font-weight: 400;
  text-transform: lowercase; color: #eee;
}
.atg-foot__brand { display: inline-block; margin-left: .14rem; text-transform: lowercase; }
.atg-foot__brand a { color: var(--atg-foot-fg); text-decoration: none; }
.atg-foot__brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.atg-foot__brand::after {
  /* external-link mark as a masked SVG so it takes the text colour; swap to FA ("\f14c") on sites that load the kit */
  content: ""; display: inline-block; width: .74em; height: .74em; margin-left: .3rem; vertical-align: -.04em;
  background-color: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.atg-foot__brand b { font-weight: 700; }
.atg-foot__tag-link { display: inline-block; margin-top: 1.5vh; border-radius: 50%; }
.atg-foot__tag {
  display: inline-block; vertical-align: middle; border-radius: 50%;
  filter: grayscale(100%); transform: scale(1);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}
.atg-foot__tag-link:hover .atg-foot__tag,
.atg-foot__tag-link:focus-visible .atg-foot__tag { filter: grayscale(0%); transform: scale(1.25); }
.atg-foot__tag-link:focus-visible { outline: 2px solid var(--atg-foot-fg); outline-offset: 6px; }

/* Phone: keep both hero pills on one row */
@media (max-width: 760px) {
  .hero__ctas { gap: 10px; }
  .hero__ctas .pill { min-height: 46px; padding-left: 17px; gap: 10px; font-size: 14.5px; }
  .hero__ctas .pill__knob { width: 36px; height: 36px; }
}
