/* Shared page motion. Hero geometry and handoff live in hero-transition.css. */
:root { --focus-ease: cubic-bezier(.22, .75, .2, 1); }
body { isolation: isolate; }
.site-header { position: relative; z-index: 2; }
.section, .next-project, .site-footer { position: relative; z-index: 2; }
.hero-stage + .overview-section { padding-top: 64px; }
.overview-section, .evidence-close, .next-project, .site-footer { background: transparent; }
.overview-section { box-shadow: 0 -18px 50px #25393208; }
.responsibility-section { background: transparent; }
.section-tint { background: transparent; }
.console-section { background: transparent; }
.site-footer { background: rgba(244,244,241,.42); }
.overview-section .section-content,
.evidence-close .section-content {
  padding: 28px 32px 30px;
  border: 1px solid rgba(180, 194, 190, .68);
  background: rgba(251,251,248,.58);
  box-shadow: 0 18px 40px rgba(52,74,71,.08);
  backdrop-filter: blur(7px) saturate(110%);
  -webkit-backdrop-filter: blur(7px) saturate(110%);
}
/* 01 and 03 titles sit directly on the shared scene. Their surfaces belong
   to the content rails below, not to the whole text block. */
.overview-section .section-content,
.mechanisms-section .section-content {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.responsibility-layout {
  padding: 54px 56px 58px;
  border: 1px solid rgba(119, 143, 138, .42);
  background: rgba(26,30,31,.78);
  box-shadow: 0 22px 54px rgba(14,23,21,.16);
  backdrop-filter: blur(8px) saturate(90%);
  -webkit-backdrop-filter: blur(8px) saturate(90%);
}
.console-copy {
  padding: 32px;
  border: 1px solid rgba(180, 194, 190, .62);
  background: rgba(251,251,248,.54);
  box-shadow: 0 18px 40px rgba(52,74,71,.08);
  backdrop-filter: blur(7px) saturate(110%);
  -webkit-backdrop-filter: blur(7px) saturate(110%);
}
.console-figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
}
.console-figure img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  transition: opacity 180ms ease;
}
.console-figure img.is-switching { opacity: .28; }
.console-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: #526360;
  font-size: 10px;
  letter-spacing: .06em;
}
.console-figure figcaption span:last-child { letter-spacing: 0; text-align: right; }
.console-original {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0;
  text-underline-offset: 4px;
}
.console-gallery {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.console-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 28px;
  margin-top: 12px;
}
.console-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.console-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(77, 101, 96, .36);
  transform: translate(-50%, -50%);
  transition: width 200ms ease, height 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.console-dot:hover::before { width: 8px; height: 8px; background: rgba(46, 110, 98, .72); }
.console-dot.is-active::before {
  width: 10px;
  height: 10px;
  background: #2e6e62;
  box-shadow: 0 0 0 4px rgba(251, 251, 248, .8), 0 0 0 5px rgba(46, 110, 98, .18);
}
.console-dot:focus-visible { outline: 2px solid #347468; outline-offset: 0; border-radius: 50%; }
.console-gallery-copy {
  width: min(100%, 590px);
  min-height: 62px;
  margin: 2px auto 0;
  text-align: center;
}
.console-gallery-copy h3 {
  margin: 0 0 4px;
  color: #254c45;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.console-gallery-copy p {
  margin: 0;
  color: #526360;
  font-size: 13px;
  line-height: 1.55;
}
.console-layout {
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}
.next-project, .site-footer { width: 100%; padding-inline: max(32px, calc((100% - var(--max)) / 2)); }
.motion-enabled [data-motion]:not(.is-visible) { opacity: 0; }

/* 01: the rail is readable against the scene; hover raises only the local
   surface to full opacity without moving the grid. */
.system-field-rail article {
  position: relative;
  isolation: isolate;
  background: rgba(251,251,248,.44);
  transition: background 360ms ease;
}
.system-field-rail article::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -12px;
  background: #dfebe7; clip-path: inset(0 0 100% 0); opacity: .94;
  transition: clip-path 480ms var(--focus-ease);
}
.system-field-rail article::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px;
  background: #347468; transform: scaleX(0); transform-origin: left;
  transition: transform 480ms var(--focus-ease);
}
.system-field-rail article h3, .system-field-rail article p {
  transition: transform 400ms var(--focus-ease), color 250ms ease;
}
html:not(.motion-paused) .system-field-rail article:hover,
html:not(.motion-paused) .responsibility-rows article:hover {
  transform: none;
}
html:not(.motion-paused) .system-field-rail article:hover {
  background: rgba(251,251,248,.92);
}

/* 02: an inset vertical accent and a lateral wash distinguish responsibility rows. */
.responsibility-rows article { position: relative; isolation: isolate; }
.responsibility-rows article::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -16px 0 -16px;
  background: #263331; opacity: 0; transform: scaleX(.96); transform-origin: left;
  transition: opacity 280ms ease, transform 450ms var(--focus-ease);
}
.responsibility-rows article::after {
  content: ""; position: absolute; left: -16px; top: 19px; bottom: 19px; width: 2px;
  background: #b8d9d4; transform: scaleY(0); transform-origin: top;
  transition: transform 450ms var(--focus-ease);
}
.responsibility-rows article > div { transition: transform 400ms var(--focus-ease); }
.responsibility-rows article h3 { transition: color 300ms ease; }
html:not(.motion-paused) .responsibility-rows article:hover {
  background: rgba(26,30,31,.96);
}

