/* ==========================================================================
   Rivera Educational Consulting — site.css
   System: DESIGN.md (navy/teal, Fraunces + Manrope, native CSS, no build)
   ========================================================================== */

:root {
  /* Color tokens — DESIGN.md */
  --navy: #1E2A4A;
  --teal: #12786B;
  --teal-text: #0E5F55;        /* teal darkened for small text on light (WCAG) */
  --teal-on-dark: #45C0AE;     /* teal tint for eyebrows/links on navy — #12786B fails 3:1 on navy */
  --white: #FFFFFF;
  --off-white: #F6F5F1;
  --ink: #1A2233;
  --muted: #5A6478;
  --line: rgba(30, 42, 74, 0.12);
  --error: #A63D2F;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;

  /* Motion — PRD §4, final */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --max-w: 1120px;
  --pad-x: clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.2; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-text); text-decoration-color: rgba(18, 120, 107, 0.4); text-underline-offset: 3px; transition: color 150ms ease, text-decoration-color 150ms ease; }
a:hover { color: var(--teal); text-decoration-color: var(--teal); }

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

::selection { background: rgba(18, 120, 107, 0.18); }

/* ---------- Type roles ---------- */

.hero-h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 560;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-h {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-text); /* darkened teal: 0.8rem bold is below WCAG large-text size */
  margin-bottom: 0.9rem;
}

.on-dark .eyebrow, .band-dark .eyebrow { color: var(--teal-on-dark); }
.on-dark .section-h, .band-dark .section-h { color: var(--white); }

.serif-sub {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--navy);
}

.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 46rem; }

/* ---------- Layout primitives ---------- */

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section[id] { scroll-margin-top: 1.5rem; }
.section--tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.bg-off { background: var(--off-white); }

.band-dark { background: var(--navy); color: rgba(255, 255, 255, 0.88); position: relative; overflow: hidden; }
.band-dark .band-texture {
  position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  opacity: 0.1; filter: grayscale(0.7) brightness(0.85);
  pointer-events: none;
}
.band-dark > .wrap { position: relative; }

/* ---------- Header ---------- */

.site-header {
  position: relative; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header--overlay {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 26px; height: 39px; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 0.98rem; letter-spacing: 0.02em; color: var(--navy); }
.brand-sub { font-weight: 600; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.site-header--overlay .brand-name { color: var(--white); }
.site-header--overlay .brand-sub { color: rgba(255, 255, 255, 0.72); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.site-nav a {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  color: var(--ink); padding: 0.6rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.site-nav a:hover { color: var(--teal-text); }
.site-nav a[aria-current="page"] { color: var(--teal-text); border-bottom-color: var(--teal); }
.site-header--overlay .site-nav a { color: rgba(255, 255, 255, 0.85); }
.site-header--overlay .site-nav a:hover { color: var(--white); }
.site-header--overlay .site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--teal-on-dark); }

.nav-scrim { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  color: var(--navy);
}
.site-header--overlay .nav-toggle { color: var(--white); }
.nav-toggle svg { width: 100%; height: 100%; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(20rem, 86vw);
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
    background: var(--navy); padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 250ms var(--ease-drawer);
    visibility: hidden; z-index: 50;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a, .site-header--overlay .site-nav a { color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; padding: 0.55rem 0; }
  .site-nav a[aria-current="page"], .site-header--overlay .site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--teal-on-dark); }
  .nav-toggle.is-open { position: fixed; top: 16px; right: 16px; z-index: 60; color: var(--white); }
  .nav-scrim {
    display: block;
    position: fixed; inset: 0; z-index: 45;
    background: rgba(26, 34, 51, 0.5);
    opacity: 0; visibility: hidden; border: 0; padding: 0; cursor: default;
    transition: opacity 250ms ease, visibility 250ms;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(88svh, 780px);
  background: var(--navy);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; filter: saturate(0.8) brightness(0.94); }
/* Functional scrim, not decoration: navy 40–70%, heavier at the text edge (PRD §3.2) */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 42, 74, 0.55), rgba(30, 42, 74, 0) 26%),
    linear-gradient(to top, rgba(30, 42, 74, 0.88) 0%, rgba(30, 42, 74, 0.62) 45%, rgba(30, 42, 74, 0.42) 100%);
}
.hero-inner { position: relative; width: 100%; padding-top: 9rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-copy { max-width: 44rem; }
.hero-copy .eyebrow { color: var(--teal-on-dark); }
.hero-sub { font-size: 1.1875rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); max-width: 38rem; margin: 1.3rem 0 2rem; }

