.project-hero { min-width: 0; }
.project-hero picture, .project-hero img, .project-photo img { width: 100%; display: block; }
.project-hero img { height: clamp(320px, 53vw, 710px); object-fit: cover; }
.project-hero .hero-text { color: white; background: #16232c; padding: 1.25rem 0; }
.hero-text p { margin: 0 0 .4rem; color: #f3dbb9; }
.home-cover { display: grid; grid-template-columns: minmax(0,1fr); min-height: 0; max-width: none; margin: 0; }
.home-cover .site-hero-media, .home-cover .site-hero-copy { grid-area: 1 / 1; min-width: 0; }
.home-cover .site-hero-media { position: static; z-index: auto; height: clamp(450px,47vw,680px); }
.home-cover .site-hero-copy { align-self: end; }
@media (min-width:821px) { .home-cover .desktop-word { white-space: nowrap; } }
.home-cover .site-hero-copy { width: 100%; padding: 5rem max(5vw, 22px) 2.5rem; background: linear-gradient(transparent,rgba(10,20,29,.94) 53%); }
.home-cover .site-hero-copy p { max-width: 41em; }
.home-cover .site-hero-media picture, .home-cover .site-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-intro { padding-block: clamp(28px,5vw,64px); }
.project-intro .axis { font: 600 clamp(22px,3vw,34px)/1.55 var(--display); max-width: 28em; margin: 0 0 1.1rem; }
.project-facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0; }
.project-facts dt, .project-photo figcaption, .compare-caption { color: var(--ink2); }
.project-facts dd { margin: 0; }
.project-section > p, .feature-copy p { max-width: 36em; }
.photo-spread { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.project-photo { margin: 0; min-width: 0; }
.project-photo figcaption { margin-top: .45rem; font-size: 16px; }
.project-section .next { margin: 2rem 0; }
.compare { max-width: 56rem; margin: 1.5rem 0; }
.compare-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.compare-images figure { margin: 0; min-width: 0; }
.compare-images picture, .compare-images img { display: block; width: 100%; height: auto; }
.compare-images figcaption { background: #16232c; color: white; padding: .15rem .6rem; }
.compare.ready .compare-images { display: grid; position: relative; grid-template-columns: minmax(0,1fr); gap: 0; }
.compare.ready figure { grid-area: 1 / 1; position: relative; }
.compare.ready figure:first-child { z-index: 1; width: var(--split,50%); overflow: hidden; }
.compare.ready figure:first-child picture { width: var(--photo-width); }
.compare.ready .compare-images::after { content: ""; position: absolute; inset-block: 0; left: var(--split,50%); width: 2px; background: white; z-index: 2; pointer-events: none; }
.compare.ready figcaption { position: absolute; top: .6rem; left: .6rem; white-space: nowrap; }
.compare.ready figure:last-child figcaption { left: auto; right: .6rem; }
.compare input { width: 100%; cursor: ew-resize; min-height: 44px; padding: 0; accent-color: var(--brass); }
.compare label { margin: .4rem 0; }
.compare.portrait { max-width: 33rem; }
.feature-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); align-items: start; gap: clamp(20px,5vw,70px); }
.feature-copy .project-photo { max-width: 27rem; margin-block: 1.3rem; }
.feature-layout .compare { margin: 0; }
.portfolio-group { padding-block: 32px; }
@media(max-width:820px) {
  .home-cover { display: block; width: 100%; }
  .home-cover .site-hero-media, .home-cover .site-hero-media picture { height: auto; }
  .home-cover .site-hero-copy { overflow-wrap: anywhere; }
  .home-cover .site-hero-copy .btns { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(8rem,100%),1fr)); }
  .home-cover .btn { min-width: 0; }
  .home-cover .site-hero-media img { aspect-ratio: 16/9; height: auto; }
  .home-cover .site-hero-copy { background: #16232c; padding: 24px; }
  .feature-layout, .home-about-layout { grid-template-columns: minmax(0,1fr); }
  .feature-layout > *, .home-about-layout > *, .compare { min-width: 0; max-width: 100%; }
  .photo-spread { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-hero img { height: auto; aspect-ratio: 16/9; }
  .project-hero .hero-text { position: static; padding: 1rem 0; background: #16232c; }
}
@media(max-width:520px) { .photo-spread { grid-template-columns: 1fr; } }
.compare.ready .compare-images { touch-action: pan-y; cursor: ew-resize; user-select: none; }
.compare.ready .compare-images img { -webkit-user-drag: none; }
.card picture { display: block; }
.portfolio-group .grid { margin-top: 1.5rem; }
/* v0.8 首頁封面：擬真圖 hero-home，右下「情境示意」浮在文字漸層之上；手機版圖靠右、高度約寬度 2/3 */
.home-cover .site-hero-media { position: relative; }
.home-cover .hero-disclaimer { z-index: 2; }
@media(max-width:820px) { .home-cover .site-hero-media img { aspect-ratio: 3/2; object-position: 92% 50%; } }
/* v0.8r1 電腦版封面回到 v0.6 版面：高度約 400px、左側 46% 深底文案框、右側畫面不壓暗（只限 821px 以上；手機 92% 對位不動） */
@media (min-width:821px) {
  .home-cover { display: flex; align-items: center; min-height: 400px; max-width: 1440px; margin: 0 auto 32px; }
  .home-cover .site-hero-media { position: absolute; inset: 0; z-index: -1; height: auto; }
  .home-cover { align-items: stretch; }
  .home-cover .site-hero-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; width: 46%; padding: clamp(24px,3vw,48px); background: rgba(16,23,25,.82); }
  .home-cover .site-hero-copy h1 { font-size: clamp(28px,2.9vw,44px); }
}

/* 基隆內頁主圖整張顯示，不裁上下（M-20261203-1654） */
.project-hero--full img { height: auto; aspect-ratio: 16/9; object-fit: contain; }
