/* ============================================================
   Bodywork website — shared page styles
   Requires (load order): colors_and_type.css, signature.css, site.css
   Header & footer markup are injected by site.js.
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--white); color: var(--fg1); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-6) 0; }

/* ---- shared type helpers ---- */
.h-display { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; color: var(--soma-700); letter-spacing: -.015em; margin: 0; }
.h-1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; color: var(--ink-900); letter-spacing: -.01em; margin: 0; }
.h-2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 39px); line-height: 1.14; color: var(--ink-900); letter-spacing: -.005em; margin: 0; }
.h-3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.2; color: var(--soma-700); margin: 0; }
.lead { font-family: var(--font-body); font-size: var(--fs-body-lg); line-height: 1.55; color: var(--fg2); margin: 0; }
.prose { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.7; color: var(--fg2); }
.prose p { margin: 0 0 var(--space-4); }
.center { text-align: center; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

/* ---- buttons ---- */
.btn { font-family: var(--font-body); font-weight: 600; font-size: 15px; border-radius: var(--radius-sm);
  padding: 14px 26px; border: 1.5px solid transparent; cursor: pointer; display: inline-flex; align-items: center;
  gap: 9px; text-decoration: none; transition: background var(--dur-sm) var(--ease-standard), color var(--dur-sm), border-color var(--dur-sm); }
.btn-primary { background: var(--rose-800); color: #fff; }
.btn-primary:hover { background: var(--rose-900); }
.btn-secondary { background: transparent; color: var(--soma-700); border-color: var(--soma-700); }
.btn-secondary:hover { background: var(--soma-100); }
.btn-ghost { background: transparent; color: var(--soma-700); border: none; padding: 14px 6px; text-decoration: underline; text-underline-offset: 4px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper-50), 0 0 0 4px var(--soma-500); }
.btn-arrow::after { content: "\2192"; font-weight: 400; }

/* centered section eyebrows: a line on BOTH sides */
.anchor-eyebrow[style*="center"]::after { content: ""; width: 28px; height: 1.5px; background: var(--soma-500) !important; border: none !important; border-radius: 0 !important; opacity: .5; flex: none; }

/* ============ HEADER ============ */
.topbar { background: var(--soma-900); color: var(--soma-100); font-family: var(--font-eyebrow);
  font-size: 12px; letter-spacing: .07em; text-transform: uppercase; padding: 8px 20px;
  display: flex; align-items: center; justify-content: center; gap: var(--space-5); position: relative; }
.topbar .tb-msg { opacity: .92; }
.topbar .tb-actions { position: absolute; right: 20px; display: flex; align-items: center; gap: var(--space-4); }
.topbar .tb-link { color: var(--soma-100); text-decoration: none; opacity: .8; }
.topbar .tb-link:hover { opacity: 1; }
.topbar .tb-contact { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-pill); padding: 5px 16px; letter-spacing: .1em; transition: background var(--dur-sm); }
.topbar .tb-contact:hover { background: var(--rose-800); border-color: var(--rose-800); }
@media (max-width: 720px){ .topbar { flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-3); padding: 7px 14px; } .topbar .tb-actions { position: static; } .topbar .tb-link { display: none; } .topbar .tb-msg { font-size: 11px; text-align: center; } }

header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-4); height: 92px; }
.nav .logo { flex: none; margin-right: var(--space-4); }
.nav .logo img { height: 60px; width: auto; max-width: none; display: block; }
.hero-photo { width: 100%; max-width: 440px; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); display: block; object-fit: cover; }
.hero-photo--tall { aspect-ratio: 4/5; }
.nav .tabs { display: flex; align-items: center; gap: 0; margin-left: auto; }
.tab { position: relative; }
.tab > a { display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-700); text-decoration: none; cursor: pointer;
  transition: color var(--dur-sm), background var(--dur-sm); white-space: nowrap; }
