﻿/* =========================================================================
   THE ACADEMY OF MUSIC — LAYOUT & COMPONENTS (main.css)
   Consumes tokens from theme.css only. Engraved concert programme on warm
   paper: hairline rules, no gradients, composed motion (fade + rise 220ms,
   hovers darken 140ms, never bounce).
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--text-heading);
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.4vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-color: var(--brass-400);
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--accent-strong); }

::selection { background: var(--brass-200); color: var(--navy-900); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: var(--cream-100);
  padding: var(--space-2) var(--space-4); z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- Icons (Lucide, 1.5px stroke, currentColor) ------------------------- */
.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Eyebrow (uppercase, letterspaced, 44px brass rule beneath) ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-brass);
  display: block;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  border-top: var(--rule-brass);
  margin-top: 10px;
}
.eyebrow.on-dark { color: var(--brass-300); }
.eyebrow.centered::after { margin-left: auto; margin-right: auto; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.btn-primary { background: var(--button-primary-bg); color: var(--button-primary-fg); }
.btn-primary:hover { background: var(--button-primary-bg-hover); color: var(--button-primary-fg); }
.btn-secondary { background: transparent; color: var(--navy-900); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy-500); color: var(--navy-900); }
.btn-on-dark { background: var(--cream-100); color: var(--navy-900); }
.btn-on-dark:hover { background: var(--cream-200); color: var(--navy-950); }
.btn-ghost-on-dark { background: transparent; color: var(--text-on-dark); border-color: var(--border-on-dark); }
.btn-ghost-on-dark:hover { border-color: var(--brass-300); color: var(--cream-050); }

/* ---- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-page);
  border-bottom: var(--rule-soft);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-6);
  padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img, .logo svg { width: 44px; height: 44px; flex: none; }
.logo .wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
  color: var(--navy-900); line-height: 1.15; display: block; white-space: nowrap;
}
.logo .tagline {
  font-family: var(--font-body); font-size: var(--text-xs);
  color: var(--text-muted); display: block; letter-spacing: 0.02em;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  text-decoration: none; font-size: var(--text-sm); font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.main-nav a:hover { color: var(--navy-900); border-bottom-color: var(--brass-500); }

/* Login dropdown */
.login-wrap { position: relative; }
.login-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--button-primary-bg); color: var(--button-primary-fg);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 0.55rem 1.1rem; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.login-btn:hover { background: var(--button-primary-bg-hover); }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 260px;
  background: var(--surface-card);
  border: var(--rule-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
  display: none;
}
.login-menu.open { display: block; }
.login-menu a {
  display: block; text-decoration: none;
  padding: var(--space-3); border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
}
.login-menu a:hover { background: var(--surface-sunken); }
.login-menu a strong { display: block; color: var(--navy-900); font-size: var(--text-sm); }
.login-menu a span { font-size: var(--text-xs); color: var(--text-muted); }
.login-menu .menu-divider { border-top: var(--rule-soft); margin: var(--space-2) 0; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-2); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px 0; }

