@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* The Register — v2. Serif = authority. Manrope = modern UI. Monospace = proof.
   Sleek, not austere. Light paper body, dark ink hero, seal-red accent. The ford, as a mark. */

:root {
  --paper: #0a0a0a;
  --paper-2: #111111;
  --ink: #f0f0f0;
  --ink-2: #ffffff;
  --ink-soft: #a0a0a0;
  --ink-faint: #666666;
  --on-dark: #f0f0f0;
  --on-dark-faint: rgba(240,240,240,0.55);
  --rule: rgba(255,255,255,0.10);
  --rule-dark: rgba(240,240,240,0.12);
  --seal: #b3271e;
  --gold: #c49b3a;
  --serif: "Iowan Old Style", "Palatino", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.rule { border: 0; border-top: 1px solid var(--rule); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

h1, h2, h3 { font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 7.5vw, 76px); }
h2 { font-size: clamp(28px, 4.6vw, 40px); margin-bottom: 0.5em; }
p.lede { font-size: 22px; line-height: 1.5; }
p { color: var(--ink-soft); }
p + p { margin-top: 0.9em; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--seal); }

/* ── Header ─────────────────────────────────────────────────────── */
header.mast {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,234,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
header.mast .wrap { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; padding-bottom: 18px; }
header.mast .brand { font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
header.mast nav a {
  font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; margin-left: 24px;
  transition: color .18s ease, border-color .18s ease; border-bottom: 1px solid transparent;
}
header.mast nav a:hover { color: var(--ink); border-bottom-color: var(--seal); }

/* ── Loader ────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--paper);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  transition: opacity .6s ease .15s, visibility .6s ease .15s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader .seal { width: 68px; height: 68px; font-size: 10px; animation: breathe 1.5s ease-in-out infinite; }
.loader .word { font-family: var(--sans); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; color: var(--ink-faint); }
.loader .bar { width: 140px; height: 1px; background: var(--rule); overflow: hidden; }
.loader .bar::after { content: ""; display: block; width: 40%; height: 100%; background: var(--seal); animation: load 1.1s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ── Entrance animations ───────────────────────────────────────── */
.hero .wrap { animation: rise .8s ease both; }
.hero-visual { animation: fade .9s ease .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 0.55; } }

/* ── Hero (dark) ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 70%);
  color: var(--ink);
  padding: 96px 0 84px;
}

/* ── Hero-sm (light, sub-pages) ─────────────────────────────────── */
.hero-sm {
  background: var(--paper);
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.hero-sm h1 { color: var(--ink); }
.hero-sm .lede { color: var(--ink-soft); }
.hero .wrap { position: relative; z-index: 2; }
.hero .grid-bg {
  position: absolute; inset: 0; z-index: 1; opacity: 0.35; pointer-events: none;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 500px at 20% 20%, #000 30%, transparent 75%);
}
.hero .stamp-row { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.hero .eyebrow { color: var(--ink-faint); }
.hero h1 { color: var(--ink); margin: 14px 0 24px; max-width: 14em; }
.hero .lede { color: var(--ink-soft); max-width: 36em; }
.hero .doors { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.hero-visual {
  position: absolute; right: -40px; bottom: -20px; z-index: 1; opacity: 0.55; pointer-events: none;
  width: min(46vw, 460px);
}

/* ── Hero with founder photo (TK Stratton style — vertical) ──────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  padding: 96px 0 0;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}
.hero-founder-photo {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-founder-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 10%;
  filter: grayscale(100%);
  transition: filter .5s ease;
}
.hero:hover .hero-founder-photo img {
  filter: grayscale(0%);
}
.hero-founder-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, var(--paper) 85%);
  pointer-events: none;
}
/* the seal */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1.5px solid var(--seal); border-radius: 50%;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--seal); text-align: center; line-height: 1.15; padding: 4px;
}

/* ── CTA ────────────────────────────────────────────────────────── */
.cta {
  display: inline-block; background: var(--seal); color: var(--paper);
  font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 30px; text-decoration: none; margin-top: 32px;
  transition: background .18s ease, transform .18s ease;
}
.cta:hover { background: #8f1e17; transform: translateY(-1px); }
.cta.dark { background: var(--on-dark); color: var(--ink-2); }
.cta-note { font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: 0.04em; margin-top: 14px; }
.hero .cta-note { color: var(--on-dark-faint); }

/* ── Stats strip ────────────────────────────────────────────────── */
.stats { border-bottom: 1px solid var(--rule); }
.stats .ledger .row { border-bottom: none; }

/* ── Sections (light) ───────────────────────────────────────────── */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--rule); }

/* dark section (the desk) */
section.dark {
  background: var(--ink-2); color: var(--on-dark);
  border-top: none;
}
section.dark .eyebrow { color: var(--on-dark-faint); }
section.dark h2, section.dark h3 { color: var(--on-dark); }
section.dark p { color: rgba(246,242,234,0.72); }
section.dark .door { border-bottom-color: var(--rule-dark); }
section.dark .door .tag { color: var(--gold); }
section.dark .door p { color: rgba(246,242,234,0.6); }

/* ── Ledger ─────────────────────────────────────────────────────── */
.ledger { font-family: var(--mono); font-size: 14px; margin-top: 24px; }
.ledger .row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ledger .row .k { color: var(--ink-soft); letter-spacing: 0.04em; }
.ledger .row .v { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
section.dark .ledger .row { border-bottom-color: var(--rule-dark); }
section.dark .ledger .row .k { color: var(--on-dark-faint); }
section.dark .ledger .row .v { color: var(--on-dark); }

/* ── Doors ──────────────────────────────────────────────────────── */
.door { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.door .tag { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; color: var(--seal); text-transform: uppercase; }
.door h3 { font-size: 24px; margin: 6px 0 8px; }
.door p { font-size: 16px; max-width: 40em; }

/* ── Signature block ────────────────────────────────────────────── */
.sig { margin-top: 28px; border-top: 1px solid var(--rule); }
.sig .head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 0 4px; }
.sig .line {
  font-family: var(--mono); font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px;
}
.sig .line .who { color: var(--ink); }
.sig .line .cred { color: var(--ink-soft); font-size: 11px; text-align: right; }

/* ── Face cards (team) ──────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 22px; margin-top: 36px; }
.face .headshot {
  aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 26px; letter-spacing: 0.08em; color: var(--ink-faint);
}
.face .headshot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(100%); transition: filter .3s ease;
  z-index: 1;
}
.face:hover .headshot img { filter: grayscale(0%); }
.headshot .initials { position: relative; z-index: 2; pointer-events: none; }
/* Hide initials when a real photo is present */
.headshot:has(img) .initials { display: none; }
.face .name { font-family: var(--serif); font-size: 21px; margin-top: 14px; color: var(--ink); }
.face .role { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--seal); margin-top: 4px; }
.face .drop { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--ink-soft); margin-top: 9px; }

