/* Scoped light adaptation of the CIIE detail page. Artwork pixels remain intact. */
#ciie-project-content {
  --home-black:#fff; --home-white:#111;
  --home-display:'CIIEPlexMono','CIIENotoSans','PingFang SC',monospace;
  --home-utility:'CIIEPlexMono','CIIENotoSans','PingFang SC',monospace;
  position:relative;z-index:2;background:#fff;color:#111;
  font:400 16px/1.5 var(--home-display);text-align:left;isolation:isolate;
  color-scheme:light;overflow:clip;
}
#ciie-project-content *,#ciie-project-content *::before,#ciie-project-content *::after{box-sizing:border-box}
#ciie-project-content :is(p,h3,h4,figure){margin:0}
#ciie-project-content button{font:inherit;color:inherit;cursor:pointer}
#ciie-project-content .terminal-case-story,#ciie-project-content .terminal-case-chapter{background:#fff}
#ciie-project-content .terminal-case-chapter{scroll-margin-top:0}
#ciie-project-content .terminal-case-chapter::before{display:none}
#ciie-project-content .terminal-case-chapter > header h3{margin:clamp(26px,7vh,66px) 0 20px}
#ciie-project-content .terminal-case-description{margin-top:0;padding-top:0}
#ciie-project-content .terminal-case-description > p{color:#595959;text-wrap:pretty}
#ciie-project-content .terminal-case-description > p + p{margin-top:.75em}
#ciie-project-content .terminal-case-metrics article h4{margin:8px 0}
#ciie-project-content .terminal-case-media img{color:#111}
/* Replace the old travel template's subsequent sections with the CIIE chapters. */
#ciie-project-content ~ section,#ciie-project-content ~ .footer{display:none!important}
@media(max-width:760px){
 #ciie-project-content .terminal-case-chapter > header h3{margin:28px 0 14px}
}

/* 2026-10-30: remove terminal-style rules and ornamental labels throughout. */
#ciie-project-content .terminal-case-chapter,
#ciie-project-content .terminal-case-chapter > header,
#ciie-project-content .terminal-case-attribution,
#ciie-project-content .terminal-case-description,
#ciie-project-content .terminal-case-metrics,
#ciie-project-content .terminal-case-metrics article,
#ciie-project-content .terminal-case-statement,
#ciie-project-content .terminal-case-process,
#ciie-project-content .terminal-case-process article,
#ciie-project-content .terminal-case-media-rail-controls,
#ciie-project-content .terminal-case-media-rail-controls > button {
  border-color:transparent;
}
#ciie-project-content .terminal-case-chapter > header > p,
#ciie-project-content .terminal-case-description > small,
#ciie-project-content .terminal-case-frame-corners,
#ciie-project-content .terminal-case-metrics article > span,
#ciie-project-content .terminal-case-media figcaption > span,
#ciie-project-content .terminal-case-media figcaption > i {
  display:none;
}
#ciie-project-content .terminal-case-media figcaption {grid-template-columns:1fr}
#ciie-project-content .terminal-case-media-stage::after {display:none!important}
#ciie-project-content .terminal-deferred-media__placeholder {background:#f6f6f6}

@media (hover: none), (pointer: coarse) {
  #ciie-project-content .terminal-case-media :is(img, video),
  #ciie-project-content .terminal-case-media:is(:hover, .is-frame-target) :is(img, video),
  #ciie-project-content .terminal-case-media .terminal-deferred-media > img.terminal-progressive-preview,
  #ciie-project-content .terminal-case-media .terminal-deferred-media.is-ready > img.terminal-progressive-full,
  #ciie-project-content .terminal-case-media:is(:hover, .is-frame-target)
    .terminal-deferred-media.is-ready > img.terminal-progressive-full {
    filter: none !important;
    transform: none !important;
  }
  #ciie-project-content .terminal-case-media .terminal-deferred-media > img.terminal-progressive-preview,
  #ciie-project-content .terminal-case-media .terminal-deferred-media > img.terminal-progressive-full {
    transition: opacity .25s ease !important;
    will-change: auto;
  }
}
