:root {
  --paper: #ffffff;
  --paper-soft: #f8fbff;
  --paper-warm: #fffdf8;
  --ink: #15181d;
  --ink-soft: #66707d;
  --ink-faint: #8a93a1;
  --phrase: #5f7fd8;
  --phrase-deep: #2f4fa8;
  --breath: #8ed8cf;
  --expression: #c79a46;
  --technique: #b88cb5;
  --line: rgba(20, 24, 29, 0.1);
  --line-strong: rgba(20, 24, 29, 0.16);
  --panel: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 72px rgba(28, 39, 58, 0.11);
  --title: "Cormorant Garamond", Georgia, serif;
  --body: "Afacad", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(20, 24, 29, 0.026) 0,
      rgba(20, 24, 29, 0.026) 1px,
      transparent 1px,
      transparent 34px
    ),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 58%, var(--paper-soft) 100%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: grid;
  width: min(1120px, calc(100vw - 36px));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(219, 226, 239, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 42px rgba(28, 39, 58, 0.08);
  backdrop-filter: blur(18px);
  padding: 9px 10px 9px 16px;
}

.brand,
.nav-links,
.header-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-weight: 700;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(47, 79, 168, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(142, 216, 207, 0.88), rgba(199, 154, 70, 0.72)),
    #fff;
}

.nav-links {
  gap: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav-links a {
  border-radius: 999px;
  padding: 7px 12px;
}

.nav-links a:hover {
  background: rgba(142, 216, 207, 0.14);
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 15px;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  padding: 150px max(22px, calc((100vw - 1120px) / 2)) 96px;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.97) 31%, rgba(255, 255, 255, 0.7) 59%, rgba(255, 255, 255, 0.22) 100%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--phrase-deep);
  font-size: 15px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--title);
  font-weight: 600;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 68px;
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.15;
}

.hero-subtitle {
  width: min(620px, 100%);
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  padding: 14px 18px;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 34px rgba(21, 24, 29, 0.17);
}

.button.secondary {
  border: 1px solid rgba(47, 79, 168, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: var(--phrase-deep);
}

.button:hover {
  transform: translateY(-1px);
}

.microcopy {
  margin-top: 17px;
  color: var(--ink-faint);
  font-size: 15px;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.workspace {
  position: absolute;
  right: max(-80px, calc((100vw - 1120px) / 2 - 120px));
  bottom: 50px;
  width: min(870px, 70vw);
  min-width: 640px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 29, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.workspace-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.94);
  padding: 12px 14px;
}

.workspace-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d4d9e3;
}

.transport {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  min-height: 440px;
}

.score-area {
  padding: 34px 34px 40px;
}

.measure-label,
.mini-title {
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 700;
}

.staff-group,
.mini-staff {
  position: relative;
  height: 142px;
  margin-top: 32px;
}

.staff-group.compact {
  height: 120px;
  margin-top: 20px;
  opacity: 0.74;
}

.staff-line {
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: rgba(21, 24, 29, 0.24);
}

.bar {
  position: absolute;
  top: 0;
  width: 1px;
  height: 58px;
  background: rgba(21, 24, 29, 0.24);
}

.bar-a {
  left: 35%;
}

.bar-b {
  left: 70%;
}

.note,
.mini-note {
  position: absolute;
  width: 19px;
  height: 13px;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(-18deg);
}

.note::after,
.mini-note::after {
  position: absolute;
  right: 1px;
  bottom: 8px;
  width: 1px;
  height: 54px;
  background: var(--ink);
  content: "";
  transform: rotate(18deg);
  transform-origin: bottom;
}

.note-1 {
  left: 12%;
  top: 44px;
}

.note-2 {
  left: 24%;
  top: 30px;
}

.note-3 {
  left: 40%;
  top: 22px;
}

.note-4 {
  left: 55%;
  top: 34px;
}

.note-5 {
  left: 72%;
  top: 49px;
}

.note.low {
  top: 56px;
}

.phrase-arc,
.mini-arc {
  position: absolute;
  left: 10%;
  top: 2px;
  width: 56%;
  height: 44px;
  border-top: 2px solid var(--phrase);
  border-radius: 100% 100% 0 0;
}

.breath-point,
.mini-breath {
  position: absolute;
  top: -20px;
  left: 67%;
  border: 1px solid rgba(199, 154, 70, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.98);
  color: #8a6324;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.breath-point::after,
.mini-breath::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 76px;
  background: rgba(199, 154, 70, 0.46);
  content: "";
}

