:root {
  color-scheme: light;
  --canvas: #faf8f2;
  --surface: #f5f2ed;
  --ink: #1c1f1c;
  --sage: #598073;
  --sage-soft: #bfdacc;
  --line: rgb(28 31 28 / 17%);
  --line-strong: rgb(28 31 28 / 34%);
  --muted: rgb(28 31 28 / 68%);
  --quiet: rgb(28 31 28 / 52%);
  --art-paper: #faf8f2;
  --display: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --shell: min(86rem, calc(100% - 5rem));
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #1c1f1c;
    --surface: #262a26;
    --ink: #faf8f2;
    --sage: #a6d1bf;
    --sage-soft: #739987;
    --line: rgb(250 248 242 / 17%);
    --line-strong: rgb(250 248 242 / 34%);
    --muted: rgb(250 248 242 / 70%);
    --quiet: rgb(250 248 242 / 52%);
  }
}

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

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

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--sage-soft);
  color: #1c1f1c;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--sage) 72%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--sage);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  border-radius: 0.25rem;
  outline: 0.1875rem solid var(--sage);
  outline-offset: 0.25rem;
}

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

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.7rem, 7.5vw, 7.6rem);
}

h2 {
  font-size: clamp(3rem, 6.3vw, 6.5rem);
}

h3 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.3vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-170%);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 650;
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 0.0625rem solid var(--line);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand,
.footer-brand {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.primary-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.primary-nav a,
.site-footer a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  min-height: min(57rem, calc(100dvh - 5rem));
  padding-block: clamp(4rem, 8vh, 7.25rem) clamp(5rem, 9vh, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(23rem, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 55rem;
}

.status-line,
.message-code,
.legal-date {
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--rounded);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.status-line::before,
.message-code::before,
.legal-date::before {
  width: 2.5rem;
  height: 0.125rem;
  flex: 0 0 auto;
  background: var(--sage);
  content: "";
}

.hero h1 {
  max-width: 8.5ch;
  margin-bottom: 2rem;
}

.hero-definition {
  max-width: 36rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.75rem);
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.28;
  text-wrap: balance;
}

.interest-block {
  max-width: 39rem;
  padding-top: 1.25rem;
  border-top: 0.0625rem solid var(--line-strong);
}

.interest-intro {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.interest-form label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--rounded);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.055em;
}

.interest-control {
  position: relative;
}

.interest-entry,
.turnstile-stage,
.interest-success {
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.interest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.interest-row input,
.interest-row button {
  min-height: 3.25rem;
  border: 0.0625rem solid var(--line-strong);
  border-radius: 0;
  font: inherit;
}

.interest-row input {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border-right: 0;
  background: transparent;
  color: var(--ink);
}

.interest-row input:hover {
  border-color: var(--sage);
}

.interest-row input:focus-visible {
  position: relative;
  z-index: 1;
}

.interest-row button {
  padding: 0.75rem 1.2rem;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
  cursor: pointer;
  font-family: var(--rounded);
  font-size: 0.8125rem;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

.interest-row button:hover {
  background: transparent;
  color: var(--ink);
}

.interest-disclosure,
.form-note {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.5;
}

.turnstile-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--canvas);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 200ms;
}

.turnstile-slot {
  width: 100%;
}

.turnstile-slot > div,
.turnstile-slot iframe {
  width: 100% !important;
  max-width: 100%;
}

