/* ============================================================
   寻向 XUNXIANG — design system
   Editorial / data-desk aesthetic: warm paper, brand purple
   (from the pinwheel logo: #9179aa / #f38762 / #ffdf81 /
   #9fd3f1), serif display type, monospace micro-labels,
   hairline-bordered grids.
   ============================================================ */

:root {
  --paper: #f7f5f1;
  --panel: #fdfcfb;
  --panel-tint: #f0edea;
  --ink: #262130;
  --ink-soft: #48405a;
  --muted: #7d7589;
  --brand: #6b5590;
  --brand-deep: #3e3358;
  --brand-wash: #ece7f2;
  --accent: #e0663c;
  --line: #ddd8d4;
  --line-strong: #bbb3b8;
  --serif: "Source Serif 4", "Noto Serif SC", "Songti SC", serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--brand); color: #fff; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.display {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.18;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.09rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--brand);
  flex: none;
}
.kicker.red { color: var(--accent); }
.kicker.red::before { background: var(--accent); }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- tags / pills ---------- */

.tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--brand);
  flex: none;
}
.tag.soon { color: var(--muted); }
.tag.soon::before { background: var(--line-strong); }
.tag.red::before { background: var(--accent); }
.tag.plain::before { display: none; }

/* ---------- buttons ---------- */

.btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--brand-deep);
  background: var(--brand);
  color: #f4f1e8;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--brand-deep); }
