/* =========================================================
   NAV: transparent, with a soft graduated blur behind it
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: transform 625ms var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-blur { position: absolute; inset: 0 0 -24px; pointer-events: none; }
.nav-blur i { position: absolute; inset: 0; }
.nav-blur i:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%); }
.nav-blur i:nth-child(2) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); mask: linear-gradient(to bottom, #000 0%, #000 40%, transparent 75%); }
.nav-blur i:nth-child(3) { backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); mask: linear-gradient(to bottom, #000 0%, #000 25%, transparent 55%); }
.nav-blur i:nth-child(4) { background: linear-gradient(to bottom, var(--bg), transparent); opacity: .55; transition: background 500ms ease-in-out; }
.nav-inner { position: relative; height: var(--header-h); display: flex; align-items: center; gap: 56px; }
.wordmark { font-family: var(--f-serif); font-variation-settings: 'opsz' 72; font-weight: 420; font-size: 1.625rem; letter-spacing: -0.025em; color: var(--fg); transition: color var(--t) var(--ease); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; font-size: var(--fs-small); color: var(--fg); transition: opacity 250ms var(--ease), color var(--t) var(--ease); }
.nav-link:hover { opacity: .75; }
.nav-link.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Services dropdown: compact, titles only */
.nav-panel { position: absolute; top: calc(100% + 10px); left: -14px; width: 280px; padding: 6px; background: var(--cream); color: var(--mahogany); border-radius: var(--radius); box-shadow: 0 12px 40px -24px rgba(55, 21, 6, .4), 0 0 0 1px rgba(55, 21, 6, .06); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s 250ms; }
.nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item.has-panel:hover .nav-panel, .nav-item.has-panel:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms var(--ease), transform 250ms var(--ease); }
/* After a click the panel stays shut until the pointer leaves the nav */
.nav.panels-off .nav-panel { opacity: 0 !important; visibility: hidden !important; transform: translateY(6px) !important; }
.nav-panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); transition: background 250ms var(--ease); }
.nav-panel a:hover { background: rgba(55, 21, 6, .05); }
.nav-panel .icon { color: var(--taupe); transition: transform 250ms var(--ease), color 250ms var(--ease); }
.nav-panel a:hover .icon { transform: translateX(3px); color: var(--mahogany); }
.np-label { font-size: 1.125rem; font-variation-settings: 'opsz' 48; letter-spacing: -0.01em; font-weight: 400; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn--nav { background: var(--peach); color: var(--espresso); }
.btn--nav:hover { background: var(--peach-2); }
body[data-theme="light"] .btn--nav { background: var(--mahogany); color: var(--white); }
body[data-theme="light"] .btn--nav:hover { background: var(--espresso); }
.nav-burger { display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center; color: var(--fg); }

/* Mobile menu: full-height sheet under the bar */
.mobile-menu { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), visibility 0s var(--t); }
.nav.is-menu .mobile-menu { opacity: 1; visibility: visible; transition: opacity var(--t) var(--ease); }
.mobile-menu .container { display: grid; padding-block: 8px calc(40px + env(safe-area-inset-bottom, 0px)); }
.mm-link { padding: 14px 0; font-size: 1.875rem; font-weight: 380; line-height: 1.1; border-bottom: 1px solid var(--line); }
.mm-sub { padding: 9px 0 9px 16px; color: var(--fg-2); }
.mm-sub:last-of-type { padding-bottom: 16px; }
@media (max-width: 928px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  :root { --header-h: 66px; }
}
@media (max-width: 420px) { .nav-actions .btn--nav { display: none; } }

/* =========================================================
   HOMEPAGE HERO: one large rounded card
   ========================================================= */
