/* etapo.app — the waiting-list site.
 * Third cut (Raitis, 2026-10-01: "be inspired by Stefan Sagmeister and
 * Jessica Walsh, how they would do it"): one bold idea, type made out of
 * the thing itself, strong colour, a human statement set very large, and
 * something to play with. The headline is a pile of cards on a board; the
 * stages stack as you scroll; the maxim arrives scattered and settles into
 * order. Inspired by an approach, not copied from any piece of theirs.
 * Tokens are the app's (EVENTS APP/app/globals.css, Etapo skin, light).
 * The page is always light: Raitis found the first cut "a bit depressive",
 * and a calling card wears one look. The app keeps both themes. Never hard-code a colour below the token block. The wordmark's ink
 * is always --fg, never the accent (brand rule). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/Fraunces-opsz-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f4ef;
  --surface: #fdfcfa;
  --band: #f1ede4;
  --fg: #2b2622;
  --fg-muted: #6f6659;
  --fg-faint: #a39a8c;
  --border: #ded7c9;
  --border-strong: #c9c1b1;
  --accent: #96754e;
  --accent-soft: #f0e9de;
  --danger: #a4553f;
  --sw-leaf: #8a9b77;
  --sw-linen: #ece5d7;
  --sw-candle: #b5a260;
  --sw-clay: #bf7a53;
  --sw-dusk: #4e6b52;
  --tint-blush: #f6e8e3;
  --tint-sage: #e9ede2;
  --tint-sand: #f2ebdc;
  --tint-mist: #e7ecee;
  --c-clay: #bf7a53;
  --c-sand: #d8c382;
  --c-sage: #8a9b77;
  --c-forest: #4e6b52;
  --c-mist: #9db6c2;
  --c-rose: #b06478;
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --shadow-soft: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 1px 1px rgb(43 38 34 / 0.035), 0 3px 10px -4px rgb(43 38 34 / 0.055);
  --shadow-raised: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 1px 2px rgb(43 38 34 / 0.05), 0 8px 20px -6px rgb(43 38 34 / 0.09);

  --display: "Fraunces", ui-serif, Georgia, serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-arrive: cubic-bezier(0.16, 0.84, 0.24, 1); /* the wordmark's own curve */
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 62ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, fieldset, legend { margin: 0; padding: 0; }
ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent-soft); color: var(--fg); }

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

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--surface); color: var(--fg); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-raised); z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; font-optical-sizing: auto; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.2rem + 6.4vw, 5.9rem); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.1; }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); line-height: 1.15; }
p { text-wrap: pretty; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted); display: flex; align-items: center; gap: 10px;
}
/* Bronze means "live" in Etapo. The one bronze dot on the page marks what
 * is true right now: the build is early, the preview is opening. */
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.lede { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--fg-muted); max-width: 56ch; }
.section-lede { color: var(--fg-muted); max-width: var(--measure); font-size: 1.06rem; }
.prose p { max-width: var(--measure); color: var(--fg-muted); }
.prose p + p { margin-top: 1em; }
.prose .quiet { font-size: 0.9rem; }

/* ---------- masthead ---------- */
.mast { display: flex; align-items: flex-start; justify-content: space-between; padding-top: clamp(22px, 4vw, 40px); }
.mark { display: block; color: var(--fg); width: clamp(112px, 11vw, 148px); line-height: 0; border-radius: 12px; }
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Below 240 px wide on a 1x screen the display master's hairlines cannot
 * hold: the release's small cut takes over (brand README, minimum sizes). */
.mark .wm-small { display: none; }
@media (max-resolution: 1.5dppx) {
  .mark .wm-display { display: none; }
  .mark .wm-small { display: block; animation: fade 520ms var(--ease-arrive) both; }
}
.mast-link {
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--fg-muted);
  padding: 9px 2px; border-bottom: 1px solid var(--border-strong);
  transition: color 160ms ease, border-color 160ms ease;
}
.mast-link:hover { color: var(--fg); border-color: var(--fg); }

