:root {
  --bone: #f6f1e8;
  --bone-deep: #ebe4d8;
  --paper: #fffdf8;
  --ink: #20231f;
  --ink-soft: #5f635d;
  --olive: #3f5a45;
  --olive-dark: #263d2d;
  --sage: #dce4d7;
  --terracotta: #c96e4b;
  --line: rgba(32, 35, 31, 0.18);
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 90rem;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bone);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bone);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--paper);
  background: var(--olive);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--page-pad);
  border-bottom: 1px solid transparent;
  background: rgba(246, 241, 232, 0.82);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(246, 241, 232, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.brand-mark circle:first-of-type {
  fill: var(--terracotta);
}

.brand-mark circle:last-of-type {
  fill: var(--olive);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-size: 0.89rem;
  font-weight: 550;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--olive);
}

.hero {
  display: grid;
  min-height: 100svh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(8rem, 16vh, 11rem) var(--page-pad) 2rem;
  grid-template-columns: minmax(0, 7fr) minmax(17rem, 5fr);
  column-gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
}

.hero-copy {
  max-width: 60rem;
}

.eyebrow {
  display: flex;
  margin: 0 0 2rem;
  align-items: center;
  gap: 0.6rem;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 0.35rem rgba(201, 110, 75, 0.15);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.7rem, 7.1vw, 7.8rem);
  font-weight: 530;
  letter-spacing: -0.072em;
  line-height: 0.9;
}

h1 em {
  color: var(--olive);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 41rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: -0.018em;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  margin-top: 2.5rem;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--olive);
}

.button-primary:hover {
  background: var(--olive-dark);
}

