:root {
  --oxblood: #2d1011;
  --oxblood-soft: #4d2925;
  --paper: #f1ece4;
  --white: #ffffff;
  --sand: #cdbfae;
  --gold: #887759;
  --ink-muted: #6e625c;
  --rule: rgba(45, 16, 17, 0.22);
  --display: "Quasimoda", "quasimoda", "Avenir Next", "Century Gothic", "General Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Quasimoda", "quasimoda", "Avenir Next", "General Sans", "Segoe UI", system-ui, sans-serif;
  --accent: "Hiro", "Instrument Serif", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --gutter: clamp(1.25rem, 3.4vw, 3.5rem);
  --max: 100rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; background: var(--paper); }
body { margin: 0; color: var(--oxblood); background: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.55; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
fieldset { min-width: 0; }

.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .75rem 1rem; color: var(--white); background: var(--oxblood); transform: translateY(-180%); transition: transform 180ms ease-out; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.creova-bar { color: var(--paper); background: var(--oxblood); border-bottom: 1px solid rgba(255,255,255,.16); }
.creova-bar p { display: flex; justify-content: space-between; gap: 1rem; width: min(100%, var(--max)); min-height: 42px; margin: 0 auto; padding: .65rem var(--gutter); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.creova-bar a { font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1rem; width: min(100%, var(--max)); min-height: 5rem; margin-inline: auto; padding: 1.15rem var(--gutter); background: rgba(241, 236, 228, .95); border-bottom: 1px solid var(--rule); backdrop-filter: blur(12px); }
.brand-lockup { display: inline-flex; align-items: flex-start; width: max-content; text-decoration: none; }
.wordmark { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: .14em; line-height: .9; }
.endorsement { width: 5.5rem; margin: .05rem 0 0 .65rem; font-family: var(--mono); font-size: .62rem; line-height: 1.18; letter-spacing: .1em; }
.menu-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-width: 8rem; min-height: 44px; padding: 0; color: var(--oxblood); background: transparent; border: 0; border-bottom: 1px solid var(--oxblood); cursor: pointer; }
.site-nav { grid-column: 1 / -1; display: none; padding-top: 1rem; }
.site-nav[data-open] { display: grid; }
.site-nav a { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--rule); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.folio, .section-label, .edition-number, .edition-state { margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.hero { display: grid; width: min(100%, var(--max)); min-height: calc(100svh - 7.65rem); margin-inline: auto; padding: 0 var(--gutter); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(3rem, 8vw, 7rem); }
.hero h1 { max-width: 10ch; margin: 1rem 0 0; font-family: var(--display); font-size: clamp(3.7rem, 15vw, 10.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .82; }
.hero h1 em { color: var(--gold); font-family: var(--accent); font-weight: 400; }
.hero-intro { max-width: 36rem; margin: 2.5rem 0 1rem auto; font-size: clamp(1rem, 1.4vw, 1.3rem); }
.hero-actions { margin: 1.5rem 0 0; text-align: right; }
.text-action { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; padding: 0 .2rem; border-bottom: 1px solid currentColor; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero-study { position: relative; width: min(88vw, 36rem); margin: -1rem auto 0; color: var(--oxblood); }
.hero-study img { width: 100%; clip-path: inset(0 0 12% 0); animation: reveal-study 1.2s var(--ease) 180ms forwards; }
.hero-study figcaption { display: flex; justify-content: space-between; margin-top: -4rem; padding-top: .75rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; }
.hero-status { display: grid; align-self: end; margin-top: 2.5rem; border-top: 1px solid var(--oxblood); }
.hero-status span { min-height: 44px; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }

.manifesto, .edition-model, .prompt-lab, .interest-section { width: min(100%, var(--max)); margin-inline: auto; padding: clamp(5rem, 11vw, 10rem) var(--gutter); }
.manifesto { border-top: 1px solid var(--rule); }
.manifesto-grid, .section-heading, .interest-section { display: grid; gap: 2.5rem; }
.manifesto-grid { margin-top: 2rem; }
.manifesto h2, .section-heading h2, .prompt-intro h2, .interest-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 7.5vw, 7rem); font-weight: 400; letter-spacing: -.045em; line-height: .9; }
.manifesto-copy { max-width: 34rem; font-size: clamp(1.08rem, 1.6vw, 1.35rem); }
.manifesto-copy p:first-child { margin-top: 0; }

.edition-model { color: var(--white); background: var(--oxblood); }
.edition-grid { display: grid; gap: 1px; margin-top: clamp(3rem, 7vw, 6rem); background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.edition-grid article { display: flex; flex-direction: column; min-height: 30rem; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--oxblood); }
.edition-grid h3 { margin: auto 0 1.5rem; font-family: var(--accent); font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 400; line-height: .9; }
.edition-grid article > p:not([class]) { max-width: 30rem; font-size: 1.1rem; }
.edition-state { margin-top: 2rem; color: var(--sand); }

.studies { color: var(--white); background: var(--oxblood); border-top: 1px solid rgba(255,255,255,.22); }
.studies .section-heading { padding: clamp(5rem, 9vw, 8rem) var(--gutter); }
.study-strip { display: grid; }
.study-tile { display: grid; grid-template-rows: 1fr auto; min-height: 70svh; margin: 0; padding: 2rem var(--gutter); overflow: hidden; border-top: 1px solid currentColor; }
.study-tile img { align-self: center; width: min(100%, 35rem); margin: 0 auto; color: currentColor; }
.study-tile figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid currentColor; font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.study-dark { color: var(--paper); background: var(--oxblood); }
.study-gold { color: var(--white); background: var(--gold); }
.study-sand { color: var(--oxblood); background: var(--sand); }

.prompt-lab { display: grid; gap: 3rem; background: var(--paper); }
.prompt-intro > p:last-child { max-width: 36rem; font-size: 1.1rem; }
.prompt-workbench { border-top: 1px solid var(--oxblood); }
.prompt-workbench fieldset { margin: 0; padding: 1.5rem 0; border: 0; border-bottom: 1px solid var(--rule); }
.prompt-workbench legend { padding: 0; font-family: var(--mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.choice-row button { min-height: 48px; color: var(--oxblood); background: transparent; border: 1px solid var(--rule); cursor: pointer; }
.choice-row button[aria-pressed="true"] { color: var(--white); background: var(--oxblood); border-color: var(--oxblood); }
.prompt-output { display: block; min-height: 15rem; padding: 2rem; color: var(--white); background: var(--oxblood); }
.prompt-output span { display: block; font-family: var(--mono); font-size: .67rem; letter-spacing: .1em; }
.prompt-output strong { display: block; max-width: 18ch; margin-top: 2.5rem; font-family: var(--accent); font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 400; line-height: 1; }

.interest-section { color: var(--white); background: var(--gold); }
.interest-copy > p:not(.section-label) { max-width: 35rem; font-size: 1.1rem; }
.evidence-note { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.5); font-size: .9rem !important; }
.interest-form { align-self: start; padding: clamp(1.5rem, 4vw, 3rem); color: var(--oxblood); background: var(--paper); }
.interest-form label, .interest-form legend { font-size: .82rem; font-weight: 600; }
.form-field label, .interest-form legend { display: block; margin-bottom: .65rem; letter-spacing: .04em; text-transform: uppercase; }
.interest-form input[type="email"] { width: 100%; min-height: 52px; padding: 0 .9rem; color: var(--oxblood); background: var(--white); border: 1px solid var(--rule); border-radius: 0; }
.interest-form fieldset { display: grid; gap: .75rem; margin: 1.5rem 0; padding: 1.5rem 0; border: 0; border-block: 1px solid var(--rule); }
.interest-form fieldset label, .consent { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400; }
.interest-form input[type="radio"], .interest-form input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin: .16rem 0 0; accent-color: var(--oxblood); flex: 0 0 auto; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.submit-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 54px; margin-top: 1.5rem; padding: 0 1rem; color: var(--white); background: var(--oxblood); border: 1px solid var(--oxblood); cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.form-meta, .form-status { margin: 1rem 0 0; font-size: .78rem; color: var(--ink-muted); }
.form-status:not(:empty) { padding: .75rem 0 0; border-top: 1px solid var(--rule); }

.site-footer { display: grid; gap: 3rem; width: min(100%, var(--max)); margin-inline: auto; padding: 3rem var(--gutter) 2rem; background: var(--paper); }
.brand-lockup-footer .wordmark { font-size: clamp(3.7rem, 15vw, 10rem); letter-spacing: -.01em; }
.brand-lockup-footer .endorsement { margin-top: .5rem; }
.site-footer > p { max-width: 22rem; margin: 0; }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; max-width: none !important; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; }
[data-reveal] { opacity: 1; transform: none; }

@keyframes reveal-study { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 12% 0); } }