.tab > a:hover { color: var(--soma-700); background: var(--soma-100); }
.tab.active > a { color: var(--soma-700); }
.tab.active > a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 1px; height: 2px; background: var(--rose-700); border-radius: 2px; }
.tab .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .55; }
.nav .spacer { display: none; }
.menu-btn { display: none; }
.mobile-menu, .mm-backdrop { display: none; }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 330px); background: var(--white); box-shadow: var(--shadow-3); transform: translateX(105%); transition: transform .3s var(--ease-standard); z-index: 120; padding: var(--space-9) var(--space-6) var(--space-6); overflow-y: auto; }
.mobile-menu.open { transform: none; }
.mobile-menu a { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink-900); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { border-bottom: none; color: #fff; text-align: center; justify-content: center; }
.mm-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 30px; line-height: 1; color: var(--ink-500); cursor: pointer; }
.mm-backdrop { position: fixed; inset: 0; background: rgba(16,42,56,.4); z-index: 110; opacity: 0; transition: opacity .3s ease; }
.mm-backdrop.open { display: block; opacity: 1; }
body.menu-open { overflow: hidden; }
.nav-book { flex: none; white-space: nowrap; padding: 10px 15px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-left: var(--space-3); }
.dropdown { position: absolute; top: calc(100% + 4px); left: 0; min-width: 290px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-3); padding: var(--space-3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur-sm) var(--ease-standard), transform var(--dur-sm) var(--ease-standard); }
.tab:hover .dropdown, .tab:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: var(--radius-sm); text-decoration: none; transition: background var(--dur-sm); }
.dropdown a:hover { background: var(--soma-100); }
.dd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-50); border: 1.5px solid var(--rose-700); box-sizing: border-box; flex: none; margin-top: 4px; }
.dd-title { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-900); display: block; }
.dd-sub { font-family: var(--font-body); font-size: 12px; color: var(--ink-500); display: block; margin-top: 1px; }
.menu-btn { display: none; }

/* ---- hero watermark: faint mandala mark (replaces line pattern) ---- */
.lattice { background-image: none; }
.lattice--vignette { -webkit-mask-image: none; mask-image: none; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/mark.png") center / 460px no-repeat; opacity: .05;
  pointer-events: none; z-index: 0;
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

/* ---- big word watermark (display font, faint, centered behind a section) ---- */
.has-wm { position: relative; overflow: hidden; }
.has-wm > .container, .has-wm > * { position: relative; z-index: 1; }
.wm-word { position: absolute; left: auto; right: var(--space-5); bottom: var(--space-5); top: auto; transform: none; z-index: 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(192px, 37vw, 480px); line-height: .8;
  letter-spacing: -.03em; color: var(--soma-700); opacity: .05; white-space: nowrap; pointer-events: none; user-select: none; }
.wm-word--light { color: #ffffff; opacity: .06; }

/* ---- full-bleed split hero ---- */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 78vh; position: relative; }
.hero-split .hs-copy { display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-9) var(--space-8); padding-left: max(var(--space-8), calc((100vw - 1180px) / 2 + var(--space-6))); }
.hero-split .hs-media { position: relative; background-size: cover; background-position: center top; min-height: 56vh; }
/* soft white fade where the photo meets the copy panel (home hero) */
.hero-split--media-left .hs-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 52%, rgba(255,255,255,.72) 84%, var(--white) 100%); }
/* same soft fade for a right-hand photo (copy on the left) */
.hero-split .hs-media.hs-media--fade-left::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,.72) 16%, rgba(255,255,255,0) 48%); }
/* photo on the left, copy on the right (mirrors reference) */
.hero-split--media-left .hs-copy { padding-left: var(--space-8);
  padding-right: max(var(--space-8), calc((100vw - 1180px) / 2 + var(--space-6))); }
