/* ==========================================================================
   Base: reset, page, focus, layout helpers, text reveal
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
video { object-fit: cover; background: #E2E3DB; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 110px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* skip link: visible only when focused with the keyboard */
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: var(--pill); background: var(--ink); color: var(--paper);
  font: 500 var(--fs-ui)/1 var(--sans); text-decoration: none; transform: translateY(-160%); transition: transform .4s var(--ease); }
.skip:focus { transform: none; }

/* content column */
.wrap { max-width: var(--max); margin: 0 auto; }

/* the paper panel that holds every page's content */
.panel { position: relative; z-index: 5; background: var(--paper); padding: clamp(72px, 10vw, 140px) var(--pad) 0; }
.panel--rise { border-radius: var(--radius-panel) var(--radius-panel) 0 0; box-shadow: 0 -30px 80px -40px rgba(23, 24, 19, .35); }

/* section opener: heading on the left, short intro on the right */
.lede { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(64px, 9vw, 120px); }
.lede h2 { font: 400 var(--fs-h2)/1 var(--serif); letter-spacing: -.025em; max-width: 16ch; }
.lede p { font: 400 var(--fs-lead)/1.45 var(--sans); color: var(--mute); max-width: 32ch; padding-bottom: .4em; }
@media (max-width: 720px) { .lede { grid-template-columns: 1fr; } }

/* ---------- text reveal (Annnimate): line-by-line mask ----------
   Text is hidden only when JavaScript runs (html.js). It is shown as soon as the
   reveal is ready, and also when the library fails (html.reveal-off) or the
   visitor prefers reduced motion. */
.js [data-anm-scroll-text-reveal] { visibility: hidden; }
[data-anm-scroll-text-reveal] { overflow-wrap: break-word; }
[data-anm-scroll-text-reveal] .split-line { padding-bottom: .16em; margin-bottom: -.16em; padding-right: .08em; margin-right: -.08em; }
.reveal-ready [data-anm-scroll-text-reveal],
.reveal-off [data-anm-scroll-text-reveal] { visibility: visible; }

/* one-off entrance used on load (badge, buttons) */
.in { opacity: 0; transform: translateY(22px); filter: blur(8px); animation: rise 1.2s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anm-scroll-text-reveal] { visibility: visible !important; }
  .in { opacity: 1; transform: none; filter: none; animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* inner pages: the panel starts below the header, no rise */
.panel--page { padding-top: clamp(120px, 14vw, 180px); }
.page-head { max-width: 900px; margin-bottom: clamp(56px, 7vw, 96px); }
.page-head h1 { font: 400 clamp(48px, 7vw, 104px)/.98 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.page-head p { max-width: 52ch; margin-top: 22px; font: 400 var(--fs-lead)/1.5 var(--sans); color: var(--mute); }

/* thank-you and 404 */
.panel--short { min-height: 72svh; }
.page-head--center { margin: 0 auto clamp(56px, 7vw, 96px); text-align: center; }
.page-head--center p { margin-left: auto; margin-right: auto; }
.page-head__mark { width: auto; height: 64px; margin: 0 auto 28px; }
.page-head__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