/* ---- Hero (navy band, staff-line pattern, clef artwork) ---------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface-inverse);
  color: var(--text-on-dark);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../assets/pattern-staff.svg') repeat;
  background-size: 240px 64px;
  filter: invert(1);
  opacity: 0.45;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}
.hero h1 { color: var(--text-on-dark); margin: var(--space-4) 0; }
.hero-lede { font-size: var(--text-md); color: var(--text-on-dark-muted); max-width: 30em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6);
  padding: 0; margin: var(--space-6) 0 0; list-style: none;
}
.hero-trust li {
  font-size: var(--text-sm); color: var(--text-on-dark-muted);
  display: flex; align-items: center; gap: var(--space-2);
}
.hero-trust .icon { width: 16px; height: 16px; color: var(--brass-300); }

/* Clef artwork — generated write-on film with SVG fallback */
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 300px); overflow: visible; }
.clef-video {
  display: none;
  width: min(100%, 330px);
  height: auto;
  /* feather the frame edges into the hero so no rectangle seam shows even
     if video compression shifts the navy a point or two */
  -webkit-mask-image: radial-gradient(115% 115% at 50% 50%, #000 55%, transparent 96%);
  mask-image: radial-gradient(115% 115% at 50% 50%, #000 55%, transparent 96%);
}
.hero-art.video-mode .clef-video { display: block; }
.hero-art.video-mode svg { display: none; }

.clef-staff { stroke: var(--cream-100); stroke-width: 1; opacity: 0.35; }
.clef-glyph { fill: var(--cream-100); }
.clef-note { fill: var(--brass-400); }
.clef-note-stem { stroke: var(--brass-400); stroke-width: 2.5; stroke-linecap: round; }

.js:not(.anime) .clef-staff {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: clef-draw 500ms linear forwards;
}
.js:not(.anime) .clef-staff:nth-of-type(1) { animation-delay: 0ms; }
.js:not(.anime) .clef-staff:nth-of-type(2) { animation-delay: 420ms; }
.js:not(.anime) .clef-staff:nth-of-type(3) { animation-delay: 840ms; }
.js:not(.anime) .clef-staff:nth-of-type(4) { animation-delay: 1260ms; }
.js:not(.anime) .clef-staff:nth-of-type(5) { animation-delay: 1680ms; }
.js:not(.anime) .clef-glyph {
  opacity: 0;
  animation: clef-fillin 900ms var(--ease-out) 1900ms forwards;
}

/* The brass nib rides the full pen path (Chromium/Firefox; harmlessly
   absent where offset-path is unsupported). */
.js:not(.anime) .clef-note, .js:not(.anime) .clef-note-stem {
  opacity: 0;
  animation: clef-rise 420ms var(--ease-out) forwards;
}
.js:not(.anime) .n1 { animation-delay: 2950ms; }
.js:not(.anime) .n2 { animation-delay: 3300ms; }
.js:not(.anime) .n3 { animation-delay: 3650ms; }

@keyframes clef-draw { to { stroke-dashoffset: 0; } }
@keyframes clef-fillin { to { opacity: 1; } }
@keyframes clef-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js:not(.anime) .clef-staff { animation: none; stroke-dashoffset: 0; }
  .js:not(.anime) .clef-glyph { animation: none; opacity: 1; }
  .js:not(.anime) .clef-note, .js:not(.anime) .clef-note-stem { animation: none; opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Section-transition photo bands ---------------------------------------------- */
.section-photo {
  border-top: var(--rule-soft);
  border-bottom: var(--rule-soft);
  background: var(--surface-sunken);
}
.section-photo img {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 420px);
  object-fit: cover;
}

/* ---- Trust strip ---------------------------------------------------------------- */
.trust-strip { border-bottom: var(--rule-soft); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5); padding-top: var(--space-5); padding-bottom: var(--space-5);
}
.trust-grid strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-lg); color: var(--text-heading); display: block;
}
.trust-grid span { font-size: var(--text-sm); color: var(--text-muted); }

/* ---- Sections ---------------------------------------------------------------------- */
.section { padding: var(--space-section) 0; }
.section-sunken { background: var(--surface-sunken); }
.section-dark { background: var(--surface-inverse); color: var(--text-on-dark); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: var(--space-3); }
.section-lede { color: var(--text-muted); font-size: var(--text-md); }
.section-dark .section-lede { color: var(--text-on-dark-muted); }

/* Scroll reveal — fade + 10px rise, 220ms, ease-out (rules-motion) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Cards -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface-card);
  border: var(--rule-soft);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.card-figure {
  margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-2);
  border-bottom: var(--rule-soft);
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  overflow: hidden;
}
.card-figure img { display: block; width: 100%; height: auto; }
.card .icon { color: var(--text-brass); width: 26px; height: 26px; }
.card h3 { margin: 0; }
.card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }
.card .card-link {
  margin-top: auto; padding-top: var(--space-2);
  font-weight: 600; font-size: var(--text-sm); text-decoration: none;
}
.card .card-link::after { content: " →"; color: var(--brass-500); }

/* Kid-centric age badge — terracotta, sparing */
.badge-age {
  align-self: flex-start;
  background: var(--terracotta-100); color: var(--terracotta-600);
  font-size: var(--text-xs); font-weight: 600;
  padding: 2px 10px; border-radius: var(--radius-pill);
}

/* ---- Feature lists -------------------------------------------------------------------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.feature-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.feature-list li::before {
  content: "✓";
  color: var(--brass-600); font-weight: 700; flex: none;
  margin-top: 1px;
}
.feature-list strong { color: var(--text-heading); }
.section-dark .feature-list strong { color: var(--text-on-dark); }
.section-dark .feature-list li { color: var(--text-on-dark-muted); }

/* ---- Split layouts ----------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.split-panel {
  background: var(--surface-card);
  border: var(--rule-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}
.split-panel h3 { margin-top: 0; }

/* Instrument chips */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.chip-row li {
  background: var(--surface-card);
  border: var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: var(--text-sm);
  color: var(--text-body);
}

