/* OFC.FYI — v2 elevation. "A museum object on a plinth."
   Simple: type and space do the work; hairlines instead of boxes.
   Intriguing: one idea per plate; the card is the only object on the page.
   Timeless: system serif + grotesque, no webfonts, no decorative gradients.
   Dark is primary; light is its true mirror. Gold is the only accent;
   neon appears only as a faint glow around the key. Mobile-first. */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #0a0a10;
  --card: #111119;
  --ink: #f4f1e8;
  --ink-2: #aaa59a;
  --gold: #c9a96a;
  --gold-hi: #e2c88f;
  --rule: rgba(201, 169, 106, 0.28);
  --rule-strong: rgba(201, 169, 106, 0.55);
  --zone: rgba(201, 169, 106, 0.22);
  --shadow: rgba(0, 0, 0, 0.6);
  --on-gold: #0a0a10;
  --glow: drop-shadow(0 0 10px rgba(255, 62, 165, 0.16)) drop-shadow(0 0 24px rgba(46, 197, 255, 0.10));
  --focus: #e2c88f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 6vw, 72px);
  --measure: 1180px;
  --plate-y: clamp(72px, 13vw, 176px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
:root[data-theme="light"] {
  --bg: #f4f1e8;
  --card: #fbf9f3;
  --ink: #15130f;
  --ink-2: #5a554a;
  --gold: #85662a;
  --gold-hi: #6e5320;
  --rule: rgba(21, 19, 15, 0.18);
  --rule-strong: rgba(21, 19, 15, 0.42);
  --zone: rgba(133, 102, 42, 0.30);
  --shadow: rgba(21, 19, 15, 0.22);
  --on-gold: #f4f1e8;
  --glow: drop-shadow(0 0 8px rgba(255, 62, 165, 0.10)) drop-shadow(0 0 18px rgba(46, 197, 255, 0.08));
  --focus: #6e5320;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--on-gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 10.5vw, 6.4rem); line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 6.2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.012em; }
h3 { font-size: 1.32rem; line-height: 1.25; }
p { margin: 0; }

.label {
  font: 500 0.72rem/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.lede { color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; max-width: 58ch; margin-top: 1.4rem; }
.aside { color: var(--ink-2); font-size: 0.92rem; margin-top: 2.4rem; max-width: 60ch; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--bg); padding: 10px 14px; border: 1px solid var(--rule-strong); }

/* ---------------------------------------------------------------- posture banner (retained) */
.posture {
  font: 400 0.74rem/1.5 var(--sans);
  color: var(--ink-2);
  text-align: center;
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.posture strong { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- masthead */
.masthead {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto;
  padding: 18px var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark-key { height: 30px; width: auto; filter: var(--glow); }
.mark-word { font: 400 1.02rem/1 var(--serif); letter-spacing: 0.16em; }
.masthead-nav {
  order: 3; width: 100%; display: flex; gap: 22px; overflow-x: auto;
  font: 500 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 0 2px; scrollbar-width: none;
}
.masthead-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 0; white-space: nowrap; border-bottom: 1px solid transparent; }
.masthead-nav a:hover { color: var(--ink); }
.masthead-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
/* Merge correction (MIDAS, 2026-10-30): at 390px the base nav clipped its last
   item; tighten spacing on small viewports only so all four fit without scroll. */
@media (max-width: 719px) {
  .masthead-nav { gap: 16px; letter-spacing: 0.14em; font-size: 0.7rem; }
}
.masthead-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1px solid var(--rule-strong); color: var(--ink);
  font-size: 1rem; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.masthead-cta {
  font: 500 0.7rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border: 1px solid var(--rule-strong); padding: 13px 14px; min-height: 40px; display: inline-flex; align-items: center;
}
.masthead-cta:hover { border-color: var(--gold); }

/* ---------------------------------------------------------------- plates */
main > section {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--plate-y) var(--gutter);
}
.plate { position: relative; }
.plate::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--rule);
}
.opening { padding-bottom: clamp(40px, 7vw, 96px); }
.opening::before { display: none; }
.opening h1 { font-size: clamp(2.4rem, 8.4vw, 5.2rem); max-width: 16ch; }

/* ---------------------------------------------------------------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  font: 500 0.74rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  border: 1px solid var(--gold); text-decoration: none; cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--on-gold); }
.text-link { color: var(--ink); font-size: 0.95rem; text-decoration: underline; }
.text-link:hover { color: var(--gold); }

/* ---------------------------------------------------------------- hero: the artifact */
.hero {
  display: grid; gap: clamp(56px, 9vw, 96px); align-items: center;
  padding-top: clamp(48px, 9vw, 120px);
}
.hero .label { margin-bottom: 1.8rem; }
.subhead {
  font: italic 400 clamp(1.25rem, 3.8vw, 1.85rem)/1.3 var(--serif);
  color: var(--gold); margin-top: 1.4rem;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 2.6rem; }

/* The card, as an object */
.artifact { margin: 0 auto; width: min(76vw, 340px); }
.plinth { position: relative; padding-bottom: 34px; perspective: 1600px; }
.plinth::after {
  /* the shadow the object casts on its plinth: functional, not decoration */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 6px; height: 22px;
  background: radial-gradient(closest-side, var(--shadow), transparent);
  z-index: -1;
}
.plinth::before {
  content: ""; position: absolute; left: -14%; right: -14%; bottom: 0;
  border-top: 1px solid var(--rule-strong);
}
.card { transition: transform 1.2s var(--ease); }
.card-inner {
  position: relative; aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
}
.artifact.is-flipped .card-inner { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  display: grid; gap: 7px;
  /* engraved double frame */
  box-shadow:
    inset 0 0 0 1px var(--gold),
    inset 0 0 0 6px var(--card),
    inset 0 0 0 7px var(--zone),
    0 30px 60px -30px var(--shadow);
}
.card-back { transform: rotateY(180deg); }
.card-front {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr auto auto auto;
  grid-template-areas: "name name" "rookie rookie" "hero hero" "secondary world" "statement statement" "signature signature";
}
.card-back {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto auto auto auto;
}
.zone {
  position: relative; min-height: 26px;
  border: 1px solid var(--zone); border-radius: 4px;
  display: flex; align-items: flex-end; padding: 5px 7px;
}
.zone-label {
  font: 500 0.52rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
}
.card-front .zone-name { grid-area: name; min-height: 36px; margin-right: 76px; }
.card-back .zone-identity { margin-right: 76px; }
.card-front .zone-rookie { grid-area: rookie; }
.card-front .zone-hero { grid-area: hero; justify-content: center; align-items: center; flex-direction: column; gap: 10px; }
.card-front .zone-secondary { grid-area: secondary; }
.card-front .zone-world { grid-area: world; }
.card-front .zone-statement { grid-area: statement; min-height: 34px; }
.card-front .zone-signature { grid-area: signature; justify-content: flex-end; border-color: transparent; }
.card-front .zone-signature .zone-label { color: var(--gold); }
.card-back .zone-dossier { min-height: 90px; }
.zone-hero .zone-label { position: absolute; left: 7px; bottom: 5px; }
.zone-key { width: 72%; max-width: 260px; filter: var(--glow); }
.specimen {
  position: absolute; top: 12px; right: 14px; z-index: 1;
  font: 500 0.5rem/1 var(--sans); letter-spacing: 0.28em; color: var(--gold);
  padding: 4px 6px; border: 1px solid var(--zone); background: var(--card);
}

.placard {
  margin-top: 22px; text-align: center;
  display: grid; gap: 4px; justify-items: center;
}
.placard-title { font: 400 1rem/1.3 var(--serif); letter-spacing: 0.06em; }
.placard-line { font-size: 0.8rem; color: var(--ink-2); }
.turn {
  margin-top: 12px; background: none; border: 0; padding: 10px 4px; cursor: pointer;
  font: 500 0.7rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--rule-strong);
}
.turn:hover { border-bottom-color: var(--gold); }

