/* =========================================================
   Wen Lim · Piano Teacher
   Scroll = time of day: dawn (top) → night (end).
   Shape rules: buttons are full-pill, cards 22px, photos are arches (top-rounded).
   Z-index scale: sky -2 · content 0 · gl particles 5 · staff cursor 6 · nav 20 · mobile menu 19
   ========================================================= */

:root {
  /* sky: driven by js/main.js as the scroll moves through the day */
  --sky-top: #f3cdb8;
  --sky-bot: #fbe9d6;
  --tree-far: #b9d2bf;
  --tree-near: #93b8a0;

  --ink: #1c3326;
  --ink-soft: #445c4d;
  --line: rgba(28, 51, 38, 0.16);
  --paper: rgba(255, 252, 242, 0.66);
  --paper-border: rgba(255, 255, 255, 0.55);

  --accent: #e8b04a;
  --accent-hover: #f2c065;
  --accent-ink: #22160a;

  --radius-card: 22px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-music: "Noto Music", "Segoe UI Symbol", serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sky-bot);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- world layers ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 78%);
  overflow: hidden;
}
.sky__sun,
.sky__moon {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  will-change: transform, opacity;
}
.sky__sun {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  background: radial-gradient(circle, #fffbe8 0 18%, rgba(255, 236, 170, 0.75) 30%, rgba(255, 214, 140, 0.25) 50%, transparent 70%);
}
.sky__moon {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  opacity: 0;
  background: radial-gradient(circle at 36% 34%, #fffdf0 0%, #efe9cf 55%, #d6cfb0 100%);
  box-shadow: 0 0 60px 18px rgba(255, 246, 214, 0.22), 0 0 160px 60px rgba(180, 200, 255, 0.08);
}
.treeline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.treeline--far { height: 24vh; fill: var(--tree-far); opacity: 0.4; }
.treeline--near { height: 13vh; fill: var(--tree-near); opacity: 0.55; }

#gl,
#staff {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#gl { z-index: 5; }
#staff { z-index: 6; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(100% - 28px, 1240px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  color: var(--nav-ink, #fdf8ea);
  background: rgba(20, 34, 26, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 40px rgba(20, 40, 30, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.nav.is-day { --nav-ink: var(--ink); background: rgba(255, 252, 242, 0.62); border-color: rgba(255, 255, 255, 0.6); }
.nav.is-dark { --nav-ink: #eef1e4; background: rgba(12, 18, 40, 0.5); border-color: rgba(255, 255, 255, 0.12); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__mark { font-family: var(--font-music); font-size: 1.4rem; line-height: 1; color: var(--accent); }
.nav__links { display: flex; gap: 0.25rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.nav__right { display: flex; align-items: center; gap: 0.5rem; }
.nav__time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 0.6rem;
  min-width: 7.5rem;
  opacity: 0.85;
  white-space: nowrap;
}
.nav__time i { font-size: 1.1rem; color: var(--accent); }
.nav__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.nav__icon:active { transform: scale(0.94); }
.nav__icon[aria-pressed="true"] { color: var(--accent); }
.nav__menu { display: none; }
.nav__cta { height: 44px; }

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover,
  .nav__icon:hover { background: rgba(255, 255, 255, 0.16); }
  .nav.is-day .nav__links a:hover,
  .nav.is-day .nav__icon:hover { background: rgba(28, 51, 38, 0.07); }
}

.mobile-menu {
  position: fixed;
  z-index: 19;
  top: 88px;
  left: 14px;
  right: 14px;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: var(--radius-card);
  background: rgba(255, 252, 242, 0.92);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(20, 40, 30, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 0.8rem 0.75rem; text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.mobile-menu .btn { margin-top: 0.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px rgba(160, 110, 20, 0.25);
}
.btn--ghost {
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.24); }
}

/* ---------- type ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.h2,
.approach__statement {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); padding-bottom: 0.1em; }
em { font-style: italic; }
.h2 em,
.hero__title em,
.approach__statement em { color: var(--em, #3f7a55); }
.is-night .h2 em { --em: #f3cf7d; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; }

/* split text (anime.js) */
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; will-change: transform, opacity; }
.js [data-split] { opacity: 0; }
.js [data-split].is-split { opacity: 1; }
.js .reveal { opacity: 0; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(6rem, 12vw, 10rem) 0; }
.is-night {
  --ink: #eef1e4;
  --ink-soft: #b9c3d2;
  --line: rgba(238, 241, 228, 0.22);
  --paper: rgba(14, 20, 44, 0.5);
  --paper-border: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

/* ---------- hero (dawn) ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fffaf0;
  overflow: clip;
}
.hero__media {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transform-origin: 55% 60%;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(10, 30, 20, 0.72) 0%, rgba(10, 30, 20, 0.35) 38%, transparent 62%),
    linear-gradient(180deg, rgba(10, 25, 18, 0.28) 0%, transparent 22%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin: 0 auto;
  padding-bottom: clamp(5rem, 14vh, 9rem);
}
.hero__eyebrow { opacity: 0.9; margin-bottom: 1.1rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  padding-bottom: 0.08em;
  text-shadow: 0 2px 30px rgba(10, 30, 20, 0.35);
}
.hero__title em { --em: #ffe1a1; display: block; }
.hero__sub {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255, 250, 240, 0.9);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__pause {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(5rem, 14vh, 9rem);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(10, 30, 20, 0.25);
  color: #fffaf0;
  font-size: 1.1rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.js .hero__eyebrow,
.js .hero__sub,
.js .hero__ctas > * { opacity: 0; }

/* ---------- about (morning) ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.arch { border-radius: 999px 999px var(--radius-card) var(--radius-card); overflow: hidden; }
.about__figure {
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 80px rgba(60, 90, 70, 0.25);
  border: 6px solid rgba(255, 252, 242, 0.7);
}
.about__figure img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.about__text { display: grid; gap: 1.4rem; max-width: 58ch; }
.about__text p:not(.lead) { color: var(--ink-soft); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2.5rem;
  margin-top: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.facts dt { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; font-weight: 600; }
.facts dd { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.35rem; }

/* ---------- approach (noon) ---------- */
.approach__statement {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  max-width: 22ch;
}
.stave {
  --stave-top: 90px;
  position: relative;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-left: clamp(4rem, 9vw, 8rem);
}
.stave__lines {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--stave-top);
  width: 100%;
  height: 200px;
  stroke: var(--ink);
  stroke-opacity: 0.28;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  overflow: visible;
}
.stave__lines line { vector-effect: non-scaling-stroke; }
.stave__clef {
  position: absolute;
  left: 0;
  top: calc(var(--stave-top) - 38px);
  font-family: var(--font-music);
  font-size: 196px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.8;
}
.principle {
  --y: 140;
  position: relative;
  padding-top: calc(var(--stave-top) + 250px);
}
.principle:nth-of-type(2) { --y: 40; }
.principle:nth-of-type(3) { --y: 100; }
.principle__head {
  position: absolute;
  left: 8px;
  top: calc(var(--stave-top) + var(--y) * 1px - 17px);
  width: 46px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  transform: rotate(-22deg);
}
.principle__head::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 50%;
  width: 3px;
  height: 128px;
  background: var(--ink);
  transform: rotate(22deg);
  transform-origin: bottom center;
}
.principle h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.15; }
.principle p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 30ch; }

