/* ---- Tokens ---- */
:root {
  --cream: #f5f3ee;
  --cream-2: #ece8dd;
  --cream-3: #e3ddcc;
  --ink: #1a3a2e;
  --ink-2: #2a4a3e;
  --ink-soft: rgba(26, 58, 46, 0.62);
  --ink-faint: rgba(26, 58, 46, 0.32);
  --rule: rgba(26, 58, 46, 0.18);
  --rule-strong: rgba(26, 58, 46, 0.45);
  --terracotta: #d97757;
  --terracotta-deep: #b85f3f;
  --moss: #8a9a5b;
  --paper: #fbf9f3;

  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--cream); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-strong { height: 1px; background: var(--ink); width: 100%; }

/* ---- Type ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display em { font-style: italic; color: var(--terracotta-deep); }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
  box-shadow: inset 0 0 0 4px var(--cream), 0 0 0 1px var(--ink) inset;
}
.brand em { color: var(--terracotta-deep); font-style: italic; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.active {
  background: var(--ink);
  color: var(--cream);
}

.header-cta {
  display: flex; gap: 8px; align-items: center;
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--ink-2); }
.btn-accent {
  background: var(--terracotta);
  color: var(--paper);
}
.btn-accent:hover { background: var(--terracotta-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--cream-2); }

.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ---- Hero ---- */
.hero {
  padding: clamp(48px, 9vw, 120px) 0 clamp(36px, 6vw, 72px);
  position: relative;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta-deep);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.hero-meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: end;
  padding-top: 24px;
}
.hero-lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 36ch;
  letter-spacing: -0.005em;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-self: end; justify-self: end;
}
@media (max-width: 760px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-actions { justify-self: start; }
}

.hero-search {
  margin-top: clamp(28px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 18px;
  padding: 8px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr auto;
  gap: 4px;
  align-items: stretch;
  box-shadow: 0 1px 0 var(--ink), 6px 6px 0 -2px var(--ink);
}
.hero-search .field {
  display: flex; flex-direction: column;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: text;
}
.hero-search .field:hover { background: var(--cream-2); }
.hero-search .field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-search .field input,
.hero-search .field select {
  border: 0;
  background: transparent;
  outline: none;
  padding: 4px 0 0;
  font-size: 16px;
  width: 100%;
}
.hero-search .field select { appearance: none; -webkit-appearance: none; }
.hero-search .submit {
  align-self: stretch;
}
@media (max-width: 760px) {
  .hero-search { grid-template-columns: 1fr; box-shadow: 0 1px 0 var(--ink), 4px 4px 0 -2px var(--ink); }
}

/* Marquee */
.marquee-wrap {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
}
.marquee {
  display: flex;
  gap: 56px;
  padding: 18px 0;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 44px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee span { display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after {
  content: "✦";
  color: var(--terracotta);
  font-style: normal;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section {
  padding: clamp(56px, 9vw, 112px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-head h2 em { font-style: italic; color: var(--terracotta-deep); }
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---- Causes Grid ---- */
.causes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.cause-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  transition: background .2s;
  cursor: pointer;
}
.cause-card:hover { background: var(--cream-2); }
.cause-card:hover .cause-name { color: var(--terracotta-deep); }
.cause-name {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color .2s;
}
.cause-meta {
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.cause-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cause-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--mono);
  transition: transform .2s, background .2s, color .2s;
}
.cause-card:hover .cause-arrow {
  background: var(--ink);
  color: var(--cream);
  transform: translate(2px, -2px);
}
@media (max-width: 1024px) {
  .causes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .causes { grid-template-columns: 1fr; }
}

/* ---- Manifesto ---- */
.manifesto {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(56px, 9vw, 120px) 0;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.manifesto h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--terracotta);
}
.manifesto p {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.45;
  margin: 0 0 20px;
  color: var(--cream);
}
.manifesto p strong { color: var(--terracotta); font-weight: 500; }
@media (max-width: 760px) {
  .manifesto-grid { grid-template-columns: 1fr; }
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.stat {
  padding: 32px 24px 0;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.stat-num em { font-style: italic; color: var(--terracotta); }
.stat-label {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Footer ---- */
.footer {
  background: var(--cream);
  padding: 64px 0 32px;
  border-top: 1px solid var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 15px; }
.footer li a:hover { color: var(--terracotta-deep); }
.footer-tagline {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 28ch;
  margin: 0 0 16px;
}
.footer-tagline em { font-style: italic; color: var(--terracotta-deep); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---- JOBS PAGE ---- */
.jobs-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--rule);
}
.jobs-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.jobs-hero h1 em { font-style: italic; color: var(--terracotta-deep); }
.jobs-hero .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

.jobs-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.search-box {
  flex: 1 1 320px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color .15s, background .15s;
}
.search-box:focus-within { border-color: var(--ink); background: var(--paper); }
.search-box input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 15px;
}
.search-box .clear {
  background: var(--cream-3);
  border: 0;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 12px;
}
.toolbar-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-left: auto;
}
.toolbar-meta b { color: var(--terracotta-deep); font-weight: 600; }

.jobs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 32px 0 96px;
  align-items: start;
}
@media (max-width: 1024px) {
  .jobs-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters {
    position: static !important;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 16px;
  }
  .filters-toggle { display: flex !important; }
}

.filters {
  position: sticky;
  top: 80px;
}
.filters-toggle {
  display: none;
  align-items: center; justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.filter-group:first-child { padding-top: 0; }
.filter-group h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.filter-group h4 .clear-btn {
  background: transparent; border: 0; padding: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--terracotta-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  color: var(--ink);
}
.filter-option .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.filter-option.active .count { color: var(--terracotta-deep); }
.filter-option input { display: none; }
.checkbox {
  width: 16px; height: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--paper);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .12s, border-color .12s;
}
.filter-option:hover .checkbox { border-color: var(--ink); }
.filter-option.active .checkbox {
  background: var(--ink);
  border-color: var(--ink);
}
.filter-option.active .checkbox::after {
  content: "";
  width: 7px; height: 4px;
  border-left: 1.5px solid var(--cream);
  border-bottom: 1.5px solid var(--cream);
  transform: rotate(-45deg) translate(1px, -1px);
}

.chip-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-size: 13px;
  transition: all .12s;
}
.chip.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.chip:hover:not(.active) { border-color: var(--ink); }

.salary-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.salary-row input[type="range"] {
  flex: 1;
  accent-color: var(--terracotta-deep);
}

/* Job list */
.job-list { display: flex; flex-direction: column; }
.empty {
  padding: 80px 24px;
  text-align: center;
  border: 1px dashed var(--rule-strong);
  border-radius: 16px;
  color: var(--ink-soft);
}
.empty h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--ink);
}

