:root {
  color-scheme: light;
  --ink: #050505;
  --paper: #fbfaf7;
  --soft: #efede8;
  --muted: #6f6f6c;
  --line: rgba(5, 5, 5, 0.12);
  --word-blur: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 76px);
  background: rgba(251, 250, 247, 0.72);
  border-bottom: 1px solid rgba(5, 5, 5, 0.06);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links a,
.eyebrow,
label,
button,
.hero-button {
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 4vw, 44px);
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 116px clamp(20px, 6vw, 86px) 64px;
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.84)),
    var(--paper);
  isolation: isolate;
}

#molvon-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 56%, transparent 0 24%, rgba(251, 250, 247, 0.34) 36%, rgba(251, 250, 247, 0.92) 72%),
    linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.2) 50%, rgba(251, 250, 247, 0.94));
}

.hero-content {
  width: min(1180px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: clamp(5.8rem, 18vw, 18rem);
  font-weight: 860;
  line-height: 0.76;
  letter-spacing: 0;
  filter: blur(var(--word-blur));
  transition: filter 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: filter;
}

.statement {
  width: min(620px, 100%);
  margin: clamp(18px, 2.4vw, 28px) auto 0;
  font-size: clamp(1.28rem, 2.8vw, 3.6rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
}

.kinetic-line {
  position: relative;
  width: min(360px, 100%);
  min-height: clamp(1.55rem, 2.4vw, 2.2rem);
  margin: clamp(18px, 2.8vw, 30px) auto 12px;
  overflow: hidden;
  isolation: isolate;
}

.kinetic-line::before,
.kinetic-line::after {
  position: absolute;
  top: 50%;
  width: clamp(44px, 8vw, 96px);
  height: 1px;
  content: "";
  background: rgba(5, 5, 5, 0.22);
  transform: translateY(-50%) scaleX(0.34);
  animation: railPulse 9s infinite cubic-bezier(0.76, 0, 0.24, 1);
}

.kinetic-line::before {
  left: 0;
  transform-origin: left center;
}

.kinetic-line::after {
  right: 0;
  transform-origin: right center;
}

.kinetic-line span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.42rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(90%) scaleY(0.86);
  transform-origin: center;
  animation: phraseOne 9s infinite cubic-bezier(0.76, 0, 0.24, 1);
  animation-fill-mode: both;
}

.kinetic-line span:nth-child(2) {
  animation-name: phraseTwo;
}

.kinetic-line span:nth-child(3) {
  animation-name: phraseThree;
}

.hero-copy {
  width: min(390px, 100%);
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
}

.hero-button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
}

.hero-button {
  padding: 0 18px;
}

button {
  padding: 0 18px;
}

.hero-button:hover,
button:hover {
  color: var(--ink);
  background: transparent;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.62fr);
  gap: clamp(32px, 8vw, 128px);
  align-items: end;
  padding: clamp(86px, 11vw, 144px) clamp(20px, 6vw, 86px);
  background: var(--soft);
  border-top: 1px solid var(--line);
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5.4vw, 6.4rem);
  font-weight: 850;
  line-height: 0.88;
  letter-spacing: 0;
}

form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid rgba(5, 5, 5, 0.18);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.72);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

input::placeholder {
  color: rgba(5, 5, 5, 0.36);
}

input:focus {
  outline: 2px solid rgba(5, 5, 5, 0.28);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-status[data-state="success"] {
  color: var(--ink);
}

.form-status[data-state="error"] {
  color: #8a1f16;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 6vw, 86px);
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 760;
}

@keyframes phraseOne {
  0%,
  27% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scaleY(1);
  }

  34%,
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-90%) scaleY(0.86);
  }
}

@keyframes phraseTwo {
  0%,
  31% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(90%) scaleY(0.86);
  }

  38%,
  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scaleY(1);
  }

  67%,
  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-90%) scaleY(0.86);
  }
}

@keyframes phraseThree {
  0%,
  64% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(90%) scaleY(0.86);
  }

  71%,
  93% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scaleY(1);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-90%) scaleY(0.86);
  }
}

@keyframes railPulse {
  0%,
  27% {
    opacity: 0.9;
    transform: translateY(-50%) scaleX(0.34);
  }

  38%,
  60% {
    opacity: 0.48;
    transform: translateY(-50%) scaleX(0.86);
  }

  71%,
  93% {
    opacity: 0.68;
    transform: translateY(-50%) scaleX(0.56);
  }

  100% {
    opacity: 0.9;
    transform: translateY(-50%) scaleX(0.34);
  }
}

@media (max-width: 820px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 18px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    min-height: 100svh;
    padding: 100px 18px 54px;
  }

  .hero-content {
    text-align: left;
  }

  .statement,
  .hero-copy,
  .kinetic-line {
    margin-left: 0;
    margin-right: 0;
  }

  .kinetic-line span {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(5rem, 25vw, 8rem);
  }

  .statement {
    font-size: clamp(1.58rem, 7vw, 2.6rem);
  }

  .hero-button,
  button {
    width: 100%;
  }

  .contact {
    padding-inline: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .kinetic-line span {
    animation: none;
    filter: none;
  }

  .kinetic-line span:first-child {
    opacity: 1;
    transform: none;
  }
}
