/* Coffer landing page. Stone ledger + seal wax, Source Serif 4 / IBM Plex.
   Every element's resting style is its finished state. Motion styles live under html.motion (set in <head>
   when the visitor allows motion, removed if main.js never runs), so nothing is hidden without scripts. */

:root {
  --ground: #F6F3EE;
  --recess: #E7E1D7;
  --stone: #ECE6DC;
  --surface: #FBF9F4;
  --paper: #FFFFFF;
  --ink: #1E1A17;
  --ink-2: #3E3A34;
  --muted: #5E564D;
  --lacquer: #2A221D;
  --lacquer-hi: #3A2F28;
  /* Seal wax: primary actions and sealed things. Same values as src/app/coffer.css; keep both in step. */
  --seal: #7A2B2E;
  --seal-deep: #5E2124;
  --seal-wash: #F1E3DF;
  --seal-bright: #D0716A; /* seal wax on dark grounds */
  --bronze: #A47A4A;
  --owed: #9A5B13;
  --fix: #A8482F;
  --on-dark: #F6F3EE;
  --on-dark-2: #CBC0B3;
  --on-dark-rule: rgba(246, 243, 238, .16);
  --rule: rgba(60, 48, 30, .14);
  --rule-2: rgba(60, 48, 30, .25);
  --wax-rule: rgba(122, 43, 46, .22);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--ink); text-decoration-color: var(--bronze); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lacquer); outline-offset: 3px; border-radius: 2px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; }
