/* ============================================================
   The Crucible Institute — Design System v2
   Modern-sleek: the prestige and openness of a world-class
   university lab. Ink on aged cream, ember for fire,
   bronze for earned gold.
   ============================================================ */

/* fonts loaded via <link preconnect> in each page head */

:root {
  --cream: #f6f0e4;
  --paper: #eee3d3;
  --paper-deep: #e5d7c2;
  --ink: #1c1815;
  --ink-soft: #3d362e;
  --muted: #6f6354;
  --ember: #b03a1d;
  --ember-deep: #8c2d15;
  --bronze: #96702e;
  --line: #d8c9b2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --maxw: 1080px;
  --maxw-prose: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* texture wash — kept very faint for a clean, open feel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(176,58,29,0.02), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(150,112,46,0.025), transparent 55%);
  z-index: 0;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; margin-top: 2.1em; }
p { margin: 0 0 1.15em; }
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); }
img { max-width: 100%; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}
.eyebrow.bronze { color: var(--bronze); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.prose { max-width: var(--maxw-prose); }
section { padding: 88px 0; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 240, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.04em; line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.94rem; }
.nav-links a:hover { color: var(--ember); text-decoration: none; }
.nav-links a.active { color: var(--ember); font-weight: 600; }

.btn {
  display: inline-block;
  background: var(--ember);
  color: #fdf9f0 !important;
  font-weight: 600; font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid var(--ember-deep);
  box-shadow: 0 1px 0 rgba(28,24,21,0.18);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--ember-deep); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink-soft);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--paper-deep); }
.btn.big { font-size: 1.05rem; padding: 14px 30px; }

/* ---------- hero (light, inner pages) ---------- */
.hero { padding: 88px 0 76px; }
.hero .lede { font-size: 1.18rem; }

.lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: var(--maxw-prose);
}
.tagline {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--ember);
  padding-left: 18px;
  margin: 0 0 1.6em;
}

