/* operanda.app — the one stylesheet. Tokens are the Operanda Brand system's (design-system/brand/tokens.css);
   components follow its bundle (op-*). Fonts load from /brand/fonts.css. Light and dark follow data-theme on <html>,
   which platform-theme.js sets before first paint; prefers-color-scheme covers pages without it. */

/* ---------- Tokens ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --surface-paper: #f5f1e8; --surface-white: #ffffff; --surface-paper-2: #ece5d6;
  --tint-1: #f5f8fe; --tint-2: #eaf0fc;
  --ink: #0b1f3a; --ink-quiet: #4a5873;
  --engraving: #1f3494; --on-engraving: #f5f1e8;
  --piazza: #1f4fd8; --on-piazza: #ffffff;
  --highlight: #d6e1fa; --line: #5b79b8; --border: #9db3e0; --field: #5b79b8;
  --hairline: #1f349459; --hatch: #1f349440; --focus: #1f4fd8;
  --danger: #a6352b; --on-danger: #ffffff;
}
[data-theme="dark"] {
  color-scheme: dark;
  --surface-paper: #0b1a2e; --surface-white: #12243f; --surface-paper-2: #10223b;
  --tint-1: #10223b; --tint-2: #16304f;
  --ink: #f2eee4; --ink-quiet: #aeb9d3;
  --engraving: #c9d6f0; --on-engraving: #0b1a2e;
  --piazza: #6e95ff; --on-piazza: #0b1a2e;
  --highlight: #233c70; --line: #8fa6d9; --border: #3a5285; --field: #5f7ab0;
  --hairline: #c9d6f040; --hatch: #c9d6f059; --focus: #9db8ff;
  --danger: #f2867a; --on-danger: #0b1a2e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-paper: #0b1a2e; --surface-white: #12243f; --surface-paper-2: #10223b;
    --tint-1: #10223b; --tint-2: #16304f;
    --ink: #f2eee4; --ink-quiet: #aeb9d3;
    --engraving: #c9d6f0; --on-engraving: #0b1a2e;
    --piazza: #6e95ff; --on-piazza: #0b1a2e;
    --highlight: #233c70; --line: #8fa6d9; --border: #3a5285; --field: #5f7ab0;
    --hairline: #c9d6f040; --hatch: #c9d6f059; --focus: #9db8ff;
    --danger: #f2867a; --on-danger: #0b1a2e;
  }
}
:root {
  --radius-0: 0px; --radius-1: 2px; --radius-full: 999px;
  --measure-text: 640px; --measure-lead: 560px; --container: 1200px;
  --gutter: 40px;
  --motion-quick: 160ms; --motion-reveal: 480ms; --motion-print: 720ms; --motion-tint: 600ms;
  --motion-tint-delay: 180ms; --motion-draw: 720ms; --motion-step: 60ms;
  --ease-print: cubic-bezier(0.2, 0, 0, 1); --ease-quick: cubic-bezier(0.3, 0, 0.2, 1);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-text: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion-quick: 0ms; --motion-reveal: 0ms; --motion-print: 0ms; --motion-tint: 0ms; --motion-tint-delay: 0ms; --motion-draw: 0ms; --motion-step: 0ms; }
}
@media (max-width: 767px) { :root { --gutter: 20px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--surface-paper); color: var(--ink);
  font: 400 16px/26px var(--font-text); font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body > main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
a { color: var(--engraving); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--motion-quick) var(--ease-quick); }
a:hover { color: var(--ink); }
strong, b { font-weight: 600; }
code { font-family: var(--font-mono); font-size: 0.875em; padding: 0.1em 0.3em; background: var(--surface-paper-2); border-radius: var(--radius-1); overflow-wrap: anywhere; }
::selection { background: var(--tint-2); color: var(--ink); }
:where(a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.op-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--surface-white); color: var(--ink); border: 1px solid var(--field); font-weight: 500; }
.op-skip:focus { top: 16px; }
.op-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */
.op-display-xl { font-family: var(--font-display); font-size: clamp(48px, 6vw + 26px, 96px); line-height: 1; font-weight: 600; letter-spacing: -0.015em; }
.op-display-l { font-family: var(--font-display); font-size: clamp(40px, 3.5vw + 27px, 64px); line-height: 1.06; font-weight: 600; letter-spacing: -0.01em; }
.op-display-m { font-family: var(--font-display); font-size: clamp(32px, 2vw + 25px, 48px); line-height: 1.16; font-weight: 600; }
.op-title { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 600; }
.op-caption { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 500; font-style: italic; color: var(--ink); }
.op-numeral { font-family: var(--font-display); font-size: clamp(44px, 2vw + 37px, 64px); line-height: 1; font-variant-numeric: lining-nums; font-weight: 500; font-style: italic; color: var(--engraving); }
.op-em { font-style: italic; font-weight: 500; }
.op-body-l { font-size: 19px; line-height: 30px; }
.op-small { font-size: 14px; line-height: 22px; color: var(--ink-quiet); }
.op-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-quiet); }
.op-quiet { color: var(--ink-quiet); }
.op-highlight { background: var(--highlight); color: inherit; padding: 0.06em 0.3em; margin: 0 -0.05em; border-radius: var(--radius-1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* In display headings the wash hangs just past the letters, so a highlighted line stays flush with the lines around it. */
.op-display-xl .op-highlight, .op-display-l .op-highlight, .op-display-m .op-highlight { padding: 0 0.08em; margin: 0 -0.08em; }
.op-highlight__text { position: relative; }

/* ---------- Icons, logo, ornaments ---------- */
.op-icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.op-mask { display: block; background-color: var(--engraving); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.op-vignette { width: 160px; height: 160px; flex: none; }
.op-rule { display: block; margin: 0 auto; color: var(--engraving); }
.op-ornament { padding: 8px var(--gutter); }
.operanda-logo { display: block; height: 30px; width: auto; }
.operanda-logo-ink { fill: var(--ink); }
.operanda-logo-dot { fill: var(--piazza); }
.op-logo-link { display: inline-flex; padding: 7px 0; text-decoration: none; }
.op-logo-link:focus-visible { outline-offset: 4px; }

/* ---------- Buttons and links (.button is kept for markup written by the intake scripts) ---------- */
.op-btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-1); border: 1px solid transparent;
  font: 500 16px/20px var(--font-text); text-decoration: none; text-align: center; cursor: pointer;
  background: transparent; color: var(--engraving); border-color: var(--engraving);
  transition: background-color var(--motion-quick) var(--ease-quick), color var(--motion-quick) var(--ease-quick), border-color var(--motion-quick) var(--ease-quick);
}
.op-btn--primary, .button.primary, .intake-page button[type="submit"]:not(.secondary) { background: var(--engraving); color: var(--on-engraving); border-color: var(--engraving); }
.op-btn--primary:hover, .button.primary:hover, .intake-page button[type="submit"]:not(.secondary):hover { background: var(--ink); border-color: var(--ink); color: var(--surface-paper); }
.op-btn--secondary:hover, .button.secondary:hover, .button:not(.primary):hover { background: var(--tint-1); color: var(--engraving); }
.op-btn--small { min-height: 44px; padding: 0 20px; }
.op-btn:disabled, .button:disabled, button:disabled, .op-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.op-link, .inline-link, .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--engraving); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* Underline link text only. Keep decorative arrows outside the text label. */
:is(.op-link, .inline-link, .text-link):has(> .op-link__label) { text-decoration: none; }
:is(.op-link, .inline-link, .text-link) > .op-link__label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.op-link:hover, .inline-link:hover, .text-link:hover { color: var(--ink); }
.op-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ---------- Layout ---------- */
.op-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.op-section { padding-block: 128px; }
.op-section--rule, .site-footer__inner { position: relative; }
.op-section--rule::before, .site-footer__inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--hairline); }
.op-band { background: var(--tint-1); border-block: 1px solid var(--hairline); }
.op-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.op-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.op-grid-aside { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.op-head { margin-bottom: 64px; }
.op-head > .op-label + * { margin-top: 8px; }
.op-stack > * + * { margin-top: 16px; }
.op-measure { max-width: var(--measure-text); }
.op-lead-measure { max-width: var(--measure-lead); }
.op-grid-aside--text-first { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; }
.op-grid-aside--text-first .editorial-introduction > p + p { margin-top: 16px; }
.op-about-intro + .op-container .op-docs-section:first-child { padding-top: 0; }
@media (max-width: 960px) { .op-grid-2 { gap: 48px; } .op-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .op-section { padding-block: 96px; }
  .op-grid-2, .op-grid-3, .op-grid-aside { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .op-head { margin-bottom: 48px; }
}

/* ---------- Header and navigation ---------- */
.site-header { position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px; }
.op-nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 32px; }
.op-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.op-nav__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 22px; color: var(--ink); text-decoration: none; }
.op-nav__link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.op-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--engraving); }
.op-nav__toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 4px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-1); color: var(--engraving); font: 500 16px/20px var(--font-text); cursor: pointer; }
.op-nav__toggle:hover, .op-nav__toggle[aria-expanded="true"] { background: var(--tint-1); }
.op-nav__toggle-icon--close, .op-nav__toggle[aria-expanded="true"] .op-nav__toggle-icon--open { display: none; }
.op-nav__toggle[aria-expanded="true"] .op-nav__toggle-icon--close { display: block; }
@media (max-width: 767px) {
  .site-header__inner { flex-wrap: wrap; gap: 4px; padding-block: 16px; }
  .op-nav-ready .op-nav { gap: 4px; margin-left: auto; }
  .op-nav-ready .op-nav .op-nav__toggle { display: inline-flex; padding: 0 12px; border-color: var(--engraving); font-size: 14px; }
  .op-nav-ready .op-nav .op-nav__links { display: none; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; min-width: 240px; max-width: calc(100vw - 40px); padding: 8px 0; background: var(--surface-white); border: 1px solid var(--field); }
  .op-nav-ready .op-nav .op-nav__links[data-open="true"] { display: flex; }
  .op-nav-ready .op-nav .op-nav__link { display: flex; padding: 0 20px; }
  .op-nav .op-btn--small { flex: none; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .op-nav-ready .op-nav .op-nav__access { display: flex; justify-content: flex-start; padding: 0 20px; border: 0; border-radius: 0; font-size: 15px; line-height: 22px; white-space: normal; text-align: left; }
  .operanda-logo { height: 26px; }
}

.op-subnav { border-bottom: 1px solid var(--hairline); }
.op-subnav__list { display: flex; flex-wrap: wrap; gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.op-subnav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 15px; color: var(--ink-quiet); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.op-subnav a:hover { color: var(--ink); }
.op-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--engraving); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 64px; padding-block: 40px 56px; }
.site-footer .operanda-logo { height: 26px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover, .site-footer__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__ai { flex-basis: 100%; color: var(--ink-quiet); }
.site-footer__ai-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.site-footer__ai-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink-quiet); border-radius: var(--radius-1); }
.site-footer__ai-link:hover { color: var(--ink); background: var(--surface-paper-2); }
.site-footer__ai-link svg { width: 32px; height: 32px; }
.site-footer__legal { flex-basis: 100%; }

