/* California Hot Rod Foundation — landing page
   Palette: Rosso Corsa, Rosso Magma, black, white, warm ivory. Flat, editorial, generous white space. */
:root {
  --corsa: #D40000;      /* Rosso Corsa: primary accents */
  --corsa-ink: #B30000;  /* hover / pressed */
  --magma: #8E1B10;      /* Rosso Magma: deep warm red bands */
  --nero: #0B0B0B;
  --asphalt: #141414;
  --graphite: #2A2A2A;
  --steel: #5E6166;
  --chrome: #DCDDDF;
  --smoke: #F4F4F2;
  --avorio: #F6F1E8;
  --white: #FFFFFF;
  --display: "Saira", system-ui, sans-serif;
  --body: "Lexend", system-ui, sans-serif;
  --wrap: 1280px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--header-h); }
body {
  font-family: var(--body);
  font-weight: 350;
  color: var(--nero);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--nero); color: #fff; padding: 10px 16px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--corsa); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--corsa); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h2.eyebrow { line-height: inherit; }
.eyebrow.on-dark { color: #FF5A4F; }
.eyebrow.on-red { color: #FFD9D4; }
h1 { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 72px; line-height: 1.0; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-stretch: 118%; font-weight: 750; font-size: 46px; line-height: 1.08; letter-spacing: -.005em; }
h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 22px; line-height: 1.2; }
h4 { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 18px; line-height: 1.25; }
.lead { font-size: 20px; line-height: 1.6; color: #3d3f42; font-weight: 300; }
.muted { color: var(--steel); }
.red { color: var(--corsa); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 30px;
  font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid var(--nero); border-radius: 2px;
  color: var(--nero); background: transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--nero); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--corsa); border-color: var(--corsa); color: #fff; }
.btn-red:hover { background: var(--corsa-ink); border-color: var(--corsa-ink); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--nero); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 12px; }
.tlink {
  font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px; border-bottom: 2px solid var(--corsa);
}
.tlink:hover { color: var(--corsa); }
.tlink svg { width: 16px; height: 16px; }

/* ---------- Pattern textures (CHRF tri-spoke lattice) ---------- */
.pat-dark {
  background-color: var(--asphalt);
  background-image: linear-gradient(rgba(20,20,20,.4), rgba(20,20,20,.4)), url(../brand/tri-dark.svg);
  background-size: 240px auto;
}
.pat-red {
  background-color: var(--magma);
  background-image: linear-gradient(rgba(142,27,16,.5), rgba(142,27,16,.5)), url(../brand/tri-red.svg);
  background-size: 240px auto;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--chrome); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 36px; font-weight: 450; font-size: 15.5px; }
.nav a { position: relative; padding: 6px 0; }
.nav a:hover, .nav a.active { color: var(--corsa); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--corsa); }
.hdr-cta { display: flex; align-items: center; gap: 18px; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px;
  border: 1.5px solid var(--chrome); border-radius: 2px;
  font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--nero);
  transition: border-color .15s;
}
.soon-pill:hover { border-color: var(--nero); }
.soon-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--corsa); }
.menu-btn {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--nero);
  transition: transform .2s, opacity .2s;
}
.menu-btn::before { top: 14px; }
.menu-btn span { top: 21px; }
.menu-btn::after { top: 28px; }
.nav-open .menu-btn::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span { opacity: 0; }
.nav-open .menu-btn::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; }
.hero h1 .red { display: block; }
.hero .lead { margin: 30px 0 40px; max-width: 560px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 640px; object-fit: cover; object-position: 50% 30%; }
.hero-photo .tab {
  position: absolute; left: -28px; bottom: 40px; background: var(--corsa); color: #fff; padding: 18px 22px;
  font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.hero-photo .tab small {
  display: block; font-family: var(--body); font-stretch: 100%; letter-spacing: 0;
  text-transform: none; font-weight: 300; font-size: 14px; opacity: .9;
}
.verified {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  padding: 12px 16px 12px 14px; border: 1px solid var(--chrome);
  font-size: 14px; color: #3d3f42; white-space: nowrap; transition: border-color .15s;
}
.verified:hover { border-color: var(--nero); }
.verified svg { width: 22px; height: 22px; color: var(--corsa); flex: none; }
.verified b { font-weight: 550; color: var(--nero); }
.verified em {
  font-style: normal; font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--corsa);
  border-left: 1px solid var(--chrome); padding-left: 12px;
}