.h2-wide { max-width: none; }
@media (min-width: 1200px) { .h2-wide span { display: inline-block; } }
.body-l { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin-top: 22px; text-wrap: balance; }
.body-l.body-wide { max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: 7px; border: 1px solid transparent;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-seal { background: var(--seal); color: var(--surface); box-shadow: inset 0 -2px 0 rgba(0,0,0,.22), 0 10px 24px -12px rgba(122,43,46,.7); }
.btn-seal::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transition: transform .7s var(--ease);
}
.btn-seal:hover { background: var(--seal-deep); color: var(--surface); transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.22), 0 14px 28px -12px rgba(122,43,46,.8); }
.btn-seal:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(251,249,244,.6); color: var(--ink); border-color: var(--rule-2); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Coffer cells: the product's status squares ---------- */
.k { position: relative; display: inline-block; width: 16px; aspect-ratio: 1; border-radius: 2px; flex: none; }
.k::after { content: ""; position: absolute; border-radius: 1px; }
.k-s { background: var(--seal); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.k-s::after { inset: 24%; border: 1px solid rgba(255,255,255,.3); }
.k-n { background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(42,34,29,.6); }
.k-n::after { inset: 26%; border: 1px solid rgba(42,34,29,.28); }
.k-o { background: var(--recess); outline: 1.5px dashed var(--owed); outline-offset: -1.5px; }
.k-f { background: var(--recess); box-shadow: inset 0 0 0 1.5px var(--fix); }
.k-f::after { inset: 33%; border-radius: 50%; background: var(--fix); }
.k-open { background: var(--recess); box-shadow: inset 0 3px 5px -2px rgba(60,48,30,.4), inset 0 0 0 1px rgba(60,48,30,.12); }

@keyframes pop { 0% { transform: scale(.4); opacity: .3; } 55% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- Generic reveal ---------- */
.motion .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.motion .rise.in { opacity: 1; transform: none; }

/* ================= Top: nav, hero, ceiling ================= */
.top { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.nav, .hero { position: relative; z-index: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: block; flex: none; }
.brand-word { font: 600 28px/1 var(--serif); letter-spacing: -0.015em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--bronze); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px 72px; align-items: center;
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px);
}
.hero .lede { text-wrap: pretty; font-size: clamp(19px, 1.7vw, 22px); color: var(--ink-2); max-width: 40ch; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Headline: words rise out of a mask, one after another */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.words .w > span { display: inline-block; }
.motion .words .w > span { transform: translateY(105%); opacity: 0; transition: transform 1.1s var(--ease), opacity .6s ease; transition-delay: calc(var(--i) * 55ms + .1s); }
.motion .words.in .w > span { transform: none; opacity: 1; }

/* The close page card */
.close { perspective: 1400px; }
.close-card {
  position: relative; display: flex; flex-direction: column; padding: 24px 24px 18px; border-radius: 16px;
  background: linear-gradient(180deg, var(--paper), var(--surface));
  box-shadow: 0 0 0 1px var(--rule), 0 1px 0 rgba(255,255,255,.9) inset, 0 40px 80px -40px rgba(42,34,29,.45), 0 12px 24px -16px rgba(42,34,29,.25);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.motion .close-card { opacity: 0; transform: translateY(48px) rotateX(16deg) scale(.95); transition: opacity 1s var(--ease), transform 1.4s var(--ease); transition-delay: .35s; }
.motion .close.in .close-card { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.motion .close.settled .close-card { transition: transform .5s var(--ease); transition-delay: 0s; }
.close-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.close-tag { font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.close-tag b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.close-state { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--seal); }
.close-state .k { width: 10px; }
.motion .close:not(.ready) .close-state { opacity: 0; transform: translateY(6px) scale(.9); }
.close-state { transition: opacity .5s var(--ease), transform .6s var(--spring); }
.close-amt { font: 500 clamp(34px, 3.4vw, 44px)/1 var(--serif); font-family: var(--mono); letter-spacing: -.03em; margin: 18px 0 18px; font-variant-numeric: tabular-nums; }
.close-tray { padding: 12px; border-radius: 10px; background: var(--recess); box-shadow: inset 0 3px 8px -3px rgba(60,48,30,.35), inset 0 0 0 1px rgba(60,48,30,.08); }
.close-grid { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; }
.close-grid .k { width: 100%; border-radius: 3px; cursor: default; }
.close-grid .k-open { background: #DED6CA; }
.close-grid .k.pop { animation: pop .55s var(--spring) both; }
/* The one square being fixed appears last. */
.motion .close.ready .close-grid .k-f { animation: pop .55s var(--spring) both; }
.motion .close:not(.ready) .close-grid .k-f { animation: none; opacity: 0; }
.close-bar { height: 4px; border-radius: 2px; background: var(--recess); margin-top: 18px; overflow: hidden; }
.close-bar i { display: block; height: 100%; width: 90.5%; background: linear-gradient(90deg, var(--seal-deep), var(--seal)); border-radius: 2px; transform-origin: left; transition: transform 1.8s var(--ease); }
.motion .close:not(.counting) .close-bar i { transform: scaleX(0); }
.legend { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px 12px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend b { font-weight: 500; color: var(--ink); }
.legend .k { width: 12px; }
/* Sits at the bottom of the card; the card is stretched to a whole number of ceiling rows, and the slack goes here. */
.close-note { margin-top: auto; padding-top: 14px; text-align: right; font: 400 11.5px/1 var(--mono); color: var(--muted); }

/* The ceiling: a field of coffers that seal on their own. Built by main.js. */
.ceiling {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.09) 0%, rgba(0,0,0,.1) 52%, rgba(0,0,0,.5) 85%, rgba(0,0,0,.7) 100%),
                      linear-gradient(180deg, rgba(0,0,0,.5) 0%, #000 22%, #000 70%, rgba(0,0,0,.3) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.09) 0%, rgba(0,0,0,.1) 52%, rgba(0,0,0,.5) 85%, rgba(0,0,0,.7) 100%),
              linear-gradient(180deg, rgba(0,0,0,.5) 0%, #000 22%, #000 70%, rgba(0,0,0,.3) 100%);
  mask-composite: intersect;
}
.tile { position: absolute; display: block; overflow: visible; }
.tile .t-frame { fill: transparent; stroke: rgba(42, 34, 29, .30); stroke-width: 1.2; stroke-dasharray: 2.4 2.2; transition: fill .6s ease, stroke .6s ease; }
.tile .t-s1, .tile .t-s2, .tile .t-c {
  transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: scale(1.35);
  transition: opacity .5s ease, transform .7s var(--ease);
}
.tile .t-s1 { fill: none; stroke: rgba(42, 34, 29, .30); stroke-width: 1; }
.tile .t-s2 { fill: none; stroke: rgba(42, 34, 29, .28); stroke-width: .9; transition-delay: .08s; }
.tile .t-c { fill: rgba(42, 34, 29, .30); transition-delay: .16s; }
.tile.sealed .t-frame { fill: rgba(236, 230, 220, .9); stroke: rgba(42, 34, 29, .34); stroke-dasharray: none; }
.tile.sealed .t-s1, .tile.sealed .t-s2, .tile.sealed .t-c { opacity: 1; transform: scale(1); }
.tile.wax.sealed .t-frame { fill: rgba(122, 43, 46, .16); stroke: rgba(122, 43, 46, .5); }
.tile.wax.sealed .t-s1, .tile.wax.sealed .t-s2 { stroke: rgba(122, 43, 46, .5); }
.tile.wax.sealed .t-c { fill: rgba(122, 43, 46, .7); }

.brand-mark .m-s1, .brand-mark .m-s2, .brand-mark .m-c { transform-box: fill-box; transform-origin: center; animation: settle .9s var(--ease) both; }
.brand-mark .m-s2 { animation-delay: .1s; }
.brand-mark .m-c { animation-delay: .22s; }
@keyframes settle { from { opacity: 0; transform: scale(1.4); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .tile *, .close-grid .k { transition: none !important; animation: none !important; }
  .brand-mark * { animation: none !important; }
}

/* ================= Sections ================= */
.sec { padding: clamp(80px, 11vw, 144px) 0; }
#market { border-bottom: 1px solid var(--rule); }

/* ---------- The market funnel: many resellers and buyers, one manufacturer ---------- */
.funnel { margin-top: 64px; }
.funnel svg { display: block; width: 100%; height: auto; overflow: visible; }
.funnel .funnel-m { display: none; max-width: 420px; margin: 0 auto; }
.f-buylines path { fill: none; stroke: rgba(60,48,30,.1); stroke-width: 1; }
.f-reslines path { fill: none; stroke: rgba(122,43,46,.32); stroke-width: 1.4; }
.f-main { fill: none; stroke: var(--seal); stroke-width: 2.5; }
.f-lbl { font: 500 17px var(--serif); fill: var(--ink); }
.f-sub { font: 400 13px var(--sans); fill: var(--muted); }
.f-cnt { font: 500 13px var(--mono); fill: var(--seal); letter-spacing: .04em; }
.f-chip text { font: 600 16px var(--serif); fill: var(--surface); }
.f-chip { filter: drop-shadow(0 8px 14px rgba(122,43,46,.35)); }
html:not(.motion) .f-flow { display: none; }
/* Drawn in from the buyers toward the manufacturer, then the POs start to flow. */
.motion .funnel .f-draw { stroke-dasharray: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.motion .funnel:not(.in) .f-draw { stroke-dashoffset: 1; }
.motion .funnel .f-buylines .f-draw { transition-delay: .25s; }
.motion .funnel .f-reslines .f-draw { transition-delay: .75s; }
.motion .funnel .f-main { transition-delay: 1.45s; }
.motion .funnel .f-buy, .motion .funnel .f-res, .motion .funnel .f-one, .motion .funnel .f-txt { transition: opacity .8s var(--ease); }
.motion .funnel .f-res { transition-delay: .55s; }
.motion .funnel .f-one { transition-delay: 1.65s; }
.motion .funnel .f-txt { transition-delay: .4s; }
.motion .funnel:not(.in) :is(.f-buy, .f-res, .f-one, .f-txt) { opacity: 0; }
.motion .funnel .f-chip { transform-box: fill-box; transform-origin: center; transition: opacity .5s ease 1.25s, transform .7s var(--spring) 1.25s; }
.motion .funnel:not(.in) .f-chip { opacity: 0; transform: scale(.5); }
.motion .funnel .f-flow { opacity: 0; transition: opacity .8s ease; }
.motion .funnel.flowing .f-flow { opacity: 1; }

/* ---------- The problem: dark band ---------- */
.sec-dark { background: radial-gradient(120% 90% at 50% 0%, var(--lacquer-hi) 0%, var(--lacquer) 55%, #211B17 100%); color: var(--on-dark); }
.sec-dark h2 { color: var(--on-dark); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--on-dark-rule); }
.trio article { padding: 34px 32px 6px 0; min-width: 0; }
.trio article + article { padding-left: 32px; border-left: 1px solid var(--on-dark-rule); }
.trio h3 { font: italic 400 clamp(38px, 4.2vw, 56px)/1.05 var(--serif); letter-spacing: -.025em; color: var(--on-dark); margin-bottom: 18px; }
.trio p { color: var(--on-dark-2); font-size: 16.5px; max-width: 32ch; }
.strike { position: relative; display: inline-block; transition: color .8s ease; color: rgba(246,243,238,.5); }
.strike::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 3px; border-radius: 2px;
  background: var(--seal-bright); transform-origin: left; transition: transform .7s var(--ease);
}
.motion .trio article { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.motion .trio.in article { opacity: 1; transform: none; }
.motion .trio:not(.struck) .strike { color: var(--on-dark); }
.motion .trio:not(.struck) .strike::after { transform: scaleX(0); }
.motion .trio .strike, .motion .trio .strike::after { transition-delay: calc(var(--i) * 260ms); }
.trio article:nth-child(1) .strike { --i: 0; } .trio article:nth-child(2) .strike { --i: 1; } .trio article:nth-child(3) .strike { --i: 2; }

/* ---------- How it works ---------- */
.sec-how { padding-bottom: clamp(32px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-top: 64px; }
.step { position: relative; padding-top: 24px; min-width: 0; border-top: 1px solid var(--rule-2); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--seal); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 140ms + .1s); }
.step-n { display: block; font-size: 13px; color: var(--seal); margin-bottom: 16px; font-weight: 500; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 16px; }
.motion .steps:not(.in) .step::before { transform: scaleX(0); }
.motion .step { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 140ms); }
.motion .steps.in .step { opacity: 1; transform: none; }

/* ---------- Scenes: copy beside one piece of the product ---------- */
.scene { padding: clamp(72px, 10vw, 136px) 0; }
.scene-alt { background: var(--surface); border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px 88px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split-copy { min-width: 0; }
.split-copy h2 { max-width: 16ch; }

/* PO check */
.po { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; align-items: center; padding-bottom: 36px; }
.po-doc {
  position: relative; overflow: hidden; padding: 22px 24px 10px; border-radius: 12px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule), 0 36px 70px -36px rgba(42,34,29,.45), 0 10px 20px -14px rgba(42,34,29,.2);
}
.po-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 3px double var(--ink); font-size: 14px; }
.po-head .num { font-weight: 500; }
.po-from { color: var(--muted); }
.po-lines li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 10px; margin: 0 -10px; border-bottom: 1px solid var(--rule); font-size: 15.5px; border-radius: 4px; transition: background .5s ease, box-shadow .5s ease, color .5s ease; }
.po-lines li:last-child { border-bottom: 0; }
.po-lines li small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.po-lines li > .num { display: inline-flex; align-items: center; gap: 10px; }
.po-lines li:not(.bad) > .num::before { content: ""; width: 5px; height: 10px; border: solid var(--seal); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: opacity .4s ease, transform .5s var(--spring); }
.po-lines li.bad { background: rgba(168,72,47,.08); box-shadow: inset 3px 0 0 var(--fix); color: var(--fix); }
.motion .po-lines li:not(.ok) > .num::before { opacity: 0; transform: rotate(45deg) translateY(-2px) scale(.3); }
.motion .po-lines li.bad:not(.ok) { background: transparent; box-shadow: none; color: var(--ink); }
.po-scan {
  position: absolute; left: 0; right: 0; top: -80px; height: 80px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(164,122,74,0), rgba(164,122,74,.14));
  border-bottom: 2px solid var(--bronze); box-shadow: 0 12px 24px -8px rgba(164,122,74,.55);
}
.po.scanning .po-scan { animation: scan 2s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes scan { 0% { top: -80px; opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.po-checks li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink); transition: color .4s ease; }
.po-checks li:last-child { border-bottom: 0; }
.po-checks li.miss { color: var(--fix); font-weight: 500; }
.po-checks .k { width: 18px; }
.po-checks li.on .k { animation: pop .5s var(--spring) both; }
.motion .po-checks li:not(.on) { color: var(--muted); }
.motion .po-checks li:not(.on) .k { background: var(--recess); outline: 0; box-shadow: inset 0 3px 5px -2px rgba(60,48,30,.4), inset 0 0 0 1px rgba(60,48,30,.12); }
.motion .po-checks li:not(.on) .k::after { opacity: 0; }
.po-finding {
  position: absolute; left: 28px; bottom: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  padding: 14px 18px; border-radius: 10px; background: var(--ink); color: var(--on-dark); font-size: 15px;
  box-shadow: 0 20px 40px -18px rgba(30,26,23,.6); transition: opacity .6s var(--ease), transform .8s var(--spring);
}
.po-finding b { color: #EFA79C; font-weight: 500; font-size: 17px; }
.po-finding span { color: var(--on-dark-2); font-size: 13px; }
.motion .po:not(.found) .po-finding { opacity: 0; transform: translateY(18px) scale(.96); }

/* ---------- The seal ceremony: scrubbed by scroll ---------- */
.ceremony { position: relative; height: 340vh; background: radial-gradient(110% 70% at 70% 30%, var(--lacquer-hi) 0%, var(--lacquer) 50%, #1E1814 100%); color: var(--on-dark); }
.cer-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.cer-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px 64px; align-items: center; }
.cer-copy h2 { color: var(--on-dark); max-width: 14ch; }
.cer-copy .body-l { color: var(--on-dark-2); max-width: 40ch; }
.cer-stage { position: relative; height: min(600px, 74vh); --cs: min(270px, 34vh); }
.cer-glow { position: absolute; left: 50%; top: 46%; width: calc(var(--cs) * 2.6); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(208,96,88,.55), rgba(122,43,46,.2) 40%, transparent 68%); opacity: var(--glow, 1); pointer-events: none; }
.paper {
  --pw: calc(var(--cs) * .3);
  position: absolute; left: 50%; top: 46%; width: var(--pw); height: calc(var(--pw) * 1.28);
  padding: calc(var(--pw) * .14) calc(var(--pw) * .12);
  display: flex; flex-direction: column; gap: calc(var(--pw) * .08); border-radius: 4px; background: var(--surface);
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.05);
  transform: translate(-50%, -50%) scale(.2); opacity: 0; will-change: transform, opacity;
}
.paper i { display: block; height: calc(var(--pw) * .05); border-radius: 2px; background: var(--recess); flex: none; }
.paper i:first-child { width: 55%; background: #CFC5B8; height: calc(var(--pw) * .07); margin-bottom: calc(var(--pw) * .06); }
.paper i:nth-child(3) { width: 72%; }
.cer-coffer {
  position: absolute; left: 50%; top: 46%; width: var(--cs); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 20px; background: linear-gradient(180deg, #17120F, #2B231E);
  box-shadow: inset 0 0 0 1px rgba(246,243,238,.08), inset 0 2px 0 rgba(246,243,238,.06), 0 50px 90px -40px rgba(0,0,0,.8);
}
.cer-recess { position: absolute; inset: 9%; border-radius: 12px; background: linear-gradient(180deg, #0F0C0A, #2A221D); box-shadow: inset 0 10px 18px rgba(0,0,0,.7); }
.cer-recess span { position: absolute; border-radius: 8px; background: linear-gradient(180deg, #110D0B, #2E2520); box-shadow: inset 0 8px 14px rgba(0,0,0,.65); }
.cer-recess span:first-child { inset: 17%; }
.cer-recess span:last-child { inset: 36%; border-radius: 5px; }
.cer-lid {
  position: absolute; inset: 7%; border-radius: 13px; overflow: hidden;
  background: linear-gradient(180deg, #54453A, #382E26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 24px -10px rgba(0,0,0,.7);
}
.cer-lid::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #933A3D, var(--seal) 55%, #66252A); opacity: var(--wax, 1); }
.cer-lid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.26) 50%, transparent 65%); transform: translateX(-130%); }
.cer-lid.sheen::after { animation: sheen 1.3s var(--ease) forwards; }
@keyframes sheen { to { transform: translateX(130%); } }
.cer-lid span { position: absolute; border: 1.5px solid rgba(255,255,255,.22); border-radius: 6px; z-index: 1; }
.cer-lid span:first-child { inset: 15%; }
.cer-lid span:nth-child(2) { inset: 32%; border-radius: 3px; border-width: 1.2px; }
.cer-lid b { position: absolute; inset: 44%; background: var(--bronze); border-radius: 1px; z-index: 1; box-shadow: 0 0 12px rgba(164,122,74,.6); }
.cer-receipt {
  position: absolute; left: 50%; bottom: 0; display: grid; justify-items: center; gap: 4px; min-width: 210px;
  padding: 16px 26px 18px; border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); transform: translateX(-50%);
}
.r-label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--seal); }
.r-amt { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-top: 4px; }
.r-meta { font-size: 12.5px; color: var(--muted); }
/* Without motion the ceremony is a normal-height section showing the sealed coffer. */
html:not(.motion) .ceremony { height: auto; }
html:not(.motion) .cer-sticky { position: relative; height: auto; padding: clamp(80px, 11vw, 144px) 0; }

/* ---------- Report sheet ---------- */
.sheet { position: relative; border-radius: 12px; background: var(--paper); overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 36px 70px -36px rgba(42,34,29,.45), 0 10px 20px -14px rgba(42,34,29,.2); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--stone); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.sheet-head b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.stamp { font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--seal); padding: 7px 12px; border: 2px solid var(--seal); border-radius: 5px; transform: rotate(-7deg); background: rgba(251,249,244,.6); }
.motion .sheet:not(.filed) .stamp { opacity: 0; transform: rotate(-7deg) scale(2.2); }
.motion .sheet.filed .stamp { animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-16deg) scale(2.4); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-7deg) scale(1); } }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 360px; }
.sheet th { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 14px 20px 12px; border-bottom: 1px solid var(--rule); }
.sheet td { padding: 14px 20px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.sheet .r { text-align: right; }
.sheet em { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; margin-left: 8px; padding: 4px 7px; border-radius: 999px; vertical-align: 1px; }
.sheet .late td { background: #F8F0E2; }
.sheet .late em { color: var(--owed); background: rgba(154,91,19,.12); }
.sheet .adj td { color: var(--fix); }
.sheet .adj em { color: var(--fix); background: rgba(168,72,47,.1); }
.sheet tfoot td { border-bottom: 0; border-top: 3px double var(--ink); font-weight: 600; font-size: 16px; padding-top: 16px; padding-bottom: 18px; }
.sheet tfoot .num { font-size: 18px; }
.motion .sheet tbody td { opacity: 0; transform: translateX(-18px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.motion .sheet tbody tr:nth-child(1) td { transition-delay: .15s; } .motion .sheet tbody tr:nth-child(2) td { transition-delay: .3s; }
.motion .sheet tbody tr:nth-child(3) td { transition-delay: .45s; } .motion .sheet tbody tr:nth-child(4) td { transition-delay: .6s; }
.motion .sheet tbody tr:nth-child(5) td { transition-delay: .75s; }
.motion .sheet.in tbody td { opacity: 1; transform: none; }

.control { display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule-2); font-size: 15.5px; color: var(--ink-2); max-width: 46ch; }
.control svg { flex: none; margin-top: 2px; }
.control strong { color: var(--ink); font-weight: 600; }

/* ---------- Who it's for: seal-wax wash ---------- */
.sec-wash { background: var(--seal-wash); }
.audiences { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--wax-rule); }
.aud { padding: 34px 40px 0 0; min-width: 0; }
.aud + .aud { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--wax-rule); }
.aud-tag { font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--seal); margin-bottom: 16px; }
.aud h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin-bottom: 22px; max-width: 20ch; }
.aud li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid rgba(122,43,46,.12); color: var(--ink-2); font-size: 16px; }
.aud li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; border-radius: 2px; background: var(--seal); }
.privacy {
  margin-top: 56px; padding: 28px 32px; border-radius: 14px; background: var(--lacquer); color: var(--on-dark);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 48px; align-items: center;
}
.privacy h3 { color: var(--on-dark); font-size: 24px; }
.privacy ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.privacy li { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--on-dark); padding-left: 20px; border-left: 1px solid var(--on-dark-rule); }