/* ---------- Page heads ---------- */
.op-hero { padding-block: 72px 128px; }
.op-hero__row { align-items: start; margin-top: 40px; }
.op-hero__copy { max-width: var(--measure-lead); }
.op-hero__lead .op-actions { margin-top: 28px; }
.op-hero__plate { margin-top: 72px; }
.op-pagehead { padding-block: 72px 96px; }
.op-pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.op-pagehead h1 { max-width: 15ch; }
.op-pagehead__grid h1 { max-width: none; }
.op-pagehead .op-body-l { margin-top: 24px; max-width: var(--measure-lead); }
.op-pagehead p.op-quiet { margin-top: 16px; max-width: var(--measure-lead); }
.op-pagehead .op-actions { margin-top: 32px; }
.op-pagehead > .op-label, .op-pagehead__grid .op-label { margin-bottom: 16px; }
.op-pagehead__grid .op-vignette { width: clamp(240px, 30vw, 400px); height: clamp(240px, 30vw, 400px); }
@media (max-width: 767px) {
  .op-hero { padding-block: 40px 96px; }
  .op-hero__plate { margin-top: 48px; }
  .op-pagehead { padding-block: 40px 64px; }
  .op-pagehead__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .op-pagehead__grid .op-vignette { width: 200px; height: 200px; -webkit-mask-position: left center; mask-position: left center; }
}

