/* One live viewport per scene; native snap scrolling and discreet side indicators. */
@media (max-width: 1000px) {
  :root { --dock-space: env(safe-area-inset-bottom); --scene-x: clamp(16px, 5vw, 32px); --scene-top: max(18px, env(safe-area-inset-top)); --scene-gap: clamp(10px, 1.5dvh, 18px); }
  .site-sections { touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
  .screen-section { container-type: size; }
  .section-step { display: none; }
  .screen-section > .motion-toggle { top: max(14px, env(safe-area-inset-top)); right: 14px; bottom: auto; width: 34px; height: 34px; background: #23332cbb; }
  .section-nav { inset: 50% 2px auto auto; transform: translateY(-50%); width: 26px; height: auto; padding: 0; display: grid; gap: 2px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
  .section-nav button[data-go-section] { width: 26px; height: 32px; padding: 0; border: 0; display: grid; place-items: center; background: transparent; }
  .section-nav button span { display: block; width: 5px; height: 5px; border-radius: 10px; opacity: .5; background: #fff; box-shadow: 0 0 0 1px #28352f33; }
  .section-nav [aria-current="true"] span { width: 5px; height: 17px; opacity: 1; }
  .section-nav button:focus-visible { outline: 2px solid #007e83; outline-offset: -3px; }

  /* Hero artwork keeps the close framing; controls have their own reserved area. */
  .hero__background { inset: 0; }
  .hero__signature { top: max(34px, 8cqh); width: min(66vw, 34cqh, 310px); }
  .hero__portrait { top: 29cqh; width: min(112cqh, 220vw); transform: translateX(-53%); }
  .hero__explore { display: flex; align-items: center; justify-content: center; gap: 12px; width: auto; min-height: 46px; height: auto; padding: 11px 20px; bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px)); border-radius: 12px; white-space: nowrap; }
  .hero__explore span { display: inline; font-size: 14px; font-weight: 400; letter-spacing: .01em; }
  .hero__explore svg { width: 19px; height: 19px; flex-shrink: 0; }

  /* Networks are four real layout rows; artwork shares only the stage row. */
  .backstage { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: var(--scene-gap); padding: var(--scene-top) var(--scene-x) calc(var(--dock-space) + 12px); }
  .backstage__content { display: contents; }
  .backstage__copy, .backstage__socials, .backstage__contact { opacity: calc(1 - var(--scene-entry) - var(--scene-exit)); }
  .backstage__copy { grid-row: 1; min-width: 0; padding: 10px 16px 12px; transform: translateX(calc(var(--scene-entry) * -50px)) rotate(-1deg); }
  .backstage__copy::after { width: 60px; height: 20px; top: -9px; right: 12%; }
  .backstage__title { font-size: clamp(32px, 9.4vw, 64px); line-height: 1.15; white-space: nowrap; }
  .backstage__title > span { display: inline-block; }
  .backstage__title::after { height: 5px; margin-top: 5px; }
  .backstage__socials { grid-row: 2; min-width: 0; }
  .backstage__handle { font-size: clamp(14px, 3.7vw, 21px); padding: 6px 9px; margin: 0 0 10px; }
  .social-links { display: grid; grid-template-columns: repeat(5, minmax(0, 64px)); justify-content: space-between; gap: 12px; padding: 5px 3px 4px 0; animation: ticket-breathe 8s ease-in-out infinite; }
  .social-links a:nth-child(n) { width: 100%; min-width: 0; height: auto; aspect-ratio: 1; min-height: 44px; padding: 10px; gap: 0; border-radius: 12px; rotate: 0deg; box-shadow: 2px 3px 0 #30201f; animation: none; }
  .social-links a span { display: none; }
  .social-links svg { width: 30px; height: 30px; flex-shrink: 0; }
  .backstage__stage { grid-row: 3; grid-column: 1; display: block; position: relative; min-height: 0; min-width: 0; container-type: size; }
  .backstage__portrait-wrap { position: absolute; inset: 0; transform: translateY(calc(var(--scene-entry) * 60px - var(--scene-exit) * 60px)); }
  .backstage__portrait { inset: 0 auto auto 50%; height: 200%; width: auto; max-width: none; transform: translateX(-56%); }
  .backstage__portrait img { object-position: center bottom; filter: drop-shadow(-5px 3px 5px #21140c35); }
  .metric { position: absolute; inset: auto; bottom: 0; width: min(51cqw, 80cqh, 220px); height: auto; max-height: none; }
  .metric--followers { left: -3%; margin: 0; }
  .metric--plays { right: -3%; width: min(42cqw, 82cqh, 180px); margin: 0; }
  .metric__ink { top: 18%; }
  .metric--plays .metric__ink { top: 10%; }
  .backstage__contact { grid-row: 4; grid-column: 1; min-width: 0; margin: 0; padding: 11px 14px 11px 23px; border-left-width: 7px; box-shadow: 3px 4px 0 #30201f; }
  .backstage__contact::before { left: 6px; }
  .contact-caption { font-size: 10px; margin-bottom: 8px; letter-spacing: .02em; }
  .contact-whatsapp { gap: 9px; }
  .contact-whatsapp > svg { width: 25px; height: 25px; }
  .contact-whatsapp small { font-size: 11px; margin-bottom: 3px; }
  .contact-whatsapp strong { font-size: clamp(20px, 5.6vw, 30px); }
  .contact-arrow { flex: 0 0 30px; width: 30px; height: 30px; font-size: 21px; }
  .contact-email { font-size: clamp(12px, 3.45vw, 18px); margin-top: 8px; padding-top: 8px; }
  .backstage .contact-email { padding-right: 52px; }
  .backstage .contact-email span { display: none; }

  /* Editorial spread: full-width heading, quiet chapter navigation, text beside the complete portrait. */
  .biography { padding: var(--scene-top) var(--scene-x) max(18px, env(safe-area-inset-bottom)); }
  .biography__layout { position: relative; z-index: 2; height: 100%; width: 100%; min-height: 0; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px 12px; }
  .biography__content { display: contents; }
  .biography__title { grid-column: 1 / -1; grid-row: 1; padding-right: 24px; font-size: clamp(39px, 11vw, 72px); line-height: .94; margin: 0; }
  .biography__title br { display: block; }
  .biography__tabs { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 0; margin: 0; border-bottom: 1px solid #26282344; }
  .biography__tabs button { flex: 1; min-height: 44px; padding: 7px 2px; font-size: 12px; font-weight: 800; color: #262823; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
  .biography__tabs [aria-selected="true"] { color: #007e83; background: transparent; border-bottom-color: #008f91; }
  .biography__tabs button:focus-visible { outline: 2px solid #262823; outline-offset: -3px; }
  .biography__story { grid-column: 1; grid-row: 3; align-self: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding: 14px 12px; background: #f3efd9f5; border-top: 2px solid #008f91; box-shadow: none; }
  .bio-chapter { grid-area: 1 / 1; min-width: 0; border: 0; padding: 0; }
  .bio-chapter[hidden] { display: block; visibility: hidden; pointer-events: none; }
  .bio-chapter h3 { font-size: 10px; line-height: 1.3; margin-bottom: 12px; }
  .bio-chapter h3 > span { display: block; font-size: 28px; margin: 0 0 5px; }
  .bio-chapter p { font-size: 15px; line-height: 1.42; }
  .bio-chapter--now { rotate: none; box-shadow: none; background: transparent; color: #262823; }
  .bio-chapter--now h3 > span { color: #008f91; }
  .biography__portrait-wrap { grid-column: 2; grid-row: 3; position: relative; inset: auto; min-height: 0; opacity: 1; overflow: visible; mask-image: none; }
  .biography__portrait { position: absolute; inset: 5px 0; width: 100%; height: calc(100% - 10px); max-width: none; aspect-ratio: auto; transform: none; }
  .biography__portrait img { object-fit: contain; object-position: center; filter: drop-shadow(-4px 2px 0 #f4eedc); animation-name: mobile-portrait-breathe; }
  .biography__snapshots { display: none; }
  @keyframes mobile-portrait-breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

}

@media (max-width: 1000px) and (max-height: 700px) and (orientation: portrait) {
  :root { --scene-top: max(14px, env(safe-area-inset-top)); --scene-gap: 9px; }
  .biography__title { font-size: 10vw; }
  .biography__story { padding: 12px 10px; }
  .bio-chapter p { font-size: 15px; }
  .backstage__copy { padding-top: 8px; padding-bottom: 8px; }
  .backstage__handle { margin-bottom: 8px; }
}

/* Mobile portraits fill the scene; the page edge supplies the natural close-up framing. */
@media (max-width: 1000px) and (orientation: portrait) {
  .backstage__copy, .backstage__socials, .backstage__contact { z-index: 5; }
  .biography { padding-bottom: 0; }
  .biography__layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; }
  .biography__title { position: relative; z-index: 4; padding: 14px 42px 14px 14px; background: #f3efd9; font-size: clamp(32px, 9vw, 54px); line-height: 1; }
  .biography__tabs { position: relative; z-index: 4; background: #f3efd9; }
  .biography__story { position: relative; z-index: 3; grid-column: 1; grid-row: 3; align-self: end; width: 55%; margin-bottom: max(18px, env(safe-area-inset-bottom)); padding: 12px 10px; background: #f3efd9; }
  .bio-chapter[hidden] { display: none; }
  .bio-chapter h3 { margin-bottom: 10px; }
  .bio-chapter h3 > span { display: block; font-size: 26px; margin: 0 0 5px; }
  .bio-chapter p { font-size: 15px; line-height: 1.4; }
  .biography__portrait-wrap { grid-column: 1; grid-row: 3; position: relative; z-index: 2; inset: auto; min-height: 0; }
  .biography__portrait { inset: 0 calc(-1 * var(--scene-x) - 9vw) auto auto; width: auto; height: max(88dvh, 150vw); aspect-ratio: 941 / 1672; max-width: none; transform: none; }
  .biography__portrait img { object-position: center bottom; animation-name: mobile-portrait-breathe; }
  @keyframes mobile-portrait-breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
}

@media (max-width: 1000px) and (max-height: 700px) and (orientation: portrait) {
  .biography__title { padding-top: 10px; padding-bottom: 10px; }
  .biography__story { width: 100%; padding: 10px 12px; margin-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .bio-chapter p { font-size: 14px; line-height: 1.35; }
  .bio-chapter h3 { margin-bottom: 7px; }
  .bio-chapter h3 > span { display: inline-block; vertical-align: middle; font-size: 24px; margin: 0 8px 0 0; }
}

@media (max-width: 1000px) and (orientation: landscape) {
  :root { --scene-top: max(12px, env(safe-area-inset-top)); --scene-gap: 8px; }
  .hero__signature { top: 4cqh; width: 34cqh; }
  .hero__portrait { top: 28cqh; width: 115cqh; }
  .backstage { grid-template-columns: 1fr .85fr; grid-template-rows: auto auto minmax(0, 1fr); column-gap: 20px; }
  .backstage__copy { grid-row: 1; grid-column: 1; padding: 8px 14px; }
  .backstage__title { font-size: clamp(25px, 4.1vw, 42px); }
  .backstage__socials { grid-row: 2; grid-column: 1; }
  .backstage__handle { font-size: 13px; margin-bottom: 6px; padding: 4px 8px; }
  .social-links a { height: 44px; font-size: 9px; gap: 2px; }
  .social-links svg { width: 19px; height: 19px; }
  .backstage__contact { grid-row: 3; grid-column: 1; align-self: end; padding-top: 8px; padding-bottom: 8px; }
  .contact-caption { font-size: 9px; margin-bottom: 5px; }
  .contact-whatsapp small { font-size: 10px; }
  .contact-whatsapp strong { font-size: 23px; }
  .contact-email { font-size: 13px; margin-top: 5px; padding-top: 5px; }
  .backstage__stage { grid-row: 1 / -1; grid-column: 2; }
  .metric { width: min(58cqw, 70cqh, 165px); }
  .metric--plays { width: min(48cqw, 70cqh, 140px); }
  .biography__layout { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto minmax(0, 1fr); gap: 5px 20px; }
  .biography__title { font-size: clamp(27px, 4vw, 40px); }
  .biography__title br { display: none; }
  .biography__tabs { grid-column: 1; grid-row: 2; }
  .biography__tabs button { min-height: 36px; }
  .biography__story { grid-row: 3; grid-column: 1; align-self: start; padding: 10px 12px; }
  .biography__portrait-wrap { grid-row: 2 / 4; grid-column: 2; }
  .bio-chapter p { font-size: 14px; line-height: 1.35; }
  .bio-chapter h3 { margin-bottom: 7px; }
  .bio-chapter h3 > span { display: inline-block; font-size: 24px; margin-right: 8px; }
}
