/* ====================================================================
   Ms Van - Piano Lessons - stylesheet
   The whole page is one pastel sky, exactly like Van's colour theme
   photo: cornflower blue at the top drifting down through periwinkle,
   lilac and mauve to pink. Content floats on it like white clouds,
   and little musical touches (a playable piano, a travelling note on
   a staff, notes that pop from buttons) carry the piano theme.
   EDIT: To change a colour everywhere at once, edit the values below.
   ==================================================================== */

:root {
  /* Palette: the six values below are sampled pixel-for-pixel from the
     swatches in "Colour theme for website.JPG" (left to right). */
  --blue:        #7da2d9;   /* swatch 1, cornflower blue */
  --periwinkle:  #bfc3e9;   /* swatch 2 */
  --lilac:       #d7c8e8;   /* swatch 3 */
  --mauve:       #dec4e2;   /* swatch 4 */
  --pink:        #e7b4d3;   /* swatch 5 (swatch 6 #e7b6d4 is near identical) */
  /* Darker companions of the swatch hues, needed so text and buttons
     stay readable on the sky. */
  --blue-deep:   #46679c;   /* buttons and links    */
  --ink:         #2f3659;   /* headings             */
  --pink-deep:   #a94f84;   /* small accents        */
  --butter:      #fdf3d5;   /* soft yellow accent   */
  --butter-deep: #6b5416;
  --text:        #3f4566;
  --text-soft:   #4d537a;
  --line:        #e3dff2;

  /* Soft, self-contained map colours. */
  --map-land:    #f4f1eb;
  --map-water:   #cfe5ef;
  --map-park:    #e3eddf;
  --map-park-text: #6b8267;
  --map-water-text: #547c96;
  --map-road:    #ffffff;
  --map-road-edge: #d8d5cf;
  --map-street:  #e4e1dc;
  --map-label-soft: #77746e;
  --map-gold:    #d8a63f;
  --map-gold-light: #f6d98a;

  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body:    'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-script:  'Great Vibes', 'Snell Roundhand', cursive;

  --card: #ffffff;
  --shadow-card: 0 16px 40px rgba(73, 58, 121, .16);
  --shadow-lift: 0 24px 54px rgba(73, 58, 121, .22);
}

/* ---- Base --------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* keeps section headings visible under the sticky menu */
  background: #ecc0da;      /* matches the very bottom of the sky */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  /* The sky: one continuous gradient from the theme swatches. */
  background: linear-gradient(180deg,
    #7da2d9 0%,
    #bfc3e9 15%,
    #d7c8e8 36%,
    #dec4e2 56%,
    #e7b4d3 78%,
    #ecc0da 100%);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); }

::selection { background: rgba(255, 255, 255, .75); color: var(--ink); }

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

/* The mouse pointer becomes a little music symbol over anything you can
   press. This rule is the fallback; js/main.js picks a different random
   symbol (quaver, note pair, semiquaver pair, sharp or flat) every time
   the pointer arrives on something new. */
a, button, .btn, .pk, .shot,
.site-nav a, .nav-toggle, .faq-question, .staff-bar {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M12 22V6l9-2v13' fill='none' stroke='white' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/><path d='M12 22V6l9-2v13' fill='none' stroke='%232f3659' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/><circle cx='9' cy='22' r='4.8' fill='white'/><circle cx='18' cy='17.2' r='4.8' fill='white'/><circle cx='9' cy='22' r='3.2' fill='%232f3659'/><circle cx='18' cy='17.2' r='3.2' fill='%232f3659'/></svg>") 9 22, pointer;
}
/* Stars, notes and tiny pianos that tumble when you scroll quickly */
.fall-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.fall-bit {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  animation: fall-down var(--fall-time, 3s) ease-in forwards;
}
.fall-bit svg { display: block; width: 100%; height: 100%; }
.fall-bit.fall-piano { filter: drop-shadow(0 3px 4px rgba(47, 54, 89, .25)); }
@keyframes fall-down {
  0%   { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(0deg); }
  12%  { opacity: var(--fall-op, .75); }
  80%  { opacity: var(--fall-op, .75); }
  100% { opacity: 0; transform: translate(calc(var(--fx) + var(--sway, 30px)), calc(var(--fy) + 46vh)) rotate(var(--spin, 60deg)); }
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding: 5.5rem 0; position: relative; }
.section-tint { background: transparent; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 12px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- Typography helpers ------------------------------------------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .6rem;
  opacity: .85;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 em { font-style: italic; color: #3b5a94; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.7;
}

.script-accent {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--blue-deep);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .9), 0 1px 2px rgba(255, 255, 255, .95);
  margin: .4rem 0 0;
  line-height: 1.2;
}

/* The little staff-and-note ornament above each section heading.
   The note gently drops onto the staff when the section appears. */
.ornament { display: block; width: 118px; height: 26px; margin: 0 0 .7rem; overflow: visible; }
.orn-lines path { stroke: rgba(47, 54, 89, .30); stroke-width: 1; }
.orn-note ellipse { fill: var(--pink-deep); }
.orn-note .orn-stem { stroke: var(--pink-deep); stroke-width: 2.2; fill: none; stroke-linecap: round; }
html.js .orn-note { opacity: 0; transform: translateY(-9px); transition: opacity .5s ease .25s, transform .6s cubic-bezier(.34, 1.56, .64, 1) .25s; }
html.js .ornament.played .orn-note { opacity: 1; transform: none; }

/* Shared style for the small inline icons (SVG only, no emoji) */
.chip-icon, .medal-icon, .trial-icon, .where-icon, .contact-icon, .fact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chip-icon svg, .medal-icon svg, .trial-icon svg,
.where-icon svg, .contact-icon svg, .fact-icon svg { width: 22px; height: 22px; }

/* ---- Buttons: gradient keys that press like piano keys ------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: linear-gradient(115deg, #46679c, #6f5daa 48%, #a94f84);
  background-size: 190% 190%;
  background-position: 0% 50%;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(80, 68, 140, .35), inset 0 -3px 0 rgba(30, 25, 70, .25);
  transition: background-position .5s ease, transform .18s ease, box-shadow .25s ease;
}
.btn:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(80, 68, 140, .42), inset 0 -3px 0 rgba(30, 25, 70, .25);
}
/* pressing a button dips like a piano key */
.btn:active {
  transform: translateY(2px) scale(.985);
  box-shadow: 0 4px 12px rgba(80, 68, 140, .35), inset 0 -1px 0 rgba(30, 25, 70, .25);
}