/* ---------- Open Work Protocol ---------- */
.owp-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: center; }
.owp-hero .op-label { margin-bottom: 16px; }
.owp-hero h1 { max-width: 13ch; }
.owp-status { margin-top: 24px; }
.owp-gate { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; text-align: center; }
.owp-gate .op-vignette { width: 100%; height: auto; aspect-ratio: 1; }
.owp-contents { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 64px; padding-block: 16px; border-block: 1px solid var(--hairline); }
.owp-contents a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.owp-contents a:hover { text-decoration: underline; }
.owp-align-start { align-items: start; gap: 48px; }
.owp-contract { margin: 0; border-top: 1px solid var(--hairline); }
.owp-contract > div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--hairline); }
.owp-contract dt { font-weight: 600; }
.owp-contract dd { margin: 0; color: var(--ink-quiet); }
.owp-audiences { align-items: start; gap: 48px; }
.owp-audiences article { border-top: 1px solid var(--hairline); padding-top: 32px; }
.owp-audience-art { width: 132px; height: 132px; margin-bottom: 32px; -webkit-mask-position: left center; mask-position: left center; }
.owp-section-lead { margin-top: 24px; }
.owp-example-section { background: var(--surface-paper-2); border-block: 1px solid var(--hairline); }
.owp-request { max-width: 800px; margin: 0 0 48px; padding-left: 24px; border-left: 1px solid var(--engraving); font: 500 32px/1.25 var(--font-display); }
.owp-example { display: flex; align-items: start; gap: 48px; }
.owp-example__tabs { flex: 0 0 272px; }
.owp-example__tabs button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 16px; border: 0; border-bottom: 1px solid var(--hairline); border-left: 2px solid transparent; background: transparent; color: var(--ink-quiet); text-align: left; font: 500 16px/24px var(--font-text); cursor: pointer; }
.owp-example__tabs button:first-child { border-top: 1px solid var(--hairline); }
.owp-example__tabs button:hover { color: var(--ink); }
.owp-example__tabs button[aria-selected="true"] { color: var(--ink); border-left-color: var(--engraving); background: var(--surface-paper); }
.owp-step-no { font: italic 500 24px/1 var(--font-display); font-variant-numeric: lining-nums; color: var(--engraving); }
.owp-example__body { min-width: 0; flex: 1; }
.owp-example__panel { padding: 40px; background: var(--surface-paper); border: 1px solid var(--hairline); }
.owp-example__panel + .owp-example__panel { margin-top: 24px; }
.owp-example__panel[role="tabpanel"] { margin-top: 0; }
.owp-example__panel h3 { margin-top: 16px; max-width: 20ch; }
.owp-example__panel > p:not(.op-label) { margin-top: 24px; }
.owp-ledger { margin: 32px 0 0; }
.owp-ledger > div { padding-block: 16px; border-top: 1px solid var(--hairline); }
.owp-ledger dt { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.owp-ledger dd { margin: 0; color: var(--ink-quiet); }
.owp-example__boundary { border-top: 1px solid var(--hairline); padding-top: 24px; font-size: 14px; line-height: 22px; color: var(--ink-quiet); }
.owp-example__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.owp-example__controls .op-small { flex-basis: 100%; order: -1; }
.owp-start { margin-top: 64px; }
.owp-start .op-actions { margin-top: 32px; }
.owp-reading h3 { margin-bottom: 32px; }
.owp-reading > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding-block: 24px; border-top: 1px solid var(--hairline); text-decoration: none; }
.owp-reading > a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.owp-reading > a > span:first-child { font-weight: 500; }
.owp-reading > a > .op-small { grid-row: 2; }
.owp-reading > a > svg { grid-column: 2; grid-row: 1; }
.owp-development { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.owp-reviewed { margin-top: 64px; }
@media (max-width: 1023px) {
  .owp-hero__grid { gap: 48px; }
  .owp-example { gap: 24px; }
  .owp-example__tabs { flex-basis: 232px; }
  .owp-example__panel { padding: 24px; }
}
@media (max-width: 767px) {
  .owp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .owp-gate { align-items: flex-start; text-align: left; }
  .owp-gate .op-vignette { width: 240px; }
  .owp-contents { margin-top: 48px; gap: 4px 24px; }
  .owp-align-start, .owp-audiences { gap: 48px; }
  .owp-contract > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .owp-request { font-size: 28px; }
  .owp-example { flex-direction: column; }
  .owp-example__tabs, .owp-example__body { flex: auto; width: 100%; }
  .owp-example__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owp-example__tabs button { padding: 12px 8px; gap: 8px; font-size: 14px; }
  .owp-example__tabs button:nth-child(2) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 359px) {
  .owp-example__tabs { grid-template-columns: minmax(0, 1fr); }
  .owp-example__tabs button:nth-child(2) { border-top: 0; }
  .owp-example__panel { padding: 16px; }
  .owp-example__controls .op-btn { width: 100%; justify-content: center; }
}
@media (forced-colors: active) {
  .owp-contract, .owp-contract > div, .owp-example__panel, .owp-example__tabs button, .owp-ledger > div { border-color: CanvasText; }
  .owp-example__tabs button[aria-selected="true"] { border-left: 4px solid Highlight; color: Highlight; }
}
@media print {
  .owp-example__tabs, .owp-example__controls { display: none !important; }
  .owp-example__panel[hidden] { display: block !important; }
  .owp-example__panel { break-inside: avoid; margin-top: 24px !important; }
}

/* ---------- Plates ---------- */
.op-plate { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.op-plate img { display: block; width: 100%; height: auto; }
.op-plate figcaption { text-align: center; }
[data-theme="dark"] .op-print { box-shadow: 0 0 0 1px var(--hairline); }
.op-print { position: relative; display: block; width: 100%; }
.op-print > img + img { position: absolute; inset: 0; }

/* ---------- Steps ---------- */
.op-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; list-style: none; margin: 0; padding: 0; }
.op-step { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.op-step h3 { font: 600 20px/28px var(--font-text); margin-top: 8px; }
@media (max-width: 767px) { .op-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- Feature (vignette + text) ---------- */
.op-feature { display: flex; flex-direction: column; gap: 24px; }
.op-feature h2 { margin-bottom: 8px; }
.op-feature p + p { margin-top: 16px; }
.op-feature-pair { align-items: start; }
@media (min-width: 768px) {
  .op-feature-pair { row-gap: 24px; }
  .op-feature-pair > .op-feature { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
}

/* ---------- Catalog cards ---------- */
.op-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 300px; padding: 32px; border: 1px solid var(--hairline); background: var(--surface-paper); color: inherit; text-decoration: none; transition: border-color var(--motion-quick) var(--ease-quick); }
a.op-card:hover, a.op-card:focus-visible { border-color: var(--engraving); color: inherit; }
.op-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.op-card__no { flex: none; white-space: nowrap; font: italic 500 20px/24px var(--font-display); font-variant-numeric: lining-nums; color: var(--ink-quiet); }
.op-card__art { width: 132px; height: 132px; -webkit-mask-position: left top; mask-position: left top; }
.op-card .op-title { font-size: 28px; line-height: 34px; }
.op-card--inverse { background: var(--engraving); border-color: var(--engraving); }
.op-card--inverse .op-title, .op-card--inverse .op-card__no { color: var(--on-engraving); }
.op-card--path { min-height: 0; justify-content: flex-start; }
.op-card--path p { color: var(--ink-quiet); }
.op-card--path .op-actions { margin-top: auto; padding-top: 8px; }
.op-note-below { margin-top: 24px; text-align: center; }
@media (max-width: 767px) { .op-card { min-height: 240px; padding: 24px; } .op-card--path { min-height: 0; } }

/* ---------- Jobs: plates in three staggered rows ----------
   Without script (or with reduced motion) each row scrolls by hand. platform.js clones each row into a belt and
   drifts it (Operanda Brand → Motion → drifting job rows): slow, linear, paused by the button, hover, focus or when off screen. */
.op-jobs { overflow: hidden; }
.op-jobs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 64px; }
.op-jobs__head .op-display-l { margin: 0; }
.op-jobs__title { max-width: 820px; }
.op-jobs__title .op-body-l { margin: 24px 0 0; }
.op-jobs__rows { display: flex; flex-direction: column; gap: 40px; }
.op-jobs__row { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-inline: var(--gutter); }
.op-jobs__row:nth-child(2) { padding-inline-start: calc(var(--gutter) + 162px); }
.op-jobs__row:nth-child(3) { padding-inline-start: calc(var(--gutter) + 81px); }
.op-jobs__belt { display: flex; width: max-content; }
.op-jobs__track { display: flex; gap: 24px; width: max-content; margin: 0; padding: 0 24px 0 0; list-style: none; }
.op-job { flex: none; width: 300px; display: flex; flex-direction: column; gap: 14px; }
.op-job__plate { aspect-ratio: 3 / 2; }
.op-job__plate noscript img, .op-job__plate > img { display: block; width: 100%; height: auto; }
.op-job__name { margin: 0; padding: 0 8px; font: 600 24px/1.15 var(--font-display); letter-spacing: -0.005em; color: var(--ink); text-align: center; text-wrap: balance; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.op-job__word { white-space: nowrap; }
[data-theme="dark"] .op-job__plate { box-shadow: 0 0 0 1px var(--hairline); }
/* Hover glint, as on Proof covers: one pass of light across the plate, then still. */
.op-job__plate { overflow: hidden; isolation: isolate; }
.op-job__plate::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent 20%, color-mix(in srgb, var(--surface-white), var(--ink)) 50%, transparent 80%); mix-blend-mode: screen; opacity: 0; transform: translateX(-100%); }
@keyframes op-job-shimmer {
  0% { opacity: 0; transform: translateX(-100%); }
  15%, 75% { opacity: 0.45; }
  100% { opacity: 0; transform: translateX(100%); }
}
@media (hover: hover) and (pointer: fine) {
  .op-job:hover .op-job__plate::after { animation: op-job-shimmer calc(var(--motion-print) + var(--motion-reveal)) var(--ease-print); }
}
@media (prefers-reduced-motion: reduce) { .op-job__plate::after { display: none; animation: none; } }
@media (max-width: 767px) {
  .op-jobs__head { margin-bottom: 48px; }
  .op-jobs__rows { gap: 32px; }
  .op-job { width: 240px; gap: 12px; }
  .op-job__name { font-size: 22px; }
  .op-jobs__row:nth-child(2) { padding-inline-start: calc(var(--gutter) + 132px); }
  .op-jobs__row:nth-child(3) { padding-inline-start: calc(var(--gutter) + 66px); }
}
.op-jobs--drift .op-jobs__row { overflow: hidden; padding-inline: 0; }
/* platform.js moves .op-jobs__belt in pixels per second (see the comment there); it only runs with .op-motion. */

/* ---------- Figure and access ledger ---------- */
.op-ledger { margin: 0; padding: 36px; border: 1px solid var(--hairline); background: var(--surface-paper); display: flex; flex-direction: column; }
.op-figure__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.op-figure__head .op-title { font-size: 26px; line-height: 32px; }
.op-figure__head .op-label { flex: none; white-space: nowrap; }
.op-ledger__block { margin-top: 16px; padding: 20px 22px; border: 1px solid var(--hairline); }
.op-ledger__block--private { position: relative; isolation: isolate; }
.op-ledger__block--private::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--hatch); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1 1 -1M0 6 6 0M5 7 7 5' stroke='black' stroke-width='1'/%3E%3C/svg%3E") repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1 1 -1M0 6 6 0M5 7 7 5' stroke='black' stroke-width='1'/%3E%3C/svg%3E") repeat; }
.op-ledger__block--shared { border: 1.5px solid var(--engraving); }
.op-ledger__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink); }
.op-ledger__block--private .op-ledger__head { display: inline-flex; background: var(--surface-paper); padding: 4px 10px 4px 6px; margin: -4px 0 10px -6px; }
.op-ledger__block--shared .op-ledger__head, .op-ledger__block--shared .op-ledger__head .op-label { color: var(--engraving); }
.op-ledger__items { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.op-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 14px; line-height: 20px; border: 1px solid var(--hairline); background: var(--surface-paper); color: var(--ink-quiet); }
.op-chip s { text-decoration-thickness: 1px; }
.op-chip--shared { background: var(--engraving); border-color: var(--engraving); color: var(--on-engraving); }
.op-chip--shared .op-icon { width: 16px; height: 16px; }
.op-ledger__route { display: flex; flex-direction: column; align-items: center; }
.op-ledger__stem { width: 0; height: 32px; border-left: 2px dashed var(--line); }
.op-ledger__to { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1.5px solid var(--engraving); background: var(--surface-paper); font: 600 22px/28px var(--font-display); color: var(--ink); }
.op-band .op-ledger, .op-band .op-ledger__to, .op-band .op-ledger__block--private .op-ledger__head { background: var(--surface-paper); }
.op-privacy p + p { margin-top: 16px; }
.op-privacy__example h2 { margin-bottom: 32px; }
.op-privacy__stage + p { margin-top: 24px; }
.op-privacy__stage, .op-privacy__sizer { display: grid; }
.op-privacy__stage > *, .op-privacy__sizer > * { grid-area: 1 / 1; }
.op-privacy__sizer { visibility: hidden; }
.op-privacy-carousel.is-live .op-privacy__example { transition: opacity var(--motion-reveal) var(--ease-print); }
.op-privacy-carousel.s-out .op-privacy__example { opacity: 0; }
.op-ledger__note { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .op-privacy-carousel .op-privacy__example { transition: none; }
}
.op-privacy-art { display: grid; place-items: center; }
.op-privacy-art .op-vignette { width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; }
.op-privacy-example .op-ledger__block--private::before { opacity: .5; }
@media (max-width: 767px) {
  .op-privacy-art { order: 2; }
  .op-privacy-art .op-vignette { max-width: 240px; }
}