/* ---------- Trades strip ---------- */
.trades { border-top: 1px solid var(--chrome); border-bottom: 1px solid var(--chrome); }
.trades ul { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 12px 28px; }
.trades li {
  font-family: var(--display); font-stretch: 125%; font-weight: 650; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; color: #45474b;
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
}
.trades svg { width: 18px; height: 18px; color: var(--corsa); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.sec-head p { max-width: 520px; }

/* Mission */
.mission { text-align: center; }
.mission .eyebrow { justify-content: center; }
.mission .eyebrow::before { display: none; }
.statement {
  font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 40px; line-height: 1.28;
  max-width: 1060px; margin: 0 auto 24px; letter-spacing: -.005em;
}
.statement em { font-style: normal; color: var(--corsa); }
.mission .sub { max-width: 760px; margin: 0 auto 80px; color: var(--steel); font-size: 18px; }
.pillars-label {
  font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--steel); text-align: left; margin-bottom: 18px;
}
.pillars {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--chrome); border-left: 1px solid var(--chrome); text-align: left;
}
.pillar { padding: 34px 34px 36px; border-right: 1px solid var(--chrome); border-bottom: 1px solid var(--chrome); display: flex; gap: 20px; align-items: flex-start; }
.pillar .ic { width: 48px; height: 48px; flex: none; border: 2px solid var(--nero); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, color .15s; }
.pillar .ic svg { width: 22px; height: 22px; }
.pillar:hover .ic { background: var(--corsa); border-color: var(--corsa); color: #fff; }
.pillar h3 { font-stretch: 108%; font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
.pillar p { font-size: 15px; color: var(--steel); line-height: 1.5; }

/* Who we are */
.about { background: var(--avorio); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.about .ph img { width: 100%; height: 600px; object-fit: cover; }
.about h2 { margin-bottom: 28px; }
.about p { color: #3d3f42; margin-bottom: 20px; max-width: 560px; }
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 1px solid #DDD5C6; }
.facts li { padding: 20px 20px 20px 0; border-bottom: 1px solid #DDD5C6; }
.facts b { display: block; font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--corsa); margin-bottom: 4px; }
.facts span { font-size: 15.5px; color: var(--nero); }

/* Why it matters */
.impact { color: #fff; }
.impact h2 { max-width: 620px; }
.impact .sec-head p { color: #B9BBBE; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #3a3a3a; }
.counter { padding: 44px 36px 0 0; margin-right: 36px; border-right: 1px solid #3a3a3a; }
.counter:last-child { border-right: 0; margin-right: 0; }
.counter .num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 76px; line-height: 1; letter-spacing: -.01em; margin-bottom: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.counter:first-child .num { color: #FF3B30; }
.counter .lbl { color: #C9CBCE; font-size: 16px; line-height: 1.5; max-width: 250px; }
.sources { margin-top: 64px; font-size: 13px; color: #8C8F94; }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.sources a:hover { color: #fff; }

/* Who we support */
.support-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.support { border-top: 4px solid var(--nero); padding-top: 28px; }
.support:first-child { border-top-color: var(--corsa); }
.support .ic { width: 52px; height: 52px; background: var(--smoke); display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.support .ic svg { width: 26px; height: 26px; color: var(--corsa); }
.support h3 { margin-bottom: 12px; }
.support p { color: var(--steel); font-size: 16px; }

/* Programs */
.programs { padding-top: 0; }
.programs .grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pcard { display: flex; flex-direction: column; }
.pcard .ph { overflow: hidden; margin-bottom: 24px; aspect-ratio: 4 / 3.3; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .ph img { transform: scale(1.04); }
.pcard .meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pcard .idx { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 14px; color: var(--corsa); letter-spacing: .12em; }
.chip {
  font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 10px; border: 1.5px solid var(--nero);
}
.chip.ghost { border-color: #C9CBCE; color: var(--steel); }
.pcard h3 { margin-bottom: 10px; }
.pcard p { font-size: 15.5px; color: var(--steel); line-height: 1.55; }

/* Heritage */
.heritage { display: grid; grid-template-columns: 1fr 1fr; }
.heritage .panel { color: #fff; padding: 120px 96px 120px max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); display: flex; flex-direction: column; justify-content: center; }
.heritage .panel h2 { font-size: 42px; }
.heritage .panel p { color: #C9CBCE; margin: 26px 0 40px; max-width: 500px; }
.heritage .panel ul { list-style: none; display: grid; gap: 14px; }
.heritage .panel li { display: flex; gap: 14px; align-items: center; color: #E6E7E8; font-size: 16px; }
.heritage .panel li svg { width: 18px; height: 18px; color: #FF3B30; flex: none; }
.heritage .ph img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; }

/* Get involved */
.partners .grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.partner { border: 1px solid var(--chrome); padding: 48px; display: grid; grid-template-columns: 64px 1fr; gap: 28px; }
.partner .ic { width: 64px; height: 64px; background: var(--smoke); display: flex; align-items: center; justify-content: center; }
.partner .ic svg { width: 28px; height: 28px; color: var(--corsa); }
.partner p { color: var(--steel); margin-top: 10px; font-size: 16px; }
.connect {
  margin-top: 32px; padding: 44px 48px; background: var(--smoke);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.connect h3 { margin-bottom: 8px; }
.connect p { color: var(--steel); font-size: 16px; max-width: 640px; }
.connect p a { color: var(--corsa); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.connect .btn { flex: none; }

/* Giving coming soon */
.giving { color: #fff; padding: 120px 0; }
.giving .wrap { display: grid; grid-template-columns: 1fr 480px; gap: 96px; align-items: center; }
.giving .lead { color: #F5D6D1; margin: 24px 0 36px; max-width: 560px; }
.giving ul { list-style: none; display: grid; gap: 16px; }
.giving li { display: flex; gap: 14px; align-items: flex-start; color: #FBE9E6; font-size: 16px; }
.giving li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 14px;
  background: rgba(0,0,0,.25); font-family: var(--display); font-stretch: 118%; font-weight: 700;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #FFB4AA; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.doc-card { background: #fff; color: var(--nero); padding: 40px; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; }
.doc-card img { width: 120px; height: 155px; object-fit: cover; object-position: top; border: 1px solid var(--chrome); }
.doc-card .kicker { font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--corsa); margin-bottom: 8px; }
.doc-card h3 { margin-bottom: 8px; }
.doc-card p { font-size: 14.5px; color: var(--steel); margin-bottom: 20px; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nero); color: #C9CBCE; padding: 96px 0 40px; }
.fgrid { display: grid; grid-template-columns: 1.6fr .9fr 1fr 1.2fr; gap: 56px; padding-bottom: 64px; border-bottom: 1px solid #2c2c2c; }
.site-footer .flogo img { height: 44px; width: auto; margin-bottom: 22px; }
.site-footer .tag { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.site-footer .about-line { font-size: 15px; max-width: 380px; }
.fh { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.flinks { list-style: none; display: grid; gap: 12px; font-size: 15px; }
.flinks a:hover { color: #fff; }
.org { font-style: normal; font-size: 15px; line-height: 1.7; }
.org b { color: #fff; font-weight: 500; }
.docs { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; border: 1px solid #2f2f2f; padding: 14px 16px; transition: border-color .15s; }
a.doc:hover { border-color: #777; }
.doc .yr { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 13px; color: #FF3B30; }
.doc b { font-weight: 450; color: #fff; font-size: 14.5px; display: block; }
.doc span { font-size: 12.5px; color: #8C8F94; }
.doc svg { width: 18px; height: 18px; color: #8C8F94; }
.doc.pending { border-style: dashed; }
.legal { display: flex; justify-content: space-between; gap: 40px; padding-top: 32px; font-size: 13px; color: #8C8F94; }
.legal p { max-width: 860px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status .dot { animation: none; }
  .pcard .ph img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  h1 { font-size: 60px; }
  .hero .wrap, .about .wrap, .giving .wrap { grid-template-columns: 1fr; gap: 56px; }
  .programs .grid { grid-template-columns: repeat(2, 1fr); }
  .heritage { grid-template-columns: 1fr; }
  .heritage .panel { padding: 96px 40px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--chrome);
    padding: 8px 40px 20px;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--smoke); font-size: 17px; }
  .nav a.active::after { display: none; }
  .nav-open .nav { display: flex; }
  .trades ul { flex-wrap: wrap; justify-content: flex-start; padding-top: 20px; padding-bottom: 20px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  h1 { font-size: 40px; font-stretch: 105%; }
  h2 { font-size: 32px; }
  .site-header .logo img { height: 28px; }
  .soon-pill { display: none; }
  .nav { padding: 4px 22px 16px; }
  .hero { padding: 48px 0 56px; }
  .hero .lead { font-size: 17px; margin: 22px 0 30px; }
  .hero .btns { flex-direction: column; }
  .hero .btns .btn { width: 100%; }
  .hero-photo img { height: 420px; }
  .hero-photo .tab { left: 0; bottom: 0; }
  .verified { display: grid; grid-template-columns: 22px 1fr; gap: 6px 12px; white-space: normal; font-size: 13px; width: 100%; }
  .verified em { grid-column: 2; border-left: 0; padding-left: 0; }
  .trades ul { gap: 12px 20px; padding-top: 18px; padding-bottom: 18px; }
  .trades li { font-size: 11px; gap: 10px; }
  .section { padding: 80px 0; }
  .programs { padding-top: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; gap: 18px; }
  .statement { font-size: 26px; }
  .mission .sub { margin-bottom: 48px; font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 24px; }
  .about .ph img { height: 340px; }
  .facts { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counter { margin-right: 0; padding: 28px 16px 28px 0; border-right: 0; border-bottom: 1px solid #3a3a3a; }
  .counter .num { font-size: 44px; }
  .counter .lbl { font-size: 14px; }
  .sources { margin-top: 36px; }
  .support-grid { grid-template-columns: 1fr; gap: 40px; }
  .programs .grid { grid-template-columns: 1fr; gap: 48px; }
  .heritage .panel { padding: 72px 22px; }
  .heritage .ph img { min-height: 320px; }
  .partners .grid { grid-template-columns: 1fr; gap: 20px; }
  .partner { padding: 28px; grid-template-columns: 1fr; gap: 20px; }
  .connect { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; }
  .connect .btn { width: 100%; }
  .giving { padding: 80px 0; }
  .doc-card { grid-template-columns: 1fr; padding: 28px; }
  .doc-card img { width: 100%; height: 200px; }
  .fgrid { grid-template-columns: 1fr; gap: 40px; }
  .legal { flex-direction: column; gap: 12px; }
}
