:root {
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.28);
  --label: rgba(255, 255, 255, 0.62);
  --body: rgba(255, 255, 255, 0.78);
  --black: #1b1e21;
  --accent: #ff275b;
  --accent-strong: #ff6e90;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #101214;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.noise {
  pointer-events: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.cuts {
  pointer-events: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  background: #101214;
}

.shot {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s linear;
}

.shot.is-live {
  opacity: 1;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(1.06) contrast(1.04);
}

.shot.is-live img {
  animation: ken 8s linear forwards;
}

html.burst .shot.is-live img {
  animation: none;
}

.cuts-veil {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  background: radial-gradient(65% 50% at 50% 46%, rgba(12, 14, 16, 0.32) 0%, transparent 72%);
}

html.intro .cuts-veil {
  background: none;
}

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  overflow: hidden;
  padding: 24px 40px 20px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-right: max(40px, env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-left: max(40px, env(safe-area-inset-left));
}

html.intro .header,
html.intro .rest,
html.intro .footer {
  opacity: 0;
  pointer-events: none;
}

html.titled .header,
html.titled .rest,
html.titled .footer {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.6s ease;
}

html.titled .rest {
  transition-delay: 1.6s;
}

html.titled .footer {
  transition-delay: 2s;
}

.header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-word {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  background: rgba(16, 18, 20, 0.45);
}

.lang button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--label);
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.lang button:hover {
  color: var(--white);
}

.lang button[aria-pressed="true"] {
  color: var(--black);
  background: var(--white);
}

.lang button:active {
  transform: scale(0.96);
}

.mail-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--label);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.mail-link:hover {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  text-align: center;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: min(1100px, 100%);
  padding: 0 12px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.3em;
  row-gap: 0.12em;
  max-width: 100%;
  margin: 0 0 16px;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.5rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--white);
}

.kicker .word {
  display: inline-flex;
  white-space: nowrap;
}

.kicker .ch {
  display: inline-block;
  min-width: 0.22em;
  opacity: 0;
}

html.titled .kicker .ch {
  animation: glyph 80ms linear forwards;
}

@keyframes glyph {
  to { opacity: 1; }
}

.rest {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.swap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.8em;
}

.swap-face {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.swap-face.is-on {
  opacity: 1;
}

.headline {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.25rem, 2.8vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.96);
}

.swap-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.swap-logo svg {
  width: clamp(36px, 4.2vw, 52px);
  height: clamp(36px, 4.2vw, 52px);
  flex-shrink: 0;
}

.swap-logo span {
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
}

.lede {
  margin: 16px 0 0;
  max-width: 40ch;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: pretty;
  color: var(--body);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  text-shadow: none;
  transition: background-color 160ms ease-out, transform 100ms ease-out;
}

.cta:hover {
  background: #f0f1f2;
}

.cta:active {
  transform: scale(0.97);
}

.notify {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin-top: 28px;
}

.notify .cta {
  margin-top: 0;
}

.notify-form {
  display: none;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(16, 18, 20, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.notify-form:focus-within {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 39, 91, 0.45);
}

.notify[data-state="form"] .notify-open,
.notify[data-state="sending"] .notify-open,
.notify[data-state="done"] .notify-open {
  display: none;
}

.notify[data-state="form"] .notify-form,
.notify[data-state="sending"] .notify-form {
  display: flex;
  animation: notify-in 420ms var(--ease-enter) both;
}

@keyframes notify-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  text-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.notify-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.notify-send {
  flex-shrink: 0;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  color: var(--black);
  background: var(--white);
  transition: background-color 160ms ease-out, opacity 160ms ease-out;
}

.notify-send:hover {
  background: #f0f1f2;
}

.notify[data-state="sending"] .notify-send {
  opacity: 0.6;
  cursor: progress;
}

.notify-msg {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--body);
}

.notify-msg.is-error {
  color: var(--accent-strong);
}

.notify[data-state="done"] .notify-msg {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  animation: notify-in 420ms var(--ease-enter) both;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  animation: enter 900ms var(--ease-enter) forwards;
}

.reveal-2 { animation-delay: 140ms; }
.reveal-3 { animation-delay: 260ms; }
.reveal-4 { animation-delay: 400ms; }
.reveal-5 { animation-delay: 540ms; }

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 860px) {
  .page {
    padding: 12px 18px 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(18px, env(safe-area-inset-left));
    gap: 8px;
  }

  .noise {
    display: none;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-word {
    font-size: 13px;
    letter-spacing: 0.22em;
  }

  .lang {
    flex-shrink: 0;
  }

  .lang button {
    min-width: 44px;
    min-height: 40px;
    text-shadow: none;
  }

  .copy {
    padding: 0;
    width: 100%;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.55),
      0 6px 28px rgba(0, 0, 0, 0.55);
  }

  .kicker {
    width: 100%;
    margin-bottom: 14px;
    font-size: min(6rem, 8.6vw);
    letter-spacing: 0.055em;
  }

  .kicker .ch {
    min-width: 0.16em;
  }

  .swap {
    min-height: 3em;
  }

  .headline {
    max-width: 20ch;
    font-size: clamp(1.3rem, 5.6vw, 1.7rem);
  }

  .swap-logo {
    gap: 10px;
  }

  .swap-logo svg {
    width: 34px;
    height: 34px;
  }

  .swap-logo span {
    font-size: clamp(1.2rem, 5.2vw, 1.7rem);
    letter-spacing: 0.24em;
  }

  .lede {
    margin-top: 14px;
    max-width: 32ch;
    font-size: 15px;
    line-height: 1.45;
    padding: 0 8px;
  }

  .cta {
    width: 100%;
    max-width: 320px;
    margin-top: 24px;
    min-height: 52px;
    padding: 0 28px;
    font-size: 14px;
  }

  .notify {
    max-width: 320px;
    margin-top: 24px;
  }

  .notify-send {
    padding: 0 16px;
  }

  .header .mail-link {
    display: none;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    min-height: 0;
    padding-top: 4px;
    font-size: 11px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
  }

  .cuts-veil {
    background:
      linear-gradient(to bottom, rgba(12, 14, 16, 0.55) 0%, transparent 18%, transparent 80%, rgba(12, 14, 16, 0.6) 100%),
      radial-gradient(90% 58% at 50% 46%, rgba(12, 14, 16, 0.5) 0%, rgba(12, 14, 16, 0.22) 70%, rgba(12, 14, 16, 0.12) 100%);
  }
}

@media (max-width: 380px) {
  .footer {
    flex-direction: column;
  }
}

@media (max-height: 600px) {
  .kicker {
    margin-bottom: 10px;
    font-size: min(8.6vw, 13vh);
  }

  .lede {
    display: none;
  }

  .cta {
    margin-top: 16px;
  }

  .notify {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot {
    transition: none;
  }

  .shot img {
    animation: none;
  }

  html.titled .kicker .ch {
    animation: none;
    opacity: 1;
  }

  html.intro .header,
  html.intro .copy,
  html.intro .footer,
  html.titled .header,
  html.titled .copy,
  html.titled .footer {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lang {
    background: #101214;
  }
}
