/* =========================================================
   STAIR Lab - Software Engineering for Trustworthy AI
   Colors taken from the lab logo (Texas State maroon & gold,
   plus the network blue).
   ========================================================= */

:root {
  --maroon: #5C1214;
  --maroon-2: #7A1F22;
  --maroon-ink: #3E0B0D;
  --blue: #026991;
  --blue-2: #0B82B0;
  --blue-soft: #E5F1F6;
  --gold: #A67F3F;
  --gold-2: #C9A46A;
  --gold-soft: #F4ECDF;
  --sand: #F8F5F1;
  --ink: #1E1A1A;
  --text: #3A3434;
  --muted: #6E6565;
  --line: #ECE5DE;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 20, 20, .05), 0 8px 24px rgba(60, 20, 20, .06);
  --shadow-hover: 0 2px 4px rgba(60, 20, 20, .06), 0 16px 40px rgba(60, 20, 20, .12);
  --head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--maroon); }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.wrap.narrow { width: min(940px, 100% - 3rem); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--maroon); color: #fff; padding: .6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; color: #fff; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }

.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.eyebrow.light { color: var(--gold-2); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn .ic { transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--maroon); color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fff; }
.btn-gold { background: var(--gold-2); color: var(--maroon-ink); }
.btn-gold:hover { background: #d8b67f; color: var(--maroon-ink); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(60, 20, 20, .05); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand img { width: 60px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--head); font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.brand-name b { color: var(--maroon); font-weight: 800; letter-spacing: .02em; }
.brand-sub { font-size: .72rem; color: var(--gold); font-weight: 600; letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  color: var(--text); padding: .5rem .85rem; border-radius: 999px; transition: all .15s;
}
.nav-links a:hover { color: var(--maroon); background: var(--sand); }
.nav-links a.active { color: var(--maroon); background: var(--gold-soft); }
.nav-links a.nav-cta { background: var(--maroon); color: #fff; margin-left: .5rem; }
.nav-links a.nav-cta:hover { background: var(--maroon-2); }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  cursor: pointer; padding: 10px; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--maroon); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.25rem; box-shadow: 0 12px 24px rgba(60, 20, 20, .08);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: .8rem .5rem; border-radius: 8px; }
  .nav-links a.nav-cta { margin: .5rem 0 0; text-align: center; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 4.5rem 0 4.5rem; background: var(--sand); }

