/* ─────────────────────────────────────────────────────────
   wcg-ai.com · "the annex" design system
   The wellesleycove.com operating-memo register, set dark:
   navy ground, serif display, mono metadata, lavender as
   the working accent, coral reserved as the ink of decisions.
   Class names mirror the parent memo.css so patterns match.
   ───────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-tight-var.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-var.woff2') format('woff2');
}

:root {
  --paper: #000718;            /* navy-deep ground (the parent's insert, sitewide) */
  --paper-raised: rgba(218,215,232,0.035);  /* raised panels: a neutral lift, ruled not filled */
  --ink: #FFFFFF;              /* display text */
  --ink-soft: #DAD7E8;         /* body text (lav-light) */
  --ink-mute: #8A90AC;         /* metadata */
  --accent: #A9A4C5;           /* lavender, the working accent */
  --accent-deep: #C9C5DE;      /* lavender, brightened for hover on dark */
  --red: #E8A79C;              /* coral-deep: the ink of decisions, dark register */
  --red-bright: #F5BFB8;       /* coral */
  --navy: #00143C;
  --navy-deep: #000718;
  --lav: #A9A4C5;
  --lav-light: #DAD7E8;
  --hair: rgba(218,215,232,0.16);
  --hair-soft: rgba(218,215,232,0.07);
  --serif: 'Playfair Display', Georgia, serif;
  --head: 'Onest', system-ui, sans-serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* the annex texture: a very subtle engineering grid */
  background-image:
    linear-gradient(rgba(169,164,197,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,164,197,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--navy-deep); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(169,164,197,0.4); border-radius: 10px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--lav-light); color: var(--navy-deep);
  padding: 10px 16px; border-radius: 3px; font-size: 14px; z-index: 100;
}
.skip-link:focus { left: 12px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* ── folio strip ── */
.folio {
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.folio .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.folio .right { display: none; }
@media (min-width: 720px) { .folio .right { display: block; } }

/* ── masthead ── */
.mast {
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,7,24,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mast .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.mast img.mark { height: 24px; width: auto; }
@media (min-width: 720px) { .mast img.mark { height: 26px; } }
.mast nav { display: none; gap: 24px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; align-items: center; }
.mast nav a { padding: 6px 0; position: relative; }
.mast nav a:hover { color: var(--ink); }
.mast nav a.active { color: var(--ink); }
.mast nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--red-bright); }
@media (min-width: 980px) { .mast nav { display: flex; } }
.mast .cta {
  display: none;
  font-family: var(--head); font-weight: 600; font-size: 13px;
  background: var(--lav-light); color: var(--navy-deep); padding: 10px 18px; border-radius: 3px;
  white-space: nowrap; transition: background 0.2s;
}
.mast .cta:hover { background: #fff; }
@media (min-width: 980px) { .mast .cta { display: inline-flex; } }

/* mobile menu toggle */
.mast-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 12px 10px; margin-right: -10px; flex-shrink: 0;
}
.mast-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mast-toggle span { display: block; width: 100%; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
@media (min-width: 980px) { .mast-toggle { display: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .mast-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .mast-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .mast-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--paper); z-index: 40;
  padding: 96px 24px 40px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 27px; color: var(--ink);
  padding: 16px 0; border-bottom: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a::after { content: '→'; font-family: var(--sans); color: var(--accent); font-size: 20px; }
.mobile-menu nav a.active { color: var(--accent); }
.mobile-menu .cta {
  margin-top: 32px; display: flex; align-items: center; justify-content: center;
  padding: 16px 24px; background: var(--lav-light); color: var(--navy-deep);
  font-family: var(--head); font-weight: 600; border-radius: 3px; min-height: 56px;
}
@media (min-width: 980px) { .mobile-menu { display: none; } }

/* ── type ── */
h1 {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em, h2 em, .serif-turn { font-style: italic; color: var(--accent); }
h2 {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(1.85rem, 3.9vw, 3rem); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 24ch; text-wrap: balance;
}
h3 { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.25; letter-spacing: -0.015em; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; display: block; }
.kicker .no { color: var(--red-bright); }
.standfirst { margin-top: 28px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.standfirst strong { color: var(--ink); font-weight: 600; }
.measure { max-width: 68ch; }

.prose { margin-top: 34px; }
.prose p { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; color: var(--ink-soft); max-width: 66ch; }
.prose p + p { margin-top: 22px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose .lede::first-letter {
  font-family: var(--serif); float: left; font-size: 4.3em; line-height: 0.82;
  padding-right: 12px; padding-top: 6px; color: var(--ink);
}
.prose ul { list-style: none; margin-top: 20px; max-width: 66ch; }
.prose ul li { padding: 9px 0 9px 26px; position: relative; line-height: 1.55; border-bottom: 1px solid var(--hair-soft); }
.prose ul li:last-child { border-bottom: none; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 19px; width: 14px; height: 1.5px; background: var(--accent); }
.prose ul li strong { color: var(--ink); }

.pull {
  margin: 44px 0 8px; padding-left: 26px; border-left: 3px solid var(--red-bright);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.4; color: var(--ink); max-width: 32ch;
}
.signature { margin-top: 38px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.note-mute { font-size: 13px; color: var(--ink-mute); max-width: 62ch; }

.link { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; font-weight: 500; transition: border-color 0.2s; }
.link:hover { border-color: var(--ink); }

/* ── buttons ── */
.btn {
  font-family: var(--head); font-weight: 600; font-size: 15px;
  background: var(--lav-light); color: var(--navy-deep); padding: 16px 26px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 10px; transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn.quiet:hover { background: rgba(218,215,232,0.06); transform: none; }

/* ── page scaffolding ── */
section.memo { padding: 84px 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 880px) { section.memo { padding: 116px 0; } }
section.memo.tight { padding: 60px 0; }
@media (min-width: 880px) { section.memo.tight { padding: 80px 0; } }
.hero { padding: 64px 0 60px; border-bottom: 1px solid var(--hair); position: relative; }
@media (min-width: 880px) { .hero { padding: 96px 0 84px; } }
/* hero grid texture, one register louder than the body grid */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(169,164,197,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,164,197,0.07) 1px, transparent 1px);
  background-size: 108px 108px;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 30%, transparent 78%);
}
.hero .wrap { position: relative; }
.dateline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dateline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); flex: none; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 80px; } }
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.crumbs {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }
.crumbs .curr { color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ── term sheet ── */
.termsheet {
  background: var(--paper-raised); border: 1px solid var(--hair);
  border-top: 2px solid var(--lav-light); border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.termsheet .ts-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); padding: 14px 22px; border-bottom: 1px solid var(--hair);
  display: flex; justify-content: space-between;
}
.termsheet .row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 15px 22px; border-bottom: 1px solid var(--hair-soft); }
.termsheet .row:last-child { border-bottom: none; }
.termsheet .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.termsheet .v { font-family: var(--serif); font-size: 19px; color: var(--ink); text-align: right; }
.termsheet .v small { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.termsheet .foot { padding: 13px 22px; background: rgba(245,191,184,0.07); border-top: 1px solid rgba(245,191,184,0.3); font-size: 13px; color: var(--red-bright); font-weight: 500; }

/* ── proof insert (a shade up from the ground, ruled not filled) ── */
.insert { background: linear-gradient(180deg, rgba(218,215,232,0.05), rgba(218,215,232,0.015)); color: var(--lav-light); }
.insert .kicker { color: var(--lav); }
.insert .kicker .no { color: var(--red-bright); }
.insert h2, .insert h3 { color: #fff; }
.insert h2 em { color: var(--lav); }
.insert .prose p, .insert .standfirst { color: var(--lav-light); }
.insert .link { color: #fff; border-bottom-color: var(--lav); }
.insert .link:hover { border-bottom-color: #fff; }
.ledger { margin-top: 48px; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px; overflow: hidden; }
.ledger .lrow { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ledger .lrow:last-child { border-bottom: none; }
@media (min-width: 880px) { .ledger .lrow { grid-template-columns: 220px 1fr 280px; } }
.ledger .lcell { padding: 22px 26px; }
.ledger .lhead { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lav); }
.ledger .lcase { font-family: var(--head); font-weight: 700; font-size: 17px; color: #fff; margin-top: 8px; }
.ledger .ldesc { font-size: 14.5px; color: var(--lav-light); line-height: 1.55; }
.ledger .lnum { font-family: var(--serif); font-size: 24px; color: #fff; }
.ledger .lnum small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lav); margin-top: 4px; }
.ledger .lnum + .lnum { margin-top: 14px; }
.ledger .lrow.lead { background: rgba(169,164,197,0.07); }
.caveat { margin-top: 22px; font-size: 12.5px; color: var(--lav); max-width: 70ch; }

/* ── schedule rows ── */
.sched { margin-top: 52px; border-top: 2px solid var(--lav-light); }
.srow {
  display: grid; grid-template-columns: 72px 1fr auto;
  grid-template-areas: "wk what art" "wk how how";
  gap: 8px 20px; padding: 22px 0; border-bottom: 1px solid var(--hair); align-items: baseline;
}
.srow .wk { grid-area: wk; font-family: var(--serif); font-size: 26px; color: var(--accent); }
.srow .what { grid-area: what; font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); }
.srow .how { grid-area: how; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; max-width: 70ch; }
.srow .art { grid-area: art; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-bright); text-align: right; }
@media (max-width: 560px) {
  .srow { grid-template-columns: 56px 1fr; grid-template-areas: "wk what" "wk art" "wk how"; }
  .srow .art { text-align: left; }
}

/* ── document artifact (memo card) ── */
.artifact {
  background: var(--paper-raised); border: 1px solid var(--hair); border-radius: 3px;
  padding: 30px 32px; position: relative; max-width: 460px;
}
.artifact::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--lav); }
.artifact .ahead { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); padding-bottom: 14px; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; }
.artifact .atitle { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); margin: 18px 0 6px; }
.artifact .abody { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.artifact .decision { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 3px; background: rgba(0,7,24,0.5); }
.artifact .decision .dlabel { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.artifact .opt { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 4px 0; }
.artifact .box { width: 15px; height: 15px; border: 1.5px solid var(--hair); border-radius: 2px; flex: none; display: grid; place-items: center; }
.artifact .opt.checked .box { border-color: var(--red-bright); background: rgba(245,191,184,0.1); }
.artifact .opt.checked .box::after { content: '✓'; color: var(--red-bright); font-size: 11px; font-weight: 700; }
.artifact .opt.checked { color: var(--ink); font-weight: 600; }
.artifact .note { margin-top: 16px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.boundary { margin-top: 30px; font-size: 13px; color: var(--ink-mute); max-width: 60ch; }

/* ── document wall ── */
.docs { margin-top: 52px; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .docs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .docs { grid-template-columns: repeat(3, 1fr); } }
.docs.two-up { max-width: 880px; }
@media (min-width: 1020px) { .docs.two-up { grid-template-columns: repeat(2, 1fr); } }
.doc {
  background: var(--paper-raised); border: 1px solid var(--hair); border-radius: 3px;
  padding: 24px 24px 22px; position: relative;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.doc:hover { transform: translateY(-3px); border-color: rgba(245,191,184,0.4); background: rgba(218,215,232,0.055); }
.doc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.doc.flag::before { background: linear-gradient(90deg, var(--red-bright), transparent 70%); }
.doc .file { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 14px; }
.doc.flag .file { color: var(--red-bright); }
.doc h4 { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 7px; }
.doc p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.doc .link { font-size: 13.5px; }
.keepline { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink); }

/* ── policy block ── */
.policy { background: var(--paper-raised); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 3px; padding: 32px 34px; max-width: 760px; margin-top: 40px; }
.policy p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.policy p + p { margin-top: 16px; }
.policy p strong { color: var(--ink); }
.policy .pfoot { margin-top: 18px; }

/* ── people ── */
.people { margin-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
@media (min-width: 680px) { .people { grid-template-columns: repeat(4, 1fr); } }
.person img { border-radius: 4px; border: 1px solid var(--hair); display: block; }
.people--lav .person img { filter: url(#wcg-faces); }
.person .pname { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--ink); margin-top: 12px; }
.person .prole { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }
.bench-line { margin-top: 34px; font-size: 15px; color: var(--ink-soft); max-width: 62ch; }
.bench-line strong { color: var(--ink); }

/* ── fit / two-list panel ── */
.fit-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; }
@media (min-width: 880px) { .fit-grid { grid-template-columns: 1fr 1fr; } }
.fit-col { padding: 32px 34px; background: var(--paper-raised); }
.fit-col + .fit-col { border-top: 1px solid var(--hair); }
@media (min-width: 880px) { .fit-col + .fit-col { border-top: none; border-left: 1px solid var(--hair); } }
.fit-col .fhead { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.fit-col.yes .fhead { color: var(--accent); }
.fit-col.no .fhead { color: var(--red-bright); }
.fit-col ul { list-style: none; }
.fit-col li { padding: 10px 0 10px 26px; position: relative; font-size: 15px; color: var(--ink-soft); border-bottom: 1px solid var(--hair-soft); line-height: 1.5; }
.fit-col li:last-child { border-bottom: none; }
.fit-col li strong { color: var(--ink); }
.fit-col.yes li::before { content: ''; position: absolute; left: 0; top: 19px; width: 14px; height: 1.5px; background: var(--accent); }
.fit-col.no li::before { content: '×'; position: absolute; left: 0; top: 8px; color: var(--red-bright); font-weight: 600; }

/* ── clauses ── */
.clauses { margin-top: 48px; max-width: 760px; }
.clause { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.clause .cno { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.clause .ctext { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.clause .ctext strong { color: var(--ink); font-weight: 600; }

/* ── index list (catalog rows: title left, desc right) ── */
.index { margin-top: 48px; border-top: 2px solid var(--lav-light); }
.irow {
  display: grid; grid-template-columns: 1fr; gap: 8px 40px;
  padding: 24px 0; border-bottom: 1px solid var(--hair); align-items: baseline;
}
@media (min-width: 880px) { .irow { grid-template-columns: 320px 1fr; } }
.irow .ileft { display: flex; align-items: baseline; gap: 16px; }
.irow .ino { font-family: var(--serif); font-size: 18px; color: var(--accent); flex: none; }
.irow .ititle { font-family: var(--head); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.irow .ititle a:hover { color: var(--accent-deep); }
.irow .imeta { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-bright); margin-left: 10px; }
.irow .idesc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 70ch; }

/* ── plates (photos set like figures in a report) ── */
.plate { border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: var(--paper-raised); }
.plate img { width: 100%; }
.plate figcaption { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); padding: 12px 16px; border-top: 1px solid var(--hair); }

/* ── editorial table ── */
.table-wrap { margin-top: 44px; border: 1px solid var(--hair); border-radius: 4px; overflow-x: auto; background: var(--paper-raised); }
table.memo-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.memo-table th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500; text-align: left;
  padding: 16px 18px; border-bottom: 2px solid var(--lav-light);
}
.memo-table td { padding: 16px 18px; border-bottom: 1px solid var(--hair-soft); font-size: 14.5px; color: var(--ink-soft); vertical-align: top; line-height: 1.55; }
.memo-table tr:last-child td { border-bottom: none; }
.memo-table td strong, .memo-table .tname { color: var(--ink); font-weight: 600; }
.memo-table .tnum { font-family: var(--serif); font-size: 17px; color: var(--ink); }

/* ── forms (contact / schedule) ── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; margin-top: 48px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
form.contact-form { background: var(--paper-raised); border: 1px solid var(--hair); border-top: 2px solid var(--lav-light); border-radius: 0 0 4px 4px; padding: 32px 30px; }
@media (min-width: 720px) { form.contact-form { padding: 40px 38px; } }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1px solid var(--hair); border-radius: 3px;
  background: rgba(0,7,24,0.6); color: var(--ink);
  min-height: 48px; font-size: 16px; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(0,7,24,0.85); }
.field input::placeholder, .field textarea::placeholder { color: rgba(138,144,172,0.6); }
.field option { background: var(--navy); color: var(--ink); }
.field input.err, .field textarea.err { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(245,191,184,0.12); }
.form-status { margin-top: 16px; font-size: 14px; padding: 12px 14px; border-radius: 3px; display: none; }
.form-status.error { display: block; background: rgba(245,191,184,0.08); color: var(--red-bright); border: 1px solid rgba(245,191,184,0.4); }
.form-status.success { display: block; background: rgba(169,164,197,0.1); color: var(--accent-deep); border: 1px solid rgba(169,164,197,0.4); }
form .btn[type="submit"] { margin-top: 28px; }

aside.contact-side { border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 3px; background: var(--paper-raised); padding: 30px 30px; }
@media (min-width: 980px) { aside.contact-side { position: sticky; top: 96px; } }
aside.contact-side h3 { margin-top: 12px; font-size: 1.25rem; }
aside.contact-side .addr { margin-top: 20px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }

/* ── article (long-form) ── */
.article { padding: 72px 0 96px; }
.article .body-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 980px) { .article .body-grid { grid-template-columns: 200px 1fr; gap: 64px; } }
.article .label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); padding-top: 6px;
}
@media (min-width: 980px) { .article .label { position: sticky; top: 100px; } }
.article .body-grid + .body-grid { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--hair); }
.article .body p { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); max-width: 66ch; }
.article .body p + p { margin-top: 20px; }
.article .body p strong { color: var(--ink); }
.article .body ul, .article .body ol { margin: 20px 0 0 0; list-style: none; max-width: 66ch; }
.article .body li { padding: 9px 0 9px 26px; position: relative; line-height: 1.6; font-size: 16px; color: var(--ink-soft); border-bottom: 1px solid var(--hair-soft); }
.article .body li:last-child { border-bottom: none; }
.article .body li::before { content: ''; position: absolute; left: 0; top: 20px; width: 14px; height: 1.5px; background: var(--accent); }
.article .body li strong { color: var(--ink); }
.article .body h3 { margin-bottom: 12px; }
.byline { margin-top: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }

/* ── close + signoff ── */
.close-block { margin-top: 72px; }
.close-block h2 { max-width: none; }
.close-sub { margin-top: 20px; font-size: 16.5px; color: var(--ink-soft); max-width: 56ch; }
.close-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.guide-line { margin-top: 26px; font-size: 14px; color: var(--ink-mute); }
.signoff { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.signoff .who { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.9; }
.signoff .who strong { color: var(--ink); font-family: var(--head); font-size: 14px; letter-spacing: 0; text-transform: none; display: block; }
.signoff img { height: 22px; width: auto; opacity: 0.85; }

/* ── footer ── */
footer.colophon { border-top: 1px solid var(--hair); padding: 56px 0 36px; }
.colophon-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
@media (min-width: 720px) { .colophon-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.colophon img.mark { height: 22px; width: auto; }
.colophon .blurb { margin-top: 16px; font-size: 13.5px; color: var(--ink-mute); max-width: 30ch; line-height: 1.6; }
.colophon .blurb-links { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.colophon h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-weight: 500; }
.colophon ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-soft); }
.colophon ul a:hover { color: var(--ink); }
.colophon-bot {
  border-top: 1px solid var(--hair); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}

/* ── PAPAIA product mark ── */
.papaia-mark { height: 44px; width: auto; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── print: the annex ships as a memo too ── */
@media print {
  .mast, .mast-toggle, .mobile-menu, .hero-ctas, .close-ctas, .btn { display: none !important; }
  body { background: #fff; color: #3A374F; }
  h1, h2, h3, .standfirst strong { color: #15132A; }
  section.memo, .hero { padding: 32px 0; }
  .insert { background: #fff; color: #3A374F; border: 1px solid #bbb; }
  .insert h2, .insert h3, .ledger .lcase, .ledger .lnum { color: #15132A; }
  .ledger .ldesc { color: #3A374F; }
  footer.colophon .colophon-grid { display: none; }
}