.btn .btn-note { width: 15px; height: 15px; flex-shrink: 0; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.btn:hover .btn-note { transform: rotate(-14deg) translateY(-1px) scale(1.15); }

.btn-ghost {
  background:
    linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .92)) padding-box,
    linear-gradient(115deg, var(--blue), var(--pink)) border-box;
  border: 2px solid transparent;
  color: var(--blue-deep);
  box-shadow: 0 8px 22px rgba(80, 68, 140, .18);
}
.btn-ghost:hover {
  background:
    linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)) padding-box,
    linear-gradient(115deg, var(--blue), var(--pink)) border-box;
  transform: translateY(-2px);
}

.btn-tertiary {
  padding-inline: 1.25rem;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(70, 103, 156, .38);
  color: var(--blue-deep);
  box-shadow: 0 5px 14px rgba(80, 68, 140, .12), inset 0 -2px 0 rgba(70, 103, 156, .12);
}
.btn-tertiary:hover {
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 8px 18px rgba(80, 68, 140, .18), inset 0 -2px 0 rgba(70, 103, 156, .12);
}

.btn-small { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-full { width: 100%; }

/* Little notes that pop out of a button when it is clicked */
.note-burst {
  position: absolute;
  top: 0;
  left: 50%;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  animation: note-pop .9s ease-out forwards;
}
.note-burst svg { width: 14px; height: 14px; }
@keyframes note-pop {
  0%   { opacity: .95; transform: translate(-50%, -30%) scale(.5) rotate(0deg); }
  100% { opacity: 0;   transform: translate(calc(-50% + var(--dx, 0px)), -320%) scale(1.05) rotate(var(--rr, 14deg)); }
}

/* ---- Sydney Harbour backdrop ---------------------------------------
   Sits behind the header and the top of the hero. The photo is blurred a
   little and covered by a white wash, so the navy logo, the pink logo line
   and the dark welcome text all keep plenty of contrast. To swap the photo,
   replace website/images/bg-sydney-harbour.jpg (same file name). */
.harbour-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(430px, 66vh, 780px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.harbour-backdrop::before,
.harbour-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
}
.harbour-backdrop::before {
  background: url('../images/bg-sydney-harbour.jpg') center 38% / cover no-repeat;
  opacity: .6;
  filter: blur(2px) saturate(.9);
  transform: scale(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 44%, rgba(0, 0, 0, .3) 78%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 44%, rgba(0, 0, 0, .3) 78%, transparent 97%);
}
/* the white wash that keeps the text readable */
.harbour-backdrop::after {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, .58) 0%,
      rgba(255, 255, 255, .34) 42%,
      rgba(255, 255, 255, .12) 72%,
      rgba(255, 255, 255, .06) 100%),
    linear-gradient(180deg,
      rgba(255, 255, 255, .46) 0%,
      rgba(255, 255, 255, .20) 34%,
      rgba(228, 226, 245, .22) 72%,
      rgba(228, 226, 245, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 97%);
}
@media (max-width: 880px) {
  /* On a phone the text runs the full width, so the wash becomes a plain
     top-to-bottom one and the photo is allowed to show a little more. */
  .harbour-backdrop { height: clamp(390px, 54vh, 580px); }
  .harbour-backdrop::before { background-position: center 46%; opacity: .62; }
  .harbour-backdrop::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .46) 0%,
      rgba(255, 255, 255, .30) 38%,
      rgba(228, 226, 245, .24) 74%,
      rgba(228, 226, 245, 0) 100%);
  }
}

/* ---- Header and menu ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(73, 58, 121, .16); background: rgba(255, 255, 255, .88); }

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .65rem clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
}
.brand-logo { width: 100%; height: 100%; overflow: visible; }
/* the logo comes alive on hover: the cloud drifts, the note bobs */
.brand-logo .lg-cloud, .brand-logo .lg-note {
  transform-box: fill-box;
  transform-origin: center;
}
.brand:hover .brand-logo .lg-cloud,
.brand:focus-visible .brand-logo .lg-cloud {
  animation: logo-cloud 2.6s ease-in-out infinite alternate;
}
.brand:hover .brand-logo .lg-note,
.brand:focus-visible .brand-logo .lg-note {
  animation: logo-note 1.1s ease-in-out infinite alternate;
}
@keyframes logo-cloud {
  from { transform: translate(0, 0); }
  to   { transform: translate(5px, -1.5px); }
}
@keyframes logo-note {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-2.5px) rotate(-7deg); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.brand-sub  { font-size: .58rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--pink-deep); margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 1.55rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; transition: color .2s ease; }
.site-nav a:not(.btn) { position: relative; padding-bottom: 2px; }
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--pink-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn).active::after { transform: scaleX(1); }
.site-nav .btn-small { color: #fff; }

/* A little friend pops up over each menu link on hover */
.nav-peek {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 3px);
  width: 26px;
  height: 21px;
  opacity: 0;
  transform: translate(-50%, 55%);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .18s ease;
  pointer-events: none;
}
.nav-peek svg { display: block; width: 100%; height: 100%; }
.site-nav a:not(.btn):hover .nav-peek,
.site-nav a:not(.btn):focus-visible .nav-peek {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-toggle { display: none; }

/* The reading sheet under the header: a treble clef and five faint
   lines. Notes leap onto the sheet as you scroll down (with a tiny
   sparkle as they land) and hop off again as you scroll back up. */
.scroll-staff {
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 40px;
  pointer-events: none;
}
.scroll-staff::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background:
    repeating-linear-gradient(to bottom,
      rgba(47, 54, 89, .15) 0 1px,
      transparent 1px 4.4px),
    rgba(255, 255, 255, .55);
  background-position: 0 2px, 0 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 54, 89, .10);
}
.staff-clef {
  position: absolute;
  left: 9px;
  top: -3px;
  height: 28px;
  width: auto;
  color: var(--ink);
  opacity: .9;
}
.staff-notes, .staff-slurs, .staff-landmarks {
  position: absolute;
  left: 36px; right: 10px;
  top: 0;
  height: 22px;
}
.staff-notes { z-index: 2; }
.staff-slurs { z-index: 1; }
.staff-landmarks { z-index: 3; }
.staff-note {
  position: absolute;
  top: 2px;
  width: 13px;
  height: 15px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-16px) scale(.3);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .22s ease;
}
.staff-note svg { display: block; width: 100%; height: 100%; }
.staff-note.on {
  opacity: .92;
  transform: translateY(var(--ny, 0px)) scale(1);
}
.staff-spark {
  position: absolute;
  width: 7px; height: 7px;
  opacity: 0;
  animation: staff-pop .6s ease-out forwards;
  pointer-events: none;
}
.staff-spark svg { display: block; width: 100%; height: 100%; }
@keyframes staff-pop {
  0%   { opacity: .95; transform: translate(0, 0) scale(.35) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--sx, 8px), var(--sy, -12px)) scale(1.05) rotate(50deg); }
}
.staff-slur {
  position: absolute;
  top: -5px;
  height: 8px;
  min-width: 10px;
  border-top: 1.5px solid rgba(70, 103, 156, .52);
  border-radius: 50% 50% 0 0;
}
.staff-bar {
  position: absolute;
  top: -8px;
  width: 38px;
  height: 40px;
  transform: translateX(-50%);
  pointer-events: auto;
  color: var(--ink);
}
.staff-bar::before, .staff-bar::after {
  content: '';
  position: absolute;
  top: 9px;
  height: 21px;
  background: currentColor;
  border-radius: 2px;
}
.staff-bar::before { left: 16px; width: 1.5px; }
.staff-bar::after { left: 20px; width: 3px; }
.staff-bar:hover { color: var(--pink-deep); }

