/* Keep the studio entrance accessible alongside the supplied cinematic story. */
.sw-root .sw-motion {
  position: fixed; z-index: 50; right: 16px; bottom: 16px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid #c7d1c2; background: #f0f2eb; color: #202721;
  font: 500 12px/1.3 var(--sw-font-body); cursor: pointer;
}
/* The opening clip is landscape, so desktop needs no portrait backdrop. */
@media (min-width: 861px) {
  .sw-root .sw-scene[data-section="tren-cao"] .sw-scene__video,
  .sw-root .sw-scene[data-section="tren-cao"] .sw-scene__still {
    inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; transform: none !important;
  }
  .sw-root .sw-copy[data-section="tren-cao"] {
    top: 24%; width: min(29vw, 420px);
  }
  .sw-root .sw-copy[data-section="tren-cao"] .sw-copy__title {
    font-size: clamp(30px, 3.4vw, 52px);
  }
  .sw-root .sw-copy[data-section="tren-cao"] .sw-copy__body {
    font-size: clamp(14px, 1.1vw, 18px);
  }
}
.sw-root .sw-topbar { background: #f0f2ebed; backdrop-filter: blur(12px); }
.sw-root .sw-topcta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.sw-root a:focus-visible, .sw-root button:focus-visible { outline: 3px solid var(--sw-accent); outline-offset: 4px; }
@media (max-width: 1200px) {
  .sw-root .sw-nav { display: none; }
}
@media (max-width: 600px) {
  .sw-root .sw-topbar { gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
  .sw-root .sw-brand { min-width: 0; gap: 8px; }
  .sw-root .sw-brand__mark { flex-shrink: 0; width: 24px; height: 24px; }
  .sw-root .sw-brand__name { font-size: .95rem; line-height: 1.2; }
  .sw-root .sw-topcta { flex-shrink: 0; font-size: .8rem; padding: 10px 12px; }
}
/* Lighter, narrower copy scrim so scene imagery keeps its colour. */
@media (min-width: 861px) {
  .sw-root .sw-copylayer::before {
    width: min(46vw, 640px);
    background: linear-gradient(90deg, color-mix(in srgb, var(--sw-bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--sw-bg) 62%, transparent) 38%, color-mix(in srgb, var(--sw-bg) 18%, transparent) 72%, transparent 100%);
  }
}
/* Short desktop windows: keep the copy, tags and final CTA clear of the top bar and bottom controls. */
@media (min-width: 861px) and (max-height: 820px) {
  .sw-root .sw-copy { top: calc(50% + 32px); max-height: calc(100vh - 180px); }
  .sw-root .sw-copy__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
  .sw-root .sw-copy__eyebrow { margin-top: 10px; }
  .sw-root .sw-copy__body { margin-top: 10px; font-size: clamp(.92rem, 1.1vw, 1.02rem); }
  .sw-root .sw-copy__tags { margin-top: 14px; }
  .sw-root .sw-copy__cta { margin-top: 16px; }
}
/* Phones: keep the landscape opening readable instead of cropping it to a sliver of roof. */
@media (max-width: 860px) and (orientation: portrait) {
  .sw-root .sw-scene[data-section="tren-cao"]::before {
    content: ""; position: absolute; inset: -32px;
    background: url("opening-aerial-v3.jpg") center / cover no-repeat;
    filter: blur(18px) brightness(.96); transform: scale(1.08);
  }
  .sw-root .sw-scene[data-section="tren-cao"] .sw-scene__video,
  .sw-root .sw-scene[data-section="tren-cao"] .sw-scene__still {
    inset: auto; top: calc(20svh + env(safe-area-inset-top)); left: -17.5%;
    width: 135%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
    transform: none !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
  }
}
/* Phones: the copy already invites scrolling; the hint would sit under the motion switch. */
@media (max-width: 600px) {
  .sw-root .sw-hint { display: none; }
}
