@font-face {
  font-family: "Inclusive Sans";
  src: url("assets/fonts/inclusive-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Williwaw Book";
  src: url("assets/fonts/williwaw-book.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sweet Sans Pro";
  src: url("Fonts/SweetSansPro-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Sweet Sans Pro";
  src: url("Fonts/SweetSansPro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sweet Sans Pro";
  src: url("Fonts/SweetSansPro-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg-top: #123d1d;
  --bg-bottom: #0f3418;
  --paper: #ddd1c4;
  --paper-deep: #d5c7b8;
  --paper-line: rgba(70, 48, 29, 0.12);
  --ink: #251b13;
  --ink-soft: rgba(37, 27, 19, 0.78);
  --ink-muted: rgba(37, 27, 19, 0.5);
  --cream: rgba(238, 228, 217, 0.92);
  --cream-soft: rgba(238, 228, 217, 0.28);
  --transition: 240ms ease;
  --card-width: 600px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-top);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background-color: var(--bg-top);
  color: var(--cream);
  font-family: "Williwaw Book", Georgia, serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body.app-open {
  overflow: hidden;
}

body:not(.is-ready) .hero-stage,
body:not(.is-ready) .folio-card {
  opacity: 0;
  transform: translateY(18px);
}

body.is-transitioning .center-mark {
  animation: centerPulse 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

a,
button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  padding: 96px 28px 80px;
}

.hero-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  transition: opacity 1200ms ease 100ms, transform 1400ms cubic-bezier(0.16, 1, 0.3, 1) 100ms;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: calc(20px + env(safe-area-inset-top)) 16px 0;
  z-index: 12;
}

.header-nav {
  position: absolute;
  left: 28px;
  top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.header-nav-link {
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 228, 217, 0.74);
  transition: color var(--transition), opacity var(--transition);
}

.header-nav-link:hover,
.header-nav-link:focus-visible,
.header-nav-link.is-active {
  color: var(--cream);
}

.header-wordmark-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-wordmark {
  width: clamp(110px, 16vw, 150px);
  display: block;
  opacity: 0.58;
  transition: opacity var(--transition), transform var(--transition);
}

.header-wordmark-link:hover .header-wordmark,
.header-wordmark-link:focus-visible .header-wordmark {
  opacity: 0.8;
  transform: translateY(-1px);
}

.orbital-gate {
  position: relative;
  width: min(76vw, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.orbit-background-one {
  animation: orbit 34s linear infinite;
}

.orbit-background-two {
  animation: orbitReverse 28s linear infinite;
}

.orbit-background-three {
  animation: orbit 42s linear infinite;
}

.orbit-background-four {
  animation: orbitReverse 50s linear infinite;
}

.center-mark-shell {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.center-mark {
  width: min(100%, 112px);
  display: block;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.18));
}

.orbit-button {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  animation: orbit 15s linear infinite;
}

.orbit-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-text-copy {
  fill: var(--cream);
  opacity: 0.82;
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-size: 5.6px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.orbit-text-muted {
  opacity: 0.14;
}

.orbit-button:hover .orbit-text-copy {
  opacity: 1;
}

.folio-card {
  width: min(100%, var(--card-width));
  margin: 0;
  min-height: 560px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  padding: 42px 38px 34px;
  display: grid;
  align-content: start;
  transition: opacity 1200ms ease 180ms, transform 1400ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  max-height: min(78vh, 760px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.folio-card::-webkit-scrollbar {
  display: none;
}

.legal-page .page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-top: 148px;
}

.legal-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.legal-kicker,
.legal-tab {
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-kicker {
  font-size: 0.72rem;
  color: rgba(238, 228, 217, 0.68);
}

.legal-hero h1,
.legal-document h2 {
  margin: 0;
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-weight: 320;
  letter-spacing: -0.04em;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  max-width: 12ch;
  line-height: 0.92;
}

.legal-lead {
  max-width: 54ch;
  color: rgba(238, 228, 217, 0.8);
  line-height: 1.75;
  font-size: 1rem;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.legal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(238, 228, 217, 0.22);
  color: rgba(238, 228, 217, 0.78);
  font-size: 0.7rem;
  text-align: center;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.legal-tab:hover,
.legal-tab:focus-visible,
.legal-tab.is-active {
  color: var(--cream);
  border-color: rgba(238, 228, 217, 0.42);
  background: rgba(238, 228, 217, 0.08);
}

.legal-grid {
  display: grid;
  gap: 22px;
}

.legal-document {
  padding: 28px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(221, 209, 196, 0.98) 0%, rgba(213, 199, 184, 0.96) 100%);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

.legal-document[hidden] {
  display: none;
}

.legal-document-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(70, 48, 29, 0.12);
}

.legal-meta {
  color: var(--ink-muted);
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-copy {
  display: grid;
  gap: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.legal-copy > :first-child {
  margin-top: 0;
}

.legal-copy > :last-child {
  margin-bottom: 0;
}

.legal-copy h3,
.legal-copy h4 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.legal-copy p,
.legal-copy ul {
  margin: 0;
}

.legal-copy ul {
  padding-left: 1.2rem;
}

.legal-copy li + li {
  margin-top: 8px;
}

.membership-hero {
  justify-items: center;
  text-align: center;
}

.membership-document {
  max-width: 860px;
  margin: 0 auto;
}

.membership-copy {
  gap: 14px;
}

.tier-card {
  border: 1px solid rgba(70, 48, 29, 0.12);
  background: rgba(255, 255, 255, 0.14);
}

.tier-card + .tier-card {
  margin-top: 4px;
}

.tier-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tier-summary::-webkit-details-marker {
  display: none;
}

.tier-summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
}

.tier-card[open] .tier-summary::after {
  content: "\2212";
}

.tier-body {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.tier-body p {
  margin: 0;
}

.folio-section {
  position: relative;
}

.application-heading-row,
.screen-actions,
.choice-row,
.review-meta,
.referral-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-heading-row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.application-copy h3,
.waitlist-number {
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
}

.application-copy h3 {
  margin: 0;
  font-size: clamp(1.14rem, 1.8vw, 1.42rem);
  font-weight: 320;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.application-copy p,
.screen-head p,
.field-note,
.screen-hint,
.status-banner p,
.waitlist-card p,
.share-card p,
.application-note,
.error-message {
  color: var(--ink-soft);
  line-height: 1.65;
}

.application-copy p,
.screen-head p {
  margin: 10px 0 0;
}

.application-copy p:empty,
.screen-head p:empty {
  display: none;
}

.application-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.section-index,
.progress-copy,
.field label,
.review-pill,
.status-banner strong,
.waitlist-card strong,
.share-card strong {
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
}

.section-index {
  display: inline-block;
  color: var(--ink-muted);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.progress-copy {
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.progress-track {
  height: 1px;
  margin: 18px 0 18px;
  background: rgba(70, 48, 29, 0.14);
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: rgba(70, 48, 29, 0.72);
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-stack {
  position: relative;
  min-height: 420px;
  transition: height 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.is-transitioning .screen.active {
  opacity: 0.18;
  transform: translateY(8px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(70, 48, 29, 0.12);
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  outline: 0;
  font-size: 0.98rem;
  transition: border-color var(--transition), background var(--transition);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(70, 48, 29, 0.34);
  background: rgba(255, 255, 255, 0.28);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(37, 27, 19, 0.34);
}

.error-message {
  min-height: 1.4em;
  color: #6f4e2e;
  font-size: 0.9rem;
}

.screen-actions {
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.primary-button,
.secondary-button,
.toggle-button,
.mini-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(70, 48, 29, 0.2);
  background: transparent;
  color: var(--ink);
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.primary-button:hover,
.secondary-button:hover,
.toggle-button:hover,
.mini-button:hover {
  background: rgba(70, 48, 29, 0.04);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.toggle-button.active {
  border-color: rgba(70, 48, 29, 0.42);
}

.confirmation-shell {
  display: grid;
  gap: 14px;
}

.status-banner,
.waitlist-card,
.share-card {
  padding: 18px;
  border: 1px solid rgba(70, 48, 29, 0.12);
  background: rgba(255, 255, 255, 0.14);
}

.status-banner strong,
.waitlist-card strong,
.share-card strong {
  display: block;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 520;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(70, 48, 29, 0.14);
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-number {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.08em;
}

.referral-box {
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(70, 48, 29, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.referral-box code {
  color: var(--ink);
  font-family: "Sweet Sans Pro", "Inclusive Sans", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

[hidden] {
  display: none !important;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes orbitCounter {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes centerPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.08);
    opacity: 0.92;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: calc(20px + env(safe-area-inset-top)) 18px 44px;
  }

  .site-header {
    justify-content: space-between;
    align-items: center;
    padding: calc(18px + env(safe-area-inset-top)) 18px 0;
  }

  .header-nav {
    position: static;
    gap: 12px;
  }

  .header-nav-link {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .hero-stage {
    min-height: 100vh;
  }

  .orbital-gate {
    width: min(90vw, 380px);
  }

  .center-mark {
    width: 92px;
  }

  .orbit-button-inner {
    min-height: 40px;
    padding: 0 18px;
  }

  .folio-card {
    width: 100%;
    min-height: 420px;
    padding: 26px 22px 24px;
    top: calc(50% + 34px);
    max-height: min(82vh, 720px);
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .application-heading-row,
  .screen-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .application-meta {
    justify-items: start;
  }

  .screen-stack {
    min-height: 560px;
  }

  .legal-page .page-shell {
    padding-top: calc(110px + env(safe-area-inset-top));
  }

  .legal-hero h1 {
    max-width: 100%;
  }

  .legal-document {
    padding: 22px 20px 24px;
  }

  .tier-summary {
    padding: 16px 18px;
  }

  .tier-body {
    padding: 0 18px 18px;
  }
}