/* the wordmark's arrival, as released (motion/etapo-arrive.css) */
.etapo-arrive{overflow:visible}
.etapo-arrive .l{animation:etapo-arrive 520ms cubic-bezier(0.16,0.84,0.24,1) both}
.etapo-arrive .l1{animation-delay:0ms}
.etapo-arrive .l2{animation-delay:70ms}
.etapo-arrive .l3{animation-delay:140ms}
.etapo-arrive .l4{animation-delay:210ms}
@keyframes etapo-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes etapo-arrive-fade{from{opacity:0}to{opacity:1}}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- hero: the headline is a pile of cards on a board ---------- */
.hero {
  background-color: var(--band); border-bottom: 1px solid var(--border); overflow: hidden;
  background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1.4px); background-size: 24px 24px;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero .eyebrow { margin-top: clamp(40px, 7vw, 88px); animation: rise 620ms var(--ease-arrive) 100ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Each word is a card with its own colour and a slight tilt; three small
 * cards from an event sit among them. They land one by one (stage by
 * stage) and, with a mouse, can be picked up and put somewhere else.
 * translate / rotate / scale are separate properties so a drag, a tilt and
 * a lift never fight over one transform. */
.pile {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.15em 0.13em;
  margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(3.1rem, 0.6rem + 9.6vw, 8.4rem);
  line-height: 1; letter-spacing: -0.03em; font-weight: 500; text-wrap: initial;
}
.w, .prop {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 0.14em;
  translate: var(--dx, 0px) var(--dy, 0px); rotate: var(--r, 0deg);
  box-shadow: 0 1px 1px rgb(43 38 34 / 0.08), 0 0.06em 0.16em -0.04em rgb(43 38 34 / 0.28);
  transition: scale 160ms var(--ease-arrive), box-shadow 160ms ease, rotate 260ms var(--ease-arrive);
  animation: land 720ms var(--ease-arrive) backwards; animation-delay: calc(180ms + var(--i) * 85ms);
}
/* Every card is the same height, and every row fills the width: the word
 * cards stretch to take up the row, the small cards keep their size and
 * sit between them, so the block reads as one balanced piece at any
 * width. The type sits optically centred in its card: a word with a
 * descender (g, y) gets its room below; a word without one is centred on
 * its own height (Fraunces: baseline 0.86em down the line, descenders
 * about 0.26em below it). */
.w { flex: 1 1 auto; height: 1.25em; padding: 0.125em 0.24em 0.125em; }
.w-desc { padding: 0 0.24em 0.25em; }
/* tilt and landing order, per card (in the stylesheet, not on the element:
 * the site's content policy drops inline styles) */
.pile > :nth-child(1) { --r: -2deg; --i: 0; } .pile > :nth-child(2) { --r: 4deg; --i: 1; }
.pile > :nth-child(3) { --r: 2.5deg; --i: 2; } .pile > :nth-child(4) { --r: -1.5deg; --i: 3; }
.pile > :nth-child(5) { --r: -5deg; --i: 4; } .pile > :nth-child(6) { --r: 1.5deg; --i: 5; }
.pile > :nth-child(7) { --r: -3deg; --i: 6; } .pile > :nth-child(8) { --r: 3deg; --i: 7; }
.pile > :nth-child(9) { --r: -1.5deg; --i: 8; }
@keyframes land { from { opacity: 0; translate: 0 -0.5em; rotate: calc(var(--r) * 4); } }
.w-ink { background: var(--fg); color: var(--bg); }
.w-sand { background: var(--c-sand); color: var(--fg); }
.w-clay { background: var(--c-clay); color: var(--surface); }
.w-forest { background: var(--c-forest); color: var(--surface); }
.w-rose { background: var(--c-rose); color: var(--surface); }
.w-mist { background: var(--c-mist); color: var(--fg); }
.prop { flex: 0 0 auto; background: var(--surface); color: var(--fg); height: 1.25em; font-family: var(--body); letter-spacing: 0; }
.prop-palette { width: 1.7em; padding: 0.12em; gap: 0.06em; }
.prop-palette i { flex: 1; align-self: stretch; border-radius: 0.06em; }
.prop-palette i:nth-child(1) { background: var(--sw-leaf); } .prop-palette i:nth-child(2) { background: var(--sw-linen); }
.prop-palette i:nth-child(3) { background: var(--sw-candle); } .prop-palette i:nth-child(4) { background: var(--sw-clay); }
.prop-palette i:nth-child(5) { background: var(--sw-dusk); }
.prop-guests { flex-direction: column; width: 1.3em; gap: 0.03em; }
.prop-guests b { font-family: var(--display); font-weight: 500; font-size: 0.58em; line-height: 0.9; letter-spacing: -0.02em; }
.prop-guests small { font-size: 0.13em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
/* the small "Ready" pill: sized from its own type, a fifth of a word */
.pile .prop-ready { font: 600 0.3em/1 var(--body); letter-spacing: 0; height: 2.6em; padding: 0 1.1em 0 0.8em; gap: 0.4em; border-radius: 1.4em; white-space: nowrap; }
.pile .prop-ready svg { width: 1.3em; height: 1.3em; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pile.can-drag > * { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.pile.can-drag > *:hover { scale: 1.03; }
.pile.can-drag > .is-held { cursor: grabbing; scale: 1.06; rotate: 0deg; z-index: 3; box-shadow: 0 2px 3px rgb(43 38 34 / 0.1), 0 0.16em 0.4em -0.08em rgb(43 38 34 / 0.36); transition-duration: 110ms; }
.pile-hint { margin-top: 18px; font-family: var(--display); font-size: 1.05rem; color: var(--fg-muted); animation: fade 600ms ease 1300ms both; }
.pile-hint[hidden] { display: none; }

.hero-foot { margin-top: clamp(30px, 4.6vw, 60px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 72px); align-items: start; animation: rise 620ms var(--ease-arrive) 900ms both; }
.hero-foot .lede { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.7vw, 2.2rem); line-height: 1.2; color: var(--fg); letter-spacing: -0.01em; max-width: 18ch; }
.hero .mast-link { border-color: var(--fg-faint); }
.hero-form .join, .hero-form .joined { max-width: none; }

/* shared card pieces (the small illustrations) */
.bcard-eyebrow { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.bcard-title { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em; margin-top: 8px; }
.bcard-meta { font-size: 0.78rem; line-height: 1.4; color: var(--fg-muted); margin-top: 6px; }
/* the lists on the small cards share one face and size: they are the same
 * kind of thing, and two faces side by side read as a mistake */
.beats, .concepts { list-style: none; margin: 8px 0 0; padding: 0; font-family: var(--body); font-size: 0.92rem; line-height: 1.35; }
.beats li { display: grid; grid-template-columns: auto 1fr; gap: 0.7em; padding: 6px 0; border-top: 1px solid var(--border); }
.beats li:first-child { border-top: 0; }
.beats span { font-variant-numeric: tabular-nums; color: var(--fg-muted); }
.concepts li { padding: 6px 0 6px 18px; border-top: 1px solid var(--border); color: var(--fg-muted); position: relative; }
.concepts .picked { font-weight: 600; }
.concepts li:first-child { border-top: 0; }
.concepts li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-strong); }
.concepts .picked { color: var(--fg); }
.concepts .picked::before { background: var(--accent); border-color: var(--accent); }
.crew-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.92rem; }
.crew-line span:last-child { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.crew-ready { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.92rem; font-weight: 600; }
.crew-ready svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the form ---------- */
.join { max-width: 560px; }
.join-row {
  display: flex; gap: 6px; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 200ms ease;
}
/* The field's own outline is off (the pill is the field), so the pill
 * carries a focus ring a keyboard user can see. */
.join-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-raised); }
.join input[type="email"] {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg);
  font: inherit; font-size: 1rem; padding: 12px 8px 12px 18px; border-radius: 999px; outline: none;
}
.join input[type="email"]::placeholder { color: var(--fg-faint); }
.join button {
  flex: none; border: 0; cursor: pointer; font: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--btn-fg); background: var(--btn-bg); padding: 12px 22px; border-radius: 999px;
  min-height: 48px; position: relative; overflow: hidden;
  transition: transform 120ms ease, opacity 160ms ease;
}
.join button:hover { opacity: 0.9; }
.join button:active { transform: scale(0.98); }
.join button:focus-visible { outline-offset: 2px; border-radius: 999px; }
/* pending: the button keeps its place and says what is happening; a quiet
 * sheen shows the request is alive (never a bare spinner) */