/* ---------- dark image hero (landing) ---------- */
.hero-dark {
  position: relative;
  background: #0e0b09 url("img/crucible-pour.jpg") right center / cover no-repeat;
  color: #e9e1d2;
  padding: 120px 0 110px;
  border-bottom: 1px solid #2a231d;
}
.hero-dark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,11,9,0.88) 0%, rgba(14,11,9,0.62) 48%, rgba(14,11,9,0.18) 100%);
  z-index: 1;
}
.hero-dark .wrap { position: relative; z-index: 2; }
.hero-dark h1 { color: #f6f0e4; }
.hero-dark .lede { color: #d9cfbc; }
.hero-dark .lede strong, .hero-dark strong { color: #f6f0e4; }
.hero-dark .eyebrow { color: #e08a6b; }
.hero-dark blockquote {
  background: rgba(246,240,228,0.06);
  border-left-color: var(--bronze);
  color: #d9cfbc;
}
.hero-dark blockquote strong { color: #b3a888; }
.hero-dark .btn.ghost { color: #f6f0e4 !important; border-color: #8d8270; }
.hero-dark .btn.ghost:hover { background: rgba(246,240,228,0.08); }

/* ---------- cards & bands ---------- */
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: #e9e1d2; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #f6f0e4; }
.band-dark p { color: #d4c9b6; }
.band-dark .eyebrow { color: #e08a6b; }

/* ember CTA band */
.band-ember {
  position: relative;
  background: #0e0b09 url("img/ember-band.jpg") center bottom / cover no-repeat;
  color: #e9e1d2;
}
.band-ember::after { content: ""; position: absolute; inset: 0; background: rgba(14,11,9,0.45); z-index: 1; }
.band-ember .wrap { position: relative; z-index: 2; }
.band-ember h1, .band-ember h2, .band-ember h3 { color: #f6f0e4; }
.band-ember p { color: #d9cfbc; }
.band-ember a:not(.btn) { color: #e0a589; }

.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: #fffdf8;
  border: 1px solid #e3d8c4;
  border-radius: 10px;
  padding: 28px 28px 22px;
  box-shadow: 0 1px 2px rgba(28,24,21,0.04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(28,24,21,0.08); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.card .eyebrow { margin-bottom: 0.5rem; }

/* quote */
blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  background: var(--paper);
  border-left: 4px solid var(--bronze);
  border-radius: 0 6px 6px 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink-soft);
}
blockquote p { margin: 0 0 0.4em; }
blockquote .attr, blockquote strong { font-family: var(--sans); font-style: normal; font-size: 0.86rem; font-weight: 600; color: var(--muted); }

/* lists */
ul, ol { padding-left: 1.4em; margin: 0 0 1.3em; }
li { margin-bottom: 0.55em; }
li::marker { color: var(--ember); font-weight: 600; }

/* ---------- pillar pages ---------- */
.pillar-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.part-label {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bronze);
  border: 1px solid var(--bronze);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.pillar-body { padding: 48px 0 24px; }
.pillar-body h3 {
  position: relative;
  padding-top: 0.4em;
}
.pillar-body h3::before {
  content: "";
  display: block;
  width: 42px; height: 3px;
  background: var(--ember);
  margin-bottom: 12px;
  border-radius: 2px;
}

/* pdf download card */
.pdf-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 40px 0;
}
.pdf-card .pdf-icon {
  flex: none;
  width: 46px; height: 56px;
  border: 2px solid var(--ember);
  border-radius: 4px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  font-weight: 800; font-size: 0.66rem; letter-spacing: 0.06em;
  color: #fdf9f0;
}
.pdf-card .pdf-icon span { background: var(--ember); width: 100%; text-align: center; padding: 2px 0; border-radius: 0 0 1px 1px; }
.pdf-card h4 { margin: 0 0 3px; font-size: 1.04rem; }
.pdf-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.pdf-card .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .pdf-card { flex-wrap: wrap; } .pdf-card .btn { margin-left: 0; } }

/* prev / next journey nav */
.journey-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 40px 0 72px;
}
.journey-nav a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  color: var(--ink);
  background: #fffdf8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.journey-nav a:hover { border-color: var(--ember); box-shadow: 0 6px 18px rgba(28,24,21,0.07); text-decoration: none; }
.journey-nav .dir { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.journey-nav .next { text-align: right; grid-column: 2; }
.journey-nav .title { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; }

/* transition epigraph between pillars */
.transition-note {
  font-family: var(--serif); font-style: italic;
  color: var(--muted); font-size: 1.05rem;
  border-top: 1px solid var(--line);
  padding-top: 26px; margin-top: 48px;
}

/* ---------- method map ---------- */
.part-block { margin-bottom: 44px; }
.part-block > .part-head {
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px; margin-bottom: 22px;
}
.part-num {
  font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ember);
}
.pillar-link {
  display: block;
  padding: 16px 20px;
  border: 1px solid #e3d8c4;
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pillar-link:hover { border-color: var(--ember); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,24,21,0.08); }
.pillar-link .pl-title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; display: block; }
.pillar-link .pl-sub { font-size: 0.88rem; color: var(--muted); display: block; margin-top: 3px; }

/* ---------- stats / proof ---------- */
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--ember); line-height: 1; }
.stat .lbl { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 64px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; font-size: 1.05rem; }

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: #cdc2ae;
  padding: 56px 0 40px;
  margin-top: 40px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
footer h4 { color: #f6f0e4; font-size: 1rem; margin-bottom: 10px; }
footer a { color: #e0a589; }
footer .foot-brand { display: flex; align-items: center; gap: 16px; }
footer .foot-brand img { height: 96px; }
footer .fine { width: 100%; border-top: 1px solid #3a332b; padding-top: 18px; font-size: 0.82rem; color: #8d8270; }

@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; row-gap: 8px; padding: 10px 16px; }
  .nav-links { margin-left: 0; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; }
  .nav-links a { white-space: nowrap; font-size: 0.88rem; }
  .nav-links a.nav-hide-sm { display: none; }
  .nav-links .btn, .nav .btn { padding: 8px 14px; font-size: 0.88rem; margin-left: auto; }
  .brand img { height: 32px; }
  .brand-name { font-size: 0.92rem; }
  section { padding: 56px 0; }
  .hero { padding: 60px 0 52px; }
  .hero-dark { padding: 64px 0 60px; background-position: 74% bottom; }
}

/* ---------- v3: imagery + faq + about ---------- */
.img-band { display: block; width: 100%; height: 320px; object-fit: cover; border-top: 1px solid #2a231d; border-bottom: 1px solid #2a231d; }
.part-banner { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; border: 1px solid #2a231d; }

.faq details {
  border: 1px solid #e3d8c4; border-radius: 10px;
  background: #fffdf8; margin-bottom: 12px;
  padding: 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.08rem;
  padding: 18px 22px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.4rem; color: var(--ember); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--ink-soft); }

.cred-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (max-width: 720px) { .cred-grid { grid-template-columns: 1fr; } }
.cred { border-left: 3px solid var(--bronze); padding: 4px 0 4px 16px; }
.cred .deg { font-family: var(--serif); font-weight: 600; }
.cred .inst { font-size: .9rem; color: var(--muted); }

.evidence-link { font-weight: 600; }