/* Permission design preview: the same paper, ink and controls, with no automatic sharing animation. */
.op-permission { align-self: start; }
.op-permission__terms { margin: 24px 0 0; }
.op-permission__terms > div + div { margin-top: 16px; }
.op-permission dt { color: var(--ink-quiet); }
.op-permission dd { margin: 4px 0 0; color: var(--ink); }
.op-permission__terms dt { font-weight: 600; }
.op-permission__fields { margin: 16px 0 0; }
.op-permission__fields > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.op-permission__fields > div + div { margin-top: 8px; }
.op-permission__fields dd { margin: 0; }
.op-permission__copies, .op-permission__actions { margin-top: 24px; }
.op-permission__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.op-permission__actions .op-btn { flex: 1 1 auto; padding-inline: 16px; }
.op-permission__status { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
@media (min-width: 768px) and (max-width: 960px) {
  .op-permission .op-ledger__block { padding-inline: 16px; }
  .op-permission { padding: 24px; }
}

/* Fig. 1, looping (public/ledger.js). Static and complete without script; .is-live adds the printing stages. */
.op-ledger__task { display: flex; flex-direction: column; gap: 4px; margin: 0 0 4px; }
.op-ledger__task-name { font: 600 24px/30px var(--font-display); color: var(--ink); }
.op-ledger__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.op-ledger__count { font: italic 500 20px/24px var(--font-display); font-variant-numeric: lining-nums; color: var(--ink-quiet); white-space: nowrap; }
.op-ledger__buttons { display: flex; gap: 8px; }
.op-ledger__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--radius-1); background: transparent; color: var(--engraving); font: 500 15px/20px var(--font-text); cursor: pointer; transition: background-color var(--motion-quick) var(--ease-quick); }
.op-ledger__btn:hover { background: var(--tint-1); }
.op-ledger__btn .op-icon { width: 18px; height: 18px; }
.op-ledger__ico-play, .op-ledger__btn[aria-pressed="true"] .op-ledger__ico-pause { display: none; }
.op-ledger__btn[aria-pressed="true"] .op-ledger__ico-play { display: block; }
.op-band .op-ledger__btn:hover { background: var(--surface-paper-2); }