/* ---------- lessons (afternoon) ---------- */
.bento {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: minmax(280px, auto) minmax(300px, auto);
  gap: 1rem;
}
.cell {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--paper-border);
  background: var(--paper);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px rgba(120, 90, 40, 0.14);
}
.cell__body { position: relative; padding: clamp(1.4rem, 2.5vw, 2rem); display: grid; gap: 0.45rem; }
.cell h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.05; }
.cell__meta { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.8; }
.cell__price { margin-top: 0.4rem; font-weight: 600; }
.cell--a { grid-row: 1 / 3; }
.cell--b { grid-column: 2 / 4; }
.cell--photo { color: #fffaf0; border-color: rgba(255, 255, 255, 0.35); }
.cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.cell--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 28, 18, 0.78) 100%);
}
.cell--photo .cell__body { z-index: 2; }
.cell--a .cell__body p:not(.cell__meta):not(.cell__price) { max-width: 36ch; opacity: 0.92; }
.cell--glow {
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 214, 140, 0.95) 0%, transparent 60%),
    radial-gradient(80% 120% at 0% 100%, rgba(240, 160, 120, 0.55) 0%, transparent 65%),
    rgba(255, 244, 222, 0.8);
}
.cell--glow .cell__body { max-width: 48ch; }
.cell--staff {
  align-items: flex-start;
  background:
    repeating-linear-gradient(180deg, rgba(28, 51, 38, 0.22) 0 1px, transparent 1px 14px) 0 calc(100% - 22px) / 100% 57px no-repeat,
    rgba(250, 252, 240, 0.72);
}
.cell--staff .cell__body { padding-bottom: 96px; }
@media (hover: hover) and (pointer: fine) {
  .cell--photo:hover img { transform: scale(1.04); }
}

/* ---------- voices (golden hour) ---------- */
.voices { position: relative; overflow: hidden; }
.voices__track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  min-height: 100dvh;
  padding: 7rem max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  width: max-content;
  will-change: transform;
}
.voices__intro { width: min(380px, 80vw); flex-shrink: 0; display: grid; gap: 1rem; }
.voices__intro p { color: var(--ink-soft); font-size: 1.1rem; }
.quote {
  flex-shrink: 0;
  width: clamp(300px, 32vw, 440px);
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border-radius: var(--radius-card);
  background: rgba(255, 246, 228, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 24px 60px rgba(150, 80, 30, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.quote:nth-of-type(odd) { translate: 0 -2.5rem; }
.quote:nth-of-type(even) { translate: 0 2rem; }
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.3;
  padding-bottom: 0.1em;
}
.quote figcaption { display: grid; gap: 0.1rem; font-size: 0.95rem; }
.quote figcaption span { color: var(--ink-soft); }
.quote--photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 999px 999px 14px 14px;
}

/* ---------- journey (dusk) ---------- */
.journey__title { text-align: center; }
.journey__body { position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
.journey__svg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 100%;
  translate: -50% 0;
  overflow: visible;
  fill: none;
  stroke: #f3cf7d;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.milestones { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  min-height: 120px;
}
.milestone__note {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--font-music);
  font-size: 1.8rem;
  line-height: 1;
  color: #1a1633;
  background: #f3cf7d;
  box-shadow: 0 0 0 8px rgba(243, 207, 125, 0.16), 0 0 40px rgba(243, 207, 125, 0.45);
  z-index: 1;
}
.milestone__text { grid-row: 1; max-width: 34ch; }
.milestone:nth-child(odd) .milestone__text { grid-column: 1; justify-self: end; text-align: right; }
.milestone:nth-child(even) .milestone__text { grid-column: 3; justify-self: start; }
.milestone h3 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1.1; color: #f3cf7d; }
.milestone p { margin-top: 0.3rem; color: var(--ink-soft); }

