/* Native disclosure keeps the mobile header stable before scripts load. */
.mobile-menu { display: none; }
@media (max-width: 760px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu .nav-toggle { display: flex; align-items: center; gap: 18px; list-style: none; cursor: pointer; border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; }
  .nav-toggle::-webkit-details-marker { display: none; }
  .nav-toggle:focus-visible { outline: 3px solid #a34058; outline-offset: 5px; }
  .mobile-nav { position: absolute; z-index: 5; top: 100%; left: -20px; width: calc(100% + 40px); padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 16px #1820270a; }
  .mobile-menu[open] .nav-toggle span { transform: rotate(45deg); }
}

/* Static diagram and generated motion share the same reserved geometry. */
.engagement-exhibit { margin: 0; min-height: 466px; display: flex; flex-direction: column; border: 1px solid #46535c; background: #182027; }
.engagement-caption { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 23px 25px 8px; font: 9px/1.6 Mono, monospace; letter-spacing: 1.2px; color: #c2cbd1; }
.diagram-key { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 0; white-space: nowrap; }
.diagram-key i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #c98898; }
.diagram-art { position: relative; width: 100%; height: 250px; flex: none; }
.engagement-drawing { display: block; width: 100%; height: 100%; }
.diagram-boundary { fill: #24313a; stroke: #8397a5; stroke-width: 1; stroke-dasharray: 3 5; }
.diagram-corner { fill: none; stroke: #edf0f2; stroke-width: 1.5; }
.diagram-system { fill: #182027; stroke: #738794; stroke-width: 1; }
.diagram-detail { fill: none; stroke: #a9b8c2; stroke-width: 1.2; stroke-linecap: round; }
.diagram-connector { fill: none; stroke: #586b79; stroke-width: 1; }
.diagram-flow, .diagram-arrowhead { fill: none; stroke: #cf8795; stroke-width: 1.5; }
.diagram-review-halo { fill: none; stroke: #465762; stroke-width: 1; }
.diagram-review { fill: #842c40; stroke: #cc8c9c; stroke-width: 1; }
.diagram-person { fill: none; stroke: #edf0f2; stroke-width: 1.5; }
.diagram-paper-back { fill: #283943; stroke: #617684; stroke-width: 1; }
.diagram-paper { fill: #edf0f2; stroke: #edf0f2; stroke-width: 1; }
.diagram-fold { fill: #bdc9d1; stroke: #182027; stroke-width: 1; }
[data-diagram-art-stage=report] .diagram-detail { stroke: #657581; }
.diagram-report-title { stroke: #182027; stroke-width: 4; }
.diagram-report-rule { stroke: #842c40; stroke-width: 2; }
.diagram-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0 25px; margin: 8px 0 24px; }
.diagram-stages li { position: relative; padding-top: 12px; border-top: 1px solid #48545e; }
.diagram-stages strong { display: block; font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: -.3px; }
.diagram-stages li > span:last-child { display: block; color: #c2cbd1; font-size: 11px; line-height: 1.7; margin-top: 5px; }
.diagram-stage-index { position: absolute; right: 0; top: 17px; color: #cb8798; font: 9px Mono, monospace; }
.diagram-note { margin: auto 25px 22px; color: #c2cbd1; font-size: 10px; line-height: 1.6; }
.motion-media { position: relative; overflow: hidden; background: #182027; }
.motion-hero { width: 100%; height: 100%; }
.motion-component { height: 170px; margin-top: 20px; border: 1px solid var(--line); background: var(--paper); }
.motion-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-toggle { position: absolute; right: 12px; bottom: 12px; min-height: 32px; padding: 5px 10px; border: 1px solid #b7c4cd; border-radius: 2px; background: #182027; color: #edf0f2; font: 10px/1.6 Mono, monospace; cursor: pointer; }
.motion-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; box-shadow: 0 0 0 2px var(--paper); }
@media (min-width: 761px) and (max-width: 1050px) {
  .engagement-caption { padding-inline: 18px; }
  .engagement-caption > span:first-child { max-width: 115px; }
  .diagram-stages { padding-inline: 18px; }
  .diagram-stage-index { display: none; }
}
@media (max-width: 760px) {
  .engagement-exhibit { min-height: 0; height: 180px; }
  .engagement-caption { padding: 12px 16px 0; font-size: 8px; letter-spacing: 1px; }
  .diagram-key { font-size: 8px; }
  .diagram-art { height: 106px; }
  .diagram-stages { padding: 0 16px; margin: 0; gap: 16px; }
  .diagram-stages li { padding-top: 5px; }
  .diagram-stages strong { font-size: 12px; }
  .diagram-stages li > span:last-child, .diagram-stage-index, .diagram-note { display: none; }
  .motion-hero video { object-position: center 50%; }
  .motion-toggle { right: 8px; bottom: 6px; min-height: 28px; padding: 3px 7px; font-size: 9px; }
  .motion-component { height: 120px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .text-link, .site-nav a, .motion-toggle { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
  .btn .icon-arrow, .text-link .icon-arrow, .nav-contact .icon-arrow, .nav-toggle span { transition: transform 200ms ease; }
  .btn:hover .icon-arrow, .btn:focus-visible .icon-arrow, .text-link:hover .icon-arrow, .text-link:focus-visible .icon-arrow, .nav-contact:hover .icon-arrow, .nav-contact:focus-visible .icon-arrow { transform: translate(2px, -2px); }
  .btn-primary:hover, .btn-primary:focus-visible { box-shadow: 0 4px 12px #842c4024; }
}
/* The generated hero leaves the copy area quiet and places the artwork at right. */
.hero:has(.has-motion) { position: relative; isolation: isolate; }
.hero:has(.has-motion) .hero-copy { position: relative; z-index: 1; }
.engagement-exhibit.has-motion { position: static; background: transparent; border-color: transparent; color: var(--ink); }
.has-motion .engagement-caption, .has-motion .diagram-stages, .has-motion .diagram-note { position: relative; z-index: 1; }
.has-motion .engagement-caption, .has-motion .diagram-stages li > span:last-child, .has-motion .diagram-note { color: var(--muted); }
.has-motion .diagram-stages li { border-color: var(--line); }
.has-motion .diagram-stage-index { color: var(--red); }
.has-motion .diagram-art { position: static; }
.has-motion .motion-hero { position: absolute; inset: 0; height: 100%; z-index: 0; background: var(--paper); }
.has-motion .motion-hero .motion-toggle { bottom: 18px; }
@media (max-width: 760px) {
  .engagement-exhibit.has-motion { position: relative; border-color: var(--line); }
  .has-motion .diagram-art { position: relative; }
  .has-motion .motion-hero .motion-toggle { bottom: 6px; }
}
/* Quiet surfaces keep process labels distinct from the moving artwork. */
.has-motion .diagram-stages { background: var(--paper); padding-block: 10px; }
.has-motion .diagram-note { display: inline-block; align-self: flex-start; background: var(--paper); font-size: 11px; }
.motion-component { height: 210px; }
.motion-component video { object-fit: contain; }
@media (max-width: 760px) {
  .has-motion .diagram-stages { padding-block: 0; }
  .has-motion .diagram-note { display: none; }
  .motion-component { height: 150px; }
}
