/* ==========================================================================
   Harmony — marketing site by Ovear
   The page is a musical score: graphite ink, cool paper, Harmony's spectrum.
   --------------------------------------------------------------------------
   0.  Fonts
   1.  Tokens
   2.  Base
   3.  Layout utilities
   4.  Type
   5.  Motifs: staff, noteheads, rehearsal marks
   6.  Buttons, kbd, code
   7.  Window frame / figures
   8.  Reveal on scroll
   9.  Nav
   10. Hero
   11. Trio
   12. [A] The Editor
   13. [B] Harmony Hub (+ the Score)
   14. Undo anything
   15. [C] Claude
   16. [D] Unison (dark band)
   17. Use cases
   18. CLI
   19. Stays on your machine
   20. Coda / download
   21. Footer
   22. Reduced motion
   ========================================================================== */


/* 0. FONTS ---------------------------------------------------------------
   Both files are variable on weight only (200–900). Hubot Sans has a barred
   zero, so the digit 0 is borrowed from Mona Sans in display type. */
@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("assets/fonts/hubot-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Harmony Zero";
  src: url("assets/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030;
}


/* 1. TOKENS ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* graphite on a cool off-white, like the IDE */
  --paper:   #F4F5F7;
  --paper-2: #EAEDF1;
  --ink:     #1C2330;   /* graphite: the arcs of the white app icon */
  --ink-2:   #59636E;
  --rule:    rgba(28, 35, 48, .14);
  --rule-2:  rgba(28, 35, 48, .30);
  --code-bg: rgba(28, 35, 48, .06);

  /* the IDE's dark theme */
  --night:       #0D1117;
  --night-2:     #151B23;
  --night-ink:   #E6EDF3;
  --night-muted: #9198A1;
  --night-rule:  rgba(230, 237, 243, .12);
  --gh-border:   #30363D;   /* dark borders, and the first chart bar */
  --gh-border-2: #484F58;   /* the second chart bar */

  /* Harmony's spectrum. Colour is never one flat tint: it always arrives as the rainbow,
     in notes, marks, data and a few bookend moments.
     Light surfaces use the GitHub light set; dark surfaces use the app's own dark set. */
  --s1: #CF222E; --s2: #BC4C00; --s3: #9A6700; --s4: #1A7F37; --s5: #0969DA; --s6: #8250DF;
  --d1: #FF7B72; --d2: #FFA657; --d3: #E3B341; --d4: #3FB950; --d5: #58A6FF; --d6: #BC8CFF;
  --spectrum-ink: linear-gradient(90deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5), var(--s6));
  --spectrum:     linear-gradient(90deg, var(--d1), var(--d2), var(--d3), var(--d4), var(--d5), var(--d6));
  --focus: #0969DA;

  --font-display: "Harmony Zero", "Hubot Sans", "Mona Sans", system-ui, sans-serif;
  --font-body:    "Mona Sans", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section-pad: clamp(96px, 13vw, 200px);
  --nav-h: 72px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(18px, .28vw + 16.8px, 20px);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;     /* fallback for browsers without `clip` */
  overflow-x: clip;       /* safety net for the full-bleed staves */
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button { font: inherit; }

::selection { background: rgba(9, 105, 218, .18); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* every anchor target lands with its content just under the nav */
:where(section[id]) { scroll-margin-top: calc(var(--nav-h) - var(--section-pad) + 32px); }
#top { scroll-margin-top: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* 3. LAYOUT UTILITIES --------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 12-column grid. Children are single-column on mobile; sections place them on desktop. */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
}

.section { padding-block: var(--section-pad); position: relative; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }


/* 4. TYPE --------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}
h1 {
  font-size: clamp(56px, 9.5vw, 156px);
  line-height: .94;
  letter-spacing: -.04em;
}
h2 {
  font-size: clamp(40px, 6vw, 92px);
  line-height: .97;
  letter-spacing: -.035em;
}
h3 {
  font-size: clamp(22px, .9vw + 16px, 28px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
}
h4 {
  font-size: clamp(20px, .6vw + 15px, 24px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

/* The serif italic emphasis inside grotesk headlines */
h1 em, h2 em, h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.08em;
  padding-right: .04em;
}
h1 em { display: block; }
h2 em.em-block { display: block; }

/* Bookend italics (hero "in harmony." and the Coda "from the top."): gradient text in the
   light spectrum. The padding/negative-margin pairs enlarge the paint box so the italic
   descender and the full stop are never clipped, without moving anything. */