.btn .arr { font-family: var(--sans); }

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn.ghost:hover { background: var(--brand); color: #f4f1e8; }

.btn.light {
  background: #f4f1e8;
  color: var(--brand-deep);
  border-color: #f4f1e8;
}
.btn.light:hover { background: #fff; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 44px; width: auto; }
.brand .zh {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: 0.06em;
}
.brand .en {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.site-nav .btn {
  padding: 9px 18px;
  font-size: 0.7rem;
}

/* the generic .site-nav a color must not override button text */
.site-nav a.btn,
.site-nav a.btn:hover {
  color: #f6f2ea;
  border: 1px solid var(--brand-deep);
}

.lang-toggle {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- language switching ---------- */
/* Both languages live in the markup; the html lang attribute picks one. */
html[lang="en"] .lang-zh { display: none !important; }
html[lang="zh-CN"] .lang-en { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  mask-image: linear-gradient(115deg, transparent 42%, black 78%);
  -webkit-mask-image: linear-gradient(115deg, transparent 42%, black 78%);
  pointer-events: none;
}

.hero h1 { max-width: 15.5em; }
.hero .lede { margin-top: 28px; }
.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero em {
  font-style: normal;
  color: var(--brand);
}

/* ---------- stat band ---------- */

.stat-band { border-bottom: 1px solid var(--line); background: var(--panel); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat-cell {
  background: var(--panel);
  padding: 34px 30px 30px;
}
.stat-cell .num {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 500;
  color: var(--brand-deep);
  line-height: 1;
}
.stat-cell .num sup {
  font-size: 0.5em;
  color: var(--accent);
}
.stat-cell .lbl {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- generic section ---------- */

.section { padding: 96px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }
.section-head .lede { margin-top: 10px; }

/* ---------- program cards (五大板块) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.program-card {
  background: var(--panel);
  padding: 40px 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 250px;
  position: relative;
  transition: background 0.18s ease;
}
.program-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.program-card .idx {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.program-card h3 { font-size: 1.55rem; }
.program-card .en-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.program-card p { color: var(--ink-soft); font-size: 0.97rem; max-width: 34em; }
.program-card .go {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  gap: 8px;
}
a.program-card:hover { background: var(--brand-wash); }
a.program-card:hover .go { text-decoration: underline; text-underline-offset: 4px; }
.program-card.disabled { color: var(--muted); }
.program-card.disabled h3 { color: var(--ink-soft); }

/* ---------- testimonial cards ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quote-card {
  background: var(--panel);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote-card .mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--brand);
}
.quote-card blockquote {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex: 1;
}
.quote-card .who { border-top: 1px solid var(--line); padding-top: 18px; }
.quote-card .who .name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.quote-card .who .role {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.7;
}

/* ---------- network (schools & companies) ---------- */

.network-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.network-col { background: var(--panel); padding: 36px 38px 42px; }
.network-col .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.network-col h3 { font-size: 1.35rem; }
.network-col .count { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.12em; }
.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.name-grid li {
  font-size: 0.87rem;
  color: var(--ink-soft);
  padding: 3px 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.name-grid li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--line-strong);
  flex: none;
  position: relative;
  top: -2px;
}
.network-note {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- values grid (aboutus) ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-cell {
  background: var(--panel);
  padding: 38px 34px 42px;
}
.value-cell .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.value-cell h3 { font-size: 1.5rem; margin-bottom: 6px; }
.value-cell .en {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.value-cell p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- milestones ---------- */

.milestones { border-left: 1px solid var(--line); }
.milestone {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 34px;
  padding: 26px 0 26px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.milestone:last-child { border-bottom: none; }
.milestone::before {
  content: "";
  position: absolute;
  left: -5px; top: 40px;
  width: 9px; height: 9px;
  background: var(--brand);
}
.milestone .metric {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--brand-deep);
  line-height: 1.15;
}
.milestone .metric small {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.milestone p { color: var(--ink-soft); font-size: 0.97rem; align-self: center; }

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.team-cell {
  background: var(--panel);
  padding: 26px 20px 24px;
  text-align: center;
}
.team-cell img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  filter: grayscale(28%);
}
.team-cell .name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.team-cell .org {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.team-cell .role {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 8px;
}

/* ---------- notes: article archive ---------- */

.archive-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.archive-side {
  background: var(--panel);
  padding: 30px 26px;
}
.archive-side .grp { margin-bottom: 30px; }
.archive-side .grp-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.filter-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 7px 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  transition: background 0.12s ease;
}
.filter-link .n {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}
.filter-link:hover { background: var(--panel-tint); }
.filter-link.active {
  background: var(--brand);
  color: #f4f1e8;
}
.filter-link.active .n { color: rgba(244, 241, 232, 0.7); }

.archive-list { background: var(--panel); }
.archive-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 30px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.archive-row:last-child { border-bottom: none; }
.archive-row:hover { background: var(--brand-wash); }
.archive-row .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.archive-row h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.archive-row:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.archive-row p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-row .thumb {
  width: 150px; height: 100px;
  object-fit: cover;
  border: 1px solid var(--line);
  align-self: center;
}
.archive-empty {
  padding: 60px 34px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* latest three */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.latest-card {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: background 0.15s ease;
}
.latest-card:hover { background: var(--brand-wash); }
.latest-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.latest-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.latest-card h3 { font-size: 1.18rem; flex: 1; }
.latest-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.latest-card .date {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* excerpt cards */
.excerpt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.excerpt-card { background: var(--panel); padding: 32px 30px; }
.excerpt-card .person {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.excerpt-card .person img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(28%);
}
.excerpt-card .person .name { font-family: var(--serif); font-weight: 600; }
.excerpt-card .person .bio { font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.excerpt-card blockquote {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--brand);
  padding-left: 16px;
}

/* ---------- LXS program page ---------- */

.pledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pledge-cell { background: var(--panel); padding: 42px 40px; }
.pledge-cell .big {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--brand-deep);
  margin-bottom: 6px;
}
.pledge-cell .sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.pledge-cell p { color: var(--ink-soft); font-size: 0.95rem; }

.offer-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 1px;
}
.offer-block + .offer-block { margin-top: -1px; border-top: none; }
.offer-label {
  background: var(--panel-tint);
  padding: 38px 34px;
}
.offer-label .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.offer-label h3 { font-size: 1.6rem; }
.offer-label .en {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.offer-body { background: var(--panel); padding: 38px 40px; }
.offer-body h4 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 8px; }
.offer-body p { color: var(--ink-soft); font-size: 0.96rem; max-width: 52em; }
.offer-body .sub-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.offer-body .sub-cols .cell {
  border: 1px solid var(--line);
  padding: 22px 24px;
  background: var(--paper);
}
.offer-body .sub-cols h5 {
  font-family: var(--serif);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.offer-body .sub-cols p { font-size: 0.88rem; }

.criteria-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.criteria-col { background: var(--panel); padding: 40px 38px; display: flex; flex-direction: column; }
.criteria-col h3 { font-size: 1.45rem; margin-bottom: 4px; }
.criteria-col .en {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.check-list { margin-bottom: 30px; flex: 1; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "→";
  position: absolute;
  left: 2px;
  color: var(--brand);
  font-family: var(--mono);
}

/* ---------- join us roles ---------- */

.role-card {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: -1px;
}
.role-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 26px 34px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.role-head:hover { background: var(--brand-wash); }
.role-head h3 { font-size: 1.35rem; }
.role-head .position {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-head .chev {
  font-family: var(--mono);
  color: var(--brand);
  transition: transform 0.2s ease;
}
.role-card.open .role-head .chev { transform: rotate(90deg); }
.role-body {
  display: none;
  padding: 6px 34px 36px;
  border-top: 1px solid var(--line);
}
.role-card.open .role-body { display: block; }
.role-body .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 26px;
}
.role-body h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
  font-weight: 500;
}
.role-body li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.role-body li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 6px; height: 6px;
  background: var(--line-strong);
}
.role-body .apply-row { margin-top: 30px; }

/* ---------- contact strip ---------- */

.contact-strip {
  background: var(--brand-deep);
  color: #eee9db;
}
.contact-strip .container { padding-top: 88px; padding-bottom: 88px; }
.contact-strip .kicker { color: #b6aacb; }
.contact-strip .kicker::before { background: var(--accent); }
.contact-strip h2 { color: #f4f1e8; }
.contact-rows { margin-top: 46px; border-top: 1px solid rgba(238, 233, 219, 0.18); }
.contact-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(238, 233, 219, 0.18);
}
.contact-row h3 { font-size: 1.3rem; color: #f4f1e8; }
.contact-row .en {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b6aacb;
  margin-top: 4px;
}
.contact-row p { font-size: 0.94rem; color: #cfc8da; max-width: 40em; }
.contact-row .btn {
  background: transparent;
  border-color: rgba(238, 233, 219, 0.45);
  color: #f4f1e8;
}
.contact-row .btn:hover { background: #f4f1e8; color: var(--brand-deep); border-color: #f4f1e8; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--brand-deep);
  color: #a79cb5;
  border-top: 1px solid rgba(238, 233, 219, 0.14);
}
.site-footer .container {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer .brandline {
  font-family: var(--serif);
  color: #f4f1e8;
  font-size: 1.3rem;
}
.site-footer .brandline .mono { display: block; color: #8f83a0; margin-top: 6px; }
.site-footer .credits {
  font-size: 0.8rem;
  line-height: 1.9;
  max-width: 34em;
}
.site-footer a { color: #cfc8da; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 27, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-backdrop.show { display: flex; }
.modal-box {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  max-width: 400px;
  width: 100%;
}
.modal-box .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal-box .head .t { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.modal-box .head button {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.modal-box .body { padding: 24px; }
.modal-box .body img { width: 100%; }
.modal-box .hint {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 0 24px 22px;
}

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

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.page-hero .container {
  padding-top: 84px;
  padding-bottom: 84px;
  position: relative;
}
.page-hero.green {
  background: var(--brand-deep);
  color: #eee9db;
}
.page-hero.green h1 { color: #f4f1e8; }
.page-hero.green .lede { color: #cfc8da; }
.page-hero.green .kicker { color: #b6aacb; }
.page-hero.green .kicker::before { background: var(--accent); }
.page-hero .hero-cta { margin-top: 38px; }

/* ---------- cross links ---------- */

.crosslinks {
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.crosslinks a, .crosslinks span {
  flex: 1;
  min-width: 160px;
  background: var(--panel);
  padding: 22px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}
.crosslinks a { color: var(--brand); }
.crosslinks a:hover { background: var(--brand-wash); }
.crosslinks span { color: var(--muted); }
.crosslinks .here { background: var(--brand); color: #f4f1e8; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .quote-grid, .excerpt-grid, .latest-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-block { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .card-grid, .network-cols, .pledge-grid, .criteria-cols { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-side { border-bottom: 1px solid var(--line); }
  .milestone { grid-template-columns: 1fr; gap: 10px; }
  .contact-row { grid-template-columns: 1fr; gap: 14px; }
  .role-head { grid-template-columns: 1fr auto; }
  .role-head .position { display: none; }
  .role-body .cols { grid-template-columns: 1fr; gap: 24px; }
  .offer-body .sub-cols { grid-template-columns: 1fr; }
  .hero .container, .section { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .site-header .inner { padding: 0 20px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid, .excerpt-grid, .latest-grid, .value-grid, .stat-grid { grid-template-columns: 1fr; }
  .archive-row { grid-template-columns: 1fr; }
  .archive-row .thumb { width: 100%; height: 160px; }
  .name-grid { grid-template-columns: 1fr; }
}
