/* Lonesome — mobile-only layer (desktop unaffected above 768px) */
.ls2-mobile-only { display: none; }

@media (max-width: 768px) {
  html.is-mobile { -webkit-text-size-adjust: 100%; }

  html.is-mobile {
    overflow-x: clip !important;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.is-mobile::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }

  html.is-mobile body {
    overflow-x: clip !important;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.is-mobile body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  html.is-mobile .ls2-content-wrap,
  html.is-mobile .ls2-main,
  html.is-mobile .page-lonesome .ls2-hero-ref,
  html.is-mobile .ls2-hero-runway,
  html.is-mobile .ls2-hero-cinematic {
    overflow-x: clip;
    max-width: 100%;
  }

  html.is-mobile.page-lonesome[data-ls2-bg="9"] .ls2-atmo-bg {
    transform: none !important;
  }

  .ls2-desktop-only,
  .page-lonesome .ls2-desktop-only,
  nav.ls2-desktop-only {
    display: none !important;
  }

  .ls2-mobile-only { display: block; }
  .ls2-mobile-only.ls2-mobile-flex { display: flex; }
  .ls2-mobile-only.ls2-mobile-grid { display: grid; }

  /* ── Hero-first site loader (mobile) ── */
  .ls2-site-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
  }

  .ls2-site-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .ls2-site-loader__brand {
    font-family: var(--ls2-nav-font);
    font-size: clamp(0.92rem, 4.2vw, 1.08rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  }

  .ls2-site-loader__track {
    display: block;
    width: min(42vw, 9rem);
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
  }

  .ls2-site-loader__bar {
    display: block;
    width: 36%;
    height: 100%;
    background: rgba(255, 255, 255, 0.72);
    animation: ls2LoaderBar 1.1s ease-in-out infinite;
  }

  @keyframes ls2LoaderBar {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(320%); }
  }

  html.is-mobile.is-loader-active,
  html.is-mobile.is-loader-active body {
    overflow: hidden;
    height: 100%;
  }

  .page-lonesome .ls2-hero-topbar {
    display: none !important;
  }

  /* ── Mobile fixed header (Lonesome + Contact / Private) ── */
  .ls2-mobile-header {
    position: fixed;
    z-index: 550;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: max(10px, env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      10px
      max(12px, env(safe-area-inset-left, 0px));
    pointer-events: none;
  }

  .ls2-mobile-header__brand,
  .ls2-mobile-header__links a {
    pointer-events: auto;
    text-decoration: none;
    color: #fff;
  }

  .ls2-mobile-header__brand {
    display: block;
    width: clamp(108px, 30vw, 148px);
    flex-shrink: 0;
  }

  .ls2-mobile-header__brand img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent !important;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
  }

  .ls2-mobile-header__links a {
    font-family: var(--ls2-nav-font);
    font-size: clamp(0.78rem, 3.8vw, 0.92rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }

  .ls2-mobile-header__brand:hover {
    opacity: 0.82;
  }

  .ls2-mobile-header__links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 16px);
    margin: 0;
    padding: 0;
  }

  .ls2-mobile-header__links a {
    white-space: nowrap;
  }

  .ls2-mobile-header__private {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }

  /* ── Hero mobile ── */
  html.is-mobile.is-hero-locked,
  html.is-mobile.is-hero-locked body {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
  }

  html.is-mobile.is-hero-locked body {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .ls2-hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: max(96px, calc(76px + env(safe-area-inset-bottom, 0px)));
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    pointer-events: none;
  }

  .ls2-hero-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
  }

  .ls2-hero-dots span.is-active {
    background: #fff;
    transform: scale(1.35);
  }

  .ls2-hero-swipe-track {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: auto;
    bottom: max(148px, calc(128px + env(safe-area-inset-bottom, 0px)));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: clamp(68px, 14vh, 88px);
    pointer-events: none;
  }

  .ls2-hero-swipe-track__chev {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
  }

  .ls2-hero-swipe-track__chev--up {
    transform: rotate(-45deg);
  }

  .ls2-hero-swipe-track__chev--down {
    transform: rotate(135deg);
  }

  .ls2-hero-swipe-track__rail {
    position: relative;
    flex: 1 1 auto;
    width: 1px;
    min-height: 52px;
    background: rgba(255, 255, 255, 0.55);
  }

  .ls2-hero-swipe-track__thumb {
    position: absolute;
    left: 50%;
    top: 0%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
    opacity: 0.9;
    transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ls2-hero-swipe-track.is-hidden {
    opacity: 0;
    visibility: hidden;
  }

  .ls2-hero-swipe-track.is-hidden .ls2-hero-swipe-track__thumb {
    animation: none;
  }

  .page-lonesome .ls2-hero-topbar__logo.ls2-desktop-only {
    display: none !important;
  }

  .cursor,
  .cursor-follower {
    display: none !important;
  }

  body.page-lonesome {
    cursor: auto;
  }

  .page-lonesome .ls2-hero-headline .h-sub {
    max-width: min(94vw, 20rem);
    font-size: clamp(0.52rem, 2.8vw, 0.62rem);
  }

  /* ── Gallery mobile (pipeline 01–02 card style) ── */
  .page-lonesome .ls2-home-gallery {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
  }

  .ls2-home-gallery-feed {
    padding: clamp(24px, 5vw, 40px) max(12px, env(safe-area-inset-left)) clamp(32px, 6vw, 48px) max(12px, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .ls2-home-gallery-feed__head {
    padding: 0 4px 8px;
  }

  .ls2-home-gallery-feed__head h2 {
    margin: 0;
    font-family: var(--heading);
    font-weight: 700;
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #fff;
  }

  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed__head h2 {
    font-family: var(--ls2-term-mono);
    font-size: clamp(1rem, 4.8vw, 1.25rem);
    letter-spacing: 0.02em;
    color: var(--ls2-term-green);
  }

  .ls2-home-gallery-feed .ls2-home-gallery-bridge {
    margin: 0;
    padding: clamp(16px, 5vw, 28px) clamp(14px, 4vw, 20px);
    text-align: center;
    font-family: var(--heading);
    font-size: clamp(0.74rem, 3.4vw, 0.92rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-home-gallery-bridge--term {
    font-family: var(--ls2-term-mono);
    font-style: normal;
    font-size: clamp(0.66rem, 3vw, 0.78rem);
    letter-spacing: 0.04em;
    color: var(--ls2-term-dim);
  }

  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-home-gallery-bridge--term::before {
    content: "// ";
    color: var(--ls2-term-green);
    opacity: 0.7;
  }

  /* ── Pipeline mobile feed ── */
  .ls2-pipeline-feed {
    padding: 0 max(12px, env(safe-area-inset-left)) clamp(48px, 8vw, 64px) max(12px, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .ls2-pipeline-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ls2-radius-xs);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
  }

  .ls2-pipeline-card__head {
    padding: 18px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ls2-pipeline-card__badge {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--ls2-term-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.42);
  }

  .ls2-pipeline-card__head h3 {
    margin: 0 0 8px;
    font-family: var(--heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
  }

  .ls2-pipeline-card__sub {
    margin: 0;
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }

  .ls2-pipeline-card__media {
    aspect-ratio: 16 / 9;
    background: #000;
  }

  .ls2-pipeline-card__media img,
  .ls2-pipeline-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ls2-pipeline-card__body {
    padding: 14px 16px 18px;
    font-family: var(--body);
    font-size: 0.82rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.58);
  }

  .ls2-pipeline-card__body strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
  }

  /* Duo block: 2×2 mosaic + stacked copy (steps 01–02) */
  .ls2-pipeline-card--duo .ls2-pipeline-card__range {
    margin: 0;
    padding: 16px 16px 12px;
    text-align: center;
    font-family: var(--ls2-term-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ls2-pipeline-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3px, 0.9vw, 5px);
    padding: clamp(8px, 2vw, 12px);
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ls2-pipeline-mosaic__cell {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0a;
  }

  .ls2-pipeline-mosaic__cell img,
  .ls2-pipeline-mosaic__cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #080808;
  }

  .ls2-pipeline-mosaic__cell video.is-buffering,
  .ls2-hero-panel video.is-buffering {
    opacity: 0.92;
  }

  .ls2-pipeline-mosaic__cell--portrait img {
    object-position: center 18%;
  }

  .ls2-pipeline-mosaic__cell--ui img {
    object-fit: cover;
    object-position: center top;
  }

  .ls2-pipeline-card__steps .ls2-workflow-desc strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text .ls2-workflow-desc strong,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text .ls2-workflow-desc strong {
    color: var(--ls2-term-amber);
    font-weight: 600;
  }

  .ls2-pipeline-card__steps {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 4vw, 22px);
    padding: clamp(18px, 4vw, 24px) 16px 20px;
  }

  .ls2-pipeline-card__steps .ls2-workflow-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    text-align: left;
  }

  .ls2-pipeline-card__steps .ls2-workflow-text h3 {
    margin: 0;
    font-family: var(--heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.25;
    color: #fff;
  }

  .ls2-pipeline-card__steps .ls2-workflow-sub {
    margin: 0;
    font-family: var(--body);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }

  .ls2-pipeline-card__steps .ls2-workflow-sub .ls2-workflow-index {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.2em;
  }

  .ls2-pipeline-card__steps .ls2-workflow-desc {
    margin: 0.15rem 0 0;
    font-family: var(--body);
    font-size: 0.8rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.52);
  }

  .ls2-pipeline-step-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text h3,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text h3 {
    font-family: var(--ls2-term-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--ls2-term-green);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text h3::before,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text h3::before {
    content: "> ";
    opacity: 0.55;
    color: var(--ls2-term-green);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text .ls2-workflow-sub,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text .ls2-workflow-sub {
    font-family: var(--ls2-term-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--ls2-term-dim);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text .ls2-workflow-index,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text .ls2-workflow-index {
    color: var(--ls2-term-cyan);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text .ls2-workflow-index::before,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text .ls2-workflow-index::before {
    content: "[";
    color: var(--ls2-term-dim);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text .ls2-workflow-index::after,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text .ls2-workflow-index::after {
    content: "]";
    color: var(--ls2-term-dim);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-feed .ls2-workflow-text .ls2-workflow-desc,
  html.page-lonesome[data-ls2-term] .ls2-home-gallery-feed .ls2-workflow-text .ls2-workflow-desc {
    font-family: var(--ls2-term-mono);
    font-size: 0.72rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.46);
    padding-left: 0.5rem;
    border-left: 2px solid rgba(var(--ls2-term-accent-rgb), 0.35);
  }

  html.page-lonesome[data-ls2-term] .ls2-pipeline-card__range {
    color: var(--ls2-term-dim);
    font-family: var(--ls2-term-mono);
  }

  .ls2-pipeline-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ls2-pipeline-carousel::-webkit-scrollbar { display: none; }

  .ls2-pipeline-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 16 / 9;
    background: #000;
  }

  .ls2-pipeline-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ls2-pipeline-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
  }

  .ls2-pipeline-carousel__dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
  }

  .ls2-pipeline-carousel__dots span.is-active {
    background: rgba(255, 255, 255, 0.85);
  }

  /* ── Who we are / private CTA ── */
  .ls2-style-gallery__mark {
    display: flex;
    width: min(100%, 280px);
    margin-bottom: clamp(22px, 5vw, 32px);
  }

  .ls2-style-gallery__mark img {
    object-fit: contain;
    background: transparent !important;
  }

  .ls2-style-gallery__split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ls2-private-cta {
    margin-left: max(12px, env(safe-area-inset-left)) !important;
    margin-right: max(12px, env(safe-area-inset-right)) !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .ls2-hero-swipe-track__thumb { transition: none; }
    .ls2-site-loader__bar { animation: none; opacity: 0.55; }
    .ls2-site-loader { transition: opacity 0.2s ease, visibility 0.2s ease; }
  }
}
