:root {
  --ink: #111315;
  --ink-2: #24292d;
  --paper: #f8f3e7;
  --paper-2: #efe4cf;
  --white: #fffdfa;
  --gold: #d7a429;
  --gold-2: #f5cf68;
  --green: #0a6b4d;
  --green-2: #073f32;
  --red: #b5312e;
  --steel: #9ea7a8;
  --line: rgba(17, 19, 21, 0.14);
  --dark-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px max(20px, calc((100% - var(--max)) / 2));
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, min-height 180ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  min-height: 62px;
  background: rgba(12, 15, 17, 0.9);
  border-bottom-color: var(--dark-line);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 62px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--gold-2);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  line-height: 1;
}

.brand-number {
  font-family: Anton, Impact, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: rgba(255, 253, 250, 0.82);
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--gold-2);
}

.header-action,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-action {
  color: var(--ink);
  background: var(--white);
}

.button:hover,
.button:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  transform: translateY(-2px);
}

.button svg,
.header-action svg,
.metric-card svg,
.action-stack svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.button-primary {
  color: var(--ink);
  background: var(--gold-2);
  border-color: rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: var(--white);
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, 88svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 6px solid var(--gold);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 14, 0.96), rgba(10, 12, 14, 0.78) 48%, rgba(10, 12, 14, 0.2)),
    url("assets/david-leach-x-profile.jpg") right 12% center / min(42rem, 70vh) auto no-repeat,
    linear-gradient(135deg, #141617, #13251f);
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 88px);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  margin-bottom: 22px;
  font-size: 5.8rem;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.25rem;
  text-transform: uppercase;
}

