.hero-intro:before{display:none}
.hero-reading-shade{position:absolute;inset:0;z-index:6;pointer-events:none;opacity:var(--intro-shade-opacity,0);background:linear-gradient(90deg,#13251bba,transparent 78%)}
.hero-intro .intro-copy{max-width:44%;color:#eeeddf}
.hero-intro .intro-support{font-size:clamp(15px,1.3vw,18px);line-height:1.6}
#local.local-collection .local-copy>h2{margin:16px 0 20px}
#local.local-collection .local-lede{max-width:34ch}
#local.local-collection[data-region] .local-context{height:0;min-height:0;margin:0}
#local.local-collection .local-invitation{display:none}
#local.local-collection[data-view=model] .local-context:has(>.local-time-panel){height:156px;margin-top:24px}
#local.local-collection #region-description{min-height:0;margin-top:20px}
#local.local-collection #region-text{font-size:15px;line-height:1.55}
#local.local-collection[data-region=all] .local-stage{height:clamp(580px,76svh,760px)}
/* Original full-resolution fronts and backs share one rounded card edge. */
#local.local-collection{--flashcard-radius:12px}
#local.local-collection[data-region] :is(.pattern-card,.card-inner,.card-front,.card-back,.card-toss){border-radius:var(--flashcard-radius);aspect-ratio:3/5}
#local.local-collection :is(.card-front,.card-back){padding:0;border:0;background:#eeedde;overflow:hidden}
#local.local-collection[data-region] .card-toss{padding:0;overflow:hidden}
#local.local-collection .card-toss>img:not(.printed-card-face){position:absolute;left:10%;top:4.8%;width:80%;height:82.7%;opacity:0}
#local.local-collection .card-toss>.card-name{position:absolute;width:1px;height:1px;padding:0;clip-path:inset(50%);overflow:hidden}
#local.local-collection[data-region] .printed-card-face{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;border-radius:var(--flashcard-radius);object-fit:contain;mix-blend-mode:normal;opacity:1;pointer-events:none}
#local.local-collection .card-back:before{display:none}
#local.local-collection .card-back>:not(.printed-card-face):not(.card-close){position:absolute;inset:0 auto auto 0;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip-path:inset(50%)}
#local.local-collection .card-back .card-close{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:var(--flashcard-radius);background:transparent;box-shadow:none;color:transparent;transform:none}
#local.local-collection .card-back .card-close :is(svg,span){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#local.local-collection .card-back .card-close:hover{background:transparent;transform:none}
#local.local-collection .card-back .card-close:focus-visible{outline-offset:-4px}
#local.local-collection[data-region=all] .card-details{inset:auto 9px 9px auto;width:38px;height:38px;min-height:38px;border:1px solid #43473444;background:#eeeddef0;color:#434734}
#local.local-collection[data-region=all] .card-details:hover{background:#434734;color:#eeedde}
#local.local-collection #pattern-readable{position:absolute;inset:auto 0 6px;z-index:6;margin:auto;width:max-content;min-height:44px;padding:8px 14px;font-size:13px;color:#eeeddf;text-decoration:underline;text-underline-offset:5px}
#local.has-pattern-story .local-stage-caption{display:none!important}
#site-header .mobile-menu-toggle{border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;padding:10px;color:inherit}
#site-header .mobile-menu-toggle:hover{background:transparent!important;opacity:.7}
#site-header .mobile-menu-lines{width:22px;height:16px}
#site-header .mobile-menu-lines i{height:1.5px;border-radius:0;top:3px}
#site-header .mobile-menu-lines i:nth-child(2){display:none}
#site-header .mobile-menu-lines i:nth-child(3){top:11px}
#site-header [aria-expanded=true] .mobile-menu-lines i:nth-child(1){transform:translateY(4px) rotate(45deg)}
#site-header [aria-expanded=true] .mobile-menu-lines i:nth-child(3){transform:translateY(-4px) rotate(-45deg)}
.mechanism-control-rail{position:absolute;inset:auto 0 32px;display:flex;justify-content:center;align-items:center;gap:12px;z-index:4}
.mechanism-control-rail>.viewer-controls{position:static;transform:none;inset:auto;display:flex}
.exhibition-dialog{width:min(640px,calc(100% - 32px));max-height:calc(100svh - 32px);padding:48px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.exhibition-close{position:absolute;right:16px;top:16px;border:0;background:transparent;min-width:44px;min-height:44px}
.exhibition-dialog h2{font-size:clamp(32px,5vw,46px);line-height:1.12;margin:16px 0 24px}
.story-reading-body{font-size:17px;line-height:1.75;color:var(--muted)}
@media(max-width:1100px){
 .hero-intro{padding:clamp(112px,17svh,176px) 6vw 32px;align-items:flex-start}
 .hero-intro .intro-copy{max-width:82%}
 .hero-intro h2{font-size:clamp(34px,6vw,58px);line-height:1.1;margin:18px 0}
 .hero-intro .intro-support{max-width:34ch;font-size:15px}
 .hero-reading-shade{background:linear-gradient(90deg,#13251bca,transparent 100%)}
 #problem .problem-heading>div{bottom:146px}
 #problem .problem-heading>div>p:not(.lead){line-height:1.6}
 #local.local-collection{height:auto;min-height:100svh;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:20px;padding-block:104px 32px;overflow-anchor:none}
 #local.local-collection .local-copy{grid-column:1;grid-row:1;position:relative;padding:0;transform:none!important;max-width:640px}
 #local.local-collection .local-copy>h2{font-size:clamp(34px,6vw,48px);line-height:1.1;margin:12px 0 16px}
 #local.local-collection .local-lede{font-size:15px;line-height:1.55;margin:0;max-width:38ch}
 #local.local-collection .local-region-description{position:static;inset:auto;width:auto;height:auto;min-height:0;max-width:50ch;margin:12px 0 0;padding:0;clip:auto;white-space:normal;overflow:visible}
 #local.local-collection #region-label{font-size:10px;line-height:1.4}
 #local.local-collection #region-text{font-size:14px;line-height:1.5;margin-top:8px;max-width:44ch}
 #local.local-collection[data-region] .local-stage{grid-column:1;grid-row:2;height:clamp(500px,65svh,680px);width:100%;max-width:680px;margin:auto;min-height:0}
 #local.local-collection[data-region] .pattern-deck{inset:52px 0 100px}
 #local.local-collection>.region-choices{grid-column:1;grid-row:3;display:flex;flex-wrap:nowrap;gap:8px;width:100%;max-width:540px;margin:0 auto;padding-top:4px;align-self:end}
 #local.local-collection>.region-choices button{flex:1;min-width:0;min-height:46px;padding:12px 10px;font-size:14px}
 #local.local-collection .local-footnote{grid-column:1;grid-row:4;position:relative;inset:auto;margin:0;padding:16px 0 0;display:flex;align-items:center;gap:16px;border-top:1px solid #eeeddf24}
 #local.local-collection .local-footnote>p{max-width:34ch;font-size:11px;line-height:1.5}
 #local.local-collection .local-stage-actions{bottom:28px}
 #local.local-collection .local-product{inset:0 0 100px;max-width:none}
 #local.local-collection .local-render-frame{left:50%;top:0;bottom:0;height:100%;width:auto;max-width:100%;transform:translateX(-50%)}
 #local.local-collection .local-backdrops img{width:100%;height:70%;top:auto;bottom:0}
 .mechanism-sticky{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:100svh;min-height:0;padding-block:96px 24px;gap:16px}
 .mechanism-sticky .mechanism-copy{max-width:650px}
 .mechanism-sticky .mechanism-copy h2{font-size:clamp(30px,5.4vw,42px);line-height:1.1;margin:12px 0}
 .mechanism-sticky .mechanism-copy>p:not(.eyebrow){font-size:14px;line-height:1.55;margin:0;max-width:44ch}
 .mechanism-sticky .mechanism-copy>p:not(.eyebrow)+p,.mechanism-sticky .mechanism-chain{display:none}
 .mechanism-sticky .mechanism-scroll-cue{margin-top:12px;font-size:11px}
 .mechanism-sticky .mechanism-visual{min-height:0;height:100%;margin:0;border-radius:24px}
 .mechanism-sticky :is(#cad-canvas,#cad-poster){inset:16px auto 32px 12px;width:calc(100% - 144px);height:calc(100% - 48px)}
 .mechanism-control-rail{inset:50% 12px auto auto;transform:translateY(-50%);flex-direction:column;width:112px;max-height:calc(100% - 32px);overflow:auto;gap:14px;scrollbar-width:thin}
 .mechanism-control-rail .mechanism-actions{display:flex;flex-direction:column;gap:8px;margin:0;width:100%}
 .mechanism-control-rail .mechanism-actions :is(.pill,.text-button){display:flex;width:100%;min-height:48px;align-items:center;justify-content:center;gap:6px;padding:10px 8px;font-size:12px;line-height:1.35;text-align:center;white-space:normal}
 .mechanism-control-rail .ui-icon{width:17px;height:17px;flex:none}
 .mechanism-control-rail>.viewer-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
 .mechanism-control-rail .viewer-controls button{min-width:0;min-height:42px;padding:8px;font-size:11px}
 .mechanism-control-rail #reset-view{grid-column:1/-1;grid-row:2}
 .mechanism-sticky .model-caption{left:12px;right:132px;bottom:10px;font-size:8px}
 .mechanism-sticky .model-caption span{display:none}
 .mechanism-sticky .model-status{left:12px;right:144px;bottom:16px;font-size:11px;text-align:center}
}
@media(max-width:599px){
 #problem .problem-heading>div{bottom:auto}
 #local.local-collection[data-region] .local-stage{height:520px}
 #local.local-collection .local-footnote>p{display:none}
 #local.local-collection .local-footnote{justify-content:center}
 .exhibition-dialog{padding:52px 24px 28px}
 .mechanism-control-rail{right:8px;width:96px;gap:10px}
 .mechanism-control-rail .mechanism-actions :is(.pill,.text-button){font-size:11px;padding:10px 6px}
 .mechanism-sticky :is(#cad-canvas,#cad-poster){left:8px;width:calc(100% - 120px)}
 .mechanism-sticky .model-caption{right:112px;font-size:7px}
}
@media(prefers-reduced-motion:reduce){.mobile-menu-lines i,.exhibition-dialog *{scroll-behavior:auto}}

/* Keep the two compact pill rows anchored to the lower right. */
#living .scene-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
#living .scene-controls{order:2;display:grid;grid-template-columns:1fr;justify-items:end;gap:10px;margin-left:auto;padding:0 42px 0 0;max-width:100%}
#living .scene-control-row{display:grid;grid-template-columns:68px auto;align-items:center;gap:10px;max-width:100%}
#living .scene-control-row>.eyebrow{min-height:0;font-size:9px;text-align:right}
#living .scene-control-row .time-controls{display:flex;flex-direction:row;width:max-content;max-width:100%;border-radius:999px;gap:4px;padding:4px}
#living .scene-control-row .time-controls button{width:auto;flex:1;min-width:66px;min-height:44px;padding:9px 12px;font-size:12px;border-radius:999px;white-space:nowrap}
#living .scene-reset{right:0;top:50%;transform:translateY(-50%);width:34px;height:34px;min-width:34px}
#living .scene-reset:not(:disabled):active{transform:translateY(-50%) scale(.94)}
#living .scene-response{order:1;margin-right:auto;text-align:left;align-items:flex-start}
#living .native-scene-films video{transition:none}
#living .native-scene-films video.incoming{transition:opacity var(--scene-fade-duration,900ms) cubic-bezier(.4,0,.2,1)}
@media(max-width:900px){
 #living .scene-control-row{grid-template-columns:54px auto;gap:8px}
 #living .scene-control-row .time-controls button{min-width:58px;padding-inline:9px;font-size:11px}
 #living .scene-response>.pill{min-width:0;max-width:180px;padding-inline:14px}
}
@media(max-width:620px){
 #living .scene-bottom{display:grid;grid-template-columns:minmax(0,1fr);justify-items:end;gap:12px}
 #living .scene-controls{order:1;padding-right:36px;gap:8px}
 #living .scene-control-row{grid-template-columns:50px auto;gap:6px}
 #living .scene-control-row .time-controls button{min-width:0;padding-inline:8px}
 #living .scene-response{order:2;justify-self:start;align-items:center;width:100%;flex-direction:row}
 #living .scene-response>.pill{max-width:none}
}
@media(prefers-reduced-motion:reduce){#living .native-scene-films video.incoming{transition:none}}

@media(max-width:1100px){
 .site-footer .footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 20px;align-items:center;font-size:clamp(10px,1.5vw,12px);line-height:1.6}
 .site-footer .footer-bottom>span:first-child{grid-column:1;grid-row:1}
 .site-footer .footer-bottom>span:nth-child(2){grid-column:1;grid-row:2}
 .site-footer .footer-bottom>span:last-child{grid-column:2;grid-row:1/span 2;justify-self:end;align-self:center;text-align:right;width:auto;max-width:32ch}
}

/* The expanded + view is the back of the supplied flashcard, adapted to read at scale. */
.story-reading-dialog{width:min(920px,calc(100% - 32px));padding:0;max-height:calc(100dvh - 32px);border-color:#124e3830;background:#eeeddf;color:#104e39;box-shadow:0 28px 100px #041d1555;isolation:isolate}
.story-reading-dialog .exhibition-close{z-index:3;position:sticky;float:right;top:14px;right:auto;margin:14px 14px -58px 0;color:#104e39;background:#eeeddfcc;border-radius:50%}
.story-reading-dialog .exhibition-close:hover{background:#dce0cc}
.story-reading-back{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:min(620px,calc(100dvh - 34px));padding:clamp(32px,5.5vw,64px);overflow:hidden}
.story-reading-map{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:url(#flashcard-map-only);opacity:.8;z-index:-1;pointer-events:none}
.story-reading-header{display:flex;align-items:baseline;justify-content:space-between;gap:22px;padding-right:32px;line-height:1.3}
.story-reading-header p{font-size:clamp(13px,1.6vw,18px);margin:0;letter-spacing:0;color:inherit}
.story-reading-header b{font-size:clamp(20px,2.5vw,28px);font-weight:600;letter-spacing:-.03em}
.story-reading-copy{position:relative;min-width:0;color:inherit;margin:42px 0 38px}
.story-reading-dialog h2{font-size:clamp(42px,7vw,80px);line-height:1.04;letter-spacing:-.045em;margin:0 0 32px;color:inherit;font-weight:400}
.story-reading-body{font-size:clamp(16px,2vw,21px);line-height:1.6;max-width:64ch;margin:0;color:inherit;letter-spacing:0}
.story-reading-credit{display:flex;flex-direction:column;gap:3px;align-items:flex-end;text-align:right;margin:auto 0 0;padding-top:24px;color:inherit;font-size:clamp(12px,1.6vw,17px);line-height:1.4}
.story-reading-credit strong{font-weight:600}
@media(max-width:600px){.story-reading-back{min-height:min(700px,calc(100dvh - 34px));padding:32px 26px}.story-reading-header{gap:14px;flex-wrap:wrap;padding-right:32px}.story-reading-header b{font-size:21px}.story-reading-copy{margin:40px 0 32px}.story-reading-dialog h2{font-size:clamp(39px,11vw,60px);margin-bottom:25px}.story-reading-body{font-size:16px;line-height:1.65}.story-reading-credit{padding-top:26px;font-size:13px}.story-reading-map{object-fit:cover;object-position:center top}}
