:root {
  color-scheme: light;
  --paper: oklch(.97 .009 88);
  --paper-deep: oklch(.94 .015 84);
  --surface: oklch(.985 .006 90);
  --ink: oklch(.235 .018 61);
  --soft: oklch(.45 .023 63);
  --faint: oklch(.52 .018 68);
  --moss: oklch(.43 .078 145);
  --moss-deep: oklch(.34 .066 145);
  --moss-dark: oklch(.25 .046 145);
  --moss-pale: oklch(.89 .035 133);
  --riverstone: oklch(.885 .028 225);
  --clay: oklch(.46 .12 48);
  --error: oklch(.44 .15 28);
  --line: oklch(.84 .018 76);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Seravek, "Gill Sans Nova", "Gill Sans", Ubuntu, Calibri, "Trebuchet MS", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 28px 70px oklch(.28 .03 66 / .16);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); font-kerning: normal; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--moss-deep); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(76px, 11vw, 144px); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: 14px; color: var(--moss-deep); font: 700 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--moss-deep); border-radius: .45rem; background: var(--moss-deep); color: var(--surface); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button-small { min-height: 44px; padding: 10px 16px; font-size: .86rem; }
.button:active { transform: translateY(1px); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 1.12rem/1 var(--serif); text-decoration: none; }
.wordmark svg { width: 25px; height: 32px; fill: none; stroke: var(--moss-deep); stroke-width: 1.8; stroke-linecap: round; }
.wordmark b { display: block; margin-top: 4px; color: var(--moss-deep); font: 700 .62rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.site-header nav { display: none; gap: 24px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--soft); font-size: .86rem; text-decoration: none; }

.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 75%; z-index: -1; background: radial-gradient(circle at 14% 14%, var(--surface), transparent 30%), linear-gradient(120deg, var(--paper) 30%, var(--paper-deep)); opacity: .72; }
.hero-copy { display: grid; gap: 36px; align-items: center; padding-block: clamp(48px, 8vw, 92px); }
.hero-message { position: relative; z-index: 1; }
h1 { max-width: 10.5ch; margin-bottom: 20px; margin-left: -.04em; font-size: clamp(3.1rem, 12vw, 5.9rem); line-height: .96; letter-spacing: -.045em; }
.hero-lede { max-width: 32em; margin-bottom: 26px; color: var(--soft); font: clamp(1.15rem, 2.1vw, 1.45rem)/1.5 var(--sans); }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.availability { margin: 22px 0 0; color: var(--moss-deep); font-size: .9rem; }
.availability span { margin-right: 6px; font-size: .65rem; }
.palace-frame { position: relative; margin: 0; overflow: hidden; border-radius: .8rem; box-shadow: var(--shadow); background: var(--paper-deep); }
.palace-frame img { width: 100%; aspect-ratio: 1.22; object-fit: cover; object-position: 8% center; }
.palace-frame figcaption { position: absolute; right: 12px; bottom: 12px; max-width: 25ch; padding: 9px 12px; border-radius: .35rem; background: var(--surface); color: var(--moss-deep); font: 700 .72rem/1.35 var(--sans); box-shadow: 0 8px 28px oklch(.2 .02 70 / .12); }
.path-gate { padding-block: 34px 42px; background: var(--moss-dark); color: var(--surface); }
.path-statement { max-width: 850px; text-align: center; }
.path-gate h2 { max-width: 22ch; margin: 0 auto 18px; color: var(--surface); font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.05; }
.path-gate p:last-child { max-width: 58ch; margin: 0 auto; color: oklch(.84 .018 100); font-size: 1.05rem; }
.path-ornament { margin: 0; color: var(--moss-pale); text-align: center; }

.section-heading { display: grid; gap: 18px; margin-bottom: clamp(42px, 7vw, 76px); }
.section-heading h2, .reveal-copy h2, .ownership h2, .cohort h2, .application h2, .closing h2 { max-width: 18ch; margin-bottom: 18px; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.section-lede { max-width: 58ch; margin-bottom: 0; color: var(--soft); font-size: 1.08rem; }
.manifesto { margin: 0; padding: clamp(26px, 5vw, 52px) 0 clamp(8px, 2vw, 18px); border-top: 1px solid var(--line); }
.manifesto p { max-width: 25ch; margin: 0; color: var(--moss-deep); font: clamp(1.65rem, 4.5vw, 3.25rem)/1.22 var(--serif); }

.process { background: var(--paper-deep); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--moss-deep); font: 700 .72rem/1.5 var(--mono); }
.process-list h3 { margin-bottom: 5px; font-size: 1.55rem; }
.process-list p { max-width: 42ch; margin: 0; color: var(--soft); }

