/* Two real project previews, paired with quiet, alternating story entries. */
.home-cases { padding: 88px 0 100px; }
.home-case-list { display: grid; gap: 64px; }
.home-case { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 32px; align-items: stretch; }
.home-case-copy { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 32px 12px 32px 36px; color: var(--ink); min-width: 0; text-decoration: none; }
.home-case-category { color: var(--accent); font-size: 12px; font-weight: 550; line-height: 1.4; margin-bottom: 22px; }
.home-case-copy h3 { font-size: clamp(32px,3.15vw,46px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; max-width: 370px; transition: color .2s; }
.home-case-deck { font-size: 16px; line-height: 1.6; color: var(--sub); max-width: 350px; margin: 0 0 28px; }
.home-case-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: 350px; min-height: 48px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 550; }
.home-case-arrow { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 24px; line-height: 1; transition: color .2s, background .2s, transform .2s; }
.home-case-copy:hover h3, .home-case-copy:focus-visible h3 { color: var(--accent); }
.home-case-copy:hover .home-case-arrow, .home-case-copy:focus-visible .home-case-arrow { color: white; background: var(--accent); transform: translate(2px,-2px); }
.home-case-preview { grid-column: 1; grid-row: 1; min-width: 0; }
.home-cases .gs-viewer { position: relative; border-radius: 3px; }
.home-cases .gs-preview, .home-cases .gs-stage { height: clamp(370px,33vw,460px); }
.home-cases .gs-stage { position: relative; overflow: hidden; overflow: clip; }
.home-cases [data-viewer-layout="model-scene"] .gs-stage > iframe,
.home-cases [data-viewer-layout="portal-scene"] .gs-stage > iframe { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; }
.home-cases .gs-viewer:fullscreen { display: flex; flex-direction: column; background: var(--ink); border: 0; border-radius: 0; }
.home-cases .gs-viewer:fullscreen .gs-stage { flex: 1; width: 100%; height: auto; min-height: 0; }
.home-cases .gs-preview > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-cases .gs-start { left: 22px; bottom: 22px; background: var(--accent); border-color: var(--accent); color: white; }
.home-cases .gs-start:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.home-cases .gs-viewer-tools { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: #fffffff5; box-shadow: 0 2px 8px #24222a0c; }
.home-cases .gs-tool { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 2px; color: var(--ink); background: transparent; cursor: pointer; text-decoration: none; }
.home-cases .gs-tool:hover { color: var(--accent); background: var(--accent-soft); }
.home-cases .gs-tool:focus-visible { outline-offset: -3px; }
.home-cases .gs-tool svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-cases .gs-tool .gs-collapse-icon, .home-cases .gs-tool[aria-pressed="true"] .gs-expand-icon { display: none; }
.home-cases .gs-tool[aria-pressed="true"] .gs-collapse-icon { display: block; }
.home-cases .gs-viewer-tools[hidden], .home-cases .gs-tool[hidden] { display: none; }
.home-case-reverse { grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); }
.home-case-reverse .home-case-copy { grid-column: 1; }
.home-case-reverse .home-case-copy { padding: 32px 36px 32px 0; }
.home-case-reverse .home-case-preview { grid-column: 2; }
@media (max-width:1050px) {
  .home-case, .home-case-reverse { gap: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-case-copy, .home-case-reverse .home-case-copy { padding: 24px 8px; }
  .home-case-copy h3 { font-size: 36px; }
}
@media (max-width:700px) {
  .home-cases { padding: 60px 0; }
  .home-case-list { gap: 44px; }
  .home-case, .home-case-reverse { display: flex; flex-direction: column; gap: 20px; }
  .home-case-copy, .home-case-reverse .home-case-copy { padding: 0; }
  .home-case-category { margin-bottom: 16px; }
  .home-case-copy h3 { font-size: 36px; margin-bottom: 18px; max-width: 420px; }
  .home-case-deck { max-width: 420px; margin-bottom: 22px; }
  .home-case-cta { max-width: none; }
  .home-cases .gs-preview, .home-cases .gs-stage { height: 390px; }
  .home-cases .gs-start { left: 16px; bottom: 18px; }
  .home-cases .gs-viewer-tools { right: 10px; bottom: 10px; }
}
@media (max-width:360px) {
  .home-case-copy h3 { font-size: 29px; }
  .home-cases .gs-preview, .home-cases .gs-stage { height: 350px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-case-copy h3, .home-case-arrow { transition: none; }
  .home-case-copy:hover .home-case-arrow, .home-case-copy:focus-visible .home-case-arrow { transform: none; }
}

/* Keep the static residential preview inside its content area, above the toolbar. */
.home-cases [data-viewer-layout="portal-scene"] .gs-preview{overflow:hidden;}
.home-cases [data-viewer-layout="portal-scene"] .gs-preview>img{height:112%;object-position:center top;}
