/* A shared reading space, with three distinct illustrative studies. */
.research-shell { max-width: 1220px; margin: auto; padding: 56px 64px 120px; }
.research-header { margin: 36px 0 64px; }
.research-index { display: block; color: var(--muted-color); font-size: 11px; letter-spacing: .14em; }
.research-header h1 { font-family: "Playfair Display", "Songti SC", serif; font-size: clamp(52px, 7vw, 84px); font-weight: 500; line-height: 1.15; margin: 0; }
.research-study { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); align-items: center; gap: 52px; margin: 0 0 132px; }
.research-study:nth-of-type(2) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); }
.research-study:nth-of-type(2) .research-study-copy { grid-column: 2; grid-row: 1; }
.research-study:nth-of-type(2) .research-scene { grid-column: 1; grid-row: 1; }
.research-study-copy h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; margin: 19px 0 20px; line-height: 1.4; }
.research-study-copy h2 a { display: inline-block; text-decoration: none; color: inherit; transition: transform 360ms ease-in-out; }
.research-study-copy h2 a:focus-visible { transform: translateY(-5px); }
@media (hover: hover) and (pointer: fine) {
  .research-study-copy h2 a:hover { transform: translateY(-5px); }
}
@media (max-width: 800px), (hover: none) {
  .research-study-copy h2 a.is-discovered { animation: research-title-float 1300ms ease-in-out; }
}
@keyframes research-title-float {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .research-study-copy h2 a { animation: none !important; transition: none; transform: none !important; }
}
.research-scene { min-width: 0; margin: 0; --scene-ink: var(--accent-color); }
.research-scene-art { width: 100%; aspect-ratio: 8 / 5; }
.research-scene-art svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--scene-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.research-scene-controls { display: flex; align-items: center; justify-content: space-between; margin: 0 18px; }
.research-scene-controls[hidden] { display: none; }
.research-steps { display: flex; gap: 8px; }
.research-scene-controls button { min-width: 44px; min-height: 44px; background: transparent; border: 0; padding: 8px; color: var(--muted-color); font: inherit; font-size: 12px; cursor: pointer; }
.research-steps button span { display: inline-block; padding: 0 2px 3px; border-bottom: 1px solid transparent; }
.research-steps button[aria-pressed="true"] span { color: var(--text-color); border-color: currentColor; }
.research-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.research-toggle .toggle-pause, .research-toggle[data-playing="true"] .toggle-play { display: none; }
.research-toggle[data-playing="true"] .toggle-pause { display: block; }
.research-shell a:focus-visible, .research-shell button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 5px; border-radius: 3px; }

/* Persistent objects move between arrangements instead of being replaced. */
.composition-frame { opacity: .35; }
.composition-circle, .composition-block, .composition-word, .composition-line { transition: transform 1600ms cubic-bezier(.45, 0, .2, 1); }
.composition-circle { transform: translate(239px, 167px) scale(1.25); fill: color-mix(in srgb, var(--accent-color) 15%, transparent); stroke: none; }
.composition-block { transform: translate(425px, 228px); fill: var(--accent-color); stroke: none; }
.composition-word { transform: translate(241px, 285px); }
.composition-word text { font-family: "Playfair Display", "Songti SC", serif; fill: var(--text-color); stroke: none; font-size: 41px; letter-spacing: .06em; }
.composition-line { transform: translate(223px, 315px); }
[data-stage="1"] .composition-circle { transform: translate(420px, 245px) scale(.75); }
[data-stage="1"] .composition-block { transform: translate(190px, 242px) scale(.55); }
[data-stage="1"] .composition-word { transform: translate(311px, 151px) scale(1.7); }
[data-stage="1"] .composition-line { transform: translate(311px, 196px) scale(1.5, 1); }
[data-stage="2"] .composition-circle { transform: translate(194px, 122px) scale(.55); }
[data-stage="2"] .composition-block { transform: translate(460px, 250px) scale(.85); }
[data-stage="2"] .composition-word { transform: translate(254px, 279px) scale(.9); }
[data-stage="2"] .composition-line { transform: translate(325px, 306px) scale(1.8, 1); }

.atlas-ground { opacity: .28; }
.atlas-object { opacity: .2; transition: opacity 1400ms ease, transform 1400ms ease; }
.atlas-gun { opacity: 1; }
.atlas-route { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms ease; opacity: .5; }
.atlas-metal { transform: translate(120px, 213px); opacity: 0; fill: var(--accent-color); stroke: none; transition: transform 1700ms ease-in-out, opacity 1000ms ease; }
.atlas-canopy { transform-origin: 507px 220px; transform: scale(.8); transition: transform 1800ms ease; }
[data-stage="1"] .atlas-gun, [data-stage="2"] .atlas-gun { opacity: .3; }
[data-stage="1"] .atlas-shovel, [data-stage="2"] .atlas-shovel, [data-stage="2"] .atlas-tree { opacity: 1; }
[data-stage="1"] .route-one, [data-stage="2"] .atlas-route { stroke-dashoffset: 0; }
[data-stage="1"] .atlas-metal { transform: translate(276px, 223px); opacity: .7; }
[data-stage="2"] .atlas-metal { transform: translate(505px, 280px); opacity: .25; }
[data-stage="2"] .atlas-canopy { transform: scale(1); fill: color-mix(in srgb, var(--leaf-color) 14%, transparent); stroke: var(--leaf-color); }
.research-scene[data-still="true"] * { transition: none !important; }

@media (max-width: 800px) {
  .research-shell { padding: 40px 28px 88px; }
  .research-header { margin: 36px 0 60px; }
  .research-study, .research-study:nth-of-type(2) { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 100px; }
  .research-study:nth-of-type(2) .research-study-copy, .research-study:nth-of-type(2) .research-scene { grid-column: auto; grid-row: auto; }
  .research-study-copy { max-width: 460px; }
  .research-study-copy h2 { margin: 14px 0; }
  .research-scene { max-width: 600px; width: 100%; margin: 6px auto 0; }
}
@media (max-width: 440px) {
  .research-shell { padding-right: 20px; padding-left: 20px; }
  .research-index { font-size: 10px; letter-spacing: .11em; }
  .research-scene-controls { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .research-scene * { transition: none !important; } }