.join[data-state="pending"] button { cursor: progress; opacity: 0.86; }
.join[data-state="pending"] button::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.22) 50%, transparent 70%);
  animation: sheen 1100ms linear infinite;
}
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.join[data-state="error"] .join-row { border-color: var(--danger); }

.plans { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.9rem; color: var(--fg-muted); padding-left: 6px; }
.plans legend { float: left; margin-right: 4px; padding: 0; }
.plans .optional { opacity: 0.85; }
.plans label { cursor: pointer; }
.plans input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plans label span {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--fg-muted);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease;
}
.plans label:hover span { border-color: var(--border-strong); color: var(--fg); }
.plans label:active span { transform: scale(0.98); }
.plans input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); }
.plans input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The plain form's failure (scripts off) comes back to /#retry: this line
 * shows only then. */
.join-retry { display: none; margin-top: 12px; font-size: 0.9rem; color: var(--danger); padding-left: 6px; }
.join-retry:target { display: block; }
.join-msg { min-height: 0; font-size: 0.9rem; color: var(--danger); padding-left: 6px; }
.join-msg:not(:empty) { margin-top: 12px; }
.join-note { margin-top: 14px; font-size: 0.86rem; color: var(--fg-muted); padding-left: 6px; }
.join-note a { color: inherit; }
.join-note a:hover { color: var(--fg); }