/* ---------- contact (night) ---------- */
.contact { padding-bottom: clamp(8rem, 16vw, 12rem); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact__intro { display: grid; gap: 1.5rem; }
.contact__intro .lead { color: var(--ink-soft); max-width: 40ch; }
.contact__list { display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.contact__list li { display: flex; align-items: center; gap: 0.8rem; font-size: 1.05rem; }
.contact__list i { font-size: 1.35rem; color: #f3cf7d; }
.contact__list a { text-decoration: none; border-bottom: 1px solid rgba(243, 207, 125, 0.45); }

.form {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  background: rgba(14, 20, 44, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 20, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.form__fields { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.95rem; font-weight: 500; color: #dfe5d6; }
.field__opt { font-weight: 400; color: #a9b3c4; margin-left: 0.35rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #f4f6ee;
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #dfe5d6 50%), linear-gradient(135deg, #dfe5d6 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #111; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: #f3cf7d; background: rgba(255, 255, 255, 0.11); box-shadow: 0 0 0 3px rgba(243, 207, 125, 0.25); }
.field input[aria-invalid="true"] { border-color: #ff9d8a; }
.field__error { font-size: 0.9rem; color: #ffb4a4; }
.form .btn { margin-top: 0.4rem; }
.form__success { display: grid; gap: 0.6rem; justify-items: start; padding: 2rem 0; outline: none; }
.form__success[hidden] { display: none; }
.form__success-note { font-family: var(--font-music); font-size: 3rem; line-height: 1; color: #f3cf7d; }
.form__success-title { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; font-weight: 600; }
.form__success p:last-child { color: var(--ink-soft); }
.burst {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-music);
  color: #f3cf7d;
  font-size: 1.6rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(243, 207, 125, 0.7);
}

/* ---------- footer ---------- */
.footer { padding: 2rem 0 2.5rem; font-size: 0.95rem; color: #b9c3d2; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.footer__top { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #eef1e4; }
.footer__top i { color: #f3cf7d; font-size: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: grid; }
}
@media (max-width: 767px) {
  .nav { height: 58px; top: 10px; padding-left: 16px; }
  .nav__time,
  .nav__cta { display: none; }
  .mobile-menu { top: 78px; }
  .btn { height: 50px; }

  .hero__content { padding-bottom: 6.5rem; }
  .hero__pause { bottom: 1.5rem; }
  .hero__media video { object-position: 62% 50%; }

  .about__grid { grid-template-columns: 1fr; }
  .about__figure { max-width: 420px; }
  .facts { grid-template-columns: repeat(3, auto); gap: 1.25rem; }
  .facts dt { font-size: 1.9rem; }

  .stave { grid-template-columns: 1fr; padding-left: 0; gap: 2.5rem; }
  .stave__lines,
  .stave__clef { display: none; }
  .principle { padding-top: 0; padding-left: 70px; }
  .principle__head { top: 6px; left: 0; width: 40px; height: 30px; }
  .principle__head::after { height: 60px; }

  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .cell--a,
  .cell--b { grid-row: auto; grid-column: auto; }
  .cell--a { min-height: 420px; }
  .cell--d { min-height: 280px; }

  .voices__track {
    width: 100%;
    min-height: 0;
    padding: 5rem var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    align-items: stretch;
  }
  .voices__track::-webkit-scrollbar { display: none; }
  .voices__intro,
  .quote { scroll-snap-align: start; }
  .quote { width: 82vw; translate: none !important; }

  .journey__svg { left: 0; translate: none; width: 72px; }
  .milestone { grid-template-columns: 72px 1fr; column-gap: 1rem; }
  .milestone__note { grid-column: 1; width: 52px; height: 52px; font-size: 1.5rem; }
  .milestone:nth-child(odd) .milestone__text,
  .milestone:nth-child(even) .milestone__text { grid-column: 2; justify-self: start; text-align: left; }
  .journey__title { text-align: left; }

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

@media (prefers-reduced-transparency: reduce) {
  .nav, .cell, .quote, .form, .mobile-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cell, .quote { background: #fbf6e8; }
  .form { background: #121a36; }
}
@media (prefers-reduced-motion: reduce) {
  .cell--photo img { transition: none; }
}
