@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root {
  --ink: #10151a;
  --paper: #f7f2ec;
  --sky-top: #0b79c6;
  --sky-mid: #0860a6;
  --sky-low: #94cde8;
  --line: rgba(16, 21, 26, 0.16);
  --white: #fffaf4;
  font-family: "Inter", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Liquid-glass scrollbar — matches the signup button */
html {
  scrollbar-width: thin;                                    /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;    /* Firefox */
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 3px solid transparent;      /* creates inset padding around the thumb */
  background-clip: padding-box;
  background-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 0 8px rgba(255, 255, 255, 0.18),
    inset 0 -4px 8px rgba(0, 0, 0, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(255, 255, 255, 0.5);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input {
  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;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 4vw, 3rem) 4rem;
  overflow: hidden;
  isolation: isolate;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  /* Poster frame + its average color paint instantly, so there is no
     black flash before the background video starts playing. */
  background: rgb(157, 164, 172) url("../images/hero-poster.jpg") center / cover no-repeat;
}

.sky-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sky::after {
  display: none;
}

.moon {
  display: none;
}

.cloud {
  display: none;
}

.cloud-left {
  top: 10vh;
  left: -8vw;
}

.cloud-right {
  top: 10vh;
  right: -9vw;
}

.cloud-low {
  left: 11vw;
  bottom: 8vh;
  width: clamp(20rem, 42vw, 42rem);
  opacity: 0.88;
}

.floor {
  display: none;
}

.hero-lockup {
  width: min(980px, 100%);
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  text-align: center;
  color: var(--white);
}

.hero-logo-link {
  display: block;
  width: min(94vw, 980px);
  max-height: 44vh;
  cursor: pointer;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.08))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.34));
}

.hero-logo {
  width: 100%;
  max-height: inherit;
  object-fit: contain;
  filter: brightness(1.2) saturate(1.28) contrast(1.08);
}

.hero-logo-canvas {
  display: block;
}

.hero-logo-final {
  display: none;
}

.hero-logo-link.is-complete .hero-logo-video {
  display: none;
}

.hero-logo-link.is-complete .hero-logo-final {
  display: block;
}

.eyebrow {
  margin: 0;
  font-size: clamp(0.74rem, 1.6vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

h2,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
}

p {
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.55;
}

.hero-signup {
  width: min(74vw, 540px);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.hero-signup-trigger,
.hero-signup-fields {
  position: relative;
  width: 100%;
  min-height: clamp(48px, 6vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(150% 220% at 14% -20%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 32%, transparent 62%),
    radial-gradient(120% 160% at 88% 130%, rgba(255, 255, 255, 0.09), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.05) 100%),
    rgba(255, 255, 255, 0.012);
  color: #fff;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(255, 255, 255, 0.2),
    inset 0 -14px 26px rgba(0, 0, 0, 0.14),
    inset 0 0 18px rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(13px) saturate(175%) brightness(1.05);
  -webkit-backdrop-filter: blur(13px) saturate(175%) brightness(1.05);
}

.hero-signup-trigger::before,
.hero-signup-fields::before {
  content: "";
  position: absolute;
  inset: 1px 6px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 68%, transparent);
  pointer-events: none;
}

/* Liquid sheen — a specular highlight that slowly sweeps across the glass */
.hero-signup-trigger::after {
  content: "";
  position: absolute;
  top: -25%;
  left: -60%;
  width: 45%;
  height: 150%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  animation: liquid-sheen 6s ease-in-out infinite;
}

@keyframes liquid-sheen {
  0% { left: -60%; opacity: 0; }
  12% { opacity: 1; }
  50% { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

.hero-signup-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem clamp(1rem, 3vw, 2rem);
  font-family: "Inter", sans-serif;
  font-size: clamp(0.88rem, 1.9vw, 1.16rem);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(255, 255, 255, 0.28),
    0 10px 26px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-signup-trigger:hover,
.hero-signup-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.75),
    inset 0 -2px 3px rgba(255, 255, 255, 0.34),
    inset 0 -14px 28px rgba(0, 0, 0, 0.2),
    inset 0 0 36px rgba(255, 255, 255, 0.18),
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-signup-trigger::after {
    animation: none;
    opacity: 0;
  }
}

.hero-signup-fields {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.55rem 0.5rem clamp(1rem, 3vw, 1.55rem);
}

.hero-signup.is-editing .hero-signup-trigger {
  display: none;
}

.hero-signup.is-editing .hero-signup-fields {
  display: grid;
}

.hero-signup input {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  appearance: none;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.16rem);
  font-weight: 400;
  letter-spacing: 0;
}

.hero-signup input::placeholder {
  color: rgba(255, 255, 255, 0.64);
}

.hero-signup-submit {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.58rem 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  color: #080b0f;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(0, 0, 0, 0.3);
}

.hero-signup-note {
  min-height: 1.4em;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
}

.hero-signup-note.is-error {
  color: #ff9b9b;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.content-band {
  background: var(--paper);
}

.content-band .eyebrow {
  margin-bottom: 1rem;
  color: #b90000;
}

.content-band p {
  max-width: 58ch;
}

.contact-band {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer p,
.site-footer a {
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .hero {
    align-items: center;
  }

  .hero-logo-link {
    width: min(100%, 720px);
    max-height: 36vh;
  }

  .hero-signup {
    width: min(78vw, 520px);
  }

  .content-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-signup {
    width: min(84vw, 26rem);
  }

  .hero-signup-trigger {
    min-height: 52px;
    padding-inline: 1rem;
    font-size: clamp(0.82rem, 3.8vw, 1rem);
    letter-spacing: 0.05em;
  }

  .hero-signup-fields {
    grid-template-columns: 1fr;
    border-radius: 32px;
    padding: 1rem;
  }

  .hero-signup-submit {
    width: 100%;
  }

  h2 {
    max-width: 9ch;
  }
}