/* joined: the form settles into its answer where it stood — cause to
 * consequence, a medium moment: one drawn check, then stillness */
.joined { display: flex; align-items: flex-start; gap: 14px; max-width: 560px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-soft); animation: rise 420ms var(--ease-arrive) both; }
.joined[hidden] { display: none; }
.joined:focus { outline: none; }
.joined:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.joined p { color: var(--fg-muted); }
.joined strong { color: var(--fg); font-weight: 600; }
.check { width: 28px; height: 28px; flex: none; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 78; stroke-dashoffset: 78; animation: draw 420ms var(--ease-arrive) 80ms forwards; }
.check path { stroke-dasharray: 18; stroke-dashoffset: 18; animation: draw 320ms var(--ease-arrive) 380ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- stages: four slabs that stack as you scroll ---------- */
.kicker { font-size: clamp(2.2rem, 1rem + 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.stages { padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(40px, 6vw, 72px); }
.stack { margin-top: clamp(32px, 5vw, 60px); }
/* Stage by stage, literally: each slab sticks a little lower than the one
 * before, so the next slides over it and the pile builds up. */
.slab {
  position: sticky; top: calc(20px + var(--n) * 22px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.72fr); align-items: center; gap: clamp(16px, 4vw, 56px);
  min-height: min(58vh, 460px); padding: clamp(26px, 4.2vw, 56px); margin-bottom: 22px;
  border-radius: clamp(20px, 2.6vw, 34px); box-shadow: 0 -1px 0 rgb(255 255 255 / 0.25) inset, 0 18px 40px -22px rgb(43 38 34 / 0.45);
}
.slab:nth-child(1) { --n: 0; } .slab:nth-child(2) { --n: 1; } .slab:nth-child(3) { --n: 2; } .slab:nth-child(4) { --n: 3; }
.slab-sand { background: var(--c-sand); color: var(--fg); }
.slab-mist { background: var(--c-mist); color: var(--fg); }
.slab-clay { background: var(--c-clay); color: var(--surface); }
.slab-forest { background: var(--c-forest); color: var(--surface); }
.slab-no { font-family: var(--display); font-weight: 500; font-size: clamp(6rem, 2rem + 16vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; opacity: 0.92; }
.slab-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.slab h3 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.8rem); line-height: 1; letter-spacing: -0.025em; margin-top: 10px; }
.slab-line { font-size: clamp(1.02rem, 0.9rem + 0.6vw, 1.3rem); line-height: 1.35; margin-top: 14px; max-width: 24ch; opacity: 0.92; }
.slab-art { background: var(--surface); color: var(--fg); border-radius: 18px; padding: 20px 22px; rotate: 2deg; box-shadow: 0 14px 30px -16px rgb(43 38 34 / 0.5); transition: rotate 260ms var(--ease-arrive), scale 260ms var(--ease-arrive); }
.slab:nth-child(even) .slab-art { rotate: -2deg; }
.slab:hover .slab-art { rotate: 0deg; scale: 1.02; }

/* ---------- the maxim: scattered, then exactly in place ---------- */
.maxim { padding-block: clamp(80px, 12vw, 176px); }
.maxim-line { font-family: var(--display); font-weight: 400; font-size: clamp(2.7rem, 0.8rem + 8.4vw, 8rem); line-height: 1.02; letter-spacing: -0.03em; display: flex; flex-wrap: wrap; gap: 0.06em 0.26em; }
.maxim-line span { display: inline-block; }
.maxim-warm { color: var(--c-clay); }
.maxim-line span:nth-child(1) { --x: -18px; --y: 26px; --r: -7deg; } .maxim-line span:nth-child(2) { --x: 34px; --y: -30px; --r: 5deg; }
.maxim-line span:nth-child(3) { --x: -10px; --y: 38px; --r: 9deg; } .maxim-line span:nth-child(4) { --x: 22px; --y: -14px; --r: -4deg; }
.maxim-line span:nth-child(5) { --x: -40px; --y: 20px; --r: 6deg; } .maxim-line span:nth-child(6) { --x: 16px; --y: 44px; --r: -10deg; }
.maxim-line span:nth-child(7) { --x: 48px; --y: -36px; --r: 12deg; }
/* the script scatters the words (.is-loose) and lets them settle (.is-set)
 * when the line is reached: the sentence proves itself */
.maxim-line.is-loose span { translate: var(--x) var(--y); rotate: var(--r); opacity: 0.55; }
.maxim-line.is-loose.is-set span { translate: 0 0; rotate: 0deg; opacity: 1; transition: translate 900ms var(--ease-arrive), rotate 900ms var(--ease-arrive), opacity 600ms ease; }
.maxim-line.is-set span:nth-child(2) { transition-delay: 60ms; } .maxim-line.is-set span:nth-child(3) { transition-delay: 120ms; }
.maxim-line.is-set span:nth-child(4) { transition-delay: 180ms; } .maxim-line.is-set span:nth-child(5) { transition-delay: 240ms; }
.maxim-line.is-set span:nth-child(6) { transition-delay: 300ms; } .maxim-line.is-set span:nth-child(7) { transition-delay: 360ms; }

/* ---------- what it is ---------- */
.credo { padding-bottom: clamp(72px, 10vw, 136px); }
.trio { margin-top: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 48px); }
.trio-item { border-top: 3px solid var(--fg); padding-top: 20px; }
.trio-item:nth-child(1) { border-color: var(--c-clay); } .trio-item:nth-child(2) { border-color: var(--c-forest); } .trio-item:nth-child(3) { border-color: var(--c-rose); }
.trio-item h3 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); }
.trio-item p { margin-top: 10px; color: var(--fg-muted); max-width: 34ch; font-size: 1.04rem; }
.trio > :nth-child(2).will-reveal { transition-delay: 90ms; }
.trio > :nth-child(3).will-reveal { transition-delay: 180ms; }