@media (min-width: 48rem) {
  .site-header { grid-template-columns: 1fr auto; align-items: center; }
  .menu-button { display: none; }
  .site-nav, .site-nav[data-open] { grid-column: auto; display: flex; gap: 2rem; padding: 0; }
  .site-nav a { min-height: 44px; border: 0; }
  .site-nav a:hover { text-decoration: underline; }
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: 1.25rem; }
  .hero-copy { grid-column: 1 / 10; grid-row: 1; }
  .hero-study { grid-column: 8 / 13; grid-row: 1; align-self: end; width: 100%; margin: 1rem 0 0; }
  .hero-intro { width: 38%; margin: 3rem 0 1rem auto; }
  .hero-status { grid-column: 1 / 13; grid-row: 2; grid-template-columns: repeat(3, 1fr); }
  .hero-status span { border-right: 1px solid var(--rule); }
  .hero-status span:last-child { border-right: 0; }
  .manifesto-grid, .section-heading { grid-template-columns: 1fr 2fr; align-items: start; }
  .manifesto-copy { justify-self: end; }
  .edition-grid { grid-template-columns: 1fr 1fr; }
  .study-strip { grid-template-columns: repeat(3, 1fr); }
  .study-tile { min-height: 60rem; padding-inline: 2rem; border-left: 1px solid currentColor; }
  .study-tile img { width: min(31vw, 35rem); }
  .prompt-lab { grid-template-columns: 1fr 1fr; }
  .prompt-workbench { border-top: 0; }
  .interest-section { grid-template-columns: 1.1fr .9fr; }
  .site-footer { grid-template-columns: 1fr 1fr; align-items: end; }
  .brand-lockup-footer, .footer-meta { grid-column: 1 / -1; }
}

@media (min-width: 90rem) {
  .site-header, .hero, .manifesto, .edition-model, .prompt-lab, .interest-section, .site-footer { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
}

@media (max-width: 31rem) {
  .footer-meta { flex-direction: column; }
  .choice-row { grid-template-columns: 1fr; }
}

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