/* ── Stats strip (team page) ────────────────────────────────────── */
.stats-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); margin-top: 48px; }
.stats-strip .stat { padding: 32px 24px; }
.stats-strip .stat:first-child { border-right: 1px solid var(--rule-strong); }
.stats-strip .stat-num { font-family: 'Spectral', Georgia, serif; font-size: 56px; font-weight: 300; color: var(--ink-2); letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.stats-strip .stat-num sup { font-size: 24px; color: var(--gold); }
.stats-strip .stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 600px) {
  .stats-strip .stat-num { font-size: 40px; }
  .stats-strip .stat { padding: 24px 16px; }
}
.unit-line { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 23px; line-height: 1.3; }

/* ── Tiles (the record) ─────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.tiles .t {
  aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--rule);
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease;
}
.tiles .t:hover { border-color: var(--seal); color: var(--seal); }

/* ── Pull-quote ─────────────────────────────────────────────────── */
.pullquote { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 34px 0; margin: 44px 0; font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.pullquote .attr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-top: 14px; }

/* ── Founder photo layout ───────────────────────────────────────── */
.founder-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.founder-photo-wrap {
  position: relative;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  filter: grayscale(100%);
  border: 1px solid var(--rule);
  transition: filter .3s ease;
}
.founder-photo:hover {
  filter: grayscale(0%);
}
.founder-copy {
  min-width: 0;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--rule); padding: 44px 0 56px; margin-top: 0; }
footer .fine { font-family: var(--mono); font-size: 10.5px; line-height: 1.8; color: var(--ink-faint); }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .hero-visual { opacity: 0.25; right: -80px; }
  section { padding: 60px 0; }
  .sig .line { flex-direction: column; gap: 0; }
  .sig .line .cred { text-align: left; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  header.mast nav a { margin-left: 14px; font-size: 10px; }
  .founder-layout { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo { aspect-ratio: 4 / 3; max-height: 400px; }
  .hero-founder-photo { max-width: 100%; }
  .hero-founder-photo img { aspect-ratio: 1 / 1; }
}
