:root {
  --ph-ink: #0d1b2a;
  --ph-navy: #10263b;
  --ph-midnight: #07111f;
  --ph-teal: #2a9d8f;
  --ph-cyan: #35e3d1;
  --ph-cream: #f4f4f2;
  --ph-slate: #667280;
  --ph-line: rgba(13, 27, 42, .14);
  --ph-soft: #eef7f5;
  --ph-shadow: 0 18px 50px rgba(13, 27, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(42, 157, 143, .16), transparent 22rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--ph-cream) 62%, #eaf3f1 100%);
  color: var(--ph-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: -.04em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 27, 42, .96);
  color: white;
  border-bottom: 1px solid rgba(244, 244, 242, .12);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: white;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ph-cyan);
  border-radius: 9px;
  color: var(--ph-cyan);
  font-size: .8rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.top-nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ph-cyan);
}

.eyebrow {
  color: var(--ph-teal);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1rem;
  border: 1px solid var(--ph-line);
  border-radius: .4rem;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.teal {
  background: var(--ph-teal);
  border-color: var(--ph-teal);
  color: white;
}

.button.ghost {
  background: white;
  color: var(--ph-ink);
}

.pathways-hero,
.split-panel,
.card-grid,
.library-panel,
.article-hero,
.article-layout,
.connection-strip,
.contact-panel {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto;
}

.pathways-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(53, 227, 209, .22), transparent 18rem),
    linear-gradient(135deg, #f8fbfa 0%, #f4f4f2 48%, #e8f3f1 100%);
  border: 1px solid var(--ph-line);
  border-radius: 24px;
  box-shadow: var(--ph-shadow);
  overflow: hidden;
}

.pathways-hero__copy {
  position: relative;
  z-index: 1;
}

.pathways-hero__lead {
  max-width: 40rem;
  margin-top: 1.2rem;
  color: #41515f;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.pathways-map {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
}

.pathways-map::before {
  content: "";
  position: absolute;
  width: min(82vw, 520px);
  height: min(82vw, 520px);
  background:
    linear-gradient(135deg, rgba(42, 157, 143, .18), rgba(53, 227, 209, .08)),
    white;
  border: 1px solid rgba(42, 157, 143, .22);
  border-radius: 26px;
  box-shadow: 32px 42px 90px rgba(13, 27, 42, .14);
  transform: rotate(-8deg);
}

.pathways-map svg {
  position: relative;
  z-index: 1;
  width: min(92%, 520px);
  height: auto;
  fill: none;
  stroke: var(--ph-teal);
  stroke-linecap: round;
  stroke-width: 9;
}

.node {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  background: var(--ph-cyan);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(13, 27, 42, .2);
}

.node-a { top: 23%; left: 21%; }
.node-b { top: 34%; right: 18%; }
.node-c { bottom: 25%; left: 31%; }
.node-d { bottom: 33%; right: 24%; }

.split-panel,
.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background:
    linear-gradient(135deg, rgba(42, 157, 143, .07), transparent 38%),
    white;
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(13, 27, 42, .07);
}

.copy-stack {
  display: grid;
  gap: .85rem;
}

.copy-stack p {
  padding: 1rem;
  background: var(--ph-soft);
  border: 1px solid rgba(13, 27, 42, .08);
  border-left: 4px solid var(--ph-teal);
  border-radius: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card-grid.compact {
  width: 100%;
  margin: 0;
}

.card-grid > div {
  display: flex;
}

.card-grid > div .insight-card {
  width: 100%;
}

.insight-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem;
  background: white;
  border: 1px solid var(--ph-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(13, 27, 42, .08);
}

.insight-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.insight-card p:not(.eyebrow) {
  color: #41515f;
}

.insight-card a {
  margin-top: auto;
  color: var(--ph-teal);
  font-weight: 900;
  text-decoration: none;
}

.archetype-card {
  background:
    linear-gradient(135deg, rgba(42, 157, 143, .08), transparent 42%),
    white;
}

.library-panel {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background: white;
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(13, 27, 42, .07);
}

.library-panel__intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 1.4rem;
}

.library-panel__intro p:not(.eyebrow) {
  color: #41515f;
  font-size: 1.05rem;
}

