.home-street-stage {
  position:relative; isolation:isolate; overflow:hidden; display:grid; align-items:end;
  min-height:clamp(465px,74svh,845px); background:#1c3536; color:#fffaf0;
}
.home-street-picture,.home-street-shade {position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.home-street-scene {width:100%;height:100%;display:block;object-fit:cover;object-position:68% 53%}
.home-street-shade {background:linear-gradient(90deg,rgba(11,29,29,.88),rgba(13,30,30,.66) 26%,rgba(13,30,30,.09) 61%,transparent 80%),linear-gradient(0deg,rgba(13,24,24,.66),transparent 54%)}
.home-street-content {width:min(91%,1440px);margin-inline:auto;padding:clamp(90px,16svh,170px) 0 clamp(44px,8svh,88px)}
.home-street-content h1 {margin:0;max-width:9em;color:inherit;font-family:inherit;font-size:clamp(54px,5.55vw,96px);line-height:1.05;font-weight:750;letter-spacing:-.075em;word-break:keep-all}
.home-street-content h1 span {display:block}
.home-street-content p {max-width:28em;margin:20px 0 25px;font-size:clamp(15px,1.24vw,20px);font-weight:480;line-height:1.65;letter-spacing:-.025em;word-break:keep-all;color:#f7efdf}
.home-street-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px}
.home-street-actions a {display:inline-flex;align-items:center;min-height:46px;font-family:inherit;font-weight:680;text-decoration:none}
.home-street-actions a.home-street-start {gap:21px;border-radius:4px;background:#e8efb1;color:#1c322f;padding:0 20px;min-height:51px;box-shadow:0 2px 10px #10202029}
.home-street-start span {font-size:1.26em}
.home-street-start:hover {background:#f4f5cf}
.home-street-projects {color:#fff9eb;text-decoration:underline!important;text-underline-offset:5px;text-decoration-color:#f5efce8c!important}
.home-street-inquiry {color:#f3efdf;font-size:.92em}
.home-street-inquiry:hover {text-decoration:underline}
.home-street-actions a:focus-visible {outline:3px solid #fff;outline-offset:4px}
#spaces[data-home-office-secondary] {scroll-margin-top:72px}
@media(max-width:640px) {
  .home-street-stage {min-height:clamp(458px,71svh,620px)}
  .home-street-scene {object-position:50% 45%}
  .home-street-shade {background:linear-gradient(0deg,#142e2e 0%,rgba(13,36,35,.91) 13%,rgba(13,35,35,.58) 37%,transparent 69%)}
  .home-street-content {width:calc(100% - 40px);padding:150px 0 29px}
  .home-street-content h1 {font-size:clamp(40px,10.5vw,62px);line-height:1.13}
  .home-street-content h1 span {display:inline}
  .home-street-content p {max-width:19em;margin:12px 0 18px;font-size:15px;line-height:1.55}
  .home-street-actions {gap:8px 17px;font-size:14px}
  .home-street-actions a.home-street-start {min-height:46px;gap:12px;padding:0 15px}
}
@media(max-height:500px) and (min-width:641px) {
  .home-street-stage {min-height:400px}
  .home-street-content {padding:72px 0 30px}
}

.home-street-entry {--home-street-top:100px;color:#fffaf0;background:#172725}
.home-street-stage {min-height:max(500px,calc(100svh - 60px))}
#home-street-game {position:absolute;inset:var(--home-street-top) 0 0;width:100%;height:calc(100% - var(--home-street-top));border:0;margin:0;display:block;opacity:0;pointer-events:none;background:#233f42}
.home-street-footer {display:none}
.home-street-entry[data-game-state="ready"] #home-street-game {opacity:1;pointer-events:auto;z-index:1}
.home-street-entry[data-game-state="ready"] .home-street-shade,.home-street-entry[data-game-state="ready"] .home-street-picture {display:none}
.home-street-entry[data-game-state="ready"] .home-street-content {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.home-street-entry[data-game-state="ready"] .home-street-content p,.home-street-entry[data-game-state="ready"] .home-street-actions {display:none}
.home-street-entry[data-game-state="ready"] .home-street-footer {display:flex;align-items:center;gap:4px 26px;justify-content:flex-start;padding:0 max(4.5%,20px);background:#1c302e;border-bottom:1px solid #78918a59}
.home-street-footer a {display:flex;align-items:center;gap:6px;min-height:46px;font-size:14px;font-weight:640;color:#f4f1db;text-decoration:none;white-space:nowrap}
.home-street-footer a:last-child {margin-left:auto;color:#d2dfb0}
.home-street-footer a:focus-visible {outline:2px solid #ffda96;outline-offset:1px}
.home-street-footer a:hover {text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.home-street-entry {--home-street-top:80px}.home-street-stage {min-height:max(420px,calc(100svh - 64px))}
  .home-street-entry[data-game-state="ready"] .home-street-footer {padding:0 12px;gap:0 9px;justify-content:space-between;flex-wrap:wrap}
  .home-street-footer a{font-size:12px;letter-spacing:-.04em;gap:2px}.home-street-footer a:last-child{margin-left:0}}
@media(max-height:500px) and (min-width:641px){.home-street-stage {min-height:460px}}


#main > #home-search {
  box-sizing: border-box;
  width: min(91%, 1000px);
  margin: 0 auto;
  padding: 12px 0 clamp(28px, 5vw, 64px);
  scroll-margin-top: var(--site-header-height, 90px);
  text-align: left;
}
#main > #home-search .ss-form { margin: 0; }
#main > #home-search .ss-contact { margin-top: 4px; }
@media (max-width:760px) {
  #main > #home-search { width: calc(100% - 32px); scroll-margin-top: 76px; }
}

@media (min-width: 761px) {
  #main {
    --home-column-width: min(91%, clamp(65rem, 75%, 100rem));
  }
  .home-street-entry {
    padding-top: var(--home-street-top);
  }
  .home-street-stage {
    width: var(--home-column-width);
    aspect-ratio: 16 / 9;
    max-height: max(24rem, calc(100svh - var(--home-street-top) - 13rem));
    min-height: 0;
    margin-inline: auto;
  }
  #home-street-game {
    inset: 0;
    height: 100%;
  }
  .home-street-content { padding: 0 0 34px; }
  .home-street-content h1 { font-size: clamp(45px, 7svh, 78px); }
  .home-street-entry[data-game-state="ready"] .home-street-footer {
    box-sizing: border-box;
    width: var(--home-column-width);
    margin-inline: auto;
    padding-inline: 14px;
    gap: 12px;
  }
  .home-street-footer a { min-height: 44px; }

  #main > #home-search,
  #home-production {
    box-sizing: border-box;
    width: var(--home-column-width);
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  #main > #home-search:not(.ss-chat-active) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 2px 16px;
    padding-block: 6px 4px;
  }
  #main > #home-search:not(.ss-chat-active) > :is(.ss-form, .ss-response) { grid-column: 1 / -1; }
  #main > #home-search:not(.ss-chat-active) .ss-form { padding: 4px; }
  #main > #home-search:not(.ss-chat-active) .ss-form :is(input, button[type="submit"]) {
    height: 44px;
    min-height: 44px;
  }
  #main > #home-search:not(.ss-chat-active) > :is(.ss-contact, .ss-privacy) {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 12px;
  }
  #main > #home-search:not(.ss-chat-active) > .ss-contact { gap: 0 14px; }
  #main > #home-search:not(.ss-chat-active) > .ss-contact a { min-height: 32px; }
  #main > #home-search:not(.ss-chat-active) > .ss-privacy:not(:has(details[open])) {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #main > #home-search:not(.ss-chat-active) .ss-privacy summary {
    min-height: 32px;
    padding: 6px 0;
  }
  #main > #home-search:not(.ss-chat-active) > .ss-privacy:has(details[open]) { grid-column: 1 / -1; }

  #home-production {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 20px;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 6px 20px;
    border: 1px solid #ffffff29;
    border-radius: 6px;
  }
  #home-production .hero-shade {
    background: linear-gradient(90deg, #121916eb 0%, #171c19a6 50%, #101714d1 100%);
  }
  #home-production .wrap { width: 100%; margin: 0; }
  #home-production .hero-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 4px 24px;
    padding: 0;
  }
  #home-production #hero-title {
    margin: 0;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.05;
  }
  #home-production .hero-description { margin: 0; font-size: 13px; line-height: 1.35; }
  #home-production .hero-actions { margin-top: 4px; gap: 4px 8px; }
  #home-production .hero-actions > a { min-height: 44px; padding: 4px 11px; }
  #home-production .hero-scene-controls,
  #home-production .hero-foot {
    position: static;
    justify-content: flex-start;
    gap: 12px;
  }
  #home-production .hero-scene-controls button { min-height: 36px; }
  #home-production .hero-foot a { gap: 5px; }
}

/* The production banner and catalogue share a single content rail. */
#main {
  --production-rail: min(calc(100% - 32px), 100rem);
}
@media (min-width: 761px) {
  #main { --production-rail: var(--home-column-width); }
}
#main > #home-production,
#main > #work {
  box-sizing: border-box;
  width: var(--production-rail);
  max-width: none;
  margin-inline: auto;
}
#main > #home-production {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
  height: auto;
  min-height: 0;
  max-height: none;
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid #ffffff29;
  border-radius: 8px;
}
#main > #home-production .hero-image {
  object-position: var(--production-focal, 57% 50%);
}
#main > #home-production .hero-image[src*="fantasy"] { --production-focal: 56% 52%; }
#main > #home-production .hero-image[src*="robot"] { --production-focal: 58% 45%; }
#main > #home-production .hero-image[src*="blue-architecture"] { --production-focal: 62% 45%; }
#main > #home-production .hero-image[src*="material-testing"] { --production-focal: 62% 56%; }
#main > #home-production .hero-image[src*="architectural-interior"] { --production-focal: 52% 51%; }
#main > #home-production .hero-shade {
  background: linear-gradient(90deg, #101815f2, #101815b8 54%, #141a17a8), linear-gradient(0deg, #0e1512b8, transparent 60%);
}
#main > #home-production .wrap { width: 100%; margin: 0; padding: 0; }
#main > #home-production .hero-content { display: grid; align-items: center; gap: 12px clamp(24px, 3vw, 50px); }
#main > #home-production #hero-title {
  margin: 0;
  font-size: clamp(1.4rem, 4.3vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  overflow-wrap: normal;
}
#main > #home-production .hero-description { margin: 0; font-size: clamp(.875rem, 1.3vw, 1rem); line-height: 1.45; }
#main > #home-production .hero-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
#main > #home-production .hero-actions > a { min-height: 44px; padding-inline: 11px; }
#main > #home-production .hero-scene-controls,
#main > #home-production .hero-foot {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 12px;
}
#main > #home-production .hero-scene-controls > div { display: flex; flex-wrap: wrap; gap: 6px; }
#main > #home-production .hero-scene-controls button { min-height: 44px; }
#main > #home-production .hero-foot a { flex-wrap: nowrap; }
@media (min-width: 850px) {
  #main > #home-production { grid-template-columns: minmax(0, 1fr) auto; }
  #main > #home-production .hero-content {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  }
  #main > #home-production #hero-title { font-size: clamp(1.8rem, 3.25vw, 3.15rem); }
  #main > #home-production .hero-foot { justify-content: flex-end; }
}
#main > #work { padding: clamp(24px, 3.6vw, 52px) 0 0; }
#work .portfolio-heading { margin: 0 0 clamp(12px, 2vw, 20px); align-items: baseline; }
#work .project-tag-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 clamp(12px, 2vw, 22px);
}
#work .project-tag-filters button {
  width: 100%;
  padding-inline: 6px;
  font-size: .875rem;
  white-space: nowrap;
}
@media (min-width: 1550px) {
  #work .project-tag-filters { grid-template-columns: repeat(13, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #work .project-tag-filters {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #687350 #20241d;
    padding: 4px 4px 9px;
  }
  #work .project-tag-filters button { padding-inline: 12px; }
}
