:root {
  --bg: #f7f6f1;
  --paper: #fffdf8;
  --ink: #18211f;
  --muted: #5b6763;
  --line: #ddd8cc;
  --teal: #0f766e;
  --teal-soft: #dff3ef;
  --blue: #315f9d;
  --blue-soft: #e5eefb;
  --amber: #9a6418;
  --amber-soft: #f5ead8;
  --coral: #a94735;
  --coral-soft: #f6e3de;
  --green: #416d3a;
  --green-soft: #e8f1dc;
  --shadow: 0 22px 60px rgba(24, 33, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 190px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 8px solid var(--teal);
  border-right-color: var(--amber);
  border-bottom-color: var(--blue);
  border-radius: 50%;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: var(--ink);
  color: white;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 50px;
}

.hero {
  min-height: min(690px, calc(100vh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 5vw, 60px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-hero {
  min-height: min(720px, calc(100vh - 108px));
}

.hero-copy {
  max-width: 650px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p,
blockquote {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.48rem);
  font-weight: 720;
}

blockquote {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: var(--teal-soft);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.visual {
  min-height: 430px;
  border-radius: 8px;
  position: relative;
}

.protocol-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.protocol-visual > div {
  min-height: 130px;
  padding: 24px;
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: 18px;
  align-content: center;
  background: var(--teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
}

.protocol-visual > div:nth-child(2) {
  background: var(--amber-soft);
  border-color: rgba(154, 100, 24, 0.24);
}

.protocol-visual > div:nth-child(3) {
  background: var(--blue-soft);
  border-color: rgba(49, 95, 157, 0.24);
}

.protocol-visual span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 1.65rem;
  font-weight: 950;
}

.protocol-visual strong {
  align-self: end;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.protocol-visual p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 760;
}

.predictive-visual {
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border: 1px solid rgba(49, 95, 157, 0.22);
  overflow: hidden;
}

.predictive-center {
  width: min(48%, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 10px solid var(--blue);
  border-radius: 50%;
  background: white;
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 2.15rem);
  font-weight: 950;
  line-height: 1.05;
}

.predictive-visual span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  transform: rotate(calc(var(--i) * 60deg)) translate(174px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
}

.loops-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.loop {
  padding: 28px;
  display: grid;
  align-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.loop h2 {
  font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.loop p {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 900;
}

.loop.old {
  background: var(--coral-soft);
  color: var(--coral);
}

.loop.new {
  background: var(--green-soft);
  color: var(--green);
}

.practice-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.practice-visual > div {
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 190px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.practice-visual span {
  width: 34px;
  height: 34px;
  border: 4px solid var(--teal);
  border-radius: 8px;
}

.practice-visual strong {
  font-size: 1.35rem;
}

.practice-visual p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}

.avoidance-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.avoidance-visual div {
  padding: 24px;
  display: grid;
  place-items: center;
  min-height: 190px;
  background: var(--amber-soft);
  border: 1px solid rgba(154, 100, 24, 0.24);
  border-radius: 8px;
  color: var(--amber);
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 950;
}

.avoidance-visual div:nth-child(4) {
  background: var(--coral-soft);
  color: var(--coral);
}

.stress-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stress-visual div {
  padding: 28px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stress-visual div:first-child {
  background: var(--coral-soft);
}

.stress-visual div:last-child {
  background: var(--teal-soft);
}

.stress-visual p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 760;
}

.evidence-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.evidence-visual span {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 950;
}

.condition-visual {
  padding: 24px;
  display: grid;
  align-content: center;
  background: var(--blue-soft);
  border: 1px solid rgba(49, 95, 157, 0.22);
}

.condition-visual h2 {
  text-align: center;
}

.condition-visual > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.condition-visual span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.focus-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.focus-strip div {
  padding: 18px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}

.focus-strip strong,
.focus-strip span {
  display: block;
}

.focus-strip strong {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.focus-strip span {
  color: #dfe9e4;
  font-weight: 760;
}

.video-band,
.index-section,
.sources-section,
.path-nav {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.video-band {
  background: var(--ink);
  color: white;
}

.video-band .kicker {
  color: #9ce0d7;
}

.video-band h2 {
  max-width: 760px;
}

.video-band p:last-child {
  max-width: 860px;
  margin-bottom: 0;
  color: #dfe9e4;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 720;
}

.lesson-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lesson-grid article {
  min-height: 410px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lesson-grid ul,
.source-card p,
.index-card p,
.condition-card p {
  color: var(--muted);
}

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 10px;
  font-weight: 690;
}

.source-grid,
.index-grid,
.condition-grid {
  display: grid;
  gap: 12px;
}

.source-grid {
  grid-template-columns: repeat(3, 1fr);
}

.index-grid {
  grid-template-columns: repeat(2, 1fr);
}

.condition-grid {
  grid-template-columns: repeat(4, 1fr);
}

.source-card,
.index-card,
.condition-card,
.path-nav a {
  display: block;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.source-card:hover,
.index-card:hover,
.condition-card:hover,
.path-nav a:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 26px rgba(24, 33, 31, 0.08);
}

.source-card span,
.index-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-card strong,
.index-card strong,
.condition-card strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.15;
}

.source-card p,
.index-card p,
.condition-card p {
  margin: 10px 0 0;
  font-weight: 680;
}

.path-nav > div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.path-nav a {
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 900;
}

.path-nav a[aria-current="page"] {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.path-nav span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
}

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 28px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}

.site-footer p {
  margin: 6px 0 0;
  color: #dfe9e4;
}

.site-footer a {
  align-self: center;
  color: white;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }

  .hero,
  .lesson-grid,
  .source-grid,
  .index-grid,
  .condition-grid,
  .focus-strip,
  .path-nav > div {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .visual {
    min-height: 360px;
  }

  .predictive-visual span {
    width: 124px;
    transform: rotate(calc(var(--i) * 60deg)) translate(132px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
  }

  .lesson-grid article {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 18px, 620px);
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.5rem);
  }

  .hero {
    padding: 20px;
  }

  .visual {
    min-height: auto;
  }

  .protocol-visual > div,
  .practice-visual,
  .avoidance-visual,
  .stress-visual,
  .evidence-visual,
  .condition-visual > div {
    grid-template-columns: 1fr;
  }

  .protocol-visual > div {
    min-height: 0;
  }

  .predictive-visual {
    min-height: 390px;
  }

  .predictive-center {
    width: 176px;
  }

  .predictive-visual span {
    width: 108px;
    min-height: 48px;
    font-size: 0.8rem;
    transform: rotate(calc(var(--i) * 60deg)) translate(112px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
  }

  .site-footer {
    flex-direction: column;
  }
}