.dynamic-line {
  position: absolute;
  left: 18%;
  bottom: 6px;
  width: 52%;
  height: 2px;
  background: linear-gradient(90deg, var(--breath), var(--expression));
}

.guidance-panel {
  border-left: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.88);
  padding: 34px 24px;
}

.panel-kicker {
  margin-bottom: 10px;
  color: var(--expression);
  font-size: 14px;
  font-weight: 700;
}

.guidance-panel h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.guidance-panel p {
  color: var(--ink-soft);
}

.mini-task {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.mini-task strong,
.mini-task span {
  display: block;
}

.mini-task span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 15px;
}

.section {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 42px;
}

.section-heading p,
.prototype-copy p,
.join-copy p {
  color: var(--ink-soft);
  font-size: 20px;
}

.compact-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pain-grid article,
.approach-item {
  min-height: 230px;
  border: 1px solid rgba(20, 24, 29, 0.095);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 38px rgba(28, 39, 58, 0.045);
  padding: 22px;
}

.pain-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--phrase-deep);
  font-weight: 700;
}

.pain-grid p,
.approach-item p,
.prototype-notes p,
.prototype-notes li {
  color: var(--ink-soft);
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.approach-item {
  min-height: 180px;
}

.approach-item:nth-child(2) {
  border-color: rgba(142, 216, 207, 0.52);
}

.approach-item:nth-child(3) {
  border-color: rgba(199, 154, 70, 0.34);
}

.story-section {
  padding-top: 54px;
}

.story-card {
  border: 1px solid rgba(20, 24, 29, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.86)),
    var(--paper);
  box-shadow: 0 18px 52px rgba(28, 39, 58, 0.07);
  padding: 44px;
}

.story-card h2 {
  max-width: 680px;
}

.story-lead {
  width: min(760px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.story-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 24px;
}

.story-columns p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.heritage-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 44px;
}

.heritage-image-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 29, 0.105);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.heritage-score {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 50% 8%;
  opacity: 0.94;
  filter: contrast(1.04);
}

.heritage-image-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.48)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2));
  content: "";
  pointer-events: none;
}

.score-callout {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(20, 24, 29, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(28, 39, 58, 0.1);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 10px;
  backdrop-filter: blur(10px);
}

.callout-phrase {
  top: 28%;
  left: 14%;
  color: var(--phrase-deep);
}

.callout-style {
  top: 10%;
  right: 12%;
  color: var(--expression);
}

.callout-dynamic {
  right: 9%;
  bottom: 24%;
  color: #8a6324;
}

.callout-fingering {
  left: 13%;
  bottom: 12%;
  color: var(--ink-soft);
}

.heritage-copy p {
  color: var(--ink-soft);
  font-size: 20px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgba(47, 79, 168, 0.28);
  color: var(--phrase-deep);
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 2px;
}

.prototype-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 44px;
}

.prototype-copy {
  max-width: 440px;
}

.concept-note {
  border-left: 2px solid var(--breath);
  margin-top: 18px;
  color: var(--ink-faint) !important;
  font-size: 16px !important;
  padding-left: 14px;
}

.prototype-stage {
  border: 1px solid rgba(20, 24, 29, 0.105);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.prototype-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.mini-score {
  padding: 30px;
}

.mini-staff {
  height: 160px;
}

.mini-note.a {
  left: 14%;
  top: 54px;
}

.mini-note.b {
  left: 30%;
  top: 40px;
}

.mini-note.c {
  left: 48%;
  top: 28px;
}

.mini-note.d {
  left: 68%;
  top: 42px;
}

.mini-arc {
  left: 12%;
  width: 60%;
}

.mini-breath {
  left: 72%;
}

.timeline {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(95, 127, 216, 0.14);
}

.timeline span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--phrase), var(--breath));
}

