/* ==========================================================================
   $BRAVEHEART
   A gallery wall in a dark room. Near-black warm backdrop sampled from the
   photographer's seamless, one warm light, enormous condensed type, and a
   great deal of empty space. Nothing is rounded. Nothing glows.
   The only bright thing on the page is the dog.
   ========================================================================== */

/* ---------- self-hosted type, no CDN dependency ---------- */
@font-face { font-family:'Anton';           src:url('assets/fonts/Anton-Regular.ttf') format('truetype');        font-weight:400;     font-display:swap; }
@font-face { font-family:'Newsreader';      src:url('assets/fonts/Newsreader.ttf') format('truetype');           font-weight:200 800; font-display:swap; }
@font-face { font-family:'JetBrains Mono';  src:url('assets/fonts/JetBrainsMono.ttf') format('truetype');        font-weight:100 800; font-display:swap; }
/* Three families, and no fourth: Anton shouts, Newsreader feels, mono counts. */

:root {
  /* surfaces */
  --bg:        #0E0B09;
  --surface:   #16110D;
  --surface-2: #1D160F;
  --hairline:  #2A2119;

  /* ink */
  --bone:      #F2E9D8;
  --dim:       #8F8474;
  --dimmer:    #6B6255;

  /* accents */
  --gold:      #D2A559;
  --gold-hi:   #E8C689;
  --gold-deep: #7A5C2E;
  --refusal:   #D25A50;   /* the word UNMEASURED. Twice on the whole site. */
  --teal:      #4E8C82;   /* STATUS: HOUSED, and the rescue link.          */

  /* type */
  --display: 'Anton', 'Arial Narrow', 'Haettenschweiler', sans-serif;
  --body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --measure: 62ch;
  --wrap: 1220px;
  --gutter: clamp(22px, 5vw, 64px);
  --rule: 1px;
  --ease: cubic-bezier(.22,1,.36,1);
  --dur-enter: 700ms;
  --dur-ui: 200ms;
}

