.mobile-menu-toggle,
.mobile-navigation-layer,
.mobile-tour-progress,
.mobile-portrait-home-dock {
  display: none;
}

.mobile-portrait-hero-title {
  display: none;
}

@media (max-width: 699px), (max-width: 950px) and (max-height: 500px) {
  :root {
    --header-main-height: calc(3.8rem + env(safe-area-inset-top));
    --energy-strip-height: 1.9rem;
    --site-footer-height: 0rem;
    --site-chrome-top: calc(
      var(--header-main-height) + var(--energy-strip-height)
    );
    --mobile-card-bottom: calc(1rem + env(safe-area-inset-bottom));
    --mobile-active-card-height: min(45dvh, 25rem);
    --mobile-project-collapsed-height: clamp(10.75rem, 28dvh, 12.25rem);
    --mobile-project-expanded-height: min(58dvh, 31rem);
  }

  html,
  body {
    min-height: 100dvh;
    background: var(--color-green-deep);
  }

  body {
    -webkit-tap-highlight-color: transparent;
  }

  .consent-layer,
  .legal-layer,
  .contact-layer {
    background: rgba(42, 49, 33, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #site-shell > .site-header {
    filter: none;
  }

  #site-shell > .site-header .site-header-main {
    height: var(--header-main-height);
    padding: env(safe-area-inset-top) 1rem 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.9rem;
    background: rgba(36, 41, 30, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
  }

  #site-shell > .site-header .site-wordmark {
    width: 9.6rem;
    height: 1.65rem;
  }

  #site-shell > .site-header .site-wordmark img {
    width: 108%;
    transform: translate(-4.2%, -25%);
  }

  #site-shell > .site-header .site-navigation {
    display: none;
  }

  #site-shell > .site-header .site-language {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  #site-shell > .site-header .energy-strip,
  .w7-site-header .energy-strip {
    min-height: var(--energy-strip-height);
    padding: 0.45rem 1rem 0.4rem;
    justify-content: center;
    overflow: hidden;
    background: rgba(152, 169, 130, 0.98);
    font-size: clamp(0.38rem, 1.55vw, 0.48rem);
    letter-spacing: 0.025em;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    position: relative;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    grid-column: 2;
    grid-row: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 1rem;
    height: 1px;
    background: currentColor;
  }

  .mobile-menu-toggle span:first-child {
    transform: translateY(-0.19rem);
  }

  .mobile-menu-toggle span:last-child {
    transform: translateY(0.19rem);
  }

  .mobile-menu-toggle:focus-visible,
  .mobile-navigation-close:focus-visible,
  .mobile-navigation-item:focus-visible,
  .mobile-navigation-secondary button:focus-visible {
    outline: 2px solid var(--color-green-light);
    outline-offset: 3px;
  }

  .mobile-navigation-layer {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .mobile-navigation-layer[hidden] {
    display: none;
  }

  .mobile-navigation-layer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-navigation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 15, 0.56);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .mobile-navigation-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 25rem);
    height: 100%;
    height: 100dvh;
    padding: calc(1rem + env(safe-area-inset-top)) 1.35rem
      calc(1.25rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background:
      radial-gradient(circle at 100% 0%, rgba(171, 184, 153, 0.18), transparent 38%),
      linear-gradient(155deg, #30382a 0%, #20251c 72%);
    box-shadow: -24px 0 60px rgba(16, 19, 14, 0.32);
    color: #fff;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-navigation-layer.is-open .mobile-navigation-panel {
    transform: translateX(0);
  }

  .mobile-navigation-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .mobile-navigation-heading img {
    width: 10.5rem;
    height: auto;
  }

  .mobile-navigation-close {
    position: relative;
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    flex: none;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 50%;
    background: transparent;
    color: #fff;
  }

  .mobile-navigation-close span {
    position: absolute;
    width: 1rem;
    height: 1px;
    background: currentColor;
  }

  .mobile-navigation-close span:first-child {
    transform: rotate(45deg);
  }

  .mobile-navigation-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-navigation-kicker {
    margin: 2.75rem 0 0.75rem;
    color: var(--color-green-light);
    font-family: var(--font-accent);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mobile-navigation {
    display: grid;
  }

  .mobile-navigation .mobile-navigation-item {
    display: flex;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.4rem 0;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-copy);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: none;
  }

  .mobile-navigation .mobile-navigation-item::after {
    display: none;
  }

  .mobile-navigation .mobile-navigation-item > span {
    width: 1.4rem;
    color: rgba(209, 219, 195, 0.62);
    font-family: var(--font-accent);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.12em;
  }

  .mobile-navigation .mobile-navigation-item.is-active {
    color: #fff;
    font-weight: 400;
  }

  .mobile-navigation .mobile-navigation-item.is-active > span {
    color: var(--color-green-light);
  }

  .mobile-navigation-secondary {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
  }

  .mobile-navigation-secondary button {
    min-height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-copy);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .site-footer {
    display: none;
  }

  .stage::after {
    background:
      linear-gradient(180deg, rgba(22, 26, 19, 0.08) 34%, rgba(22, 26, 19, 0.84) 100%),
      radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(22, 26, 19, 0.22) 100%);
  }

  html[data-mobile-station="0"] .stage::after {
    background:
      linear-gradient(180deg, rgba(22, 26, 19, 0.025) 48%, rgba(22, 26, 19, 0.42) 100%),
      radial-gradient(ellipse at 44% 42%, transparent 55%, rgba(22, 26, 19, 0.1) 100%);
  }

  .station-poster,
  .transition-video {
    object-position: var(--mobile-focus-x, 50%) center;
  }

  .station-poster[data-station="0"] {
    --mobile-focus-x: 43%;
  }

  .station-poster[data-station="1"] {
    --mobile-focus-x: 41%;
  }

  .station-poster[data-station="2"] {
    --mobile-focus-x: 58%;
  }

  .station-poster[data-station="5"] {
    --mobile-focus-x: 50%;
  }

  .copy-layer {
    z-index: 4;
  }

  .chapter,
  .chapter:first-child,
  .chapter-project {
    right: 0.85rem;
    bottom: var(--mobile-card-bottom);
    left: 0.85rem;
    display: block;
    width: auto;
    max-height: min(45dvh, 25rem);
    padding: 1rem 1rem 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(37, 43, 32, 0.78), rgba(48, 44, 41, 0.58));
    box-shadow: 0 18px 46px rgba(20, 24, 17, 0.3);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
    text-shadow: 0 2px 16px rgba(22, 26, 19, 0.55);
    transform: translate3d(0, 16px, 0);
  }

  .chapter:not(:first-child) {
    display: block;
  }

  .chapter:first-child {
    right: 1.05rem;
    left: 1.05rem;
    max-height: min(34dvh, 15rem);
    padding: 0.78rem 0.88rem 0.85rem;
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(
      145deg,
      rgba(37, 43, 32, 0.38),
      rgba(48, 44, 41, 0.2)
    );
    box-shadow: 0 12px 34px rgba(20, 24, 17, 0.18);
    -webkit-backdrop-filter: blur(10px) saturate(108%);
    backdrop-filter: blur(10px) saturate(108%);
  }

  .chapter-project {
    max-height: var(--mobile-project-expanded-height);
  }

  .chapter-project.is-mobile-collapsible {
    padding-right: 3.8rem;
    overflow: hidden;
    cursor: pointer;
    transition:
      max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
      padding-right 240ms ease,
      background 240ms ease;
  }

  .chapter-project.is-mobile-collapsible:not(.is-mobile-expanded) {
    max-height: var(--mobile-project-collapsed-height);
    touch-action: manipulation;
  }

  .chapter-project.is-mobile-expanded {
    max-height: var(--mobile-project-expanded-height);
    padding-right: 1rem;
    overflow-y: auto;
    cursor: default;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .chapter-project.is-mobile-collapsible:not(.is-mobile-expanded)
    .chapter-description {
    display: -webkit-box;
    max-height: 2.15em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%);
  }

  .chapter-project.is-mobile-collapsible .project-detail-grid {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translate3d(0, 0.6rem, 0);
    transition:
      max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 260ms ease,
      opacity 180ms ease,
      transform 260ms ease,
      visibility 0s linear 320ms;
  }

  .chapter-project.is-mobile-expanded .project-detail-grid {
    max-height: 32rem;
    margin-top: 0.75rem;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition:
      max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 260ms ease,
      opacity 220ms 80ms ease,
      transform 320ms 40ms ease,
      visibility 0s linear;
  }

  .mobile-project-toggle {
    position: absolute;
    z-index: 2;
    top: 0.72rem;
    right: 0.72rem;
    display: grid;
    width: 2.55rem;
    min-height: 2.55rem;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(42, 49, 33, 0.82);
    color: var(--color-white);
    cursor: pointer;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    transition:
      background 180ms ease,
      border-color 180ms ease,
      transform 240ms ease;
  }

  .mobile-project-toggle:focus-visible {
    outline: 2px solid var(--color-green-light);
    outline-offset: 3px;
  }

  .mobile-project-toggle-icon {
    position: relative;
    display: block;
    width: 0.82rem;
    height: 0.82rem;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-project-toggle-icon::before {
    position: absolute;
    right: 0.08rem;
    bottom: 0.08rem;
    width: 0.58rem;
    height: 0.58rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
  }

  .chapter-project.is-mobile-expanded .mobile-project-toggle {
    background: rgba(145, 133, 122, 0.94);
  }

  .chapter-project.is-mobile-expanded .mobile-project-toggle-icon {
    transform: translateY(0.12rem) rotate(225deg);
  }

  .mobile-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .chapter:not(.is-active) {
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  .chapter.is-active {
    pointer-events: auto;
    visibility: visible;
  }

  .chapter::before,
  .chapter:first-child::before,
  .chapter-project::before {
    width: 2.5rem;
    height: 1px;
    margin: 0 0 0.65rem;
  }

  .chapter-kicker,
  .chapter:first-child .chapter-kicker,
  .chapter-project .chapter-kicker {
    margin-bottom: 0.42rem;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
  }

  .chapter-title,
  .chapter:first-child .chapter-title,
  .chapter-project .chapter-title {
    max-width: 22ch;
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    font-weight: 300;
    letter-spacing: -0.026em;
    line-height: 1.02;
  }

  .chapter:first-child .chapter-title br {
    display: none;
  }

  .chapter:first-child .chapter-title {
    max-width: 20ch;
    font-size: clamp(1.45rem, 6.4vw, 1.82rem);
    line-height: 1.04;
  }

  .chapter-description,
  .chapter:first-child .chapter-description,
  .chapter-project .chapter-description {
    max-width: 100%;
    margin-top: 0.68rem;
    font-size: 0.84rem;
    line-height: 1.42;
    text-wrap: pretty;
  }

  .chapter-actions,
  .chapter-final .chapter-actions {
    margin-top: 0.8rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
  }

  .chapter:first-child .chapter-actions {
    margin-top: 0.62rem;
  }

  .chapter:first-child .chapter-action.is-tour-start {
    min-height: 2.65rem;
    background: var(--color-brown);
    box-shadow: 0 9px 24px rgba(48, 44, 41, 0.28);
    opacity: 1;
  }

  .chapter-action,
  .chapter-final .chapter-action,
  .chapter-action.is-contact.is-subtle {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.68rem 0.95rem;
    font-size: 0.68rem;
    letter-spacing: 0.065em;
  }

  .project-detail-grid {
    display: block;
    margin-top: 0.75rem;
  }

  .project-architect {
    padding: 0.68rem 0.75rem;
    border-left-width: 2px;
    background: rgba(28, 33, 24, 0.34);
  }

  .project-architect-claim {
    font-size: 0.84rem;
  }

  .project-architect-name {
    font-size: 0.52rem;
  }

  .project-architect-copy {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .project-side {
    margin-top: 0.7rem;
    align-items: stretch;
  }

  .project-certifications {
    display: none;
  }

  .is-project-actions {
    width: 100%;
  }

  .mobile-tour-progress {
    position: absolute;
    z-index: 6;
    top: calc(var(--site-chrome-top) + 0.8rem);
    left: 50%;
    display: flex;
    min-width: 7.6rem;
    min-height: 1.9rem;
    padding: 0.45rem 0.7rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 2rem;
    background: rgba(29, 34, 25, 0.48);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-accent);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    pointer-events: none;
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .mobile-tour-current {
    color: #fff;
  }

  .mobile-tour-rule {
    position: relative;
    display: block;
    width: 2.9rem;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
  }

  .mobile-tour-rule i {
    position: absolute;
    inset: 0;
    display: block;
    background: var(--color-green-light);
    transform: scaleX(var(--mobile-progress, 0));
    transform-origin: left center;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .journey-controls .journey-arrow,
  .journey-controls .journey-arrow.is-reverse,
  .journey-controls[data-station] .journey-arrow {
    top: auto;
    bottom: calc(var(--mobile-card-bottom) + var(--mobile-active-card-height) + 0.8rem);
    width: 3.15rem;
    translate: 0;
  }

  .journey-controls .journey-arrow.is-forward,
  .journey-controls[data-station] .journey-arrow.is-forward {
    right: 1rem;
    left: auto;
  }

  .journey-controls .journey-arrow.is-reverse,
  .journey-controls[data-station] .journey-arrow.is-reverse {
    right: auto;
    left: 1rem;
  }

  .journey-controls .journey-arrow[data-mobile-journey-label]
    .journey-arrow-label,
  .journey-controls[data-station]
    .journey-arrow[data-mobile-journey-label]
    .journey-arrow-label {
    display: block;
    /* Keep both destination labels readable without letting them collide. */
    max-width: min(7.2rem, calc((100vw - 9.5rem) / 2));
    min-width: 0;
    padding: 0.39rem 0.6rem 0.36rem;
    border-color: rgba(255, 255, 255, 0.23);
    background: rgba(32, 37, 28, 0.72);
    box-shadow: 0 5px 18px rgba(20, 24, 17, 0.2);
    font-size: 0.51rem;
    font-weight: 500;
    letter-spacing: 0.075em;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .journey-controls .journey-arrow.is-forward .journey-arrow-label,
  .journey-controls[data-station]
    .journey-arrow.is-forward
    .journey-arrow-label {
    right: calc(100% + 0.48rem);
    left: auto;
  }

  .journey-controls .journey-arrow.is-reverse .journey-arrow-label,
  .journey-controls[data-station]
    .journey-arrow.is-reverse
    .journey-arrow-label {
    right: auto;
    left: calc(100% + 0.48rem);
  }

  .tour-exit {
    top: calc(var(--site-chrome-top) + 0.78rem);
    left: 0.85rem;
    min-height: 1.95rem;
    padding: 0.38rem 0.66rem 0.36rem 0.52rem;
    background: rgba(48, 44, 41, 0.56);
    font-size: 0.54rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .tour-ai-badge {
    top: calc(var(--site-chrome-top) + 3.25rem);
    right: 0.85rem;
    padding: 0.38rem 0.56rem;
    font-size: 0.52rem;
  }

  .tour-exit-symbol {
    font-size: 1rem;
  }

  .scroll-cue {
    top: auto;
    bottom: calc(var(--mobile-card-bottom) + var(--mobile-active-card-height) + 1rem);
    gap: 0.2rem;
    translate: -50% 0;
  }

  .scroll-cue-label {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
  }

  .apartment-hotspot-map {
    z-index: 6;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .apartment-hotspot {
    top: calc(var(--site-chrome-top) + 3.65rem);
    right: 0.85rem;
    gap: 0.45rem;
    transform: translate(0, -50%);
  }

  .apartment-hotspot[data-apartment-open="w3"] {
    top: 62%;
    right: 0.85rem;
    bottom: auto;
    left: auto;
  }

  .apartment-hotspot[data-apartment-open="w7"] {
    top: 43%;
    right: auto;
    left: 0.85rem;
  }

  .apartment-hotspot-marker {
    width: 2.65rem;
  }

  .apartment-hotspot-copy {
    max-width: 8.8rem;
    padding: 0.4rem 0.62rem 0.36rem;
    background: rgba(32, 37, 28, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .apartment-hotspot-kicker {
    font-size: 0.46rem;
  }

  .apartment-hotspot-label {
    font-size: 0.55rem;
  }

  .apartment-preview-close {
    top: calc(0.8rem + env(safe-area-inset-top));
    left: 0.8rem;
  }

  .apartment-origin-poster,
  .apartment-entry-video,
  .apartment-exit-video,
  .apartment-end-poster {
    object-position: var(--mobile-focus-x, 50%) center;
  }

  [data-apartment-media="w3"] .apartment-entry-video,
  [data-apartment-media="w3"] .apartment-exit-video,
  [data-apartment-media="w3"] .apartment-end-poster {
    --mobile-focus-x: 58%;
  }

  [data-apartment-media="w7"] .apartment-entry-video,
  [data-apartment-media="w7"] .apartment-exit-video,
  [data-apartment-media="w7"] .apartment-end-poster {
    --mobile-focus-x: 37%;
  }

  .apartment-preview-layer[data-mobile-apartment-focus="w3"]
    .apartment-origin-poster {
    --mobile-focus-x: 58%;
  }

  .apartment-preview-layer[data-mobile-apartment-focus="w7"]
    .apartment-origin-poster {
    --mobile-focus-x: 37%;
  }

  html[data-mobile-station="1"] {
    --mobile-active-card-height: var(--mobile-project-collapsed-height);
  }

  html[data-mobile-station="1"].mobile-project-expanded {
    --mobile-active-card-height: var(--mobile-project-expanded-height);
  }

  .journey-controls[data-station="1"] + .scroll-cue {
    display: none;
  }

  .apartment-preview-arrival {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
  }

  .apartment-preview-arrival-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .w7-residence {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 699px) and (max-height: 700px) {
  :root {
    --mobile-active-card-height: 43dvh;
    --mobile-project-expanded-height: 50dvh;
  }

  .chapter,
  .chapter:first-child,
  .chapter-project {
    max-height: 43dvh;
    padding-top: 0.82rem;
    padding-bottom: 0.85rem;
  }

  .chapter-project {
    max-height: 50dvh;
  }

  .chapter-title,
  .chapter:first-child .chapter-title,
  .chapter-project .chapter-title {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
  }

  .project-architect-copy {
    display: none;
  }

  .journey-controls .journey-arrow,
  .journey-controls .journey-arrow.is-reverse,
  .journey-controls[data-station] .journey-arrow,
  .scroll-cue {
    bottom: calc(var(--mobile-card-bottom) + var(--mobile-active-card-height) + 0.6rem);
  }
}

@media (max-width: 699px) and (orientation: landscape),
  (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  :root {
    --header-main-height: calc(3.25rem + env(safe-area-inset-top));
    --energy-strip-height: 0rem;
  }

  #site-shell > .site-header .energy-strip {
    display: none;
  }

  .chapter,
  .chapter:first-child,
  .chapter-project {
    right: 0.8rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    left: auto;
    width: min(45vw, 25rem);
    max-height: calc(100dvh - var(--site-chrome-top) - 1.2rem);
  }

  .journey-controls .journey-arrow,
  .journey-controls .journey-arrow.is-reverse,
  .journey-controls[data-station] .journey-arrow,
  .scroll-cue {
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .journey-controls .journey-arrow.is-forward,
  .journey-controls[data-station] .journey-arrow.is-forward {
    right: calc(min(45vw, 25rem) + 1.65rem);
    left: auto;
  }
}

@media (max-width: 699px) and (prefers-reduced-motion: reduce) {
  .mobile-navigation-layer,
  .mobile-navigation-panel,
  .mobile-tour-rule i {
    transition-duration: 1ms;
  }
}

/* Das Premium-Startbild gilt ausschließlich für schmale Hochformate.
   Die Desktop- und Querformat-Regeln darüber bleiben unverändert aktiv. */
@media (max-width: 699px) and (orientation: portrait) {
  :root {
    --mobile-portrait-dock-height: 3.75rem;
    --mobile-portrait-dock-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  }

  .station-poster,
  .transition-video {
    object-fit: cover;
    object-position: var(--mobile-focus-x, 50%) var(--mobile-focus-y, 50%);
  }

  /* Das W3-Startmotiv bleibt bewusst mittig und wird nicht wie die Tour
     horizontal nachgeführt. */
  .station-poster[data-station="0"] {
    --mobile-focus-x: 50%;
    --mobile-focus-y: 50%;
  }

  .station-poster[data-station="0"],
  .transition-video[data-direction="forward"][data-segment="0"] {
    transition-duration: 220ms;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Der weiter geöffnete Startanker und der erste W3-Videoframe haben
     bewusst unterschiedliche Bildausschnitte. Das Video beginnt daher in
     derselben Größenordnung und zoomt während der kurzen Überblendung in
     seinen exakten Anker – ohne freien oder schwarzen Hintergrund. */
  .transition-video[data-direction="forward"][data-segment="0"] {
    transform: translateZ(0) scale(0.77);
    transition-property: opacity, transform;
  }

  .transition-video[data-direction="forward"][data-segment="0"].is-visible {
    transform: translateZ(0) scale(1);
  }

  html[data-mobile-station="0"] .stage::after {
    background:
      linear-gradient(180deg, rgba(20, 24, 17, 0.34) 0%, transparent 31%),
      linear-gradient(0deg, rgba(20, 24, 17, 0.46) 0%, transparent 28%);
  }

  .chapter:first-child {
    top: calc(var(--site-chrome-top) + clamp(1rem, 4vh, 2.2rem));
    right: 1.15rem;
    bottom: auto;
    left: 1.15rem;
    width: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .chapter:first-child::before,
  .chapter:first-child .chapter-description,
  .chapter:first-child .chapter-actions {
    display: none;
  }

  .chapter:first-child .desktop-hero-title {
    display: none;
  }

  .chapter:first-child .mobile-portrait-hero-title {
    display: inline;
  }

  .chapter:first-child .chapter-kicker {
    margin-bottom: 0.46rem;
    color: rgba(222, 230, 209, 0.92);
    font-size: 0.57rem;
    letter-spacing: 0.16em;
  }

  .chapter:first-child .chapter-title {
    max-width: 100%;
    color: #fff;
    font-size: clamp(0.94rem, 5vw, 1.55rem);
    font-weight: 300;
    letter-spacing: -0.035em;
    line-height: 1.04;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
  }

  .w7-gallery-heading h2 {
    max-width: 100%;
    font-size: clamp(1.05rem, 5.3vw, 1.42rem);
    overflow-wrap: normal;
    text-wrap: nowrap;
    white-space: nowrap;
    word-break: normal;
  }

  .w7-title-row h2 {
    max-width: 100%;
    font-size: clamp(0.88rem, 4.3vw, 1.16rem);
    overflow-wrap: normal;
    text-wrap: nowrap;
    white-space: nowrap;
    word-break: normal;
  }

  .stage.is-mobile-portrait-loading .chapter:first-child {
    opacity: 0;
    transform: translate3d(0, -0.35rem, 0);
    transition-duration: 160ms;
  }

  /* Die alten Marker gehören weiter zum Desktop-Flow, auf dem Portrait-Start
     übernimmt stattdessen die geschlossene Leiste am unteren sicheren Rand. */
  .apartment-hotspot-map {
    display: none !important;
  }

  .mobile-tour-progress {
    display: none;
  }

  .stage.is-mobile-portrait-tour-active .mobile-tour-progress {
    display: flex;
  }

  .mobile-portrait-home-dock {
    position: absolute;
    z-index: 7;
    right: 0.8rem;
    bottom: var(--mobile-portrait-dock-bottom);
    left: 0.8rem;
    display: block;
    pointer-events: auto;
    transition:
      opacity 180ms ease,
      transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 200ms;
  }

  .mobile-portrait-home-dock-bar {
    display: grid;
    min-height: var(--mobile-portrait-dock-height);
    padding: 0.12rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.12rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.08rem;
    background: rgba(28, 34, 24, 0.84);
    box-shadow: 0 14px 34px rgba(15, 19, 13, 0.32);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
  }

  .mobile-portrait-apartment-toggle,
  .mobile-portrait-tour-start,
  .mobile-portrait-apartment-choice {
    min-height: 3.5rem;
    border: 0;
    color: var(--color-white);
    cursor: pointer;
    font-family: var(--font-copy);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.15;
    text-align: left;
  }

  .mobile-portrait-apartment-toggle {
    display: flex;
    min-width: 0;
    padding: 0.72rem 0.84rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    border-radius: 0.9rem;
    background: transparent;
  }

  .mobile-portrait-dock-chevron {
    width: 0.52rem;
    height: 0.52rem;
    flex: none;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    transform: translateY(0.18rem) rotate(45deg);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-portrait-apartment-toggle[aria-expanded="true"]
    .mobile-portrait-dock-chevron {
    transform: translateY(-0.1rem) rotate(225deg);
  }

  .mobile-portrait-tour-start {
    display: inline-flex;
    min-width: 7.5rem;
    padding: 0.72rem 0.86rem;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    border-radius: 0.88rem;
    background: var(--color-brown);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    text-align: center;
    transition:
      background 160ms ease,
      opacity 160ms ease;
  }

  .mobile-portrait-tour-start.is-loading {
    background: rgba(145, 133, 122, 0.95);
  }

  .mobile-portrait-tour-start:disabled {
    cursor: wait;
  }

  .mobile-portrait-dock-arrow {
    font-size: 1rem;
    font-weight: 400;
    line-height: 0.7;
  }

  .mobile-portrait-apartment-drawer {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.48rem);
    left: 0;
    display: grid;
    max-height: 11.5rem;
    padding: 0.18rem;
    gap: 0.12rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.05rem;
    background: rgba(28, 34, 24, 0.94);
    box-shadow: 0 16px 38px rgba(15, 19, 13, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0.55rem, 0);
    visibility: hidden;
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    backdrop-filter: blur(20px) saturate(120%);
    transition:
      opacity 200ms ease,
      transform 210ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 210ms;
  }

  .mobile-portrait-apartment-drawer[hidden] {
    display: none;
  }

  .mobile-portrait-apartment-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition:
      opacity 200ms ease,
      transform 210ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear;
  }

  .mobile-portrait-apartment-choice {
    display: flex;
    min-height: 3.25rem;
    padding: 0.72rem 0.8rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-portrait-apartment-choice > span:last-child {
    color: var(--color-green-light);
    font-size: 1rem;
    font-weight: 400;
  }

  .mobile-portrait-apartment-toggle:focus-visible,
  .mobile-portrait-tour-start:focus-visible,
  .mobile-portrait-apartment-choice:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
  }

  .stage.is-mobile-portrait-loading .mobile-portrait-home-dock-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage.is-mobile-portrait-loading .mobile-portrait-apartment-toggle {
    display: none;
  }

  .stage.is-mobile-portrait-tour-active .mobile-portrait-home-dock {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0.55rem, 0);
    visibility: hidden;
  }
}

@media (max-width: 699px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  .mobile-portrait-home-dock,
  .mobile-portrait-apartment-drawer,
  .mobile-portrait-dock-chevron,
  .station-poster[data-station="0"],
  .transition-video[data-direction="forward"][data-segment="0"],
  .chapter,
  .chapter::before,
  .stage.is-mobile-portrait-loading .chapter:first-child {
    transition-duration: 1ms;
  }
}