.prototype-notes {
  border-left: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.84);
  padding: 16px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.mode-tab {
  border: 1px solid rgba(20, 24, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 8px;
}

.mode-tab.active {
  border-color: rgba(47, 79, 168, 0.2);
  background: rgba(142, 216, 207, 0.14);
  color: var(--phrase-deep);
}

.tab-panel {
  min-height: 208px;
  border: 1px solid rgba(20, 24, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 20px;
}

.tab-panel span {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.tab-panel h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

.tab-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.learn-card span {
  color: var(--phrase-deep);
}

.practice-card span {
  color: #557c75;
}

.perform-card span {
  color: var(--expression);
}

.research-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 44px;
  padding-bottom: 110px;
}

.join-copy {
  max-width: 470px;
}

.signup-form {
  border: 1px solid rgba(20, 24, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 52px rgba(28, 39, 58, 0.075);
  padding: 28px;
}

.field-row,
fieldset {
  margin: 0 0 18px;
}

label,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 24, 29, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

input[type="email"],
select {
  min-height: 46px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--phrase);
  outline: 3px solid rgba(95, 127, 216, 0.15);
}

fieldset {
  border: 0;
  padding: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.radio-grid {
  display: grid;
  gap: 9px;
}

.checkbox-grid label,
.radio-grid label,
.checkbox-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid rgba(20, 24, 29, 0.1);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.72);
  color: var(--ink-soft);
  font-weight: 600;
  padding: 10px;
}

input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--phrase-deep);
}

input[type="radio"] {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--phrase-deep);
}

.checkbox-option {
  margin: 4px 0 20px;
}

.full-width {
  width: 100%;
}

.form-note,
.form-status {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.inline-link,
.footer-link {
  color: var(--phrase-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status.is-success {
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.06);
  color: #166534;
  padding: 10px 12px;
}

.form-status.is-error {
  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 8px;
  background: rgba(185, 28, 28, 0.06);
  color: #991b1b;
  padding: 10px 12px;
}

.survey-next-step {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(47, 79, 168, 0.16);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.88);
  padding: 14px;
}

.survey-next-step[hidden] {
  display: none;
}

.survey-next-step strong,
.survey-next-step span {
  display: block;
}

.survey-next-step span {
  color: var(--ink-soft);
  font-size: 15px;
}

.turnstile-shell {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.turnstile-shell[hidden] {
  display: none;
}

.turnstile-widget {
  min-height: 66px;
}

.turnstile-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.survey-section {
  width: min(860px, calc(100vw - 36px));
  padding-top: 150px;
}

.survey-section .section-heading {
  margin-bottom: 28px;
}

.survey-prefill {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(47, 79, 168, 0.14);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.9);
  padding: 16px 18px;
}

.survey-prefill[hidden] {
  display: none;
}

.survey-prefill span {
  color: var(--ink-soft);
  font-size: 15px;
}

.inline-button {
  width: auto;
  min-height: 40px;
  justify-self: start;
  padding: 11px 14px;
}

.survey-section h1 {
  max-width: 780px;
  font-size: 58px;
}

.survey-form {
  box-shadow: var(--shadow);
}

.form-block-title {
  margin: 30px 0 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  padding-top: 22px;
}

.site-footer {
  display: flex;
  width: min(1120px, calc(100vw - 36px));
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 15px;
  padding: 28px 0 38px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .workspace {
    right: -260px;
    width: 780px;
    opacity: 0.42;
  }

  .hero::after {
    background: rgba(255, 255, 255, 0.86);
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 40px;
  }

  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach-list,
  .heritage-section,
  .prototype-section,
  .research-section {
    grid-template-columns: 1fr;
  }

  .story-columns {
    grid-template-columns: 1fr;
  }

  .prototype-copy,
  .heritage-copy,
  .join-copy {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    top: 10px;
    width: min(100vw - 20px, 1120px);
    padding-left: 12px;
  }

  .header-cta {
    font-size: 14px;
    padding: 8px 11px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 122px 18px 70px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  h2 {
    font-size: 34px;
    line-height: 1.06;
  }

  .hero-subtitle,
  .section-heading p,
  .prototype-copy p,
  .join-copy p {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .workspace {
    display: none;
  }

  .section {
    width: min(100vw - 28px, 1120px);
    padding: 66px 0;
  }

  .pain-grid,
  .approach-list {
    grid-template-columns: 1fr;
  }

  .story-card {
    padding: 28px;
  }

  .heritage-image-card {
    min-height: 430px;
  }

  .heritage-score {
    min-height: 430px;
  }

  .score-callout {
    font-size: 12px;
  }

  .pain-grid article,
  .approach-item {
    min-height: auto;
  }

  .pain-grid span {
    margin-bottom: 18px;
  }

  .prototype-layout {
    grid-template-columns: 1fr;
  }

  .prototype-notes {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .survey-section {
    width: min(100vw - 28px, 1120px);
    padding-top: 122px;
  }

  .survey-section h1 {
    font-size: 40px;
  }

  .site-footer {
    width: min(100vw - 28px, 1120px);
    flex-direction: column;
  }
}
