:root {
  --black: #1A1816;
  --cream: #EBEAE5;
  --linen: #DDD5C4;
  --stone: #8C8680;
  --terra: #C4785A;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: 24px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  font: 400 16px/1.55 'Jost', system-ui, -apple-system, sans-serif;
  background: var(--black); color: var(--cream);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
body::after { /* film grain, one fixed layer */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background-image: var(--grain); background-size: 160px; opacity: .06; mix-blend-mode: overlay;
}

.mono { font: 400 11px/1.5 'DM Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.mono.small { opacity: .7; margin-top: 28px; text-transform: none; letter-spacing: .04em; font-size: 13px; line-height: 1.6; }
.ital { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; }
.noscript { padding: 24px; background: var(--cream); color: var(--black); }

/* ---------- Opening film ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; text-align: center; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.dawn { /* the kiln opening: light from the horizon, made of gradients */
  position: absolute; left: 50%; top: 58%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; pointer-events: none;
  background: radial-gradient(closest-side, rgba(196,120,90,.5), rgba(196,120,90,.16) 38%, transparent 70%);
  transform-origin: 50% 50%;
}
.horizon { position: absolute; left: 8%; right: 8%; top: 58%; height: 1px; background: linear-gradient(90deg, transparent, rgba(235,234,229,.85), transparent); transform-origin: 50% 50%; }
.words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wd { grid-area: 1 / 1; overflow: hidden; padding: .06em .1em .14em; font: italic 400 clamp(64px, 24vw, 150px)/1 'Cormorant Garamond', Georgia, serif; }
.wd > span { display: block; }
.lockup { position: relative; margin-top: -4svh; }
.wm { font: 600 clamp(120px, 40vw, 220px)/.9 'Jost', sans-serif; letter-spacing: -.02em; display: flex; justify-content: center; }
.ch { display: inline-block; overflow: hidden; padding: .1em .02em .04em; }
.ch > span { display: inline-block; }
.tagline { font-size: clamp(26px, 7.4vw, 36px); margin-top: 8px; }
.greeting { position: absolute; left: 0; right: 0; bottom: max(32px, env(safe-area-inset-bottom)); opacity: .75; padding: 0 var(--pad); }

/* hidden start-states exist only when the animation will really run */
.js:not(.rm):not(.nogsap) .embers,
.js:not(.rm):not(.nogsap) .dawn,
.js:not(.rm):not(.nogsap) .horizon,
.js:not(.rm):not(.nogsap) .tagline,
.js:not(.rm):not(.nogsap) .greeting { opacity: 0; }
.js:not(.rm):not(.nogsap) .wd > span,
.js:not(.rm):not(.nogsap) .ch > span { opacity: 0; }
.rm .words, .nogsap .words { display: none; }

/* ---------- Belief ---------- */
.belief { padding: max(96px, 16svh) var(--pad); min-height: 90svh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.belief > * { width: 100%; max-width: 640px; }
.quote { font-size: clamp(38px, 11.4vw, 60px); line-height: 1.1; }
.quote .w { opacity: .16; transition: opacity .6s var(--ease); }
.quote .w.lit { opacity: 1; }

/* ---------- Wordmark, then the people ---------- */
.track { position: relative; }
.sign-track { height: 270svh; }
.rm .sign-track, .nogsap .sign-track { height: auto; }
.sign { position: sticky; top: 0; height: 100svh; min-height: 540px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px, 5svh, 44px); padding: 0 var(--pad); }
.big-wm { font: 600 min(32vw, 19svh, 200px)/1 'Jost', sans-serif; letter-spacing: -.02em; white-space: nowrap; padding: .06em .04em 0; will-change: transform; }
.hello { position: relative; width: 100%; max-width: 560px; text-align: center; }
.names { font: 600 min(15vw, 8.6svh, 84px)/1.02 'Jost', sans-serif; letter-spacing: -.02em; }
.names i { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.05em; letter-spacing: 0; }
.hello .lede { margin-left: auto; margin-right: auto; margin-top: clamp(12px, 2svh, 18px); }
.hello .actions { justify-content: center; margin-top: clamp(18px, 3.2svh, 28px); }
.lede { font: 400 18px/1.55 'Jost', sans-serif; margin-top: 18px; max-width: 34ch; opacity: .82; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rm .sign, .nogsap .sign { position: relative; height: auto; display: block; padding: 96px var(--pad); }
.rm .big-wm, .nogsap .big-wm { display: block; margin-bottom: 32px; text-align: center; }
.js:not(.rm):not(.nogsap) .hello > * { opacity: 0; }
.js:not(.rm):not(.nogsap) .big-wm { opacity: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border: 1px solid currentColor; border-radius: 999px; font: 500 16px 'Jost', sans-serif; text-decoration: none;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn.solid-dark { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn.ghost { border-color: transparent; opacity: .6; padding: 0 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Lights on: the form ---------- */
.form-sec { position: relative; background: var(--black); }
.sun { background: var(--cream); color: var(--black); padding: max(88px, 12svh) var(--pad); min-height: 100svh; display: flex; align-items: center; }
.js:not(.rm):not(.nogsap) .sun { clip-path: circle(0% at 50% 0%); }
.form-wrap { width: 100%; max-width: 520px; margin: 0 auto; }
.h2 { font: 600 clamp(34px, 10.4vw, 52px)/1.06 'Jost', sans-serif; letter-spacing: -.01em; }
.h2 i { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.12em; letter-spacing: 0; }
.sun .lede { color: var(--black); margin-bottom: 30px; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }
.rm [data-reveal], .nogsap [data-reveal] { opacity: 1; transform: none; }
[data-d="1"] { --i: 1; } [data-d="2"] { --i: 2; }
.flow[hidden], .done[hidden], .intro[hidden] { display: none; }
.prog { display: flex; gap: 6px; margin-bottom: 38px; }
.prog span { flex: 1; height: 2px; background: rgba(26,24,22,.18); position: relative; overflow: hidden; }
.prog span::after { content: ""; position: absolute; inset: 0; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.prog span.on::after { transform: scaleX(1); }
.step { min-height: 280px; }
.step.in-fwd { animation: stepf .7s var(--ease); }
.step.in-back { animation: stepb .7s var(--ease); }
@keyframes stepf { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes stepb { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
.q { font: italic 500 clamp(32px, 9.4vw, 44px)/1.1 'Cormorant Garamond', Georgia, serif; }
.step .hint { margin-top: 10px; opacity: .62; font-size: 15px; }
.field {
  display: block; width: 100%; margin-top: 30px; padding: 12px 0; background: transparent; color: inherit;
  border: 0; border-bottom: 1.5px solid rgba(26,24,22,.38); border-radius: 0; outline: none;
  font: 500 24px 'Jost', sans-serif; transition: border-color .3s;
}
.field::placeholder { color: rgba(26,24,22,.45); }
.field:focus { border-color: var(--black); }
.field + .field { margin-top: 18px; }
textarea.field { resize: none; min-height: 110px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { padding: 13px 18px; border: 1px solid rgba(26,24,22,.4); border-radius: 999px; font: 500 16px 'Jost', sans-serif; transition: all .3s var(--ease); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--cream); border-color: var(--black); }
.consent { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; font-size: 16px; line-height: 1.45; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--black); flex: none; }
.fine { margin-top: 14px; font-size: 13px; opacity: .65; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { margin-top: 16px; font-size: 15px; color: #8A3B22; }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.done { text-align: left; }
.check { width: 64px; height: 64px; fill: none; stroke: var(--black); stroke-width: 2; margin-bottom: 26px; }
.check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1.1s var(--ease) forwards; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; stroke-linecap: round; stroke-linejoin: round; animation: draw .7s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .actions .btn { color: var(--black); }

/* ---------- Footer ---------- */
.foot { padding: 56px var(--pad) max(40px, env(safe-area-inset-bottom)); text-align: center; background: var(--black); }
.wordmark.small { font: 600 56px/.9 'Jost', sans-serif; letter-spacing: -.02em; }
.foot .mono { opacity: .55; margin-top: 8px; }
.foot .links { margin-top: 20px; opacity: 1; text-transform: none; letter-spacing: .04em; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.foot .links a { opacity: .75; text-decoration: none; border-bottom: 1px solid rgba(235,234,229,.3); padding-bottom: 2px; }

@media (min-width: 720px) {
  :root { --pad: 48px; }
}