/* ---------------------------------------------------------------- how a card is born */
.pipeline, .rules, .invitation, .ledger, .contact-list { list-style: none; margin: 0; padding: 0; }
.pipeline { margin-top: clamp(40px, 7vw, 80px); display: grid; }
.stage {
  display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 12px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.stage:first-child { border-top: 0; }
.stage h3 { grid-column: 2; }
.stage p { grid-column: 2; color: var(--ink-2); margin-top: 6px; max-width: 44ch; }
.numeral { grid-row: span 2; font: 400 1.35rem/1.2 var(--serif); color: var(--gold); }

/* ---------------------------------------------------------------- storyboard (home: how a card is born) */
.story { list-style: none; margin: clamp(40px, 7vw, 88px) 0 0; padding: 0; display: grid; gap: clamp(56px, 10vw, 128px); counter-reset: none; }
.chapter { display: grid; gap: 26px; }
.chapter-mark { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.chapter-mark .numeral { font-size: 1.6rem; line-height: 1; }
.chapter-stage { font: 500 0.7rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }
.chapter h3 { font: 400 clamp(1.55rem, 5vw, 2.5rem)/1.15 var(--serif); max-width: 20ch; }
.chapter-text p:not(.chapter-mark) { color: var(--ink-2); margin-top: 14px; max-width: 42ch; }
/* A chapter with no still is set as type alone, quieter and centred on its rule. */
.chapter:not(.has-still) .chapter-text { max-width: 760px; padding-left: 22px; border-left: 1px solid var(--gold); }
.chapter:not(.has-still) h3 { font-style: italic; max-width: 24ch; }

.still { margin: 0; position: relative; }
.still img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--card); border: 1px solid var(--rule-strong);
}
/* An engraved inner hairline, like a print mount. */
.still::after {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(244, 241, 232, 0.22);
}
.still-wide { margin-top: clamp(32px, 6vw, 64px); max-width: 980px; }
.still-wide img { aspect-ratio: 16 / 9; }
.story-note { margin-top: clamp(28px, 5vw, 48px); color: var(--ink-2); font-size: 0.78rem; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- rules */
.rules { margin-top: clamp(40px, 7vw, 80px); display: grid; }
.rule { padding: 30px 0; border-top: 1px solid var(--rule); }
.rule:first-child { border-top: 0; padding-top: 0; }
.rule .numeral { display: block; font-size: 2.6rem; line-height: 1; margin-bottom: 18px; }
.rule h2, .rule h3 { font-size: clamp(1.5rem, 4.4vw, 2rem); }
.rule p { color: var(--ink-2); margin-top: 12px; max-width: 40ch; }

/* ---------------------------------------------------------------- doors */
.doors { margin-top: clamp(40px, 7vw, 80px); display: grid; }
.door {
  display: grid; gap: 10px; padding: 34px 0; text-decoration: none;
  border-top: 1px solid var(--rule);
}
.door:first-child { border-top: 0; padding-top: 0; }
.door .label { margin: 0; }
.door-title { font: 400 clamp(1.7rem, 5vw, 2.6rem)/1.1 var(--serif); }
.door-line { color: var(--ink-2); max-width: 42ch; }
.door-go {
  font: 500 0.7rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-top: 8px;
}
.door-go span { display: inline-block; transition: transform 0.5s var(--ease); }
.door:hover .door-title { color: var(--gold); }
.door:hover .door-go span { transform: translateX(6px); }

/* ---------------------------------------------------------------- invitation, ledger, contact */
.invitation { counter-reset: step; margin-top: 2.2rem; display: grid; gap: 22px; max-width: 54ch; }
.invitation li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; }
.invitation li::before { content: counter(step, upper-roman); font: 400 1.1rem/1.5 var(--serif); color: var(--gold); grid-row: span 2; }
.invitation strong { font: 400 1.18rem/1.4 var(--serif); }
.invitation span { color: var(--ink-2); grid-column: 2; }