.op-ledger.is-live .op-ledger__body { transition: opacity var(--motion-reveal) var(--ease-print); }
.op-ledger.is-live.s-out .op-ledger__body { opacity: 0; }
.op-ledger.is-live .op-chip--struck { position: relative; }
.op-ledger.is-live .op-chip--struck s { text-decoration: none; }
.op-ledger.is-live .op-chip--struck::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform var(--motion-draw) var(--ease-print); transition-delay: calc(var(--i, 0) * 140ms); }
.op-ledger.is-live.s-strike .op-chip--struck::after { transform: scaleX(1); }
.op-ledger.is-live .op-chip--shared { transition: background-color var(--motion-reveal) var(--ease-print), color var(--motion-reveal) var(--ease-print), border-color var(--motion-reveal) var(--ease-print); transition-delay: calc(var(--i, 0) * 160ms); }
.op-ledger.is-live:not(.s-share) .op-chip--shared { background: transparent; color: var(--engraving); border-color: var(--field); }
.op-ledger.is-live .op-ledger__block--shared { transition: border-color var(--motion-reveal) var(--ease-print); }
.op-ledger.is-live:not(.s-share) .op-ledger__block--shared { border-color: var(--hairline); }
.op-ledger.is-live .op-ledger__stem { transform-origin: top center; transform: scaleY(0); transition: transform var(--motion-draw) var(--ease-print); }
.op-ledger.is-live.s-route .op-ledger__stem { transform: scaleY(1); }
.op-ledger.is-live .op-ledger__to { opacity: 0; transform: translateY(8px); transition: opacity var(--motion-reveal) var(--ease-print) 360ms, transform var(--motion-reveal) var(--ease-print) 360ms; }
.op-ledger.is-live.s-route .op-ledger__to { opacity: 1; transform: none; }
@media (max-width: 767px) { .op-ledger__task-name { font-size: 22px; line-height: 28px; } }
@media (max-width: 767px) { .op-ledger { padding: 24px; } }

/* ---------- Prose and documentation ---------- */
.op-prose { max-width: var(--measure-text); }
.op-prose > * + * { margin-top: 16px; }
.op-prose h2 { font: 600 32px/38px var(--font-display); margin-top: 64px; }
.op-prose h2 + * { margin-top: 24px; }
.op-prose h3 { font: 600 20px/28px var(--font-text); margin-top: 40px; }
.op-prose h3 + * { margin-top: 12px; }
.op-prose ul, .op-prose ol { padding-left: 1.25em; }
.op-prose li + li { margin-top: 8px; }
.op-prose li::marker { color: var(--engraving); }
.op-prose .op-body-l { color: var(--ink); }
.doc-section + .doc-section { margin-top: 0; }
.op-docs-section { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--hairline); }
.op-docs-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.op-docs-section > h2:first-child { margin-top: 0; }
.op-content-review { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-quiet); }
.op-docs-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 32px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-quiet); margin-bottom: 40px; }
.breadcrumbs a { color: var(--ink-quiet); }
.breadcrumbs a:hover { color: var(--ink); }

.code-block { margin-top: 24px; border: 1px solid var(--field); background: var(--surface-white); }
.code-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--hairline); font-size: 13px; line-height: 20px; color: var(--ink-quiet); }
.copy-code { min-height: 36px; padding: 0 12px; background: transparent; border: 1px solid var(--field); border-radius: var(--radius-1); color: var(--engraving); font: 500 14px/20px var(--font-text); cursor: pointer; }
.copy-code:hover { background: var(--tint-1); }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; font: 14px/22px var(--font-mono); color: var(--ink); }
.code-block code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }

.doc-note { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--hairline); border-left: 2px solid var(--engraving); background: var(--surface-paper); }
.doc-note strong { display: block; font-weight: 600; }
.doc-note p { margin-top: 6px; color: var(--ink-quiet); }

.doc-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--hairline); }
.doc-table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.doc-table th { padding: 12px 16px; text-align: left; vertical-align: bottom; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-quiet); background: var(--surface-paper-2); border-bottom: 1px solid var(--hairline); }
.doc-table td { padding: 12px 16px; vertical-align: top; border-top: 1px solid var(--hairline); }
.doc-table tr:first-child td { border-top: 0; }
.doc-table td:first-child { white-space: nowrap; }
@media (max-width: 767px) { .doc-table td:first-child { white-space: normal; } }

.integration-contents { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 24px; }
.integration-contents a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }

