/* Shared by every page: tokens, top bar, footer, the scroll-scene machinery, and document pages. */

:root { --ink:#1A1A18; --paper:#FBF9F5; --ground:#EFEBE3; --body:#4A4842; --muted:#6B6862; --dim:#D8D3C6;
        --green:#2E7D4F; --greenSoft:#9BC7AC; --blush:#F3BEB6; --cream:#F1E7D3;
        --amber:#8A5A12; --amberB:#C98A1F; --mutual:#A72B14; --mutualB:#C4341A; --mutualBg:#FBF3F0;
        --pad: clamp(22px, 4vw, 48px); }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--ink); }
.note { font-family: Caveat, cursive; font-weight: 600; color: var(--green); }

/* top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px;
       padding: 16px var(--pad); background: rgba(251,249,245,.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
       transition: background .25s, color .25s; }
.bar nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; }
.bar nav a { text-decoration: none; }
.bar nav a.here { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.logo { display: inline-flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 800; letter-spacing: -.8px; text-decoration: none; }
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: 10px; }
.get { font-size: 14.5px; font-weight: 700; text-decoration: none; border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.get:hover { background: var(--ink); color: var(--paper); }
.bar.dark { background: rgba(26,26,24,.84); color: var(--paper); }
.bar.dark a { color: var(--paper); }
.bar.dark .get { border-color: var(--paper); }
.bar.dark .get:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 700px) { .bar nav .wide { display: none; } }

/* footer */
.foot { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) var(--pad) 30px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { color: var(--greenSoft); }
.foot-top { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot .mark { display: inline-flex; align-items: flex-start; gap: .06em; font-size: clamp(56px, 7vw, 92px); font-weight: 800; letter-spacing: -.055em; line-height: .9; }
.foot .mark i { width: .14em; height: .14em; border-radius: 50%; background: var(--green); margin-top: .58em; }
.foot .tag { margin: 18px 0 0; font-size: 16px; line-height: 1.5; color: rgba(251,249,245,.66); max-width: 30ch; }
.foot .tag .note { color: var(--greenSoft); font-size: 1.35em; }
.foot h4 { margin: 6px 0 16px; font-size: 12px; font-weight: 800; letter-spacing: 1.3px; color: rgba(251,249,245,.5); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; font-weight: 600; }
.foot-get { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 12px 20px; border: 2.5px solid var(--paper); border-radius: 999px; font-size: 15px; font-weight: 700; }
.foot-get:hover { background: var(--paper); color: var(--ink) !important; }
.foot-bottom { max-width: 1180px; margin: clamp(48px, 7vw, 80px) auto 0; padding-top: 22px; border-top: 1.5px solid rgba(251,249,245,.18);
               display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(251,249,245,.55); }
.foot-bottom .pills { display: flex; gap: 8px; }
.foot-bottom .pills span { border: 1.5px solid rgba(251,249,245,.3); border-radius: 999px; padding: 3px 10px; font-weight: 700; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* scroll scenes: site.js writes each [data-scene]'s scroll progress (0 → 1) into --p */
[data-scene] { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.fade { opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 28px)); }

/* the zoom-through opener used by Home and Who we are */
.s-hero { height: 260vh; }
.s-hero .stage { background: var(--paper); }
.not { --a: clamp(0, var(--p) / .45, 1); position: absolute; margin: 0; padding: 0 16px; text-align: center; font-weight: 800;
       font-size: clamp(44px, 10vw, 150px); line-height: .92; letter-spacing: -.045em;
       transform: scale(calc(1 + var(--a) * var(--a) * 9)); opacity: calc(1 - var(--a)); }
.reveal { --a: clamp(0, (var(--p) - .38) / .3, 1); position: relative; text-align: center; padding: 0 22px; }
.reveal .big { margin: 0; font-size: clamp(64px, 13vw, 190px); font-weight: 800; letter-spacing: -.055em; line-height: 1; display: inline-flex; align-items: flex-start; gap: .06em; }
.reveal .big i { width: .14em; height: .14em; border-radius: 50%; background: var(--green); margin-top: .62em; }
.reveal p:not(.big) { margin: 18px auto 0; font-size: clamp(20px, 2.6vw, 34px); font-weight: 600; color: var(--body); letter-spacing: -.02em; max-width: 26ch; }
.hint { --a: clamp(0, 1 - var(--p) / .12, 1); position: absolute; bottom: 34px; font-size: 13px; font-weight: 700; letter-spacing: 1.3px; color: var(--muted); opacity: var(--a); }
.hint::after { content: ""; display: block; width: 2px; height: 26px; margin: 10px auto 0; background: var(--muted); animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0%,100% { transform: scaleY(.3); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } }

/* document pages: privacy, terms, contact */
.doc { max-width: 760px; margin: 0 auto; padding: 130px var(--pad) clamp(64px, 9vw, 110px); }
.doc .kicker { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; color: var(--green); }
.doc h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.doc .updated { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.doc .plain { margin: 36px 0 8px; padding: 22px 24px; border: 2.5px solid var(--ink); border-radius: 20px; background: #fff; }
.doc .plain p:first-child { margin-top: 0; }
.doc .plain h2 { margin-top: 0; }
.doc h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.doc h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 800; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; color: var(--body); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc a { text-underline-offset: 3px; }
.doc .toc { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc .toc a { font-size: 13.5px; font-weight: 700; text-decoration: none; border: 2px solid var(--dim); border-radius: 999px; padding: 6px 12px; }
.doc .toc a:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  [data-scene] { height: auto !important; --p: 1 !important; }
  .stage { position: relative; height: auto; min-height: 100svh; overflow: visible; }
  .s-hero .not, .hint { display: none; }
  .hint::after { animation: none; }
}

.doc [id] { scroll-margin-top: 96px; }