/* Hero entrance — once per visit (PRD §4) */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero-copy > * { animation: rise 650ms var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.hero-copy > *:nth-child(4) { animation-delay: 240ms; }
.hero-media img { animation: settle 1.2s var(--ease-out) both; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  border-radius: 8px; border: 0; cursor: pointer;
  text-decoration: none;
  background: var(--teal); color: var(--white);
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:hover { background: var(--teal-text); color: var(--white); }
.btn:active { transform: scale(0.97); }

.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn--quiet { background: transparent; color: var(--teal-text); box-shadow: inset 0 0 0 1.5px rgba(18, 120, 107, 0.45); }
.btn--quiet:hover { background: rgba(18, 120, 107, 0.07); color: var(--teal-text); }

.text-link {
  font-weight: 700; text-decoration: none; color: var(--teal-text);
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
  transition: background-size 220ms var(--ease-out), color 150ms ease;
}
.text-link::after { content: " →"; display: inline-block; transition: transform 200ms var(--ease-out); }
.text-link:hover { color: var(--teal); }

/* ---------- Cards ---------- */

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 34, 51, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { color: var(--ink); }
.card-media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--off-white); }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 300ms var(--ease-out); }
.card-body { padding: 1.5rem 1.6rem 1.7rem; }
.card-body .serif-sub { margin-bottom: 0.45rem; }
.card-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.card-cta { display: inline-block; margin-top: 0.9rem; font-weight: 700; font-size: 0.92rem; color: var(--teal-text); transition: transform 200ms var(--ease-out), color 150ms ease; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(26, 34, 51, 0.12); }
  .card:hover .card-media img { transform: scale(1.03); }
  .card:hover .card-cta { transform: translateX(3px); color: var(--teal); }
  .btn:hover { transform: translateY(-1px); }
  .text-link:hover { background-size: 100% 1.5px; }
  .text-link:hover::after { transform: translateX(3px); }
}

/* Asymmetric offering grid: one wide feature row, then three columns (PRD §5.1) */
.offer-grid { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
.card--feature { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .card--feature { flex-direction: row; }
  .card--feature .card-media { flex: 1 1 55%; aspect-ratio: auto; min-height: 320px; }
  .card--feature .card-body { flex: 1 1 45%; display: flex; flex-direction: column; justify-content: center; padding: 2.2rem 2.4rem; }
}
.card--feature .serif-sub { font-size: 1.7rem; }
.flag-tag {
  display: inline-block; align-self: flex-start;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-text); background: rgba(18, 120, 107, 0.09);
  padding: 0.3rem 0.6rem; border-radius: 4px; margin-bottom: 0.9rem;
}

/* ---------- Stats ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.5rem; margin-top: 2.4rem; }
@media (min-width: 860px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } .stat-grid--six { grid-template-columns: repeat(3, 1fr); } }
.stat-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100, "SOFT" 0, "WONK" 0;
  font-weight: 560; font-size: clamp(2.3rem, 4.5vw, 3.4rem); line-height: 1;
  color: var(--white); font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 0.55rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); line-height: 1.45; }
.stat--light .stat-num { color: var(--navy); }
.stat--light .stat-label { color: var(--muted); }

/* ---------- Pull quote ---------- */

.pull-quote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
  font-weight: 560;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.3; color: var(--navy);
  border-left: 3px solid var(--teal);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  margin: clamp(2.2rem, 5vw, 3.5rem) 0;
}

