/* ============================================================
   Solid State Strategies — design system v2
   Warm + therapeutic, bold + modern.
   Concept: "The Throughline" — a route map connecting distinct
   paths back to one guide. Now with depth: parallax light-blobs,
   scroll reveals, and a bolder type/color scale.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #2A2130;
  --ink-soft: #4A3F4C;
  --cream: #FAF3E7;
  --paper: #FFFCF6;
  --rust: #C1542E;
  --rust-deep: #9E4022;
  --sage: #6B8F71;
  --sage-deep: #4F6E55;
  --gold: #E8A33D;
  --slate: #7A6E7C;
  --line: rgba(42, 33, 48, 0.13);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* ---------- Parallax blobs ---------- */
.blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  will-change: transform;
}
.blob-rust { background: var(--rust); width: 420px; height: 420px; top: -120px; left: -80px; opacity: 0.28; }
.blob-gold { background: var(--gold); width: 320px; height: 320px; top: 40px; right: -60px; opacity: 0.30; }
.blob-sage { background: var(--sage); width: 380px; height: 380px; bottom: -160px; left: 30%; opacity: 0.24; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-mark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); border-color: var(--rust); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 128px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 26px 0 26px;
  max-width: 15ch;
  background: linear-gradient(100deg, var(--ink) 45%, var(--rust-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { position: relative; z-index: 1; font-size: 19px; color: var(--ink-soft); max-width: 54ch; margin: 0 0 40px; }
.hero-cta { position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--rust), var(--rust-deep));
  color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(193, 84, 46, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(193, 84, 46, 0.65); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Route / waypoints ---------- */
.route { position: relative; padding: 116px 0 40px; }
.route-intro { max-width: 60ch; margin-bottom: 72px; position: relative; z-index: 1; }
.route-intro h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.8vw, 40px); margin: 16px 0 14px; }
.route-intro p { color: var(--ink-soft); font-size: 16.5px; }

.trail { position: relative; z-index: 1; }
.trail-line {
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--rust), var(--sage) 60%, var(--gold));
  border-radius: 2px;
}
.waypoint { position: relative; padding: 0 0 60px 76px; }
.waypoint:last-child { padding-bottom: 0; }
.pin {
  position: absolute;
  left: -2px; top: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust-deep);
  z-index: 2;
  box-shadow: 0 8px 20px -8px rgba(42,33,48,0.25);
  transition: transform 0.25s ease;
}
.waypoint:hover .pin { transform: scale(1.08) rotate(-4deg); }
.waypoint-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.waypoint:hover .waypoint-card { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(42,33,48,0.28); }
.waypoint-card .coord { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--sage-deep); text-transform: uppercase; }
.waypoint-card h3 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 12px 0 12px; }
.waypoint-card p { color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; margin: 0 0 22px; }
.waypoint-card a.enter { font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--rust); padding-bottom: 2px; }
.waypoint-card a.enter:hover { color: var(--rust-deep); }

/* ---------- Guide / about (bold dark section) ---------- */
.guide { position: relative; background: var(--ink); color: var(--cream); padding: 108px 0; margin-top: 88px; overflow: hidden; }
.guide .blob-rust { opacity: 0.35; }
.guide .blob-gold { opacity: 0.28; }
.guide .blob-sage { opacity: 0.22; }
.guide .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 68px; align-items: start; }
.guide h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); margin: 16px 0 22px; }
.guide p { color: rgba(250, 243, 231, 0.82); font-size: 16.5px; margin: 0 0 16px; }
.guide .eyebrow { color: var(--gold); }
.guide .eyebrow::before { background: var(--gold); }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.stat-list li { border-top: 1px solid rgba(250,243,231,0.18); padding-top: 18px; }
.stat-list .num { font-family: var(--mono); font-size: 13px; color: var(--gold); display: block; margin-bottom: 6px; }

/* ---------- Footer ---------- */
footer { padding: 60px 0; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .fmark { font-family: var(--mono); font-size: 13px; color: var(--slate); }
footer .flinks { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
footer .flinks a { font-size: 14px; text-decoration: none; color: var(--slate); font-weight: 600; }
footer .flinks a:hover { color: var(--ink); }

/* ---------- Subpage hero variant ---------- */
.subhero { position: relative; padding: 88px 0 76px; border-bottom: 1px solid var(--line); overflow: hidden; }
.subhero .wrap { position: relative; z-index: 1; }
.subhero .back {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}
.subhero .back:hover { color: var(--ink); }
.subhero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 20px 0 22px;
  max-width: 16ch;
}
.subhero .lede { font-size: 17.5px; color: var(--ink-soft); max-width: 56ch; }

.section { position: relative; padding: 84px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 24px; }
.section .lead-col { max-width: 62ch; }
.section p { color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 12px; }
.pillar { border-top: 3px solid var(--rust); padding-top: 20px; transition: transform 0.2s ease; }
.pillar:nth-child(2) { border-top-color: var(--sage); }
.pillar:nth-child(3) { border-top-color: var(--gold); }
.pillar:hover { transform: translateY(-3px); }
.pillar .coord { font-family: var(--mono); font-size: 11.5px; color: var(--sage-deep); letter-spacing: 0.08em; }
.pillar h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 10px 0 8px; }
.pillar p { font-size: 14.5px; margin: 0; }

.cta-band { position: relative; background: linear-gradient(135deg, var(--cream), #F3E3CE); padding: 72px 0; text-align: left; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 14px; }
.cta-band p { color: var(--ink-soft); max-width: 52ch; margin: 0 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .guide .grid { grid-template-columns: 1fr; gap: 44px; }
  .two-col { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .blob { filter: blur(48px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .blob { transform: none !important; }
}

:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