.hero-head em { font-style: italic; font-weight: 400; }
.hero-sub { font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 2.1vw, 25px); line-height: 1.38; color: var(--fg2); margin: 0; }
.hero-split .hs-media--tint { background: radial-gradient(120% 90% at 50% 40%, var(--soma-100), var(--paper-50)); display: flex; align-items: center; justify-content: center; padding: var(--space-8); }
.hero-split .hs-media--tint img { max-height: 62vh; width: auto; }
@media (max-width: 860px){
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .hs-copy { padding: var(--space-8) var(--space-6); }
  .hero-split .hs-media { min-height: 62vh; order: -1; }
  .hero-split .hs-copy > .anchor-eyebrow { white-space: nowrap; font-size: clamp(9.5px, 2.9vw, 12px); letter-spacing: .05em; gap: var(--space-2); }
  .hero-split .hs-copy > .anchor-eyebrow::before { width: 16px; }
}

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--space-8); padding: var(--space-10) 0 var(--space-11); }
.hero-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px;
  background: radial-gradient(110% 90% at 65% 35%, var(--soma-100), transparent 62%); }
.hero-media img { display: block; max-height: 500px; width: auto; }
.eyebrow-row { margin-bottom: var(--space-4); }
.hero .cta-row { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-7); align-items: center; }

/* ============ CREDENTIAL TICKER ============ */
.authority { background: var(--soma-900); color: #fff; overflow: hidden; }
.cred-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cred-track { display: flex; align-items: center; gap: var(--space-5); width: max-content; padding: var(--space-5) 0; animation: cred-scroll 52s linear infinite; }
.cred-track:hover { animation-play-state: paused; }
.cred-item { font-family: var(--font-eyebrow); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soma-100); white-space: nowrap; }
.cred-node { width: 6px; height: 6px; border-radius: 50%; background: var(--rose-300); flex: none; }
@keyframes cred-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .cred-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ---- page quote (modality pages) ---- */
.page-quote { background: var(--white); padding: var(--space-8) 0; text-align: center; }
.page-quote .pq { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(24px,3.2vw,38px); line-height: 1.3; color: var(--soma-700); letter-spacing: -.01em; margin: 0 auto; max-width: 24ch; }
.page-quote .quote-cite { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-4); font-family: 'Pinyon Script', cursive; font-size: 40px; line-height: 1; color: var(--rose-700); }
.page-quote .quote-cite::before, .page-quote .quote-cite::after { content: ""; width: 48px; height: 1px; background: var(--rose-300); display: block; }

/* ============ MODALITY / PROGRAM / BENEFIT CARDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 980px){ .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid-4 { grid-template-columns: 1fr; } }

.mcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); box-shadow: var(--shadow-1); text-decoration: none; transition: box-shadow var(--dur-md) var(--ease-standard), transform var(--dur-md) var(--ease-standard); }
.mcard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.mcard .ic { display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); width: 92px; height: 92px; border-radius: 50%; border: 1.5px solid var(--soma-300); background: var(--white); }
.mcard .ic img { width: 68px; height: 68px; object-fit: contain; }
.mcard h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: var(--soma-700); margin: 0 0 var(--space-2); }
.mcard p { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--ink-700); margin: 0 0 var(--space-5); flex: 1; }
.mcard .more { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--soma-700); display: inline-flex; align-items: center; gap: 7px; }
.mcard .more::after { content: "\2192"; }

.pcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.chip-sm { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--soma-700); background: var(--soma-100); border-radius: var(--radius-pill); padding: 5px 12px; }
.pcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; color: var(--ink-900); margin: 0 0 var(--space-2); }
.pcard p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.55; color: var(--ink-700); margin: 0 0 var(--space-5); flex: 1; }

.benefit { padding: var(--space-2) 0; }
.benefit .ic { display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid var(--soma-300); background: var(--white); }
.benefit .ic img { width: 66px; height: 66px; object-fit: contain; }
.benefit h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: var(--ink-900); margin: 0 0 var(--space-2); }
.benefit p { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--fg2); margin: 0; }

/* ============ MECHANISM PANEL ============ */
.mechanism { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; }
.anno { position: relative; }
.anno img { display: block; width: 100%; }