/* ---------- closing: one dark block ---------- */
.closing { background: var(--fg); color: var(--bg); padding-block: clamp(72px, 10vw, 140px); }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); align-items: center; }
.closing h2 { font-size: clamp(3rem, 1rem + 8vw, 7.4rem); line-height: 0.96; letter-spacing: -0.03em; }
.closing .section-lede { color: rgb(246 244 239 / 0.78); font-size: 1.1rem; max-width: 40ch; }
.closing .join { margin-top: 26px; max-width: none; }
.closing .join-row { background: var(--bg); border-color: transparent; }
.closing .join button { background: var(--c-clay); color: var(--surface); }
.closing .join-note { color: rgb(246 244 239 / 0.66); padding-left: 6px; }
.closing .join-msg { color: #f0b9a6; }
.closing .joined { margin-top: 26px; max-width: none; background: rgb(246 244 239 / 0.08); border-color: rgb(246 244 239 / 0.2); box-shadow: none; }
.closing .joined p { color: rgb(246 244 239 / 0.78); }
.closing .joined strong { color: var(--bg); }
.closing .check { stroke: var(--c-sand); }
.closing :focus-visible { outline-color: var(--c-sand); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline; padding-block: 28px 44px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--fg-muted); }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--fg-muted); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- scroll arrival (script adds .will-reveal, then .is-in) ---------- */
.will-reveal { opacity: 0; transform: translateY(14px); }
.will-reveal.is-in { opacity: 1; transform: none; transition: opacity 620ms var(--ease-arrive), transform 620ms var(--ease-arrive); }