.reveal { display: grid; gap: 46px; align-items: center; }
.reveal-copy p:not(.eyebrow):not(.proof-line) { max-width: 54ch; color: var(--soft); }
.proof-line { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--moss-deep); font-weight: 700; }
.proof-line span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--moss); border-radius: 50%; }
.map-sheet { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transform: rotate(.4deg); }
.map-head { display: grid; gap: 2px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.map-head span, .map-head small, .map-rooms article > span { color: var(--moss-deep); font: 700 .65rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.map-head strong { font: 2rem/1.2 var(--serif); }
.map-rooms { display: grid; grid-template-columns: 1fr 1fr; }
.map-rooms article { min-height: 150px; padding: 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-rooms article:nth-child(2n) { border-right: 0; }
.map-rooms h3 { margin: 6px 0 4px; font-size: 1.18rem; }
.map-rooms p { margin: 0; color: var(--soft); font-size: .84rem; line-height: 1.45; }
.map-source { margin: 18px 0 0; color: var(--soft); font-size: .78rem; }

.receive { background: var(--moss-dark); color: var(--surface); }
.receive .eyebrow { color: var(--moss-pale); }
.receive .section-lede { color: oklch(.84 .018 100); }
.deliverables { border-top: 1px solid oklch(.85 .03 125 / .32); }
.deliverables article { display: grid; grid-template-columns: 42px 1fr; gap: 2px 18px; padding: 25px 0; border-bottom: 1px solid oklch(.85 .03 125 / .32); }
.deliverables .number { grid-row: 1 / 3; color: var(--moss-pale); font: 700 .7rem/1.5 var(--mono); }
.deliverables h3 { margin: 0; color: var(--surface); font-size: 1.45rem; }
.deliverables p { max-width: 50ch; margin: 4px 0 0; color: oklch(.84 .018 100); }
.ownership-panel { padding: clamp(28px, 6vw, 68px); background: var(--riverstone); }
.ownership h2 { color: var(--moss-deep); }
.ownership-rules { display: grid; gap: 0; border-top: 1px solid oklch(.68 .035 210); }
.ownership-rules p { margin: 0; padding: 20px 0; border-bottom: 1px solid oklch(.68 .035 210); color: var(--soft); }
.ownership-rules strong { display: block; color: var(--ink); }

.cohort { display: grid; gap: 44px; }
.cohort-intro > p:last-child { max-width: 56ch; color: var(--soft); }
.cohort-note { padding: clamp(24px, 5vw, 38px); border: 1px solid var(--line); background: var(--surface); }
.cohort-note span { display: block; margin-bottom: 10px; color: var(--moss-deep); font: clamp(1.7rem, 5vw, 2.8rem)/1.1 var(--serif); }
.cohort-note p { max-width: 35ch; margin: 0; color: var(--soft); }

.application { background: var(--paper-deep); }
.application-layout { display: grid; gap: 48px; }
.application-copy > p:not(.eyebrow):not(.privacy-note) { max-width: 48ch; color: var(--soft); }
.privacy-note { display: flex; gap: 12px; max-width: 44ch; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--moss-deep); font-size: .88rem; }
.privacy-note svg { width: 26px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
form { display: grid; gap: 24px; padding: clamp(22px, 5vw, 42px); background: var(--surface); border: 1px solid var(--line); }
.form-row { display: grid; gap: 24px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid oklch(.67 .022 70); border-radius: .35rem; background: var(--surface); color: var(--ink); }
.field textarea { min-height: 116px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--moss); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint, .field-error { margin: 0; font-size: .78rem; line-height: 1.4; }
.field-hint { color: var(--soft); }
.field-error { color: var(--error); }
.consent { display: flex; align-items: flex-start; gap: 11px; color: var(--soft); font-size: .88rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--moss-deep); }
.submit-button { width: 100%; }
.submit-button[disabled] { border-color: var(--soft); background: var(--soft); cursor: not-allowed; opacity: 1; }
.form-status { min-height: 24px; margin: -8px 0 0; color: var(--moss-deep); font-weight: 700; }
.form-status.is-error { color: var(--error); }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font: clamp(1.2rem, 3vw, 1.65rem)/1.3 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--moss-deep); font: 1.5rem/1 var(--sans); transition: transform 180ms ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 66ch; padding-bottom: 20px; color: var(--soft); }

