/*
 * Mobile presentation layer
 *
 * Every rule in this file is constrained to the responsive navigation range.
 * Desktop styling (992px and wider) remains entirely owned by the existing
 * site, section, component, band, gaming, and builder stylesheets.
 */

@media screen and (max-width: 991px) {
  :root {
    --mobile-gutter: clamp(18px, 5vw, 30px);
    --mobile-section-space: clamp(76px, 12vw, 112px);
    --mobile-surface: rgba(8, 8, 10, 0.72);
    --mobile-line: rgba(255, 255, 255, 0.11);
    --mobile-muted: rgba(255, 255, 255, 0.68);
    --site-header-height-mobile: calc(66px + var(--safe-area-top));
  }

  html {
    /* Section scroll-margin owns the fixed-header offset; do not add it twice. */
    scroll-padding-top: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-wrap: anywhere;
  }

  main {
    overflow: clip;
  }

  .site-container {
    width: 100%;
    max-width: 760px;
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .section-title {
    width: min(100%, 15ch);
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2.45rem, 10.5vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
  }

  .section-copy {
    width: min(100%, 42rem);
    color: var(--mobile-muted);
    font-size: clamp(0.98rem, 2.7vw, 1.08rem);
    line-height: 1.7;
    text-wrap: pretty;
  }

  .button-primary,
  .button-large,
  .hero-button {
    min-height: 50px;
    padding: 15px 22px;
    border-radius: 2px;
    font-size: 0.82rem;
    line-height: 1.25;
    letter-spacing: 0.035em;
    touch-action: manipulation;
  }

  a,
  button,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  /* Preserve the original compact menu while fitting the real 70px header. */

  .navbar .dev-mobile-menu.is-open {
    max-height: calc(100vh - var(--site-header-height-mobile) - 4px);
    max-height: calc(100dvh - var(--site-header-height-mobile) - 4px);
  }

  /* Release hero: preserve the artwork, but keep every action in thumb reach. */

  .hero-section {
    background-position: 52% center;
  }

  .hero-container {
    width: 100%;
    max-width: 760px;
    height: auto;
    min-height: calc(100vh - var(--site-header-height-mobile));
    min-height: calc(100dvh - var(--site-header-height-mobile));
    padding: clamp(62px, 12vw, 96px) var(--mobile-gutter) clamp(54px, 10vw, 84px);
  }

  .hero-content {
    width: min(100%, 580px);
    max-width: 580px;
    margin: 0;
  }

  .hero-heading {
    width: 100%;
    margin-bottom: 14px;
    font-size: clamp(2rem, 8.6vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
  }

  .hero-eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .hero-description.section-copy {
    width: min(100%, 34ch);
    max-width: 34ch;
    margin: 0 auto 22px;
    font-size: clamp(0.95rem, 3.7vw, 1.12rem);
    line-height: 1.55;
  }

  .hero-actions {
    width: min(100%, 360px);
  }

  .hero-icon-block {
    gap: clamp(8px, 2.7vw, 14px);
    margin-bottom: 22px;
  }

  .hero-icon-link,
  .hero-icon-link:link,
  .hero-icon-link:visited {
    width: clamp(44px, 12vw, 50px);
    height: clamp(44px, 12vw, 50px);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(3, 3, 4, 0.26);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .hero-icon {
    font-size: 20px;
  }

  .hero-button.button-primary {
    min-height: 58px;
    margin-bottom: 9px;
    padding: 17px 22px;
    font-size: clamp(1rem, 4.6vw, 1.28rem);
    line-height: 1.15;
  }

  .dev-hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(4, 4, 5, 0.42), rgba(4, 4, 5, 0.08) 30%, rgba(4, 4, 5, 0.34) 100%),
      rgba(8, 7, 7, 0.22);
  }

  /* Tour: a persistent filter bar and dense event cards replace long rows. */

  .tour-video-scroll {
    padding: clamp(88px, 13vw, 116px) 0 clamp(72px, 11vw, 104px);
  }

  .tour-video-content.site-container {
    width: min(100%, 760px);
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .tour-section-intro {
    margin-bottom: 28px;
  }

  .tour-video-content .tour-intro-copy {
    max-width: 36rem;
  }

  .tour-list-wrapper {
    min-height: 0;
    border-top: 1px solid var(--mobile-line);
  }

  .tour-video-content .tour-list-wrapper {
    padding: 0;
  }

  .tour-video-content .tour-selection-wrapper {
    position: sticky;
    top: var(--site-header-height-mobile);
    z-index: 4;
    gap: 10px;
    margin: 0 calc(var(--mobile-gutter) * -0.35);
    padding: 10px calc(var(--mobile-gutter) * 0.35);
    border-bottom-color: var(--mobile-line);
    background: rgba(6, 5, 6, 0.88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .tour-video-content .tour-selector-upcoming,
  .tour-video-content .tour-selector-past {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 12px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .tour-video-content .tour-item,
  .tour-video-content .tour-item-past {
    gap: 16px;
    padding: 20px 2px;
    border-color: var(--mobile-line);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 68%);
  }

  .tour-video-content .tour-item-info,
  .tour-video-content .tour-item-info-past {
    min-width: 0;
  }

  .tour-video-content .tour-item-date,
  .tour-video-content .tour-item-date-past {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.045em;
  }

  .tour-video-content .tour-item-venue,
  .tour-video-content .tour-item-venue-past {
    font-size: 1rem;
    line-height: 1.4;
  }

  .tour-video-content .tour-item-location,
  .tour-video-content .tour-item-location-past {
    margin-top: 3px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .tour-video-content .tour-item-button-wrapper {
    gap: 8px;
  }

  .tour-video-content .tour-action-slot > .button-primary {
    min-height: 48px;
    padding: 12px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.025em;
  }

  .tour-video-content .tour-action-vip:empty {
    display: none;
  }

  .tour-video-content .tour-item-button-wrapper:has(.tour-action-vip:empty) .tour-action-ticket {
    grid-column: 1 / -1;
  }

  .tour-past-more-wrap {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 28px 0 4px;
    text-align: center;
  }

  .tour-past-count {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .tour-past-more.button-primary {
    width: min(100%, 330px);
    min-height: 50px;
  }

  .tour-video-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.28) 24%, rgba(0, 0, 0, 0.55) 100%),
      rgba(24, 0, 2, 0.2);
  }

  /* Full-bleed conversion sections with restrained, consistent type. */

  .mailing-list-section,
  .store-section,
  .patreon-section,
  .community-section {
    min-height: calc(100vh - var(--site-header-height-mobile));
    min-height: calc(100dvh - var(--site-header-height-mobile));
  }

  .mailing-list-content.site-container {
    width: min(100%, 760px);
    padding: var(--mobile-section-space) var(--mobile-gutter);
  }

  .mailing-list-content .section-title {
    width: min(100%, 13ch);
  }

  .mailing-list-copy.section-copy {
    max-width: 38rem;
    margin-top: 24px;
    line-height: 1.66;
  }

  .mailing-list-form {
    width: min(100%, 580px);
    margin-top: 34px;
  }

  .mailing-list-form-inner {
    gap: 10px;
  }

  .mailing-list-input,
  .mailing-list-submit.button-primary {
    min-height: 58px;
    height: 58px;
  }

  .mailing-list-input {
    padding-right: 18px;
    padding-left: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.09);
    font-size: 1rem;
  }

  .mailing-list-note {
    max-width: 36rem;
    margin-top: 16px;
    font-size: 0.68rem;
    line-height: 1.55;
    letter-spacing: 0.13em;
  }

  .store-section,
  .patreon-section,
  .community-section {
    padding: var(--mobile-section-space) 0;
  }

  .store-content.site-container,
  .patreon-content.site-container,
  .community-content.site-container {
    width: min(100%, 760px);
    height: auto;
    margin: 0 auto;
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .store-content .section-title,
  .patreon-content .section-title,
  .community-content .section-title {
    margin-bottom: 22px;
  }

  .store-content .section-copy,
  .patreon-content .section-copy,
  .community-card .section-copy {
    width: min(100%, 38rem);
    margin-bottom: 30px;
  }

  .store-content .button-large,
  .patreon-content .button-large,
  .community-content .button-large {
    width: min(100%, 330px);
    min-height: 56px;
  }

  .store-background-shade {
    background:
      radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.64) 86%),
      rgba(0, 0, 0, 0.28);
  }

  .patreon-section::before {
    background:
      radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68) 90%),
      rgba(0, 0, 0, 0.22);
  }

  .patreon-section:not([data-builder-media-position]) .patreon-background-video {
    object-position: 68% center;
  }

  .community-card {
    width: min(100%, 580px);
    margin-bottom: 0;
  }

  .community-image {
    width: clamp(210px, 52vw, 280px);
    margin: 0 auto 28px;
  }

  /* Music: keep the release prominent, then use a familiar two-column wall. */

  .music-hub-section {
    min-height: 0;
    padding: var(--mobile-section-space) 0;
  }

  .music-hub-shell.site-container {
    width: min(100%, 760px);
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .music-hub-heading {
    margin-bottom: 44px;
  }

  .music-intro-copy.section-copy {
    margin-top: 18px;
  }

  .music-content-grid {
    gap: 52px;
  }

  .music-listen-column {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .music-player-label {
    margin-bottom: 12px;
    font-size: 0.68rem;
  }

  .music-spotify-card {
    height: auto;
    aspect-ratio: 1 / 1.04;
    border-radius: 8px;
  }

  .music-spotify-card-content {
    padding: clamp(24px, 7vw, 38px);
  }

  .music-platform-link {
    width: 100%;
    justify-content: space-between;
    margin-top: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mobile-line);
  }

  .music-video-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }

  .music-video-tile.is-featured {
    grid-column: 1 / -1;
  }

  .music-video-tile.is-featured .video-thumbnail,
  .video-thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: 2px;
  }

  .video-play,
  .music-video-tile.is-featured .video-play {
    width: 46px;
    height: 46px;
    opacity: 0.92;
    background: rgba(3, 3, 4, 0.72);
    transform: translate(-50%, -50%);
  }

  .music-video-meta {
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
  }

  .video-title,
  .music-video-tile.is-featured .video-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(0.7rem, 2.4vw, 0.86rem);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .music-video-number {
    padding-top: 1px;
    font-size: 0.56rem;
  }

  .music-youtube-link {
    margin-top: 38px;
  }

  /* Band: all member choices are visible; no discoverability-by-swipe. */

  .band-section {
    padding-top: var(--site-header-height-mobile);
    padding-bottom: var(--mobile-section-space);
  }

  .band-overlay-stack {
    width: min(100% - (var(--mobile-gutter) * 2), 760px);
    margin: 38px auto 0;
  }

  .band-biography-label {
    margin-bottom: 14px;
  }

  .band-biography-copy {
    font-size: clamp(0.9rem, 2.6vw, 1rem);
    line-height: 1.78;
  }

  .band-producer-trigger {
    min-height: 44px;
  }

  .band-profile h3 {
    font-size: clamp(2.55rem, 11vw, 4rem);
  }

  .band-profile-close {
    z-index: 6;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(3, 3, 4, 0.58);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .band-profile-role {
    font-size: 0.64rem;
    line-height: 1.55;
  }

  .band-brand-list {
    gap: 16px 18px;
  }

  /* Generic builder pages and every optional element type. */

  .builder-custom-section,
  .builder-content-section,
  .builder-media-section {
    min-height: 0;
    padding: var(--mobile-section-space) var(--mobile-gutter);
  }

  .builder-custom-section__inner.site-container,
  .builder-content-section__inner.site-container,
  .builder-media-section__inner.site-container {
    width: min(100%, 760px);
    max-width: 760px;
    padding: 0;
  }

  .builder-custom-section__inner.site-container {
    gap: clamp(22px, 6vw, 34px);
  }

  .builder-custom-section--grid .builder-custom-section__inner,
  .builder-custom-section--split .builder-custom-section__inner,
  .builder-content-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-content-section__inner {
    gap: 34px;
  }

  .builder-element--heading,
  .builder-content-section h2,
  .builder-media-section h2 {
    max-width: 16ch;
    font-size: clamp(2.35rem, 10vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .builder-element--text,
  .builder-content-section__body,
  .builder-media-section__header p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .builder-element--image img,
  .builder-element--video video,
  .builder-content-section__media img,
  .builder-media-section__media img,
  .builder-media-section__media video {
    max-height: 78dvh;
    border-radius: 8px;
  }

  .builder-element--embed {
    border-radius: 8px;
  }

  .builder-element--button,
  .builder-content-section__button,
  .builder-media-section__button {
    min-height: 50px;
  }

  .builder-element--spacer {
    max-height: 72px;
  }

  .builder-not-found {
    min-height: 100dvh;
    padding: calc(var(--site-header-height-mobile) + 54px) var(--mobile-gutter) 72px;
  }

  main :where(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  main :where(pre, code) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Mobile video surfaces and the autoplay-denied recovery control. */

  .dev-hero-video,
  .mailing-list-background-video,
  .patreon-background-video,
  .builder-content-section__background > video,
  .tour-video-stage video {
    max-width: none;
  }

  .ambient-video-playback:not([hidden]) {
    position: absolute;
    top: calc(var(--site-header-height-mobile) + 14px);
    right: max(var(--mobile-gutter), var(--safe-area-right));
    z-index: 30;
    display: grid;
    width: 48px;
    height: 48px;
    min-height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: #fff;
    background: rgba(3, 3, 4, 0.68);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .tour-video-experience > .ambient-video-playback:not([hidden]) {
    position: fixed;
  }

  .ambient-video-playback::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid currentColor;
  }

  .video-dialog {
    padding: max(10px, var(--safe-area-top)) max(10px, var(--safe-area-right)) max(10px, var(--safe-area-bottom)) max(10px, var(--safe-area-left));
  }

  .video-dialog-panel {
    width: 100%;
    border-radius: 10px;
  }

  .video-dialog-header {
    min-height: 58px;
    padding: 10px 10px 10px 16px;
  }

  .video-dialog-close {
    width: 44px;
    height: 44px;
  }

  /* Gaming keeps the artwork spectacular without making it a hidden scroll. */

  .gaming-showcase-section {
    min-height: 0;
    padding: var(--mobile-section-space) var(--mobile-gutter);
  }

  .gaming-showcase-shell {
    width: min(100%, 760px);
  }

  .gaming-showcase-header {
    margin-bottom: 36px;
  }

  .gaming-showcase-grid {
    gap: 38px;
  }

  .gaming-feature-panel,
  .gaming-coming-panel {
    border-radius: 4px;
  }

  .gaming-feature-copy {
    padding: 30px 26px 0;
  }

  .gaming-feature-title {
    font-size: clamp(2.35rem, 11.5vw, 4rem);
    line-height: 0.96;
  }

  .gaming-feature-tagline {
    line-height: 1.55;
  }

  .gaming-feature-description,
  .gaming-coming-copy > p:last-child {
    font-size: 0.86rem;
    line-height: 1.68;
  }

  .gaming-feature-cta {
    min-height: 54px;
    margin-top: 26px;
  }

  .gaming-feature-art {
    width: min(100%, 390px);
    margin: -8px auto 0;
  }

  .gaming-feature-art img {
    max-height: 560px;
    object-fit: contain;
  }

  .gaming-coming-panel {
    min-height: 330px;
  }

  .gaming-coming-copy h3 {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  /* Footer content follows the same left-aligned reading edge as the page. */

  .site-footer {
    padding: var(--mobile-section-space) max(var(--mobile-gutter), var(--safe-area-right)) calc(26px + var(--safe-area-bottom)) max(var(--mobile-gutter), var(--safe-area-left));
  }

  .site-footer-primary {
    gap: 48px;
  }

  .site-footer-identity {
    align-items: flex-start;
  }

  .site-footer-logo-link {
    align-items: center;
    min-height: 44px;
  }

  .site-footer-logo {
    width: clamp(170px, 48vw, 210px);
  }

  .site-footer-contacts {
    gap: 36px;
  }

  .site-footer-label {
    margin-bottom: 14px;
  }

  .site-footer-contact a {
    max-width: 100%;
    min-height: 44px;
    align-items: center;
  }

  .site-footer-partners {
    margin-top: 54px;
  }

  .site-footer-logo-item {
    min-height: 44px;
  }

  .site-footer-bottom {
    margin-top: 54px;
  }

  .site-footer-bottom a,
  .site-footer-privacy {
    min-height: 44px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

@media screen and (max-width: 767px) {
  .tour-video-experience {
    overflow: visible;
  }

  .tour-video-stage {
    position: sticky;
    inset: auto;
    top: 0;
    height: 100vh;
    height: 100dvh;
  }

  .tour-video-scroll {
    margin-top: -100vh;
    margin-top: -100dvh;
  }

  .band-hotspots {
    display: none;
  }

  .band-photo-stage {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .band-overlay-stack {
    margin-top: 34px;
  }

  .band-photo-base,
  .band-photo-focus {
    transition-duration: 560ms, 480ms, 560ms;
  }

  .band-photo-spotlight,
  .band-biography-panel,
  .band-profile,
  .band-profile-content {
    transition-duration: 480ms;
  }

  .tour-video-content .tour-item,
  .tour-video-content .tour-item-past {
    flex-direction: column;
    align-items: stretch;
  }

  .tour-video-content .tour-item-info,
  .tour-video-content .tour-item-info-past {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .tour-video-content .tour-item-date,
  .tour-video-content .tour-item-date-past {
    width: auto;
    min-width: 0;
  }

  .tour-video-content .tour-item-button-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .mailing-list-form-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mailing-list-submit.button-primary {
    width: 100%;
  }

  .builder-element--button,
  .builder-content-section__button,
  .builder-media-section__button {
    width: min(100%, 360px);
    align-self: stretch;
  }

  .site-footer-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-logos {
    width: 100%;
    max-width: 420px;
    margin: 0;
    justify-content: flex-start;
  }

  .site-footer-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-bottom-actions {
    justify-content: space-between;
    justify-self: stretch;
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --mobile-gutter: 18px;
    --mobile-section-space: 72px;
  }

  .section-title {
    font-size: clamp(2.25rem, 10.8vw, 2.85rem);
  }

  .hero-container {
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .hero-heading {
    font-size: clamp(1.85rem, 8.8vw, 2.35rem);
  }

  .tour-video-content .tour-item-info,
  .tour-video-content .tour-item-info-past {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }

  .tour-video-content .tour-action-slot > .button-primary {
    font-size: 0.66rem;
  }

  .music-video-wall {
    gap: 26px 10px;
  }

  .video-play,
  .music-video-tile.is-featured .video-play {
    width: 42px;
    height: 42px;
  }

  .video-dialog {
    padding: 0;
  }

  .video-dialog-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .video-dialog-frame {
    height: max(200px, 56.25vw);
    min-height: 200px;
    aspect-ratio: auto;
  }

  .gaming-feature-copy,
  .gaming-coming-panel {
    padding-right: 22px;
    padding-left: 22px;
  }

  .gaming-feature-art img {
    max-height: 500px;
  }

  .site-footer-bottom-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .site-footer-bottom a,
  .site-footer-privacy {
    justify-self: start;
  }
}

@media screen and (max-width: 359px) {
  .navbar .dev-mobile-menu {
    padding-right: 18px;
    padding-left: 18px;
  }

  .navbar .dev-mobile-menu.is-open {
    padding-right: max(18px, var(--safe-area-right));
    padding-left: max(18px, var(--safe-area-left));
  }

  .mobile-nav-socials {
    gap: 0;
  }
}

@media screen and (max-width: 991px) and (max-height: 600px) and (orientation: landscape) {
  :root {
    --mobile-section-space: 54px;
  }

  .hero-container,
  .mailing-list-section,
  .store-section,
  .patreon-section,
  .community-section {
    min-height: calc(100dvh - var(--site-header-height-mobile));
  }

  .hero-container {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-actions {
    width: min(100%, 330px);
  }

  .hero-icon-link,
  .hero-icon-link:link,
  .hero-icon-link:visited {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .hero-description.section-copy {
    font-size: 0.86rem;
  }

  .tour-video-scroll {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .mailing-list-content.site-container {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .mailing-list-copy.section-copy {
    margin-top: 12px;
  }

  .mailing-list-form {
    margin-top: 16px;
  }

  .mailing-list-form-inner {
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  }

  .store-section,
  .patreon-section,
  .community-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .music-hub-section,
  .gaming-showcase-section,
  .builder-custom-section,
  .builder-content-section,
  .builder-media-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .ambient-video-playback:not([hidden]) {
    top: calc(var(--site-header-height-mobile) + 8px);
  }
}

/* Mobile Band: the desktop focus choreography, rebuilt as one stable in-page stage. */

@media screen and (max-width: 991px) {
  .band-experience {
    --band-mobile-stage-height: 66.6667vw;
  }

  .band-photo-stage {
    height: var(--band-mobile-stage-height);
    min-height: 0;
    aspect-ratio: auto;
  }

  .band-photo-base {
    transition:
      transform 900ms var(--band-cinematic-ease),
      filter 680ms var(--band-cinematic-ease),
      transform-origin 850ms var(--band-cinematic-ease);
  }

  .band-photo-focus {
    -webkit-mask-image: radial-gradient(
      ellipse 15% 54% at var(--focus-x) var(--focus-y),
      #000 0%,
      #000 30%,
      rgba(0, 0, 0, 0.94) 47%,
      rgba(0, 0, 0, 0.58) 65%,
      transparent 84%
    );
    mask-image: radial-gradient(
      ellipse 15% 54% at var(--focus-x) var(--focus-y),
      #000 0%,
      #000 30%,
      rgba(0, 0, 0, 0.94) 47%,
      rgba(0, 0, 0, 0.58) 65%,
      transparent 84%
    );
    transition:
      transform 900ms var(--band-cinematic-ease),
      opacity 600ms var(--band-cinematic-ease),
      filter 680ms var(--band-cinematic-ease),
      transform-origin 850ms var(--band-cinematic-ease);
  }

  .band-photo-spotlight {
    transition-duration: 620ms;
  }

  .band-photo-stage.is-member-active .band-photo-base,
  .band-photo-stage.is-member-active .band-photo-focus {
    transform: scale(calc(var(--member-zoom) + 0.06));
  }

  .band-photo-stage.is-member-active .band-photo-base {
    filter: blur(6px) brightness(0.2) contrast(1.03) saturate(0.38);
  }

  .band-photo-stage.is-member-active .band-hotspot:not(.is-active) {
    opacity: 0.14;
  }

  .band-overlay-stack {
    display: contents;
  }

  .band-biography-panel,
  .band-experience.is-member-active .band-biography-panel {
    position: relative;
    display: flex;
    grid-area: auto;
    visibility: visible;
    width: min(760px, calc(100% - 48px));
    margin: 42px auto 0;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .band-profile {
    position: absolute;
    inset: 0 0 auto auto;
    z-index: 21;
    width: 42%;
    height: var(--band-mobile-stage-height) !important;
    min-height: 0;
    max-height: none;
    align-self: auto;
    overflow: hidden;
    padding: 0;
    isolation: isolate;
    background: transparent;
    transform: translate3d(8px, 0, 0);
    transition:
      opacity 460ms var(--band-cinematic-ease),
      transform 540ms var(--band-cinematic-ease),
      filter 460ms var(--band-cinematic-ease),
      visibility 0s linear 560ms;
  }

  .band-profile.is-visible {
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition-delay: 120ms, 120ms, 120ms, 0s;
  }

  .band-profile::before {
    content: none;
  }

  .band-profile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    min-height: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(3, 3, 4, 0.08), rgba(3, 3, 4, 0.72) 28%, #030304 100%);
  }

  .band-profile-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    justify-content: center;
    padding: 50px 24px 28px;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 220ms var(--band-cinematic-ease),
      filter 180ms ease;
  }

  .band-profile h3 {
    max-width: 9ch;
    padding: 0 44px 0 0;
    font-size: clamp(2.2rem, 5.4vw, 3.45rem);
    line-height: 0.94;
    pointer-events: none;
    text-wrap: balance;
  }

  .band-profile-role {
    margin-top: 10px;
    font-size: 0.59rem;
    pointer-events: none;
  }

  .band-profile-line {
    width: 100%;
    margin: 18px 0 15px;
  }

  .band-brand-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 12px;
    pointer-events: none;
  }

  .band-brand-image {
    width: 100%;
    max-width: 100px;
  }

  .band-brand-image img {
    max-height: 24px;
  }

  .band-profile-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    opacity: 0.9;
    background: rgba(3, 3, 4, 0.36);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .band-profile-close::after {
    content: none;
  }

  .band-profile-close span {
    top: 21px;
    left: 12px;
    width: 18px;
  }

  .band-member-rail {
    position: relative;
    z-index: 30;
    display: grid;
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, #090708, #040405);
  }

  .band-member-tab {
    min-height: 68px;
    padding: 12px 13px 14px;
  }
}

@media screen and (max-width: 767px) and (orientation: portrait) {
  .band-section {
    padding: var(--site-header-height-mobile) 0 80px;
  }

  .band-experience {
    --band-mobile-stage-height: clamp(
      420px,
      calc(100svh - var(--site-header-height-mobile) - 80px),
      min(600px, calc(175vw - 86px))
    );
  }

  .band-photo-depth,
  .band-hotspots {
    position: absolute;
    inset: 0 auto 0 50%;
    width: auto;
    height: 100%;
    aspect-ratio: 3 / 2;
    transform: translateX(-40%);
  }

  .band-photo-depth {
    overflow: visible;
  }

  .band-photo {
    object-fit: cover;
  }

  .band-hotspots {
    display: block;
  }

  .band-photo-stage.is-member-active .band-photo-base,
  .band-photo-stage.is-member-active .band-photo-focus {
    transform: scale(calc(var(--member-zoom) + 0.08));
  }

  .band-photo-focus {
    -webkit-mask-image: radial-gradient(
      ellipse 13.5% 56% at var(--focus-x) var(--focus-y),
      #000 0%,
      #000 34%,
      rgba(0, 0, 0, 0.92) 50%,
      rgba(0, 0, 0, 0.54) 66%,
      transparent 84%
    );
    mask-image: radial-gradient(
      ellipse 13.5% 56% at var(--focus-x) var(--focus-y),
      #000 0%,
      #000 34%,
      rgba(0, 0, 0, 0.92) 50%,
      rgba(0, 0, 0, 0.54) 66%,
      transparent 84%
    );
  }

  .band-photo-vignette {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 15%, transparent 84%, rgba(0, 0, 0, 0.38)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 36%, rgba(0, 0, 0, 0.84));
  }

  .band-profile {
    inset: 0 0 auto;
    width: 100%;
    transform: translate3d(0, 9px, 0);
  }

  .band-profile::after {
    background: linear-gradient(
      180deg,
      transparent 25%,
      rgba(3, 3, 4, 0.08) 39%,
      rgba(3, 3, 4, 0.82) 66%,
      #030304 100%
    );
  }

  .band-profile-content {
    justify-content: flex-end;
    padding: 145px 18px 22px;
  }

  .band-profile h3 {
    max-width: 9ch;
    padding: 0;
    font-size: clamp(2.55rem, 13vw, 4rem);
    line-height: 0.92;
  }

  .band-profile-role {
    margin-top: 9px;
    font-size: 0.58rem;
  }

  .band-profile-line {
    margin: 17px 0 14px;
  }

  .band-profile-close {
    top: 16px;
    right: 16px;
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .band-profile-close span {
    top: 23px;
    left: 14px;
  }

  .band-member-rail-shell {
    position: relative;
    z-index: 30;
    display: block;
    width: 100%;
    height: 80px;
  }

  .band-member-rail {
    display: flex;
    z-index: 1;
    height: 80px;
    padding: 0 16px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    gap: 8px;
    scroll-padding: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .band-member-rail-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    width: 32px;
    place-items: center;
    opacity: 1;
    pointer-events: none;
    transition: opacity 260ms ease, transform 320ms var(--band-cinematic-ease);
  }

  .band-member-rail-edge::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.26));
  }

  .band-member-rail-edge-previous {
    left: 0;
    opacity: 0;
    background: linear-gradient(90deg, #050506 18%, rgba(5, 5, 6, 0.82) 50%, transparent);
    transform: translateX(-4px);
  }

  .band-member-rail-edge-previous::before {
    transform: rotate(-135deg);
  }

  .band-member-rail-edge-next {
    right: 0;
    opacity: 0;
    background: linear-gradient(270deg, #050506 18%, rgba(5, 5, 6, 0.82) 50%, transparent);
    transform: translateX(4px);
  }

  .band-member-rail-edge-next::before {
    transform: rotate(45deg);
  }

  .band-member-rail-shell.can-scroll-left .band-member-rail-edge-previous,
  .band-member-rail-shell.can-scroll-right .band-member-rail-edge-next {
    opacity: 0.92;
    transform: translateX(0);
  }

  .band-member-tab {
    flex: 0 0 142px;
    min-height: 72px;
    padding: 8px 14px 9px;
    align-content: start;
    grid-template-rows: max-content max-content;
    scroll-snap-align: center;
  }

  .band-member-tab > strong {
    min-height: 1.4em;
  }

  .band-member-tab > small {
    margin-top: 3px;
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .band-biography-panel,
  .band-experience.is-member-active .band-biography-panel {
    width: calc(100% - 36px);
    margin: 38px 18px 0;
  }
}

@media screen and (max-width: 991px) and (max-height: 600px) and (orientation: landscape) {
  .band-experience {
    --band-mobile-stage-height: max(
      250px,
      calc(100svh - var(--site-header-height-mobile) - 60px)
    );
  }

  .band-photo-depth {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .band-photo {
    object-fit: cover;
  }

  .band-hotspots {
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .band-profile {
    inset: 0 0 auto auto;
    width: 43%;
  }

  .band-profile::after {
    background: linear-gradient(90deg, transparent, rgba(3, 3, 4, 0.74) 24%, #030304 100%);
  }

  .band-profile-content {
    justify-content: center;
    padding: 42px max(24px, var(--safe-area-right)) 20px 26px;
  }

  .band-profile h3 {
    font-size: clamp(2rem, 5.2vw, 3rem);
  }

  .band-profile-line {
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .band-brand-list {
    gap: 6px 10px;
  }

  .band-brand-image img {
    max-height: 20px;
  }

  .band-profile-close {
    top: 10px;
    right: max(12px, var(--safe-area-right));
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .band-profile-close span {
    top: 21px;
    left: 12px;
  }

  .band-member-tab {
    min-height: 58px;
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .band-biography-panel,
  .band-experience.is-member-active .band-biography-panel {
    margin-top: 34px;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 991px) {
  .gaming-showcase-section::before,
  .gaming-showcase-haze,
  .gaming-showcase-star,
  .gaming-feature-art::before,
  .gaming-feature-petal,
  .gaming-coming-glow {
    animation: none;
  }

  .video-play,
  .music-video-tile.is-featured .video-play {
    opacity: 0.94;
  }

  .video-thumbnail-image {
    filter: brightness(0.9) saturate(0.92);
  }

  a,
  button {
    -webkit-tap-highlight-color: rgba(var(--bb-red-rgb), 0.16);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 991px) {
  .band-photo-base,
  .band-photo-focus,
  .band-photo-spotlight,
  .band-hotspots,
  .band-profile,
  .band-profile-content,
  .band-member-tab,
  .band-member-tab::before {
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }

  .band-photo-stage.is-member-active .band-photo-base,
  .band-photo-stage.is-member-active .band-photo-focus {
    transform: none !important;
  }

  .band-photo-stage.is-member-active .band-photo-base {
    filter: blur(0) brightness(0.25) contrast(1.02) saturate(0.45) !important;
  }

  .ambient-video-playback {
    display: none !important;
  }
}