.hero-home { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
.hero-card { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 24px; min-height: clamp(520px, 48vw, 720px); padding: clamp(24px, 4vw, 64px); border-radius: var(--radius); background: radial-gradient(120% 90% at 85% 40%, #42261A 0%, #301B12 50%, #26150D 100%); box-shadow: inset 0 0 0 1px rgba(252, 247, 244, .07); color: var(--paper); overflow: hidden; isolation: isolate; transform-origin: 50% 0; will-change: transform; --hairline-plate: #331D13; }
.linefield { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--paper); z-index: -1; }
.hero-card-copy { display: grid; gap: 24px; justify-items: start; max-width: 620px; min-width: 0; }
.hero-card-copy .h-60 { font-size: clamp(2.6rem, 2.1rem + 2.6vw, 4.25rem); }
.hero-card-copy .lead { color: rgba(255, 255, 255, .86); font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); max-width: 44ch; }
.hero-tag { display: flex; align-items: center; gap: 12px; max-width: 100%; overflow: hidden; font-size: var(--fs-small); color: rgba(252, 247, 244, .86); }
.tag { flex-shrink: 0; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(231, 229, 228, .4); color: #E7E5E4; font-size: var(--fs-eyebrow); }
.ticker { display: flex; gap: 24px; white-space: nowrap; overflow: hidden; mask: linear-gradient(90deg, #000 70%, transparent); min-width: 0; }
.ticker span { animation: ticker 26s linear infinite; }
@keyframes ticker { to { transform: translateX(calc(-100% - 24px)); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card-figure { align-self: stretch; display: grid; align-items: center; max-width: 520px; justify-self: end; width: 100%; }
.hero-card-figure .fig { background: transparent; }
.hero-card-figure .fig-read { left: 50%; transform: translateX(-50%); }
@media (min-width: 961px) {
  .hero-card-figure { max-width: 600px; }
  .hero-card-figure .fig-stage { transform: scale(1.32); transform-origin: 55% 50%; }
  .hero-card-figure .fig-read { bottom: -4px; }
}
@media (max-width: 960px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 8px; }
  .hero-card-figure { max-width: 480px; justify-self: center; }
}

/* =========================================================
   INTERIOR HERO
   ========================================================= */
.page-hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 7vw, 112px)); padding-bottom: clamp(48px, 7vw, 112px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.page-hero--text .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.page-hero-copy .h-72 { max-width: 13ch; }
.page-hero--text .h-72 { max-width: 18ch; }
.page-hero-figure { border-radius: var(--radius); background: var(--card); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .page-hero-figure { max-width: 520px; width: 100%; } }

/* =========================================================
   FIGURES
   ========================================================= */
.fig { position: relative; }
.fig-stage { width: 100%; }
.fig-read { position: absolute; left: 20px; bottom: 16px; font-size: var(--fs-eyebrow); color: var(--fg-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.tone-light .fig-read { color: var(--taupe); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.head { display: grid; gap: 16px; justify-items: start; margin-bottom: clamp(32px, 5vw, 64px); max-width: 720px; }
.head--center { justify-items: center; text-align: center; margin-inline: auto; max-width: 850px; }
.head .lead { max-width: 52ch; }

/* =========================================================
   FACTS
   ========================================================= */
.facts-band { padding-block: clamp(40px, 6vw, 96px) 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts > div { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.fact-value { font-size: var(--fs-60); line-height: .95; }
.fact-label { margin: 0; font-size: var(--fs-small); color: var(--fg-2); max-width: 22ch; }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }

/* =========================================================
   FEATURE ROWS: text and figure side by side, alternating
   ========================================================= */
.rows > .row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); justify-content: space-between; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(24px, 4vw, 64px); background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent) top / 100% 1px no-repeat; }
.rows > .row--flip .row-copy { order: 2; }
.row-copy { display: grid; gap: 16px; justify-items: start; padding-bottom: 8px; min-width: 0; }
.row-copy .lead { max-width: 40ch; }
.row-copy .btn { margin-top: 10px; }
.row-media { border-radius: var(--radius); background: var(--espresso); box-shadow: inset 0 0 0 1px rgba(252, 247, 244, .06); display: grid; align-items: center; max-width: 620px; width: 100%; justify-self: center; --hairline-plate: var(--espresso); }
@media (max-width: 900px) { .rows > .row { grid-template-columns: minmax(0, 1fr); align-items: start; } .rows > .row--flip .row-copy { order: 0; } }

/* =========================================================
   PINNED HORIZONTAL SERVICES TRACK (stacks under 1000px)
   ========================================================= */
.track-section { padding-top: var(--section); overflow: hidden; }
.track-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.track { display: flex; gap: 24px; padding-left: max(var(--pad), calc((100vw - var(--container)) / 2)); padding-right: 24px; padding-bottom: 8vh; will-change: transform; }
.track-panel { flex: 0 0 min(1080px, 82vw); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; min-height: min(62vh, 600px); padding: clamp(28px, 3.5vw, 56px); border-radius: var(--radius); background: linear-gradient(160deg, #2E1A11, #22120B); box-shadow: inset 0 0 0 1px rgba(252, 247, 244, .08); --hairline-plate: #28160E; }
.track-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.track-n { font-size: 1.125rem; color: var(--taupe); }
.track-copy .lead { max-width: 36ch; }
@media (min-width: 1000px) {
  /* The pinned stage always fits the viewport height */
  .track-section { height: 100vh; min-height: 560px; padding: calc(var(--header-h) + 8px) 0 24px; display: flex; flex-direction: column; justify-content: center; }
  .track-head { margin-bottom: clamp(16px, 3vh, 40px); }
  .track-head .h-56 { font-size: var(--fs-40); }
  .track { padding-bottom: 0; }
  .track-panel { min-height: 0; height: clamp(300px, calc(100vh - var(--header-h) - 200px), 600px); padding-block: clamp(20px, 3vh, 48px); }
  .track-panel .h-56 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
  .track-media { height: 100%; display: grid; align-items: center; justify-items: center; min-height: 0; }
  .track-media .fig { width: min(100%, calc((100vh - var(--header-h) - 280px) * 1.25)); }
}
@media (max-width: 999px) {
  .track { flex-direction: column; gap: 16px; padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)); }
  .track-panel { flex-basis: auto; grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; }
  .track-media .fig { max-width: 440px; margin-inline: auto; }
}

/* =========================================================
   STATEMENT: words ink in as you scroll
   ========================================================= */
.statement { text-align: center; }
.inkline { max-width: 17ch; margin-inline: auto; }
.ink { color: rgba(55, 21, 6, .14); transition: color 400ms var(--ease); }
.ink.is-on { color: var(--mahogany); }
body[data-theme="dark"] .ink { color: rgba(252, 247, 244, .14); }
body[data-theme="dark"] .ink.is-on { color: var(--paper); }

/* =========================================================
   STICKY STEPS: light; timeline on the left, figure on the right.
   Under 1000px (or on short screens) it becomes a plain list.
   ========================================================= */
.sticky-steps { height: calc(var(--n) * 90vh + 20vh); position: relative; }
.sticky-stage { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-top: var(--header-h); }
.sticky-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sticky-left { display: grid; gap: clamp(28px, 5vh, 48px); }
.sticky-head { display: grid; gap: 12px; max-width: 640px; }
.timeline-steps { position: relative; display: grid; gap: clamp(18px, 3.2vh, 30px); padding-left: 34px; }
.timeline-steps::before, .timeline-steps::after { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; }
.timeline-steps::before { background: rgba(55, 21, 6, .14); }
.timeline-steps::after { background: var(--mahogany); transform: scaleY(var(--p)); transform-origin: top; transition: transform 500ms var(--ease); }
.timeline-steps li { position: relative; display: grid; gap: 2px; color: rgba(55, 21, 6, .3); transition: color 400ms var(--ease); }
.timeline-steps li.is-done { color: rgba(55, 21, 6, .55); }
.timeline-steps li.is-active { color: var(--mahogany); }
.tl-dot { position: absolute; left: -34px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px rgba(55, 21, 6, .3); z-index: 1; transition: background 400ms var(--ease), box-shadow 400ms var(--ease); }
.timeline-steps li.is-active .tl-dot, .timeline-steps li.is-done .tl-dot { background: var(--mahogany); box-shadow: 0 0 0 4px var(--white); }
.tl-n { font-size: .9375rem; letter-spacing: -0.01em; }
.tl-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease); }
.tl-desc > span { overflow: hidden; }
.tl-desc .body { padding-top: 8px; max-width: 40ch; color: rgba(55, 47, 44, .8); }
.timeline-steps li.is-active .tl-desc { grid-template-rows: 1fr; }
.sticky-right { align-self: stretch; display: grid; align-items: center; min-width: 0; }
.sticky-media { position: relative; height: clamp(320px, calc(100vh - var(--header-h) - 160px), 560px); border-radius: var(--radius); background: #FAF5F1; overflow: hidden; }
.sticky-media.tone-light, .sticky-mobile .tone-light { --hairline-plate: #FAF5F1; }
.sticky-fig { position: absolute; inset: 0; display: grid; align-items: center; justify-items: center; opacity: 0; transition: opacity 500ms ease-in-out; }
.sticky-fig.is-active { opacity: 1; }
.sticky-fig .fig { width: min(100%, calc((100vh - var(--header-h) - 220px) * 1.25)); }
.sticky-mobile { display: none; }
@media (max-width: 1000px), (max-height: 640px) {
  .sticky-steps { height: auto; padding-block: var(--section); }
  .sticky-stage { display: none; }
  .sticky-mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .sticky-mobile-head { grid-column: 1 / -1; display: grid; gap: 12px; }
  .sticky-mobile-item { display: grid; gap: 8px; align-content: start; }
  .sticky-mobile-fig { border-radius: var(--radius); background: #FAF5F1; margin-bottom: 8px; overflow: hidden; }
}
@media (max-width: 640px) { .sticky-mobile { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* =========================================================
   CARDS
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--cream); color: var(--mahogany); overflow: hidden; transition: background 250ms var(--ease); }
.card-media { background: var(--cream); }
.card-body { display: grid; gap: 10px; align-content: start; padding: 24px 32px 32px; }
.card-body p { color: rgba(55, 47, 44, .8); max-width: 410px; }
.card-body .ulink { margin-top: 8px; color: var(--mahogany); }
.card--type { padding: 32px 32px 8px; min-height: 280px; justify-content: space-between; }
.card--type .card-body { padding: 24px 0 32px; }
.card--type:hover { background: #F7F1EC; }
.card-n { font-size: 1.125rem; color: var(--taupe); }
@media (max-width: 800px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   INSET PANELS: dark with a figure, or a cream text panel
   ========================================================= */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px); gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--espresso); color: var(--paper); --fg-3: var(--taupe); }
.panel-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(24px, 3.5vw, 44px); min-width: 0; }
.panel-copy .eyebrow { margin-bottom: 12px; }
.panel-media { border-radius: var(--radius); background: rgba(255, 255, 255, .03); display: grid; align-items: center; --hairline-plate: #271710; }
.panel--text { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 96px); padding: clamp(32px, 5vw, 80px); align-items: start; }
.panel-intro { display: grid; gap: 14px; }
.panel--text .steps { padding-top: 8px; }
@media (max-width: 960px) { .panel, .panel--text { grid-template-columns: minmax(0, 1fr); } }

/* Numbered accordion */
.steps { display: grid; gap: 4px; }
.step-q { display: flex; align-items: baseline; gap: 32px; width: 100%; padding: 12px 0; text-align: left; color: rgba(163, 152, 147, .7); transition: color var(--t) var(--ease); }
.step-q:hover { color: rgba(252, 247, 244, .85); }
.step.is-active .step-q { color: var(--paper); }
.step-n { min-width: 28px; flex-shrink: 0; font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.step-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.step-a > div { overflow: hidden; }
.step-a p { padding: 0 0 16px 60px; color: rgba(255, 255, 255, .7); font-size: var(--fs-body-l); max-width: 46ch; }
.step.is-active .step-a { grid-template-rows: 1fr; }

/* FAQ accordion (on light) */
.accordion { display: grid; }
.acc-item { background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent) bottom / 100% 1px no-repeat; }
.acc-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 22px 0; text-align: left; color: var(--fg); }
.acc-q .icon { flex-shrink: 0; }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.acc-a > div { overflow: hidden; }
.acc-a p { padding-bottom: 22px; color: var(--fg-2); max-width: 58ch; }
.acc-item.is-open .acc-a { grid-template-rows: 1fr; }

/* Ticks */
.ticks { display: grid; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; font-size: var(--fs-body-l); color: var(--fg); background: linear-gradient(90deg, var(--line), var(--line) 85%, transparent) bottom / 100% 1px no-repeat; }
.ticks .icon { color: var(--taupe); flex-shrink: 0; margin-top: 4px; }

/* Icon set in a small tile, for compact cards */
.icon-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; background: var(--white); color: var(--mahogany); box-shadow: inset 0 0 0 1px rgba(163, 152, 147, .3); }

/* =========================================================
   OFFICIAL CHANNELS: a note and four cards, icon and title only
   ========================================================= */
.section--tight { padding-block: calc(var(--section) * .5); }

/* =========================================================
   CLOSING
   ========================================================= */
.closing { padding-block: clamp(96px, 12vw, 176px) clamp(72px, 8vw, 120px); }
.closing .container { display: grid; gap: 24px; justify-items: start; }
.closing .h-72 { max-width: 16ch; }
.closing .lead { color: var(--fg-2); }

/* =========================================================
   FOOTER (light)
   ========================================================= */
.footer { background: var(--white); color: var(--mahogany); padding-block: 64px calc(44px + env(safe-area-inset-bottom, 0px)); --line: rgba(163, 152, 147, .3); }
.footer .wordmark { color: var(--mahogany); }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding-bottom: clamp(48px, 10vw, 160px); }
.footer-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer-brand .body { color: rgba(55, 47, 44, .8); max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-head { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 18px; color: var(--mahogany); }
.footer-col ul { display: grid; gap: 14px; }
.ulink-plain { position: relative; color: #000; font-size: var(--fs-body); }
.ulink-plain::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 250ms ease-in-out; }
.ulink-plain:hover { color: rgba(55, 21, 6, .9); }
.ulink-plain:hover::after { transform: scaleX(1); }
.footer-legal { display: grid; gap: 12px; padding-top: 28px; }
.footer-legal > p { font-size: var(--fs-eyebrow); line-height: 1.55; color: rgba(55, 47, 44, .8); max-width: 110ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: var(--fs-eyebrow); color: rgba(55, 47, 44, .8); }
.footer-bottom .ulink-plain { font-size: var(--fs-eyebrow); }
@media (max-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr); } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }

