:root {
  --u: min(calc(100vw / 1600), calc(100vh / 900));
  --cream: #f5efe2;
  --cream-dim: rgba(245, 239, 226, 0.86);
  --cream-faint: rgba(245, 239, 226, 0.2);
  --night: #040605;
  --ember: #ffb45e;
  --head: Antonio, "Arial Narrow", sans-serif;
  --body: Manrope, system-ui, sans-serif;
  --pad: clamp(20px, 5.5vw, 110px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { color: var(--cream); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
::selection { background: var(--cream); color: #151510; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 9; padding: 10px 16px; background: var(--cream); color: #151510; border-radius: 99px; }
.skip:focus-visible { top: 16px; }

/* the scene sits behind everything */
#scene { position: fixed; inset: 0; z-index: 0; }
#scene canvas { display: block; width: 100% !important; height: 100% !important; }
.no-gl #scene { background: radial-gradient(60% 50% at 60% 45%, rgba(255, 180, 94, 0.22), transparent 70%), var(--night); }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.72) 100%); }
.loader { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: #000; transition: opacity 1s ease; pointer-events: none; }
.loader.gone { opacity: 0; }
.loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--cream); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.4); opacity: 0.4; } }

.label { font-size: clamp(11px, calc(13 * var(--u)), 14px); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }

/* header */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: clamp(16px, calc(24 * var(--u)), 28px) clamp(18px, calc(44 * var(--u)), 56px) 0; opacity: 0; transition: opacity 1.6s ease; }
.on .top { opacity: 1; }
.top::before { content: ""; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.85), transparent); }
.logo { font-size: clamp(19px, calc(26 * var(--u)), 28px); font-weight: 500; letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: clamp(20px, calc(44 * var(--u)), 48px); }
.top nav a:not(.pill) { transition: opacity 0.2s; }
.top nav a:not(.pill):hover { opacity: 0.6; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border-radius: 99px; border: 0; background: var(--cream); color: #151510; font-weight: 500; white-space: nowrap; cursor: pointer; transition: transform 0.25s, box-shadow 0.3s; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(255, 180, 94, 0.55); }
.pill--line { background: transparent; color: var(--cream); border: 1.5px solid var(--cream); }
.pill--line:hover { background: var(--cream); color: #151510; }
@media (max-width: 820px) { .top nav a:not(.pill) { display: none; } .top .pill { min-height: 40px; padding: 0 18px; font-size: 12px; } }

main { position: relative; z-index: 2; }
h1, h2, .display { font-family: var(--head); font-weight: 400; line-height: 0.92; letter-spacing: -0.012em; text-wrap: balance; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 20px; opacity: 0; transition: opacity 1.6s ease 0.3s; }
.on .hero { opacity: 1; }
h1 { font-size: clamp(64px, calc(176 * var(--u)), 230px); }
.cap { margin-top: clamp(22px, calc(44 * var(--u)), 48px); font-size: clamp(17px, calc(21 * var(--u)), 23px); line-height: 1.35; }
.hero__acts { display: flex; align-items: center; gap: 18px; margin-top: clamp(26px, calc(36 * var(--u)), 40px); }
.go { display: grid; place-items: center; width: 54px; height: 54px; border: 1.5px solid var(--cream); border-radius: 50%; transition: background 0.3s, color 0.3s; }
.go:hover { background: var(--cream); color: #151510; }
.go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.corner { position: absolute; right: clamp(20px, calc(44 * var(--u)), 56px); bottom: clamp(26px, calc(44 * var(--u)), 56px); display: flex; align-items: center; gap: 16px; }
.corner i { width: 1px; height: 26px; background: rgba(245, 239, 226, 0.45); }
.corner b { font-weight: 500; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-width: 820px) { .cap br.wide { display: none; } }
@media (max-width: 820px) { .corner { left: 20px; justify-content: center; } }

/* scenes */
.scene { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(90px, 14vh, 170px) var(--pad); }
.scene h2 { font-size: clamp(52px, calc(128 * var(--u)), 170px); }
.scene .lede { margin-top: clamp(18px, calc(30 * var(--u)), 34px); max-width: 30em; font-size: clamp(17px, calc(21 * var(--u)), 23px); line-height: 1.4; color: var(--cream-dim); }
.scene--left > .col { max-width: min(640px, 100%); }
.col--center { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero__text { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 1000px) { #how { justify-content: flex-end; padding-top: 46svh; } }

.steps { display: grid; gap: clamp(18px, calc(26 * var(--u)), 30px); margin-top: clamp(34px, calc(56 * var(--u)), 64px); counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; counter-increment: s; padding-top: clamp(14px, calc(22 * var(--u)), 24px); border-top: 1px solid var(--cream-faint); }
.steps li::before { content: counter(s); font: 400 clamp(34px, calc(46 * var(--u)), 52px)/1 var(--head); color: var(--ember); }
.steps h3 { font-size: clamp(18px, calc(22 * var(--u)), 24px); font-weight: 500; }
.steps p { grid-column: 2; margin-top: 4px; color: var(--cream-dim); }

/* the offers */
.rows { margin-top: clamp(34px, calc(60 * var(--u)), 70px); border-top: 1px solid var(--cream); }
.row { border-bottom: 1px solid var(--cream-faint); transition: background 0.4s; }
.row[open], .row:hover { background: linear-gradient(90deg, rgba(255, 180, 94, 0.1), transparent 70%); }
.row summary { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto 34px; gap: 24px; align-items: center; padding: clamp(18px, calc(26 * var(--u)), 30px) 8px; cursor: pointer; list-style: none; }
.row summary::-webkit-details-marker { display: none; }
.row__name { font: 400 clamp(30px, calc(52 * var(--u)), 64px)/1 var(--head); }
.row__for { color: var(--cream-dim); }
.row__price { font: 400 clamp(38px, calc(76 * var(--u)), 96px)/0.9 var(--head); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 0.3s, text-shadow 0.3s; }
.row:hover .row__price, .row[open] .row__price { color: var(--ember); text-shadow: 0 0 40px rgba(255, 180, 94, 0.5); }
.row__plus { position: relative; width: 34px; height: 34px; border: 1.5px solid var(--cream); border-radius: 50%; transition: transform 0.4s, background 0.3s; }
.row__plus::before, .row__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--cream); transform: translate(-50%, -50%); }
.row__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.row[open] .row__plus { transform: rotate(45deg); }
.row__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 4px 8px clamp(26px, calc(40 * var(--u)), 44px); }
.row__facts div { padding-block: 9px; border-top: 1px solid var(--cream-faint); }
.row__facts dt { margin-bottom: 2px; color: var(--cream-dim); }
.row__gets { columns: 2; column-gap: 40px; }
.row__gets li { break-inside: avoid; padding: 9px 0 9px 20px; border-top: 1px solid var(--cream-faint); position: relative; }
.row__gets li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
@media (max-width: 900px) {
  .row summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .row__name { grid-column: 1; }
  .row__for { grid-column: 1; grid-row: 2; }
  .row__price { grid-column: 2; grid-row: 1 / span 2; }
  .row__plus { display: none; }
  .row__in { grid-template-columns: minmax(0, 1fr); }
  .row__gets { columns: 1; }
}

/* monthly plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, calc(40 * var(--u)), 48px); margin-top: clamp(34px, calc(60 * var(--u)), 70px); }
.plan { padding-top: 20px; border-top: 1px solid var(--cream); }
.plan__price { font: 400 clamp(52px, calc(96 * var(--u)), 120px)/0.9 var(--head); }
.plan__price small { font: 400 15px/1.3 var(--body); color: var(--cream-dim); margin-left: 6px; }
.plan h3 { margin-top: 16px; font-size: 20px; font-weight: 500; }
.plan p { margin-top: 6px; color: var(--cream-dim); }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* statement */
.scene--center { align-items: center; text-align: center; }
/* centred scenes sit low, so the brain glows above the words instead of behind them */
#nate, #blueprint { justify-content: flex-end; padding-top: 50svh; padding-bottom: clamp(56px, 10vh, 110px); }
.quote { font-size: clamp(40px, calc(104 * var(--u)), 140px); max-width: 15em; }
.by { margin-top: clamp(24px, calc(40 * var(--u)), 44px); color: var(--cream-dim); }

/* never promise */
.nope { margin-top: clamp(30px, calc(50 * var(--u)), 60px); }
.nope li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; align-items: center; padding: clamp(12px, calc(18 * var(--u)), 20px) 0; border-top: 1px solid var(--cream-faint); }
.nope span { justify-self: start; position: relative; font: 400 clamp(34px, calc(70 * var(--u)), 90px)/1 var(--head); color: var(--cream-dim); }
.nope span::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 2px; background: var(--ember); box-shadow: 0 0 14px var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 120ms); }
.nope.is-in span::after, html:not(.js) .nope span::after { transform: scaleX(1); }
.nope p { color: var(--cream-dim); max-width: 34em; }
@media (max-width: 820px) { .nope li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* close */
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(560px, 100%); margin-top: clamp(28px, calc(44 * var(--u)), 48px); }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup input[type="email"] { flex: 1 1 240px; min-height: 54px; padding: 0 22px; border: 1.5px solid var(--cream); border-radius: 99px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); }
.signup input::placeholder { color: var(--cream-dim); }
.signup input[aria-invalid] { border-color: var(--ember); }
.signup .pill { min-height: 54px; }
.signup .pill:disabled { opacity: 0.55; cursor: not-allowed; }
.signup__help { flex-basis: 100%; min-height: 1.5em; font-size: 15px; color: var(--cream-dim); }
.talk { margin-top: 18px; color: var(--cream-dim); }
.fill { padding: 0 0.3em; border: 1px dashed var(--cream-dim); border-radius: 4px; }
.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; padding: 28px var(--pad) 36px; color: var(--cream-dim); font-size: 14px; }

/* text rises in as each scene arrives */
.js [data-rise] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-rise].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise] { opacity: 1; transform: none; filter: none; }
  .nope span::after { transform: scaleX(1); }
}
