/* ==========================================================================
   South Shore Chamber Music Academy — styles
   Tokens and art direction per SSCMA-BUILD-BRIEF.md §2
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #22293E;         /* navy — text & brand (from logo wordmark) */
  --tide: #22293E;        /* navy surfaces (tuition band) */
  --tide-deep: #171B28;   /* deep navy — footer */
  --sunset: #D1BA96;      /* soft gold — thin rules & borders ONLY (logo divider) */
  --coral-deep: #C24B32;  /* AA-safe coral for small labels on sand */
  --shell: #F7F3EC;       /* sand background */
  --mist: #D9E8E4;        /* pale mint tint sections */
  --cream: #FCFAF6;       /* card surfaces */
  --lagoon: #8FAA9E;      /* sea-glass deep — detail borders */
  --lagoon-deep: #4F6B60;
  --coral-bright: #EF9073; /* coral — the sun; CTA fill with navy text */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;

  /* 1.25 modular scale off 1.125rem body */
  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.406rem;
  --step-2: 1.758rem;
  --step-3: 2.197rem;
  --step-4: 2.747rem;
  --step-5: 3.433rem;
  --step-6: 4.292rem;

  --radius: 5px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --header-h: 5.25rem;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--shell);
  /* barely-there paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "SOFT" 60, "WONK" 0;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }
a { color: var(--tide); text-decoration-color: color-mix(in srgb, var(--coral-bright) 75%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--tide-deep); }

/* Brass keyboard focus ring — visible everywhere */
:focus-visible {
  outline: 3px solid #E1734F;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--tide); color: var(--mist); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }

/* ---------- Eyebrow + staff-line motif (signature element) ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 1.1rem;
}

/* Section divider: five thin brass rules with the eyebrow sitting on the
   staff like notation. */
.staff-head {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.staff-head .staff-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.staff-head .staff-lines span {
  height: 1px;
  background: color-mix(in srgb, var(--ink) 32%, transparent);
}
.staff-head {
  height: 3.4rem; /* the five lines span this */
  display: flex;
  align-items: center;
}
.staff-head .eyebrow {
  position: relative;
  margin: 0;
  background: var(--shell);
  padding-inline: 1rem 1.25rem;
  margin-left: -0.15rem;
}
.on-cream .staff-head .eyebrow { background: var(--mist); }
.on-tide .staff-head .eyebrow { background: var(--tide); color: var(--coral-bright); }
.on-tide .staff-head .staff-lines span { background: color-mix(in srgb, var(--coral-bright) 50%, transparent); }

/* Full-width footer staff divider */
.staff-divider {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 1.6rem; margin: 0;
}
.staff-divider span { height: 1px; background: color-mix(in srgb, var(--sunset) 45%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn-primary {
  background: var(--coral-bright);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 12%, var(--coral-bright));
}
.btn-primary:hover {
  background: #E1734F;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(23, 27, 40, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--tide);
  border-color: var(--tide);
}
.btn-outline:hover { background: color-mix(in srgb, var(--tide) 7%, transparent); transform: translateY(-2px); }
.on-tide .btn-outline { color: var(--mist); border-color: color-mix(in srgb, var(--mist) 70%, transparent); }
.on-tide .btn-outline:hover { background: color-mix(in srgb, var(--mist) 10%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--shell);
  border-bottom: 1px solid color-mix(in srgb, var(--sunset) 30%, transparent);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 3.1rem; width: auto; }
.brand-word { display: flex; flex-direction: column; gap: 0.22rem; }
.bw-top {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 620; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); line-height: 1;
}
.bw-rule { height: 1px; background: var(--sunset); }
.bw-bottom {
  font-size: 0.63rem; font-weight: 650; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink); line-height: 1;
}
.brand-fallback {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600; color: var(--tide);
  line-height: 1.15;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.15rem; }
.site-nav a:not(.btn) {
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav .btn { white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--tide); }
.nav-toggle { display: none; }

@media (max-width: 74rem) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--shell);
    flex-direction: column; justify-content: center; gap: 1.75rem;
    font-size: var(--step-1);
    transform: translateX(100%);
    transition: transform 240ms ease;
  }
  .site-nav.open { transform: none; }
  .site-nav a:not(.btn) { font-size: var(--step-1); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    margin-left: auto; background: none; border: 0; padding: 0.6rem; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 200ms ease, opacity 200ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { height: 2.6rem; }
  .bw-top { font-size: 1.02rem; }
  .bw-bottom { font-size: 0.52rem; letter-spacing: 0.2em; }
  .header-cta { margin-left: 0; }
  .site-header .header-cta {
    margin-left: auto;
    white-space: nowrap;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }
  .site-nav .header-cta { display: none; }
}
@media (min-width: 74.01rem) {
  .site-header > .container > .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) var(--section-pad);
  background:
    radial-gradient(44rem 22rem at 85% -10%, rgba(239, 144, 115, 0.22) 0%, rgba(239, 144, 115, 0) 60%),
    radial-gradient(48rem 26rem at 6% 110%, rgba(171, 201, 184, 0.30) 0%, rgba(171, 201, 184, 0) 58%);
}
.hero-logo {
  width: min(26rem, 74vw);
  margin-inline: auto;
  margin-bottom: 0.75rem;
}
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  justify-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(var(--step-4), 7vw, 5.4rem);
  max-width: 16ch;
  margin-inline: auto;
  font-weight: 480;
  font-variation-settings: "SOFT" 80, "WONK" 1;
}
.hero .subhead { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1.8rem; }
.hero .urgency { font-size: var(--step--1); color: var(--tide); margin-top: 1rem; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding-block: var(--section-pad); }
section h2 { font-size: clamp(var(--step-3), 4vw, var(--step-5)); font-weight: 500; max-width: 24ch; }
.section-intro { font-size: var(--step-1); line-height: 1.55; }

