/* ==========================================================================
   Musical Horizons — styles
   --------------------------------------------------------------------------
   1. Palette & design tokens   (switch themes with <html data-palette="…">)
   2. Base
   3. Layout helpers
   4. Buttons & links
   5. Header / navigation
   6. Hero
   7. About & Mission
   8. Lesson plans
   9. Contact form
   10. Footer
   11. Motion & reveal
   12. Responsive
   ========================================================================== */

/* 1. Palette & design tokens ---------------------------------------------- */
:root {
  /* "noir": black, ivory and gold (default) */
  --ink: #0b0b0d;
  --ink-2: #121216;
  --ink-3: #1d1d23;
  --gold: #c9a45c;
  --gold-light: #e6cd94;
  --gold-deep: #86672c;          /* gold for text on light backgrounds (meets WCAG AA) */
  --gold-soft: rgba(201, 164, 92, 0.14);
  --ivory: #faf6ee;
  --sand: #f1e8d8;
  --white: #ffffff;
  --text: #1c1b1f;
  --text-muted: #55535c;
  --on-dark: #f4efe6;
  --on-dark-muted: #bdb7ac;
  --line: #e7decd;
  --danger: #a3302f;
  --danger-bg: #fbeceb;

  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(24, 18, 6, 0.05), 0 6px 16px -6px rgba(24, 18, 6, 0.08);
  --shadow: 0 2px 6px rgba(24, 18, 6, 0.05), 0 22px 44px -18px rgba(24, 18, 6, 0.2);
  --shadow-lg: 0 34px 70px -26px rgba(24, 18, 6, 0.34);

  --header-h: 76px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* One piano octave, tiled horizontally for keyboard motifs */
  --keys: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='100' viewBox='0 0 168 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e4d9c4'/%3E%3Cstop offset='1' stop-color='%23fbf7ef'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23040405'/%3E%3Cstop offset='1' stop-color='%23302f36'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='168' height='100' fill='url(%23w)'/%3E%3Cpath d='M0.6 0v100M24 0v100M48 0v100M72 0v100M96 0v100M120 0v100M144 0v100' stroke='%23b3a68f' stroke-width='1.2'/%3E%3Cg fill='url(%23b)'%3E%3Crect x='16.5' y='-4' width='15' height='66' rx='2'/%3E%3Crect x='40.5' y='-4' width='15' height='66' rx='2'/%3E%3Crect x='88.5' y='-4' width='15' height='66' rx='2'/%3E%3Crect x='112.5' y='-4' width='15' height='66' rx='2'/%3E%3Crect x='136.5' y='-4' width='15' height='66' rx='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* "navy": navy blue, ivory and gold */
[data-palette="navy"] {
  --ink: #0e1a30;
  --ink-2: #12213b;
  --ink-3: #1b2d4d;
  --text: #16203a;
  --text-muted: #4f5870;
  --on-dark-muted: #b8bfcd;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  overflow-x: clip;
  font-variant-numeric: lining-nums; /* Cormorant defaults to old-style figures */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul { margin: 0; padding: 0; }

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

::selection { background: var(--gold-light); color: var(--ink); }

[hidden] { display: none !important; }

section[id] { scroll-margin-top: var(--header-h); }

.sr-only {
  position: absolute !important;
  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;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* 3. Layout helpers ------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(5rem, 10vw, 8.5rem); }

.section-header {
  max-width: 44rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section-title {
  margin-top: 0.9rem;
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  color: var(--ink);
}

.section-title--sub { font-size: clamp(2.25rem, 4.4vw, 3.25rem); }

.section-lead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before,
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.ornament {
  display: block;
  width: 112px;
  height: 20px;
  margin-top: 1.4rem;
  background: var(--keys) left center / auto 100% repeat-x;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(134, 103, 44, 0.35);
}

/* 4. Buttons & links ------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1.1 var(--font-sans);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--lg { min-height: 56px; padding: 1rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 52%, #b38c3e 100%);
  color: #1b1408;
  box-shadow: 0 10px 26px -12px rgba(201, 164, 92, 0.75);
}
.btn--gold:hover { box-shadow: 0 16px 34px -12px rgba(201, 164, 92, 0.9); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(244, 239, 230, 0.32);
  color: var(--on-dark);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--dark {
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.6);
}
.btn--dark:hover { background: var(--ink-3); color: var(--gold-light); }

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--on-dark); }

.btn[disabled] { cursor: progress; opacity: 0.85; transform: none; }

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
}
.link-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover svg { transform: translateX(4px); }

/* 5. Header / navigation -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(201, 164, 92, 0.2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--on-dark);
  text-decoration: none;
}
.brand__mark { width: 36px; height: 36px; flex: none; color: var(--gold); }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 0.25rem; list-style: none; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--on-dark); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { min-height: 44px; padding: 0.7rem 1.35rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(244, 239, 230, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle__bar:nth-child(1) { top: 16px; }
.nav-toggle__bar:nth-child(2) { top: 22px; }
.nav-toggle__bar:nth-child(3) { top: 28px; }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  --keys-h: clamp(120px, 21vh, 200px);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2.5rem) 0 calc(var(--keys-h) + 1.5rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 42% at 50% 100%, rgba(201, 164, 92, 0.32), transparent 72%),
    radial-gradient(90% 70% at 50% -10%, var(--ink-3), transparent 70%);
}

.hero__arcs {
  position: absolute;
  left: 50%;
  bottom: calc(var(--keys-h) * 0.55);
  width: clamp(1000px, 115vw, 1900px);
  height: auto;
  max-width: none;
  color: var(--gold);
  transform: translateX(-50%);
}

.hero__staff {
  position: absolute;
  inset: 8% 0 auto;
  width: 100%;
  height: 72%;
  color: var(--gold);
  opacity: 0.22;
}
.hero__staff-lines path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 2.6s var(--ease) 0.2s both;
}
.hero__staff-notes { animation: fade-in 1.4s ease 1.6s both; }

.hero__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--keys-h) * 0.55);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 205, 148, 0.75) 50%, transparent);
}

.hero__keys {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: var(--keys-h);
  background: var(--keys) center bottom / auto 100% repeat-x;
  transform: perspective(380px) rotateX(46deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  opacity: 0.85;
}
.hero__keys::after {
  /* warm light falling across the keys */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 120% at 50% 0%, rgba(201, 164, 92, 0.35), rgba(11, 11, 13, 0.55) 80%);
  mix-blend-mode: multiply;
}

.hero__content { position: relative; max-width: 58rem; }

.hero__content > * { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 130ms + 150ms); }

