@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #080808;
  background: #F4F2EF;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, p, h1, h2 { margin: 0; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.play:disabled { min-width: 0; max-width: 140px; }
.play:disabled .play-icon { display: none; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.comparison { display: flex; min-height: 100svh; }
.studio { position: relative; width: 52.7778%; min-height: 100svh; overflow: hidden; background: #080808; color: #F4F4F1; }
.studio img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(1) contrast(1.18) brightness(.82); }
.brand { position: absolute; top: 44px; left: 48px; font-size: 18px; text-decoration: none; }
.photo-caption { position: absolute; bottom: 44px; left: 48px; font-size: 14px; }
.content { width: 47.2222%; min-height: 100svh; padding: 48px 52px 40px; display: flex; flex-direction: column; }
.intro { font-size: 18px; line-height: 25px; }
.work { width: 100%; margin: auto 0; padding: 62px 0 72px; }
h1 { font-size: clamp(70px, 8vw, 116px); font-weight: 600; line-height: 1; letter-spacing: -.065em; padding-bottom: 72px; }
.track-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid #777773; padding: 26px 0 22px; }
h2 { font-size: 28px; font-weight: 400; line-height: 34px; letter-spacing: -.03em; }
.track-heading > span { font-size: 14px; color: #51514E; }
.versions { display: flex; position: relative; border: 1px solid #777773; height: 48px; isolation: isolate; }
.versions button { flex: 1; border: 0; background: none; padding: 0 8px; font-size: 14px; transition: color 150ms ease; }
.versions button[aria-pressed="true"] { color: #F4F4F1; }
.version-highlight { position: absolute; z-index: -1; inset: 3px auto 3px 3px; width: calc(50% - 3px); background: #080808; transition: transform 150ms ease; }
.versions.is-after .version-highlight { transform: translateX(100%); }
.waveform { position: relative; height: 96px; margin-top: 28px; --progress: 0%; }
.waveform svg { width: 100%; height: 100%; display: block; }
.waveform input { position: absolute; inset: -8px 0; width: 100%; height: calc(100% + 16px); opacity: 0; cursor: pointer; margin: 0; }
.waveform:focus-within { outline: 1px solid #080808; outline-offset: 8px; }
.playhead { position: absolute; top: 0; bottom: 0; width: 1px; background: #080808; left: var(--progress); pointer-events: none; }
.waveform .wave-active { clip-path: inset(0 calc(100% - var(--progress)) 0 0); }
.transport { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #777773; padding: 14px 0 22px; }
.play { display: flex; align-items: center; gap: 13px; min-height: 48px; min-width: 130px; padding: 0; border: 0; background: transparent; font-size: 18px; }
.pause-icon { display: none; }
.play.is-playing .play-icon { display: none; }
.play.is-playing .pause-icon { display: block; }
.time { font-size: 14px; font-variant-numeric: tabular-nums; display: flex; gap: 8px; }
.time-divider { color: #63635F; }
.hint { color: #51514E; font-size: 14px; line-height: 22px; padding-top: 20px; }
.error { font-size: 14px; line-height: 22px; padding-top: 12px; }
footer { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: 13px; line-height: 20px; }
footer > span { color: #51514E; white-space: nowrap; }
footer a { text-underline-offset: 5px; }
@media (min-width: 1700px) { .content { padding-inline: 72px; } }
@media (max-width: 1100px) {
  .content { padding: 34px 30px 30px; width: 52%; }
  .studio { width: 48%; }
  .brand, .photo-caption { left: 30px; }
  h1 { padding-bottom: 50px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 700px) {
  .comparison { flex-direction: column; }
  .studio { width: 100%; min-height: 0; height: 29svh; max-height: 280px; }
  .studio img { object-position: 50% 40%; }
  .brand { left: 24px; top: 22px; font-size: 16px; }
  .photo-caption { left: 24px; bottom: 20px; font-size: 13px; }
  .content { width: 100%; min-height: 71svh; padding: 28px 24px 24px; }
  .intro { font-size: 16px; line-height: 22px; }
  .intro br { display: none; }
  .work { padding: 34px 0 36px; }
  h1 { font-size: 72px; padding-bottom: 32px; }
  .track-heading { padding-top: 20px; }
  h2 { font-size: 26px; }
  .waveform { height: 78px; margin-top: 24px; }
  footer { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .version-highlight, .versions button { transition: none; } }