.on-cream { background: var(--mist); }
.on-tide { background: var(--tide); color: var(--mist); }
.on-tide h2, .on-tide h3 { color: var(--mist); }
.on-tide a { color: var(--mist); }

/* Why chamber music */
.why-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.pullquote {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  padding: 2rem 0;
}
.pullquote .staff-lines {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.pullquote .staff-lines span { height: 1px; background: color-mix(in srgb, var(--sunset) 40%, transparent); }
.pullquote p {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(var(--step-1), 2.6vw, var(--step-3));
  font-weight: 470;
  font-style: italic;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 30ch;
  text-align: center;
  background: var(--shell);
  padding: 0.5rem 1.5rem;
  color: var(--tide);
}

.points { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 5vw, 3rem); padding: 0; list-style: none; }
@media (min-width: 48rem) { .points { grid-template-columns: repeat(3, 1fr); } }
.point {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--sunset) 25%, transparent);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.point:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(23,27,40,.4); }
.point svg { width: 44px; height: 44px; margin-bottom: 0.9rem; }
.point h3 { font-size: var(--step-1); margin-bottom: 0.35em; }
.point p { margin: 0; font-size: 1rem; color: color-mix(in srgb, var(--ink) 85%, transparent); }

/* How it works — numbered steps on the staff motif */
.steps { list-style: none; margin: clamp(2rem,5vw,3rem) 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sunset) 30%, transparent);
  align-items: start;
}
.step:first-child { border-top: 1px solid color-mix(in srgb, var(--sunset) 30%, transparent); }
.step-num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--coral-deep);
  line-height: 1;
  padding-top: 0.2rem;
  min-width: 2.6ch;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.step p { margin: 0; max-width: 58ch; }

.callout {
  border: 1.5px solid var(--coral-bright);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 1.5rem 1.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 46rem;
}
.callout p { margin: 0; }
.callout strong { color: var(--tide); }

.how-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }

