/* v8 — quieter typography and an editorial learning path */

.p8-site {
  --p8-porcelain: #fbfbfa;
  --p8-ink: #202124;
  --p8-graphite: #63666a;
  --p8-mist: #edf4f5;
  --p8-coral: #d75f55;
  --p8-line: rgba(32, 33, 36, 0.12);
  color: var(--p8-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  font-feature-settings: "palt" 1;
  font-weight: 400;
  letter-spacing: 0;
}

.p8-site :is(h1, h2, h3) {
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
}

.p8-site main h2 {
  font-size: clamp(1.95rem, 3.35vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.38;
}

.p8-site main h3 {
  font-weight: 500;
}

.p8-site .p5-brand-copy b {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.p8-site .p6-section-label,
.p8-site .p7-guide-label {
  font-weight: 500;
}

/* Homepage: lower the volume and let the sequence carry the page. */

.p8-site .p7-hero {
  padding: clamp(8rem, 10vw, 9.5rem) 0 clamp(3.5rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 50% 10%, rgba(222, 238, 240, 0.52), transparent 25rem),
    var(--p8-porcelain);
}

.p8-site .p7-hero h1 {
  margin-top: 1.35rem;
  font-size: clamp(3rem, 5.7vw, 5.45rem);
  font-weight: 500;
  letter-spacing: -0.047em;
  line-height: 1.08;
}

.p8-site .p7-hero h1 small {
  margin-bottom: 0.65rem;
  color: var(--p8-graphite);
  font-size: 0.22em;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.p8-site .p7-hero-copy > p:last-of-type {
  max-width: 42rem;
  margin-top: 1.55rem;
  color: var(--p8-graphite);
  font-size: 0.98rem;
  line-height: 1.95;
}

.p8-site .p7-hero-deck {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.p8-site .p7-start {
  padding: clamp(4.8rem, 7vw, 6.8rem) 0 clamp(6rem, 8vw, 8rem);
}

.p8-site .p7-start-head h2 {
  max-width: 49rem;
  font-size: clamp(2.1rem, 3.75vw, 3.65rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.34;
}

.p8-site .p7-start-head > p:last-child {
  max-width: 40rem;
  font-size: 0.9rem;
}

.p8-site .p7-start-layout {
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.p8-site .p7-start-feature figure {
  border-radius: 1.5rem;
}

.p8-site .p7-start-feature h3 {
  max-width: 35rem;
  font-size: clamp(1.45rem, 2.35vw, 2.2rem);
  font-weight: 500;
  line-height: 1.48;
}

.p8-site .p7-curriculum {
  position: relative;
  border-top: 0;
}

.p8-site .p7-curriculum::before {
  position: absolute;
  top: 2.25rem;
  bottom: 2.25rem;
  left: 1rem;
  width: 1px;
  background: linear-gradient(var(--p8-coral), rgba(215, 95, 85, 0.14));
  content: "";
}

.p8-site .p7-curriculum a {
  min-height: 6.8rem;
  grid-template-columns: 2rem 1fr auto;
  padding: 1rem 0.15rem;
}

.p8-site .p7-curriculum a > span {
  position: relative;
  z-index: 1;
  padding-block: 0.35rem;
  background: #fff;
  text-align: center;
}

.p8-site .p7-curriculum h3 {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 500;
}

.p8-site .p7-curriculum small {
  font-size: 0.7rem;
}

.p8-site .p6-section-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.52fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.p8-site .p6-section-head h2 {
  font-size: clamp(1.95rem, 3.35vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.p8-site .p6-section-head > p {
  max-width: 28rem;
  font-size: 0.86rem;
  line-height: 1.9;
}

.p8-site .p6-practice-list h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.42;
}

.p8-site .p6-investment h2,
.p8-site .p6-consult h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  font-weight: 500;
}

.p8-site .p6-business h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 500;
}

.p8-site .p6-journal-grid .is-feature h3 {
  font-size: clamp(1.4rem, 2.35vw, 2.1rem);
  font-weight: 500;
}

/* Guide hero: copy and illustration share the first view. */

.p8-guide-site {
  background: #f2f4f4;
}

.p8-guide-site .p7-guide-hero {
  padding: 7.25rem 0 4.5rem;
  background:
    radial-gradient(circle at 82% 30%, rgba(221, 239, 241, 0.62), transparent 22rem),
    var(--p8-porcelain);
}

.p8-guide-site .p7-guide-hero > .p5-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(27rem, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.p8-guide-site .p7-breadcrumb {
  grid-column: 1 / -1;
}

.p8-guide-site .p7-guide-hero-copy {
  max-width: 34rem;
  margin: 3.2rem 0 0;
  text-align: left;
}

.p8-guide-site .p7-guide-hero-copy .p7-guide-label {
  justify-content: flex-start;
}

.p8-guide-site .p7-guide-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 4.1vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -0.043em;
  line-height: 1.3;
}

.p8-guide-site .p7-guide-hero-copy > p:nth-of-type(2) {
  max-width: 32rem;
  margin: 1.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.95;
}

.p8-guide-site .p7-guide-hero dl {
  max-width: none;
  margin: 1.8rem 0 0;
  grid-template-columns: 1fr;
}

.p8-guide-site .p7-guide-hero dl > div {
  padding: 0.75rem 0.2rem;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  gap: 0.8rem;
}

.p8-guide-site .p7-guide-hero dl > div + div {
  border-top: 1px solid var(--p8-line);
  border-left: 0;
}

.p8-guide-site .p7-guide-hero dd {
  margin-top: 0;
}

.p8-guide-site .p7-guide-cover {
  margin-top: 3.2rem;
  aspect-ratio: 16 / 10;
  border-radius: 2.2rem 0.7rem 2.2rem 0.7rem;
  box-shadow: 0 2rem 5rem rgba(57, 82, 91, 0.1);
  transform: rotate(0.4deg);
}

/* Three phases become one connected route. */

.p8-guide-site .p7-guide-summary {
  padding: clamp(4rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--p8-line);
  border-bottom: 1px solid var(--p8-line);
  background: #fff;
}

.p8-guide-site .p7-guide-summary h2 {
  max-width: 40rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.p8-guide-site .p7-guide-stages {
  position: relative;
  margin-top: 3rem;
  border: 0;
}

.p8-guide-site .p7-guide-stages::before {
  position: absolute;
  top: 0.42rem;
  right: 16.666%;
  left: 16.666%;
  height: 1px;
  background: rgba(215, 95, 85, 0.35);
  content: "";
}

.p8-guide-site .p7-guide-stages > div {
  position: relative;
  min-height: 10.5rem;
  padding: 2.15rem 1.6rem 1.2rem;
  border: 0;
  text-align: center;
}

.p8-guide-site .p7-guide-stages > div + div {
  border: 0;
}

.p8-guide-site .p7-guide-stages > div::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--p8-coral);
  box-shadow: 0 0 0 1px rgba(215, 95, 85, 0.28);
  content: "";
  transform: translateX(-50%);
}

.p8-guide-site .p7-guide-stages h3 {
  font-size: 1.18rem;
  font-weight: 500;
}

.p8-guide-site .p7-guide-note {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

/* Editorial sheets: one chapter, one visual page. */

.p8-guide-site .p7-guide-layout {
  padding: clamp(4.5rem, 7vw, 7rem) 0 clamp(6rem, 9vw, 9rem);
  grid-template-columns: 13.5rem minmax(0, 51rem);
  gap: clamp(3rem, 5vw, 5rem);
}

.p8-guide-site .p7-guide-toc {
  padding: 1rem 1.1rem;
  border: 1px solid var(--p8-line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.p8-guide-site .p7-guide-toc > p {
  padding: 0 0.35rem 0.75rem;
}

.p8-guide-site .p7-guide-toc a {
  margin-inline: -0.35rem;
  padding: 0.75rem 0.35rem;
  border-radius: 0.55rem;
  transition: background-color 220ms ease, transform 220ms ease;
}

.p8-guide-site .p7-guide-toc a:hover {
  background: var(--p8-mist);
  transform: translateX(0.18rem);
}

.p8-guide-site .p7-guide-toc b {
  font-weight: 500;
}

.p8-guide-site .p7-guide-body {
  display: grid;
  gap: 2.25rem;
}

.p8-guide-site .p7-guide-chapter[data-chapter] {
  position: relative;
  padding: clamp(2.25rem, 4.5vw, 3.6rem);
  overflow: visible;
  border: 1px solid var(--p8-line);
  border-radius: 2.25rem 0.7rem 2.25rem 0.7rem;
  background: #fff;
  scroll-margin-top: 7rem;
}

.p8-guide-site .p7-guide-chapter[data-chapter]:nth-child(even) {
  background: linear-gradient(145deg, #fff 58%, rgba(231, 241, 242, 0.68));
}

.p8-guide-site .p7-guide-chapter[data-chapter]::after {
  position: absolute;
  top: 1.1rem;
  right: 1.35rem;
  color: rgba(215, 95, 85, 0.1);
  content: attr(data-chapter);
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

.p8-guide-site .p7-guide-chapter + .p7-guide-chapter {
  padding-top: clamp(2.25rem, 4.5vw, 3.6rem);
  border-top: 1px solid var(--p8-line);
}

.p8-guide-site .p7-guide-chapter h2 {
  position: relative;
  z-index: 1;
  max-width: 39rem;
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.48;
}

.p8-guide-site .p7-guide-chapter > p {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  margin-top: 1.2rem;
  color: #44464a;
  font-size: 0.95rem;
  line-height: 2;
}

.p8-guide-site .p7-guide-inline-image {
  margin-top: 2.4rem;
  margin-right: -3.8rem;
  margin-left: 1.5rem;
  border-radius: 1.7rem 0.45rem 1.7rem 0.45rem;
  box-shadow: 0 1.5rem 3.5rem rgba(57, 82, 91, 0.11);
}

.p8-guide-site .p7-guide-chapter:nth-child(even) .p7-guide-inline-image {
  margin-right: 1.5rem;
  margin-left: -3.8rem;
  border-radius: 0.45rem 1.7rem 0.45rem 1.7rem;
}

.p8-guide-site .p7-pauu-callout {
  margin-top: 2.6rem;
  padding: 1.15rem 1.5rem 1.15rem 0.45rem;
  grid-template-columns: 6.7rem 1fr;
  border-radius: 1.2rem;
  background: var(--p8-mist);
}

.p8-guide-site .p7-pauu-callout img {
  margin-block: -1.8rem -1rem;
}

.p8-guide-site .p7-pauu-callout b {
  font-weight: 500;
}

.p8-guide-site .p7-guide-flow > div {
  border: 1px solid rgba(32, 33, 36, 0.07);
  background: var(--p8-mist);
}

.p8-guide-site .p7-guide-table-wrap {
  border: 1px solid var(--p8-line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.p8-guide-site .p7-guide-table-wrap th,
.p8-guide-site .p7-guide-table-wrap td {
  padding: 0.95rem 1rem;
}

.p8-guide-site .p7-guide-result {
  padding: 1.05rem 1.2rem;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  border: 0;
  border-radius: 0.9rem;
  background: #fff4f1;
}

.p8-guide-site .p7-guide-result span {
  margin-top: 0;
}

.p8-guide-site .p7-guide-actions {
  display: grid;
  gap: 0.65rem;
  border: 0;
}

.p8-guide-site .p7-guide-actions li {
  padding: 1.15rem 1.25rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--p8-mist);
}

.p8-guide-site .p7-guide-post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  border: 0;
}

.p8-guide-site .p7-guide-post-list article {
  padding: 1.25rem;
  display: block;
  border: 0;
  border-radius: 0.9rem;
  background: var(--p8-mist);
}

.p8-guide-site .p7-guide-post-list h3 {
  margin-top: 0.55rem;
  font-size: 1.05rem;
}

.p8-guide-site .p7-guide-post-list p {
  margin-top: 0.55rem;
}

.p8-guide-site .p7-guide-rule,
.p8-guide-site .p7-formula,
.p8-guide-site .p7-guide-finish {
  border-radius: 1.1rem;
  background: var(--p8-mist);
}

.p8-guide-site .p7-guide-next {
  margin-top: 1rem;
  border: 1px solid var(--p8-line);
  border-radius: 1.5rem;
  background: #fff;
}

.p8-guide-site .p7-guide-next h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 500;
}

@media (max-width: 1080px) {
  .p8-guide-site .p7-guide-hero > .p5-shell {
    max-width: 52rem;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .p8-guide-site .p7-guide-hero-copy {
    max-width: 47rem;
  }

  .p8-guide-site .p7-guide-cover {
    margin-top: 2.8rem;
    aspect-ratio: 16 / 9;
  }

  .p8-guide-site .p7-guide-layout {
    max-width: 54rem;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .p8-guide-site .p7-guide-toc {
    position: static;
  }

  .p8-guide-site .p7-guide-toc nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 1rem;
  }
}

@media (max-width: 720px) {
  .p8-site main h2,
  .p8-site .p6-section-head h2 {
    font-size: 1.95rem;
    letter-spacing: -0.03em;
    line-height: 1.45;
  }

  .p8-site .p7-hero {
    padding: 7.2rem 0 3.4rem;
  }

  .p8-site .p7-hero h1 {
    font-size: clamp(2.45rem, 11.8vw, 3.4rem);
    letter-spacing: -0.045em;
    line-height: 1.14;
  }

  .p8-site .p7-start-head h2 {
    font-size: 2.05rem;
  }

  .p8-site .p7-start-feature h3 {
    font-size: 1.45rem;
  }

  .p8-site .p7-curriculum a {
    min-height: 6.4rem;
  }

  .p8-site .p6-practice-list h3,
  .p8-site .p6-investment h2,
  .p8-site .p6-consult h2 {
    font-size: 1.9rem;
  }

  .p8-guide-site .p7-guide-hero {
    padding: 6.4rem 0 3.6rem;
  }

  .p8-guide-site .p7-guide-hero-copy {
    margin-top: 2.7rem;
  }

  .p8-guide-site .p7-guide-hero h1 {
    font-size: clamp(2.05rem, 9.8vw, 2.75rem);
    line-height: 1.38;
  }

  .p8-guide-site .p7-guide-cover {
    border-radius: 1.35rem 0.45rem 1.35rem 0.45rem;
    transform: none;
  }

  .p8-guide-site .p7-guide-summary h2 {
    font-size: 1.85rem;
  }

  .p8-guide-site .p7-guide-stages {
    grid-template-columns: 1fr;
  }

  .p8-guide-site .p7-guide-stages::before {
    top: 0.55rem;
    right: auto;
    bottom: 0.55rem;
    left: 0.42rem;
    width: 1px;
    height: auto;
  }

  .p8-guide-site .p7-guide-stages > div {
    min-height: auto;
    padding: 0 0 1.7rem 2.2rem;
    text-align: left;
  }

  .p8-guide-site .p7-guide-stages > div::before {
    top: 0.05rem;
    left: 0;
    transform: none;
  }

  .p8-guide-site .p7-guide-note {
    margin-top: 0.7rem;
    text-align: left;
  }

  .p8-guide-site .p7-guide-layout {
    padding-top: 3.5rem;
  }

  .p8-guide-site .p7-guide-toc nav {
    grid-template-columns: 1fr;
  }

  .p8-guide-site .p7-guide-chapter[data-chapter] {
    padding: 1.5rem;
    border-radius: 1.5rem 0.45rem 1.5rem 0.45rem;
  }

  .p8-guide-site .p7-guide-chapter + .p7-guide-chapter {
    padding-top: 1.5rem;
  }

  .p8-guide-site .p7-guide-chapter[data-chapter]::after {
    top: 0.8rem;
    right: 0.9rem;
    font-size: 2.8rem;
  }

  .p8-guide-site .p7-guide-chapter h2 {
    max-width: 90%;
    font-size: 1.72rem;
    letter-spacing: -0.025em;
    line-height: 1.52;
  }

  .p8-guide-site .p7-guide-chapter > p {
    font-size: 0.93rem;
    line-height: 1.95;
  }

  .p8-guide-site .p7-guide-inline-image,
  .p8-guide-site .p7-guide-chapter:nth-child(even) .p7-guide-inline-image {
    margin-right: 0;
    margin-left: 0;
    border-radius: 1.1rem 0.35rem 1.1rem 0.35rem;
  }

  .p8-guide-site .p7-pauu-callout {
    grid-template-columns: 5.2rem 1fr;
  }

  .p8-guide-site .p7-guide-result {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .p8-guide-site .p7-guide-post-list {
    grid-template-columns: 1fr;
  }

  .p8-guide-site .p7-guide-next {
    border-radius: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p8-guide-site .p7-guide-toc a {
    transition: none;
  }
}