.em-spectrum {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);                     /* fallback where background-clip:text is missing */
  padding: .08em .14em .26em 0;
  margin: -.08em -.14em -.26em 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .em-spectrum {
    background: var(--spectrum-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

p, li, dd, figcaption { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

.lede {
  font-size: clamp(20px, .6vw + 17px, 25px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 44ch;
  text-wrap: pretty;
}
.prose {
  max-width: 62ch;
  color: var(--ink-2);
  text-wrap: pretty;
}
.fine {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
}

.label {
  margin: 0;
  font: 600 12.5px/1.2 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  font: 600 12.5px/1.2 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}

.numeral {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums;
  width: fit-content;
  color: var(--ink);                     /* fallback */
}
/* the three trio numerals are thirds of the spectrum: together they form the rainbow */
.numeral--g1 { --g: linear-gradient(90deg, var(--s1), var(--s2)); }
.numeral--g2 { --g: linear-gradient(90deg, var(--s3), var(--s4)); }
.numeral--g3 { --g: linear-gradient(90deg, var(--s5), var(--s6)); }
.roman--g1 { --g: linear-gradient(90deg, var(--d1), var(--d2)); }
.roman--g2 { --g: linear-gradient(90deg, var(--d3), var(--d4)); }
.roman--g3 { --g: linear-gradient(90deg, var(--d5), var(--d6)); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .numeral--g1, .numeral--g2, .numeral--g3,
  .roman--g1, .roman--g2, .roman--g3 {
    background: var(--g);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.h3--lg {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 18px 0 20px;
}


/* 5. MOTIFS ------------------------------------------------------------- */

/* Staff: five 1px lines, 11px apart. Resize with --gap (keep it a whole number of px). */
.staff {
  --gap: 11px;
  --lw: 1px;
  display: block;
  height: calc(var(--lw) * 5 + var(--gap) * 4);
  background: repeating-linear-gradient(
    to bottom,
    var(--rule) 0, var(--rule) var(--lw),
    transparent var(--lw), transparent calc(var(--lw) + var(--gap))
  );
}
.staff--thin { --gap: 4px; }

/* Notehead: a filled ellipse, tilted like engraved music */
.notehead {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: var(--s5);
  transform: rotate(-20deg);
}

/* Rehearsal mark: a boxed capital letter */
.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  font: 700 15px/1 var(--font-display);
  letter-spacing: 0;
}

/* Plain eyebrows start with a notehead instead of a letter */
.eyebrow--note .notehead { margin-right: -2px; }


/* 6. BUTTONS, KBD, CODE -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px 14px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { flex: none; fill: currentColor; }
.btn__text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.btn__sub { font-size: 12.5px; font-weight: 500; opacity: .8; letter-spacing: .01em; }

.btn--primary { background: var(--ink); color: #fff; }
/* hover: the IDE's near-black with a 1.5px spectrum ring (a border-box gradient behind a padding-box fill) and a 1px lift */
.btn--primary:hover {
  border-color: transparent;
  background-image: linear-gradient(var(--night), var(--night)), var(--spectrum);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #fff;
  transform: translateY(-1px);
}
.btn--primary:hover .btn__sub { opacity: 1; }

.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }

.btn--lg { padding: 14px 30px 14px 24px; min-height: 64px; }
.btn--sm { padding: 9px 20px; font-size: 14.5px; }

.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

kbd, .kbd {
  display: inline-block;
  padding: .3em .6em;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .4);
  font: 500 .8em/1 var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
  vertical-align: .06em;
}
.kbd--bare { padding: 0; border: 0; background: none; font-size: inherit; vertical-align: baseline; color: inherit; }

code {
  font-family: var(--font-mono);
  font-size: .86em;
  padding: .12em .38em;
  border-radius: 5px;
  background: var(--code-bg);
  overflow-wrap: anywhere;
}


/* 7. WINDOW FRAME / FIGURES ---------------------------------------------- */
.shot { margin: 0; min-width: 0; }

.window {
  display: block;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  border: 1px solid rgba(28, 35, 48, .12);
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(28, 35, 48, .35);
}
.window img { display: block; width: 100%; height: auto; }

.cap {
  margin-top: 16px;
  font: 400 13px/1.45 var(--font-mono);
  color: var(--ink-2);
  letter-spacing: -.005em;
}


/* 8. REVEAL ON SCROLL ----------------------------------------------------
   Content is visible without JS. The `js` class (set in <head>) arms the hidden state. */
.reveal { --rd: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: no-preference) {
  :where(.js) .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease) var(--rd), transform .7s var(--ease) var(--rd);
  }
  :where(.js) .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}


/* 9. NAV ---------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.nav.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--rule);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.nav__cta { justify-self: end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}
.brand__glyph { flex: none; color: var(--ink); }
.brand__name { font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.brand__by { font-size: 13.5px; color: var(--ink-2); padding-top: 2px; }

.nav__links { display: none; }

@media (min-width: 860px) {
  .nav__inner { grid-template-columns: 1fr auto 1fr; }
  .nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
  .nav__links a {
    position: relative;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-2);
    transition: color .2s ease;
  }
  .nav__links a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 2px;
    height: 2px;
    background: var(--spectrum-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav__links a:hover { color: var(--ink); }
  .nav__links a:hover::after,
  .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
  .nav__links a[aria-current="true"] { color: var(--ink); }
}
@media (max-width: 380px) { .brand__by { display: none; } }


/* 10. HERO -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(56px, 8vw, 120px);
  overflow-x: hidden;
  overflow-x: clip;
}
.hero__title { position: relative; }
.hero h1 { position: relative; z-index: 1; }

/* The staff band: full-bleed, behind the headline, with noteheads drifting along it */
.hero__staff {
  --pitch: 12px;               /* line to line: 1px line + 11px gap, so a half-step is 6px */
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  top: 50%;
  height: 49px;
  margin-top: -24.5px;
  z-index: 0;
  pointer-events: none;
  overflow-x: hidden;
  overflow-x: clip;
}
.hero__staff .staff { position: absolute; inset: 0 0 auto 0; --rule: rgba(28, 35, 48, .2); }

.note {
  position: absolute;
  left: 0;
  top: calc(var(--p) * var(--pitch) / 2 - 5px + .5px);
  width: 14px;
  height: 10px;
  color: var(--c, var(--s5));
  animation: drift var(--dur) linear infinite;
  animation-delay: calc(var(--dur) * var(--ph) * -1);
  will-change: transform;
}
.note__head {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: currentColor;
  transform: rotate(-20deg);
}
.note--hollow .note__head { background: var(--paper); border: 1.5px solid currentColor; }
/* on phones the notes would pile onto the headline: keep only the faint staff lines */
@media (max-width: 720px) {
  .note { display: none; }
  .hero__staff .staff { --rule: rgba(28, 35, 48, .11); }
}

@keyframes drift {
  from { transform: translate3d(-8vw, 0, 0); }
  to   { transform: translate3d(108vw, 0, 0); }
}

.hero .eyebrow { margin-bottom: clamp(20px, 2.4vw, 32px); }
.hero__lede { margin-top: clamp(24px, 2.6vw, 36px); max-width: 56ch; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: clamp(28px, 3vw, 40px);
}
.hero__cli {
  margin-top: 20px;
  font: 400 14px/1.5 var(--font-mono);
  color: var(--ink-2);
}
.hero__cli code { background: var(--code-bg); font-size: 1em; color: var(--ink); }

.hero__shot { margin-top: clamp(40px, 4.5vw, 64px); }

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
}


