@font-face {
  font-family: Satoshi;
  src: url("/assets/satoshi-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --forest: #08271e;
  --deep: #0c2118;
  --cream: #f9f2e0;
  --sage: #b9d39a;
  --muted: #ced6c7;
  --rule: #f9f2e03d;
  --gutter: clamp(1.5rem, 6vw, 7.5rem);
  font-family: Inter, system-ui, sans-serif;
  color: var(--cream);
  background: var(--forest);
  color-scheme: dark;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding-inline: var(--gutter);
}

.scene {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 27%;
  overflow: hidden;
  pointer-events: none;
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  display: block;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--forest), #08271ee0 12%, #08271e1c 47%, transparent 68%),
    linear-gradient(0deg, #071d16e6, transparent 25%, transparent 78%, #091f163d);
}

.viewfinder {
  position: absolute;
  z-index: 1;
  inset: 18% var(--gutter) 18% 36%;
  opacity: .58;
  background:
    linear-gradient(var(--cream), var(--cream)) left top / 18px 1px,
    linear-gradient(var(--cream), var(--cream)) left top / 1px 18px,
    linear-gradient(var(--cream), var(--cream)) right top / 18px 1px,
    linear-gradient(var(--cream), var(--cream)) right top / 1px 18px,
    linear-gradient(var(--cream), var(--cream)) left bottom / 18px 1px,
    linear-gradient(var(--cream), var(--cream)) left bottom / 1px 18px,
    linear-gradient(var(--cream), var(--cream)) right bottom / 18px 1px,
    linear-gradient(var(--cream), var(--cream)) right bottom / 1px 18px;
  background-repeat: no-repeat;
}

.masthead {
  display: flex;
  align-items: center;
  padding-block: clamp(1.5rem, 4.2vh, 3.25rem);
}

.wordmark { display: block; width: clamp(6.25rem, 9vw, 8.5rem); height: auto; }

.hero {
  align-self: center;
  padding-block: clamp(3rem, 8vh, 6rem);
  width: fit-content;
  max-width: 100%;
  animation: reveal 650ms cubic-bezier(.2,.65,.3,1) both;
}

.hero-kicker {
  margin: 0 0 1.5rem;
  color: var(--sage);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font: 900 clamp(4.25rem, 8.9vw, 10rem)/.86 Satoshi, Inter, system-ui, sans-serif;
  letter-spacing: -.043em;
}

.hero h1 span { color: var(--sage); }
.hero-tagline {
  margin: clamp(1.5rem, 3.6vh, 2.5rem) 0 .5rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 650;
}

.hero-description {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.5rem;
  padding: .75rem 1.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--deep);
  background: var(--cream);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover { background: var(--sage); }
.button:disabled { opacity: .62; cursor: wait; }
.launch-cta {
  position: relative;
  overflow: hidden;
  min-height: 3.75rem;
  margin-top: clamp(1.5rem, 3.7vh, 2.5rem);
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 300ms ease, box-shadow 300ms ease;
  -webkit-tap-highlight-color: transparent;
}
.launch-cta:hover { box-shadow: 0 25px 50px -12px #b9d39a66; }
.launch-cta:active { background: var(--sage); }
.launch-cta-label { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem; }
.launch-cta-arrow { flex: none; transition: transform 150ms ease; }
.launch-cta:hover .launch-cta-arrow { transform: translateX(4px); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.footer small { font-size: .8125rem; }

body:has(dialog[open]) { overflow: hidden; }
.landing:has(+ .expandable-screen[open]) .launch-cta { visibility: hidden; }

.standalone-panel {
  --focus: #527354;
  color: var(--deep);
  background: var(--cream);
  color-scheme: light;
}

.expandable-screen {
  --screen-gutter: 8px;
  position: fixed;
  inset: var(--screen-gutter);
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 24px);
  isolation: isolate;
  background: #04140f;
  color: var(--cream);
  color-scheme: dark;
}

.screen-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.screen-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 30% at 78% 14%, #f9f2e047 0%, #f9f2e000 70%),
    radial-gradient(ellipse 70% 55% at 45% 30%, #3f7a5280 0%, #3f7a5200 70%),
    radial-gradient(ellipse 60% 50% at 30% 80%, #1d4a3366 0%, #1d4a3300 70%);
}
.screen-swell {
  position: absolute;
  left: 0;
  right: 0;
  height: 70%;
  will-change: transform;
  animation: screen-swell ease-in-out infinite alternate;
}
.screen-wave {
  position: absolute;
  inset: 0;
  width: 200%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='none'%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-1000' y='-200' width='3000' height='800'%3E%3CfeGaussianBlur stdDeviation='22'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' fill='white' d='M -1000 200 C -875 110, -625 110, -500 200 S -125 290, 0 200 S 375 110, 500 200 S 875 290, 1000 200 S 1375 110, 1500 200 S 1875 290, 2000 200 L 2000 600 L -1000 600 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='none'%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-1000' y='-200' width='3000' height='800'%3E%3CfeGaussianBlur stdDeviation='22'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' fill='white' d='M -1000 200 C -875 110, -625 110, -500 200 S -125 290, 0 200 S 375 110, 500 200 S 875 290, 1000 200 S 1375 110, 1500 200 S 1875 290, 2000 200 L 2000 600 L -1000 600 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 50% 100%;
  mask-size: 50% 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  will-change: transform;
  animation: screen-flow linear infinite;
}
.screen-swell-far { top: 6%; animation-duration: 9s; }
.screen-wave-far {
  background: linear-gradient(to bottom, #2a5e4100 0%, #2a5e41f2 40%, #17402cb3 75%, #17402c00 100%);
  animation-duration: 28s;
}
.screen-swell-mid { top: 26%; animation-duration: 7s; animation-delay: -2s; }
.screen-wave-mid {
  background: linear-gradient(to bottom, #4f8c6000 0%, #4f8c60e6 38%, #2a5c40a6 75%, #2a5c4000 100%);
  animation-duration: 19s;
  animation-direction: reverse;
}
.screen-swell-near { top: 46%; animation-duration: 6s; animation-delay: -4s; }
.screen-wave-near {
  background: linear-gradient(to bottom, #b9d39a00 0%, #b9d39ab3 30%, #3d6e4c99 62%, #04140f00 100%);
  animation-duration: 13s;
}
.screen-dim { position: absolute; inset: 0; background: #020a07; opacity: .3; }
.screen-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 0% 0%, #020a07e6 0%, #020a0700 70%),
    radial-gradient(ellipse 55% 60% at 100% 100%, #020a07f2 0%, #020a0700 70%),
    radial-gradient(ellipse 45% 50% at 0% 100%, #020a0799 0%, #020a0700 70%);
}
.screen-mark {
  --mark-size: min(88vh, 60vw);
  position: absolute;
  top: 50%;
  right: calc(var(--mark-size) * -.3);
  width: var(--mark-size);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 40px 60px #020a0773);
}
.screen-mark-glass {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 22%, #f9f2e03d, transparent 55%),
    linear-gradient(135deg, #f9f2e01f, #b9d39a0a 55%, #04140f33);
  -webkit-backdrop-filter: blur(22px) saturate(150%) brightness(1.12);
  backdrop-filter: blur(22px) saturate(150%) brightness(1.12);
  -webkit-mask: url("/assets/onset-mark.svg") center / contain no-repeat;
  mask: url("/assets/onset-mark.svg") center / contain no-repeat;
}
.screen-mark-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.screen-mark-edge path { stroke-width: 1.5px; }

.screen-noise {
  position: absolute;
  inset: 0;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: .42;
}

.expandable-screen::backdrop { background: transparent; }
.expandable-screen-content {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5.5rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
}
.expandable-screen .waitlist-panel {
  width: min(100%, 28rem);
  margin: auto;
  padding: 0;
}
.expandable-screen :is(.form-heading, .form-success) { text-align: center; }
.expandable-screen .panel-title { padding: 0; }
.expandable-screen .panel-description { color: var(--muted); }
.expandable-screen .field { gap: .5rem; color: #e9eadb; font-weight: 600; }
.expandable-screen .field :is(input, select) {
  min-height: 3.4rem;
  padding: .9rem 1.15rem;
  border: 1px solid #f9f2e02e;
  border-radius: 1.1rem;
  color: var(--cream);
  background: linear-gradient(180deg, #f9f2e012, #f9f2e005) #04140f8c;
  box-shadow: inset 0 1px 0 #f9f2e014, 0 10px 24px -14px #020a07b3;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.expandable-screen .field select {
  padding-inline: 1.15rem 2.5rem;
  appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ced6c7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 1.1rem center / 12px 8px no-repeat,
    linear-gradient(180deg, #f9f2e012, #f9f2e005) #04140f8c;
  cursor: pointer;
}
.expandable-screen .field select option { color: var(--cream); background: var(--forest); }
.expandable-screen .field :is(input, select):hover { border-color: #f9f2e052; }
.expandable-screen .field :is(input, select):focus-visible {
  outline: none;
  border-color: var(--sage);
  background-color: #04140fb3;
  box-shadow: inset 0 1px 0 #f9f2e014, 0 0 0 4px #b9d39a2e;
}
.expandable-screen .field input::placeholder { color: #ced6c799; }
.expandable-screen .field input[aria-invalid="true"] { border-color: #f4ae9c; box-shadow: 0 0 0 4px #f4ae9c24; }
.expandable-screen .phone-row { gap: .75rem; }
.expandable-screen .form-error { color: #ffbcab; }
.expandable-screen .form-submit { color: var(--deep); background: var(--cream); }
.expandable-screen .form-submit:hover { background: var(--sage); }
.expandable-screen .success-icon { margin-inline: auto; }
.expandable-screen[data-state="open"] :is(.screen-grain, .expandable-screen-content, .close-button) {
  animation: screen-content-in 400ms 150ms ease both;
}
.expandable-screen[data-state="closing"] :is(.screen-grain, .expandable-screen-content, .close-button) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease;
}

.waitlist-panel { position: relative; padding: clamp(1.5rem, 6vw, 2.75rem); }
.standalone-panel :focus-visible { outline-color: var(--focus); }

.close-button {
  position: absolute;
  z-index: 1;
  top: clamp(.875rem, 3vw, 1.5rem);
  right: clamp(.875rem, 3vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--cream);
  background: var(--forest);
  cursor: pointer;
}

.close-button:hover { background: #234635; }
.close-button span { position: relative; }
.close-button span::before, .close-button span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-button span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.panel-title {
  margin: 0;
  padding-right: 2rem;
  font: 900 clamp(2rem, 6vw, 2.85rem)/1.04 Satoshi, Inter, system-ui, sans-serif;
  letter-spacing: -.035em;
}

.panel-description { margin: .65rem 0 1.5rem; color: #495347; line-height: 1.55; }
.waitlist-form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .4rem; min-width: 0; font-size: .875rem; font-weight: 650; }

.field input, .field select {
  width: 100%;
  min-width: 0;
  min-height: 3.05rem;
  border: 1px solid #08271e42;
  border-radius: .55rem;
  padding: .7rem .75rem;
  background: #fffbef;
  color: var(--deep);
  font-size: 1rem;
  font-weight: 450;
}
.field input::placeholder { color: #61685d; }
.field input[aria-invalid="true"] { border-color: #9a331e; }
.field select { padding-inline: .5rem; font-size: .9375rem; }
.phone-row { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.form-error { margin: 0; color: #842d1b; font-size: .9375rem; }
.form-error:empty { display: none; }

.button-dark { color: var(--cream); background: var(--forest); }
.button-dark:hover { color: var(--cream); background: #234635; }
.form-submit { width: 100%; margin-top: .15rem; }

.success-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--deep);
  background: var(--sage);
  font-size: 1.5rem;
}

.standalone {
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}
.standalone-panel { width: min(100%, 31rem); border-radius: 1.65rem; }
.home-link { display: block; margin-top: 1rem; text-align: center; font-size: .875rem; }
.admin { padding: clamp(1.25rem, 5vw, 5rem); max-width: 85rem; margin-inline: auto; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1rem 0; }
.admin-toolbar p { margin: 0 auto 0 0; }
.table-wrap { overflow: auto; border: 1px solid var(--rule); border-radius: .75rem; }
.admin table { width: 100%; border-collapse: collapse; text-align: left; }
.admin th, .admin td { padding: .75rem 1rem; border-bottom: 1px solid var(--rule); }
.admin tbody tr:last-child td { border-bottom: 0; }
.admin th { color: var(--sage); }
.admin nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes screen-flow {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes screen-swell {
  from { transform: translate3d(0, -4%, 0) scaleY(.92); }
  to { transform: translate3d(0, 5%, 0) scaleY(1.08); }
}

@keyframes screen-content-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1000px) {
  .scene { left: 18%; }
}

@media (max-width: 700px) {
  .expandable-screen { --screen-gutter: 12px; }
  .screen-mark { --mark-size: 125vw; top: 18%; opacity: .75; }
  .expandable-screen .field :is(input, select) { padding-inline: .95rem; }
  .expandable-screen .field select { padding-right: 2rem; background-position: right .8rem center, 0 0; }
  .expandable-screen .phone-row { gap: .6rem; }
  .scene { inset: 0 0 auto; height: clamp(20rem, 52svh, 29rem); }
  .scene img { object-position: 58% 43%; }
  .scene::after {
    background:
      linear-gradient(0deg, var(--forest), #08271e8c 27%, transparent 63%, #071d16ad),
      linear-gradient(90deg, #08271e45, transparent 64%);
  }
  .viewfinder { inset: 5.75rem var(--gutter) 4rem; opacity: .48; }
  .masthead { padding-block: 1.4rem; }
  .hero { align-self: end; padding-block: clamp(11rem, 31svh, 17rem) 2.2rem; }
  .hero-kicker { margin-bottom: .9rem; }
  .hero h1 { font-size: clamp(3rem, 13.6vw, 6.25rem); }
  .hero-tagline { margin-top: 1.25rem; }
  .launch-cta { margin-top: 1.15rem; }
  .footer { padding-block: .85rem; }
}

@media (max-width: 360px) {
  :root { --gutter: 1.125rem; }
  .phone-row { grid-template-columns: 1fr; }
}

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

[hidden] { display: none !important; }
