/* ============================================================
   Aveer Bedi — an eight-year-old who makes up his own tunes
   Palette from his photo: sunshine yellow tee, teal glasses, one coral pop.
   Type:  Bricolage Grotesque (display) · Nunito Sans (body) · DM Mono (labels)
   One bright world, deliberately single-theme. Hairlines, soft shadows, pastel chips.
   ============================================================ */

:root {
  --sun: #ffd84d;
  --sun-soft: #ffe58a;
  --sun-pale: #fff4cc;
  --sun-deep: #e6b400;
  --paper: #fffdf8;
  --paper-2: #fff8e6;
  --white: #ffffff;
  --ink: #1c1b33;
  --ink-2: #33325a;
  --ink-soft: #6b6a85;
  --rule: rgba(28, 27, 51, .12);
  --rule-strong: rgba(28, 27, 51, .26);
  --teal: #14b8b0;
  --teal-deep: #0b7f7a;
  --teal-pale: #ddf5f3;
  --coral: #ff6b6b;
  --coral-deep: #d64545;
  --coral-pale: #ffe6e6;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 56px);
  --measure: 62ch;
  --radius: 16px;
  --shadow-soft: 0 10px 30px -14px rgba(28, 27, 51, .28);
  --shadow-card: 0 1px 2px rgba(28, 27, 51, .05), 0 14px 34px -18px rgba(28, 27, 51, .3);
  --shadow-lift: 0 2px 4px rgba(28, 27, 51, .06), 0 22px 44px -18px rgba(28, 27, 51, .38);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus { top: 8px; }

.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }

/* ---------- stickers (hero labels): pastel chips, one tilted ---------- */
.stickers { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.sticker {
  display: inline-block; padding: 6px 13px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25;
  white-space: nowrap;
}
.sticker--teal { background: var(--teal-pale); color: var(--teal-deep); border-color: rgba(11, 127, 122, .3); }
.sticker--coral { background: var(--coral); color: var(--white); border-color: var(--coral-deep); }
.sticker--tilt { transform: rotate(-2.5deg); }
.sticker--small { font-size: .66rem; padding: 5px 11px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: var(--display); font-weight: 700; font-size: .92rem; line-height: 1; letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 rgba(28, 27, 51, .08);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost { background: var(--white); }
.btn--coral { background: var(--coral); color: var(--white); border-color: var(--coral-deep); }
.btn--coral:hover { background: #ff7b7b; }
.btn--onink { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn--onink:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn--small { padding: 9px 14px; font-size: .85rem; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--gutter);
  background: rgba(255, 253, 248, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.top__brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top__nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.top__nav a:hover { color: var(--ink); background: var(--sun-pale); }
.top__yt {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); white-space: nowrap;
}
.top__yt:hover { border-color: var(--ink); }
.top__yt svg { color: var(--coral); }
.top__menu {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 0;
  border-radius: 12px; border: 1px solid var(--rule-strong); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.top__burger { display: grid; gap: 4px; width: 18px; }
.top__burger i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.top__menu[aria-expanded="true"] .top__burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.top__menu[aria-expanded="true"] .top__burger i:nth-child(2) { opacity: 0; }
.top__menu[aria-expanded="true"] .top__burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 640px) {
  .top { gap: 10px; flex-wrap: wrap; }
  .top__menu { display: inline-flex; order: 2; }
  .top__yt { order: 1; margin-left: auto; padding: 6px 8px; }
  .top__yt:not([hidden]) ~ .top__menu { margin-left: 0; }
  .top__yt span { display: none; }
  .top__nav { display: none; order: 3; width: 100%; margin: 0; padding: 6px 0 4px; overflow: visible; }
  .top.is-open .top__nav { display: grid; gap: 0; }
  .top.is-open .top__nav a { padding: 13px 8px; font-size: 1.05rem; color: var(--ink); border-top: 1px solid var(--rule); border-radius: 0; }
  .top.is-open .top__nav a:hover { background: var(--sun-pale); }
}

/* ---------- hero: sunshine ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 460px at 82% 6%, rgba(255, 255, 255, .6), transparent 64%),
    linear-gradient(180deg, var(--sun-soft) 0%, var(--sun) 100%);
  color: var(--ink);
}
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob--teal { width: 300px; height: 300px; right: -90px; top: -120px; background: radial-gradient(circle at 40% 40%, rgba(20, 184, 176, .55), rgba(20, 184, 176, .15) 70%, transparent 72%); }
.blob--coral { width: 140px; height: 140px; border: 10px solid rgba(255, 107, 107, .6); left: -50px; bottom: 120px; }
@media (max-width: 640px) { .blob--teal { width: 180px; height: 180px; right: -60px; top: -60px; } .blob--coral { display: none; } }

.hero__inner {
  position: relative;
  max-width: 1160px; margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) var(--gutter) clamp(28px, 4.5vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 700; line-height: .95; letter-spacing: -.035em;
  margin: 20px 0 20px;
  font-variation-settings: "opsz" 96;
}
@media (min-width: 821px) {
  /* one line beside the photo: sized to the text column */
  .hero__title { font-size: clamp(2.6rem, 5.4vw, 5.2rem); white-space: nowrap; }
}
.hero__title em { font-style: normal; color: var(--teal-deep); }
.hero__lede { max-width: 44ch; font-size: clamp(1.05rem, 1.45vw, 1.2rem); font-weight: 500; line-height: 1.55; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
}
.hero__facts li { display: grid; gap: 2px; flex: 1 1 140px; min-width: 0; }
.hero__facts strong { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.02em; }
.hero__facts span { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

.hero__portrait { margin: 0; justify-self: center; display: grid; justify-items: center; gap: 16px; }
.hero__frame {
  position: relative; z-index: 0;
  width: min(320px, 72vw);
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--rule-strong); border-radius: 24px;
  box-shadow: var(--shadow-lift);
  transform: rotate(2deg);
}
.hero__frame::before {
  /* a second card underneath, like stacked prints */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--teal); border-radius: inherit;
  transform: rotate(-5deg) translate(6px, 6px); opacity: .85;
}
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: 16px; background: var(--sun-pale); }
.hero__portrait .sticker--small { transform: rotate(-1.5deg); }

@media (max-width: 640px) {
  .hero__facts { flex-direction: column; gap: 10px; }
  .hero__facts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; flex: 0 0 auto; }
  .hero__facts strong { font-size: 1.15rem; }
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; justify-self: start; justify-items: start; }
  .hero__frame { width: min(200px, 50vw); }
}

