/* Original artwork, integrated with the existing Atlas layout. */
.interaction-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:30px;align-items:start;margin-bottom:22px}
.results-page .interaction-heading h2,.interaction-heading h2{font:600 clamp(26px,2.4vw,34px)/1.15 var(--sans);letter-spacing:-.8px;margin:0;color:#193b30}
.interaction-heading p{font:400 16px/1.65 var(--sans);color:#52645b;margin:0}
.interaction-figure{margin:0;min-width:0}
.interaction-picture{background:#fff;line-height:0;overflow:hidden;border:1px solid #e3e9e3;border-radius:10px}
.interaction-picture .motivation-art{display:block;width:100%;height:auto}
.interaction-figure figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding-top:12px;min-height:64px;font:400 14px/1.6 var(--sans);color:#52645b}
.interaction-figure figcaption p{margin:0;max-width:76ch;font:inherit}
.interaction-figure figcaption a{white-space:nowrap;color:#193b30;text-underline-offset:4px;font:inherit}
.interaction-only{--sans:'DM Sans',Arial,sans-serif;background:#fff;margin:0;padding:30px;font-family:var(--sans);color:#193b30}
.interaction-only main{max-width:1600px;margin:auto}
.interaction-only .interaction-heading{grid-template-columns:1fr;gap:12px}
.interaction-only .interaction-picture{border:0}
.interaction-only .motivation-art{max-height:calc(100dvh - 200px)}
.interaction-only figcaption a{display:none}
@media(max-width:800px){.interaction-heading{grid-template-columns:1fr;gap:12px}.interaction-heading p{font-size:16px}.interaction-figure figcaption{gap:12px;font-size:13px;min-height:88px}.interaction-only{padding:20px 12px}.interaction-only .motivation-art{max-height:none}}
@media(max-width:520px){.interaction-figure figcaption{display:block}.interaction-figure figcaption p{margin-bottom:8px}.interaction-figure figcaption a{display:inline-block;padding:4px 0}.interaction-only .interaction-picture{overflow-x:auto}.interaction-only .motivation-art{width:1000px;max-width:none}}

.pipeline-picture img{display:block;width:100%;height:auto}
.pipeline-picture:focus-visible{outline:2px solid #234e3b;outline-offset:4px}
@media(max-width:800px){.pipeline-picture{overflow-x:auto}.pipeline-picture img{width:1440px;max-width:none}}

.interaction-method {
  --method-top: clamp(44px, 6vw, 88px);
  --method-bottom: clamp(48px, 7vw, 96px);
  background: #fff;
  color: #222426;
  font-family: var(--sans);
  padding: var(--method-top) 0 var(--method-bottom);
}
.method-sequence {
  position: relative;
  isolation: isolate;
}
.method-sequence::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--method-top)) 0 calc(-1 * var(--method-bottom));
  background: linear-gradient(180deg, #fff 0%, #f3f4f5 46%, #f3f4f5 82%, #fff 100%);
}
.method-layout {
  width: min(1760px, calc(100% - 2 * clamp(12px, 1.1vw, 24px)));
  margin-inline: auto;
}
.method-intro {
  margin-bottom: clamp(24px, 4vw, 56px);
}
.method-intro h2 { margin: 0; }
.method-diagram {
  width: 100%;
  margin: 0;
}
.method-diagram figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: clamp(12px, 1.5vw, 20px);
}
.method-diagram .method-full-image {
  display: inline-block;
  padding: 7px 11px;
  color: #313639;
  background: #fff;
  border: 1px solid #cdd2d3;
  border-radius: 7px;
  font: 550 13px/1.3 var(--sans);
  text-decoration: none;
}
.method-diagram .method-full-image:hover { background: #e9edef; }
.method-diagram h3 {
  margin: 0;
  font: 650 clamp(20px, 2.25vw, 30px)/1.12 var(--sans);
  letter-spacing: -.04em;
}
.method-diagram .pipeline-picture {
  border-color: #d4d9db;
  border-radius: clamp(8px, 1.3vw, 18px);
  background: #fff;
  box-shadow: 0 12px 32px #282d3610;
}
.method-diagram :focus-visible { outline: 2px solid #466357; outline-offset: 4px; }

@media (min-width: 801px) and (min-height: 480px) and (prefers-reduced-motion: no-preference) {
  .method-sequence.is-scroll-animated::before {
    opacity: clamp(0, calc(var(--method-progress, 0) * 1.5), 1);
  }
  .method-sequence.is-scroll-animated::after {
    content: "";
    display: block;
    height: clamp(220px, 48svh, 420px);
  }
  .method-sequence.is-scroll-animated .method-layout {
    position: sticky;
    top: var(--header-height, 0px);
    display: grid;
    align-items: center;
    min-height: calc(100svh - var(--header-height, 0px));
    padding-block: 18px;
  }
  .method-sequence.is-scroll-animated .method-layout::before {
    content: "";
    grid-area: 1 / 1;
    width: 100%;
    aspect-ratio: 2265 / 925;
    margin-top: calc(36px + clamp(12px, 1.5vw, 20px));
    pointer-events: none;
  }
  .method-sequence.is-scroll-animated :is(.method-intro, .method-diagram) {
    grid-area: 1 / 1;
  }
  .method-sequence.is-scroll-animated .method-intro {
    width: 29%;
    text-wrap: balance;
    margin: 0;
    opacity: clamp(0, calc(1.2 - var(--method-progress, 0) * 4), 1);
  }
  .method-sequence.is-scroll-animated .method-diagram {
    --method-zoom: clamp(0, (var(--method-progress, 0) - .17) / .63, 1);
    justify-self: end;
    width: calc(62% + 38% * var(--method-zoom));
    opacity: calc(1 - var(--method-exit, 0));
  }
  .method-sequence.is-scroll-animated:focus-within .method-intro { visibility: hidden; }
  .method-sequence.is-scroll-animated:focus-within .method-diagram { --method-zoom: 1; opacity: 1; }
  .method-sequence.is-scroll-animated:focus-within::before { opacity: 1; }
}

.method-results { background: #f4f4f4; }
.results-page .method-results #resources { padding-top: 0; border-top: 0; }
.results-page .method-results .why-resources > summary { color: #252525; }


.results-page, .interaction-only {
  --section-title: 650 clamp(32px, 4vw, 56px)/1.07 var(--sans);
  --section-tracking: -.05em;
}
.results-page :is(.why-heading h2, .theory-heading h2, #findings-story-title,
  #system-overview-heading, #method-why-heading, #resources-heading),
.interaction-only #system-overview-heading {
  font: var(--section-title);
  letter-spacing: var(--section-tracking);
}

.method-why {
  background: #fff;
  color: #222426;
  padding: clamp(110px, 12vw, 180px) clamp(22px, 5vw, 72px) clamp(40px, 5vw, 72px);
  text-align: center;
}
.method-why-content {
  max-width: 620px;
  margin-inline: auto;
}
.method-why-content h2 { margin: 0; }
.method-why-content p {
  max-width: 52ch;
  margin: 18px auto 0;
  color: #505050;
  font: 450 clamp(16px, 1.55vw, 20px)/1.55 var(--sans);
}

@media (prefers-reduced-motion: no-preference) {
  .method-why-content.has-reveal :is(h2, p),
  .resources-intro.has-reveal h2 {
    transition: opacity .65s ease-out, transform .8s cubic-bezier(.2,.75,.24,1);
  }
  .method-why-content.has-reveal:not(.is-revealed) :is(h2, p),
  .resources-intro.has-reveal:not(.is-revealed) h2 {
    opacity: 0;
    transform: translateY(24px);
  }
  .method-why-content.has-reveal.is-revealed p { transition-delay: 130ms; }
}

@media (max-width: 800px) {
  .method-diagram .pipeline-picture img { width: 100%; }
}