.acronym { font-family: var(--head); font-size: 1.15rem; color: var(--text); margin-bottom: .9rem; }
.acronym b { color: var(--maroon); font-weight: 800; }

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(2, 105, 145, .10), transparent 70%),
    radial-gradient(500px 380px at 10% 90%, rgba(166, 127, 63, .12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%235C1214' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M20 30L80 60L140 25M80 60L60 120L130 130M80 60L130 130'/%3E%3C/g%3E%3Cg fill='%235C1214' fill-opacity='.08'%3E%3Ccircle cx='20' cy='30' r='4'/%3E%3Ccircle cx='80' cy='60' r='5'/%3E%3Ccircle cx='140' cy='25' r='3'/%3E%3Ccircle cx='60' cy='120' r='4'/%3E%3Ccircle cx='130' cy='130' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl {
  background: linear-gradient(90deg, var(--maroon) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-logo {
  background: #fff; border-radius: 24px; padding: 2.25rem 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-logo img { width: 100%; }

.stats {
  position: relative; margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 1.3rem 1.5rem; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--head); font-weight: 800; font-size: 2.1rem; color: var(--maroon); line-height: 1.1; }
.stat:nth-child(2) .stat-num { color: var(--gold); }
.stat:nth-child(3) .stat-num { color: var(--blue); }
.stat-label { font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo { max-width: 420px; transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(520px 300px at 90% 0%, rgba(2, 105, 145, .10), transparent 70%),
    var(--sand);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 48rem; font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-tight { padding: 0; }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: 2rem; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.section-head h2 { margin: 0; }
.section-sub { color: var(--muted); margin: .5rem 0 0; max-width: 44rem; }
.more { font-family: var(--head); font-weight: 700; font-size: .92rem; white-space: nowrap; }

.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- Thrust cards ---------- */

.thrust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .thrust-grid { grid-template-columns: 1fr; } }

.thrust-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; color: var(--text); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.thrust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold-2); color: var(--text); }
.thrust-card h3 { margin: 1.1rem 0 .5rem; }
.thrust-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.thrust-foot { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--head); font-weight: 700; font-size: .88rem; color: var(--maroon); }

.thrust-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: #fff; font-size: 1.4rem;
}
.thrust-icon.t0 { background: var(--maroon); }
.thrust-icon.t1 { background: var(--blue); }
.thrust-icon.t2 { background: var(--gold); }

/* ---------- Highlight band ---------- */

.highlight {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center;
  background: linear-gradient(120deg, var(--maroon-ink), var(--maroon) 60%, #6d1a1d);
  color: rgba(255, 255, 255, .85); border-radius: 20px; padding: 2rem 2.25rem;
  box-shadow: var(--shadow-hover); position: relative; overflow: hidden;
}
.highlight::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 30px solid rgba(201, 164, 106, .12);
}
.highlight h3 { color: #fff; font-size: 1.3rem; margin: .1rem 0 .4rem; }
.highlight p { margin: 0; font-size: .92rem; }
.highlight .au { color: rgba(255, 255, 255, .85); }
.highlight .au-pi, .highlight .au-lab { color: var(--gold-2); text-decoration: none; }
.highlight .btn { position: relative; z-index: 1; }
.highlight-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(201, 164, 106, .18); color: var(--gold-2); font-size: 1.8rem;
}
@media (max-width: 760px) { .highlight { grid-template-columns: 1fr; } }

/* ---------- News ---------- */

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.tag-award .news-icon { background: var(--gold-soft); color: var(--gold); }
.tag-people .news-icon { background: #F6E7E7; color: var(--maroon); }
.tag-service .news-icon { background: #EEF0E6; color: #5b6b2e; }
.tag-talk .news-icon { background: #EFE9F5; color: #5d3f86; }
.news-date { font-family: var(--head); font-weight: 700; font-size: .82rem; color: var(--maroon); margin-bottom: .15rem; }
.news-tag {
  font-family: var(--body); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: var(--sand); border-radius: 999px; padding: .1rem .5rem; margin-left: .35rem;
}
.news-text { margin: 0; font-size: .95rem; }
.news-text b { color: var(--ink); }

.timeline .news-item { border-bottom: 0; position: relative; padding: .85rem 0; }
.timeline .news-item::before {
  content: ""; position: absolute; left: 18px; top: 52px; bottom: -14px; width: 2px; background: var(--line);
}
.timeline .news-item:last-child::before { display: none; }

/* ---------- Publications ---------- */

.pub-list { display: flex; flex-direction: column; gap: .9rem; }

.pub {
  display: grid; grid-template-columns: 118px 1fr; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.pub:hover { border-color: var(--gold-2); box-shadow: var(--shadow); }

.venue-tag {
  display: inline-block; width: 100%; text-align: center;
  font-family: var(--head); font-weight: 800; font-size: .74rem; letter-spacing: .02em;
  padding: .35rem .4rem; border-radius: 6px; color: #fff; background: var(--maroon);
}
.venue-journal { background: var(--blue); }
.venue-workshop { background: var(--gold); }
.tool-card .venue-tag { width: auto; padding: .25rem .6rem; }

.pub-title { font-size: 1.02rem; margin: 0 0 .3rem; line-height: 1.4; }
.pub-authors { font-size: .9rem; margin: 0 0 .25rem; color: var(--text); }
.pub-where { font-size: .84rem; color: var(--muted); font-style: italic; margin: 0; }
.pub-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.pub-meta:empty { display: none; }

.au-pi { font-weight: 700; color: var(--maroon); }
.au-lab { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

.award {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--gold-soft); color: #7a5a24; border: 1px solid #e6d3b1;
  font-weight: 700; font-size: .78rem; border-radius: 999px; padding: .2rem .7rem;
}
.chip-link {
  font-weight: 600; font-size: .78rem; border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .7rem; color: var(--maroon);
}
.chip-link:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

@media (max-width: 600px) {
  .pub { grid-template-columns: 1fr; gap: .6rem; }
  .venue-tag { width: auto; }
}

/* filters */
.filters { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.filter-label { font-family: var(--head); font-weight: 700; font-size: .82rem; color: var(--muted); width: 3rem; }
.pill {
  font: 600 .88rem var(--head); cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  padding: .4rem .95rem; border-radius: 999px; transition: all .15s;
}
.pill:hover { border-color: var(--maroon); color: var(--maroon); }
.pill.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.search {
  display: flex; align-items: center; gap: .6rem; max-width: 460px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; color: var(--muted);
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search input { border: 0; outline: 0; font: inherit; width: 100%; color: var(--ink); background: transparent; }
.result-count { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.empty { color: var(--muted); padding: 2rem 0; }

.year-block { margin-bottom: 2.5rem; }
.year {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.6rem; color: var(--maroon); padding-bottom: .5rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold-soft);
}
.year-count {
  font: 700 .75rem var(--head); color: var(--gold); background: var(--gold-soft);
  border-radius: 999px; padding: .15rem .55rem;
}

/* ---------- Research page ---------- */

.thrust-detail { padding: 1rem 0 3rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.thrust-detail:last-child { border-bottom: 0; margin-bottom: 0; }
.thrust-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.thrust-head .eyebrow { margin-bottom: .2rem; }
.thrust-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.thrust-detail .lead { max-width: none; color: var(--text); font-size: 1.05rem; }
.mini-heading {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin: 1.75rem 0 .9rem;
}

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; color: var(--text); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--text); }
.tool-top { display: flex; justify-content: space-between; align-items: center; color: var(--blue); font-size: 1.4rem; margin-bottom: .9rem; }
.tool-card h3 { margin-bottom: .4rem; }
.tool-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.tool-link { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .88rem; color: var(--maroon); }

/* ---------- People ---------- */

.avatar { border-radius: 50%; object-fit: cover; background: var(--sand); }
.avatar-initials {
  display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--blue));
}
.avatar.sm { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar.md { width: 104px; height: 104px; font-size: 1.8rem; }
.avatar.xl { width: 220px; height: 220px; font-size: 3.5rem; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--gold-2), var(--shadow); }
.avatar.md, .avatar.sm { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-soft); }

.pi-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.5rem;
  box-shadow: var(--shadow); margin-bottom: 3.5rem;
}
.pi-photo { display: flex; justify-content: center; }
.pi-body h2 { margin-bottom: .2rem; }
.pi-role { color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.pi-teaching { font-size: .93rem; color: var(--muted); }
@media (max-width: 820px) { .pi-card { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.5rem; } }

.socials { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.social {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--maroon); transition: all .15s;
}
.social:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.people-group { margin-bottom: 3rem; }
.group-title {
  font-size: 1.3rem; color: var(--maroon); display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.group-title::after { content: ""; flex: 1; height: 2px; background: var(--gold-soft); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }

.person {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.25rem 1.4rem;
  transition: transform .2s, box-shadow .2s;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.person-name { font-size: 1.08rem; margin: 1rem 0 .15rem; }
.person-role { font-size: .85rem; color: var(--gold); font-weight: 600; margin: 0 0 .6rem; }
.person-interests { font-size: .88rem; color: var(--muted); margin: 0 0 .5rem; }
.person-papers {
  display: inline-flex; gap: .35rem; align-items: baseline; text-align: left;
  font-size: .8rem; color: var(--blue); background: var(--blue-soft); border-radius: 8px; padding: .35rem .6rem; margin: 0;
}
.person .socials { justify-content: center; margin-top: auto; padding-top: .9rem; }
.person .socials:empty { display: none; }

.mini-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; }
.mini-person {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem .75rem 1.1rem; color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.mini-person:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.mini-person .avatar { margin-bottom: .7rem; }
.mini-name { font-family: var(--head); font-weight: 700; font-size: .93rem; color: var(--ink); line-height: 1.3; }
.mini-role { font-size: .78rem; color: var(--gold); font-weight: 600; }

.join { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.join-steps { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.join-step { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 1.1rem 1.3rem; width: 100%; }
.join-step b { font-family: var(--head); color: var(--maroon); }
.join-step p { margin: .3rem 0 0; font-size: .94rem; color: var(--muted); }
@media (max-width: 820px) { .join { grid-template-columns: 1fr; gap: 1.5rem; } }

.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--gold-2); } 100% { box-shadow: none; } }

/* ---------- CTA ---------- */

.cta { background: var(--blue); color: rgba(255, 255, 255, .9); padding: 3.25rem 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='1.5'%3E%3Cpath d='M20 30L80 60L140 25M80 60L60 120L130 130M80 60L130 130'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.15'%3E%3Ccircle cx='20' cy='30' r='4'/%3E%3Ccircle cx='80' cy='60' r='5'/%3E%3Ccircle cx='140' cy='25' r='3'/%3E%3Ccircle cx='60' cy='120' r='4'/%3E%3Ccircle cx='130' cy='130' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--maroon-ink); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 0; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--gold-2); }
.site-footer h4 { color: var(--gold-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1.2fr .8fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img {
  width: 96px; background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 1rem;
}
.footer-brand b { color: #fff; font-family: var(--head); font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0 1.5rem; font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
