.method-scene,
.correction-choice {
  isolation: isolate;
  padding-block: clamp(76px, 8vw, 128px);
  min-height: min(100svh, 1050px);
}

.method-scene {
  padding-block: clamp(60px, 5.5vw, 92px);
  background: #181c21;
  color: #f8f7f3;
}

.method-layout { min-width: 0; }

.method-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 100% 0%, #b47e282b, transparent 49%),
    repeating-radial-gradient(ellipse at 111% -45%, transparent 0 42px, #c9a66f18 43px, transparent 44px 80px);
  mask-image: linear-gradient(220deg, #000, transparent 62%);
}

.method-heading {
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, .72fr);
  gap: 15px clamp(48px, 7vw, 120px);
  margin-bottom: clamp(36px, 4.3vw, 64px);
}

.method-label,
.choice-label {
  font: 700 .72rem/1.45 var(--sans);
  letter-spacing: .16em;
}

.method-label {
  grid-column: 1 / -1;
  color: var(--accent);
}

.method-heading .section-title,
.choice-heading .section-title {
  margin: 0;
  font-size: clamp(48px, 5.9vw, 88px);
  line-height: .98;
  letter-spacing: -.035em;
}

.method-heading .section-title span {
  color: var(--accent);
  /* Keep the phrase together normally, but allow expanded text to wrap.
     The 1px tolerance preserves the existing fractional glyph overhang. */
  display: inline-block;
  width: max-content;
  max-width: calc(100% + 1px);
  white-space: normal;
}

.method-intro {
  color: #c8cdd0;
  max-width: 38ch;
  line-height: 1.65;
  margin: 0 0 4px;
}

.method-track {
  --track-gap: clamp(28px, 3.6vw, 66px);
  --track-color: #a48149;
  gap: var(--track-gap);
}

.method-track::before,
.method-track::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: calc((100% + var(--track-gap)) * 2 / 3);
  height: 1px;
  background: var(--track-color);
  pointer-events: none;
}

.method-track::after {
  background: linear-gradient(90deg, #c5913d, #ffd488);
  transform-origin: left;
}

.method-track > li {
  padding-top: 31px;
}

.method-track > li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #181c21;
  box-shadow: 0 0 0 5px #181c21;
  z-index: 1;
}