/* =========================================================
   NOTICE
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   PHONES: calmer spacing, smaller figures, no corner read-outs
   ========================================================= */
@media (max-width: 600px) {
  .fig-read { display: none; }
  .hero-card { gap: 8px; padding: 28px 20px 4px; }
  .hero-card-copy { gap: 20px; }
  .hero-card-copy .h-60 { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 2.9rem); line-height: 1; }
  .hero-card-figure { max-width: 340px; }
  .page-hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px); padding-bottom: 48px; }
  .page-hero-grid { gap: 36px; }
  .page-hero-copy { gap: 20px; }
  .page-hero-figure { max-width: 360px; justify-self: center; }
  .head { gap: 12px; }
  .fact-value { font-size: 2.5rem; }
  .row-media { max-width: 400px; }
  .track-panel { padding: 24px 20px 12px; }
  .track-panel .h-56 { font-size: 2.125rem; }
  .track-media .fig { max-width: 320px; }
  .sticky-mobile-fig .fig { max-width: 300px; margin-inline: auto; }
  .card-body { padding: 20px 22px 24px; }
  .card-media .fig { max-width: 320px; margin-inline: auto; }
  .card--type { padding: 24px 22px 4px; min-height: 0; }
  .panel { padding: 8px; }
  .panel-copy { padding: 24px 16px 16px; gap: 32px; }
  .panel--text { padding: 28px 20px; }
  .panel-media .fig { max-width: 320px; margin-inline: auto; }
  .step-q { gap: 16px; }
  .step-a p { padding-left: 44px; font-size: var(--fs-body); }
  .acc-q { padding: 18px 0; }
  .ticks li { padding: 14px 0; font-size: var(--fs-body); }
  .closing .container { gap: 20px; }
}

