/* ============================================================
   Steel City Codes — Home page styles
   ============================================================ */

/* ---------- full-bleed photo hero ---------- */
.hero{position:relative;min-height:min(92vh,780px);display:flex;align-items:flex-end;
  color:var(--on-dark);overflow:hidden;isolation:isolate}
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center 28%;z-index:-2}
/* legibility scrim (WCAG AA): guarantees a dark wash under the copy column
   and header so white/gold text clears 4.5:1 over any part of the photo.
   Stacked layers -> combined alpha ~0.86 in the lower-left text zone. */
.hero-scrim{position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(180deg,rgba(18,14,10,.62) 0%,rgba(18,14,10,.12) 18%,rgba(18,14,10,0) 40%,rgba(18,14,10,.42) 62%,rgba(18,14,10,.94) 100%),
    linear-gradient(90deg,rgba(18,14,10,.86) 0%,rgba(18,14,10,.42) 48%,rgba(18,14,10,0) 78%)}
.hero-inner{max-width:var(--wrap);margin-inline:auto;padding:var(--gutter);
  padding-bottom:var(--sp-9);padding-top:calc(var(--header-h) + var(--sp-7));width:100%}
.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);
  font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);margin-bottom:var(--sp-4)}
.hero h1{font-family:var(--font-slab);font-weight:600;color:#fff;
  font-size:clamp(40px,7vw,84px);line-height:1.02;letter-spacing:-.01em;max-width:16ch;margin-bottom:var(--sp-5)}
.hero h1 .accent{color:var(--brand)}
.hero .hero-sub{font-size:clamp(17px,2.2vw,20px);color:var(--on-dark);max-width:60ch;margin-bottom:var(--sp-6);opacity:.95}
.hero h1{max-width:18ch}

/* chapter-finder search */
.hero-search{display:flex;align-items:center;gap:var(--sp-2);width:100%;max-width:660px;
  background:var(--surface);border-radius:var(--radius-lg);padding:8px 8px 8px 16px;box-shadow:var(--shadow-lg)}
.hero-search-ico{display:inline-flex;color:var(--ink-faint);flex:0 0 auto}
.hero-search-ico .ic{width:22px;height:22px}
.hero-search-input{flex:1;min-width:0;height:52px;border:0;background:transparent;outline:none;
  font-family:inherit;font-size:17px;font-weight:500;color:var(--ink)}
.hero-search-input::placeholder{color:var(--ink-faint)}
.hero-search-input:focus-visible{box-shadow:none}
.hero-search .btn{height:52px;flex:0 0 auto;font-size:15px}
.hero-search:focus-within{box-shadow:var(--shadow-lg),0 0 0 3px var(--ring)}

.hero-hint{margin-top:var(--sp-3);color:var(--on-dark-muted);font-size:15px;max-width:56ch}
.hero-hint a{color:var(--brand);text-decoration:underline;text-underline-offset:2px;font-weight:600}
.hero-hint a:hover{color:var(--brand-hover)}

/* audience router row */
.hero-routers{display:flex;flex-wrap:wrap;gap:var(--sp-4) var(--sp-7);margin-top:var(--sp-7);
  padding-top:var(--sp-5);border-top:1px solid rgba(255,255,255,.18)}
.hero-routers a{display:inline-flex;align-items:center;gap:9px;color:var(--on-dark);font-weight:600;font-size:15px;
  transition:color var(--dur-fast) var(--ease)}
.hero-routers a .ic{width:19px;height:19px;color:var(--brand);flex:0 0 auto}
.hero-routers a:hover{color:var(--brand)}

/* ---------- stat band ---------- */
.statband{background:var(--ink-bar);color:var(--on-dark)}
.statband .grid-auto{gap:var(--sp-6)}
.statband .stat{align-items:flex-start;text-align:left}
.statband .eyebrow{color:var(--brand)}
.statband .stat-ico{background:rgba(241,196,70,.14);color:var(--brand)}
.statband .stat-num{color:#fff}
.statband .stat-cap{color:var(--on-dark-muted)}

/* ---------- mission split (asymmetric + photo collage) ---------- */
.mission-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:var(--sp-9);align-items:center}
/* scattered, overlapping, slightly-rotated photos + circular badge */
.collage{position:relative;aspect-ratio:1/1;max-width:480px}
.collage img{position:absolute;object-fit:cover;border-radius:var(--radius-lg);
  border:4px solid var(--surface);box-shadow:var(--shadow-lg)}
.collage .c1{width:60%;height:58%;top:0;left:0;transform:rotate(-3deg);z-index:1}
.collage .c2{width:52%;height:50%;right:0;top:16%;transform:rotate(2.5deg);z-index:2}
.collage .c3{width:50%;height:46%;left:12%;bottom:0;transform:rotate(1.5deg);z-index:2}
.collage .badge-circle{position:absolute;right:2%;bottom:6%;width:116px;height:116px;border-radius:var(--radius-pill);
  background:var(--brand);color:var(--on-brand);display:grid;place-items:center;text-align:center;
  font-family:var(--font-slab);font-weight:600;font-size:15px;line-height:1.12;box-shadow:var(--shadow-md);
  transform:rotate(-5deg);z-index:3;padding:12px}