.method-step {
  color: var(--accent);
  font: 700 .82rem/1.3 var(--sans);
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

.method-track h3 {
  max-width: 17ch;
  min-height: 2.12em;
  margin: 11px 0 19px;
  font: 700 clamp(25px, 2.5vw, 38px)/1.06 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.method-track p,
.choice-branch p {
  margin: 0;
  font-size: clamp(.93rem, 1.04vw, 1.02rem);
  line-height: 1.65;
}

.method-track p {
  color: #cdd1d5;
}

.method-track p + p {
  margin-top: .85em;
}

.method-track strong {
  color: #f8f7f3;
}

.correction-choice {
  background:
    radial-gradient(ellipse at 86% 94%, #e7b85823, transparent 46%),
    #f6f2e9;
  color: var(--ink);
}

.choice-layout {
  max-width: 1090px;
}

.choice-label {
  color: #76521c;
  margin: 0 0 15px;
}

.choice-heading > p:last-child {
  max-width: 58ch;
  margin: 19px auto 0;
  color: #555651;
  line-height: 1.65;
}

.choice-fork {
  --fork-color: #aa8143;
  height: clamp(53px, 5.2vw, 84px);
  margin: 19px auto 0;
}

.choice-fork::before,
.choice-fork::after {
  content: "";
  position: absolute;
}

.choice-fork::before {
  top: 0;
  bottom: 50%;
  left: 50%;
  border-left: 1px solid var(--fork-color);
}

.choice-fork::after {
  inset: 50% 0 0;
  border: 1px solid var(--fork-color);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform-origin: center top;
}

.choice-branch {
  padding: 24px clamp(18px, 3.4vw, 55px) 1px;
}

.choice-branch::before {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a8782e;
}

.choice-branch h3 {
  align-self: center;
  margin: 0 0 19px;
  font: 700 clamp(28px, 2.9vw, 46px)/1.04 var(--display);
  letter-spacing: -.028em;
  text-align: center;
  text-wrap: balance;
}

.choice-branch h3 span {
  display: block;
}

.choice-branch p {
  color: #4b4d49;
}

.choice-branch .choice-note {
  padding: 12px 0 0;
  margin-top: 16px;
  border-top: 1px solid #cfc9be;
  color: #59584f;
  font-size: .85rem;
}

.choice-link {
  gap: 10px;
  margin-top: 17px;
  padding-block: 3px;
  border-bottom: 1px solid #ac7c35;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}

.choice-link .icon {
  width: 19px;
  height: 19px;
}

.choice-link:hover {
  border-bottom-color: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .method-track:not(.motion-in-view)::after {
    transform: scaleX(0);
 }

  .method-track.motion-in-view::after {
    animation: amber-track 1.05s cubic-bezier(.3,.5,.3,1) both;
 }

  .choice-fork.motion-in-view::after {
    animation: amber-fork .95s cubic-bezier(.3,.5,.3,1) backwards;
 }

  .choice-branch.motion-in-view h3 {
    animation: enter-page .9s var(--scene-ease) backwards;
 }

  @keyframes amber-track {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
 }

  @keyframes amber-fork {
    from { opacity: .25; transform: scaleX(.08); }
    to { opacity: 1; transform: scaleX(1); }
 }
}

@media (max-width: 950px) {
  .method-heading {
    grid-template-columns: minmax(0, 1.1fr) minmax(210px, .8fr);
 }

  .method-track {
    --track-gap: 24px;
 }

  .method-track h3 {
    font-size: 25px;
 }

}

@media (max-width: 760px) {
  .method-heading { display: block; }
  .method-scene,
  .correction-choice {
    min-height: auto;
    padding-block: clamp(52px, 10vw, 80px);
 }

  .method-heading {
    margin-bottom: 32px;
 }

  .method-heading .section-title,
  .choice-heading .section-title {
    font-size: clamp(41px, 8.2vw, 61px);
 }

  .method-heading .section-title {
    max-width: 15ch;
    margin: 12px 0 14px;
 }

  .method-intro {
    max-width: 56ch;
 }

  .method-track {
    display: block;
 }

  .method-track::before,
  .method-track::after {
    display: none;
 }

  .method-track > li {
    padding: 0 0 30px 28px;
 }

  .method-track > li:last-child {
    padding-bottom: 0;
 }

  .method-track > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 11px;
    bottom: -5px;
    left: 5px;
    background: var(--track-color);
    width: 1px;
    transform-origin: top;
 }

  @media (prefers-reduced-motion: no-preference) {
    .method-track > .motion-in-view:not(:last-child)::after {
      animation: method-mobile-rule .95s var(--scene-ease) both;
 }
    @keyframes method-mobile-rule {
      from { transform: scaleY(0); }
      to { transform: scaleY(1); }
 }
 }

  .method-track > li::before {
    top: 2px;
 }

  .method-track h3 {
    min-height: auto;
    max-width: none;
    margin: 6px 0 12px;
 }

  .method-track p,
  .choice-branch p {
    font-size: .95rem;
 }

  .choice-branch {
    padding-inline: 16px;
 }
}

@media (max-width: 590px) {
  .choice-heading {
    text-align: left;
 }

  .choice-heading > p:last-child {
    margin: 14px 0 0;
 }

  .choice-fork {
    display: none;
 }

  .choice-branches {
    position: relative;
    display: block;
    margin-top: 27px;
 }

  .choice-branch {
    padding: 0 0 24px 24px;
 }

  .choice-branch:first-child {
    border-left: 1px solid #ae884e;
 }

  .choice-branch:last-child {
    padding-bottom: 0;
 }

  .choice-branch::before {
    left: -3px;
    top: 9px;
 }

  .choice-branch h3 {
    align-self: flex-start;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: left;
 }

  .choice-branch h3 span {
    display: inline;
 }
}