*,*::before,*::after { box-sizing: border-box; border-radius: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--dim);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
::selection { background: var(--gold); color: #17110A; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-weight: 400;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 20px;
}
h1,h2,h3 { font-weight: 400; margin: 0; }
h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.5vw, 5.5rem);
  line-height: .88; letter-spacing: -.02em; text-transform: uppercase;
  color: var(--bone); margin-bottom: 30px; max-width: 20ch;
}
h3 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
  color: var(--bone); margin-bottom: 12px;
}
p { margin: 0 0 22px; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lede { font-size: 22px; line-height: 1.58; color: var(--bone); }
strong { color: var(--bone); font-weight: 600; }
em { font-style: italic; }
.gold { color: var(--gold); }
.quiet { color: var(--dimmer); }

section { padding-block: clamp(88px, 11vw, 128px); position: relative; }
.hair { height: var(--rule); background: var(--hairline); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--mono); font-weight: 700;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 26px; cursor: pointer; background: transparent;
  border: 1px solid var(--hairline); color: var(--bone);
  transition: border-color var(--dur-ui) var(--ease),
              color var(--dur-ui) var(--ease),
              background var(--dur-ui) var(--ease);
}
.btn:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(210,165,89,.06); }
.btn-primary {
  border: 2px solid var(--gold); color: var(--gold-hi);
  background: rgba(210,165,89,.08); font-size: 14px; padding: 18px 32px;
}
.btn-primary:hover { background: var(--gold); color: #17110A; border-color: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: 12px; }

/* ---------- the floor line (the one scripted thing on the site) ---------- */
.floorline {
  position: fixed; left: 0; bottom: 26px; z-index: 60;
  width: 56px; pointer-events: none;
  transition: bottom 120ms linear;
}
.floorline i { display: block; height: 2px; background: var(--gold); }
.floorline span {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); padding: 0 0 5px 4px;
}
@media (max-width: 1180px) { .floorline { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(14,11,9,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--rule) solid var(--hairline);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { width: 34px; height: 34px; }
.nav-brand b {
  font-family: var(--display); font-weight: 400; font-size: 20px;
  letter-spacing: -.01em; color: var(--bone); text-transform: uppercase;
}
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(78,140,130,.4); padding: 5px 9px; white-space: nowrap;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
.nav-links a:hover { color: var(--gold); }
@media (max-width: 1000px) { .nav-links { display: none; } }
@media (max-width: 1000px) { .nav .btn { margin-left: auto; } }
@media (max-width: 560px)  { .nav .chip { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(34px, 5vw, 56px) 0; }
.hero-in {
  display: grid; grid-template-columns: 1fr .78fr;
  gap: clamp(24px, 4vw, 56px); align-items: end; margin-top: 34px;
}
/* grid children default to min-width:auto, which lets the unbreakable
   wordmark dictate column widths. Reset it. */
.hero-in > * { min-width: 0; }
.hero-copy { padding-bottom: 56px; }
@media (max-width: 940px) {
  .hero-in { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-bottom: 34px; }
}

.hero-wordmark {
  font-family: var(--display);
  font-size: clamp(3rem, 13vw, 10.5rem);
  line-height: .84; letter-spacing: -.025em; text-transform: uppercase;
  color: var(--bone); margin: 0;
}
.hero-tagline {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(15px, 2.5vw, 30px);
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  margin: 18px 0 0;
}
.hero-hook {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.02; letter-spacing: -.015em; text-transform: uppercase;
  color: var(--bone); margin: 30px 0 18px; max-width: 16ch;
}
.hero-hook em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 18px; color: var(--dim); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-cta .sub-cta { font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.hero-cta .sub-cta a { color: var(--dim); text-decoration: underline; text-underline-offset: 4px; }
.hero-cta .sub-cta a:hover { color: var(--gold); }

.hero-art { position: relative; margin-bottom: -2px; }
.hero-art img { width: 100%; }
@media (max-width: 940px) { .hero-art { max-width: 420px; margin-inline: auto; } }

/* the hero's own floor: the rule the photograph rests on */
.hero-floor { position: relative; margin-top: 0; }
.hero-floor i { display: block; height: 2px; background: var(--gold); }
.hero-floor span {
  position: absolute; left: 0; bottom: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim);
}

/* ---------- contract address ---------- */
.ca {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 12px 14px; margin-top: 26px; max-width: 620px;
}
.ca-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ca-val {
  font-family: var(--mono); font-size: 12px; color: var(--bone);
  flex: 1; min-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca-val[data-pending] { color: var(--dimmer); }
.ca-copy {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--hairline); color: var(--dim);
  padding: 9px 14px; cursor: pointer; white-space: nowrap;
  transition: border-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
.ca-copy:hover { border-color: var(--gold); color: var(--gold-hi); }
.ca-copy.done { border-color: var(--teal); color: var(--teal); }

/* ---------- marquee ---------- */
.marquee { border-block: var(--rule) solid var(--hairline); overflow: hidden; padding-block: 14px; background: var(--surface); }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-track span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
  padding-inline: 22px; display: flex; align-items: center; gap: 22px; white-space: nowrap;
}
.marquee-track span::after { content: ''; width: 3px; height: 3px; background: var(--gold); flex: none; }

/* ---------- stat rail ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--rule); background: var(--hairline); border: var(--rule) solid var(--hairline); }
@media (min-width: 700px)  { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat { background: var(--surface); padding: 26px 18px; }
.stat-v {
  font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1; letter-spacing: -.02em; color: var(--gold); margin-bottom: 10px;
}
.stat.refuse .stat-v { color: var(--refusal); font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.stat-l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); line-height: 1.5; }

/* ---------- prose + photo layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split.tight { align-items: start; }
figure { margin: 0; }
figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 12px; }

/* ---------- the ledger (the screenshot object) ---------- */
.ledger-wrap { overflow-x: auto; }
/* One grid for both columns so every row is shared and the dashes stay
   level with the facts. It must never stack — the emptiness is the joke. */
.ledger {
  display: grid; grid-template-columns: 58fr 42fr;
  column-gap: clamp(14px, 4vw, 56px); min-width: 300px; align-items: stretch;
}
.ledger-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); padding-bottom: 12px; border-bottom: 1px solid var(--gold-deep);
  align-self: end;
}
.row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--gold-deep); padding: 13px 0;
  font-family: var(--mono); font-size: clamp(10px, 1.15vw, 13px);
  letter-spacing: .05em; text-transform: uppercase;
}
.row .k { color: var(--dim); }
.row .v { color: var(--bone); text-align: right; }
.row .v.housed { color: var(--teal); }
.row.empty { justify-content: flex-start; }
.row.empty .k { color: var(--dimmer); }