/* ============ STAT BLOCK ============ */
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5vw, 56px); color: var(--soma-700); line-height: 1; }
.stat .lbl { font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin-top: var(--space-3); }

/* ============ TESTIMONIAL ============ */
.tcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-1); }
.tcard .quote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.4; color: var(--ink-900); margin: 0 0 var(--space-5); }
.tcard .who { display: flex; align-items: center; gap: var(--space-3); }
.tcard .who .name { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-900); }
.tcard .who .ctx { font-family: var(--font-body); font-size: 13px; color: var(--ink-500); }
.result-chip { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--rose-900); background: var(--rose-100); border-radius: var(--radius-pill); padding: 6px 14px; display: inline-block; }

/* ============ CTA BAND ============ */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); border: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(120% 150% at 90% 115%, rgba(168,92,110,.5), transparent 55%), radial-gradient(95% 130% at 2% -10%, rgba(62,117,147,.4), transparent 55%), var(--soma-900); }
.cta-orn { display: block; width: 48px; height: 48px; margin: 0 auto var(--space-5); position: relative; z-index: 1; }
.cta-band--full { border-radius: 0; border-left: none; border-right: none; padding-left: 0; padding-right: 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px,3.4vw,40px); color: #fff; margin: 0 0 var(--space-3); letter-spacing: -.01em; }
.cta-band p { font-family: var(--font-body); font-size: var(--fs-body-lg); color: var(--soma-100); margin: 0 auto var(--space-7); max-width: 48ch; }
.cta-band .cta-row { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.1); }
.cta-lattice { position: absolute; inset: 0; background: url("assets/mark.png") right -50px bottom -50px / 260px no-repeat; opacity: .1; }
.cta-band > * { position: relative; z-index: 1; }

