/* Portfolio presentation. Media-layout v2 still owns crops, scale and sources. */
:root {
  --ink: #222;
  --muted: #61615e;
  --red: #a61f2b;
  --rule: #d8d8d5;
  font-family: "Courier New", monospace;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
}
body, html.case-entry, html.case-entry body { background: #fff; }
a { text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.skip-link { background: #fff; color: var(--ink); }
.site-header { position: static; height: auto; padding: 38px 24px 0; border: 0; background: none; }
.portfolio-nav { display: flex; justify-content: center; gap: 64px; width: 100%; font-size: 14px; font-weight: bold; }
.site-header nav a { border: 0; }
.site-header nav a:focus-visible { outline: 2px solid var(--red); }
.portfolio-nav [aria-current] { color: var(--red); }
.portfolio-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 58px; margin: 78px 40px 0; }
.project-rail { position: sticky; top: 38px; align-self: start; }
.project-rail .rail-title { font: 14px/1.7 "Courier New", monospace; letter-spacing: 1.8px; text-transform: uppercase; margin: 0; color: var(--red); scroll-margin-top: 35px; }
.rail-location { font-size: 10px; color: var(--muted); margin: 13px 0 32px; }
.project-context { display: grid; grid-template-columns: 1fr; gap: 21px; border: 0; padding: 0; margin: 0 0 34px; }
.project-context p { gap: 3px; }
.project-context span { color: #666; font-size: 9px; font-weight: normal; letter-spacing: 1px; }
.project-context strong { font-size: 11px; line-height: 1.65; }
.project-links { display: grid; gap: 15px; font-size: 11px; line-height: 1.6; }
.project-links a { width: fit-content; max-width: 100%; }
main { min-width: 0; width: 100%; max-width: 1500px; }
.section-pad { padding: 0; margin: 0 0 110px; max-width: none; }
.ruled, .project-method { border: 0; }
.eyebrow { font-size: 10px; color: var(--muted); font-weight: normal; letter-spacing: 1px; }
.hero h1.eyebrow { font: 10px/1.7 "Courier New", monospace; letter-spacing: 1px; margin: 0; color: var(--muted); scroll-margin-top: 35px; }
.hero-grid { display: block; margin: 22px 0 0; }
.hero-thesis { font-size: clamp(22px, 1.9vw, 28px); font-weight: normal; line-height: 1.3; letter-spacing: -.7px; max-width: 40ch; margin: 0 0 36px; }
.hero-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 42px; max-width: 1040px; margin-top: 38px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.hero-copy p { margin: 0; }
.section-number { font-size: 10px; font-weight: normal; letter-spacing: 1.2px; margin-bottom: 21px; }
h2, #adaptive-method h2 { font-size: clamp(23px, 2.45vw, 37px); line-height: 1.3; letter-spacing: -.7px; font-weight: normal; }
.section-head { align-items: start; gap: 32px; margin-bottom: 36px; }
.section-head > p { font-size: 10px; line-height: 1.7; max-width: 25ch; }
.split { grid-template-columns: .7fr 1.1fr; gap: 48px; }
.body-copy, .body-wide, .method-copy { font-size: 13px; line-height: 1.85; color: var(--muted); }
.body-wide { max-width: 85ch; }
.media-viewport { border: 0; }
figcaption { font-size: 10px; line-height: 1.8; margin-top: 14px; }
.note { border: 0; padding: 0; font-size: 11px; line-height: 1.8; }
.scenario-intro, .research-status, .development-block, .development-status { border: 0; padding-top: 0; }
.scenario-intro { gap: 40px; font-size: 12px; }
.scenario-intro p:last-child { font-size: 11px; }
.method { background: transparent; }
.method-intro { grid-template-columns: .8fr 1fr; gap: 48px; }
.method-copy p:first-child { font-size: 17px; line-height: 1.6; color: var(--ink); }
.method-editorial { grid-template-columns: minmax(200px, .6fr) minmax(0, 1.2fr); gap: 48px; margin-top: 60px; }
.method-rail { padding: 0; }
.method-rail:before, .method-rail li:before { display: none; }
.method-rail span, .research-status b, .development-label { font-size: 10px; font-weight: normal; letter-spacing: 1px; }
.method-rail p, .research-status span { font-size: 12px; line-height: 1.8; }
.research-status { margin-top: 56px; }
.voice-profile-intro { font-size: 17px; line-height: 1.65; letter-spacing: 0; max-width: 72ch; }
.direct-links { font-size: 11px; gap: 16px 28px; }
.direct-links a { color: var(--red); border: 0; padding-bottom: 0; }
.direct-links a:hover { color: var(--red); }
.direct-links a:focus-visible { outline: 2px solid var(--red); }
.iframe-shell .media-viewport { border: 0; color-scheme: light; }
.development-head { grid-template-columns: .8fr 1fr; gap: 48px; }
.development-head > p { font-size: 17px; line-height: 1.65; letter-spacing: 0; }
.development-blocks { gap: 34px; margin-top: 52px; }
.development-block p, .development-block p:first-of-type { font-size: 12px; line-height: 1.85; letter-spacing: 0; color: var(--muted); }
.development-block p:first-of-type { color: var(--ink); }
.development-status { grid-template-columns: 120px minmax(0, 1fr); gap: 32px; margin-top: 48px; }
.development-status p { font-size: 12px; line-height: 1.8; }
#adaptive-method, #adaptive-method:has(.method-figure) { --method-muted: #61615e; --method-accent: #a61f2b; --method-rule: #d8d8d5; padding-top: 0; }
#adaptive-method .method-lead { font-size: 15px; }
#adaptive-method .method-figure, #adaptive-method .method-facts > div, #adaptive-method .method-details, #adaptive-method details, #adaptive-method .study-panel { border: 0; }
#adaptive-method .method-figure { padding: 0; }
#adaptive-method .method-figure figcaption, #adaptive-method dd, #adaptive-method details { font-size: 12px; }
#adaptive-method summary { font-size: 13px; }
#adaptive-method .method-facts > div { padding-top: 0; }
#adaptive-method .method-links a { border: 0; color: var(--red); }
#adaptive-method .study-panel h3 { font-size: 20px; }
#adaptive-method .study-panel { color: var(--ink); font-size: 12px; line-height: 1.8; }
#adaptive-method .study-panel th, #adaptive-method .study-panel td { border-color: #d8d8d5; }
#adaptive-method .study-panel .muted { color: var(--muted); }
#adaptive-method .study-panel :focus-visible { outline-color: var(--red); }
#adaptive-method .study-panel button { background: #fff; border-color: #888; padding: 7px 12px; }
.site-footer { border: 0; margin: 0 40px 40px 318px; padding: 0; grid-template-columns: 1fr 1fr; font-size: 9px; line-height: 1.8; }
@media (max-width: 1100px) {
  .portfolio-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 32px; margin: 64px 24px 0; }
  .hero-copy, .split, .method-intro, .method-editorial, .development-head { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 75ch; }
  .development-blocks { grid-template-columns: 1fr 1fr; }
  .site-footer { margin-left: 226px; margin-right: 24px; }
}
@media (max-width: 720px) {
  .site-header { padding: 26px 16px 0; }
  .portfolio-nav { gap: 24px; font-size: 11px; }
  .portfolio-layout { display: block; margin: 48px 18px 0; }
  .project-rail { position: static; margin-bottom: 46px; }
  .project-rail .rail-title { font-size: 14px; }
  .rail-location { margin: 8px 0 24px; }
  .project-context { grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-bottom: 26px; }
  .project-links { grid-template-columns: 1fr 1fr; gap: 14px 20px; font-size: 10px; }
  .section-pad { padding: 0; margin-bottom: 72px; }
  .hero-thesis { font-size: 22px; letter-spacing: -.4px; }
  .hero-copy { font-size: 12px; margin-top: 28px; }
  .section-head { margin-bottom: 28px; }
  .section-head > p { max-width: none; }
  .body-copy, .body-wide, .method-copy { font-size: 12px; }
  .scenario-intro { gap: 8px; }
  .development-blocks { grid-template-columns: 1fr; gap: 32px; }
  .development-block:last-child { grid-column: auto; }
  .development-status { grid-template-columns: 1fr; gap: 10px; }
  .site-footer { margin: 0 18px 32px; grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .portfolio-nav { gap: 18px; font-size: 10px; } }

/* v51: align drawings to their section, with one consistent column grid. */
.hero-pair, .territory-pair { margin-top: 0; }
.hero-pair { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.413427562fr); align-items: start; }
.territory-pair { grid-template-columns: minmax(0, 1.413427562fr) minmax(0, 1.896733404fr); align-items: start; }
.unit-drawings, .unit-evolution { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-evolution { margin-top: 36px; }
.unit-drawings figcaption, .unit-evolution figcaption { max-width: none; }
@media (max-width: 1100px) {
  .hero-pair, .territory-pair { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .unit-drawings, .unit-evolution { grid-template-columns: 1fr; }
  .hero-pair, .territory-pair { margin-top: 0; }
}

/* v52: keep the column/caption grid; enlarge only the drawing surface. */
.unit-drawings .media-viewport { background: transparent; }
.unit-drawings .media-crop-window { mix-blend-mode: multiply; }
@media (min-width: 1101px) {
  .unit-drawings .media-viewport, .unit-drawings .media-crop-window { overflow: visible; }
}

/* v53: same source scale and bottom datum in both original animation states. */
.unit-evolution .media-viewport,
.unit-evolution .media-crop-window { overflow: clip; overflow-clip-margin: 12px; background: transparent; }
.unit-evolution .media-crop-window { mix-blend-mode: multiply; }
.unit-evolution .unit-frame { position: absolute; inset: 0; animation: unit-base 1.4s steps(1, end) infinite; }
.unit-evolution .unit-frame-expanded { animation-name: unit-expanded; }
@keyframes unit-base { 0%, 100% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes unit-expanded { 0%, 100% { visibility: hidden; } 50% { visibility: visible; } }
@media (prefers-reduced-motion: reduce) {
  .unit-evolution .unit-frame { position: absolute; inset: 0; animation: none; }
  .unit-evolution .unit-frame-base { visibility: hidden; }
  .unit-evolution .unit-frame-expanded { visibility: visible; }
}

/* v54: the lower original scenario sheets use the same grid and drawing scale as the unit row. */
.scenario-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scenario-strip .media-viewport,
.scenario-strip .media-crop-window { overflow: clip; overflow-clip-margin: 16px; background: transparent; }
.scenario-strip .media-crop-window { mix-blend-mode: multiply; }
.scenario-strip .media-crop-window img { clip-path: inset(0 0 26% 0); }
.scenario-strip figcaption { max-width: none; }
@media (max-width: 720px) { .scenario-strip { grid-template-columns: 1fr; } }