/* ---------- the tune machine, at the foot of the hero ---------- */
.piano-wrap { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.piano-bar {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px 40px; align-items: end;
  padding: 18px 0 16px;
  border-top: 1px solid var(--rule-strong);
}
.piano-bar__kicker { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.1vw, 1.5rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 6px; }
.piano-bar__hint { font-size: .92rem; font-weight: 500; color: var(--ink-2); max-width: 54ch; }
.piano-bar__hint b { color: var(--coral-deep); font-weight: 700; }
.piano-foot { margin-top: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .02em; color: var(--ink-soft); }
.piano-bar__controls { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: flex-end; }
.piano-bar__status { width: 100%; text-align: right; font-family: var(--mono); font-size: .74rem; letter-spacing: .02em; color: var(--ink-soft); }
.piano-bar__status.is-live { color: var(--coral-deep); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
#rec[aria-pressed="true"] { background: var(--white); color: var(--coral-deep); }
#rec[aria-pressed="true"] .rec-dot { background: var(--coral); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }
#playback.is-ready { animation: nudge 1.4s ease-in-out 2; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
@media (max-width: 820px) {
  .piano-bar { grid-template-columns: 1fr; align-items: start; }
  .piano-bar__controls { justify-content: flex-start; }
  .piano-bar__status { text-align: left; }
}
@media (max-width: 640px) {
  .piano-foot { display: none; }
  .hero__inner { padding-top: 28px; gap: 18px; }
  .hero__portrait { gap: 0; }
  .hero__portrait .sticker--small { margin: -14px 0 0 14px; position: relative; z-index: 1; }
  .hero__title { margin: 14px 0 14px; }
  .hero__lede { font-size: 1.02rem; }
  .hero__actions { margin-top: 20px; }
  .hero__facts { margin-top: 26px; padding-top: 16px; }
  .piano-bar { gap: 10px; padding: 16px 0 12px; }
  .piano-bar__kicker { font-size: 1.15rem; }
  .piano-bar__hint { font-size: .88rem; }
  .piano-bar__controls { gap: 8px; }
  .piano-bar__controls .btn { padding: 9px 13px; font-size: .84rem; }
  .piano-bar__status { font-size: .7rem; }
  .piano { height: 150px; }
  .key--white { border-radius: 0 0 6px 6px; }
}

.octave { display: none; gap: 6px; margin: 0 0 10px; }
.octave__btn {
  flex: 1; padding: 9px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--white);
  font-family: var(--display); font-weight: 700; font-size: .84rem; color: var(--ink-soft); cursor: pointer;
}
.octave__btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (max-width: 640px) { .octave { display: flex; } }

.piano {
  position: relative;
  display: flex;
  height: clamp(112px, 16vw, 168px);
  background: var(--ink);
  border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0;
  padding-top: 6px; overflow: hidden;
  box-shadow: 0 -12px 34px -22px rgba(28, 27, 51, .5);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.piano::before {
  /* felt strip along the fallboard */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: var(--coral); z-index: 3;
}
.key { border: 0; padding: 0; margin: 0; cursor: pointer; background: none; }
.key--white {
  position: relative; flex: 1 1 0; min-width: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf6 72%, #f1eee4 100%);
  border-right: 1px solid #cfcbbf;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 -6px 0 #e6e2d6;
  transition: background-color .08s ease, box-shadow .08s ease;
}
.key--white:last-child { border-right: 0; }
.key--white:hover { background: linear-gradient(180deg, #fffcf0, #fff3c6); }
.key--white.is-on { background: linear-gradient(180deg, var(--sun-pale), var(--sun-soft)); box-shadow: inset 0 -6px 0 var(--sun-deep); }
.key.is-hidden { display: none; }
.key--black {
  position: absolute; top: 6px; z-index: 2;
  left: calc(100% / var(--whites, 15) * (var(--wi) - var(--offset, 0)));
  width: calc(100% / var(--whites, 15) * .58); height: 60%;
  background: linear-gradient(180deg, #3c3a63 0%, var(--ink) 75%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 0 #0f0e1e, inset 1px 0 0 rgba(255, 255, 255, .08);
  transform: translateX(-50%);
  transition: background-color .08s ease;
}
.key--black:hover { background: linear-gradient(180deg, #4a4876, #2a2947 75%); }
.key--black.is-on { background: linear-gradient(180deg, #3fd6ce, var(--teal-deep) 75%); box-shadow: 0 2px 0 #0f0e1e; }
.key:focus-visible { outline-offset: -4px; }
.key__label { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .64rem; color: #a09cae; pointer-events: none; }

/* ---------- sections ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(52px, 8vw, 100px) var(--gutter); }
.section--tinted { position: relative; background: var(--paper-2); box-shadow: 0 0 0 100vmax var(--paper-2); clip-path: inset(0 -100vmax); }
.section__head { max-width: var(--measure); margin-bottom: clamp(26px, 4vw, 44px); }
.section__head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 10px 0 14px; }
.section__lede { color: var(--ink-soft); font-size: 1.04rem; }

/* ---------- video grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters:empty { display: none; }
.filter {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--white);
  font-family: var(--display); font-size: .84rem; font-weight: 700; color: var(--ink-soft); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px 26px; }
.video { display: grid; gap: 14px; align-content: start; }
.video__poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  padding: 0; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.video__poster:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--coral); color: var(--white);
  border: 2px solid var(--white); box-shadow: 0 8px 22px -8px rgba(28, 27, 51, .6);
  transition: transform .15s ease;
}
.video__play svg { margin-left: 3px; }
.video__poster:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__player { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--rule-strong); box-shadow: var(--shadow-card); }
.video__player video, .video__player iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video__player--portrait { max-width: min(100%, calc(82vh * 9 / 16)); margin: 0 auto; }
.video__player--portrait video, .video__player--portrait iframe { aspect-ratio: 9 / 16; object-fit: contain; }

/* placeholder for an entry with no YouTube id yet */
.video__poster--soon {
  cursor: default;
  background:
    radial-gradient(420px 200px at 80% 0%, rgba(255, 255, 255, .7), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(28, 27, 51, .07) calc(10% - 1px) 10%),
    linear-gradient(180deg, var(--sun-pale), var(--sun-soft));
  display: grid; align-content: end; padding: 18px 20px; text-align: left; color: var(--ink);
}
.video__poster--soon:hover { transform: none; box-shadow: var(--shadow-card); }
.video__soon-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1; letter-spacing: -.02em; }
.video__soon-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); margin-top: 8px; }
.video__meta { display: grid; gap: 4px; padding: 0 2px; }
.video__title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.video__by { color: var(--ink-soft); font-size: .92rem; }
.video__event { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; font-family: var(--mono); color: var(--ink-soft); margin-top: 4px; }
.video--prize .video__title::after { content: "1st prize"; display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--coral-pale); color: var(--coral-deep); font-family: var(--display); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.video-empty { color: var(--ink-soft); }

/* ---------- chips: pastel ---------- */
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.6;
  border: 1px solid transparent;
}
.chip--sun { background: var(--sun-pale); color: var(--ink); border-color: rgba(230, 180, 0, .45); }
.chip--teal { background: var(--teal-pale); color: var(--teal-deep); border-color: rgba(11, 127, 122, .3); }
.chip--outline { border-color: var(--rule-strong); color: var(--ink-soft); background: var(--white); }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 30px; max-width: 760px; }
.tl { display: grid; grid-template-columns: 120px 1fr; gap: 18px; position: relative; }
.tl::before { content: ""; position: absolute; left: 120px; top: 12px; bottom: -30px; width: 1px; background: var(--rule-strong); transform: translateX(10px); }
.timeline .tl:last-child::before { display: none; }
.tl::after {
  content: ""; position: absolute; left: 120px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px var(--rule-strong); transform: translateX(5px); z-index: 1;
}
.tl--prize::after { background: var(--coral); box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px var(--coral), 0 0 0 9px rgba(255, 216, 77, .55); }
.tl--now::after { background: var(--sun); box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 4px var(--sun-deep); }
.tl__date { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); padding-top: 4px; white-space: nowrap; }
.tl__body { padding-left: 24px; display: grid; gap: 6px; }
.tl__body h3 { font-size: 1.28rem; }
.tl__body p { color: var(--ink-soft); max-width: 56ch; }
.tl__body p em { color: var(--ink); font-style: italic; }
.tl--prize h3 { color: var(--coral-deep); }
@media (max-width: 560px) {
  .tl { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .tl::before { left: 0; transform: translateX(5px); top: 12px; }
  .tl::after { left: 0; transform: none; top: 6px; }
  .tl__body { padding-left: 0; }
}

/* timeline + the stage photo side by side on wide screens */
.milestones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 56px; align-items: start; }
@media (min-width: 900px) {
  .milestones { grid-template-columns: minmax(0, 1fr) 300px; }
  .print--stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
}
@media (max-width: 899px) { .print--stage { order: -1; max-width: 300px; } }

/* a photo set like a print, matching the hero frame */
.print {
  margin: 0; display: grid; justify-items: center; gap: 12px;
}
.print img {
  width: 100%; padding: 8px; background: var(--white);
  border: 1px solid var(--rule-strong); border-radius: 18px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
}
.print .sticker--small { transform: rotate(1.5deg); margin-top: -18px; position: relative; z-index: 1; }

.about__face {
  width: 104px; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%;
  border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--shadow-card);
  margin-top: 18px;
}

/* ABRSM 150-mark ruler */
.meter { display: flex; align-items: center; gap: 14px; margin-top: 8px; max-width: 420px; }
.meter__track { position: relative; flex: 1; height: 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule-strong); }
.meter__fill { height: 100%; width: calc(var(--score) / 150 * 100%); border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); }
.meter__tick { position: absolute; top: -5px; left: calc(var(--at) / 150 * 100%); width: 1px; height: 16px; background: var(--ink-2); }
.meter__tick i { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 500 .6rem var(--mono); font-style: normal; color: var(--ink-soft); }
.meter__mark { font-family: var(--display); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter__mark span { font-family: var(--mono); font-weight: 400; color: var(--ink-soft); font-size: .74rem; }
.tl .meter { margin-bottom: 16px; }

/* ---------- pieces (programme) ---------- */
.programme { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px 40px; }
.programme__label { margin-bottom: 12px; }
.pieces { display: grid; }
.piece { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--rule-strong); }
.piece:last-child { border-bottom: 1px solid var(--rule-strong); }
.piece__title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.02em; }
.piece__by { font-size: .95rem; color: var(--ink-2); }
.piece__note { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); margin-top: 4px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: start; }
.about .section__head { margin-bottom: 0; }
.about__text { max-width: var(--measure); display: grid; gap: 16px; }
.about__text p { font-size: 1.06rem; }
.about__sign { color: var(--ink-soft); font-size: .94rem !important; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--white); }
.foot__inner {
  max-width: 1160px; margin: 0 auto;
  padding: 44px var(--gutter) calc(38px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: start;
}
.foot__main { display: grid; gap: 18px; }
.foot__brand { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--sun); letter-spacing: -.02em; }
.foot__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.foot__contact { display: grid; gap: 8px; justify-items: start; }
.foot__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.foot__text { color: rgba(255, 255, 255, .75); max-width: 40ch; }
.foot__mail { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.foot__mail a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--sun); }
.foot__mail a:hover { color: var(--sun); }
.foot__contact .foot__actions { margin-top: 6px; }
.foot__note { grid-column: 1 / -1; font-size: .85rem; color: rgba(255, 255, 255, .58); padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 640px) { .foot__inner { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-lift);
  font-family: var(--display); font-size: .9rem; font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 60; white-space: nowrap; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .video__poster, .video__play, .key, .toast, .filter { transition: none; }
  #rec[aria-pressed="true"] .rec-dot, #playback.is-ready { animation: none; }
}