/* ---------- Prose (About, Services, Posts) ---------- */

.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-family: var(--sans); font-weight: 800; font-size: 1.5rem; color: var(--navy); margin: 2.2em 0 0.7em; letter-spacing: -0.01em; }
.prose h2.section-h, .prose .section-h { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; margin-top: 0; }
.prose h3 { font-family: var(--sans); font-weight: 800; font-size: 1.17rem; color: var(--navy); margin: 1.9em 0 0.6em; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--navy); }

.post-body { font-size: 1.125rem; line-height: 1.7; }
.post-meta { font-size: 0.92rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.post-note { font-style: italic; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; }

.post-hero { padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.post-h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  font-weight: 560;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--navy);
  max-width: 48rem;
}

/* ---------- Insights cards ---------- */

.post-grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card-date { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; display: block; }

/* ---------- Service sections ---------- */

.svc { display: grid; gap: 2.2rem; align-items: stretch; }
@media (min-width: 880px) {
  .svc { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .svc--flip .svc-media { order: -1; }
}
.svc-media { border-radius: 16px; overflow: hidden; }
.svc-media img { filter: saturate(0.85); width: 100%; height: 100%; object-fit: cover; }
.engage {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.4rem 1.6rem; margin-top: 1.8rem;
}
.bg-off .engage { background: var(--white); }
.engage h3 { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); margin: 0 0 0.7rem; }
.engage ul { margin: 0; padding-left: 1.2rem; }
.engage li { margin-bottom: 0.4em; color: var(--ink); }

/* ---------- Screenshot frame ---------- */

.shot-frame {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(10, 16, 34, 0.45);
}
.shot-frame--light { border-color: var(--line); box-shadow: 0 16px 44px rgba(26, 34, 51, 0.16); }
.shot-caption { font-size: 0.88rem; color: var(--muted); margin-top: 0.8rem; }
.band-dark .shot-caption { color: rgba(255, 255, 255, 0.6); }

/* ---------- Contact form ---------- */

.form-grid { display: grid; gap: 1.2rem; max-width: 36rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .form-field--full { grid-column: 1 / -1; } }
.form-field label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.35rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.75rem 0.9rem; min-height: 48px;
  font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid rgba(30, 42, 74, 0.25); border-radius: 8px;
  transition: border-color 150ms ease;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--error); }
.field-error { display: none; font-size: 0.88rem; font-weight: 600; color: var(--error); margin: 0.35rem 0 0; }
.form-field.has-error .field-error { display: block; }

/* ---------- CTA band ---------- */

.cta-band { text-align: left; }
.cta-band .section-h { max-width: 30ch; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-sub { color: rgba(255, 255, 255, 0.6); }
.footer-desc { margin-top: 1rem; max-width: 26rem; font-size: 0.98rem; }
.footer-h { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin: 0 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.55);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ---------- Utilities & page-specific ---------- */

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  font-weight: 700; text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus-visible { top: 0; color: var(--white); }

.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-close { display: block; }
.nav-toggle.is-open .icon-menu { display: none; }

.stat-num--sm { font-size: clamp(1.5rem, 2.6vw, 2.05rem); padding-top: 0.5rem; }

/* Dark typographic page hero (Digital Facade) — sits under the overlay header */
.page-hero-dark { padding: calc(76px + clamp(3rem, 7vw, 5rem)) 0 clamp(3.5rem, 7vw, 5.5rem); }
.page-hero-dark .hero-sub { margin: 1.3rem 0 2rem; }
.page-hero-dark .shot-frame { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Light typographic page hero (About, Services, Insights, Contact) */
.page-hero { padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2.2rem, 5vw, 3.5rem); }
.page-hero .lede { margin-top: 1.1rem; }

.what-grid { display: grid; gap: 2.2rem 1.6rem; margin-top: 2.6rem; }
@media (min-width: 840px) { .what-grid { grid-template-columns: repeat(3, 1fr); } }
.what-grid .serif-sub { margin-bottom: 0.5rem; }
.what-grid p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.what-num {
  font-family: var(--serif); font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0;
  font-weight: 560; font-size: 1.1rem; color: var(--teal-text);
  display: block; margin-bottom: 0.6rem;
}

.post-cta { margin-top: 2.2rem; }

/* Dark-band variant of the three-column value grid */
.band-dark .serif-sub { color: var(--white); }
.band-dark .what-num { color: var(--teal-on-dark); }
.band-dark .what-grid p { color: rgba(255, 255, 255, 0.75); }

/* Leadership portrait (About) — modest editorial crop, never a hero headshot */
.leader-grid { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 800px) { .leader-grid { grid-template-columns: minmax(0, 42rem) 280px; gap: clamp(2.5rem, 5vw, 4rem); } }
.portrait { border-radius: 16px; overflow: hidden; max-width: 300px; }
.portrait img { filter: saturate(0.9); }
.portrait figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.7rem; }

