/* Mobile art direction — deliberately independent from the desktop composition. */
@media (max-width: 620px) {
  :root {
    --pad: 1rem;
    --content-gutter: 1rem;
  }

  html {
    overflow-x: hidden;
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: hidden;
    background: #000;
  }

  .grain { display: none; }

  .site-header,
  .site-header.is-compact {
    top: max(6px, env(safe-area-inset-top));
    width: calc(100% - 12px);
    height: 58px;
    padding: 0 .75rem 0 .9rem;
    background: linear-gradient(90deg, rgba(3,3,4,.78), rgba(14,14,16,.95) 18% 82%, rgba(3,3,4,.78));
    box-shadow: 0 18px 46px rgba(0,0,0,.72);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
  }

  .site-header.menu-open,
  .site-header.is-compact.menu-open { overflow: visible; }

  .site-logo { gap: .48rem; font-size: 1.06rem; }
  .site-logo img { width: 27px; height: 34px; }
  .header-cta { display: none; }

  .menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255,255,255,.045);
  }

  .menu-toggle span { width: 18px; }
  .menu-toggle span { transition: transform .25s ease, opacity .25s ease; }
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(2.5px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

  .desktop-nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    overflow: hidden;
    padding: .25rem 1rem .7rem;
    border: 0;
    border-radius: 0;
    background: rgba(5,5,6,.96);
    box-shadow: 0 28px 70px rgba(0,0,0,.8);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
  }

  .desktop-nav a {
    display: flex;
    min-height: 58px;
    align-items: center;
    border-color: rgba(255,255,255,.12);
    font-size: .76rem;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    padding: calc(7.2rem + env(safe-area-inset-top)) 1rem 0;
    background: radial-gradient(circle at 70% 39%, rgba(255,255,255,.032), transparent 25%), #000;
  }

  .hero-copy { position: relative; z-index: 3; padding: 0; }
  .hero .kicker { margin-bottom: 1.45rem; font-size: .58rem; letter-spacing: .13em; }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.45rem, 16.4vw, 4.75rem);
    line-height: .81;
    letter-spacing: -.078em;
  }

  .hero h1 em {
    display: inline-block;
    padding: .08em .08em .08em 0;
    font-size: .9em;
    line-height: 1;
  }

  .hero-intro {
    max-width: 34rem;
    margin: 2rem 0 1.55rem;
    color: #aaa;
    font-size: 1.04rem;
    line-height: 1.55;
  }

  .hero-actions { display: flex; gap: .7rem; align-items: stretch; flex-direction: column; }
  .hero-actions .chrome-button { order: -1; }
  .hero-actions .chrome-button,
  .hero-actions .text-link {
    min-height: 58px;
    justify-content: space-between;
    padding: 0 1.1rem;
    font-size: .72rem;
  }

  .hero-actions .text-link {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.18);
  }

  .hero-visual {
    width: calc(100% + 2rem);
    min-height: 0;
    margin: .75rem -1rem 0;
  }

  .image-frame {
    width: 100%;
    min-height: 470px;
    aspect-ratio: .86;
    background-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.7) 6%, transparent 24% 76%, rgba(0,0,0,.7) 94%, #000 100%), url("assets/site/beatpack-hero.png");
    background-position: 50% 48%;
    background-size: cover;
    filter: saturate(0) contrast(1.22) brightness(1.12);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .visual-stamp { top: 10%; right: 5%; font-size: .52rem; }
  .hero-index { display: none; }

  .ticker {
    height: 48px;
    padding: .95rem 0;
    transform: rotate(-1deg) scale(1.03);
  }

  .ticker-track { gap: 1.8rem; font-size: .64rem; }

  .production-flow,
  .beats,
  .manifesto,
  .pack,
  .apply { padding-right: 1rem; padding-left: 1rem; }

  .production-flow { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .flow-heading { margin-bottom: 3.2rem; text-align: left; }
  .flow-heading .section-label { justify-content: flex-start; }

  .flow-heading h2,
  .section-head h2,
  .manifesto-copy h2,
  .pack-selector-head h3,
  .apply h2 {
    max-width: 100%;
    font-size: clamp(3.05rem, 13.8vw, 4.25rem);
    line-height: .86;
    letter-spacing: -.065em;
  }

  .flow-heading h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.1rem, 10.6vw, 3.25rem);
    line-height: .89;
    letter-spacing: -.055em;
    overflow-wrap: normal;
    text-wrap: pretty;
  }

  .flow-heading > p:last-child,
  .section-head > div > p,
  .manifesto-copy > p:last-child {
    margin-top: 1.35rem;
    font-size: .82rem;
    line-height: 1.65;
  }

  .flow-step { margin-bottom: 3rem; }
  .step-heading { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .step-heading h3 { font-size: 1.65rem; }

  .quiz-embed-shell {
    width: calc(100% + 2rem);
    height: 800px;
    min-height: 0;
    margin-left: -1rem;
    border-inline: 0;
    border-radius: 0;
  }

  .benefit-rail { grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,.18); }
  .benefit-rail > div,
  .benefit-rail > div:nth-child(2) {
    display: grid;
    min-height: 0;
    grid-template-columns: 42px 1fr;
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.13);
  }

  .benefit-rail span { grid-row: 1 / 3; margin: .1rem 0 0; }
  .benefit-rail strong { font-size: .9rem; }
  .benefit-rail p { margin-top: .35rem; }

  .section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .section-head { margin-bottom: 2.7rem; }
  .section-head > div { display: block; }

  .track-list { gap: .7rem; border: 0; }
  .track {
    display: grid;
    min-height: 0;
    grid-template-columns: 56px minmax(0,1fr) auto;
    grid-template-rows: auto 44px auto;
    gap: .9rem .75rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
  }

  .play-button { grid-row: 1 / 3; width: 50px; height: 50px; }
  .track-meta { min-width: 0; align-self: center; }
  .track-number { display: none; }
  .track h3 { overflow: hidden; font-size: 1.16rem; white-space: nowrap; text-overflow: ellipsis; }
  .track-meta p { overflow: hidden; margin-top: .28rem; font-size: .61rem; white-space: nowrap; text-overflow: ellipsis; }
  .track-time { display: block; grid-column: 3; grid-row: 1; align-self: center; font-size: .62rem; }
  .waveform { grid-column: 2 / 4; grid-row: 2; height: 42px; padding: .38rem .48rem; }
  .track-buy {
    display: flex;
    grid-column: 1 / 4;
    grid-row: 3;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 2.2rem 0 1rem;
    border: 1px solid rgba(255,255,255,.22);
    font-size: .62rem;
    line-height: 1;
  }

  .beat-contact,
  .service-contact { align-items: stretch; flex-direction: column; gap: 1.2rem; padding-top: 2rem; }
  .beat-contact .chrome-button,
  .service-contact .chrome-button { width: 100%; min-height: 56px; justify-content: space-between; }

  .manifesto {
    display: flex;
    gap: 0;
    flex-direction: column;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .manifesto-copy { order: 1; }
  .manifesto-mark {
    order: 2;
    width: calc(100% + 2rem);
    min-height: 320px;
    margin: 1.25rem -1rem 2rem;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 86%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 86%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .service-grid { order: 3; display: block; width: 100%; margin-top: 0; }
  .service-grid article {
    display: grid;
    min-height: 0;
    grid-template-columns: 46px minmax(0,1fr) 36px;
    grid-template-rows: auto auto;
    gap: .5rem .7rem;
    padding: 1.2rem 0;
  }

  .service-grid span { grid-row: 1 / 3; font-size: .56rem; }
  .service-grid h3 { font-size: 1.03rem; }
  .service-grid p { grid-column: 2; font-size: .65rem; line-height: 1.5; }
  .service-action {
    overflow: hidden;
    grid-column: 3;
    grid-row: 1 / 3;
    width: 36px;
    height: 44px;
    align-self: center;
    padding: 0;
    color: transparent;
    font-size: 0;
  }

  .service-action b { display: grid; height: 100%; place-items: center; color: #fff; font-size: 1rem; }
  .service-contact { order: 4; }

  .pack { display: block; padding-top: 5.2rem; padding-bottom: 5.5rem; }
  .pack > .pack-visual,
  .pack > .pack-copy { display: none; }
  .pack-selector { margin-top: 0; padding-top: 0; border-top: 0; }
  .pack-selector-head { display: block; margin-bottom: 2rem; }
  .pack-selector-head h3 { margin-top: .7rem; }
  .pack-selector-head > p { margin: 1.2rem 0 0; font-size: .78rem; line-height: 1.6; }

  .pack-options {
    display: flex;
    overflow-x: auto;
    width: calc(100% + 2rem);
    margin: 0 -1rem;
    padding: 0 1rem 1rem;
    gap: .7rem;
    scroll-padding: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pack-options::-webkit-scrollbar { display: none; }
  .pack-option {
    flex: 0 0 min(84vw, 355px);
    min-height: 510px;
    padding: 1rem;
    border: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    scroll-snap-align: start;
  }

  .pack-option-image {
    aspect-ratio: .92;
    margin: -1rem -1rem .55rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%);
  }

  .pack-option-copy > span { font-size: .58rem; }
  .pack-option h4 { margin-top: .4rem; font-size: 1.35rem; }
  .pack-option-price del { font-size: 1rem; }
  .pack-option-price strong { font-size: 1.75rem; }

  .apply {
    display: flex;
    min-height: 75svh;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .apply .section-label { margin: 0; }
  .apply h2 { width: 100%; }
  .apply > p:not(.section-label) { font-size: .86rem; line-height: 1.65; }
  .apply > .chrome-button { width: 100%; min-height: 60px; justify-content: space-between; }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  }

  .site-footer > div { display: flex; align-items: flex-start; flex-direction: column; gap: .75rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: clamp(3.15rem, 16vw, 3.7rem); }
  .flow-heading h2,
  .section-head h2,
  .manifesto-copy h2,
  .pack-selector-head h3,
  .apply h2 { font-size: 2.9rem; }
  .flow-heading h2 { font-size: clamp(2.05rem, 10.4vw, 2.45rem); }
  .image-frame { min-height: 425px; }
}