/* =========================================================
   CONTENT EDITOR (only shown to people who can save edits)
   ========================================================= */
.qx-ed { font-family: var(--f-sans); color: var(--mahogany); }
.qx-ed button { font: inherit; }
.qx-pill { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--cream); color: var(--mahogany); font-size: var(--fs-small); box-shadow: 0 10px 30px -14px rgba(35, 18, 11, .6), inset 0 0 0 1px rgba(163, 152, 147, .3); transition: background 250ms var(--ease); }
.qx-pill:hover { background: var(--white); }
.qx-bar { position: fixed; z-index: 70; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(880px, calc(100vw - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px 12px 12px 18px; border-radius: var(--radius); background: var(--mahogany); color: var(--paper); box-shadow: 0 16px 40px -16px rgba(35, 18, 11, .7); }
.qx-bar-info { display: grid; gap: 2px; font-size: var(--fs-small); line-height: 1.35; min-width: 0; }
.qx-bar-info b { font-weight: 500; }
.qx-bar-info span { color: rgba(252, 247, 244, .74); }
.qx-err { color: #FFC9B8 !important; }
.qx-bar-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qx-count { font-size: var(--fs-small); color: rgba(252, 247, 244, .74); margin-right: 6px; }
.qx-bar-actions button { height: 36px; padding: 0 12px; border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(252, 247, 244, .25); transition: background 250ms var(--ease); }
.qx-bar-actions button:hover:not(:disabled) { background: rgba(252, 247, 244, .1); }
.qx-bar-actions button:disabled { opacity: .4; cursor: default; }
.qx-bar-actions .qx-done { background: var(--peach); color: var(--espresso); box-shadow: none; }
.qx-bar-actions .qx-done:hover { background: var(--peach-2) !important; }
.qx-panel { position: fixed; z-index: 71; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 8px); width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - var(--header-h) - 130px); overflow-y: auto; display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--cream); box-shadow: 0 24px 60px -24px rgba(35, 18, 11, .55), inset 0 0 0 1px rgba(163, 152, 147, .3); }
.qx-panel-head { display: flex; justify-content: space-between; align-items: center; }
.qx-panel-head b { font-family: var(--f-serif); font-weight: 400; font-size: 1.375rem; letter-spacing: -0.01em; }
.qx-panel-head button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; }
.qx-panel-head button:hover { background: rgba(55, 21, 6, .06); }
.qx-field { display: grid; gap: 6px; }
.qx-field > span { font-size: var(--fs-eyebrow); color: rgba(55, 47, 44, .72); }
.qx-field textarea, .qx-field input, .qx-code { width: 100%; padding: 10px 12px; border: 1px solid rgba(163, 152, 147, .45); border-radius: var(--radius-sm); background: var(--white); color: var(--mahogany); font: inherit; font-size: 1rem; line-height: 1.45; resize: vertical; outline: none; }
.qx-field textarea:focus, .qx-field input:focus, .qx-code:focus { border-color: var(--mahogany); }
.qx-code { font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: .875rem; }
.qx-field em, .qx-note { font-style: normal; font-size: var(--fs-eyebrow); line-height: 1.45; color: rgba(55, 47, 44, .72); overflow-wrap: anywhere; }
.qx-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qx-panel-actions button { height: 38px; padding: 0 14px; border-radius: var(--radius-sm); font-size: var(--fs-small); box-shadow: inset 0 0 0 1px rgba(163, 152, 147, .45); transition: background 250ms var(--ease); }
.qx-panel-actions button:hover:not(:disabled) { background: rgba(55, 21, 6, .05); }
.qx-panel-actions .qx-primary { background: var(--mahogany); color: var(--white); box-shadow: none; }
.qx-panel-actions .qx-primary:hover:not(:disabled) { background: var(--espresso); }
.qx-panel-actions .qx-danger { background: #8E3A24; }
.qx-panel-actions button:disabled { opacity: .45; cursor: default; }
.qx-go { margin-left: auto; }
/* While editing: every editable thing shows itself on hover */
html.qx-editing [data-qx], html.qx-editing [data-qx-link] { cursor: text; }
html.qx-editing [data-qx]:hover, html.qx-editing [data-qx-link]:hover { outline: 1.5px dashed var(--lavender); outline-offset: 3px; border-radius: 3px; }
html.qx-editing .qx-ed [data-qx]:hover, html.qx-editing .qx-ed [data-qx-link]:hover { outline: none; }
/* Edited headlines re-render their words; show them without waiting for a reveal */
html.qx-touched [data-split] .sw > span { opacity: 1 !important; transform: none !important; }
@media (max-width: 600px) {
  .qx-panel { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); max-height: 60vh; }
  .qx-bar { padding: 10px 10px 10px 14px; }
  .qx-count { display: none; }
}