.verification-wait {
  position: absolute;
  color: var(--muted);
  font-family: var(--rounded);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.interest-success {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 240ms 80ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms;
}

.interest-success p {
  margin: 0;
  font-size: 0.95rem;
}

.interest-form:is([data-verification="active"], [data-verification="success"]) .interest-entry {
  opacity: 0;
  pointer-events: none;
}

.interest-form[data-verification="active"] .turnstile-stage {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.interest-form[data-widget-visible="true"] .verification-wait {
  display: none;
}

.interest-form[data-verification="success"] .turnstile-stage {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.interest-form[data-verification="success"] .interest-success {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 80ms, 0s;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-status:not(:empty) {
  margin-top: 0.65rem;
}

.form-status-static {
  margin-top: 0.65rem;
}

.hero-art {
  position: relative;
  width: min(100%, 34rem);
  margin: 0 0 0 auto;
  overflow: hidden;
  background: var(--art-paper);
  clip-path: inset(0 0 0 0);
}

.hero-art::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 0.0625rem solid rgb(28 31 28 / 11%);
  pointer-events: none;
  content: "";
}

.hero-art img {
  width: 100%;
  height: auto;
}

.system {
  padding-block: clamp(8rem, 15vw, 13rem) clamp(7rem, 13vw, 11rem);
  border-top: 0.0625rem solid var(--line);
}

.system-heading {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(7rem, 4fr);
}

.system-heading h2 {
  max-width: 10.5ch;
  margin-bottom: clamp(6rem, 11vw, 10rem);
  grid-column: 1;
}

.system-map {
  position: relative;
  min-height: 52rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 1fr);
}

.path-drawing {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.path-base {
  stroke: var(--line);
  stroke-width: 1;
}

.path-active {
  stroke: var(--sage);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-width: 2;
}

.surface {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 25rem;
  padding: 1.75rem 0 1.75rem 1.5rem;
  border-left: 0.125rem solid var(--sage);
  background: var(--canvas);
}

.surface h3 {
  margin-bottom: 0.85rem;
}

.surface p {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.surface-talk {
  grid-column: 1 / span 4;
  grid-row: 1 / span 3;
}

.surface-threads {
  grid-column: 8 / span 4;
  grid-row: 3 / span 3;
}

.surface-notes {
  grid-column: 2 / span 4;
  grid-row: 6 / span 3;
}

.surface-library {
  grid-column: 7 / span 5;
  grid-row: 8 / span 3;
  max-width: 30rem;
}

.system-close {
  width: max-content;
  max-width: 100%;
  margin: clamp(4rem, 8vw, 7rem) 0 0 auto;
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--line-strong);
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.dwelling {
  padding-block: clamp(8rem, 15vw, 13rem);
  background: var(--surface);
}

.dwelling-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: clamp(4rem, 12vw, 12rem);
}

.dwelling-statement h2 {
  max-width: 8ch;
  margin-bottom: 0.35rem;
}

.dwelling-second {
  margin: 0;
  color: var(--sage);
  font-family: var(--display);
  font-size: clamp(3rem, 6.3vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.dwelling-copy {
  padding-top: 1.35rem;
  border-top: 0.0625rem solid var(--line-strong);
}

.dwelling-copy > p:first-child {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.site-footer {
  border-top: 0.0625rem solid var(--line);
  background: var(--surface);
}

.site-footer a {
  font-size: 0.75rem;
}

.footer-inner {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-brand {
  margin-right: 0.55rem;
  color: var(--ink);
}

.legal {
  max-width: 64rem;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.legal h1 {
  margin-bottom: 2.25rem;
}

.legal-lede {
  max-width: 43rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.38;
}

.legal section {
  padding-block: 2.2rem;
  display: grid;
  grid-template-columns: minmax(11rem, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(2rem, 7vw, 6rem);
  border-top: 0.0625rem solid var(--line);
}

.legal section:last-of-type {
  border-bottom: 0.0625rem solid var(--line);
}

.legal h2 {
  margin: 0;
  font-family: var(--rounded);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.legal section p {
  grid-column: 2;
  margin-bottom: 1rem;
  color: var(--muted);
  text-wrap: pretty;
}

.legal section h2 + p {
  margin-top: 0;
}

.legal section p:last-child {
  margin-bottom: 0;
}

.legal-return {
  margin-top: 3rem;
}

.message-page,
.form-page {
  min-height: calc(100dvh - 5rem);
  padding-block: clamp(5rem, 11vw, 10rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.message-page h1,
.form-page h1 {
  max-width: 10ch;
  margin-bottom: 2rem;
}

.message-page > p:not(.message-code),
.form-page > p:not(.message-code, .form-note) {
  max-width: 38rem;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  font-family: var(--rounded);
  font-size: 0.875rem;
  font-weight: 650;
}

.standalone-form {
  width: min(100%, 39rem);
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid var(--line-strong);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translate3d(0, 0.75rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes reveal-art {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

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

.status-line,
.hero h1,
.hero-definition,
.interest-block {
  opacity: 0;
  animation: reveal-up 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 {
  animation-delay: 80ms;
}

.hero-definition {
  animation-delay: 150ms;
}

.interest-block {
  animation-delay: 220ms;
}

.hero-art {
  opacity: 0;
  animation: reveal-art 560ms 130ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@supports (animation-timeline: view()) {
  .path-active {
    animation: draw-path linear both;
    animation-timeline: view(block 80% 10%);
  }
}

@media (max-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.7fr);
    gap: 3rem;
  }

  .dwelling-inner {
    grid-template-columns: 1fr;
  }

  .dwelling-copy {
    max-width: 38rem;
    margin-left: auto;
  }
}

@media (max-width: 48rem) {
  :root {
    --shell: min(100% - 2rem, 86rem);
  }

  .header-inner {
    min-height: 4.5rem;
  }

  .brand {
    font-size: 1.65rem;
  }

  .hero {
    min-height: auto;
    padding-block: 4rem 6.5rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 7.5ch;
  }

  .hero-definition {
    max-width: 30rem;
    margin-bottom: 3.75rem;
  }

  .hero-art {
    width: min(88%, 30rem);
    margin: 1rem auto 0;
  }

  .system-heading,
  .legal section {
    display: block;
  }

  .system-heading h2 {
    margin-bottom: 5.5rem;
  }

  .system-map {
    min-height: 0;
    display: block;
    padding-left: 1.5rem;
    border-left: 0.0625rem solid var(--sage);
  }

  .path-drawing {
    display: none;
  }

  .surface {
    max-width: 30rem;
    margin-bottom: 6rem;
    padding: 0;
    border-left: 0;
    background: transparent;
  }

  .surface:nth-of-type(2) {
    margin-left: 8vw;
  }

  .surface:nth-of-type(3) {
    margin-left: 15vw;
  }

  .surface:nth-of-type(4) {
    margin: 0 0 0 7vw;
  }

  .system-close {
    width: auto;
    margin-top: 5rem;
  }

  .dwelling-copy {
    margin-left: 0;
  }

  .legal section {
    padding-block: 2rem;
  }

  .legal h2 {
    margin-bottom: 1rem;
  }

  .legal section p {
    margin-left: 0;
  }
}

@media (max-width: 34rem) {
  .primary-nav {
    gap: 1rem;
  }

  .primary-nav a {
    font-size: 0.75rem;
  }

  .interest-row {
    grid-template-columns: 1fr;
  }

  .interest-row input {
    border-right: 0.0625rem solid var(--line-strong);
    border-bottom: 0;
  }

  .interest-row button {
    width: 100%;
  }

  .surface:nth-of-type(2) {
    margin-left: 4vw;
  }

  .surface:nth-of-type(3) {
    margin-left: 8vw;
  }

  .surface:nth-of-type(4) {
    margin-left: 4vw;
  }

  .footer-inner {
    min-height: 7rem;
    align-items: flex-start;
    padding-block: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

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

  .status-line,
  .hero h1,
  .hero-definition,
  .interest-block,
  .hero-art {
    opacity: 1;
    clip-path: none;
  }

  .path-active {
    stroke-dashoffset: 0;
  }
}