/* Who it's for */
.cards { display: grid; gap: 1.25rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--sunset) 25%, transparent);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(23,27,40,.35); }
.card h3 { font-size: var(--step-1); }
.card p { margin: 0; font-size: 1rem; }
.who-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.instruments-line { margin-top: 1.75rem; font-weight: 600; color: var(--tide); }

/* Auditions */
.audition-cards { display: grid; gap: 1.25rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 48rem) { .audition-cards { grid-template-columns: 1fr 1fr; } }
.audition-cards .card ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.audition-cards .card li { margin-bottom: 0.35rem; }
.round-label {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-deep); font-weight: 700; margin-bottom: 0.5rem;
}
.pianist-callout { border-width: 2px; }
.section-cta { margin-top: clamp(2rem, 5vw, 3rem); }

/* Schedule */
.session-table { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.session-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .session-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .session-grid { grid-template-columns: repeat(6, 1fr); } }
.session-card {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--sunset) 30%, transparent);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
}
.session-card .s-label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-deep); font-weight: 700; }
.session-card .s-month { font-family: var(--font-display); font-size: var(--step-1); color: var(--tide); }
.rhythm { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 48rem) { .rhythm { grid-template-columns: repeat(2, 1fr); } }
.rhythm-item { border-left: 3px solid var(--lagoon); padding-left: 1.1rem; }
.rhythm-item.homeschool { border-left-color: var(--lagoon); }
.rhythm-item h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.25em; }
.rhythm-item.homeschool h3 { color: var(--lagoon-deep); }
.rhythm-item p { margin: 0; font-size: 1rem; }
.deadline-callout { text-align: center; font-size: var(--step-1); }
.deadline-callout strong { color: var(--tide); }

/* Tuition */
.tuition-inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.tuition-inner .staff-head .eyebrow { margin-inline: auto; padding-inline: 1.25rem; }
.tuition-inner h2 { margin-inline: auto; }
.tuition-inner .prose { margin-inline: auto; }
.value-line {
  margin-top: 2rem; font-family: var(--font-display); font-size: var(--step-1);
  color: var(--coral-bright); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem;
}
.value-line span::after { content: "·"; margin-left: 1rem; color: color-mix(in srgb, var(--sunset) 60%, transparent); }
.value-line span:last-child::after { content: ""; }

/* Director */
.director-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .director-grid { grid-template-columns: 0.75fr 1.25fr; } }
.portrait-img {
  border-radius: var(--radius);
  box-shadow: 0 22px 55px -24px rgba(23, 27, 40, 0.5);
  width: 100%;
}
.portrait-slot {
  aspect-ratio: 4 / 5;
  border: 2px dashed color-mix(in srgb, var(--sunset) 60%, transparent);
  border-radius: var(--radius);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: var(--coral-deep); font-weight: 600; font-size: 0.95rem;
}
.coaching-note { border-left: 3px solid var(--sunset); padding: 0.4rem 0 0.4rem 1.1rem; font-style: italic; color: color-mix(in srgb, var(--ink) 85%, transparent); }

/* Voices / testimonials */
.quotes { display: grid; gap: 1.5rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 56rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote-card {
  position: relative;
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--sunset) 25%, transparent);
  border-radius: var(--radius);
  padding: 2.6rem 1.6rem 1.6rem;
  overflow: hidden;
}
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-0); font-style: italic; line-height: 1.5; }
.quote-card cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.9rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.draft-ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  background: repeating-linear-gradient(-45deg, #B3261E, #B3261E 12px, #8f1d17 12px, #8f1d17 24px);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; padding: 0.35rem 0.5rem;
}
.voices-note {
  margin-top: 1.5rem; font-size: var(--step--1);
  color: #8f1d17; font-weight: 600;
}

/* Founding family (alternative block) */
.founding {
  max-width: 50rem; margin-inline: auto; text-align: center;
}
.founding .lead {
  font-family: var(--font-display); font-size: clamp(var(--step-1), 3vw, var(--step-3));
  font-style: italic; line-height: 1.4; color: var(--tide);
}
.founding .sig { font-weight: 600; color: var(--coral-deep); }

