:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --soft: #f1eee8;
  --ink: #211d1c;
  --muted: #6d6662;
  --burgundy: #741f32;
  --burgundy-dark: #531522;
  --coral: #c95745;
  --ochre: #c89735;
  --sage: #4e8068;
  --line: #ded9d2;
  --radius: 8px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(12px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--burgundy);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mark { display: grid; grid-template-columns: repeat(4, 4px); align-items: end; gap: 2px; height: 18px; }
.mark i { display: block; width: 4px; border-radius: 3px; background: var(--burgundy); }
.mark i:nth-child(1) { height: 10px; }
.mark i:nth-child(2) { height: 18px; opacity: 0.82; }
.mark i:nth-child(3) { height: 14px; opacity: 0.65; }
.mark i:nth-child(4) { height: 8px; opacity: 0.48; }
.site-header nav { display: flex; align-items: center; gap: 1.7rem; }
.site-header nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--burgundy); }
.site-header .nav-download {
  padding: 0.65rem 0.9rem;
  border-radius: 5px;
  background: var(--burgundy);
  color: white;
}
.site-header .nav-download:hover { background: var(--burgundy-dark); color: white; }

.hero {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--burgundy);
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
h1, h2, h3 { margin-top: 0; letter-spacing: -0.035em; }
h1 { margin-bottom: 0; font-size: clamp(4.4rem, 9.2vw, 7.55rem); line-height: 0.92; }
h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.02; }
h3 { letter-spacing: -0.02em; }
.hero-lede {
  max-width: 680px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  justify-self: end;
}
.hero-visual-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 16px 35px rgba(83, 21, 34, 0.25);
}
.choral-paw {
  position: relative;
  width: 72%;
  height: 70%;
  transform: translateY(-1%);
}
.paw-toe {
  position: absolute;
  display: grid;
  place-items: center;
  width: 21%;
  aspect-ratio: 0.78;
  border-radius: 50%;
  background: var(--paper);
  color: var(--burgundy);
  font-size: clamp(0.55rem, 1vw, 0.72rem);
  font-weight: 850;
}
.paw-toe-s { top: 12%; left: 0; transform: rotate(-24deg); }
.paw-toe-a { top: 0; left: 26%; transform: rotate(-8deg); }
.paw-toe-t { top: 1%; right: 25%; transform: rotate(9deg); }
.paw-toe-b { top: 15%; right: 0; transform: rotate(25deg); }
.paw-pad {
  position: absolute;
  left: 14%;
  bottom: 1%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  width: 72%;
  height: 53%;
  border-radius: 48% 48% 42% 42% / 52% 52% 38% 38%;
  background: var(--paper);
}
.paw-pad i {
  display: block;
  width: 7%;
  border-radius: 999px;
  background: var(--burgundy);
}
.paw-pad i:nth-child(1) { height: 28%; }
.paw-pad i:nth-child(2) { height: 48%; }
.paw-pad i:nth-child(3) { height: 70%; }
.paw-pad i:nth-child(4) { height: 52%; }
.paw-pad i:nth-child(5) { height: 34%; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--burgundy);
  border-radius: 5px;
  font-size: 0.77rem;
  font-weight: 800;
  text-decoration: none;
}
.button-primary { background: var(--burgundy); color: white; }
.button-primary:hover { background: var(--burgundy-dark); }
.button-secondary { color: var(--burgundy); }
.button-secondary:hover { background: rgba(116, 31, 50, 0.06); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 820px;
  margin: 4rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats div { padding: 1.1rem 1rem 0 0; }
.hero-stats dt { color: var(--muted); font-size: 0.72rem; }
.hero-stats dd { margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 750; }

.section { padding: clamp(4.5rem, 8vw, 7rem) max(24px, calc((100vw - var(--content)) / 2)); }
.section-heading { margin-bottom: 2.8rem; }
.section-heading > p:last-child { color: var(--muted); }
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 7vw;
  align-items: end;
}
.split-heading > p { max-width: 540px; margin: 0 0 0.2rem; }