/* Disclosure rows (details) */
.op-details { border-top: 1px solid var(--hairline); }
.op-details:last-of-type { border-bottom: 1px solid var(--hairline); }
.op-details + .op-details { margin-top: 0; }
.op-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; list-style: none; cursor: pointer; font: 600 24px/30px var(--font-display); color: var(--ink); }
.op-details > summary::-webkit-details-marker { display: none; }
.op-details > summary::after { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--engraving); transform: rotate(45deg) scale(0.72); background: transparent; transition: background-color var(--motion-quick) var(--ease-quick); }
.op-details[open] > summary::after { background: var(--engraving); }
/* Blue marks the expanded question only. A hover color would stick on touch screens after a tap closes it. */
.op-details[open] > summary { color: var(--engraving); }
.op-details > :not(summary) { max-width: var(--measure-text); }
.op-details > :not(summary) + * { margin-top: 16px; }
.op-details > summary + * { margin-top: 4px; }
.op-details > :last-child { margin-bottom: 32px; }
.op-details h3 { font: 600 18px/26px var(--font-text); margin-top: 32px; }
.op-details ul, .op-details ol { padding-left: 1.25em; }
.op-details li + li { margin-top: 8px; }
.op-details li::marker { color: var(--engraving); }
.op-docs-list { margin-top: 40px; }
.editorial-introduction > p + p { margin-top: 16px; }
.protocol-section { margin-top: 40px; }
.protocol-section h2 { font: 600 28px/34px var(--font-display); }
.protocol-section > * + * { margin-top: 16px; }
.doc-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 16px; border-top: 1px solid var(--hairline); }
.doc-resources a { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hairline); font-weight: 500; text-decoration: none; }
.doc-resources a span { font-size: 14px; font-weight: 400; color: var(--ink-quiet); }
.doc-resources a:hover { text-decoration: underline; }
@media (max-width: 640px) { .doc-resources { grid-template-columns: minmax(0, 1fr); } }

.op-docs-section > * + * { margin-top: 16px; }
.op-docs-section > h2 { font: 600 32px/38px var(--font-display); }
.op-docs-section > h2 + * { margin-top: 24px; }
.op-docs-section > h3 { font: 600 20px/28px var(--font-text); margin-top: 40px; }
.op-docs-section > h3 + * { margin-top: 12px; }
.op-docs-section ul, .op-docs-section ol { padding-left: 1.25em; }
.op-docs-section li + li { margin-top: 8px; }
.op-docs-section li::marker { color: var(--engraving); }
#application-checker { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
#application-checker label { font-weight: 500; }
#application-checker textarea { font: 14px/22px var(--font-mono); min-height: 360px; }
.checker-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#checker-result:not(:empty) { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--hairline); border-left: 2px solid var(--engraving); }
#checker-result ul { margin: 12px 0 0; padding-left: 1.25em; }

/* ---------- Placeholder (text, app) ---------- */
.op-placeholder { margin-top: 48px; padding: 32px; border: 1px solid var(--hairline); max-width: var(--measure-text); }
.op-placeholder h2 { margin-top: 16px; }
.op-placeholder p { margin-top: 12px; color: var(--ink-quiet); }
.op-maplabel { display: inline-block; padding: 3px 8px; background: var(--surface-paper); border: 1px solid var(--field); border-radius: var(--radius-1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

/* ---------- Work with us contact ---------- */
.op-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 64px; padding: 32px; border: 1px solid var(--hairline); }
.op-contact h2 { margin-top: 0; font: 600 28px/34px var(--font-display); }
.op-contact p { margin-top: 0; }

/* ---------- Intake pages: apply, link, review ---------- */
.intake-page { width: 100%; max-width: calc(var(--measure-text) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 96px; }
.intake-page > * + * { margin-top: 16px; }
.intake-page > h1, .intake-page .apply-content > h1 { font: 600 clamp(40px, 3.5vw + 27px, 64px)/1.06 var(--font-display); letter-spacing: -0.01em; }
.intake-page > h1 + p, .intake-page .eyebrow + h1 { margin-top: 24px; }
.intake-page > .eyebrow + h1 { margin-top: 12px; }
.eyebrow, .section-kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-quiet); }
.intake-page h2 { font: 600 32px/38px var(--font-display); margin-top: 48px; }
.intake-page h3 { font: 600 20px/28px var(--font-text); margin-top: 32px; }
.fine-print { font-size: 14px; line-height: 22px; color: var(--ink-quiet); }
.notice { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--hairline); border-left: 2px solid var(--engraving); }
.notice strong { display: block; }
.notice p { margin-top: 6px; color: var(--ink-quiet); }
.intake-page dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin-top: 24px; font-size: 14px; }
.intake-page dt { font-size: 12px; line-height: 22px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-quiet); }
.intake-page dd { margin: 0; overflow-wrap: anywhere; }
.intake-page pre { margin: 0; padding: 16px; overflow-x: auto; border: 1px solid var(--field); background: var(--surface-white); font: 13px/20px var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.intake-page form { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
:is(.intake-page, form) label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); }
:is(.intake-page, form) label small, :is(.intake-page, form) .hint { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink-quiet); }
:is(.intake-page, form) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), :is(.intake-page, form) select, :is(.intake-page, form) textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--field); border-radius: var(--radius-1);
  background: var(--surface-white); color: var(--ink); font: 400 16px/24px var(--font-text);
}
:is(.intake-page, form) textarea { min-height: 96px; resize: vertical; }
:is(.intake-page, form) input::placeholder, :is(.intake-page, form) textarea::placeholder { color: var(--ink-quiet); opacity: .8; }
:is(.intake-page, form) select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--engraving) 50%), linear-gradient(135deg, var(--engraving) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
:is(.intake-page, form) input[type="file"] { font: inherit; font-size: 14px; }
:is(.intake-page, form) input[type="file"]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 16px; border: 1px solid var(--engraving); border-radius: var(--radius-1); background: transparent; color: var(--engraving); font: 500 15px/20px var(--font-text); cursor: pointer; }
:is(.intake-page, form) input[type="checkbox"], :is(.intake-page, form) input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--engraving); flex: none; }
:is(.intake-page, form) :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--engraving); }
:is(.intake-page, form) :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--danger); }
.check-label, :is(.intake-page, form) label:has(> input[type="checkbox"]), :is(.intake-page, form) label:has(> input[type="radio"]) { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }
.intake-page button:not(.op-btn):not(.button):not(.copy-code) { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 48px; padding: 0 24px; border: 1px solid var(--engraving); border-radius: var(--radius-1); background: transparent; color: var(--engraving); font: 500 16px/20px var(--font-text); cursor: pointer; transition: background-color var(--motion-quick) var(--ease-quick), color var(--motion-quick) var(--ease-quick); }
.intake-page button:not(.op-btn):not(.button):not(.copy-code):hover { background: var(--tint-1); }
.intake-page form > .button, .intake-page form > button { align-self: flex-start; }
#form-error:not(:empty), .error, [role="alert"]:not(:empty) { color: var(--danger); font-weight: 500; }
#form-error:empty { display: none; }
#receipt:not([hidden]), .receipt { margin-top: 32px; padding: 24px; border: 1.5px solid var(--engraving); }
#receipt > * + * { margin-top: 12px; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.apply-content .editorial-introduction { margin-top: 24px; font-size: 19px; line-height: 30px; }
.apply-options { margin-top: 64px; }
.apply-options > h2 { margin-bottom: 24px; }
.apply-option { border-top: 1px solid var(--hairline); }
.apply-option:last-of-type { border-bottom: 1px solid var(--hairline); }
.apply-option > summary { display: flex; flex-direction: column; gap: 4px; position: relative; padding: 20px 48px 20px 0; list-style: none; cursor: pointer; }
.apply-option > summary::-webkit-details-marker { display: none; }
.apply-option > summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 1.5px solid var(--engraving); transform: rotate(45deg) scale(0.72); }
.apply-option[open] > summary::after { background: var(--engraving); }
.apply-option-title { font: 600 24px/30px var(--font-display); color: var(--ink); }
.apply-option-description { font-size: 15px; line-height: 22px; color: var(--ink-quiet); }
.apply-option[open] { padding-bottom: 32px; }
.apply-option > :not(summary) + * { margin-top: 16px; }
.apply-form-help { color: var(--ink-quiet); }
.application-section { border: 1px solid var(--hairline); padding: 0 20px; }
.application-section + .application-section { margin-top: 0; }
.application-section > summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; font: 600 20px/28px var(--font-display); cursor: pointer; }
.application-section > summary::-webkit-details-marker { display: none; }
.application-section > summary::after { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px solid var(--engraving); transform: rotate(45deg) scale(0.72); }
.application-section[open] > summary::after { background: var(--engraving); }
.application-section[open] { padding-bottom: 24px; }
.application-section > * + * { margin-top: 16px; }
.application-section > p { color: var(--ink-quiet); font-size: 15px; }
.application-section fieldset, .intake-page fieldset { margin: 16px 0 0; padding: 16px; border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 16px; }
.intake-page legend { padding: 0 6px; font-weight: 600; }
.review-data { font-size: 14px; }
.intake-page article, .intake-page #applications > section { margin-top: 24px; padding: 24px; border: 1px solid var(--hairline); }
.intake-page #applications > * + * { margin-top: 16px; }