.hero__eyebrow { color: var(--gold); }

.hero__title {
  margin-top: 1.4rem;
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f8f1e3;
  background: linear-gradient(180deg, #fffaf0 10%, #e8d3a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gold-light);
  text-wrap: balance;
}

.hero__lead {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  color: var(--on-dark-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.6rem;
}

/* 7. About & Mission ------------------------------------------------------ */
.about { padding-bottom: 0; background: var(--ivory); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.about__media {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
.about__media::before {
  /* offset gold frame behind the portrait */
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
}

.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(134, 103, 44, 0.22), var(--shadow-lg);
}
.portrait picture { display: block; height: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-bottom: 18%;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(201, 164, 92, 0.2), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink));
  color: var(--gold);
}
.portrait__monogram {
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  border: 1px solid rgba(201, 164, 92, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(201, 164, 92, 0.06), 0 0 0 11px rgba(201, 164, 92, 0.25);
}
.portrait__monogram span {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}
.portrait__caption {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.portrait__keys {
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: var(--keys) center bottom / auto 100% repeat-x;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
  opacity: 0.8;
}

.experience-badge {
  position: absolute;
  right: -2rem;
  bottom: 2.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 15.5rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.experience-badge__number {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-deep);
}
.experience-badge__label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.about__name {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.about__body {
  max-width: 36rem;
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-muted);
}

/* Mission: a distinct panel nested inside the About section */
.mission { margin-top: clamp(5rem, 10vw, 8rem); }

.mission__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4.5rem);
  border: 1px solid rgba(134, 103, 44, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    var(--sand);
  text-align: center;
}

.mission__decor {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 220px;
  max-width: none;
  color: var(--gold-deep);
  opacity: 0.16;
  pointer-events: none;
}

.mission__intro { position: relative; }

.mission__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
}
.mission__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission__statement {
  max-width: 50rem;
  margin: 1.6rem auto 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.values {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  list-style: none;
}
.values > li { display: flex; }

.value-card {
  flex: 1;
  padding: 2.25rem 1.75rem 2rem;
  border: 1px solid rgba(134, 103, 44, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.value-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(134, 103, 44, 0.25);
  color: var(--gold-deep);
}
.value-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-card__title { font-size: 1.65rem; color: var(--ink); }
.value-card p { margin-top: 0.6rem; font-size: 0.98rem; color: var(--text-muted); }

/* 8. Lesson plans --------------------------------------------------------- */
.lessons {
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--white) 30%, var(--white) 70%, var(--ivory) 100%);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 940px;
  margin: 0 auto;
}
.plans > div { display: flex; }

.plan {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.plan:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 92, 0.7);
  box-shadow: var(--shadow-lg);
}

.plan--featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffcf5, var(--white) 40%);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow);
}
.plan--featured:hover { box-shadow: 0 0 0 1px var(--gold), var(--shadow-lg); }

.plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.plan__name { font-size: clamp(1.85rem, 3vw, 2.25rem); color: var(--ink); }

.plan__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan__duration svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin-top: 1.6rem;
}
.plan__amount {
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--ink);
}
.plan__unit { font-weight: 600; color: var(--text-muted); }

.plan__desc { margin-top: 1.1rem; color: var(--text-muted); }

.plan__features {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 0.85rem;
  margin: 1.6rem 0 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan__features li { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 500; }
.plan__features svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plans__note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--text-muted);
}
.plans__note a {
  font-weight: 700;
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

/* Testimonials */
.testimonials {
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(255, 255, 255, 0.65), transparent 70%),
    var(--sand);
}

