:root {
  --paper: #f2ead8;
  --paper-deep: #e4d7bc;
  --ink: #18201d;
  --muted: #696b60;
  --blue: #173e73;
  --blue-dark: #0b2545;
  --green: #315c40;
  --burgundy: #792f2d;
  --gold: #dcae42;
  --line: rgba(24, 32, 29, .22);
  --shadow: 12px 16px 0 rgba(24, 32, 29, .12);
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(121, 47, 45, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px clamp(22px, 5vw, 78px);
  border-bottom: 1px solid var(--ink);
  background: rgba(242, 234, 216, .94);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  background: var(--gold);
  font: 900 16px/1 var(--sans);
  letter-spacing: -.04em;
  box-shadow: 3px 3px 0 var(--ink);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { letter-spacing: .08em; font-size: 14px; }
.brand-copy small { margin-top: 5px; font-size: 9px; letter-spacing: .13em; color: var(--muted); }
.desk-nav { display: flex; gap: clamp(16px, 3vw, 44px); margin-left: auto; }
.desk-nav a, .site-footer > a {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.desk-nav a:hover, .site-footer > a:hover { border-color: currentColor; }
.market-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.market-status i { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 0 3px rgba(49,92,64,.14); }

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: center;
  padding: clamp(62px, 7vw, 110px) clamp(22px, 6vw, 96px) 70px;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 56%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(24,32,29,.12);
  transform: rotate(7deg);
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 900; letter-spacing: .18em; color: var(--burgundy); }
.eyebrow span { display: inline-block; padding: 4px 7px; color: var(--paper); background: var(--burgundy); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 26px;
  font: 700 clamp(56px, 5.1vw, 92px)/.84 var(--serif);
  letter-spacing: -.07em;
}
h1 em { color: var(--blue); font-weight: 400; }
.hero-lede { max-width: 620px; margin-bottom: 18px; font: 700 clamp(21px, 2vw, 31px)/1.15 var(--serif); }
.hero-story { max-width: 590px; margin-bottom: 30px; color: #41463f; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary { min-width: 210px; color: white; background: var(--blue); }
.btn-secondary { color: var(--ink); background: transparent; }
.btn.is-disabled, .text-link.is-disabled { cursor: not-allowed; opacity: .48; }
.btn.is-disabled:hover { transform: none; box-shadow: none; }
.ca-block {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 620px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: rgba(255,255,255,.24);
}
.ca-block > div { min-width: 0; display: grid; gap: 5px; padding: 12px 15px; }
.field-label { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.ca-block code { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.copy-button {
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--ink);
  color: white;
  background: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
}
.copy-button:disabled { color: var(--muted); background: var(--paper-deep); cursor: not-allowed; }
.config-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.config-note code { color: var(--burgundy); font-weight: 800; }
.hero-visual { position: relative; z-index: 2; width: 100%; min-width: 0; max-width: 680px; justify-self: center; transform: rotate(1.2deg); }
.file-tab {
  position: absolute;
  z-index: 2;
  top: -31px;
  left: 22px;
  padding: 10px 18px 8px;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  border-bottom: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.portrait-frame { position: relative; border: 1px solid var(--ink); background: #d9d1bb; box-shadow: var(--shadow); overflow: hidden; }
.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 14px;
  border: 1px solid rgba(24,32,29,.45);
  pointer-events: none;
}
.portrait-frame img { position: relative; z-index: 1; display: block; width: 100%; min-width: 0; max-width: 100%; height: auto; filter: saturate(.9) contrast(1.02); }
.graph-paper {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(23,62,115,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(23,62,115,.09) 1px, transparent 1px);
  background-size: 28px 28px;
}
.approval-mark {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  padding: 7px 12px;
  border: 3px double var(--burgundy);
  color: var(--burgundy);
  font-size: clamp(12px, 1.5vw, 20px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: .08em;
  text-align: center;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
}
.caption { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0 0; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.caption span { color: var(--burgundy); white-space: nowrap; }
.hero-folio { position: absolute; right: 20px; bottom: 16px; font: 800 9px/1 var(--sans); letter-spacing: .18em; writing-mode: vertical-rl; }

.section { position: relative; padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 112px); }
.section-heading { max-width: 960px; margin-bottom: 70px; }
h2 { margin-bottom: 24px; font: 700 clamp(43px, 6vw, 86px)/.93 var(--serif); letter-spacing: -.055em; }
.ledger { border-top: 2px solid var(--ink); }
.ledger-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 130px;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--ink);
  align-items: start;
}
.ledger-no { color: var(--burgundy); font: italic 700 30px/1 var(--serif); }
.ledger-row h3 { margin-bottom: 7px; font: 700 28px/1 var(--serif); }
.ledger-row p { max-width: 760px; margin-bottom: 0; color: var(--muted); }
.ledger-code { padding-top: 6px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-align: right; }
.margin-note {
  width: min(340px, 82%);
  margin: 54px 0 0 auto;
  padding: 24px 28px 25px;
  border-left: 7px solid var(--burgundy);
  background: #e2c765;
  box-shadow: 7px 7px 0 rgba(24,32,29,.12);
  transform: rotate(-1deg);
}
.margin-note strong { font-size: 10px; letter-spacing: .15em; }
.margin-note p { margin: 9px 0 0; font: italic 20px/1.25 var(--serif); }

.memo-section {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(500px, 1.3fr);
  gap: clamp(50px, 8vw, 140px);
  align-items: center;
  color: var(--paper);
  background: var(--blue-dark);
  border-block: 10px solid var(--gold);
}
.memo-intro { align-self: start; position: sticky; top: 40px; }
.memo-intro .eyebrow { color: #e6bf5b; }
.memo-intro > p:not(.eyebrow) { max-width: 470px; color: #cbd3d3; font: 18px/1.5 var(--serif); }
.role-picker { display: grid; gap: 9px; margin-top: 35px; }
.role-chip {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(242,234,216,.45);
  color: var(--paper);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: left;
  cursor: pointer;
}
.role-chip:hover, .role-chip.is-active { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.memo-wrap { position: relative; padding-left: 26px; }
.binder-edge {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 70px;
  bottom: 70px;
  width: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.binder-edge span { height: 7px; border: 2px solid #bab19e; background: #343630; box-shadow: -3px 3px 0 rgba(0,0,0,.3); }
.memo-paper {
  position: relative;
  min-height: 780px;
  padding: clamp(34px, 5vw, 70px);
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 64px, rgba(121,47,45,.13) 65px, transparent 66px),
    repeating-linear-gradient(var(--paper) 0, var(--paper) 31px, rgba(23,62,115,.09) 32px);
  box-shadow: 18px 22px 0 rgba(0,0,0,.25);
  transform: rotate(.45deg);
  transition: transform .25s ease;
}
.memo-paper.is-approved { transform: rotate(-.35deg); }
.memo-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 3px solid var(--ink); }
.memo-head > div { display: grid; }
.memo-head span, .memo-head b { font-size: 12px; letter-spacing: .14em; }
.memo-head small { color: var(--muted); font: italic 13px/1.4 var(--serif); }
.memo-meta { margin: 30px 0; border-block: 1px solid var(--ink); }
.memo-meta div { display: grid; grid-template-columns: 90px 1fr; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.memo-meta div:last-child { border-bottom: 0; }
.memo-meta dt { color: var(--burgundy); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.memo-meta dd { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.memo-body { font: 17px/1.65 var(--serif); }
.memo-body em { color: var(--burgundy); font-weight: 700; }
.memo-body ul { list-style: square; padding-left: 23px; }
.memo-signature { display: grid; max-width: 260px; margin-top: 34px; }
.memo-signature label { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.memo-signature label span, .memo-signature small { color: var(--muted); }
.memo-signature input {
  width: 100%;
  margin-top: 7px;
  padding: 11px 0 7px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: none;
  color: var(--blue);
  background: transparent;
  font: italic 700 26px/1 var(--serif);
  text-transform: uppercase;
}
.memo-signature input:focus { border-color: var(--gold); }
.approve-button {
  margin-top: 28px;
  padding: 15px 18px;
  border: 2px solid var(--ink);
  color: white;
  background: var(--burgundy);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  cursor: pointer;
}
.approve-button:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.memo-stamp {
  position: absolute;
  right: clamp(28px, 5vw, 70px);
  bottom: 90px;
  display: grid;
  min-width: 190px;
  padding: 9px 14px;
  border: 4px double var(--burgundy);
  color: var(--burgundy);
  text-align: center;
  transform: rotate(-11deg) scale(1.5);
  opacity: 0;
  transition: opacity .18s ease, transform .32s cubic-bezier(.2,.9,.2,1.3);
}
.memo-stamp b { font: 900 24px/.9 var(--sans); letter-spacing: .12em; }
.memo-stamp span { margin-top: 5px; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.memo-paper.is-approved .memo-stamp { opacity: .88; transform: rotate(-7deg) scale(1); }
.memo-footnote { position: absolute; left: clamp(34px, 5vw, 70px); right: clamp(34px, 5vw, 70px); bottom: 24px; color: var(--muted); font-size: 9px; letter-spacing: .05em; }

.section-heading.compact { margin-bottom: 45px; }
.minutes-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.minutes-grid article { min-height: 250px; padding: 30px; border-right: 1px solid var(--ink); }
.minutes-grid article:last-child { border-right: 0; }
.decision { display: inline-block; margin-bottom: 55px; padding: 4px 7px; color: var(--paper); background: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.minutes-grid article:last-child .decision { background: var(--burgundy); }
.minutes-grid h3 { margin-bottom: 10px; font: 700 28px/1 var(--serif); }
.minutes-grid p { color: var(--muted); }
.closing-desk {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 100px;
  padding: 55px;
  color: white;
  background: var(--green);
  box-shadow: 12px 12px 0 var(--ink);
}
.closing-desk .eyebrow { color: #e6bf5b; }
.closing-desk h2 { margin: 0; }
.closing-actions { display: grid; gap: 20px; justify-items: end; }
.closing-actions .btn-primary { background: var(--gold); color: var(--ink); }
.text-link { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-decoration: none; border-bottom: 1px solid currentColor; cursor: pointer; }

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 620px) auto;
  gap: 40px;
  align-items: center;
  padding: 45px clamp(22px, 6vw, 96px);
  color: var(--paper);
  background: var(--ink);
}
.footer-brand .brand-mark { border-color: var(--paper); box-shadow: 3px 3px 0 var(--paper); color: var(--ink); }
.footer-brand .brand-copy small { color: #aaa99f; }
.site-footer p { margin: 0; color: #aaa99f; font-size: 11px; }
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  transform: translate(-50%, 140%);
  transition: transform .22s ease;
}
.toast.is-visible { transform: translate(-50%, 0); }

@media (max-width: 1020px) {
  .desk-nav { display: none; }
  .market-status { margin-left: auto; }
  .hero { grid-template-columns: 1fr 1fr; gap: 35px; }
  .hero::after { display: none; }
  .memo-section { grid-template-columns: 1fr; }
  .memo-intro { position: static; max-width: 720px; }
  .role-picker { grid-template-columns: repeat(3, 1fr); }
  .closing-desk { grid-template-columns: 1fr; }
  .closing-actions { justify-items: start; }
}

@media (max-width: 760px) {
  .site-header { min-height: 76px; padding: 14px 20px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy small { display: none; }
  .market-status { font-size: 8px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 62px; }
  .hero-visual { grid-row: 1; width: 100%; max-width: 100%; min-width: 0; margin-bottom: 24px; }
  .hero-copy { grid-row: 2; }
  .hero-folio { display: none; }
  h1 { font-size: clamp(52px, 14.8vw, 72px); line-height: .84; }
  h1 em { display: block; font-size: .72em; letter-spacing: -.06em; }
  .hero-lede { font-size: 23px; }
  .hero-actions .btn { width: 100%; }
  .ca-block { display: grid; }
  .copy-button { min-height: 42px; border-left: 0; border-top: 1px solid var(--ink); }
  .section { padding-block: 82px; }
  .section-heading { margin-bottom: 40px; }
  .ledger-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .ledger-code { grid-column: 2; text-align: left; }
  .memo-section { padding-inline: 14px; }
  .memo-intro { padding-inline: 8px; }
  .role-picker { grid-template-columns: 1fr; }
  .memo-wrap { padding-left: 10px; }
  .binder-edge { display: none; }
  .memo-paper { min-height: 850px; padding: 30px 24px 70px; }
  .memo-head { display: grid; }
  .memo-meta div { grid-template-columns: 70px 1fr; }
  .memo-stamp { right: 24px; bottom: 105px; min-width: 150px; }
  .memo-stamp b { font-size: 19px; }
  .memo-footnote { left: 24px; right: 24px; }
  .minutes-grid { grid-template-columns: 1fr; }
  .minutes-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .minutes-grid article:last-child { border-bottom: 0; }
  .decision { margin-bottom: 28px; }
  .closing-desk { margin-top: 70px; padding: 34px 25px; }
  .site-footer { grid-template-columns: 1fr; }
}

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