.text-link {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.connection-field {
  align-self: center;
}

.connection-field svg {
  display: block;
  width: 100%;
  max-height: 32rem;
  overflow: visible;
}

.connection-field > p {
  margin: -1.5rem 0 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  text-align: center;
}

.connection-orbit {
  fill: none;
  stroke: rgba(63, 90, 69, 0.35);
  stroke-dasharray: 5 9;
  stroke-width: 1.5;
}

.connection-line {
  fill: none;
  stroke: rgba(63, 90, 69, 0.48);
  stroke-linecap: round;
  stroke-width: 1.5;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-line 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.line-two { animation-delay: 100ms; }
.line-three { animation-delay: 180ms; }
.line-four { animation-delay: 260ms; }
.line-five { animation-delay: 340ms; }

.point {
  fill: var(--olive);
}

.point-accent {
  fill: var(--terracotta);
}

.center-halo {
  fill: var(--sage);
}

.center-point {
  fill: var(--olive-dark);
}

.connection-field text {
  fill: var(--olive-dark);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-meta {
  display: flex;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  align-self: end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-shell {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 12rem) var(--page-pad);
  grid-template-columns: minmax(9rem, 3fr) minmax(0, 9fr);
  column-gap: clamp(2rem, 8vw, 9rem);
}

.section-index {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-index span {
  color: var(--terracotta);
}

.section-index p {
  margin: 0;
}

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

.vision h2,
.access h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

.vision-body {
  display: grid;
  margin-top: clamp(3rem, 7vw, 6rem);
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.vision-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  line-height: 1.6;
}

.principles {
  padding-top: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.principle {
  min-height: 19rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle:last-child {
  border-right: 1px solid var(--line);
}

.principle-number {
  color: var(--terracotta);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.principle h3 {
  max-width: 12ch;
  margin: 4.5rem 0 1rem;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.principle p {
  max-width: 25rem;
  margin: 0;
  color: var(--ink-soft);
}

.beta {
  color: var(--paper);
  background: var(--olive-dark);
}

.beta-inner {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) var(--page-pad);
  grid-template-columns: minmax(9rem, 3fr) minmax(0, 5fr) minmax(20rem, 4fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.section-index-light {
  color: rgba(255, 253, 248, 0.6);
}

.eyebrow-light {
  color: var(--sage);
}

.beta-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.beta-copy > p:last-child {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 1.09rem;
  line-height: 1.65;
}

.invite-system {
  position: relative;
  min-height: 23rem;
  padding: 2rem;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius);
}

.invite-origin {
  display: flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--olive-dark);
  background: var(--sage);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}

.invite-line {
  width: 1px;
  height: 4rem;
  margin-left: 2rem;
  background: rgba(255, 253, 248, 0.38);
}

.invite-dots {
  display: flex;
  gap: 0.65rem;
}

.invite-dots span {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 248, 0.45);
  border-radius: 50%;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.7rem;
}

.invite-dots span:first-child {
  color: var(--olive-dark);
  border-color: var(--terracotta);
  background: var(--terracotta);
}

.invite-copy {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
}

.invite-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.invite-copy p {
  margin: 0.4rem 0 0;
  color: rgba(255, 253, 248, 0.62);
}

.access {
  align-items: start;
}

.access-intro > p {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.access-intro .section-index {
  margin-bottom: 3.5rem;
}

.access-form {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row > label,
.form-row > legend {
  display: flex;
  margin-bottom: 0.55rem;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.form-row > label span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(32, 35, 31, 0.42);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  outline: none;
  transition: border-color 160ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 1px 0 var(--olive);
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.field-help,
.form-note {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.choice-group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.choice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.choice-options label {
  position: relative;
  cursor: pointer;
}

.choice-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-options span {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.82rem;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.choice-options input:checked + span {
  color: var(--olive-dark);
  border-color: var(--olive);
  background: var(--sage);
}

.choice-options input:focus-visible + span {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

.consent-row {
  display: grid;
  margin: 0.5rem 0 1.5rem;
  cursor: pointer;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.consent-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.12rem 0 0;
  accent-color: var(--olive);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.honeypot input {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
}

.submit-button {
  position: relative;
  width: 100%;
  margin-top: 0.5rem;
}

.button-progress {
  display: none;
}

.submit-button.is-loading .button-label {
  display: none;
}

.submit-button.is-loading .button-progress {
  display: inline;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--olive);
}

.form-status.is-error {
  color: #9a3f2d;
}

.site-footer {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--page-pad) 3rem;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: 2rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.brand-footer {
  color: var(--ink);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[contenteditable="true"] {
  outline: 1px dashed rgba(201, 110, 75, 0.65);
  outline-offset: 0.2rem;
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(15rem, 5fr);
    column-gap: 2rem;
  }

  .connection-field svg {
    margin-left: -1rem;
  }

  .section-shell {
    grid-template-columns: minmax(8rem, 2fr) minmax(0, 7fr);
    column-gap: 3rem;
  }

  .beta-inner {
    grid-template-columns: minmax(7rem, 2fr) minmax(0, 5fr);
  }

  .invite-system {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  .site-header {
    min-height: 4.5rem;
  }

  .site-nav > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }

  .connection-field {
    max-width: 30rem;
    margin: 1.5rem auto 0;
  }

  .connection-field svg {
    margin: 0;
  }

  .hero-meta {
    margin-top: 2rem;
    grid-column: 1;
  }

  .section-shell,
  .beta-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .vision-body {
    gap: 2rem;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: auto;
    padding: 1.5rem 0 2.5rem;
    border-right: 0;
    border-left: 0;
  }

  .principle:last-child {
    border-right: 0;
  }

  .principle h3 {
    margin-top: 2.5rem;
  }

  .invite-system {
    width: 100%;
    max-width: 35rem;
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {
  :root {
    --page-pad: 1.15rem;
  }

  .brand-mark {
    width: 1.8rem;
    height: 1.8rem;
  }

  .nav-cta {
    min-height: 2.7rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.3rem);
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta span:last-child {
    grid-column: 1 / -1;
  }

  .vision-body,
  .choice-options {
    grid-template-columns: 1fr;
  }

  .vision h2,
  .access h2 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .beta-copy h2 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

  .access-form {
    padding: 1.2rem;
  }
}

@media (min-width: 1440px) {
  .hero {
    min-height: 58rem;
  }

  .hero-copy {
    padding-left: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}