/* ---------- document pages (privacy, joined) ---------- */
.doc { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(72px, 10vw, 128px); max-width: 780px; }
.doc h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); }
.doc .lede { margin-top: 22px; }
.doc h2 { font-size: 1.5rem; margin-top: 2.4em; }
.doc p, .doc ul { margin-top: 0.9em; color: var(--fg-muted); max-width: var(--measure); }
.doc ul { padding-left: 1.1em; }
.doc li + li { margin-top: 0.4em; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc .stamp { font-size: 0.86rem; margin-top: 2.6em; }
.doc .back { display: inline-block; margin-top: 2.2em; color: var(--fg-muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot .lede { max-width: 22ch; }
  .slab { grid-template-columns: auto minmax(0, 1fr); }
  .slab-art { grid-column: 1 / -1; max-width: 360px; }
  .closing-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .trio { grid-template-columns: 1fr; }
  .trio > .will-reveal { transition-delay: 0ms; }
  .mast-link { font-size: 0.84rem; }
  .slab { position: static; min-height: 0; }
}
@media (max-width: 460px) {
  .join-row { flex-direction: column; border-radius: 26px; padding: 8px; }
  .join input[type="email"] { padding: 12px 14px; text-align: left; }
  .join button { width: 100%; }
}

@media print {
  .w, .prop, .hero .eyebrow, .hero-foot, .joined { animation: none; }
  .will-reveal { opacity: 1; transform: none; }
  .maxim-line.is-loose span { translate: 0 0; rotate: 0deg; opacity: 1; }
  .slab { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w, .prop, .hero .eyebrow, .hero-foot, .joined, .mark .wm-small, .pile-hint { animation: fade 180ms linear both; animation-delay: 0ms; }
  .w, .prop, .slab-art { transition: none; }
  .etapo-arrive .l { animation: etapo-arrive-fade 180ms linear both; animation-delay: 0ms; }
  .will-reveal { opacity: 1; transform: none; }
  .will-reveal.is-in { transition: none; }
  .maxim-line.is-loose span, .maxim-line.is-loose.is-set span { translate: 0 0; rotate: 0deg; opacity: 1; transition: none; }
  .check circle, .check path { animation: none; stroke-dashoffset: 0; }
  .join[data-state="pending"] button::after { animation: none; opacity: 0; }
  .slab { position: static; }
}