.intake-page label.button { display: inline-flex; flex-direction: row; position: relative; font: 500 16px/20px var(--font-text); color: var(--engraving); cursor: pointer; }
.intake-page label.button input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.intake-page label.button:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.apply-content > .eyebrow + h1 { margin-top: 12px; }
.apply-content > * + * { margin-top: 16px; }

/* ---------- Early access form (/get-app) ---------- */
.op-signup { margin-top: 32px; max-width: 520px; }
.op-signup__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.op-signup__row { display: flex; gap: 8px; }
.op-signup input[type="email"] { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid var(--field); border-radius: var(--radius-1); background: var(--surface-white); color: var(--ink); font: 400 16px/24px var(--font-text); }
.op-signup input[type="email"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--engraving); }
.op-signup input[aria-invalid="true"] { border-color: var(--danger); }
.op-signup .op-btn { flex: none; }
.op-signup .op-small { margin-top: 12px; }
.op-signup__status:not(:empty) { margin-top: 12px; font-weight: 500; }
.op-signup__status[data-tone="error"] { color: var(--danger); }
.op-signup__done { margin-top: 32px; padding: 24px; border: 1.5px solid var(--engraving); max-width: 520px; }
.op-signup__done h2 { font: 600 28px/34px var(--font-display); }
.op-signup__done p { margin-top: 8px; }
.op-signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .op-signup__row { flex-direction: column; } .op-signup .op-btn { width: 100%; } }

