/* Music, Education and Side projects pages */

.phead { padding-block: clamp(56px, 9vw, 120px) clamp(32px, 5vw, 64px); }
.phead__h { font-size: clamp(2.2rem, 1.6rem + 3vw, 4.4rem); max-width: 16ch; }
.phead__lede { margin-top: 22px; color: var(--ink-2); max-width: 60ch; font-size: 1.1rem; }

.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--blue); }
.ticks b { color: var(--ink); }

/* ---------- Music ---------- */
.music-hero img { width: 100%; max-height: 74vh; object-fit: cover; border-radius: 10px; }

/* the timeline runs along a five-line staff */
.timeline { --tl-gap: clamp(20px, 3vw, 40px); list-style: none; padding: 0; margin-top: clamp(56px, 8vw, 112px); position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(9.5rem + var(--tl-gap)); width: 34px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px);
  opacity: .9;
}
.tl { display: grid; grid-template-columns: 9.5rem 34px minmax(0, 1fr); column-gap: var(--tl-gap); padding-block: clamp(28px, 4vw, 48px); position: relative; }
.tl::after { content: ""; position: absolute; left: calc(9.5rem + var(--tl-gap) + 17px); top: calc(clamp(28px, 4vw, 48px) + 0.4em); width: 14px; height: 11px; border-radius: 50%; background: var(--ink); transform: translateX(-50%) rotate(-20deg); }
.tl--now::after { background: var(--blue); }
.tl__when { grid-column: 1; font-weight: 800; font-variation-settings: "wdth" 120; font-size: var(--step-1); text-align: right; line-height: 1.2; }
.tl__body { grid-column: 3; max-width: 60ch; }
.tl__body h2 { font-size: var(--step-2); font-variation-settings: "wdth" 110; margin-bottom: 12px; }
.tl__body p { color: var(--ink-2); }
.tl--now .tl__when { color: var(--blue-ink); }
@media (max-width: 700px) {
  .timeline::before { left: 0; }
  .tl { grid-template-columns: 34px minmax(0, 1fr); }
  .tl::after { left: 17px; }
  .tl__when { grid-column: 2; text-align: left; font-size: var(--step-0); margin-bottom: 6px; }
  .tl__body { grid-column: 2; }
}

.listen { margin-top: clamp(64px, 9vw, 120px); }
.listen__h { font-size: var(--step-3); }
.listen__grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(16px, 2.5vw, 28px); }
.listen__main { grid-row: span 2; }
@media (max-width: 760px) { .listen__grid { grid-template-columns: 1fr; } .listen__main { grid-row: auto; } }

.coda { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.coda__fig img { border-radius: 10px; width: 100%; }
.coda__q { font-size: var(--step-2); line-height: 1.3; font-weight: 600; font-variation-settings: "wdth" 100; max-width: 26ch; text-wrap: balance; margin-bottom: 24px; }
@media (max-width: 760px) { .coda { grid-template-columns: 1fr; } }

/* ---------- Education ---------- */
.school { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.school--flip .school__fig { order: 2; }
.school__fig img { width: 100%; border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; }
.school__fig figcaption { font-size: 0.75rem; }
.school__where { font-family: var(--mono); font-size: 0.76rem; color: var(--blue-ink); font-variation-settings: "wdth" 90; margin-bottom: 12px; }
.school__text h2 { font-size: var(--step-2); font-variation-settings: "wdth" 110; margin-bottom: 18px; }
.school__text > p { color: var(--ink-2); max-width: 56ch; }
.school__sub { font-size: 0.95rem; margin: 26px 0 12px; }
.degrees { margin: 0; border-top: 1px solid var(--line); }
.degrees div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.degrees dt { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); padding-top: 3px; font-variation-settings: "wdth" 90; }
.degrees dd { margin: 0; }
@media (max-width: 860px) { .school { grid-template-columns: 1fr; } .school--flip .school__fig { order: 0; } }

.grid3 { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 56px); }
.block { border-top: 2px solid var(--ink); padding-top: 16px; }
.block h2 { font-size: var(--step-1); font-variation-settings: "wdth" 112; margin-bottom: 16px; }
.langs { margin: 0; display: grid; gap: 10px; }
.langs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.langs dt { font-weight: 600; }
.langs dd { margin: 0; color: var(--ink-2); }
.block__more { margin-top: 20px; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- Side projects ---------- */
.side { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 72px); }
.side--flip .side__shot { order: 2; }
.side__shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); text-decoration: none; transition: transform .5s var(--ease-out), border-color .3s; }
.side__shot:hover { transform: translateY(-4px); border-color: var(--ink-3); }
.side__shot img { width: 100%; }
.browser { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); font-variation-settings: "wdth" 90; }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser span { margin-left: 10px; }
.side__shot--dark { background: oklch(0.2 0.02 250); border-color: oklch(0.3 0.02 250); }
.side__shot--dark .browser { border-color: oklch(0.3 0.02 250); color: oklch(0.7 0.02 250); }
.side__shot--dark .browser i { background: oklch(0.35 0.02 250); }
.side__text h2 { font-size: var(--step-3); font-variation-settings: "wdth" 112; margin: 16px 0 14px; }
.side__text > p { color: var(--ink-2); max-width: 56ch; margin-bottom: 14px; }
.side__text .ticks { margin: 4px 0 18px; }
@media (max-width: 860px) { .side { grid-template-columns: 1fr; } .side--flip .side__shot { order: 0; } }

.tools { margin-top: clamp(48px, 7vw, 96px); padding: clamp(24px, 4vw, 40px); background: var(--bg-2); border-radius: 10px; }
.tools h2 { font-size: var(--step-1); font-variation-settings: "wdth" 112; margin-bottom: 12px; }
.tools p { color: var(--ink-2); max-width: 70ch; }

/* live, scaled-down site inside the browser frame */
.side__live .browser a { margin-left: auto; color: oklch(0.8 0.02 250); text-decoration: none; font-family: var(--font); }
.side__live .browser a:hover { color: #fff; }
.live { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.live iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; transform: scale(0.5); transform-origin: 0 0; z-index: 1; background: transparent; }
.live__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live__hint { padding: 8px 12px; font-size: 0.75rem; color: oklch(0.7 0.02 250); border-top: 1px solid oklch(0.3 0.02 250); }
.tools p + p { margin-top: 12px; }
@media (max-width: 600px) { .live iframe { width: 300%; height: 300%; transform: scale(0.3333); } }