/* The little black grand piano that rolls along the staff as you read.
   While the page moves it lifts its lid and spills tiny notes. */
.staff-piano {
  position: absolute;
  left: 36px;
  top: -4px;
  z-index: 5;
  width: 34px;
  height: 27px;
  pointer-events: none;
  transition: transform .15s linear;
}
.staff-piano svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gp-lid {
  transform-box: fill-box;
  transform-origin: 0 50%;
  transition: transform .28s cubic-bezier(.34, 1.4, .64, 1);
}
.gp-prop { opacity: 0; transition: opacity .12s ease; }
.staff-piano.playing .gp-lid { transform: rotate(-24deg); }
.staff-piano.playing .gp-prop { opacity: 1; transition-delay: .1s; }
.staff-piano.playing svg { animation: gp-bob .32s ease-in-out infinite alternate; }
@keyframes gp-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-1.5px); }
}
.staff-spill {
  position: absolute;
  top: 0;
  z-index: 4;
  width: 13px;
  height: 13px;
  margin-left: 36px;
  pointer-events: none;
  animation: staff-spill .9s ease-out forwards;
}
.staff-spill svg { display: block; width: 100%; height: 100%; }
@keyframes staff-spill {
  0%   { opacity: 0; transform: translate(0, 4px) scale(.4); }
  20%  { opacity: 1; }
  70%  { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx, -12px), -26px) scale(1.05) rotate(var(--rot, 20deg)); }
}

/* ---- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4.5rem;
}
/* soft daylight glow behind the welcome text so it reads clearly */
.hero::before {
  content: '';
  position: absolute;
  width: 850px; height: 620px;
  top: -60px; left: -110px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* Decorative sky pieces */
.sky { position: absolute; inset: 0; pointer-events: none; }
/* Van's piano-staircase photo, blended whisper-soft into the sky.
   Kept very faint since the Sydney Harbour backdrop arrived, so the two
   photographs do not fight each other. */
.sky-art {
  position: absolute;
  inset: 0;
  background: url('../images/bg-piano-stairs.jpg') center 28% / cover no-repeat;
  opacity: .07;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 96%);
}
.sky-moon {
  position: absolute;
  top: 42px; left: 46.5%;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffffff, #f4eef8 58%, rgba(244, 238, 248, .3) 74%, transparent 78%);
  box-shadow: 0 0 46px 18px rgba(255, 255, 255, .5);
  opacity: .95;
  will-change: transform;
}
.cloud {
  position: absolute;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
  animation: drift ease-in-out infinite alternate;
}
.cloud-a { width: 460px; height: 140px; top: 70px;  left: -90px;  animation-duration: 26s; }
.cloud-b { width: 560px; height: 160px; top: 290px; right: -140px; animation-duration: 34s; animation-delay: -9s; opacity: .85; }
.cloud-c { width: 380px; height: 120px; bottom: 130px; left: 16%; animation-duration: 30s; animation-delay: -18s; opacity: .7; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(52px); } }

.float-note { position: absolute; color: rgba(255, 255, 255, .95); opacity: .6; animation: floaty ease-in-out infinite alternate; }
.float-note svg { width: 26px; height: 26px; }
.float-note-a { top: 30%; left: 45%; animation-duration: 13s; }
.float-note-b { top: 14%; left: 7%;  animation-duration: 17s; animation-delay: -6s; }
.float-note-c { bottom: 30%; right: 5%; animation-duration: 15s; animation-delay: -9s; opacity: .5; }
@keyframes floaty { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-24px) rotate(9deg); } }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}

.lede {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 54ch;
  margin-top: 1.1rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-trust { font-size: .86rem; color: var(--text-soft); margin-top: 1.5rem; }

.hero-media { position: relative; max-width: 440px; justify-self: end; align-self: start; width: 100%; }

.hero-photo { position: relative; margin: 0; }

/* the soft tilted colour card behind photos */
.photo-frame { position: relative; display: block; }
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  opacity: .5;
}
.photo-frame-tilt-right::before {
  transform: rotate(4deg) translate(12px, 10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .3));
}
.photo-frame-tilt-left::before {
  transform: rotate(-3.5deg) translate(-10px, 12px);
  background: linear-gradient(135deg, var(--butter), rgba(255, 255, 255, .5));
  opacity: .6;
}

.hero-photo img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
}
.hero-photo figcaption {
  position: relative;
  font-size: .8rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: .6rem;
}