.ledger { margin-top: clamp(32px, 6vw, 64px); max-width: 760px; }
.ledger li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--rule); }
.ledger li:first-child { border-top: 0; padding-top: 0; }
.ledger strong { font: 400 1.25rem/1.35 var(--serif); }
.ledger span { color: var(--ink-2); }

.contact-list { display: grid; max-width: 640px; }
.contact-list li { display: grid; gap: 6px; padding: 24px 0; border-top: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .label { margin: 0; }
.contact-list a { font: 400 1.35rem/1.3 var(--serif); }

.split { display: grid; gap: clamp(56px, 9vw, 96px); align-items: center; }
.opening-mark { display: grid; gap: 40px; align-items: center; }
.shield { width: min(52vw, 230px); filter: var(--glow); }

/* ---------------------------------------------------------------- waitlist */
.waitlist form { max-width: 560px; margin-top: 2.4rem; }
.capture-closed {
  margin-top: 2rem; max-width: 560px;
  padding: 14px 0 14px 18px; border-left: 1px solid var(--gold);
  color: var(--ink); font-size: 0.95rem;
}
.form-body { border: 0; padding: 0; margin: 0; display: grid; gap: 22px; }
.form-body[disabled] { opacity: 0.5; }
.field { display: grid; gap: 8px; font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.field input {
  font: 400 1rem/1.4 var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 12px 0; min-height: 48px;
}
.field input:focus { outline: none; border-bottom-color: var(--gold); }
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choices legend { font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: 12px; }
.choice, .check { display: flex; gap: 12px; align-items: flex-start; min-height: 32px; font-size: 0.98rem; }
.choice input, .check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--gold); }
.form-status { min-height: 1.6em; margin-top: 14px; }
.form-status.is-error { color: #ff8f8f; }
:root[data-theme="light"] .form-status.is-error { color: #a12a2a; }

/* ---------------------------------------------------------------- messages */
.message { min-height: 52vh; }
.message::before { display: none; }
.message h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
.message-cta { margin-top: 2.4rem; }

/* ---------------------------------------------------------------- colophon */
.colophon { border-top: 1px solid var(--rule); margin-top: clamp(24px, 6vw, 64px); }
.colophon-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: clamp(72px, 12vw, 136px) var(--gutter) 56px;
  display: grid; justify-items: center; gap: 10px;
}
.colophon-mark { width: 112px; filter: var(--glow); margin-bottom: 18px; }
.colophon-word { font: 400 1.05rem/1 var(--serif); letter-spacing: 0.32em; }
.colophon-tagline { font: italic 400 1.15rem/1.4 var(--serif); color: var(--gold); }
.colophon-thesis { color: var(--ink-2); font-size: 0.92rem; }
.rule-short { display: block; width: 44px; border-top: 1px solid var(--gold); margin: 22px 0 14px; }
.colophon-fine { color: var(--ink-2); font-size: 0.78rem; line-height: 1.6; max-width: 60ch; }
.colophon-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 16px 0 6px;
  font: 500 0.68rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
}
.colophon-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.colophon-nav a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 720px) {
  .masthead-nav { order: 0; width: auto; padding: 0; }
  .doors { grid-template-columns: 1fr 1fr; }
  .door { border-top: 0; padding: 0 0 0 40px; border-left: 1px solid var(--rule); }
  .door:first-child { border-left: 0; padding-left: 0; padding-right: 40px; }
  .opening-mark { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; min-height: calc(92svh - 120px); }
  .artifact { width: 360px; }
  .pipeline { grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule-strong); }
  .stage { grid-template-columns: 1fr; padding: 26px 22px 0 0; border-top: 0; align-content: start; }
  .stage .numeral { grid-row: auto; margin-bottom: 18px; font-size: 1.6rem; }
  .stage h3, .stage p { grid-column: 1; }
  .rules { grid-template-columns: repeat(3, 1fr); }
  .rule { border-top: 0; padding: 0 36px; border-left: 1px solid var(--rule); }
  .rule:first-child { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr auto; }
  /* Storyboard alternates image and text, like turning pages. */
  .chapter.has-still { grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
  .chapter.has-still:nth-child(odd) .still { order: 2; }
  .chapter:not(.has-still) { justify-items: center; text-align: left; }
}

