/* Home. Keep the pavilion unobstructed and group each mode with its purpose. */
.home-actions { display:flex; align-items:center; justify-self:end; gap:clamp(16px,2.2vw,34px); pointer-events:auto }
.home-work { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; color:inherit; font:inherit; letter-spacing:0; text-transform:none; text-decoration:underline; text-decoration-color:rgba(12,14,17,.35); text-underline-offset:5px }
.home-work:hover, .home-work:focus-visible { text-decoration-color:currentColor }
.home-v8 .studio-description { max-width:33ch; margin-top:13px; color:#38424b }
.home-v8 .scene-modes { gap:clamp(26px,4vw,60px) }
.home-v8 .scene-modes .ctl { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:48px; min-width:56px; padding:6px 0 8px; line-height:1.25; text-align:left; color:var(--ink); opacity:1 }
.home-v8 .scene-modes .ctl.on::after { width:18px; bottom:1px }
.mode-caption { font-size:12px; font-weight:400; letter-spacing:0; text-transform:none; color:#46525c }
.home-v8 .light-invitation { color:#46525c }
.home-v8 .ui:has(#gl[data-state="fallback"]) .scene-controls { display:none }
.home-v8 .scene-feedback button { min-height:44px }
.home-v8 .home-actions :focus-visible, .roof-switch summary:focus-visible { outline:2px solid currentColor; outline-offset:3px }
.sheet-nav a:focus-visible, .menu-links a:focus-visible { outline:2px solid currentColor; outline-offset:3px; border-radius:2px }
.hero-bottom .scroll-link { margin-left:auto; gap:14px; min-height:44px; min-width:44px }
.hero-bottom .scroll-link > span:first-child { display:inline; font-size:13px }
.hero-bottom .circle-arrow { width:44px; height:44px }
@media (max-width:900px) and (orientation:portrait) {
  .home-v8 .scene-controls { display:block; padding-top:9px }
  .home-v8 .scene-modes { justify-content:space-between; gap:18px }
  .home-v8 .scene-modes .ctl:last-child { align-items:flex-end; text-align:right }
  .home-v8 .scene-modes .ctl:last-child::after { left:auto; right:0 }
  .home-v8 .light-invitation { display:none }
}
@media (max-height:540px) and (orientation:landscape) {
  .home-v8 .studio-intro { margin-top:clamp(8px,4svh,22px); max-width:44% }
  .home-v8 .scrim::after { height:33% }
}

/* Services. Keep the three destinations together and the four formats comparable. */
.services-v8 .services-hero { padding-top:clamp(100px,9vw,144px) }
.services-v8 .services-opening { display:block; margin-top:16px }
.services-v8 .service-index { display:flex; gap:clamp(18px,4vw,64px); flex-wrap:wrap; margin-top:28px; border-block:1px solid var(--line) }
.services-v8 .service-index a { flex:0 1 auto; display:inline-flex; align-items:center; min-height:48px; gap:10px; padding:0; border:0; font-size:14px }
.services-v8 .service-index a > span:first-child { display:none }
.services-v8 .service-index a > span:last-child { margin:0 }
.services-v8 .service-index svg { width:14px; height:14px }
.services-v8 .service-spatial { padding-top:clamp(38px,4vw,64px) }
.services-v8 .chapter-opening { display:block; margin-bottom:clamp(20px,2.5vw,38px) }
.services-v8 .service-heading .eyebrow { margin-bottom:12px }
.services-v8 .spatial-layout { grid-template-columns:minmax(0,1fr) minmax(0,1.45fr); gap:clamp(36px,5vw,80px); align-items:start }
.services-v8 .service-outputs > div { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:16px; align-items:baseline; padding:16px 0 }
.services-v8 .service-outputs dt { font-size:clamp(15px,1.25vw,20px); line-height:1.4; letter-spacing:-.025em }
.services-v8 .service-outputs dd { margin:0; font-size:14px; line-height:1.55; color:#414c56 }
.services-v8 .service-scope { margin-top:14px }
.services-v8 .service-scope summary { min-height:46px; font-size:13px }
.services-v8 .chapter-copy .service-scope { border-top:1px solid var(--line) }
.services-v8 .service-lead { color:#414c56; max-width:33ch }
.services-v8 .service-chapter { scroll-margin-top:72px }
.roof-study { --frame:16 / 9; display:grid; grid-template-columns:minmax(0,1fr) auto; position:relative; margin:0; min-width:0; align-items:center }
.roof-render, .form-layer { grid-column:1/-1; width:100%; aspect-ratio:var(--frame); background:#dbe2e7 }
.roof-render, .form-layer img { display:block; width:100%; height:auto; object-fit:cover }
.roof-study figcaption { display:grid; gap:4px; line-height:1.3; padding:12px 8px 8px 0; color:#20272d; font-size:15px; letter-spacing:-.01em }
.roof-study figcaption > span { font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:#48535d }
.roof-switch summary { display:flex; align-items:center; gap:9px; list-style:none; cursor:pointer; min-height:46px; font-size:13px; font-weight:450; color:#171e23 }
.roof-switch summary::-webkit-details-marker { display:none }
.roof-switch summary::before { content:""; position:absolute; z-index:2; top:0; left:0; right:0; aspect-ratio:var(--frame) }
.study-toggle-mark { width:15px; height:15px; border:1px solid currentColor; border-radius:50%; background:linear-gradient(90deg,currentColor 50%,transparent 50%); flex:none }
.roof-switch[open] .study-toggle-mark { transform:rotate(180deg) }
.form-layer { position:absolute; top:0; right:0; left:0; pointer-events:none; overflow:hidden }
.form-layer img { height:100%; color:#20272d; font-size:14px }
.roof-switch:not([open]) .when-form, .roof-switch[open] .when-render { display:none }
.roof-switch[open] .form-layer { animation:reveal-form 180ms ease-out both }
@keyframes reveal-form { from { opacity:0 } to { opacity:1 } }
@media (prefers-reduced-motion:reduce) { .roof-switch[open] .form-layer { animation:none } }
@media (max-width:760px) {
  .services-v8 .services-hero { padding-top:94px }
  .services-v8 .services-opening h1 { font-size:clamp(40px,10vw,60px) }
  .services-v8 .service-index { justify-content:flex-start; gap:clamp(18px,6vw,40px); margin-top:22px }
  .services-v8 .service-index a { min-height:46px; font-size:13px; gap:4px }
  .services-v8 .service-heading h2 { font-size:clamp(32px,8.3vw,50px); line-height:1.09; text-wrap:balance }
  .services-v8 .spatial-layout { display:grid; grid-template-columns:1fr; gap:30px }
  .services-v8 .chapter-specification { margin-top:0 }
  .services-v8 .service-outputs > div { padding:12px 0; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:14px }
  .services-v8 .service-outputs dd { font-size:14px; line-height:1.48 }
  .services-v8 .service-work-link { margin-top:12px }
  .services-v8 .service-scope { margin-top:5px }
  .services-v8 .chapter-pair,.services-v8 .service-systems .chapter-pair { gap:18px }
  .services-v8 .chapter-copy .service-scope { grid-row:4 }
  .services-v8 .service-chapter { scroll-margin-top:56px }
}
