/* ==========================================================================
   Proof Homes — "Paper & Proof"
   One idea: proof is the product. The page is a dossier, not a brochure.
   Warm paper, near-black ink, and a green that is only ever used to mean
   "verified". Photography carries the warmth; the type stays precise.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper:      #EFEDE7;
  --paper-2:    #E5E2D9;
  --card:       #FBFAF7;
  --ink:        #15181A;
  --ink-2:      #4B524F;
  --muted:      #7B827E;
  --rule:       #D6D2C7;
  --rule-2:     #BFBAAC;
  --verified:   #1B5E43;
  --verified-bg:#E1EBE4;
  --signal:     #A0611B;
  --signal-bg:  #F2E7D8;
  --field:      #14181B;
  --field-2:    #1D2327;
  --field-ink:  #EDEBE4;
  --field-muted:#939C98;
  --field-rule: #2C3438;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --measure: 62ch;

  --e-out: cubic-bezier(.16,1,.3,1);
  --e-io:  cubic-bezier(.65,.05,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#101315; --paper-2:#171B1E; --card:#1A1F22;
    --ink:#EFEDE6; --ink-2:#BFC5C1; --muted:#8B938F;
    --rule:#262D30; --rule-2:#38423F;
    --verified:#4FB98B; --verified-bg:#13291F;
    --signal:#D69A4E; --signal-bg:#2A2114;
    --field:#080A0B; --field-2:#12171A; --field-ink:#EFEDE6;
    --field-muted:#8B938F; --field-rule:#232A2E;
  }
}
:root[data-theme="dark"] {
  --paper:#101315; --paper-2:#171B1E; --card:#1A1F22;
  --ink:#EFEDE6; --ink-2:#BFC5C1; --muted:#8B938F;
  --rule:#262D30; --rule-2:#38423F;
  --verified:#4FB98B; --verified-bg:#13291F;
  --signal:#D69A4E; --signal-bg:#2A2114;
  --field:#080A0B; --field-2:#12171A; --field-ink:#EFEDE6;
  --field-muted:#8B938F; --field-rule:#232A2E;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--verified); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }

.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip { position:absolute; left:-999px; top:0; z-index:200; background:var(--ink); color:var(--paper); padding:12px 18px; font-family:var(--mono); font-size:13px; }
.skip:focus { left:12px; top:12px; }

/* ---------- type ---------- */
.d1, .d2, .d3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 100, "opsz" 40;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
  text-wrap: balance;
}
.d1 { font-size: clamp(44px, 9.2vw, 148px); letter-spacing: -.045em; }
.d2 { font-size: clamp(34px, 5.4vw, 78px); line-height: .98; }
.d3 { font-size: clamp(26px, 3.1vw, 44px); line-height: 1.05; letter-spacing: -.028em; }

