:root {
  --ink: #0a0a0a;
  --cyan: #2ec8ff;
  --dark: #070707;
  --finale: #121212;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.22);
  --header: 88px;
  --sans: "Inter", Helvetica, Arial, sans-serif;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
}

html {
  overflow-x: clip;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

body.theme-dark {
  background: var(--dark);
}

::selection {
  background: var(--cyan);
  color: #041018;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.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;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #fff;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  width: min(280px, 70vw);
  text-align: center;
}

.loader-inner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.loader-inner p {
  margin: 18px 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.loader-track {
  height: 2px;
  background: rgba(10, 10, 10, 0.12);
}

.loader-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
}

.logo img {
  display: block;
  height: 42px;
  width: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.theme-dark .nav-cta {
  background: #fff;
  color: var(--ink);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--cyan);
  color: #041018;
  transform: translateY(-1px);
}

.hero,
.bridge {
  height: 400vh;
}

.manifesto {
  height: 340vh;
  background: var(--dark);
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.smash-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.smash {
  margin: 0;
  font-family: var(--display);
  font-size: 19vw;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}

.sticky-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  margin: 0 auto 12px;
  background: currentColor;
}

#manifesto-canvas {
  z-index: 0;
}

.manifesto-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 8, 20, 0.62) 0%, rgba(4, 8, 20, 0.28) 46%, rgba(4, 8, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(4, 8, 20, 0.35), transparent 22%, transparent 78%, rgba(4, 8, 20, 0.4));
}

.manifesto-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--header) 5vw 8vh;
  color: #fff;
}

.index {
  position: relative;
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.line-stage {
  position: relative;
  width: min(96vw, 1560px);
  display: grid;
}

.manifesto-line {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 0.22em;
  row-gap: 0.04em;
  font-family: var(--display);
  font-size: clamp(52px, 9.2vw, 168px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  vertical-align: top;
}

.word,
.finale-title .line {
  display: inline-block;
  will-change: transform;
}

.sub {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.6;
}

#manifesto-sub {
  grid-column: 1;
  margin-top: 32px;
  opacity: 0;
}

.bridge {
  background: var(--dark);
}

.bridge-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.bridge-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 4vw;
  text-align: center;
}

.bridge-word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(72px, 15vw, 280px);
  line-height: 0.84;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.bridge-word-long {
  font-size: clamp(42px, 8.6vw, 168px);
}

.dot {
  color: var(--cyan);
}

.bridge-sub {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  width: min(640px, 88vw);
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
}

#connect,
#replace {
  opacity: 0;
}

.finale {
  position: relative;
  z-index: 1;
  background: var(--finale);
  color: #fff;
}

.finale-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 7vw;
  align-items: end;
  width: min(1480px, calc(100% - 10vw));
  margin: 0 auto;
  padding: calc(var(--header) + 8vh) 0 12vh;
}

.finale-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 7.2vw, 132px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  user-select: none;
}

.finale-title .mask {
  display: block;
}

.finale-title .line {
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 8px;
}

.form-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.field {
  display: block;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 0 14px;
  outline: none;
  resize: vertical;
}

.field textarea {
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--cyan);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: #ff4d6a;
}

.field input:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-out;
}

.form-error {
  min-height: 1.2em;
  margin: 0;
  color: #ff4d6a;
  font-size: 13px;
}

.send {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  padding: 18px 20px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.send:hover,
.send:focus-visible {
  background: var(--cyan);
  color: #041018;
  transform: translateY(-1px);
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 5vw 32px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .nav {
    padding: 16px 16px;
  }

  .logo img {
    height: 34px;
  }

  .smash {
    font-size: 22vw;
  }

  .manifesto-line {
    font-size: clamp(36px, 11vw, 72px);
  }

  .line-stage {
    min-height: 0;
  }

  .finale-grid {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 720px);
    gap: 48px;
    padding-top: calc(var(--header) + 6vh);
  }

  .finale-title {
    font-size: clamp(52px, 16vw, 92px);
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .manifesto,
  .bridge {
    height: 100vh;
  }

  .word,
  .finale-title .line {
    transform: none;
  }

  .manifesto-line {
    position: relative;
    inset: auto;
  }

  #line1 {
    margin-bottom: 0.25em;
  }

  .bridge-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 0 6vw 10vh;
  }

  .bridge-slot {
    position: relative;
    inset: auto;
    display: block;
  }

  .bridge-sub {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
  }

  #manifesto-sub,
  #connect,
  #replace,
  .bridge-sub {
    opacity: 1;
  }
}