.collage .badge-circle b{font-size:24px;display:block}
.mission-points{display:flex;flex-direction:column;gap:var(--sp-4);margin-top:var(--sp-5)}
.mission-point{display:flex;gap:var(--sp-3);align-items:flex-start}
.mission-point .ic{color:var(--warning);margin-top:2px;flex:0 0 20px}
.mission-point strong{display:block;margin-bottom:2px}
.mission-point span{color:var(--ink-muted);font-size:15px}

/* ---------- programs as a connected PATHWAY (not cards) ---------- */
.pathway{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-6);margin-top:var(--sp-7)}
/* the line the journey sits on */
.pathway::before{content:"";position:absolute;top:33px;left:8%;right:8%;height:2px;z-index:0;
  background:repeating-linear-gradient(90deg,var(--border-strong) 0 8px,transparent 8px 16px)}
.path-step{position:relative;z-index:1;text-decoration:none;display:block}
.path-node{width:68px;height:68px;border-radius:var(--radius-pill);background:var(--surface);
  border:2px solid var(--brand);color:var(--warning);font-family:var(--font-slab);font-weight:600;font-size:26px;
  display:grid;place-items:center;box-shadow:var(--shadow-sm);transition:transform var(--dur) var(--ease-bounce),background var(--dur) var(--ease),color var(--dur) var(--ease)}
.path-step:hover .path-node{background:var(--brand);color:var(--on-brand);transform:translateY(-4px)}
.path-step .step-label{display:block;font-family:var(--font-mono);font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--warning);margin:var(--sp-4) 0 var(--sp-2)}
.path-step h3{margin-bottom:var(--sp-2)}
.path-step p{color:var(--ink-muted);font-size:15px}
.path-step .go{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--ink);margin-top:var(--sp-3)}
.path-step .go svg{transition:transform var(--dur-fast) var(--ease-bounce)}
.path-step:hover .go svg{transform:translateX(4px)}

/* ---------- why it matters — big-number STAT STRIP (not boxes) ---------- */
.why{background:var(--surface-sunken)}
.statstrip{display:grid;grid-template-columns:repeat(4,1fr);margin-top:var(--sp-7)}
.statstrip .item{padding:var(--sp-2) var(--sp-5);border-left:1px solid var(--border-strong)}
.statstrip .item:first-child{border-left:0;padding-left:0}
.statstrip .big{font-family:var(--font-slab);font-size:clamp(34px,4.4vw,52px);font-weight:600;letter-spacing:-.01em;color:var(--warning);line-height:1}
.statstrip .txt{font-size:14px;color:var(--ink-muted);margin-top:var(--sp-3);max-width:24ch}

/* ---------- get involved — top-rule ROLE COLUMNS (not cards) ---------- */
.roles{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-7);margin-top:var(--sp-7)}
.role{padding-top:var(--sp-4);border-top:3px solid var(--brand)}
.role .role-ico{color:var(--warning);margin-bottom:var(--sp-3)}
.role .role-ico svg{width:30px;height:30px}
.role .commit{display:block;font-family:var(--font-mono);font-size:12px;color:var(--warning);font-weight:600;margin-bottom:var(--sp-2)}
.role h3{margin-bottom:var(--sp-2)}
.role p{color:var(--ink-muted);font-size:15px;margin-bottom:var(--sp-3)}
.role a.rolelink{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--ink)}
.role a.rolelink svg{transition:transform var(--dur-fast) var(--ease-bounce)}
.role a.rolelink:hover svg{transform:translateX(4px)}

@media (max-width:820px){
  .pathway{grid-template-columns:1fr;gap:var(--sp-5)}
  .pathway::before{display:none}
  .statstrip{grid-template-columns:1fr 1fr;gap:var(--sp-6) 0}
  .statstrip .item:nth-child(3){border-left:0;padding-left:0}
  .roles{grid-template-columns:1fr;gap:var(--sp-6)}
}
@media (max-width:560px){.statstrip{grid-template-columns:1fr}.statstrip .item{border-left:0;padding-left:0}}

/* ---------- CTA band ---------- */
.cta-band{background:var(--ink-bar);color:var(--on-dark);border-radius:var(--radius-xl);
  padding:var(--sp-9) var(--sp-6);text-align:center;position:relative;overflow:hidden}
.cta-band::before{content:"{ }";position:absolute;font-family:var(--font-slab);font-size:340px;line-height:1;
  color:rgba(241,196,70,.06);right:-20px;top:-80px;pointer-events:none}
.cta-band h2{color:#fff;margin-bottom:var(--sp-3);font-size:clamp(26px,3.6vw,38px)}
.cta-band p{color:var(--on-dark-muted);margin:0 auto var(--sp-6);max-width:56ch}
.cta-band .row{justify-content:center;position:relative}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .mission-grid{grid-template-columns:1fr;gap:var(--sp-6)}
  .program-grid,.why-grid,.involve-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .program-grid,.why-grid,.involve-grid{grid-template-columns:1fr}
  .hero{min-height:auto;padding-top:var(--header-h)}
  .cta-band{padding:var(--sp-7) var(--sp-4)}
  /* stack the chapter-finder: full-width input then full-width button */
  .hero-search{flex-wrap:wrap;padding:12px 14px;gap:var(--sp-2)}
  .hero-search-ico{order:0}
  .hero-search-input{flex:1 1 auto;height:44px;order:1}
  .hero-search .btn{flex:1 1 100%;order:2;width:100%}
  .hero-routers{flex-direction:column;gap:var(--sp-3)}
}