/* ============ FOOTER ============ */
footer.site { position: relative; overflow: hidden; background: var(--soma-900); color: var(--soma-100); margin-top: 0; }
footer.site .container { position: relative; z-index: 1; padding-top: var(--space-10); padding-bottom: var(--space-7); }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-7); align-items: start; }
.foot-brand img { height: 66px; margin-bottom: var(--space-5); }
.foot-brand p { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--soma-300); margin: 0; max-width: 30ch; }
.foot-social { display: flex; gap: 11px; margin-top: var(--space-5); }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; color: var(--soma-100); transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
.foot-social a:hover { background: var(--rose-800); border-color: var(--rose-800); color: #fff; transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; display: block; }
.foot-col h4 { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soma-300); margin: 21px 0 var(--space-4); }
.foot-col a { display: block; font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--soma-100); text-decoration: none; padding: 5px 0; transition: color var(--dur-sm); white-space: nowrap; }
.foot-col a:hover { color: #fff; }
.foot-nap { font-family: var(--font-body); font-size: 13.5px; color: var(--soma-300); line-height: 1.7; margin-top: var(--space-4); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; justify-content: space-between; margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.12); }
.foot-bottom .legal { font-family: var(--font-body); font-size: 12px; color: var(--soma-300); }
.foot-bottom .legal a { color: var(--soma-100); text-decoration: none; margin-left: var(--space-4); }
.foot-disclaimer { font-family: var(--font-body); font-size: 11.5px; color: var(--soma-300); line-height: 1.6; margin-top: var(--space-5); max-width: 80ch; }
.foot-credit { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soma-300); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.08); }
.foot-credit a { color: var(--rose-200); text-decoration: none; }
.foot-credit a:hover { color: #fff; }

/* ============ ENTRY SUBSCRIBE POPUP ============ */
.sub-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  background: rgba(12,42,48,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity var(--dur-md) var(--ease-standard); }
.sub-overlay.open { opacity: 1; visibility: visible; }
.sub-modal { position: relative; width: 100%; max-width: 440px; background: var(--paper-50); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: var(--space-9) var(--space-8) var(--space-7); text-align: center;
  transform: translateY(12px) scale(.98); transition: transform var(--dur-md) var(--ease-decelerate); }
.sub-overlay.open .sub-modal { transform: none; }
.sub-mark { display: block; width: 56px; height: 56px; margin: 0 auto var(--space-4); background: url("assets/mark.png") center/contain no-repeat; }
.sub-modal .anchor-eyebrow { justify-content: center; }
.sub-modal .anchor-eyebrow::after { content: ""; width: 28px; height: 1.5px; background: var(--soma-500); opacity: .5; flex: none; }
.sub-h { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--soma-700); margin: var(--space-3) 0 var(--space-2); letter-spacing: -.01em; }
.sub-p { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--fg2); margin: 0 auto var(--space-5); max-width: 36ch; }
.sub-form { display: flex; flex-direction: column; gap: var(--space-3); }
.sub-form input { height: 48px; padding: 0 16px; font-family: var(--font-body); font-size: 15px; border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm); outline: none; background: #fff; }
.sub-form input:focus { border-color: var(--soma-500); box-shadow: 0 0 0 3px rgba(62,117,147,.18); }
.sub-form .btn { justify-content: center; }
.sub-dismiss { margin-top: var(--space-4); background: none; border: none; font-family: var(--font-body); font-size: 13px; color: var(--ink-500); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sub-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink-400); cursor: pointer; }
.sub-close:hover { color: var(--ink-700); }
@media (prefers-reduced-motion: reduce){ .sub-modal { transition: none; transform: none; } }
.foot-lattice { position: absolute; right: var(--space-6); bottom: 0.02em; left: auto; top: auto; width: auto; height: auto; transform: none; background: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(110px, 17vw, 300px); line-height: .8; letter-spacing: -.03em; color: #ffffff; opacity: .05; white-space: nowrap; pointer-events: none; user-select: none; }
.foot-lattice::after { content: "MIA GLEASON"; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; padding: var(--space-9) 0 var(--space-10); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .hero-grid, .page-hero-grid, .mechanism, .grid-3, .grid-2, .foot-top { grid-template-columns: 1fr; }
  .grid-3 { gap: var(--space-5); }
  .foot-top { gap: var(--space-6); text-align: center; }
  .foot-brand p { max-width: none; margin-left: auto; margin-right: auto; }
  .foot-brand img { display: block; margin-left: auto; margin-right: auto; }
  .foot-social { justify-content: center; }
  .foot-bottom { flex-direction: column; justify-content: center; text-align: center; }
  .foot-bottom .legal a { margin: 0 var(--space-3); }
  .foot-credit, .foot-disclaimer { text-align: center; max-width: none; }
  .nav .tabs { display: none; }
  .nav .nav-book { display: none; }
  .menu-btn { display: flex; flex: none; margin-left: auto; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
  .menu-btn span { width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; }
  .mobile-menu { display: block; }
}
@media (max-width: 480px){
  .nav { height: 76px; }
  .nav .logo img { height: 48px; }
}

/* article: keep-reading horizontal scroller */
.art-related .rel-head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-4); }
.rel-nav { display:flex; gap:10px; }
.rel-btn { width:42px; height:42px; border-radius:50%; border:1.5px solid var(--soma-300); background:var(--white); color:var(--soma-700); font-size:20px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s,border-color .2s,color .2s; }
.rel-btn:hover { background:var(--soma-900); border-color:var(--soma-900); color:#fff; }
.rel-track { display:flex; gap:var(--space-5); overflow-x:auto; scroll-snap-type:x proximity; scroll-behavior:smooth; padding:var(--space-5) 2px var(--space-2); scrollbar-width:none; }
.rel-track::-webkit-scrollbar { display:none; }
.rel-track .rcard { flex:0 0 280px; scroll-snap-align:start; }

/* ===== card scroll-reveal + hover lift ===== */
@media (prefers-reduced-motion: no-preference){
  .t-grid .tcard, .tx, .bcard, .prow { transition: opacity .55s ease, transform .45s cubic-bezier(.16,.84,.44,1), box-shadow .3s ease, border-color .3s ease; }
  [data-reveal] { opacity:0; transform:translateY(18px); }
  [data-reveal].in { opacity:1; transform:none; }
}
.tx:hover, .t-grid .tcard:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.tx .ic { transition: border-color .3s ease, background .3s ease; }
.tx:hover .ic { border-color: var(--rose-700); background: var(--rose-100); }

/* inner outline detail on program/series card illustrations (echoes the hero frame) */
.prog-media { position:relative; }
.prog-media::before { content:""; position:absolute; inset:13px; border:1px solid rgba(40,90,120,.18); border-radius:calc(var(--radius-lg) - 5px); pointer-events:none; z-index:1; }

/* ===================== PREMIUM MODALITY HERO ===================== */
.mhero { position:relative; background:var(--paper-50, #faf8f4); overflow:hidden; border-bottom:1px solid var(--border); }
.mhero__inner { max-width:1320px; margin:0 auto; display:grid; grid-template-columns:1.04fr .96fr; align-items:center; gap:var(--space-9); min-height:90vh; padding:var(--space-9) var(--space-8); }
.mhero--media-left .mhero__media { order:-1; }
.mhero__copy { max-width:600px; position:relative; }
.mhero__title { font-family:var(--font-display); font-weight:600; font-size:clamp(46px,6.1vw,82px); line-height:1.0; letter-spacing:-.025em; color:var(--soma-800); margin:var(--space-4) 0 0; }
.mhero__title em { display:block; font-style:italic; font-weight:400; font-size:.62em; line-height:1.05; color:var(--rose-700); margin-top:.12em; letter-spacing:-.015em; }
.mhero__lead { font-family:var(--font-body); font-size:clamp(16px,1.2vw,18.5px); line-height:1.62; color:var(--fg2); max-width:48ch; margin:var(--space-5) 0 0; }
.mhero__meta { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-3) var(--space-4); margin-top:var(--space-6); font-family:var(--font-eyebrow); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-500); }
.mhero__meta .d { width:4px; height:4px; border-radius:50%; background:var(--rose-700); flex:none; }
.mhero__cta { display:flex; flex-wrap:wrap; gap:var(--space-4); margin-top:var(--space-7); }
.mhero__media { position:relative; align-self:stretch; min-height:540px; border-radius:var(--radius-lg); background-size:cover; background-position:center; box-shadow:var(--shadow-2); }
.mhero__media::after { content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(155deg, transparent 42%, rgba(16,42,56,.36)); }
.mhero__media::before { content:""; position:absolute; inset:13px; border:1px solid rgba(255,255,255,.45); border-radius:calc(var(--radius-lg) - 5px); z-index:2; pointer-events:none; }
.mhero--figure .mhero__media { background:radial-gradient(120% 100% at 50% 22%, var(--white), transparent 72%), var(--soma-100); box-shadow:none; display:flex; align-items:center; justify-content:center; padding:var(--space-7); border:1px solid var(--border); }
.mhero--figure .mhero__media::after, .mhero--figure .mhero__media::before { display:none; }
.mhero--figure .mhero__media img { max-height:580px; max-width:100%; object-fit:contain; }
.mhero__tag { position:absolute; z-index:3; display:inline-flex; align-items:center; gap:9px; padding:8px 14px; background:rgba(255,255,255,.93); border-radius:var(--radius-pill); font-family:var(--font-eyebrow); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--soma-700); box-shadow:var(--shadow-1); }
.mhero__tag .dot { width:8px; height:8px; border-radius:50%; background:transparent; border:1.5px solid var(--rose-700); box-sizing:border-box; flex:none; }
@media (max-width:900px){
  .mhero__inner { grid-template-columns:1fr; min-height:0; gap:var(--space-7); padding:var(--space-8) var(--space-6); }
  .mhero--media-left .mhero__media { order:0; }
  .mhero__media { min-height:360px; }
  .mhero--figure .mhero__media img { max-height:380px; }
}