.hero-lede,
.section-copy p,
.quote-copy p,
.contact-band p {
  color: rgba(255, 253, 250, 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
}

.profile-band .section-copy p,
.film-section .section-copy p {
  color: rgba(17, 19, 21, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.copy-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--gold-2);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-media {
  justify-self: end;
}

.portrait-frame {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 1;
  border: 3px solid var(--gold-2);
  background: var(--green-2);
  box-shadow: var(--shadow), 14px 14px 0 rgba(215, 164, 41, 0.22);
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-width: 86px;
  padding: 12px;
  color: var(--ink);
  background: var(--gold-2);
  border: 2px solid var(--ink);
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.portrait-badge span {
  display: block;
  font-family: Anton, Impact, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.portrait-badge small {
  font-weight: 900;
}

.stat-ribbon {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto -42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
}

.stat-ribbon article {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stat-ribbon article:last-child {
  border-right: 0;
}

.stat-ribbon span,
.metric-card span {
  display: block;
  font-family: Anton, Impact, sans-serif;
  font-size: 2.35rem;
  line-height: 1;
}

.stat-ribbon p,
.metric-card p {
  margin: 8px 0 0;
  color: rgba(17, 19, 21, 0.68);
  font-size: 0.9rem;
  font-weight: 800;
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-copy,
.quote-copy,
.action-stack {
  min-width: 0;
}

.profile-band,
.section-light,
.film-section {
  padding: 118px 0 88px;
}

.section-light {
  background: var(--white);
}

.split-grid,
.quote-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 46px;
  align-items: center;
}

.profile-band {
  background:
    linear-gradient(90deg, rgba(248, 243, 231, 0.96), rgba(248, 243, 231, 0.82)),
    linear-gradient(135deg, rgba(10, 107, 77, 0.16), rgba(181, 49, 46, 0.1));
}

.profile-band h2,
.film-section h2,
.section-light h2 {
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div,
.metric-card,
.action-stack a {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.76);
}

.timeline div {
  padding: 22px;
  border-left: 6px solid var(--green);
}

.timeline span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.timeline p {
  margin: 8px 0 0;
  color: rgba(17, 19, 21, 0.7);
  line-height: 1.55;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 30px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.metric-card svg {
  color: var(--green);
}

.metric-card span {
  color: var(--ink);
  font-size: 3.3rem;
}

.quote-section {
  padding: 88px 0;
  background:
    linear-gradient(135deg, rgba(8, 15, 13, 0.96), rgba(19, 20, 21, 0.96)),
    linear-gradient(45deg, rgba(215, 164, 41, 0.2), rgba(10, 107, 77, 0.22));
}

.quote-card {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quote-card img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: left center;
}

.quote-copy {
  max-width: 520px;
}

.film-section {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
}

.action-stack {
  display: grid;
  gap: 14px;
}

.action-stack a {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.action-stack a:hover,
.action-stack a:focus-visible {
  transform: translateX(4px);
  border-color: rgba(10, 107, 77, 0.42);
  background: var(--white);
}

.action-stack svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.action-stack strong,
.action-stack small {
  display: block;
}

.action-stack strong {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.action-stack small {
  color: rgba(17, 19, 21, 0.66);
  line-height: 1.45;
}

.contact-band {
  padding: 84px 0;
  background:
    linear-gradient(90deg, rgba(12, 14, 16, 0.96), rgba(8, 52, 39, 0.92)),
    linear-gradient(135deg, #111315, #073f32);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100% - var(--max)) / 2));
  color: rgba(255, 253, 250, 0.72);
  background: #070808;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--gold-2);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scout-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10, 107, 77, 0.18), rgba(215, 164, 41, 0.14)),
    var(--paper);
}

.scout-wrap {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0;
}

.scout-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scout-top {
  display: grid;
  grid-template-columns: auto 1fr 112px;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 4px solid var(--ink);
}

.scout-top h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 3.6rem;
}

.scout-top p {
  margin-bottom: 0;
  color: rgba(17, 19, 21, 0.7);
  font-weight: 800;
}

.scout-top img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.scout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.scout-grid article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.scout-grid span {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 19, 21, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scout-grid strong {
  font-size: 1.28rem;
}

.scout-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.scout-section h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.scout-section ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.scout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scout-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius);
  font-weight: 900;
}

.scout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 4px solid var(--ink);
}

.scout-footer p {
  margin: 0;
  color: rgba(17, 19, 21, 0.7);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    display: none;
  }

  .hero-shell,
  .split-grid,
  .quote-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-self: start;
  }

  h1 {
    font-size: 4.3rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-ribbon article:nth-child(2) {
    border-right: 0;
  }

  .stat-ribbon article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand-mark {
    min-width: 56px;
  }

  .header-action {
    width: 46px;
    min-width: 46px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0;
  }

  .header-action svg {
    color: var(--ink);
  }

  .hero {
    min-height: 88svh;
  }

  .hero-shell {
    width: calc(100% - 32px);
    padding-top: 104px;
    gap: 28px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(10, 12, 14, 0.62), rgba(10, 12, 14, 0.96) 52%),
      url("assets/david-leach-x-profile.jpg") center top 70px / 19rem auto no-repeat,
      linear-gradient(135deg, #141617, #13251f);
  }

  .hero-copy {
    padding-top: 220px;
  }

  .hero-media {
    display: none;
  }

  .hero-actions,
  .contact-actions,
  .scout-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .profile-band,
  .section-light,
  .film-section {
    padding: 96px 0 68px;
  }

  .metric-grid,
  .stat-ribbon,
  .scout-grid {
    grid-template-columns: 1fr;
  }

  .stat-ribbon {
    margin-bottom: 0;
  }

  .stat-ribbon article,
  .stat-ribbon article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-ribbon article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .scout-card {
    padding: 18px;
  }

  .scout-top {
    grid-template-columns: 1fr;
  }

  .scout-top img {
    width: 96px;
    height: 96px;
  }

  .scout-top h1 {
    font-size: 2.8rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .scout-wrap {
    width: 100%;
    padding: 0;
  }

  .scout-card {
    box-shadow: none;
    border: 0;
  }

  .scout-footer .button,
  script {
    display: none;
  }
}