/* 03: each mechanism is an independent reading surface. Scroll focus changes
   scale and opacity, so the active row becomes solid without underlines. */
.mechanism-list {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  max-width: none;
  border: 0;
}
.mechanism-list article {
  min-height: 0;
  padding: 15px 18px;
  border: 0;
  background: rgb(251 251 248 / var(--focus-opacity, .42));
  transform-origin: left center;
  transition: background 140ms linear, transform 140ms linear;
}
.mechanism-list h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 680; }
.mechanism-list p { color: #52615f; font-size: 15px; line-height: 1.55; white-space: normal; }
.scroll-focus .mechanism-list article { transform: scale(var(--focus-scale, .88)); }
.scroll-focus .mechanism-list h3 { color: rgb(var(--focus-gray, 100) var(--focus-gray, 100) var(--focus-gray, 100)); }
.mechanism-list article:hover h3,
.mechanism-list article:focus-within h3 { color: inherit; }
.mechanisms-section h2, .console-copy h2, .evidence-close h2, .overview-section h2 { font-size: 56px; line-height: 1.12; }
.responsibility-lead h2 { font-size: 56px; line-height: 1.12; }
.keep-word { white-space: nowrap; }
@media (min-width: 961px) {
  .responsibility-lead h2, .console-copy h2 { font-size: 44px; }
  .heading-line { white-space: nowrap; }
}
.next-project h2 { font-size: 64px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .system-field-rail article:hover::before { clip-path: inset(0); }
  html:not(.motion-paused) .system-field-rail article:hover::after { transform: scaleX(1); }
  html:not(.motion-paused) .system-field-rail article:hover h3,
  html:not(.motion-paused) .system-field-rail article:hover p { transform: translateX(8px); }
  html:not(.motion-paused) .responsibility-rows article:hover::before { opacity: 1; transform: scaleX(1); }
  html:not(.motion-paused) .responsibility-rows article:hover::after { transform: scaleY(1); }
  html:not(.motion-paused) .responsibility-rows article:hover > div { transform: translateX(8px); }
}

@media (max-width: 1200px) and (min-width: 961px) {
  .mechanisms-section h2, .console-copy h2, .evidence-close h2, .overview-section h2, .responsibility-lead h2 { font-size: 46px; }
  .responsibility-lead h2, .console-copy h2 { font-size: 36px; }
}
@media (max-width: 960px) {
  .console-layout { grid-template-columns: 1fr; gap: 48px; }
  .overview-section .section-content,
  .mechanisms-section .section-content,
  .evidence-close .section-content { padding: 24px 22px 26px; }
  .hero-stage + .overview-section { padding-top: 56px; }
  .responsibility-layout { padding: 38px 28px 42px; }
  .console-copy { padding: 26px 22px; }
  .console-figure figcaption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .console-figure figcaption span:last-child { text-align: left; }
  .mechanism-list article { min-height: 0; }
  .scroll-focus .mechanism-list article { transform: none; background: rgba(251,251,248,.72); }
  .mechanism-list h3 { font-size: 20px; }
  .mechanisms-section h2, .console-copy h2, .evidence-close h2, .overview-section h2, .responsibility-lead h2 { font-size: 44px; }
  .next-project h2 { font-size: 48px; }
}
@media (max-width: 560px) {
  .overview-section .section-content,
  .mechanisms-section .section-content,
  .evidence-close .section-content { padding: 20px 16px 22px; }
  .responsibility-layout { padding: 28px 18px 32px; }
  .console-copy { padding: 22px 16px; }
  .console-gallery-copy { min-height: 0; text-align: left; }
  .console-gallery-copy p { font-size: 12px; }
  .console-dots { justify-content: flex-start; }
  .mechanisms-section h2, .console-copy h2, .evidence-close h2, .overview-section h2, .responsibility-lead h2 { font-size: 36px; }
  .mechanism-list { margin-top: 40px; }
  .mechanism-list h3 { font-size: 19px; }
  .mechanism-list p { font-size: 14px; }
  .mechanism-list article { min-height: 0; padding: 14px 12px; }
  .next-project h2 { font-size: 38px; }
  .next-project, .site-footer { padding-inline: 16px; }
}

html.motion-paused [data-motion] { opacity: 1; }
html.motion-paused .mechanism-list article { transform: none; background: rgba(251,251,248,.88); }
html.motion-paused .mechanism-list h3 { color: var(--ink); }
html.motion-paused .console-figure:hover img { transform: none; }

@media (prefers-reduced-motion: reduce), print {
  [data-motion] { opacity: 1 !important; }
  .mechanism-list article { transform: none !important; background: rgba(251,251,248,.88); }
  .mechanism-list h3 { color: var(--ink) !important; }
  *, *::before, *::after { transition: none !important; }
}