/* ---------- Motion: everything is visible until script adds .op-motion to <html> ---------- */
.op-motion .op-reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--motion-reveal) var(--ease-print), transform var(--motion-reveal) var(--ease-print); }
.op-motion .op-reveal.op-in { opacity: 1; transform: none; }
.op-motion .op-seq > * { opacity: 0; transform: translateY(8px); transition: opacity var(--motion-reveal) var(--ease-print), transform var(--motion-reveal) var(--ease-print), border-color var(--motion-quick) var(--ease-quick); }
.op-motion .op-seq.op-in > * { opacity: 1; transform: none; }
.op-motion .op-seq.op-in > :nth-child(2) { transition-delay: calc(var(--motion-step) * 1); }
.op-motion .op-seq.op-in > :nth-child(3) { transition-delay: calc(var(--motion-step) * 2); }
.op-motion .op-seq.op-in > :nth-child(4) { transition-delay: calc(var(--motion-step) * 3); }
.op-motion .op-seq.op-in > :nth-child(5) { transition-delay: calc(var(--motion-step) * 4); }
.op-motion .op-seq.op-in > :nth-child(6) { transition-delay: calc(var(--motion-step) * 5); }
.op-motion .op-print > img:first-child { opacity: 0; transform: translateY(8px); transition: opacity var(--motion-print) var(--ease-print), transform var(--motion-print) var(--ease-print); }
.op-motion .op-print > img + img { opacity: 0; transition: opacity var(--motion-tint) var(--ease-print) calc(var(--motion-print) + var(--motion-tint-delay)); }
.op-motion .op-print.op-in > img { opacity: 1; transform: none; }
.op-motion .op-print.op-in > img + img { transform: none; }
/* Job plates: the ink is already there when a card drifts in; only the blue wash fades in, once the plate is fully in view. */
.op-motion .op-jobs .op-job__plate > img:first-child { opacity: 1; transform: none; transition: none; }
.op-motion .op-jobs .op-job__plate > img + img { opacity: 0; transform: none; transition: opacity var(--motion-tint) var(--ease-print); }
.op-motion .op-jobs .op-job__plate.op-tinted > img + img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .op-reveal, .op-seq > *, .op-print > img { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Accessibility media features ---------- */
@media (prefers-contrast: more) {
  :root:root:root, [data-theme][data-theme][data-theme] { --hairline: var(--field); --border: var(--field); --hatch: var(--line); --ink-quiet: var(--ink); }
  a, .op-nav__link { text-decoration-thickness: 2px; }
}
@media (forced-colors: active) {
  .op-mask, .op-ledger__block--private::before, .op-highlight, .op-chip--shared { forced-color-adjust: none; }
  .op-mask { background-color: CanvasText; }
  .op-ledger__block--private::before { background-color: GrayText; }
  .op-highlight { background: Mark; color: MarkText; }
  .op-chip--shared { background: CanvasText; color: Canvas; }
  .op-ledger__btn, .op-card, .op-ledger, .op-ledger__block, .op-chip, .op-maplabel, .code-block, .doc-note, .op-placeholder { border-color: CanvasText; }
  .op-ledger__stem { border-left-color: CanvasText; }
  .operanda-logo-ink, .operanda-logo-dot { fill: CanvasText; }
  .op-details > summary::after, .apply-option > summary::after { border-color: CanvasText; }
  .op-details[open] > summary::after, .apply-option[open] > summary::after { background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  .site-header .op-nav, .op-subnav, .op-skip, .copy-code { display: none !important; }
  body { background: #fff; }
}

/* ---------- Early-access list: the form (dialog and /get-app) and its dialog, which stays light like the Proof dialogs ---------- */
.op-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.waitlist-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin-top: 28px; }
.waitlist-form__fields { display: flex; align-items: stretch; gap: 8px; }
.waitlist-form__fields input[type="email"] { flex: 1; min-width: 0; }
.waitlist-form .op-btn { min-height: 48px; white-space: nowrap; flex: none; }
.waitlist-form button:disabled { opacity: .65; cursor: wait; }
.waitlist-form .waitlist-form__consent { font-size: 15px; line-height: 24px; }
.waitlist-form__privacy { margin: 0; }
.waitlist-form__status { margin: 0; overflow-wrap: anywhere; }
.waitlist-form__status:empty { display: none; }
.waitlist-form__status[data-error] { color: var(--danger); font-weight: 600; }
.waitlist-form[data-done] > :not(.waitlist-form__status) { display: none; }
.waitlist-form[data-done] .waitlist-form__status { font-size: 17px; line-height: 26px; color: var(--ink); }
@media (max-width: 539px) { .waitlist-form__fields { flex-direction: column; } }

html:has(.waitlist-dialog[open]) { overflow: hidden; }
.waitlist-dialog { width: min(880px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: visible; border: 0; border-radius: var(--radius-1); background: var(--surface-paper); color: var(--ink); box-shadow: 0 16px 48px color-mix(in srgb, var(--ink) 20%, transparent); }
.waitlist-dialog:not([open]) { display: none; }
.waitlist-dialog::backdrop { background: color-mix(in srgb, var(--ink) 50%, transparent); }
.waitlist-dialog__body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: center; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 56px; }
.waitlist-dialog__close { position: absolute; z-index: 1; top: 20px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-full); background: var(--surface-white); color: var(--ink); cursor: pointer; }
.waitlist-dialog__close:hover { background: var(--tint-2); }
.waitlist-dialog__title { margin-top: 16px; font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.025em; }
.waitlist-dialog__description { margin-top: 20px; font-size: 19px; line-height: 27px; }
.waitlist-dialog .waitlist-form { margin-top: 28px; }
.waitlist-dialog[data-done] .waitlist-dialog__copy > :not(.waitlist-dialog__done) { display: none; }
.waitlist-dialog__done .waitlist-dialog__title { margin-top: 0; }
.waitlist-dialog__done .waitlist-dialog__title:focus { outline: none; }
.waitlist-share { margin-top: 40px; }
.waitlist-share__ask { margin: 0 0 16px; color: var(--ink); }
.waitlist-share__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.waitlist-share__link { overflow-wrap: anywhere; }
.waitlist-share__invite { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.waitlist-share__copy { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--field); border-radius: var(--radius-1); background: transparent; color: var(--engraving); cursor: pointer; }
.waitlist-share__copy:hover { background: var(--tint-1); }
.waitlist-share__copy .op-icon { width: 18px; height: 18px; grid-area: 1 / 1; }
.waitlist-share__copy .op-icon + .op-icon, .waitlist-share__copy.is-copied .op-icon:first-child { visibility: hidden; }
.waitlist-share__copy.is-copied .op-icon + .op-icon { visibility: visible; }
.waitlist-share__status { margin: 8px 0 0; }
.waitlist-share__status:empty { display: none; }
.waitlist-confirmed { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 120px; }
.waitlist-confirmed__copy { max-width: 600px; }
.waitlist-confirmed h1 { margin-top: 16px; }
.waitlist-confirmed__lead { margin-top: 20px; }
.waitlist-confirmed__status { margin: 16px 0 0; color: var(--danger); font-weight: 600; }
.waitlist-confirmed__status:empty { display: none; }
.waitlist-confirmed__art.op-vignette { width: 280px; height: 280px; }
@media (max-width: 767px) {
  .waitlist-confirmed { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 48px; padding-bottom: 80px; }
  .waitlist-confirmed__art.op-vignette { grid-row: 1; width: 140px; height: 140px; margin-bottom: 24px; }
}
.waitlist-dialog__art.op-vignette { width: 240px; height: 240px; }
@media (max-width: 767px) {
  .waitlist-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 16px); }
  .waitlist-dialog__body { grid-template-columns: minmax(0, 1fr); gap: 0; max-height: calc(100dvh - 16px); padding: 56px 28px 32px; }
  .waitlist-dialog__art.op-vignette { grid-row: 1; width: 120px; height: 120px; margin-bottom: 20px; }
  .waitlist-dialog__title { font-size: 32px; line-height: 1.04; }
  .waitlist-dialog__description { font-size: 17px; line-height: 26px; }
}
@media (max-height: 560px) and (min-width: 768px) { .waitlist-dialog__body { padding: 32px 48px; } .waitlist-dialog__art.op-vignette { width: 180px; height: 180px; } }

/* Partner pages (/specialist-agents, /personal-agents) while the developer program is hidden. */
.partner-form { display: flex; flex-direction: column; gap: 20px; }
.partner-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.partner-form > .op-btn { align-self: flex-start; }
.partner-form__status:empty { display: none; }
.partner-form__status[data-error="true"] { color: var(--danger); }
.partner-form__done:focus { outline: none; }
.partner-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; list-style: none; margin: 16px 0 0; padding: 0; }
.partner-steps li { display: flex; flex-direction: column; gap: 8px; }
.partner-points { margin: 24px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.partner-email .partner-points { margin-top: 16px; }
.partner-email > .op-small { margin-top: 20px; }
.partner-email, .partner-form__done { padding: 32px; border: 1px solid var(--hairline); border-radius: var(--radius-1); }
/* Tap-to-choose questions on the specialist application: radio inputs drawn as pills. */
.partner-pills { margin: 0; padding: 0; border: 0; min-width: 0; }
.partner-pills legend { padding: 0; margin-bottom: 12px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); }
.partner-pills legend small { font-size: 14px; font-weight: 400; color: var(--ink-quiet); }
.partner-pills__options { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-pills .partner-pill.partner-pill { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 0; min-height: 40px; padding: 0 16px; border: 1px solid var(--field); border-radius: var(--radius-full); background: transparent; color: var(--ink-quiet); font-size: 14px; line-height: 20px; font-weight: 400; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.partner-pills .partner-pill.partner-pill input[type="radio"] { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.partner-pills .partner-pill.partner-pill:has(input:checked) { background: var(--tint-2); }
@media (forced-colors: active) {
  .partner-pills .partner-pill.partner-pill:has(input:checked) { forced-color-adjust: none; color: HighlightText; background: Highlight; }
}
.partner-pills .partner-pill.partner-pill:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.partner-pills[aria-invalid="true"] .partner-pill { border-color: var(--danger); }