/* ---------- the floor section (zero motion, by design) ---------- */
.floor-sec { background: var(--surface); border-block: var(--rule) solid var(--hairline); }
.floor-quote {
  font-family: var(--display); font-size: clamp(2rem, 5.4vw, 4.4rem);
  line-height: .94; letter-spacing: -.02em; text-transform: uppercase;
  color: var(--bone); margin: 0 0 28px; max-width: 14ch;
}
/* the caliper: a dimension line that refuses to print a number */
.caliper { margin-top: 16px; }
.caliper-bar { position: relative; height: 30px; }
.caliper-bar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: var(--gold-deep);
}
.caliper-bar i {
  position: absolute; top: 6px; width: 1px; height: 19px; background: var(--gold);
}
.caliper-bar i:first-of-type { left: 0; } .caliper-bar i:last-of-type { right: 0; }
.caliper-val {
  position: absolute; left: 50%; top: 0; translate: -50% 0;
  background: var(--surface); padding: 0 12px;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--refusal);
}
.caliper-l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--rule); background: var(--hairline); border: var(--rule) solid var(--hairline); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.shot { position: relative; background: var(--bg); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: filter 320ms var(--ease); }
.shot:hover img { filter: brightness(1.04); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 15px 14px;
  background: linear-gradient(180deg, transparent, rgba(9,7,5,.94) 58%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bone); line-height: 1.5; margin: 0;
}
@media (min-width: 860px) { .shot.wide { grid-column: span 2; } .shot.wide img { aspect-ratio: 16/10; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: var(--rule); background: var(--hairline); border: var(--rule) solid var(--hairline); }
.card { background: var(--surface); padding: 30px 26px; }
/* the closing step gets the whole last row rather than leaving a dead cell */
.card.full { grid-column: 1 / -1; }
.card-n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.card p { font-size: 17px; margin-bottom: 0; }

/* ---------- footer ---------- */
.footer { border-top: var(--rule) solid var(--hairline); background: #0A0806; padding-block: clamp(52px, 7vw, 80px); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-bottom: 30px; border-bottom: var(--rule) solid var(--hairline); }
.footer-brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--bone); text-transform: uppercase; }
.footer-social { display: flex; gap: var(--rule); flex-wrap: wrap; }
.footer-note { padding-top: 28px; font-family: var(--mono); font-size: 11.5px; line-height: 2; letter-spacing: .04em; color: var(--dim); }
.footer-note p { max-width: 88ch; margin-bottom: 18px; }
.footer-note strong { color: var(--dim); font-weight: 700; }
.footer-note a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-note a:hover { color: var(--gold); }
.footer-note a.rescue { color: var(--teal); }

/* ---------- entrances ----------
   Gated behind .js so that with scripting off — or if script.js fails to
   load — every word on the page is still visible. Content first. */
.js .rise { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .floor-sec .rise { opacity: 1; transform: none; transition: none; }  /* deliberate stillness */
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
}
