:root {
  --stone: #d5d7d2;
  --stone-2: #c8cbc4;
  --ink: #121411;
  --mute: #5c635c;
  --ivory: #f3f1ea;
  --lacquer: #0a0c0b;
  --walnut: #2e211a;
  --moss: #1f3d34;
  --moss-bright: #2d5648;
  --line: rgba(18, 20, 17, 0.14);
  --line-light: rgba(243, 241, 234, 0.14);
  --font-display: "Literata", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Sora", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--moss);
  color: var(--ivory);
  padding: 0.55rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* —— HERO: static SVG piano, no JS required —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(2.2rem, 6vh, 4rem);
  overflow: hidden;
  color: var(--ivory);
  isolation: isolate;
  background: #070807;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 78% 12%, rgba(45, 86, 72, 0.35), transparent 62%),
    radial-gradient(ellipse 40% 30% at 12% 20%, rgba(74, 52, 40, 0.35), transparent 55%),
    linear-gradient(180deg, #1a1410 0%, #0b0c0b 38%, #080908 100%);
}
.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.piano-plane {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -2%;
  height: min(72vh, 760px);
  z-index: 1;
  transform: perspective(1400px) rotateX(14deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 -24px 50px rgba(0,0,0,0.55));
}

.piano-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.piano-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.18) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: sweep 8s var(--ease) infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
@keyframes sweep {
  0% { background-position: 130% 0; opacity: 0; }
  15% { opacity: 1; }
  55% { opacity: 1; }
  100% { background-position: -130% 0; opacity: 0; }
}

/* Light scrim — keys stay visible */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8,9,8,0.25) 0%, transparent 30%, rgba(8,9,8,0.15) 58%, rgba(8,9,8,0.72) 100%),
    linear-gradient(90deg, rgba(8,9,8,0.35) 0%, transparent 45%, rgba(8,9,8,0.2) 100%);
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--pad);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.86rem;
  font-weight: 500;
}
.nav-links a { opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  opacity: 1 !important;
  border: 1px solid rgba(243, 241, 234, 0.38);
  padding: 0.42rem 0.8rem;
  border-radius: 1px;
}

.hero-copy {
  position: relative;
  z-index: 10;
  max-width: 34rem;
  padding-top: 5.5rem;
  animation: rise 1.15s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 13vw, 7.8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.045em;
  margin: 0 0 1.05rem;
  color: var(--ivory);
  text-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  max-width: 18ch;
  margin: 0 0 0.95rem;
  color: rgba(243, 241, 234, 0.94);
}
.lede {
  margin: 0 0 1.7rem;
  color: rgba(243, 241, 234, 0.7);
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  max-width: 34ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 1px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ivory); color: var(--ink); }
.btn-solid:hover { background: #fff; }
.btn-line {
  border-color: rgba(243, 241, 234, 0.42);
  color: var(--ivory);
}
.btn-line:hover { border-color: rgba(243, 241, 234, 0.9); }

.section .btn-solid { background: var(--moss); color: var(--ivory); }
.section .btn-solid:hover { background: var(--moss-bright); }
.section .btn-line {
  border-color: rgba(18, 20, 17, 0.3);
  color: var(--ink);
}
.section .btn-line:hover { border-color: var(--ink); }

/* icons */
.ico {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--moss);
  margin-bottom: 0.65rem;
}
.ico svg { width: 100%; height: 100%; }
.ico-ink { color: rgba(243, 241, 234, 0.75); }

.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; position: relative; }
.wrap {
  width: min(980px, calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}
.wrap.narrow { width: min(640px, calc(100% - 2 * var(--pad))); }
.wrap.prose { width: min(820px, calc(100% - 2 * var(--pad))); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.3vw, 3.05rem);
  font-weight: 500;
  max-width: 16ch;
  margin: 0 0 1rem;
}
.support {
  color: var(--mute);
  max-width: 46ch;
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}

.section-stone {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(31, 61, 52, 0.1), transparent 55%),
    linear-gradient(180deg, var(--stone) 0%, var(--stone-2) 100%);
}
.section-stone::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.split { display: grid; gap: 2.5rem; }
@media (min-width: 720px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    border-top: 1px solid var(--line);
    padding-top: 2.25rem;
  }
}
.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.55rem;
}
.split-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.split p:last-child { color: var(--mute); max-width: 28ch; }
.split-accent .split-title { color: var(--moss); }

.section-ink {
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(45, 86, 72, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(74, 52, 40, 0.18), transparent 50%),
    var(--lacquer);
  color: var(--ivory);
}
.section-ink h2 { color: var(--ivory); }
.section-ink .support { color: rgba(243, 241, 234, 0.6); }

.steps { margin-top: 0.5rem; }
.steps li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.55rem 0;
  border-top: 1px solid var(--line-light);
  align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps .ico { margin: 0.15rem 0 0; width: 2rem; height: 2rem; }
.step-n {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: rgba(243, 241, 234, 0.4);
  line-height: 1;
  min-width: 2.4rem;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  color: var(--ivory);
}
.steps p { color: rgba(243, 241, 234, 0.6); max-width: 40ch; }

.ladder { border-top: 1px solid var(--line); }
.ladder li {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .ladder li {
    grid-template-columns: 7rem 11rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}
.ladder span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}
.ladder strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.ladder em { font-style: normal; color: var(--mute); }

.section-walnut {
  background:
    linear-gradient(180deg, rgba(46, 33, 26, 0.92), rgba(24, 16, 12, 0.96)),
    var(--walnut);
  color: var(--ivory);
}
.section-walnut h2 { color: var(--ivory); }
.section-walnut .support { color: rgba(243, 241, 234, 0.62); }
.section-walnut::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background: repeating-linear-gradient(
    93deg,
    transparent 0 10px,
    rgba(0,0,0,0.12) 10px 11px,
    transparent 11px 18px,
    rgba(255,255,255,0.03) 18px 19px
  );
}

.vision { border-top: 1px solid var(--line-light); position: relative; }
.vision li {
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.vision h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}
.vision p { color: rgba(243, 241, 234, 0.62); max-width: 46ch; }

.note {
  margin-top: 0.25rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--moss);
  color: var(--mute);
  max-width: 42ch;
}
.note strong { color: var(--ink); font-weight: 600; }

.section-cta {
  background:
    radial-gradient(ellipse 65% 70% at 100% 0%, rgba(31, 61, 52, 0.16), transparent 55%),
    linear-gradient(180deg, var(--stone-2), var(--stone));
}
.section-cta .cta-row { margin-top: 0.25rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--pad) 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.85rem;
  background: var(--stone);
}
.footer .nav-brand { color: var(--ink); font-size: 1.25rem; }
.footer p { margin: 0; max-width: 42ch; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .piano-plane { height: min(56vh, 480px); transform: perspective(1000px) rotateX(11deg); }
  .brand { font-size: clamp(3.7rem, 18vw, 5.2rem); }
  .steps li { grid-template-columns: auto 1fr; }
  .steps .ico { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-copy { animation: none; }
}
