/* Pittsburgh AI Safety Coalition — site styles */

:root {
  --navy: #0e2350;        /* logo background */
  --cream: #f3f1e8;       /* logo bridge */
  --gold: #f2b033;        /* logo lights */
  --mist: #b8c4e0;        /* logo tagline */
  --navy-950: #081634;
  --navy-900: #0b1c42;
  --navy-800: #0e2350;
  --blue-700: #1f4a9a;
  --blue-600: #2f5fb8;
  --blue-400: #5f8fd6;
  --blue-300: #8fb4ea;
  --blue-100: #dbe8fb;
  --blue-50: #eef4fd;

  --ink: #0d1830;
  --ink-2: #3a4863;
  --ink-3: #66728a;
  --line: #dde4ef;
  --paper: #ffffff;
  --paper-2: #f5f8fc;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(6, 20, 51, .06), 0 8px 24px rgba(6, 20, 51, .06);
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 35, 80, .96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(143, 180, 234, .14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 66px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-abbr { font-family: "Poppins", var(--font-body); font-weight: 400; font-size: 1.3rem; letter-spacing: .3em; color: var(--cream); }
.brand-name { font-family: "Poppins", var(--font-body); font-size: .58rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--mist); margin-top: 6px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--gold); border-radius: 2px; margin-top: 3px; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy); padding: 8px var(--gutter) 20px; gap: 2px;
    border-bottom: 1px solid rgba(143, 180, 234, .14); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font-body); padding: 14px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--blue-100); color: var(--navy-800); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue-300); color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: .88rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(110% 80% at 50% 105%, #3d63ad 0%, #1b3872 32%, #0e2350 62%, #0a1a3d 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: var(--gold); }
.hero .lede { color: rgba(255, 255, 255, .84); }

.hero--home { padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 10vw, 112px); text-align: center; }
.hero--home h1 { max-width: 14ch; margin: 0 auto 36px; font-size: clamp(2.6rem, 7vw, 4.8rem); }
.hero--home .lede { max-width: 640px; margin: 0 auto 20px; }
.hero--home .eyebrow { font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .18em; margin-bottom: 22px; }
.hero--home .btn-row { justify-content: center; }
.hero-bridge { display: block; width: min(860px, 100%); margin: clamp(40px, 7vw, 72px) auto 0; }