/* ---------- Status ---------- */
#status { border-bottom: 1px solid var(--rule); }
.status { margin-top: 44px; border-top: 1px solid var(--rule); }
.status > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.status dt { font: 500 14px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--seal); }
.status dd { color: var(--ink-2); }

/* ---------- Sign-up: deep seal-wax band ---------- */
.sec-cta {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23F6F3EE' stroke-opacity='.07'%3E%3Crect x='7' y='7' width='58' height='58' rx='4'/%3E%3Crect x='17' y='17' width='38' height='38' rx='1.5'/%3E%3Crect x='26' y='26' width='20' height='20'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 72px 72px,
    radial-gradient(90% 120% at 15% 0%, #7E2D31 0%, var(--seal-deep) 55%, #4A1A1D 100%);
}
.sec-cta h2 { color: var(--on-dark); }
.sec-cta .body-l { color: #E8D3CC; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px 80px; align-items: center; }
.form { position: relative; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
input[type=email], input[type=text], textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 7px; padding: 12px 13px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px rgba(122,43,46,.14); }
input[aria-invalid=true] { border-color: var(--fix); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note.ok { color: var(--ink); }
.form-note.err { color: var(--fix); }
.form-sealed { display: none; justify-items: center; padding-top: 8px; }
.form.done .field, .form.done button { display: none; }
.form.done .form-sealed { display: grid; }
.form.done .form-sealed svg { animation: settle-big .9s var(--spring) both; }
.form.done .form-note { font: 500 22px/1.3 var(--serif); text-align: center; padding-bottom: 8px; }
@keyframes settle-big { from { opacity: 0; transform: scale(1.8) rotate(-12deg); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--serif); }
.foot-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ================= Responsive ================= */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .close { max-width: 540px; }
  .split, .split.rev, .cta-grid { grid-template-columns: 1fr; }
  .split.rev .sheet { order: 2; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .cer-grid { grid-template-columns: 1fr; gap: 8px; }
  .cer-copy h2 { max-width: 18ch; font-size: clamp(28px, 6vw, 40px); }
  .cer-copy .body-l { font-size: 17px; margin-top: 12px; }
  .cer-stage { height: min(460px, 56vh); --cs: min(220px, 26vh); }
  .privacy { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .funnel { margin-top: 44px; }
  .funnel .funnel-d { display: none; }
  .funnel .funnel-m { display: block; }
  .trio { grid-template-columns: 1fr; }
  .trio article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--on-dark-rule); }
  .trio article { padding: 26px 0 22px; }
  .steps { grid-template-columns: 1fr; }
  .po { grid-template-columns: 1fr; gap: 20px; padding-bottom: 0; }
  .po-checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .po-checks li:nth-last-child(2) { border-bottom: 0; }
  .po-finding { position: relative; left: auto; bottom: auto; }
  .audiences { grid-template-columns: 1fr; }
  .aud + .aud { padding-left: 0; border-left: 0; border-top: 1px solid var(--wax-rule); margin-top: 32px; }
  .aud { padding-right: 0; }
  .privacy { padding: 22px; }
  .privacy ul { grid-template-columns: 1fr; }
  .status > div { grid-template-columns: 1fr; gap: 4px; }
  .form { padding: 24px; }
  .legend { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 24px; }
  .close-card { padding: 20px 18px 18px; }
  .close-grid { gap: 4px; }
  .ceiling {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.12) 70%, rgba(0,0,0,.06));
    mask-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.12) 70%, rgba(0,0,0,.06));
  }
  .ceremony { height: 280vh; }
}
@media (max-width: 420px) {
  .btn-sm { padding: 0 12px; font-size: 14px; }
  .brand-word { font-size: 24px; }
  .sheet td, .sheet th { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 1021px) and (max-width: 1180px) {
  .split { column-gap: 48px; }
  .po { grid-template-columns: minmax(0, 1fr) 170px; gap: 20px; }
}