/* The floating award badge on the hero photo */
.hero-chip {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: -26px;
  display: flex;
  align-items: center;
  gap: .7rem;
  background:
    linear-gradient(rgba(255, 255, 255, .97), rgba(255, 255, 255, .97)) padding-box,
    linear-gradient(120deg, #e9bc5f, var(--pink), var(--blue)) border-box;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: .7rem 1.05rem .75rem .8rem;
  margin: 0;
  max-width: 265px;
  box-shadow: 0 18px 40px rgba(73, 58, 121, .28);
  transform: rotate(-3deg);
  animation: chip-bob 6.5s ease-in-out infinite alternate;
}
@keyframes chip-bob {
  from { transform: rotate(-3deg) translateY(0); }
  to   { transform: rotate(-1.5deg) translateY(-6px); }
}
.chip-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #e9bc5f, #d98cb8);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(73, 58, 121, .25);
}
.chip-text { display: flex; flex-direction: column; line-height: 1.35; }
.chip-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.chip-text strong { font-size: .79rem; color: var(--ink); line-height: 1.3; margin: 2px 0; }
.chip-sub { font-size: .71rem; color: var(--text-soft); }
.chip-spark { position: absolute; color: #eec44f; animation: twinkle 2.3s ease-in-out infinite alternate; }
.chip-spark svg { display: block; width: 100%; height: 100%; }
.chip-spark-a { width: 15px; height: 15px; top: -9px; right: 16px; }
.chip-spark-b { width: 10px; height: 10px; top: 12px; right: -8px; animation-delay: 1.15s; }
@keyframes twinkle {
  from { transform: scale(.55) rotate(0deg); opacity: .4; }
  to   { transform: scale(1.1) rotate(20deg); opacity: 1; }
}

/* ---- The tiny playable piano ---------------------------------------- */
.piano-wrap {
  position: relative;
  z-index: 1;
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.piano-hint {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(90, 80, 150, .5);
  margin: 0 0 .45rem;
  transform: rotate(-2.5deg);
}
.piano {
  position: relative;
  width: min(560px, 94%);
  height: 108px;
  display: flex;
  padding: 5px 5px 0;
  border-radius: 12px 12px 15px 15px;
  background: rgba(47, 54, 89, .38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 44px rgba(60, 48, 110, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.pk { border: none; padding: 0; cursor: pointer; }
.pk-w {
  flex: 1;
  margin: 0 1px;
  background: linear-gradient(#ffffff, #f3f0fb 80%);
  border-radius: 0 0 7px 7px;
  box-shadow: inset 0 -6px 0 rgba(186, 180, 218, .4), inset 0 1px 0 #fff;
  transition: transform .07s ease, box-shadow .07s ease, background .07s ease;
}
.pk-w:hover { background: linear-gradient(#ffffff, #ede9f9 80%); }
.pk-w:active, .pk-w.playing {
  transform: translateY(3px);
  background: linear-gradient(#f6f2fc, #e9e3f6 80%);
  box-shadow: inset 0 -3px 0 rgba(186, 180, 218, .4);
}
.pk-b {
  position: absolute;
  top: 5px;
  left: calc(var(--pos) * 12.5% - 3.55%);
  width: 7.1%;
  height: 60%;
  z-index: 2;
  background: linear-gradient(#454b74, #262c4e 70%);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 5px 10px rgba(18, 22, 48, .45), inset 0 -4px 0 rgba(0, 0, 0, .35);
  transition: transform .07s ease, background .07s ease;
}
.pk-b:hover { background: linear-gradient(#4c527e, #2c3258 70%); }
.pk-b:active, .pk-b.playing { transform: translateY(2px); background: linear-gradient(#3c4268, #232948 70%); }
.pk:focus-visible { outline: 3px solid #fff; outline-offset: -3px; z-index: 3; }

/* ---- Credentials band (facts + affiliation logos) -------------------- */
.creds-band {
  position: relative;
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .75);
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  padding: 1.9rem 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem 1.2rem;
}
.fact {
  display: flex;
  align-items: center;
  gap: .85rem;
  background:
    linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)) padding-box,
    linear-gradient(120deg, var(--blue), var(--lilac), var(--pink)) border-box;
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: .9rem 1.05rem;
  box-shadow: 0 8px 22px rgba(73, 58, 121, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(73, 58, 121, .18);
}
.fact-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  color: #fff;
  box-shadow: 0 6px 14px rgba(73, 58, 121, .22);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.fact:nth-child(1) .fact-icon { background: linear-gradient(135deg, #7da2d9, #9a8fd0); }
.fact:nth-child(2) .fact-icon { background: linear-gradient(135deg, #9a8fd0, #b48fd0); }
.fact:nth-child(3) .fact-icon { background: linear-gradient(135deg, #b48fd0, #d98cb8); }
.fact:nth-child(4) .fact-icon { background: linear-gradient(135deg, #d98cb8, #e9bc5f); }
.fact:hover .fact-icon { transform: rotate(-7deg) scale(1.08); }
.fact-icon svg { width: 20px; height: 20px; }
/* the icon lines draw themselves in as the card appears */
html.js .fact .fact-icon svg * { stroke-dasharray: 64; stroke-dashoffset: 64; }
html.js .fact.visible .fact-icon svg * {
  animation: icon-draw .9s ease forwards;
  animation-delay: calc(var(--d, 0ms) + 250ms);
}
@keyframes icon-draw { to { stroke-dashoffset: 0; } }
.fact-text { display: flex; flex-direction: column; line-height: 1.35; }
.fact-text strong { font-size: .98rem; font-weight: 800; color: var(--ink); }
.fact-text span { font-size: .8rem; color: var(--text-soft); }

.affil-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.6rem 3.4rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(47, 54, 89, .14);
}
.affil { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.affil-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
/* every logo sits centred inside the same-height box, so they line up */
.affil-logo-box {
  height: 52px;
  display: flex;
  align-items: center;
}
.affil-logo { display: block; width: auto; }
.affil-logo-asteria { height: 46px; }
.affil-logo-ampa { height: 34px; }
.affil-badge { height: 46px; border-radius: 8px; box-shadow: 0 4px 12px rgba(40, 67, 100, .3); }
.affil-link .affil-badge { transition: transform .2s ease, box-shadow .2s ease; }
.affil-link:hover .affil-badge,
.affil-link:focus-visible .affil-badge { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(40, 67, 100, .36); }
.affil-more { font-size: .78rem; font-weight: 700; color: var(--blue-deep); }
@media (prefers-reduced-motion: reduce) {
  .affil-link .affil-badge { transition: none; }
  .affil-link:hover .affil-badge,
  .affil-link:focus-visible .affil-badge { transform: none; }
}

/* ---- About ----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

/* The About column holds two photos, the performance shot above the one
   with her student. They share one width so the edges line up. */
.about-photos {
  display: grid;
  gap: 1.9rem;
  max-width: 440px;
}
.about-photo { position: relative; margin: 0; max-width: 440px; }
.about-photo img {
  position: relative;
  border: 6px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.about-photo figcaption {
  position: relative;
  font-size: .8rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: .8rem;
}

.cred-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.cred-list li { position: relative; padding-left: 1.5em; margin-bottom: .6em; }
.cred-list li::before {
  content: '';
  position: absolute;
  left: .1em;
  top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink-deep);
}

.own-words {
  margin: 3.5rem 0 0;
  /* Van's fabric-and-keys photo shimmers faintly through the white */
  background:
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .92)),
    url('../images/bg-fabric-keys.jpg') center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 26px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
.own-words-label {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--pink-deep);
  margin-bottom: .8rem;
}
.own-words p:not(.own-words-label) {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: #423d68;
}
.own-words footer { font-weight: 800; font-size: .92rem; color: var(--blue-deep); margin-top: 1.1rem; }

/* ---- Achievements ------------------------------------------------------ */
.medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin: 2.6rem 0 3rem;
}
/* Cards with a little animal tucked behind the top edge. The animal
   peeks out on hover (and says a quick hello when first scrolled to). */
.medal-card, .where-card { position: relative; }

.card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, var(--blue), var(--lilac), var(--pink)) border-box;
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.medal-card:hover .card-body, .where-card:hover .card-body {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.peek {
  position: absolute;
  top: 4px;
  right: 24px;
  width: 58px;
  height: 42px;
  z-index: 0;
  opacity: 0;
  transform: translateY(30%);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
  pointer-events: none;
}
.peek-left { right: auto; left: 24px; }
.medal-card:hover .peek, .where-card:hover .peek,
.medal-card:focus-within .peek, .where-card:focus-within .peek {
  opacity: 1;
  transform: translateY(-94%);
}
/* one friendly hello when the card first appears (so phones see it too) */
html.js .medal-card.visible .peek, html.js .where-card.visible .peek {
  animation: peek-hello 2s ease 1;
  animation-delay: calc(var(--d, 0ms) + 600ms);
}
@keyframes peek-hello {
  0%, 100% { opacity: 0; transform: translateY(30%); }
  30%, 65% { opacity: 1; transform: translateY(-94%); }
}

.medal-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  color: #fff;
  margin-bottom: .9rem;
  box-shadow: 0 6px 14px rgba(73, 58, 121, .22);
}
.medal-card:nth-child(1) .medal-icon { background: linear-gradient(135deg, #e9bc5f, #e7909f); }
.medal-card:nth-child(2) .medal-icon { background: linear-gradient(135deg, #7da2d9, #8f83c9); }
.medal-card:nth-child(3) .medal-icon { background: linear-gradient(135deg, #d98cb8, #e9bc5f); }
.medal-card h3 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: .35rem; line-height: 1.4; }
.medal-card .card-body > p:last-child { color: var(--text-soft); font-size: .95rem; }

.gallery { columns: 3 250px; column-gap: 1.3rem; }

.shot {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 1.3rem;
  padding: 10px 10px 12px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.shot:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.shot-img { display: block; overflow: hidden; border-radius: 10px; }
.shot img { width: 100%; height: auto; border-radius: 10px; transition: transform .55s ease; }
.shot:hover img { transform: scale(1.045); }
.shot-caption {
  display: block;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--text-soft);
  padding: .65rem .2rem 0;
}

/* ---- Lessons and pricing ----------------------------------------------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2.4rem;
}
.tag-row li {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  padding: .45rem 1.05rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue-deep);
  box-shadow: 0 4px 14px rgba(73, 58, 121, .10);
}

/* What a lesson builds */
.lesson-covers {
  max-width: 860px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 22px;
  padding: 1.7rem 2.1rem 1.8rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.6rem;
}
.lesson-covers h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: .9rem;
}
.lesson-covers ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 2rem;
}
.lesson-covers li {
  position: relative;
  padding-left: 1.5em;
  color: var(--text-soft);
}
.lesson-covers li::before {
  content: '';
  position: absolute;
  left: .1em;
  top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink-deep);
}
@media (max-width: 640px) {
  .lesson-covers { padding: 1.4rem 1.4rem 1.5rem; }
  .lesson-covers ul { grid-template-columns: 1fr; }
}

/* Public lesson prices: the 10-lesson package is the hero card (with a
   discount badge on its corner); casual prices sit small beside it. */
.price-ask {
  max-width: 860px;
  margin-bottom: 3.8rem;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 22px;
  padding: 1.9rem 2.1rem 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.price-ask h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--ink);
}
.price-duo {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.4rem;
  align-items: center;
  margin: 1.6rem 0 1.6rem;
}
.pack {
  position: relative;
  padding: 1.9rem 1.2rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(115deg, var(--blue), var(--pink)) border-box;
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}
.pack p { margin: 0; }
.pack-badge {
  position: absolute;
  top: -.8rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: .22rem .8rem;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--blue-deep), var(--pink-deep));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pack-off {
  position: absolute;
  top: -1.1rem;
  right: -1.1rem;
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  background: var(--pink-deep);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(73, 58, 121, .28);
  transform: rotate(10deg);
}
.pack-name { font-weight: 800; font-size: 1.1rem; }
.pack-len { font-size: .9rem; color: var(--text-soft); }
.pack-price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--pink-deep);
  margin-top: .3rem !important;
}
.pack-unit { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); }
.pack-total { font-size: .82rem; color: var(--text-soft); }
.pack-perk {
  margin-top: .8rem !important;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.casual { text-align: left; color: var(--ink); }
.casual-title { font-weight: 800; margin-bottom: .4rem; }
.casual ul { list-style: none; padding: 0; margin: 0; }
.casual li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.casual strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.price-ask .fine-print { max-width: 62ch; margin: 1.1rem auto 0; }

@media (max-width: 640px) {
  .price-ask { padding: 1.6rem 1.2rem; }
  .price-duo { grid-template-columns: 1fr; gap: 1.8rem; }
  .pack-off { right: -.5rem; }
}

.fine-print { font-size: .85rem; color: var(--text-soft); margin-top: 1.1rem; }

.trial-card {
  position: relative;
  margin: 2.8rem 0 2rem;
  max-width: 860px;
  background: linear-gradient(135deg, var(--butter), #fbe7f1);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 22px;
  padding: 2.1rem 2.3rem;
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.trial-icon {
  width: 52px; height: 52px;
  background: #fff;
  color: var(--butter-deep);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(73, 58, 121, .14);
}
.trial-icon svg { width: 26px; height: 26px; }
.trial-title { font-weight: 800; font-size: 1.08rem; color: var(--butter-deep); margin-bottom: .5rem; }
.trial-card p { color: #5d5546; max-width: 56ch; }
.trial-card .btn { margin-top: 1rem; }
.trial-free {
  position: absolute;
  top: -1rem;
  right: 1.6rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--pink-deep), var(--blue-deep));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(73, 58, 121, .25);
  transform: rotate(4deg);
}
.trial-card .trial-title { font-size: 1.3rem; }

.where-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.where-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.where-icon {
  width: 44px; height: 44px;
  color: #fff;
  border-radius: 14px;
  margin-bottom: .8rem;
  box-shadow: 0 6px 14px rgba(73, 58, 121, .22);
}
.where-card:nth-child(1) .where-icon { background: linear-gradient(135deg, #7da2d9, #9a8fd0); }
.where-card:nth-child(2) .where-icon { background: linear-gradient(135deg, #b48fd0, #d98cb8); }
.where-card:nth-child(3) .where-icon { background: linear-gradient(135deg, #d98cb8, #e9bc5f); }
.where-card h4 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: .25rem; }
.where-card .card-body p { color: var(--text-soft); font-size: .92rem; }

/* ---- Testimonials -------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}
.quote-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  margin: 0;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text);
}
.quote-card figcaption { margin-top: 1rem; font-weight: 800; font-size: .9rem; color: var(--blue-deep); }

/* ---- Common questions (FAQ) ---------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
  max-width: 860px;
  margin-top: 1.8rem;
}
.faq-item {
  position: relative;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
}
.faq-question:hover { color: var(--blue-deep); }
.faq-indicator {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--pink-deep);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.faq-indicator svg { width: 21px; height: 21px; display: block; }
.faq-item.is-open .faq-indicator { transform: rotate(22deg) translateY(-2px); }
.faq-answer > div { min-height: 0; }
.faq-item p { color: var(--text-soft); margin: 0; padding: 0 1.35rem 1.25rem; }
.faq-item p a { position: relative; z-index: 1; }
html.js .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .35s ease, opacity .25s ease;
}
html.js .faq-answer > div { overflow: hidden; }
html.js .faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.faq-item a { color: var(--blue-deep); }

/* ---- Google reviews ------------------------------------------------ */
.reviews-score {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: .4rem;
  padding: .5rem 1.1rem .5rem .9rem;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: .98rem;
}
.reviews-score strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.review-stars { display: inline-flex; gap: 2px; line-height: 0; }
.review-stars svg { width: 18px; height: 18px; fill: #e9b949; }
.review-grid { align-items: stretch; }
.review-wide { grid-column: 1 / -1; }
.review-wide blockquote { max-width: 62ch; }
/* five reviews: three across, then two wider cards under them */
@media (min-width: 900px) {
  .review-five { grid-template-columns: repeat(6, 1fr); }
  .review-five > * { grid-column: span 2; }
  .review-five > :nth-child(n+4) { grid-column: span 3; }
}
/* six reviews: three across, two rows */
@media (min-width: 900px) {
  .review-six { grid-template-columns: repeat(3, 1fr); }
}
.review-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.review-quote::after {
  /* a faint quaver in the corner, like a note in the margin */
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 26px;
  height: 26px;
  opacity: .16;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 19V5c3 .4 5.5 2.3 6 5' fill='none' stroke='%23a94f84' stroke-width='2.2' stroke-linecap='round'/%3E%3Cellipse cx='7.3' cy='19' rx='3.2' ry='2.5' transform='rotate(-18 7.3 19)' fill='%23a94f84'/%3E%3C/svg%3E");
}
.review-quote:hover { box-shadow: var(--shadow-lift); }
html.js .review-quote.visible:hover { transform: translateY(-4px); transition-delay: 0ms; }
.review-quote blockquote { font-size: 1.15rem; }
.review-quote figcaption { margin-top: auto; }
.review-name { display: block; }
.review-role { display: block; font-weight: 600; font-size: .82rem; color: var(--text-soft); }
/* Stars light up one after another when the card scrolls in */
html.js .review-quote .review-stars svg { opacity: .25; transform: scale(.6); transition: opacity .3s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
html.js .review-quote.visible .review-stars svg { opacity: 1; transform: none; }
.review-quote .review-stars svg:nth-child(2) { transition-delay: calc(var(--d, 0ms) + 380ms); }
.review-quote .review-stars svg:nth-child(3) { transition-delay: calc(var(--d, 0ms) + 460ms); }
.review-quote .review-stars svg:nth-child(4) { transition-delay: calc(var(--d, 0ms) + 540ms); }
.review-quote .review-stars svg:nth-child(5) { transition-delay: calc(var(--d, 0ms) + 620ms); }
.review-quote .review-stars svg:nth-child(1) { transition-delay: calc(var(--d, 0ms) + 300ms); }
.reviews-more { margin-top: 1.4rem; font-weight: 700; }
.reviews-more a { color: var(--blue-deep); }

/* Invitation for current and past families to leave a review */
.review-card {
  max-width: 860px;
  margin-top: 2.2rem;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 22px;
  padding: 1.5rem clamp(1.4rem, 4vw, 2.1rem) 1.8rem;
  box-shadow: var(--shadow-card);
}
.review-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--ink); margin: 0 0 .4rem; }
.review-card p { color: var(--text-soft); margin: 0 0 1.1rem; }
.review-card .btn { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html.js .review-quote .review-stars svg { opacity: 1; transform: none; transition: none; }
  html.js .review-quote.visible:hover { transform: none; }
}

/* ---- Booking page (book.html) -------------------------------------- */
.book-wrap { padding: 3.2rem 0 4rem; position: relative; z-index: 1; }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}
.book-intro h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  color: var(--ink);
  line-height: 1.12;
  margin: .2rem 0 0;
}
.book-points { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.book-points li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: .7em;
  color: var(--text-soft);
}
.book-points li::before {
  content: '';
  position: absolute;
  left: .1em; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink-deep);
}
.book-alt { margin-top: 1.6rem; color: var(--text-soft); font-size: .95rem; }
.book-alt a { color: var(--blue-deep); }
.book-form h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.field-optional { font-weight: 400; color: var(--text-soft); }
.book-choose {
  margin: 1.6rem 0 .8rem;
  font-weight: 800;
  color: var(--ink);
  font-size: .95rem;
}
.book-actions { display: grid; gap: .7rem; }
.book-actions .btn { width: 100%; }
.thanks-alt { font-size: .9rem; margin-top: 1.4rem; }
.thanks-alt a { color: var(--blue-deep); }

@media (max-width: 880px) {
  .book-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .book-wrap { padding: 2.2rem 0 3rem; }
}

/* ---- Contact --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.contact-text {
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 26px;
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

.contact-methods { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.15rem; }
.contact-methods li { display: flex; gap: .95rem; align-items: flex-start; }
.contact-icon {
  width: 46px; height: 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue-deep);
  box-shadow: 0 4px 12px rgba(73, 58, 121, .10);
}
.contact-methods strong { color: var(--ink); }
.contact-methods a { font-weight: 700; text-decoration: none; }
.contact-methods a:hover { text-decoration: underline; }

.enquiry-form {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lift);
}
.enquiry-form h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .85rem; font-weight: 800; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .72rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fdfdff;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(125, 162, 217, .25);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--text-soft); margin-top: .9rem; line-height: 1.55; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer {
  background: linear-gradient(160deg, #2f3659, #443a63);
  color: #cfd2e8;
  text-align: center;
  padding: 3rem 0 2.4rem;
  border-top: 5px solid;
  border-image: linear-gradient(90deg, var(--blue), var(--periwinkle), var(--lilac), var(--pink)) 1;
}
.footer-inner p { margin-bottom: .8rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.6rem; margin-right: .4rem; }
.site-footer a { color: #b9c4f0; }
.footer-fine { font-size: .8rem; color: #9aa0c4; margin-top: 1.2rem; }

/* Fixed "Free trial" button: it stays clear of phone safe areas and fades
   away wherever the full contact form is already visible. */
.floating-contact {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  border: 3px solid transparent;
  background:
    linear-gradient(115deg, var(--blue-deep), #6f5daa 48%, var(--pink-deep)) padding-box,
    linear-gradient(115deg, var(--blue), var(--pink)) border-box;
  background-size: 190% 190%, 100% 100%;
  background-position: 0 50%, 0 0;
  box-shadow: 0 14px 34px rgba(47, 54, 89, .34), inset 0 -3px 0 rgba(30, 25, 70, .25);
  transition: background-position .5s ease, transform .18s ease, box-shadow .25s ease,
    opacity .2s ease, visibility .2s ease;
}
.floating-contact:hover { background-position: 100% 50%, 0 0; }
.floating-contact.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

/* ---- Photo pop-up viewer (lightbox) -------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: clamp(.8rem, 3vw, 2rem);
  background: rgba(34, 38, 62, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-width: min(92vw, 920px); animation: lb-in .28s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  background: #fff;
}
.lightbox figcaption { color: #e6e8f6; margin-top: .9rem; font-size: .95rem; }

.lightbox button {
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s ease;
  flex-shrink: 0;
  padding: 0;
}
.lightbox button svg { width: 22px; height: 22px; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox-close { position: absolute; top: 1rem; right: 1.1rem; }

/* ---- Gentle appear-on-scroll animation (staggered like a phrase) ---------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px) scale(.99);
  transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.22, .9, .35, 1) var(--d, 0ms);
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .orn-note { opacity: 1; transform: none; transition: none; }
  .btn, .btn .btn-note, .shot, .shot img { transition: none; }
  .cloud, .float-note { animation: none; }
  .note-burst { display: none; }
  .lightbox figure { animation: none; }
  .fall-layer { display: none; }
  .staff-note { transition: opacity .2s ease; transform: translateY(var(--ny, 0px)) scale(1); }
  .staff-spark { display: none; }
  .staff-piano, .gp-lid, .faq-answer, .faq-indicator { transition: none !important; }
  .staff-spill { display: none; }
  html.js .fact .fact-icon svg * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .fact, .fact-icon { transition: none; }
  .fact:hover { transform: none; }
  .fact:hover .fact-icon { transform: none; }
  .peek { transition: opacity .2s ease; }
  .hero-chip { animation: none; }
  .brand:hover .brand-logo .lg-cloud, .brand:hover .brand-logo .lg-note,
  .brand:focus-visible .brand-logo .lg-cloud, .brand:focus-visible .brand-logo .lg-note { animation: none; }
  .chip-spark { animation: none; opacity: .85; }
  .nav-peek { transition: opacity .2s ease; }
  html.js .medal-card.visible .peek, html.js .where-card.visible .peek { animation: none; }
  .medal-card:hover .card-body, .where-card:hover .card-body { transform: none; }
}

/* ---- Small screens (phones and small tablets) ------------------------------------ */
@media (max-width: 880px) {
  .section { padding: 4rem 0; }

  /* menu becomes a tap-to-open panel */
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
  }
  .nav-toggle-bars {
    position: relative;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: background .2s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, top .25s ease;
  }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after  { top: 6px; }
  .menu-open .nav-toggle-bars { background: transparent; }
  .menu-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .menu-open .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: .8rem clamp(1.1rem, 4vw, 2rem) 1.3rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(73, 58, 121, .16);
  }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: .75rem .2rem; border-bottom: 1px solid #f0edf9; font-size: 1rem; }
  .nav-peek { display: none; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn-small { margin-top: .9rem; border-bottom: none; }

  .staff-slurs { display: none; }

  .hero { padding: 3rem 0 3.6rem; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .hero-media { justify-self: center; }
  .hero-chip { left: 8px; }
  .sky-moon { left: 74%; top: 26px; width: 48px; height: 48px; }
  .cloud-b { top: 46%; }
  .float-note-a { top: 12%; left: 78%; }
  .piano-wrap { margin-top: 2.6rem; }
  .piano { height: 92px; }
  .piano-hint { font-size: 1.4rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .about-photo { max-width: 420px; margin-inline: auto; }
  .trial-card { flex-direction: column; padding: 1.7rem 1.5rem; }
  .affil-row { gap: 1.3rem 2rem; }
}

@media (max-width: 420px) {
  .hero-actions .btn:first-child { flex-basis: 100%; }
  .hero-actions .btn:not(:first-child) { flex: 1 1 0; padding-inline: .9rem; }
  /* keep the logo line on one line on small phones */
  .brand-sub { font-size: .52rem; letter-spacing: .2em; }
  .floating-contact { padding: .75rem 1.15rem; font-size: .92rem; }
  .floating-contact .btn-note { width: 18px; height: 18px; }
}

/* ---- Hero locations line: a soft melody on ruled manuscript paper ---- */
.hero-eyebrow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.1rem;
  padding: .6rem 1.4rem .65rem 2.3rem;
  border-radius: 14px;
  /* ruled lines, like manuscript paper; they stay continuous when it wraps */
  background-image: repeating-linear-gradient(to bottom,
    transparent 0 9px, rgba(70, 103, 156, .13) 9px 10px);
  background-position: 0 6px;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
          mask-image: linear-gradient(to right, #000 82%, transparent 100%);
}
.eb-clef {
  position: absolute;
  left: .55rem; top: 50%;
  width: 14px;
  transform: translateY(-52%);
  color: var(--pink-deep);
  opacity: .6;
}
.eb-clef svg { display: block; width: 100%; height: auto; }
.eb-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-soft);
  opacity: .85;
}
.eb-places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .95rem;
}
.eb-place {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.1vw, 1.42rem);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.25;
  color: var(--blue-deep);
  white-space: nowrap;
  transform: translateY(var(--p, 0));
}
.eb-online { color: var(--pink-deep); font-style: italic; }
/* a small note head with a stem, drawn in CSS so it can never blow up in size */
.eb-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 9px; height: 7px;
  margin-right: .5rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  transform: rotate(-18deg);
}
.eb-dot::after {
  content: '';
  position: absolute;
  right: 0; bottom: 2px;
  width: 1.5px; height: 14px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(18deg);
  transform-origin: bottom right;
}

html.js .eb-place {
  opacity: 0;
  animation: eb-settle .75s cubic-bezier(.22, .68, .3, 1) forwards;
  animation-delay: calc(.3s + var(--n) * .13s);
}
@keyframes eb-settle {
  from { opacity: 0; transform: translateY(calc(var(--p, 0px) - 10px)); }
  to   { opacity: 1; transform: translateY(var(--p, 0px)); }
}


/* ---- Hero service-area map ------------------------------------------ */
.hero-map {
  position: relative;
  margin: 1.1rem 0 0;
  padding: .5rem .5rem .1rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}
.map-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--map-land);
}
.map-land { fill: var(--map-land); }
.map-park { fill: var(--map-park); }
.map-park-label,
.map-road-label,
.map-area-label,
.map-city-label,
.map-minor-label,
.map-label,
.map-sub,
.map-water-label {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .95);
  stroke-linejoin: round;
}
.map-park-label {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--map-park-text);
  stroke-width: 2.5px;
}
.map-water { fill: var(--map-water); }
.map-water-inlet {
  fill: none;
  stroke: var(--map-water);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-water-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  fill: var(--map-water-text);
  stroke-width: 2.5px;
}
.map-street {
  fill: none;
  stroke: var(--map-street);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.map-road-edge,
.map-road {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-road-edge { stroke: var(--map-road-edge); stroke-width: 3.6; }
.map-road { stroke: var(--map-road); stroke-width: 2.1; }
.map-road-freeway-edge { stroke: #e5c99a; stroke-width: 4.8; }
.map-road-freeway { stroke: #fbe6bd; stroke-width: 3; }
.map-river {
  fill: none;
  stroke: var(--map-water);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-road-label {
  font-family: var(--font-body);
  font-size: 8.2px;
  font-weight: 700;
  fill: var(--map-label-soft);
  stroke-width: 2.4px;
}
.map-route {
  fill: none;
  stroke: var(--pink-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 5 5;
  opacity: .72;
}
.map-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  fill: var(--ink);
  stroke-width: 4px;
}
.map-minor-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  fill: var(--text);
  stroke-width: 3px;
}
.map-minor-dot {
  fill: var(--blue-deep);
  stroke: #fff;
  stroke-width: 2;
}
.map-sub {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  fill: var(--pink-deep);
  stroke-width: 3px;
}
.map-area-label {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .04em;
  fill: var(--blue-deep);
  stroke-width: 3px;
}
.map-area-arrow {
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-city-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  fill: var(--map-label-soft);
  stroke-width: 3px;
}
.map-note { color: var(--periwinkle); opacity: .85; }
.map-north text {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 900;
  fill: var(--blue-deep);
}
.map-north path { fill: var(--blue-deep); }
.map-pin-shape {
  fill: url(#mapPin);
  stroke: #fff;
  stroke-width: 1.4;
}
.map-pin-light { stop-color: var(--blue); }
.map-pin-dark { stop-color: var(--blue-deep); }
.map-pin-home-light { stop-color: var(--map-gold-light); }
.map-pin-home-dark { stop-color: var(--map-gold); }
.map-pin-home .map-pin-shape { fill: url(#mapPinHome); }
.map-pin-note {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.map-pin-note-head { fill: #fff; }
.map-online rect {
  fill: rgba(253, 243, 213, .96);
  stroke: rgba(107, 84, 22, .28);
  stroke-width: 1.2;
}
.map-online-icon { color: var(--butter-deep); }
.map-online-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  fill: var(--butter-deep);
}
.hero-map figcaption {
  font-size: .78rem;
  color: var(--text-soft);
  text-align: center;
  margin: .4rem .3rem .35rem;
}

/* The travel line draws itself and the pins drop in, once, on load. */
html.js .map-route {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: map-draw 1.5s ease .35s forwards;
}
@keyframes map-draw { to { stroke-dashoffset: 0; } }
html.js .map-pin,
html.js .map-online,
html.js .map-note {
  opacity: 0;
  animation: map-pop .5s cubic-bezier(.2, .9, .3, 1.4) forwards;
  animation-delay: calc(.55s + var(--n) * .16s);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes map-pop {
  from { opacity: 0; transform: translateY(-10px) scale(.6); }
  to { opacity: 1; transform: none; }
}

/* Delicate landmarks leave the suburb pins as the main map features. */
.map-landmark path {
  fill: none;
  stroke: #5e789e;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-landmark .lm-arch { stroke: #59708f; stroke-width: 1.1; }
.map-landmark .lm-arch-fill { fill: rgba(89, 112, 143, .16); stroke: none; }
.map-landmark .lm-truss { stroke: #59708f; stroke-width: .6; }
.map-landmark .lm-hang { stroke: #59708f; stroke-width: .5; opacity: .85; }
.map-landmark .lm-deck { stroke: #59708f; stroke-width: 1.3; }
.map-landmark .lm-pylon { fill: #efe6d2; stroke: #8f8466; stroke-width: .6; }
.map-opera .lm-podium { fill: #efe6d2; stroke: #8f8466; stroke-width: .5; }
.map-opera .lm-sail { fill: #fff; stroke: #8a99b5; stroke-width: .7; }
.map-opera .lm-sail-back { fill: #f3f4f8; }
.map-zoo .lm-giraffe { fill: #d9a44a; stroke: #8f6a2a; stroke-width: .5; }
.map-zoo .lm-spot { fill: #8f6a2a; stroke: none; }
.map-landmark-label {
  font-family: var(--font-body);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .04em;
  fill: #6d7f99;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .95);
  stroke-width: 2.4px;
  stroke-linejoin: round;
}
.map-water-label-small { font-size: 10px; }
.map-place { cursor: pointer; outline: none; }
.map-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.8;
  pointer-events: none;
}
.map-place:focus-visible .map-hit { stroke: var(--blue-deep); stroke-dasharray: 3 3; }
.map-place.is-active .map-label { fill: var(--blue-deep); }
.map-place.is-active .map-pin-shape { stroke: var(--ink); stroke-width: 2; }
.map-place.is-active .map-pin { filter: drop-shadow(0 2px 5px rgba(73, 58, 121, .45)); }
.map-detail { visibility: hidden; opacity: 0; pointer-events: none; }
.map-online, .map-note, .map-water-label { transition: opacity .25s ease; }
/* The load-in animation uses fill-mode forwards, so important is needed here. */
.hero-map.detail-open .map-online,
.hero-map.detail-open .map-note,
.hero-map.detail-open .map-water-label { opacity: 0 !important; }
.map-detail.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: map-detail-in .25s ease-out;
}
.map-detail-paper {
  fill: rgba(255, 255, 255, .98);
  stroke: var(--lilac);
  stroke-width: 1.2;
}
.map-detail-icon {
  fill: none;
  stroke: #78658f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-detail-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  fill: #526489;
}
.map-detail-copy { font-family: var(--font-body); font-size: 13px; fill: var(--ink); }
@keyframes map-detail-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .eb-place,
  html.js .map-pin,
  html.js .map-online,
  html.js .map-note {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html.js .map-route { animation: none; stroke-dashoffset: 0; stroke-dasharray: 5 5; }
  .map-online, .map-note, .map-water-label { transition: none; }
  .map-detail.is-visible { animation: none; }
}