.job-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding .15s;
  cursor: pointer;
  position: relative;
}
.job-card:first-child { border-top: 1px solid var(--rule); }
.job-card:hover {
  padding-left: 8px;
  padding-right: 8px;
}
.job-card:hover .job-title { color: var(--terracotta-deep); }
.org-mark {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--cream-2);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  border: 1px solid var(--rule);
  color: var(--ink);
  position: relative;
}
.org-mark.verified::after {
  content: "✓";
  position: absolute;
  bottom: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 50%;
  font-size: 11px;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
  font-family: var(--sans);
  font-weight: 700;
}
.job-body { min-width: 0; }
.job-org {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.job-org .verified-badge {
  font-size: 9px;
  padding: 2px 6px;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 4px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.job-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 10px;
  transition: color .15s;
}
.job-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.job-meta .dot { color: var(--ink-faint); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink);
}
.tag.cause { background: transparent; border: 1px solid var(--ink); }
.tag.remote { background: var(--moss); color: var(--paper); border: 0; }
.tag.salary { background: var(--ink); color: var(--cream); }

.job-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  text-align: right;
}
.posted {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bookmark {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  display: grid; place-items: center;
  transition: all .15s;
}
.bookmark:hover { border-color: var(--ink); }
.bookmark.saved {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}
.bookmark svg { width: 16px; height: 16px; display: block; }

.impact-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--terracotta) 18%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--terracotta) 40%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  white-space: nowrap;
}
.impact-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta-deep);
}

@media (max-width: 720px) {
  .job-card { grid-template-columns: 44px 1fr; }
  .org-mark { width: 44px; height: 44px; font-size: 20px; border-radius: 10px; }
  .job-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

/* Save toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 100;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* sort select */
.sort-wrap {
  position: relative;
  display: inline-flex; align-items: center;
}
.sort-wrap select {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 8px 36px 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.sort-wrap::after {
  content: "↓";
  position: absolute; right: 14px;
  font-family: var(--mono);
  pointer-events: none;
  color: var(--ink-soft);
  font-size: 11px;
}

/* tab toggle for saved */
.list-tabs { display: flex; gap: 0; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px; }
.list-tabs button {
  border: 0; background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}
.list-tabs button.active {
  background: var(--ink); color: var(--cream);
}

/* fade in animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }

/* container variants */
.alt-bg { background: var(--paper); }

/* ---- JOB DETAIL ---- */
.detail {
  padding-bottom: 96px;
}
.detail-back {
  padding: 24px 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.detail-back button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.detail-back button:hover { color: var(--terracotta-deep); }
.detail-back .crumb-sep { color: var(--ink-faint); }

.detail-hero {
  padding: 16px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.detail-hero .org-line {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.detail-hero .org-line .org-mark {
  width: 48px; height: 48px; font-size: 20px; border-radius: 10px;
}
.detail-hero .org-line .org-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.detail-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 22ch;
}
.detail-hero h1 em { font-style: italic; color: var(--terracotta-deep); }
.detail-facts {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-size: 14px;
  color: var(--ink);
  align-items: center;
}
.detail-facts .f {
  display: inline-flex; align-items: center; gap: 8px;
}
.detail-facts .f-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail-facts .f-val { font-weight: 500; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  padding-top: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .apply-card { position: static !important; }
}

.detail-body section { margin-bottom: 48px; }
.detail-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.detail-body h2 em { font-style: italic; color: var(--terracotta-deep); }
.detail-body p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 64ch;
}
.detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.detail-body li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
  max-width: 64ch;
}
.detail-body li:last-child { border-bottom: 0; }
.detail-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 16px; height: 1px;
  background: var(--terracotta-deep);
}

.callout {
  background: var(--ink);
  color: var(--cream);
  padding: 32px;
  border-radius: 16px;
  margin: 32px 0;
}
.callout .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.callout .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Apply card */
.apply-card {
  position: sticky;
  top: 88px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 6px 6px 0 -2px var(--ink);
}
.apply-card .salary-big {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.apply-card .salary-cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.apply-card .row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.apply-card .row span:first-child {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.apply-card .row span:last-child { font-weight: 500; }
.apply-card .actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 20px;
}
.apply-card .btn { justify-content: center; padding: 14px 18px; }
.apply-card .impact-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.apply-card .impact-block .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 8px;
}
.apply-card .impact-block .text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
}

/* Similar jobs */
.similar {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--ink);
}
.similar h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 24px;
}
.similar h2 em { font-style: italic; color: var(--terracotta-deep); }