.lede { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--rule-2); flex: none; }
.eyebrow--c::after { content:""; flex:1; height:1px; background: var(--rule); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- masthead ---------- */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gut);
  mix-blend-mode: difference; color: #fff;
  transition: background .4s var(--e-out), padding .4s var(--e-out);
}
.mast.is-solid {
  mix-blend-mode: normal; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
  padding-block: 11px;
}
.wordmark { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.wordmark b {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: -.045em; font-variation-settings: "wdth" 92;
}
.wordmark span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.mast nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.mast nav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase; text-decoration: none; opacity: .8; }
.mast nav a:hover { opacity: 1; }
@media (max-width: 720px) { .mast nav a.hide-s { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 13px 20px; border: 1px solid currentColor; border-radius: 2px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--e-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .42s var(--e-out);
}
.btn:hover::after { transform: scaleY(1); }
.btn:hover { color: var(--paper); }
.btn--fill { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--fill::after { background: var(--verified); }
.btn--fill:hover { color: #fff; }
.btn--light { border-color: currentColor; }
.btn--light::after { background: var(--field-ink); }
.btn--light:hover { color: var(--field); }
.btn__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- photo primitive ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__lqip {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(18px); transform: scale(1.1); opacity: 1;
  transition: opacity .7s var(--e-out);
}
.photo.is-loaded .photo__lqip { opacity: 0; }
.photo--missing { background: repeating-linear-gradient(45deg, var(--paper-2) 0 10px, var(--paper) 10px 20px); aspect-ratio: 3/2; }
.photo--fill { position: absolute; inset: 0; }
.photo--fill img { transform: scale(1.12); will-change: transform; }

/* ==========================================================================
   1 — hero
   ========================================================================== */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: -8% 0 -8% 0; }
/* Two scrims, not one. The vertical gradient seats the copy on the floor of the
   frame; the horizontal one guarantees ground under the headline even when the
   photograph blows out to white on the right, which this one does. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,10,12,.72) 0%, rgba(6,10,12,.40) 30%, rgba(6,10,12,.06) 62%, rgba(6,10,12,0) 100%),
    linear-gradient(to top, rgba(6,10,12,.74) 0%, rgba(6,10,12,.26) 38%, rgba(6,10,12,.02) 70%, rgba(6,10,12,.26) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-block: clamp(40px, 8vh, 92px) clamp(30px, 5vh, 56px); color: #fff; }
.hero .d1 { color: #fff; max-width: 15ch; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.hero__sub {
  margin-top: clamp(22px, 3.4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 48px); align-items: end;
}
.hero__sub p { color: rgba(255,255,255,.9); max-width: 48ch; font-size: clamp(16.5px, 1.28vw, 20px); margin: 0; }
.hero__cue { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.72); white-space: nowrap; }
.hero__cue i { display:block; width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent); }
@media (max-width: 780px) { .hero__sub { grid-template-columns: 1fr; } .hero__cue { display: none; } }

/* ---------- ledger strip ---------- */
.ledger { border-block: 1px solid var(--rule); background: var(--paper); }
.ledger__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger__cell { padding: clamp(22px, 3vw, 38px) clamp(14px, 2vw, 28px); border-left: 1px solid var(--rule); }
.ledger__cell:first-child { border-left: 0; padding-left: 0; }
.ledger dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.ledger dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.4vw, 50px); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.ledger dd small { font-size: .44em; letter-spacing: -.01em; color: var(--muted); margin-left: .2em; }
@media (max-width: 820px) {
  .ledger__grid { grid-template-columns: repeat(2, 1fr); }
  .ledger__cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger__cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* ==========================================================================
   2 — sections
   ========================================================================== */
section { position: relative; }
.band { padding-block: clamp(72px, 12vh, 168px); }
.band--tight { padding-block: clamp(52px, 8vh, 104px); }
.band--field { background: var(--field); color: var(--field-ink); }
.band--field .eyebrow { color: var(--field-muted); }
.band--field .eyebrow::before { background: var(--field-rule); }
.band--field .lede, .band--field p { color: var(--field-muted); }
.band--field strong { color: var(--field-ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }

/* ---------- problem: oversized statement lines ---------- */
.stmt { max-width: 24ch; }
.stmt__l { display: block; overflow: hidden; }
.stmt__l > span { display: block; }
.stmt em { font-family: var(--body); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.stmt .dim { color: var(--muted); }

.notes { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: clamp(30px, 5vw, 56px); }
.notes > div { background: var(--paper); padding: 20px 22px; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.notes .n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); padding-top: 4px; }
.notes b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin-bottom: 3px; }
.notes p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: none; }

/* ==========================================================================
   3 — the four checks  (the centrepiece)
   ========================================================================== */
.checks { background: var(--field); color: var(--field-ink); overflow: clip; }
.checks__pin { min-height: 100svh; display: flex; align-items: center; padding-block: clamp(56px, 9vh, 96px); }
.checks__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 76px); width: 100%; align-items: center; }
@media (max-width: 940px) { .checks__grid { grid-template-columns: 1fr; gap: 34px; } .checks__pin { min-height: auto; } }

.checks__head .d2 { color: var(--field-ink); }
.checks__count { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--field-muted); margin-top: 26px; }
.checks__count b { color: var(--verified); font-weight: 500; }

.docs { display: grid; gap: 12px; }
.doc {
  display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: clamp(14px, 2vw, 26px);
  align-items: center; padding: clamp(16px, 2.2vw, 26px) clamp(16px, 2.4vw, 30px);
  background: var(--field-2); border: 1px solid var(--field-rule); border-radius: 3px;
  position: relative; overflow: hidden;
}
.doc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--verified); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--e-out);
}
.doc.is-on::before { transform: scaleY(1); }
.doc__no { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--field-muted); }
.doc__name { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.7vw, 23px); letter-spacing: -.025em; line-height: 1.15; }
.doc__what { font-size: 14.5px; color: var(--field-muted); margin: 4px 0 0; max-width: 46ch; line-height: 1.45; }
.doc__stamp {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--verified); border: 1px solid currentColor; border-radius: 2px;
  padding: 7px 11px; white-space: nowrap;
  opacity: 0; transform: translateY(6px) rotate(-2deg);
  transition: opacity .38s var(--e-out), transform .38s var(--e-out);
}
.doc.is-on .doc__stamp { opacity: 1; transform: none; }
.doc__tick { width: 13px; height: 13px; flex: none; }
.doc__tick path { stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .45s var(--e-out) .1s; }
.doc.is-on .doc__tick path { stroke-dashoffset: 0; }
@media (max-width: 620px) {
  .doc { grid-template-columns: 34px 1fr; row-gap: 12px; }
  .doc__stamp { grid-column: 2; justify-self: start; }
}