/* ---------------------------------------------------------------- motion: minimal and slow */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .artifact:hover .card { transform: translateY(-5px); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .plate > *, .chapter { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@keyframes settle {
  from { opacity: 0.35; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card-inner, .btn, .door-go span { transition: none; }
}

/* Interface plates: natural image proportions preserve complete UI captures. */
.interface-figure { margin: 0; min-width: 0; }
.interface-preview > .interface-figure,
.interface-gallery { margin-top: clamp(32px, 6vw, 64px); }
.interface-image { display: block; border: 1px solid var(--rule-strong); background: #0a0a10; }
.interface-image:hover { border-color: var(--gold); }
.interface-image img { width: 100%; height: auto; }
.interface-figure figcaption { margin-top: 16px; color: var(--ink-2); font-size: 0.82rem; line-height: 1.65; max-width: 80ch; }
.interface-gallery { display: grid; gap: clamp(28px, 5vw, 48px); }
.interface-phone { margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 20px; }
.interface-phone summary { cursor: pointer; color: var(--gold); padding: 12px 0; }
.interface-phone .interface-figure { max-width: 320px; margin-top: 20px; }
@media (min-width: 900px) {
  .interface-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interface-featured { grid-column: 1 / -1; }
}


.opening-compact{padding-block:40px 24px!important;min-height:0!important}.opening-compact + .interface-preview{padding-top:24px!important}.capture-closed{max-width:60ch}.waitlist [hidden]{display:none!important}