.article-hero {
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 86% 10%, rgba(53, 227, 209, .18), transparent 20rem),
    var(--ph-midnight);
  color: var(--ph-cream);
  border: 1px solid rgba(244, 244, 242, .14);
  border-radius: 24px;
  box-shadow: var(--ph-shadow);
}

.article-hero h1 {
  max-width: 13ch;
}

.article-hero p:not(.eyebrow) {
  max-width: 48rem;
  margin-top: 1rem;
  color: rgba(244, 244, 242, .78);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
}

.research-article,
.reference-panel {
  background: white;
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(13, 27, 42, .07);
}

.research-article {
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.research-article section + section {
  margin-top: 2rem;
}

.research-article h2 {
  margin-bottom: .85rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.research-article p {
  max-width: 74ch;
  color: #41515f;
}

.research-article p + p {
  margin-top: .85rem;
}

.example-grid,
.cross-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.example-grid article,
.cross-link-card,
.failure-list li,
.consequence-list li {
  background: var(--ph-soft);
  border: 1px solid rgba(13, 27, 42, .08);
  border-radius: 16px;
}

.example-grid article {
  padding: 1rem;
  border-left: 4px solid var(--ph-teal);
}

.example-grid h3 {
  margin-bottom: .5rem;
  font-size: 1.25rem;
}

.failure-list,
.consequence-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.failure-list li,
.consequence-list li {
  padding: 1rem;
}

.failure-list strong,
.failure-list span {
  display: block;
}

.failure-list strong {
  margin-bottom: .35rem;
}

.failure-list span {
  color: #41515f;
}

.steps-panel {
  padding: 1rem;
  background: var(--ph-soft);
  border: 1px solid rgba(13, 27, 42, .08);
  border-left: 4px solid var(--ph-teal);
  border-radius: 16px;
}

.steps-panel ol {
  margin: 0;
  padding-left: 1.3rem;
}

.steps-panel p {
  margin: 0;
}

.steps-panel li + li {
  margin-top: .5rem;
}

.cross-link-card {
  display: block;
  padding: 1rem;
  text-decoration: none;
}

.cross-link-card span {
  display: block;
  margin-bottom: .35rem;
  color: var(--ph-teal);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cross-link-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.cross-link-card p {
  margin-top: .5rem;
  color: #41515f;
}

.reference-panel {
  position: sticky;
  top: 88px;
  padding: 1.2rem;
}

.reference-panel h2 {
  margin: .35rem 0 1rem;
  font-size: 1.8rem;
}

.reference-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-panel li {
  padding: 1rem 0;
  border-top: 1px solid var(--ph-line);
}

.reference-panel a {
  color: var(--ph-teal);
  font-weight: 900;
  text-decoration: none;
}

.reference-panel span {
  display: block;
  margin-top: .25rem;
  color: var(--ph-ink);
  font-size: .84rem;
  font-weight: 850;
}

.reference-panel p {
  margin-top: .35rem;
  color: #526170;
  font-size: .92rem;
}

.related-library {
  margin-bottom: 1rem;
}

.connection-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background:
    radial-gradient(circle at 88% 20%, rgba(53, 227, 209, .22), transparent 18rem),
    var(--ph-midnight);
  color: var(--ph-cream);
  border: 1px solid rgba(244, 244, 242, .14);
  border-radius: 24px;
  box-shadow: var(--ph-shadow);
}

.connection-strip p:not(.eyebrow) {
  max-width: 48rem;
  margin-top: .85rem;
  color: rgba(244, 244, 242, .78);
}

.contact-panel {
  margin-bottom: 2rem;
}

.contact-panel a,
.site-footer a {
  color: var(--ph-teal);
  font-weight: 900;
}

.site-footer {
  padding: 2rem;
  background: var(--ph-midnight);
  color: rgba(244, 244, 242, .78);
  text-align: center;
}

@media (max-width: 900px) {
  .site-header__inner,
  .top-nav,
  .connection-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .pathways-hero,
  .split-panel,
  .library-panel__intro,
  .article-layout,
  .contact-panel,
  .card-grid,
  .example-grid,
  .cross-link-grid {
    grid-template-columns: 1fr;
  }

  .reference-panel {
    position: static;
  }

  .pathways-map {
    min-height: 360px;
  }
}