.download-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.download-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.release-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem;
}
.release-kicker { color: var(--burgundy); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.release-summary h3 { margin: 0.3rem 0 0.15rem; font-size: 1.55rem; }
.release-summary p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.release-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.65rem; }
.release-status { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.7rem; border-top: 1px solid var(--line); background: var(--soft); }
.release-status > span { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }
.release-status p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.release-status.ready > span { background: var(--sage); }
.archive-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 0.8rem; }
.archive-heading h3 { margin: 0; font-size: 1rem; }
.archive-heading span { color: var(--muted); font-size: 0.75rem; }
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.download-card { min-width: 0; padding: 1.1rem; border-right: 1px solid var(--line); background: var(--paper); }
.download-card:last-child { border-right: 0; }
.download-card header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.download-card .part-number { color: var(--burgundy); font-size: 0.72rem; font-weight: 800; }
.download-card .part-size { color: var(--muted); font-size: 0.65rem; }
.download-card h3 { margin: 1rem 0 0.12rem; font-size: 1.03rem; }
.download-card p { margin: 0; color: var(--muted); font-size: 0.72rem; }
.download-card a, .download-card .disabled-link { display: inline-block; margin-top: 0.9rem; color: var(--burgundy); font-size: 0.67rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 0.07em; }
.download-card .disabled-link { color: #958d88; cursor: not-allowed; }
.download-meta { display: flex; justify-content: space-between; margin-top: 0.9rem; color: var(--muted); font-size: 0.72rem; }
.download-meta a { color: var(--burgundy); font-weight: 700; }

.demo-section { background: var(--paper); }
.demo-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: -1rem 0 2.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.demo-picker span { color: var(--burgundy); font-size: 0.69rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-picker select { width: 100%; padding: 0.62rem 2.4rem 0.62rem 0.75rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); cursor: pointer; }
.demo-picker select:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.demo-picker select:disabled { color: var(--muted); cursor: progress; }
.demo-work-heading { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: end; margin-bottom: 1rem; }
.demo-work-heading > div > span { color: var(--burgundy); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-work-heading h3 { margin: 0.2rem 0 0; font-size: 2.4rem; }
.demo-work-heading p { margin: 0; color: var(--muted); }
.demo-work-heading dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.demo-work-heading dl div { padding-left: 1rem; border-left: 1px solid var(--line); }
.demo-work-heading dt { color: var(--muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.07em; }
.demo-work-heading dd { margin: 0.2rem 0 0; font-size: 1rem; font-weight: 700; }
.demo-console { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.track-mixer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.mixer-labels p { margin: 0; font-size: 0.78rem; font-weight: 800; }
.mixer-labels span { color: var(--muted); font-size: 0.69rem; }
.track-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 0.4rem; }
.track-toggle { position: relative; display: block; cursor: pointer; }
.track-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.track-toggle span { display: block; padding: 0.55rem 0.35rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 0.68rem; font-weight: 800; text-align: center; }
.track-toggle input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.track-toggle input:checked + span { border-color: var(--track-color, var(--burgundy)); background: var(--track-color, var(--burgundy)); color: white; }
.transport { display: grid; grid-template-columns: auto 62px 1fr 62px; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.transport button { display: flex; align-items: center; gap: 0.55rem; min-width: 90px; padding: 0.62rem 0.8rem; border: 0; border-radius: 4px; background: var(--burgundy); color: white; cursor: pointer; }
.transport button:hover { background: var(--burgundy-dark); }
.transport button:disabled { background: #938b87; cursor: progress; }
.transport button span { font-size: 0.7rem; }
.transport button b { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.transport > span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.transport input { width: 100%; accent-color: var(--burgundy); cursor: pointer; }
.piano-roll-wrap { position: relative; min-height: 360px; padding: 0.7rem; overflow-x: auto; background: #2c2827; }
.piano-roll-wrap canvas { display: block; width: 100%; min-width: 720px; height: 360px; }
.roll-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,0.72); }
.roll-loading[hidden] { display: none; }
.roll-legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.3rem; align-items: center; padding: 0.75rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); background: #2c2827; color: rgba(255,255,255,0.76); font-size: 0.67rem; }
.roll-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.4rem; border-radius: 50%; background: var(--legend-color, var(--burgundy)); }
.roll-legend em { margin-left: auto; color: rgba(255,255,255,0.5); font-style: normal; }
.demo-details { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 0.8rem; margin-top: 0.8rem; }
.demo-details details, .alignment-summary { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.demo-details summary { color: var(--burgundy); cursor: pointer; font-size: 0.76rem; font-weight: 800; }
.demo-details dl { margin: 1rem 0 0; }
.demo-details dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.demo-details dt { color: var(--muted); font-size: 0.67rem; }
.demo-details dd { margin: 0; font-size: 0.67rem; text-align: right; }
.demo-details details p { margin-bottom: 0; font-size: 0.69rem; }
.alignment-summary { background: var(--burgundy); color: white; }
.alignment-summary span { font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.alignment-summary strong { display: block; margin-top: 0.8rem; font-size: 2.3rem; }
.alignment-summary p { margin: 0.15rem 0 0; color: rgba(255,255,255,0.74); font-size: 0.7rem; }
.demo-downloads { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 4rem; margin-top: 3rem; }
.demo-downloads h3 { margin: 0; font-size: 1.4rem; }
.demo-download-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.demo-download-list button { display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.7rem 0.4rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font-size: 0.7rem; text-align: left; cursor: pointer; }
.demo-download-list button:hover { color: var(--burgundy); }
.demo-download-list button:disabled { color: var(--muted); cursor: progress; }
.demo-download-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-download-list em { color: var(--muted); font-style: normal; text-transform: uppercase; }

.dataset-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.content-grid article { padding: 1.5rem; border-right: 1px solid var(--line); }
.content-grid article:last-child { border-right: 0; }
.content-grid span { color: var(--burgundy); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; }
.content-grid h3 { margin: 0.75rem 0 0.35rem; font-size: 1.1rem; }
.content-grid p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.folder-example { display: block; margin-top: 0.8rem; padding: 0.9rem 1rem; overflow-x: auto; border-radius: var(--radius); background: var(--soft); color: var(--muted); font-size: 0.7rem; white-space: nowrap; }

.catalog-heading { align-items: end; }
.search-box { position: relative; display: block; }
.search-box input { width: 100%; min-width: 280px; padding: 0.8rem 2rem 0.8rem 0; border: 0; border-bottom: 1px solid var(--ink); outline: none; background: transparent; }
.search-box input:focus { border-color: var(--burgundy); }
.search-box > span:last-child { position: absolute; right: 0.1rem; top: 0.55rem; color: var(--burgundy); font-size: 1.25rem; }
.catalog-table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th { padding: 0.75rem 0.65rem; color: var(--muted); font-size: 0.64rem; text-align: left; text-transform: uppercase; letter-spacing: 0.09em; }
td { padding: 0.82rem 0.65rem; border-top: 1px solid var(--line); font-size: 0.79rem; }
td:first-child { width: 68px; color: var(--burgundy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
td:nth-child(2) { font-weight: 650; }
td:not(:nth-child(2)) { color: var(--muted); }
.catalog-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; color: var(--muted); font-size: 0.74rem; }
.text-button { border: 0; background: none; color: var(--burgundy); cursor: pointer; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }

.cite-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 7vw; align-items: center; border-top: 1px solid var(--line); background: var(--soft); }
.citation-placeholder { padding: 1.4rem; border-left: 3px solid var(--burgundy); background: var(--surface); }
.citation-placeholder p { margin-top: 0; color: var(--muted); font-size: 0.8rem; }
.citation-placeholder code { display: block; overflow-wrap: anywhere; color: var(--burgundy); font-size: 0.74rem; }

footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 2rem; padding: 1.6rem max(24px, calc((100vw - var(--content)) / 2)); background: var(--ink); color: rgba(255,255,255,0.62); font-size: 0.7rem; }
.footer-mark { color: white; }
footer > p { text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 1.2rem; }
footer a { color: white; text-decoration: none; }

@media (max-width: 1208px) {
  .hero { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(210px, 260px); gap: 1.5rem; }
  .split-heading, .demo-work-heading, .cite-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .release-summary { align-items: flex-start; flex-direction: column; }
  .release-links { justify-content: flex-start; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card:nth-child(2) { border-right: 0; }
  .download-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-details { grid-template-columns: 1fr 1fr; }
  .alignment-summary { grid-column: 1 / -1; }
  .demo-downloads { grid-template-columns: 1fr; gap: 1rem; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer > p { margin: 0; }
  footer > div { justify-content: center; }
  .footer-mark { justify-self: center; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 62px; }
  .site-header { min-height: 62px; padding: 0 16px; }
  .site-header nav > a:not(.nav-download) { display: none; }
  .site-header nav { gap: 0; }
  .hero { padding: 4.5rem 20px 3rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(72vw, 280px); margin-top: 2.75rem; justify-self: center; }
  h1 { font-size: clamp(3.5rem, 19vw, 5rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
  .section { padding: 4rem 20px; }
  .release-links { width: 100%; }
  .release-links .button { width: 100%; }
  .archive-heading { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card, .download-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .download-card:last-child { border-bottom: 0; }
  .download-meta { flex-direction: column; gap: 0.4rem; }
  .demo-work-heading dl { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
  .demo-picker { grid-template-columns: 1fr; gap: 0.45rem; }
  .track-mixer { grid-template-columns: 1fr; }
  .track-controls { grid-template-columns: repeat(2, 1fr); }
  .track-toggle:first-child { grid-column: 1 / -1; }
  .transport { grid-template-columns: auto 1fr auto; }
  .transport input { grid-column: 1 / -1; grid-row: 2; }
  .transport > span:first-of-type { text-align: right; }
  .piano-roll-wrap { padding: 0.5rem; }
  .demo-details, .content-grid { grid-template-columns: 1fr; }
  .alignment-summary { grid-column: auto; }
  .content-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .content-grid article:last-child { border-bottom: 0; }
  .demo-download-list { grid-template-columns: 1fr; }
  .search-box input { min-width: 0; }
  .catalog-table-wrap th:nth-child(3), .catalog-table-wrap td:nth-child(3), .catalog-table-wrap th:nth-child(4), .catalog-table-wrap td:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