.closing { position: relative; overflow: hidden; background: var(--moss-dark); color: var(--surface); }
.closing::after { content: ""; position: absolute; width: 430px; height: 430px; right: -190px; bottom: -300px; border: 1px solid oklch(.86 .04 135 / .28); border-radius: 50%; box-shadow: 0 0 0 54px oklch(.86 .04 135 / .08), 0 0 0 108px oklch(.86 .04 135 / .05); }
.closing .shell { position: relative; z-index: 1; }
.closing .eyebrow { color: var(--moss-pale); }
.closing h2 { color: var(--surface); }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--moss-deep); }
.site-footer { min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding-block: 22px max(22px, env(safe-area-inset-bottom)); color: var(--soft); font-size: .78rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); background: var(--moss); border-color: var(--moss); }
  .site-header nav a:hover, .text-link:hover { color: var(--moss); }
}

@media (min-width: 700px) {
  .shell { width: min(calc(100% - 64px), var(--shell)); }
  .site-header nav { display: flex; }
  .hero-copy { grid-template-columns: minmax(0, .83fr) minmax(440px, 1.17fr); gap: clamp(32px, 5vw, 72px); }
  .palace-frame { margin-right: calc((100vw - min(100vw - 64px, var(--shell))) / -2); border-radius: .8rem 0 0 .8rem; }
  .palace-frame img { min-height: 570px; aspect-ratio: auto; }
  .section-heading { grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr); gap: 36px; }
  .manifesto { margin-left: 34%; }
  .process-list li { grid-template-columns: 60px minmax(150px, .42fr) 1fr; align-items: baseline; }
  .process-list h3 { margin: 0; }
  .process-list li div { display: contents; }
  .reveal { grid-template-columns: .83fr 1.17fr; gap: clamp(48px, 8vw, 100px); }
  .deliverables article { grid-template-columns: 62px minmax(180px, .55fr) 1fr; align-items: baseline; }
  .deliverables .number { grid-row: auto; }
  .deliverables p { margin: 0; }
  .ownership-rules { grid-template-columns: 1fr 1fr; }
  .ownership-rules p { padding-right: 24px; }
  .ownership-rules p:nth-child(2n) { padding-left: 24px; padding-right: 0; border-left: 1px solid oklch(.68 .035 210); }
  .cohort { grid-template-columns: 1fr .9fr; align-items: end; }
  .application-layout { grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); align-items: start; }
  .application-copy { position: sticky; top: 32px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1040px) {
  .site-header { min-height: 92px; }
  .hero-copy { min-height: 710px; }
  .path-gate { padding-block: 34px 44px; }
}

@media (max-width: 699px) {
  .site-header .button-small { display: none; }
  .hero-message { padding-inline: 2px; }
  .hero-actions .button { width: 100%; }
  .palace-frame { margin-inline: -20px; border-radius: 0; }
  .palace-frame img { height: auto; aspect-ratio: auto; object-fit: contain; object-position: center; }
  .palace-frame figcaption { position: static; max-width: none; padding: 12px 20px 14px; border-radius: 0; box-shadow: none; }
  .map-sheet { margin-inline: -8px; }
}

@media (max-width: 360px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { min-height: 74px; }
  .wordmark { gap: 8px; font-size: 1rem; }
  .wordmark svg { width: 22px; }
  .hero-copy { padding-top: 36px; }
  h1 { font-size: clamp(2.75rem, 14.5vw, 3.1rem); }
  .palace-frame { margin-inline: -16px; }
  .palace-frame figcaption { padding-inline: 16px; }
  .map-rooms { grid-template-columns: 1fr; }
  .map-rooms article { min-height: auto; border-right: 0; }
  form { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