/* 11. TRIO --------------------------------------------------------------- */
.trio__head { row-gap: 28px; align-items: end; }
.trio__intro { align-self: end; }
@media (min-width: 900px) {
  .trio__title { grid-column: 1 / 8; }
  .trio__intro { grid-column: 8 / 13; }
}

.trio__list {
  list-style: none;
  margin-top: clamp(56px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}
@media (min-width: 760px) {
  .trio__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
}
.trio__item { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.trio__item .numeral { margin-bottom: clamp(24px, 3vw, 44px); }
.trio__item h3 { margin-bottom: 12px; font-size: clamp(24px, 1.4vw + 16px, 32px); }
.trio__item p { color: var(--ink-2); max-width: 26ch; }


/* adjacent paper sections: a smaller seam so the whitespace stays generous, not endless */
.trio + .editor,
.editor + .hub { padding-top: calc(var(--section-pad) * .6); }
.editor, .hub { scroll-margin-top: calc(var(--nav-h) - var(--section-pad) * .6 + 32px); }

/* 12. [A] THE EDITOR ------------------------------------------------------ */
.editor__head { margin-top: clamp(40px, 5vw, 72px); }
.editor__head h2 { max-width: 20em; }

.editor__body { margin-top: clamp(44px, 5vw, 72px); row-gap: 48px; align-items: start; }
@media (min-width: 900px) {
  .editor__text { grid-column: 1 / 6; }
  .editor__shot { grid-column: 6 / 13; }
}

.ticks {
  list-style: none;
  margin-top: clamp(32px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 28px;
}
@media (min-width: 480px) {
  .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ticks--one { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 13px; height: 9px;
  border-radius: 50%;
  background: var(--s1);
  transform: rotate(-20deg);
}
.ticks li:nth-child(6n+2)::before { background: var(--s2); }
.ticks li:nth-child(6n+3)::before { background: var(--s3); }
.ticks li:nth-child(6n+4)::before { background: var(--s4); }
.ticks li:nth-child(6n+5)::before { background: var(--s5); }
.ticks li:nth-child(6n+6)::before { background: var(--s6); }

.keys-wrap {
  margin-top: clamp(56px, 6vw, 96px);
  padding-block: 24px;
  border-block: 1px solid var(--rule-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 36px;
}
.keys { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 34px; }
.keys li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.keys__note { font: 400 13px/1.4 var(--font-mono); color: var(--ink-2); }
@media (max-width: 560px) {
  .keys { gap: 16px 24px; }
  .keys li { flex: 0 0 calc(50% - 12px); }
}

.callout {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px clamp(32px, 6vw, 96px);
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper-2);
  border-radius: var(--radius);
}
@media (min-width: 860px) {
  .callout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.callout__head .label { margin-bottom: 14px; color: var(--ink-2); }
.callout h3 { font-size: clamp(26px, 2.2vw + 14px, 40px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.callout__body p { color: var(--ink-2); max-width: 56ch; }
.callout__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.callout__tags span {
  padding: .35em .8em;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font: 500 13px/1.2 var(--font-mono);
  color: var(--ink);
}


/* 13. [B] HARMONY HUB ----------------------------------------------------- */
.hub__head { margin-top: clamp(40px, 5vw, 72px); }
.hub__title { grid-column: 1 / -1; }
.hub__title h2 { max-width: 12em; }
.hub__intro { margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) {
  .hub__intro { grid-column: 7 / 13; }
}

.spotlight { margin-top: clamp(72px, 9vw, 140px); }
.spotlight__text { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .spotlight__text { grid-column: 1 / 7; }
}
.spotlight__text .label { color: var(--ink-2); }
.spotlight__text .prose { color: var(--ink-2); }

/* the Score: engraved illustration. Compact: three staves on one shared timeline. */
.score { margin: clamp(32px, 4vw, 56px) 0 0; }
.score__panel {
  --score-bg: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 20px;
  padding: clamp(14px, 2.2vw, 32px) clamp(10px, 2.4vw, 36px);
  background: var(--score-bg);
}
.score__svg { display: block; width: 100%; height: auto; overflow: visible; }
.score__svg--narrow { display: none; max-width: 560px; margin-inline: auto; }
@media (max-width: 899px) {
  .score__svg--wide { display: none; }
  .score__svg--narrow { display: block; }
}
/* stroke widths are in viewBox units; each variant is tuned so lines land near 1px and slurs near 1.4px */
.score__svg--wide   { --sw-line: 1;    --sw-bar: 1.2; --sw-thick: 3.4; --sw-tie: 1.4;  --sw-stem: 1.2; --sw-hollow: 1.6; }
.score__svg--narrow { --sw-line: 1.25; --sw-bar: 1.5; --sw-thick: 4.2; --sw-tie: 1.75; --sw-stem: 1.5; --sw-hollow: 2; }

.score .sl { fill: none; stroke: var(--rule-2); stroke-width: var(--sw-line); }
.score .sys, .score .barline, .score .fbar { fill: none; stroke: var(--ink); stroke-width: var(--sw-bar); }
.score .barline--thick { stroke-width: var(--sw-thick); }
.score .lab { font-family: var(--font-mono); font-weight: 500; fill: var(--ink); }
.score .blu-t { fill: var(--s5); }
.score .vio-t { fill: var(--s6); }
.score .rel { fill: var(--score-bg); stroke: var(--ink); stroke-width: var(--sw-bar); }
.score .rel-t { font-family: var(--font-mono); font-weight: 500; fill: var(--ink); }
.score .tie { fill: none; stroke-width: var(--sw-tie); stroke-linecap: round; }
.score .tie.ink { stroke: var(--ink); }
.score .tie.blu { stroke: var(--s5); }
.score .tie.vio { stroke: var(--s6); }
.score .nh.ink { --c: var(--ink); }
.score .nh.blu { --c: var(--s5); }
.score .nh.vio { --c: var(--s6); }
.score .nh .head { fill: var(--c); stroke: var(--c); stroke-width: 1; }
.score .nh.hollow .head { fill: var(--score-bg); stroke-width: var(--sw-hollow); }
.score .nh .stem { fill: none; stroke: var(--c); stroke-width: var(--sw-stem); }

/* caption + legend */
.score__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
}
.score__legend { order: 2; display: inline-flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink); }
.lg { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lg__note { flex: none; width: 12px; height: 8px; border-radius: 50%; background: var(--ink); transform: rotate(-20deg); }
.lg__note--hollow { background: var(--paper); border: 1.5px solid var(--ink); }
.lg__bar { flex: none; width: 7px; height: 13px; border-inline: 1px solid var(--ink); }

/* draw-in: staff lines and curves draw, notes and labels fade in */
.score .sl, .score .tie { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .score .sl  { transition: stroke-dashoffset 1.5s cubic-bezier(.5, 0, .2, 1) var(--d, 0s); }
  .js .score .tie { transition: stroke-dashoffset var(--dur, 1.2s) cubic-bezier(.45, .05, .25, 1) var(--d, 0s); }
  .js .score:not(.is-in) .sl,
  .js .score:not(.is-in) .tie { stroke-dashoffset: 1; }

  .js .score .nh, .js .score .lab, .js .score .bar, .js .score .sys, .js .score .fbar {
    transition: opacity .6s ease var(--d, 0s), transform .6s var(--ease) var(--d, 0s);
  }
  .js .score:not(.is-in) .nh,
  .js .score:not(.is-in) .lab,
  .js .score:not(.is-in) .bar,
  .js .score:not(.is-in) .fbar,
  .js .score:not(.is-in) .sys { opacity: 0; }
  .js .score:not(.is-in) .nh { transform: translateY(6px); }
}

.spotlight__shot { margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) {
  .spotlight__shot { width: 82%; margin-left: auto; }
}

/* Hub + proposal: a staggered two-up */
.twoup {
  margin-top: clamp(72px, 9vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px var(--col-gap);
}
@media (min-width: 900px) {
  .twoup { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .twoup__a { grid-column: 1 / 8; }
  .twoup__b { grid-column: 8 / 13; margin-top: clamp(80px, 10vw, 160px); }
}

.features {
  list-style: none;
  margin-top: clamp(72px, 9vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--col-gap);
}
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 14px; }
.card p { color: var(--ink-2); font-size: 17px; line-height: 1.5; }


/* 14. UNDO ANYTHING ------------------------------------------------------- */
.safety { background: var(--paper-2); }
.safety__top { row-gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .safety__text { grid-column: 1 / 6; }
  .safety__shot { grid-column: 7 / 13; }
}
.safety .lede { margin-top: 28px; }

.timeline {
  list-style: none;
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
/* the single staff line the three notes sit on */
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: var(--ink);
}
.timeline__item { position: relative; padding-left: 44px; }
.timeline__item .notehead { position: absolute; left: 0; top: 7px; background: var(--s4); }
.timeline__item:nth-child(2) .notehead { background: var(--s5); }
.timeline__item:nth-child(3) .notehead { background: var(--s6); }
.timeline__item h3 { margin-bottom: 12px; font-size: clamp(26px, 1.6vw + 16px, 36px); letter-spacing: -.03em; font-weight: 800; }
.timeline__item p { color: var(--ink-2); max-width: 34ch; }

@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
  .timeline::before { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
  /* a closing double bar line at the right end of the line */
  .timeline::after {
    content: "";
    position: absolute;
    right: 0; top: -5px;
    width: 6px; height: 21px;
    border-inline: 1px solid var(--ink);
  }
  .timeline__item { padding: 48px 0 0; }
  .timeline__item .notehead { top: 0; }
}


/* 15. [C] CLAUDE ---------------------------------------------------------- */
.claude__grid { margin-top: clamp(40px, 5vw, 72px); row-gap: 56px; align-items: center; }
@media (min-width: 900px) {
  .claude__text { grid-column: 1 / 8; }
  .claude__shot { grid-column: 8 / 13; }
}
.claude__text h2 { max-width: 10em; }
.claude__text .prose { margin-top: clamp(24px, 3vw, 36px); }

/* the portrait panel: a tall frame overlapping a paper-2 block */
.stage {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 0;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0 0 0 clamp(28px, 12%, 64px);
  background: var(--paper-2);
  border-radius: 20px;
}
.claude__shot .window {
  position: relative;
  width: min(calc(100% - 44px), 380px);
  margin: 0;
}
.claude__shot .cap { margin-top: 20px; }

.trust {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px var(--col-gap);
}
@media (min-width: 620px)  { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust__item { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.trust dt { font: 700 19px/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 10px; }
.trust dd { color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }


/* 16. [D] UNISON (dark band) ---------------------------------------------- */
.unison {
  /* the shared components re-tint themselves through the tokens */
  --ink: var(--night-ink);
  --ink-2: var(--night-muted);
  --rule: var(--night-rule);
  --rule-2: rgba(230, 237, 243, .26);
  --code-bg: rgba(230, 237, 243, .1);
  --focus: var(--d5);

  position: relative;
  padding-block: var(--section-pad);
  background: var(--night);
  color: var(--night-ink);
  overflow-x: hidden;
  overflow-x: clip;
}
/* Harmony's spectrum: top edge of the dark band */
.unison::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--spectrum);
}
.unison ::selection { background: rgba(88, 166, 255, .3); color: var(--night-ink); }
.unison .lede { color: var(--night-ink); }
.unison .eyebrow { color: var(--night-ink); }

.unison__head h2 { max-width: 12em; }
.unison__head .lede { margin-top: clamp(28px, 3vw, 40px); max-width: 52ch; }

/* the giant stat, sitting on its own staff */
.stat {
  position: relative;
  margin-top: clamp(80px, 10vw, 160px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .stat { grid-template-columns: auto minmax(0, 1fr); }
}
.stat__staff {
  position: absolute;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  /* stacked layout: centred on the numerals, which are the first row */
  top: calc(clamp(96px, 16vw, 240px) * .41);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 900px) { .stat__staff { top: 50%; } }
.stat__staff .staff { --gap: 18px; }
@media (min-width: 600px)  { .stat__staff .staff { --gap: 24px; } }
@media (min-width: 900px)  { .stat__staff .staff { --gap: 32px; } }
@media (min-width: 1200px) { .stat__staff .staff { --gap: 40px; } }
@media (min-width: 1500px) { .stat__staff .staff { --gap: 46px; } }

.stat__num {
  position: relative;
  z-index: 1;
  font: 800 clamp(96px, 16vw, 240px)/.82 var(--font-display);
  letter-spacing: -.05em;
  font-variant-numeric: lining-nums;
  width: fit-content;
  color: var(--night-ink);               /* fallback */
  padding: .06em .06em .06em 0;
  margin: -.06em -.06em -.06em 0;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat__num {
    background: var(--spectrum);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.stat__text {
  position: relative;
  z-index: 1;
  max-width: 26em;
  font-size: clamp(19px, .9vw + 14px, 26px);
  line-height: 1.42;
  color: var(--night-ink);
  text-wrap: pretty;
}

/* the chart */
.chart-wrap { margin-top: clamp(80px, 10vw, 160px); }
.chart__note {
  margin-bottom: clamp(28px, 3vw, 44px);
  font: 400 13px/1.5 var(--font-mono);
  color: var(--ink-2);
  max-width: 70ch;
}
.chart { display: grid; gap: clamp(40px, 4.6vw, 64px); }

.chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.chart__repo { font: 700 clamp(22px, 1.4vw + 14px, 32px)/1.1 var(--font-display); letter-spacing: -.025em; }
.chart__repo small { margin-left: 12px; font: 400 13px var(--font-mono); letter-spacing: 0; color: var(--ink-2); }
.chart__gain { font: 700 clamp(18px, .8vw + 13px, 24px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--night-ink); }

.bar {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 40px;
}
.bar__label { font: 400 13px/1.2 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.bar--h .bar__label { color: var(--night-ink); font-weight: 500; }
.bar__track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar__fill {
  flex: none;
  height: 20px;
  width: calc((100% - 86px) * var(--p) / 100);
  background: var(--gh-border);
}
.bar__fill--2 { background: var(--gh-border-2); }
.bar__fill--h { background: var(--spectrum); }
.bar__val { flex: none; font: 400 13px/1 var(--font-mono); color: rgba(230, 237, 243, .78); }
.bar--h .bar__val { color: var(--d5); font-weight: 500; }

@media (max-width: 640px) {
  .bar { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .bar__fill { transition: width 1.5s var(--ease) calc(var(--i, 0) * 140ms); }
  .js .chart:not(.is-in) .bar__fill { width: 0; }
}

.chart__foot {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--night-muted);
  max-width: 62ch;
}

/* three movements */
.movements {
  margin-top: clamp(80px, 10vw, 160px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.movements__title {
  font-size: clamp(28px, 3vw + 8px, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 14em;
}
.movements__list {
  list-style: none;
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 900px) {
  .movements__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
}
.roman {
  display: block;
  margin-bottom: 8px;
  font: italic 400 clamp(64px, 6.4vw, 104px)/1 var(--font-serif);
  width: fit-content;
  color: var(--night-ink);               /* fallback */
  padding: .04em .14em .06em 0;
  margin-right: -.14em;
}
.movement h4 { margin-bottom: 14px; }
.movement p { color: var(--ink-2); font-size: 17px; line-height: 1.55; }

/* assurances + share dialog */
.assure { margin-top: clamp(80px, 10vw, 160px); row-gap: 56px; align-items: center; }
.assure__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule-2);
}
.assure__item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.assure dt { font: 700 clamp(20px, .6vw + 15px, 24px)/1.15 var(--font-display); letter-spacing: -.02em; margin-bottom: 8px; }
.assure dd { color: var(--ink-2); font-size: 17px; line-height: 1.5; }
@media (min-width: 560px) {
  .assure__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure__item:nth-child(odd)  { padding-right: clamp(20px, 3vw, 40px); }
  .assure__item:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .assure__list { grid-column: 1 / 8; }
  .assure__shot { grid-column: 9 / 13; }
}
.assure__shot { max-width: 480px; }
.window--night {
  border-color: rgba(230, 237, 243, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}

.unison__aside {
  margin-top: clamp(80px, 10vw, 160px);
  max-width: 22em;
  font: italic 400 clamp(28px, 3.4vw + 6px, 54px)/1.16 var(--font-serif);
  color: rgba(230, 237, 243, .8);
  text-wrap: balance;
}


/* 17. USE CASES ------------------------------------------------------------ */
.uc__head h2 { max-width: 12em; }

.uc__list {
  list-style: none;
  margin-top: clamp(56px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--rule-2);
}
@media (min-width: 900px) {
  .uc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc:nth-child(odd)  { padding-right: clamp(24px, 4vw, 64px); }
  .uc:nth-child(even) { padding-left: clamp(24px, 4vw, 64px); }
}
.uc {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 92px) minmax(0, 1fr);
  gap: 8px 16px;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--rule-2);
}
.numeral--ink {
  color: var(--s1);
  font-weight: 300;
  font-size: clamp(40px, 4.2vw, 56px);
  letter-spacing: -.02em;
}
.uc:nth-child(2) .numeral--ink { color: var(--s2); }
.uc:nth-child(3) .numeral--ink { color: var(--s3); }
.uc:nth-child(4) .numeral--ink { color: var(--s4); }
.uc:nth-child(5) .numeral--ink { color: var(--s5); }
.uc:nth-child(6) .numeral--ink { color: var(--s6); }
.uc h3 { margin-bottom: 10px; }
.uc p { color: var(--ink-2); max-width: 40ch; font-size: 17.5px; line-height: 1.5; }


/* 18. CLI ------------------------------------------------------------------ */
.cli { padding-top: 0; }
.cli__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
/* side by side only when the terminal fits without scrolling; below that it stacks */
@media (min-width: 1360px) {
  .cli__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .cli__text { grid-column: 1 / 7; }
  .term { grid-column: 7 / 13; max-width: none; }
}
.cli__text .prose { margin-top: clamp(24px, 3vw, 36px); }

.term {
  min-width: 0;
  max-width: 780px;
  background: var(--night);
  color: var(--night-ink);
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(28, 35, 48, .35);
  --focus: var(--d5);
}
.term ::selection { background: rgba(88, 166, 255, .3); color: var(--night-ink); }
.term__bar {
  display: flex;
  gap: 8px;
  padding: 15px 18px;
  background: var(--night-2);
  border-bottom: 1px solid var(--gh-border);
}
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--d1); }
.term__bar i:nth-child(2) { background: var(--d3); }
.term__bar i:nth-child(3) { background: var(--d4); }
.term__pre {
  margin: 0;
  padding: 26px 24px 30px;
  overflow-x: auto;
  font: 400 14px/1.95 var(--font-mono);
  tab-size: 2;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.term__pre code { padding: 0; background: none; font: inherit; overflow-wrap: normal; }
.t-p { color: var(--d4); user-select: none; -webkit-user-select: none; }
.t-c { color: var(--night-muted); }
.term__pre:focus-visible { outline-offset: -4px; }


/* 19. STAYS ON YOUR MACHINE -------------------------------------------------- */
.local {
  padding-block: clamp(48px, 6vw, 80px);
  background: var(--paper-2);
}
.local__label { margin-bottom: 28px; color: var(--ink-2); font-size: 12.5px; letter-spacing: .12em; font-family: var(--font-body); font-weight: 600; line-height: 1.2; }
.local__list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.local__list li {
  padding: 18px 0;
  border-top: 1px solid var(--rule-2);
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}
@media (min-width: 620px) {
  .local__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local__list li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule-2); }
  .local__list li:nth-child(odd) { padding-right: 28px; }
}
@media (min-width: 1000px) {
  .local__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .local__list li { padding: 4px 28px 4px 28px; border-top: 0; border-left: 1px solid var(--rule-2); }
  .local__list li:first-child { padding-left: 0; border-left: 0; }
  .local__list li:last-child { padding-right: 0; }
}


/* 20. CODA / DOWNLOAD --------------------------------------------------------- */
.coda { padding-bottom: clamp(64px, 8vw, 120px); }
.coda__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .coda__head { grid-template-columns: minmax(0, 1fr) auto; }
}
.coda__title {
  font-size: clamp(64px, 12.4vw, 208px);
  line-height: .9;
  letter-spacing: -.045em;
}
.coda .lede { margin-top: clamp(28px, 3vw, 44px); }
.coda__icon-wrap {
  position: relative;
  isolation: isolate;
  order: -1;
  width: clamp(88px, 9vw, 132px);
}
@media (min-width: 900px) { .coda__icon-wrap { order: 0; margin-top: 8px; } }
/* a soft spectrum glow behind the icon, echoing the icon's own glow */
.coda__icon-wrap::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: var(--spectrum);
  border-radius: 34%;
  filter: blur(30px);
  opacity: .4;
}
.coda__icon {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 26px rgba(28, 35, 48, .28));
}

/* Harmony's spectrum: under the Coda heading */
.spectrum-rule {
  height: 2px;
  margin-block: clamp(44px, 5.4vw, 80px);
  background: var(--spectrum);
}

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--col-gap);
}
@media (min-width: 760px) { .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dl__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: clamp(280px, 28vw, 380px);
  padding: clamp(24px, 3vw, 40px);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  transition: opacity .7s var(--ease) var(--rd), transform .7s var(--ease) var(--rd),
              background-color .25s ease, color .25s ease, border-color .25s ease;
}
.dl__card:focus-visible { outline-offset: 5px; border-radius: 20px; }
.dl__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; padding-bottom: 36px; }
.dl__os { fill: currentColor; }
.dl__arrow { color: var(--ink); transition: transform .3s var(--ease), color .25s ease; }
.dl__title { font: 800 clamp(30px, 3.2vw, 48px)/1 var(--font-display); letter-spacing: -.035em; }
.dl__text { max-width: 40ch; min-height: 4.5em; color: var(--ink-2); font-size: 17px; line-height: 1.5; transition: color .25s ease; }
.dl__card::before {                     /* a 2px spectrum line along the top edge on hover */
  content: "";
  position: absolute;
  top: -1.5px; left: 18px; right: 18px;
  height: 2px;
  background: var(--spectrum-ink);
  opacity: 0;
  transition: opacity .25s ease;
}
.dl__card:hover { background: var(--ink); color: #fff; }
.dl__card:hover::before { opacity: 1; }
.dl__card:hover .dl__text { color: rgba(255, 255, 255, .78); }
.dl__card:hover .dl__arrow { color: var(--s5); transform: translateY(5px); }

/* the end of the score: staff, final double bar, "Fine" */
.finale {
  position: relative;
  margin-top: clamp(80px, 10vw, 144px);
  padding-bottom: 44px;
}
.finale .staff { --rule: rgba(28, 35, 48, .3); width: calc(100% - 13px); }
.finale__bar { position: absolute; top: 0; height: 49px; background: var(--ink); }
.finale__bar--thin  { right: 9px; width: 1px; }
.finale__bar--thick { right: 0; width: 4px; }
.finale__fine {
  position: absolute;
  right: 0; top: 63px;
  font: italic 400 24px/1 var(--font-serif);
  color: var(--ink-2);
}


/* 21. FOOTER ------------------------------------------------------------------ */
.footer {
  padding: clamp(64px, 8vw, 112px) 0 40px;
  border-top: 1px solid var(--rule-2);
  color: var(--ink-2);
}
.footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px 64px;
}
.footer__logo { display: block; width: clamp(180px, 18vw, 240px); height: auto; color: var(--ink); }
.footer__line { margin-top: 28px; font-size: 18px; color: var(--ink-2); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.footer__nav a {
  padding: 6px 0;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--spectrum-ink) left bottom / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.footer__nav a:hover { background-size: 100% 2px; }
.footer__copy {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--ink-2);
}


/* 22. REDUCED MOTION ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  /* the noteheads rest where they were: no drift */
  .note { animation: none; transform: translate3d(var(--x), 0, 0); }
}
