.method-hero { background: #fff; }
.method-hero .mp-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: clamp(38px, 6vw, 90px);
  aspect-ratio: 1.75;
  background: linear-gradient(126deg, transparent 45%, #093b7dbf 45% 58%, transparent 58% 65%, #093b7d 65%);
  pointer-events: none;
}
.method-index, .method-rail, .method-chapters, .method-example, .method-handover {
  width: var(--inner-width);
  margin-inline: auto;
  color: var(--inner-ink);
}
.method-index, .method-example { scroll-margin-block-start: 14px; }
.method-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(25px, 5vw, 84px);
  align-items: end;
  margin-bottom: clamp(22px, 2.6vw, 40px);
}
:is(.method-heading, .method-chapter, .method-handover) h2 {
  margin: 0;
  color: var(--inner-blue);
  font-size: clamp(29px, 3.1vw, 47px);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
:is(.method-index, .method-heading, .method-chapter, .method-panel, .method-handover) p {
  margin: 0;
  color: var(--inner-copy);
  font-size: clamp(17px, 1.32vw, 21px);
  line-height: 1.62;
}
.method-index { margin-block: clamp(38px, 5vw, 78px); }
.method-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.7vw, 26px);
}
.method-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: var(--inner-ink);
}
.method-card:is(:hover, :focus-visible) { border-bottom-color: var(--inner-blue); }
.method-card-photo { position: relative; overflow: hidden; border-radius: 7px 7px 0 0; }
.method-card-photo img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.method-card-go {
  display: grid;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--inner-blue);
  color: #fff;
  border-radius: 7px 0 0 0;
}
.method-card h3 {
  margin: 0;
  padding: 19px 18px 9px;
  color: var(--inner-blue);
  font-size: clamp(21px, 1.65vw, 28px);
  letter-spacing: -.032em;
  line-height: 1.16;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.method-card p { padding: 0 18px 20px; font-size: 17px; line-height: 1.5; }

.method-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: clamp(21px, 3vw, 45px) 0;
  gap: 4px;
}
.method-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(5px, .85vw, 15px);
  border-bottom: 2px solid var(--rule);
  color: #294a6b;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.method-rail a::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--control-border);
  border-radius: 50%;
}
.method-rail a[aria-current="page"] { color: var(--inner-blue); border-color: var(--inner-blue); }
.method-rail a[aria-current="page"]::before { background: var(--inner-blue); border-color: var(--inner-blue); box-shadow: 0 0 0 3px var(--surface-hover); }
.method-rail a:hover { color: var(--inner-blue); border-color: var(--deep); }

.method-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "copy picture";
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 4.8vw, 78px);
}
.method-chapter + .method-chapter {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-areas: "picture copy";
  border-top: 1px solid var(--rule);
}
.method-chapter-copy { grid-area: copy; min-width: 0; }
.method-chapter-picture { grid-area: picture; min-width: 0; }
.method-chapter h2 { margin-bottom: 18px; }
.method-chapter-copy p + p { margin-top: 14px; }
.method-chapter .text-link, .method-example > .text-link { margin: 18px 0 0; max-width: 100%; line-height: 1.4; }
.method-figure { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.55; border-radius: 8px; }
.method-figure img, .method-enlarge { display: block; width: 100%; height: 100%; }
.method-figure img { object-fit: cover; }
.method-document { border: 1px solid var(--rule); background: var(--mist); }
.method-document img { object-fit: contain; padding: clamp(14px, 2vw, 30px); }
.method-enlarge:focus-visible { outline-offset: -4px; }
.method-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  color: var(--inner-blue);
}
.method-zoom::before, .method-zoom::after { content: ""; grid-area: 1/1; width: 13px; height: 2px; background: currentColor; }
.method-zoom::after { transform: rotate(90deg); }
.method-enlarge:is(:hover, :focus-visible) .method-zoom { background: var(--inner-blue); color: #fff; }

.method-example {
  margin-block: clamp(24px, 3vw, 48px);
  padding: clamp(24px, 3.2vw, 48px) 0;
  border-top: 3px solid var(--deep);
  background: #fff;
}
.method-example h2 { color: var(--deep); }
.method-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.method-choices[hidden], .method-panel[hidden] { display: none; }
.method-choices button {
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: #fff;
  color: var(--deep);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}
.method-choices button:hover { border-color: var(--deep); }
.method-choices button[aria-selected="true"] { border-color: var(--deep); background: var(--deep); color: #fff; }
.method-panel {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fff;
}
.method-choices[hidden] ~ .method-panel + .method-panel { margin-top: 16px; }
.method-panel-copy { align-self: center; padding: clamp(23px, 3.2vw, 49px); min-width: 0; }
.method-panel h3 {
  margin: 0 0 15px;
  color: var(--deep);
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.14;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.method-panel .method-figure { min-height: clamp(235px, 23vw, 350px); aspect-ratio: auto; border-radius: 0 6px 6px 0; }
.method-panel .method-figure > :is(img, a) { position: absolute; inset: 0; }
.method-panel .method-document { border: 0; border-left: 1px solid var(--rule); background: var(--mist); }
.method-choices button:focus-visible, .method-panel:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.method-handover {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(28px, 6vw, 90px);
  padding-block: clamp(27px, 3.7vw, 60px);
}
.method-handover h2 { margin-bottom: 14px; }
.method-handover .checklist { margin: 0; border-top: 2px solid var(--inner-blue); }
.method-handover .checklist li { font-size: clamp(17px, 1.3vw, 21px); color: var(--inner-ink); padding-block: 13px; }
.method-handover .checklist li::before { color: var(--inner-blue); }
.method-card:focus-visible, .method-chapter-copy.reveal:focus-within, .method-chapter-picture.reveal:focus-within { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .method-card-photo img { transition: transform .55s cubic-bezier(.2,.55,.3,1); }
  .method-card:is(:hover, :focus-visible) img { transform: scale(1.045); }
  .method-rail a, .method-choices button { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
  .method-panel[role="tabpanel"]:not([hidden]) .method-panel-copy { animation: method-copy-in .3s ease-out both; }
  .method-panel[role="tabpanel"]:not([hidden]) .method-figure img { animation: method-photo-in .5s ease-out both; }
  @keyframes method-copy-in { from { opacity: .4; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  @keyframes method-photo-in { from { opacity: .5; transform: scale(1.025); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1050px) { .method-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .method-heading, .method-handover, .method-panel { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .method-chapter, .method-chapter + .method-chapter { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "picture"; gap: 22px; }
  .method-rail { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 10px; }
  .method-rail a { min-height: 46px; }
  .method-chapter-picture .method-figure { aspect-ratio: 1.75; }
  .method-chapter-picture .method-document { aspect-ratio: 1.5; }
  .method-panel { gap: 0; }
  .method-panel .method-figure { aspect-ratio: 1.85; min-height: 0; border-radius: 0 0 6px 6px; }
  .method-panel .method-document { border: 0; border-top: 1px solid var(--rule); }
  .method-handover .checklist { margin-top: 9px; }
}
@media (max-width: 530px) {
  .method-cards { grid-template-columns: minmax(0,1fr); }
  .method-card-photo img { aspect-ratio: 2.15; }
  .method-heading h2, .method-handover h2, .method-chapter h2, .method-panel h3 { hyphens: auto; }
  .method-choices button { flex: 1 1 auto; padding: 8px 12px; font-size: 16px; overflow-wrap: anywhere; }
}