/* ---- Steps (numbered, hairline top, brass display numerals) -------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.steps li { border-top: var(--rule-strong); padding-top: var(--space-4); }
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-2xl); color: var(--brass-500);
  display: block; line-height: 1; margin-bottom: var(--space-2);
}
.steps strong { display: block; color: var(--text-heading); margin-bottom: 2px; }
.steps span { font-size: var(--text-sm); color: var(--text-muted); }

/* ---- Owner profile ---------------------------------------------------------------------------- */
.owner-figure {
  margin: 0;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  aspect-ratio: 4 / 4.6;
  display: grid; place-items: center;
  position: relative;
}
.owner-figure .placeholder-note {
  color: var(--text-faint); font-size: var(--text-sm); text-align: center; padding: var(--space-5);
}
.owner-figure .placeholder-note .glyph {
  font-family: var(--font-display); font-size: var(--text-3xl); color: var(--brass-400);
  display: block; margin-bottom: var(--space-2);
}
.owner-quote {
  border-left: 3px solid var(--brass-400);
  margin: var(--space-5) 0 0; padding: var(--space-1) 0 var(--space-1) var(--space-4);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--text-lg); color: var(--text-heading); line-height: 1.4;
}
.owner-quote cite {
  display: block; margin-top: var(--space-2);
  font-family: var(--font-body); font-style: normal;
  font-size: var(--text-sm); color: var(--text-muted);
}

/* ---- Testimonials -------------------------------------------------------------------------------- */
.pull-quote {
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-4); align-items: center;
  text-align: center;
  margin: 0 0 var(--space-5);
}
.pull-quote .mark { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--brass-500); line-height: 0.5; }
.pull-quote blockquote {
  margin: 0; max-width: 640px;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--text-xl); color: var(--text-heading); line-height: 1.4;
}
.pull-quote footer { font-size: var(--text-sm); color: var(--text-muted); }

.testimonial-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial {
  background: var(--surface-card);
  border: var(--rule-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: var(--space-3);
  margin: 0;
}
.testimonial blockquote { margin: 0; font-size: var(--text-sm); color: var(--text-body); }
.testimonial footer { margin-top: auto; font-size: var(--text-xs); color: var(--text-muted); }
.testimonial footer strong { color: var(--text-heading); display: block; font-size: var(--text-sm); }

/* ---- Pricing ---------------------------------------------------------------------------------------- */
.pricing-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.price-card {
  background: var(--surface-card);
  border: var(--rule-soft);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.price-card.featured { border-top: 3px solid var(--brass-500); }
.price-card .plan-flag {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--text-brass); margin-bottom: var(--space-2);
}
.price-figure {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-3xl); color: var(--text-heading);
  margin: var(--space-2) 0 0;
}
.price-figure span { font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--text-muted); }
.price-note { font-size: var(--text-xs); color: var(--text-muted); margin: var(--space-1) 0 0; }
.price-card .feature-list { margin: var(--space-5) 0; }
.price-card .btn { margin-top: auto; }
.pricing-disclaimer { text-align: center; color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-5); }

/* ---- FAQ ------------------------------------------------------------------------------------------------ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list details { border-top: var(--rule-soft); padding: var(--space-4) var(--space-2); }
.faq-list details:last-child { border-bottom: var(--rule-soft); }
.faq-list summary {
  cursor: pointer; font-weight: 600; color: var(--text-heading); font-size: var(--text-base);
  list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); align-items: baseline;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: var(--text-lg); color: var(--brass-500); flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: var(--space-3) 0 var(--space-1); color: var(--text-muted); font-size: var(--text-sm); max-width: 60em; }

/* ---- CTA band --------------------------------------------------------------------------------------------- */
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../assets/pattern-staff.svg') repeat;
  background-size: 240px 64px;
  filter: invert(1);
  opacity: 0.5;
}
.cta-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding-top: var(--space-8); padding-bottom: var(--space-8);
}
.cta-inner h2 { margin: 0 0 var(--space-2); }
.cta-inner p { margin: 0; max-width: 34em; }
.cta-contact-row { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-4); font-size: var(--text-sm); }
.cta-contact-row a, .cta-contact-row span { color: var(--text-on-dark-muted); text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.cta-contact-row a:hover { color: var(--cream-100); }
.cta-contact-row .icon { width: 16px; height: 16px; color: var(--brass-300); }

/* ---- Footer -------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--surface-inverse); font-size: var(--text-sm); color: var(--text-on-dark-muted); }
.footer-grid {
  display: grid; gap: var(--space-7);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: var(--space-8) 0 var(--space-7);
}
.site-footer h4 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--brass-300); margin: 0 0 var(--space-3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--cream-100); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-4); }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand .wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--cream-100); }
.footer-legal {
  border-top: 1px solid var(--border-on-dark);
  padding: var(--space-4) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
  font-size: var(--text-xs);
}

/* ---- Responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(50%, 190px); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface-card);
    border-bottom: var(--rule-soft);
    box-shadow: var(--shadow-md);
    margin: 0; padding: var(--space-4) var(--space-5);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: var(--space-3) 0; border-bottom: var(--rule-soft); }
}
@media (max-width: 540px) {
  .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .logo .tagline { display: none; }
}
