@font-face {
  font-family: "Bungee BR1K";
  src: url("/assets/fonts/Bungee-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: #f7f7f5;
  background: #000;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
::selection { color: #000; background: #fff; }

.page { flex: 1; display: grid; place-items: center; width: 100%; padding: 26px 32px 24px; }
.waitlist { width: min(100%, 1120px); text-align: center; }
.wordmark { display: block; width: 120px; height: auto; margin: 0 auto 28px; }
h1 { margin: 0; font-size: clamp(47px, 5.7vw, 82px); font-weight: 600; line-height: 1.09; letter-spacing: -0.055em; }
.motion-hero { width: min(100%, 860px); margin: 0 auto 24px; }
.chomp-frame { display: block; width: 100%; aspect-ratio: 8 / 3; border: 0; overflow: hidden; background: #000; }
.hero-controls { display: flex; align-items: center; justify-content: flex-end; max-width: 670px; margin: -12px auto 0; padding: 0 4px; gap: 16px; }
.replay-button { border: 0; padding: 9px 0 9px 9px; background: transparent; color: #aaa; font-size: 11px; }
.replay-button:hover { color: #fff; }
.replay-button span { font-size: 15px; margin-right: 3px; }
.headline-line { display: block; }
.calories { white-space: nowrap; }
.word-slot { display: inline-grid; vertical-align: top; text-align: left; }
.word { grid-area: 1 / 1; display: block; white-space: nowrap; opacity: 0; transform: translateY(24%); filter: blur(4px); transition: opacity 430ms ease, transform 540ms cubic-bezier(.2,.75,.2,1), filter 430ms ease; }
.word.is-active { opacity: 1; transform: translateY(0); filter: blur(0); }
.word.is-exiting { transform: translateY(-24%); }
.brick-letter {
  display: inline-block;
  font-family: "Bungee BR1K", sans-serif;
  font-weight: 400;
  font-size: .94em;
  line-height: .9;
  letter-spacing: -.025em;
  color: #e48349;
  filter: drop-shadow(.025em .025em 0 #8c3d25) drop-shadow(.025em .025em 0 #4e251c);
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .brick-letter {
    background-image: url("/assets/brick-course.svg");
    background-size: .7em .35em;
    background-position: left .025em;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: .008em #eaaa6e;
    paint-order: stroke fill;
  }
}
.tagline { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; font-weight: 400; letter-spacing: -.015em; color: #c8c8c2; }
.signup { width: min(100%, 600px); margin: 36px auto 0; }
.invitation { font-size: 18px; line-height: 1.5; font-weight: 400; letter-spacing: -.02em; margin: 0 0 23px; }
.email-form { position: relative; width: 100%; }
.email-form input { display: block; width: 100%; min-width: 0; height: 58px; padding: 0 64px 0 20px; color: #f7f7f5; background: #000; border: 1px solid #656565; border-radius: 11px; font-size: 16px; transition: border-color 160ms ease; }
.email-form input::placeholder { color: #a0a0a0; opacity: 1; }
.email-form input:hover { border-color: #a5a5a5; }
.email-form input:focus { outline: 0; border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.email-submit { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #f7f7f5; transition: background 160ms ease; }
.email-submit:hover { background: #ffffff12; }
.email-submit:focus-visible { outline-offset: 1px; }
.form-message { min-height: 20px; margin: 12px 0 0; color: #d3d3d3; font-size: 13px; line-height: 1.5; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 40px 28px; font-size: 11px; letter-spacing: .01em; line-height: 1.5; color: #888; }
.footer a { color: #aaa; text-decoration: none; transition: color 160ms ease; }
.footer a:hover { color: #fff; }
.footer a span { display: inline-block; margin-left: 4px; }
.motion-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; background: transparent; color: #aaa; font-size: 11px; line-height: 1.5; }
.motion-button:hover { color: #fff; }
.motion-icon { width: 12px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.confirmation-open { overflow: hidden; }
.confirmation {
  color-scheme: light;
  width: min(500px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 30px 36px 27px;
  overflow: auto;
  border: 1px solid #fff1d8;
  border-radius: 24px;
  background: #f6f0e4;
  color: #211c17;
  text-align: center;
  box-shadow: 0 30px 100px #0009, inset 0 1px 0 #fff9;
}
.confirmation[open] { animation: confirmation-in 260ms cubic-bezier(.2,.75,.2,1) both; }
.confirmation::backdrop { background: #000b; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.confirmation button:focus-visible { outline-color: #9d3d1c; outline-offset: 4px; }
.confirmation-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #6f6559; font-size: 28px; line-height: 1; }
.confirmation-close:hover { background: #e8dfd1; color: #211c17; }
.confirmation-badge { margin: 0; color: #776b5b; font-size: 10px; font-weight: 600; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; }
.confirmation-mascot { position: relative; width: 150px; height: 142px; margin: 10px auto 0; isolation: isolate; }
.confirmation-mascot::before { content: ""; position: absolute; z-index: -1; inset: 4px -14px -10px; background: radial-gradient(ellipse, #f3c58b80, #f6f0e400 70%); }
.confirmation-clay { position: absolute; left: 21px; top: -4px; width: 108px; height: 144px; background: url("/motion/assets/clay-poses.png") 0 0 / 400% 100% no-repeat; }
.confirmation-shadow { position: absolute; left: 42px; bottom: 15px; z-index: -1; width: 73px; height: 11px; border-radius: 50%; background: #a9663033; filter: blur(4px); }
.confirmation-thanks { margin: 0 0 10px; color: #6c5c4b; font-size: 17px; letter-spacing: -.02em; line-height: 1.3; }
.confirmation h2 { margin: 0; font-size: clamp(32px, 4.5vw, 46px); font-weight: 650; line-height: 1.06; letter-spacing: -.055em; outline: none; }
.confirmation h2 span { color: #b74620; }
.confirmation-copy { margin: 20px 0 25px; color: #665849; font-size: 15px; line-height: 1.55; letter-spacing: -.015em; }
.confirmation-done { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; min-height: 52px; padding: 14px 20px; border: 1px solid #211c17; border-radius: 10px; background: #211c17; color: #fff8ed; font-size: 15px; font-weight: 500; }
.confirmation-done:hover { background: #413529; border-color: #413529; }
.confirmation-done span { font-size: 19px; }
.confirmation-preview { margin: 16px 0 0; color: #776b5b; font-size: 11px; line-height: 1.5; }
@keyframes confirmation-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 701px) and (max-height: 800px) {
  .page { padding-top: 16px; padding-bottom: 4px; }
  .motion-hero { max-width: 560px; margin-bottom: 12px; }
  h1 { font-size: clamp(47px, 5.35vw, 73px); }
  .tagline { margin-top: 14px; }
  .signup { margin-top: 26px; }
  .footer { padding-top: 12px; padding-bottom: 12px; }
}

@media (max-width: 700px) {
  .page { padding: 32px 24px 18px; }
  .motion-hero { width: calc(100% + 20px); margin: 0 -10px 26px; }
  .hero-controls { margin: 4px auto 0; padding: 0 10px; }
  .replay-button { font-size: 10px; }
  .wordmark { width: 104px; margin-bottom: 28px; }
  h1 { font-size: clamp(34px, 9vw, 62px); line-height: 1.12; }
  .word-slot { display: grid; width: max-content; justify-items: center; text-align: center; margin: 2px auto 0; }
  .tagline { margin-top: 16px; font-size: 17px; }
  .signup { margin-top: 36px; max-width: 440px; }
  .invitation { font-size: 16px; margin-bottom: 20px; }
  .email-form input { height: 56px; padding-left: 16px; }
  .email-submit { top: 6px; right: 6px; }
  .footer { padding: 18px 24px 24px; gap: 12px; font-size: 10px; }
  .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .motion-button { padding: 9px; margin: -9px; }
}

@media (max-width: 360px) {
  .page { padding-inline: 18px; }
  h1 { font-size: 32px; }
  .footer { padding-inline: 18px; }
  .confirmation { padding-inline: 22px; }
  .confirmation-break { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