.testimonials__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4.5vw, 3.25rem) clamp(2rem, 4vw, 2.75rem);
  border: 1px solid rgba(134, 103, 44, 0.16);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.testimonial__mark {
  display: block;
  height: 2.6rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 600;
  line-height: 0.85;
  color: var(--gold);
}

.testimonial__quote { flex: 1; margin: 1rem 0 0; }
.testimonial__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.testimonial__author::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* A single testimonial is shown as one wide, centred feature quote */
.testimonial:only-child {
  justify-self: center;
  align-items: center;
  width: 100%;
  max-width: 54rem;
  text-align: center;
}
.testimonial:only-child .testimonial__quote p { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
.testimonial:only-child .testimonial__author::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* 9. Contact form --------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-dark);
}
.contact__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(201, 164, 92, 0.18), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(201, 164, 92, 0.08), transparent 70%);
}

.section-header--dark .eyebrow { color: var(--gold); }
.section-header--dark .section-title { color: #f8f1e3; }
.section-header--dark .section-lead { color: var(--on-dark-muted); }

.form-card {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  color: var(--text);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 164, 92, 0.35);
}

.form-note { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.req { color: var(--danger); font-weight: 700; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
}
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.field__optional { font-weight: 500; color: var(--text-muted); }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid #d8cdb9;
  border-radius: var(--radius-sm);
  outline: 2px solid transparent;
  background: var(--white);
  color: var(--text);
  font: 500 1rem/1.4 var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  padding-right: 2.75rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386672c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #bfae8f; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(163, 48, 47, 0.18); }

.field__error {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--danger);
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 1.5rem;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  background: var(--danger-bg);
  color: #6f1e1d;
  font-size: 0.94rem;
  font-weight: 500;
}
.form-status a { font-weight: 700; color: inherit; }

.form-footer { display: grid; gap: 1.1rem; margin-top: 1.75rem; }

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.form-privacy svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.form-success {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0.5rem;
  text-align: center;
  outline: none;
}
.form-success__icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
}
.form-success__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success__title { margin-top: 1.5rem; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--ink); }
.form-success__text {
  max-width: 28rem;
  margin: 0.75rem auto 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.contact__alt {
  margin-top: 2.25rem;
  text-align: center;
  color: var(--on-dark-muted);
}
.contact__alt a {
  font-weight: 700;
  color: var(--gold-light);
  text-underline-offset: 4px;
  word-break: break-word;
}

/* 10. Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink-2); color: var(--on-dark-muted); }

.footer__keys {
  height: 42px;
  background: var(--keys) center top / auto 100% repeat-x;
  opacity: 0.9;
  box-shadow: inset 0 6px 8px -4px rgba(0, 0, 0, 0.55);
}

.footer__inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding-block: 3.75rem 2.5rem;
  text-align: center;
}

.brand--footer .brand__name { font-size: 1.85rem; }

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0;
  margin-top: 0.75rem;
  list-style: none;
}
.footer__nav li { display: flex; align-items: center; }
.footer__nav li + li::before {
  content: "";
  width: 1px;
  height: 14px;
  margin-inline: 0.35rem;
  background: rgba(201, 164, 92, 0.45);
}
.footer__nav a {
  padding: 0.5rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s;
}
.footer__nav a:hover { color: var(--gold-light); }

.footer__email { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer__email svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.footer__email a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration-color: rgba(201, 164, 92, 0.6);
  text-underline-offset: 4px;
  word-break: break-word;
}
.footer__email a:hover { color: var(--gold-light); }

.footer__copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #958f85;
}

/* 11. Motion & reveal ----------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .plan:hover,
  .value-card:hover { transform: none; }
  .btn__spinner { animation: spin 1.6s linear infinite !important; }
}

/* 12. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    /* explicit height: the header's backdrop-filter makes it this panel's containing block */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    overflow-y: auto;
    padding: 1rem var(--gutter) 2rem;
    background: var(--ink);
    border-top: 1px solid rgba(201, 164, 92, 0.2);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }

  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    display: block;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--gold-light); }
  .nav__cta { min-height: 54px; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .about__text { text-align: center; }
  .about__text .ornament { margin-inline: auto; }
  .about__body { margin-inline: auto; }

  .values { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }

  .brand__name { font-size: 1.35rem; }
  .brand__mark { width: 32px; height: 32px; }

  .plans { grid-template-columns: 1fr; max-width: 30rem; gap: 2.75rem; }

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

@media (max-width: 520px) {
  .hero__eyebrow { gap: 0; font-size: 0.68rem; letter-spacing: 0.18em; }
  .hero__eyebrow::before,
  .hero__eyebrow::after { display: none; }

  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 20rem; margin-inline: auto; }

  .about__media::before { inset: 0.9rem -0.6rem -0.9rem 0.9rem; }
  .experience-badge { right: 0.5rem; bottom: -1.75rem; left: 0.5rem; max-width: none; justify-content: center; }
  .about__media { margin-bottom: 1.75rem; }

  .footer__nav li + li::before { display: none; }

  .testimonial__author { letter-spacing: 0.16em; }
  .testimonial__author::before,
  .testimonial__author::after { display: none; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .hero__title { -webkit-text-fill-color: currentColor; background: none; }
}
