:root {
  --bg-0: #e6ebe8;
  --bg-1: #d7e0db;
  --ink: #121816;
  --ink-soft: #3d4a44;
  --accent: #1f5c4b;
  --accent-deep: #143d33;
  --seal: #f4f7f5;
  --ring: rgba(18, 24, 22, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

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

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-display);
  background:
    radial-gradient(120% 90% at 78% 42%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
    radial-gradient(80% 70% at 12% 80%, rgba(31, 92, 75, 0.1) 0%, transparent 50%),
    linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 48%, #c9d5cf 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-hero {
  overflow: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb-a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: -8%;
  right: 8%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px), 0);
  transition: transform 0.6s var(--ease);
  animation: drift-a 14s var(--ease) infinite alternate;
}

.orb-b {
  width: min(44vw, 420px);
  height: min(44vw, 420px);
  bottom: -12%;
  left: -4%;
  background: rgba(31, 92, 75, 0.16);
  transform: translate3d(calc(var(--mx, 0) * 22px), calc(var(--my, 0) * 16px), 0);
  transition: transform 0.7s var(--ease);
  animation: drift-b 18s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from {
    filter: blur(60px);
  }
  to {
    filter: blur(68px);
  }
}

@keyframes drift-b {
  from {
    filter: blur(60px);
  }
  to {
    filter: blur(72px);
  }
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.seal-stage {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(92vh, 78vw);
  max-width: 820px;
  transform: translate3d(
    calc(var(--mx, 0) * 18px),
    calc(-50% + var(--my, 0) * 14px),
    0
  );
  transition: transform 0.55s var(--ease);
  opacity: 0;
  animation: stage-in 1.1s var(--ease) 0.15s forwards;
}

@keyframes stage-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.seal {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.seal__track {
  stroke: var(--ring);
  stroke-width: 1.25;
}

.seal__progress {
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-dasharray: 867;
  stroke-dashoffset: 867;
  transform-origin: 160px 160px;
  transform: rotate(-90deg);
  animation: draw-ring 1.6s var(--ease) 0.45s forwards;
}

.seal__inner {
  fill: rgba(244, 247, 245, 0.72);
  stroke: rgba(18, 24, 22, 0.08);
  stroke-width: 1;
  opacity: 0;
  transform-origin: 160px 160px;
  animation: seal-in 0.9s var(--ease) 0.35s forwards;
}

@keyframes draw-ring {
  to {
    stroke-dashoffset: 120;
  }
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.seal__mark {
  position: relative;
  z-index: 1;
  width: 18%;
  color: var(--accent);
  margin-bottom: 2.2rem;
}

.seal__check {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw-check 0.7s var(--ease) 1.05s forwards;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.seal__label {
  position: absolute;
  z-index: 1;
  bottom: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 1.25s forwards;
}

.seal__label span:last-child {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: none;
  font-size: 0.95em;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto;
  max-width: 36rem;
  margin-left: max(2rem, calc((100% - 1180px) / 2 + 2rem));
  padding: clamp(2rem, 4vh, 3.5rem) 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.headline em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: clamp(1.75rem, 3.5vh, 2.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.55rem;
  background: var(--ink);
  color: #f4f7f5;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 0.35rem;
  transition:
    background 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

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

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 0 3rem;
    gap: 1.5rem;
  }

  .hero__visual {
    position: relative;
    inset: auto;
    height: min(48vw, 240px);
    flex-shrink: 0;
  }

  .seal-stage {
    top: 0;
    right: 50%;
    width: min(58vw, 240px);
    transform: translateX(50%);
    transition: none;
    animation: stage-in 0.9s var(--ease) 0.1s forwards;
  }

  .seal {
    animation: none;
  }

  .hero__copy {
    width: min(100% - 2.5rem, 520px);
    margin: 0 auto;
    max-width: none;
    text-align: center;
    padding: 0;
  }

  .lede {
    margin-inline: auto;
  }

  .brand {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .seal,
  .seal-stage,
  .seal__progress,
  .seal__inner,
  .seal__check,
  .seal__label,
  .reveal,
  .capacity__fill,
  .capacity__fill::after {
    animation: none !important;
  }

  .reveal,
  .seal__inner,
  .seal__label,
  .seal-stage {
    opacity: 1;
    filter: none;
  }

  .reveal {
    transform: none;
  }

  .seal-stage {
    transform: translate3d(0, -50%, 0);
  }

  .seal__progress {
    stroke-dashoffset: 120;
  }

  .seal__check {
    stroke-dashoffset: 0;
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .seal-stage {
    transform: translateX(50%);
  }
}

/* —— Multi-page / waitlist —— */

body.is-page {
  overflow: auto;
}

.page {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0 clamp(4rem, 8vh, 6rem);
}

.page--about {
  width: min(720px, calc(100% - 2.5rem));
}

.about-visual {
  margin: 0 0 clamp(1.75rem, 4vh, 2.5rem);
}

.about-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.page__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: clamp(1.75rem, 4vh, 2.5rem);
}

.page__brand:hover {
  color: var(--accent-deep);
}

.page__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.page__title em {
  font-style: italic;
  color: var(--accent);
}

.page__lede {
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vh, 2.75rem);
}

.page__lede a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

.page__lede a:hover {
  color: var(--accent);
}

.capacity {
  background: rgba(244, 247, 245, 0.55);
  border: 1px solid rgba(18, 24, 22, 0.08);
  border-radius: 0.5rem;
  padding: 1.15rem 1.35rem 1.25rem;
  margin-bottom: 1rem;
}

.capacity__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.capacity__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.capacity__count {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.capacity__count strong {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-right: 0.12rem;
}

.capacity__track {
  position: relative;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(18, 24, 22, 0.1);
  overflow: hidden;
}

.capacity__fill {
  display: block;
  position: relative;
  height: 100%;
  width: var(--taken, 70%);
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: left center;
  animation:
    capacity-fill 1.35s var(--ease) 0.2s both,
    capacity-glow 2.8s ease-in-out 1.55s infinite;
}

.capacity__fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  animation: capacity-glide 2.6s ease-in-out 1.5s infinite;
}

@keyframes capacity-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes capacity-glow {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(31, 92, 75, 0);
  }
  50% {
    filter: brightness(1.14);
    box-shadow: 0 0 10px 1px rgba(31, 92, 75, 0.28);
  }
}

@keyframes capacity-glide {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(280%);
  }
}

.capacity__note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}

.form-panel {
  background: rgba(244, 247, 245, 0.55);
  border: 1px solid rgba(18, 24, 22, 0.08);
  border-radius: 0.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.form-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}

.waitlist-form {
  display: grid;
  gap: 1.15rem;
}

.waitlist-form[hidden],
.form-panel__title[hidden],
.form-success[hidden],
.form-error[hidden],
.capacity[hidden] {
  display: none !important;
}

.form-panel.is-complete .waitlist-form,
.form-panel.is-complete .form-panel__title,
.form-panel.is-complete .form-error {
  display: none !important;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.field__hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(18, 24, 22, 0.16);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  appearance: none;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233d4a44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.field input::placeholder {
  color: rgba(61, 74, 68, 0.45);
}

.field input:hover,
.field select:hover {
  border-color: rgba(18, 24, 22, 0.28);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.btn--block {
  width: 100%;
  margin-top: 0.35rem;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-error {
  font-size: 0.9rem;
  font-weight: 500;
  color: #8a2e2e;
  line-height: 1.4;
}

.form-success__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.form-success__text {
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 28rem;
}

.about-copy {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.about-copy p {
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.about-back {
  margin-top: 2.5rem;
}

.about-back a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.about-back a:hover {
  color: var(--accent-deep);
}