.hero--page { padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 80px); }
.hero--page h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin-bottom: .3em; }
.hero--page .lede { max-width: 680px; margin: 0; }
.hero--page::after {
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 520px; height: 220px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='470 336 1060 346'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-linecap='round'%3E%3Cpath stroke-width='11' d='M538 618Q702 556 771 392M786 392Q1000 766 1214 392M1462 618Q1298 556 1229 392'/%3E%3Cpath stroke-width='6' d='M608 584.3V617M689 519.6V617M850 487.1V617M925 556V617M1000 579V617M1075 556V617M1150 487.1V617M1392 584.3V617M1311 519.6V617'/%3E%3Cpath stroke-width='20' d='M778 369V660M1222 369V660M500 627H1500'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
@media (max-width: 700px) { .hero--page::after { width: 320px; height: 140px; right: -60px; opacity: .7; } }

/* ---------- Content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat-figure { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--navy-800); margin-bottom: 12px; }
.stat p { color: var(--ink-2); font-size: .97rem; margin-bottom: 14px; }
.stat a.source { margin-top: auto; font-size: .85rem; font-weight: 600; text-decoration: none; }
.stat a.source::after { content: " →"; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-num { font-family: var(--font-display); font-size: 1rem; color: var(--blue-600); margin-bottom: 10px; display: block; }

.callout {
  border-left: 3px solid var(--blue-600); background: var(--blue-50);
  padding: 24px 28px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 32px 0;
}
.callout p { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; margin: 0; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(120% 140% at 80% 100%, #2a4f96 0%, #0e2350 50%, #0a1a3d 100%); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 560px; }

/* ---------- Members ---------- */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.org {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.org:hover { border-color: var(--blue-300); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
/* Every logo sits in an identical box, scaled to fit, so all cards line up. */
.org-logo { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.org-logo img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
.org-logo--initials {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff; font-family: var(--font-display); font-size: 2.6rem; letter-spacing: .02em;
}
.org-body { padding: 16px 18px 18px; }
.org-name { font-weight: 600; font-size: 1rem; line-height: 1.35; margin: 0; }
.org-type { font-size: .84rem; color: var(--ink-3); margin-top: 4px; }
.org-strip { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; justify-content: center; }
.org-strip img { height: 84px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.org-strip a:hover img { filter: none; opacity: 1; }

.count-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.count { color: #fff; }
.count b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; line-height: 1; }
.count span { font-size: .86rem; color: var(--mist); letter-spacing: .04em; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.toolbar input[type="search"] { flex: 1 1 260px; }
.toolbar select { flex: 0 1 260px; }
.people { columns: 3 260px; column-gap: 40px; }
.hood { break-inside: avoid; margin-bottom: 28px; }
.hood h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.hood h3 span { color: var(--ink-3); font-weight: 500; }
.hood ul { list-style: none; margin: 0; padding: 0; }
.hood li { padding: 5px 0; font-size: .97rem; }
.hood li small { color: var(--ink-3); font-size: .86rem; }
.empty { color: var(--ink-3); padding: 24px 0; }
.preview-banner { background: #fff7e0; border: 1px solid #f0d58a; color: #6b5210; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 28px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
label, .label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-3); }
.hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  padding: 12px 14px; border: 1px solid #c9d3e3; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47, 95, 184, .18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--ink-2); margin-bottom: 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-600); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { margin-top: 16px; font-size: .95rem; }
.form-status.error { color: #a4262c; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .card-icon { margin: 0 auto 16px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 5px; gap: 5px; margin-bottom: 28px; }
.segmented button {
  font: 600 .95rem/1.2 var(--font-body); border: 0; background: transparent; color: var(--ink-2);
  padding: 12px 10px; border-radius: 8px; cursor: pointer;
}
.segmented button small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(6, 20, 51, .12); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[hidden] { display: none; }
.fine { font-size: .84rem; color: var(--ink-3); margin: 14px 0 0; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; color: var(--ink-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600); font-weight: 600; display: grid; place-items: center; font-size: .92rem;
}
.steps li strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); font-size: .92rem; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 14px; }
.footer-sub { display: flex; gap: 8px; margin-top: 4px; }
.footer-sub input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; padding: 10px 12px; }
.footer-sub input::placeholder { color: rgba(255, 255, 255, .45); }
.footer-sub .btn { padding: 10px 16px; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: rgba(255, 255, 255, .5); }

@media (max-width: 420px) {
  .brand-mark { width: 54px; }
  .brand-abbr { font-size: 1.15rem; }
  .brand-name { font-size: .5rem; letter-spacing: .12em; }
}

/* ---------- Successes (representatives) ---------- */
.rep-list { display: grid; gap: 24px; }
.rep { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rep-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px clamp(20px, 4vw, 36px); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.rep-name { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0; }
.rep-office { margin: 4px 0 0; color: var(--ink-3); font-size: .92rem; }
.rep-status { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.rep-status.is-active { background: #fdf3dc; color: #8a5a00; }
.rep-status.is-none { background: #eef1f6; color: var(--ink-3); }
.rep-note { margin: 0; padding: 24px clamp(20px, 4vw, 36px); color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 8px clamp(20px, 4vw, 36px); }
.timeline li { position: relative; padding: 22px 0 22px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #fff; }
.tl-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 6px; font-size: .86rem; color: var(--ink-3); }
.tl-type { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; color: var(--blue-600); }
.tl-title { font-size: 1.3rem; margin: 0 0 .5em; }
.tl-quote { margin: 0 0 12px; padding: 14px 18px; border-left: 3px solid var(--blue-600); background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tl-quote p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.tl-detail { color: var(--ink-2); margin: 0 0 10px; font-size: .98rem; }
.tl-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.tl-link::after { content: " →"; }