.checks__foot { margin-top: clamp(26px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--field-rule); display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: baseline; }
.checks__foot p { margin: 0; font-size: 15px; color: var(--field-muted); max-width: 58ch; }

/* ==========================================================================
   4 — how it works
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: clamp(34px, 5vw, 60px); }
.step { background: var(--paper); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.step__n { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--verified); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink-2); max-width: none; }
.step__pic { margin-top: auto; padding-top: 20px; }
.step__pic .photo { aspect-ratio: 3/2; border-radius: 2px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   5 — price / receipt
   ========================================================================== */
.receipt {
  background: var(--card); border: 1px solid var(--rule); border-radius: 3px;
  padding: clamp(24px, 3vw, 40px); max-width: 480px; box-shadow: 0 1px 2px rgba(20,24,26,.04), 0 24px 60px -40px rgba(20,24,26,.4);
}
.receipt__h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--rule-2); }
.receipt__h span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.receipt__row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.receipt__row:last-of-type { border-bottom: 0; }
.receipt__row span:first-child { color: var(--ink-2); }
.receipt__row span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt__row.is-zero span:last-child { color: var(--verified); }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-top: 8px; padding-top: 18px; border-top: 2px solid var(--ink); }
.receipt__total b { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.receipt__total span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.receipt__note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); max-width: none; }

/* ==========================================================================
   6 — what we're not
   ========================================================================== */
.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px); margin-top: clamp(34px, 5vw, 58px); }
.not { border-top: 1px solid var(--field-rule); padding-top: 20px; }
.not h3 { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.028em; line-height: 1.12; margin: 0 0 10px; color: var(--field-ink); }
.not h3 s { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.not p { margin: 0; font-size: 15px; color: var(--field-muted); max-width: none; }
@media (max-width: 860px) { .nots { grid-template-columns: 1fr; } }

/* ==========================================================================
   7 — the homes (gallery)
   ========================================================================== */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(34px, 5vw, 60px); }
.gal .photo { border-radius: 2px; overflow: hidden; }
.gal .photo img { transition: transform 1.1s var(--e-out); }
.gal .photo:hover img { transform: scale(1.035); }
.g-a { grid-column: span 7; aspect-ratio: 3/2; }
.g-b { grid-column: span 5; aspect-ratio: 1; }
.g-c { grid-column: span 4; aspect-ratio: 1; }
.g-d { grid-column: span 4; aspect-ratio: 1; }
.g-e { grid-column: span 4; aspect-ratio: 1; }
.g-f { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 820px) {
  .g-a, .g-b { grid-column: span 12; }
  .g-c, .g-d, .g-e { grid-column: span 4; }
  .g-f { aspect-ratio: 16/9; }
}
.cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ==========================================================================
   8 — who runs this
   ========================================================================== */
.who { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr; } }
.card-id { background: var(--card); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.card-id__h { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--paper-2); }
.card-id__h span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card-id dl { margin: 0; padding: 4px 20px 18px; }
.card-id div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.card-id div:last-child { border-bottom: 0; }
.card-id dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.card-id dd { margin: 0; font-size: 15.5px; }
.card-id dd a { text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.card-id dd a:hover { text-decoration-color: var(--verified); }

/* ==========================================================================
   9 — CTA
   ========================================================================== */
.cta { text-align: center; }
.cta .d2 { max-width: 18ch; margin-inline: auto; }
.cta__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(26px, 4vw, 42px); }
.cta__fine { margin: 22px auto 0; font-size: 14px; color: var(--field-muted); max-width: 52ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: clamp(34px, 5vw, 60px) 34px; font-size: 14px; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 22px 48px; justify-content: space-between; align-items: flex-start; }
.foot a { text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.foot a:hover { text-decoration-color: var(--verified); }
.foot__legal { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); line-height: 1.8; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }

/* ---------- credits page ---------- */
.creds { max-width: 900px; }
.creds table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 28px; }
.creds th, .creds td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.creds thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper-2); }
.creds td:first-child { font-family: var(--mono); font-size: 12px; white-space: nowrap; }

/* ---------- motion staging (JS sets these; CSS never hides content on its own) ---------- */
.js .r-up { will-change: transform, opacity; }
.js .r-line > span { will-change: transform; }