/* ---------- Pricing panels (mirrors the Digital Facade pitch layout) ---------- */

.price-cols { display: grid; gap: 1.4rem; margin-top: 2.6rem; align-items: start; }
@media (min-width: 900px) { .price-cols { grid-template-columns: 1fr 1fr; } }
.price-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.8rem 1.9rem 2rem;
}
.price-panel--featured { border: 2px solid var(--teal); }
.price-flag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); background: var(--teal);
  padding: 0.3rem 0.65rem; border-radius: 4px; margin-bottom: 1rem;
}
.price-panel h3 { font-family: var(--sans); font-weight: 800; font-size: 1.35rem; color: var(--navy); margin-bottom: 0.4rem; }
.price-panel .sub { color: var(--muted); font-size: 0.98rem; }
.tier-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 0.6rem; }
.tier-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.tier-row:last-of-type { border-bottom: 0; }
.tier-band { font-weight: 600; color: var(--ink); }
.tier-price {
  font-family: var(--serif); font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0;
  font-weight: 600; font-size: 1.35rem; color: var(--navy); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tier-price small { font-family: var(--sans); font-weight: 600; font-size: 0.82rem; color: var(--muted); }
.checks { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.checks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55em; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-text); font-weight: 800; }
.piece { padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; background: var(--off-white); }
.piece + .plus { text-align: center; font-weight: 800; font-size: 1.2rem; color: var(--muted); margin: 0.5rem 0; }
.piece .pname { font-weight: 800; color: var(--navy); }
.piece .pprice {
  font-family: var(--serif); font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0;
  font-weight: 600; font-size: 1.5rem; color: var(--navy); margin: 0.15rem 0 0.3rem;
}
.piece .pprice small { font-family: var(--sans); font-weight: 600; font-size: 0.82rem; color: var(--muted); }
.piece .pdesc { font-size: 0.95rem; color: var(--muted); }
.price-note { margin-top: 1.6rem; font-size: 0.95rem; color: var(--muted); max-width: 62rem; }
.price-note strong { color: var(--navy); }

/* ---------- Scroll reveals (one-shot, JS-gated) ---------- */

.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: var(--rv-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion: keep fades, remove movement (PRD §4) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > * { animation-name: rise-fade; animation-duration: 400ms; }
  .hero-media img { animation: none; }
  @keyframes rise-fade { from { opacity: 0; } to { opacity: 1; } }
  .js .reveal { transform: none; transition: opacity 400ms ease; }
  .card, .card-media img, .btn, .card-cta, .text-link, .text-link::after { transition-property: box-shadow, background-color, color; }
  @media (hover: hover) and (pointer: fine) {
    .card:hover { transform: none; }
    .card:hover .card-media img { transform: none; }
    .card:hover .card-cta { transform: none; }
    .btn:hover { transform: none; }
    .text-link:hover::after { transform: none; }
  }
  .site-nav { transition: none; }
}