/* Apply / join */
.join-cards { display: grid; gap: 1.75rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 60rem) { .join-cards { grid-template-columns: 1.35fr 0.85fr; } }
.form-card {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--sunset) 30%, transparent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.form-card > h3 { font-size: var(--step-2); }
.form-card .deadline { color: var(--tide); font-weight: 600; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 0.3rem; }
.field .hint { font-weight: 400; color: color-mix(in srgb, var(--ink) 65%, transparent); font-size: 0.85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: var(--radius);
  background: #fff;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid #E1734F; outline-offset: 1px; border-color: var(--sunset);
}
.field-row { display: grid; gap: 0 1.1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
fieldset {
  border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 0.6rem;
  margin: 0 0 1.1rem;
}
legend { font-weight: 650; font-size: 0.95rem; padding-inline: 0.4rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.4rem 0.8rem; }
.check-grid label, .radio-row label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 1rem; margin-bottom: 0.35rem; }
.radio-row { display: flex; gap: 1.5rem; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--tide); }
.form-note {
  border: 1.5px solid var(--sunset);
  background: color-mix(in srgb, var(--sunset) 9%, var(--mist));
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.form-note strong { color: var(--tide); }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success[hidden] { display: none; }
.form-success .success-mark { width: 64px; height: 64px; margin: 0 auto 1.25rem; }
.form-success h4 { font-size: var(--step-2); }
.form-success p { max-width: 40ch; margin-inline: auto; }

/* Contact dialog */
.contact-line { margin-top: 1.5rem; }
.link-btn {
  background: none; border: 0; padding: 0;
  font: inherit; font-weight: 650; color: var(--tide);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--coral-bright) 85%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--coral-deep); }
#contact-dialog {
  border: 0; padding: 0;
  border-radius: var(--radius);
  width: min(30rem, calc(100vw - 2rem));
  box-shadow: 0 30px 80px -20px rgba(23, 27, 40, 0.55);
}
#contact-dialog::backdrop { background: rgba(23, 27, 40, 0.55); }
.contact-card { position: relative; }
.contact-card > h3 { font-size: var(--step-2); margin-bottom: 0.2em; }
.dialog-close {
  position: absolute; top: 0.7rem; right: 0.9rem;
  background: none; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--ink);
  padding: 0.3rem;
}
.dialog-close:hover { color: var(--coral-deep); }

/* FAQ */
.faq-list { margin-top: clamp(1.5rem, 4vw, 2.5rem); max-width: 52rem; }
.faq-item { position: relative; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 520;
  padding: 1.25rem 0;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--coral-deep);
  font-size: var(--step-2);
  line-height: 0.8;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 0 1.4rem; max-width: 58ch; }
.faq-item .faq-body p { margin: 0; }
.faq-staff { display: flex; flex-direction: column; justify-content: space-between; height: 0.9rem; }
.faq-staff span { height: 1px; background: color-mix(in srgb, var(--ink) 22%, transparent); }

/* Footer */
.site-footer { background: var(--tide-deep); color: var(--shell); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.site-footer .staff-divider { margin-bottom: 2.5rem; }
.site-footer .staff-divider span { background: color-mix(in srgb, var(--sunset) 50%, transparent); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.2fr 1fr auto; align-items: start; } }
.footer-brand img { height: auto; width: min(17rem, 82%); margin-bottom: 0.75rem; }
.footer-tagline { color: color-mix(in srgb, var(--shell) 80%, transparent); font-size: 0.95rem; }
.footer-nav { display: grid; gap: 0.5rem; }
.footer-nav a { color: var(--shell); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--sunset); }
.site-footer .small-print { margin-top: 2.5rem; font-size: 0.85rem; color: color-mix(in srgb, var(--shell) 60%, transparent); }
.site-footer .btn-primary { margin-top: 0.25rem; }

/* ---------- Motion: gentle fade-and-rise reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .point { transition: none; }
  .btn:hover, .card:hover, .point:hover { transform: none; }
}
