/* The Selected Edit on a phone: the same photographic direction, composed for touch.
   Motion is driven by the page's existing progress values and selected-mobile.js.
   Every expressive rule is gated; the static document remains fully usable. */
.se-mobile-cue,
.se-mobile-play,
.se-menu-motion { display: none; }

@media (max-width: 740px) {
  :root {
    --se-header: 68px;
    --se-pad: 22px;
    --se-mobile-space: clamp(56px, 10vw, 76px);
  }

  .se-header {
    height: var(--se-header);
    gap: 16px;
    padding-inline: 20px;
  }
  .se-brand {
    flex: 0 1 auto;
    width: min(255px, calc(100vw - 110px));
    max-width: none;
    min-width: 0;
  }
  .se-header-tools { flex: none; gap: 0; }
  .se-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 44px;
    padding-block: 10px;
  }

  /* Both creative directions are present in the opening screen. */
  .se-entrance {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1.04fr 1fr;
    height: calc(100svh - var(--se-header));
    min-height: min(510px, calc(100svh - var(--se-header)));
    gap: 4px;
    padding: 0 4px 4px;
  }
  .se-entrance-panel,
  .se-entrance-panel:last-child {
    height: auto;
    min-height: 0;
    min-width: 0;
  }
  .se-entrance-panel::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 35% 0 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgb(0 0 0 / .40), transparent 85%);
  }
  .se-entrance-image > img { object-position: 50% 28%; }
  .se-entrance-title {
    left: 20px;
    bottom: 21px;
    max-width: calc(100% - 40px);
    font-size: clamp(62px, 18.2vw, 84px);
    line-height: .88;
    letter-spacing: -.055em;
    text-shadow: 0 2px 24px rgb(0 0 0 / .22);
  }
  .se-mobile-cue {
    position: absolute;
    z-index: 4;
    top: calc(51% - 57px);
    right: 23px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: 85px;
    color: white;
    font: 400 10px/1.25 var(--font-body);
    text-align: right;
    text-shadow: 0 1px 10px rgb(0 0 0 / .55);
    pointer-events: none;
  }
  .se-mobile-cue::after {
    content: "";
    display: block;
    width: 1px;
    height: 21px;
    background: currentColor;
    opacity: .8;
  }
  .se-mobile-cue > span:empty { display: none; }
  .se-mobile-play {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: 400 12px/1.4 var(--font-body);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-shadow: 0 1px 10px rgb(0 0 0 / .65);
  }
  .se-mobile-play[hidden] { display: none; }

  /* White space keeps the larger, more cinematic photographs from feeling busy. */
  .se-breathe { padding-top: var(--se-mobile-space); }
  .se-intro h2 {
    max-width: 520px;
    font-size: clamp(39px, 11.4vw, 60px);
    line-height: 1.01;
    letter-spacing: -.045em;
  }
  .se-intro p { margin-top: 26px; max-width: 360px; }
  .se-section-heading h2,
  .se-subjects-intro h2,
  .se-home-close h2 {
    font-size: clamp(39px, 11.4vw, 60px);
    line-height: 1;
    letter-spacing: -.045em;
  }
  .se-cover-collection { padding-top: var(--se-mobile-space); }
  .se-cover-opening { gap: 34px; }
  .se-cover-opening > .se-collection-photo:nth-child(2) { width: 91%; }
  .se-cover-opening > .se-collection-photo:nth-child(3) { width: 79%; }
  .se-collage-wrap { padding-top: 76px; padding-bottom: 82px; }
  .se-collage-copy { margin-bottom: 42px; }
  .se-collage-copy h2 {
    font-size: clamp(45px, 13.5vw, 68px);
    line-height: .96;
    letter-spacing: -.05em;
  }
  .se-collage-main { --mobile-angle: -3deg; }
  .se-collage-small { --mobile-angle: 5deg; }
  .se-collage-wide { --mobile-angle: -5deg; }

  /* Every category has the same framing and title placement. */
  .se-subjects { padding-top: var(--se-mobile-space); }
  .se-subjects-intro { padding-bottom: 36px; }
  .se-subject-row { margin-bottom: 12px; }
  .se-subject-photo,
  .se-subject-row[data-category=Lifestyle] .se-subject-photo,
  .se-subject-row[data-category=Animals] .se-subject-photo {
    height: clamp(360px, 65svh, 560px);
  }
  .se-subject-label {
    left: var(--se-pad);
    right: auto;
    top: auto;
    bottom: 30px;
    gap: 13px;
    color: #fff;
  }
  .se-subject-label h3 { font-size: clamp(51px, 15vw, 78px); line-height: .93; }
  .se-subject-label span { font-size: 13px; }
  .se-subject-row[data-category=Lifestyle] img { object-position: 54% 30%; }
  .se-subject-row[data-category=Product] img { object-position: 49% 50%; }
  .se-subject-row[data-category=Kids] img { object-position: 50% 50%; }
  .se-subject-row[data-category=Pets] img { object-position: 50% 58%; }
  .se-subject-row[data-category=Animals] img { object-position: 50% 52%; }
  .se-work-wild { padding-top: var(--se-mobile-space); }
  .se-instagram { padding-top: var(--se-mobile-space); }
  .se-home-close { padding-top: 48px; padding-bottom: 58px; }

  .se-menu-motion {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    margin-top: 12px;
    font: 400 13px/1.4 var(--font-body);
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  html[data-mobile-motion=on]:not([data-motion=off]) .se-entrance-image > img {
    transform: translate3d(0, calc(var(--mobile-drift, 0) * -14px), 0) scale(1.065);
    transition: none;
    will-change: transform;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-split-film {
    transform: translate3d(0, calc(var(--mobile-drift, 0) * 12px), 0) scale(1.07);
    transform-origin: center;
    will-change: transform;
  }

  html[data-mobile-motion=on]:not([data-motion=off]) .se-expand {
    height: 150svh;
    min-height: 0;
    margin-top: 18px;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-expand-stage {
    height: 100svh;
    min-height: 0;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-expand-window {
    clip-path: inset(calc((1 - var(--art-progress, 0)) * 14%) calc((1 - var(--art-progress, 0)) * 9%));
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-expand-window img {
    transform: scale(calc(1.09 - var(--art-progress, 0) * .09));
  }

  html[data-mobile-motion=on]:not([data-motion=off]) .se-collage-layer {
    transition: none;
    will-change: transform;
    transform-origin: center;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-collage-main {
    transform: translate3d(0, calc(var(--mobile-drift, 0) * -16px), 0) rotate(var(--mobile-angle));
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-collage-small {
    transform: translate3d(0, calc(var(--mobile-drift, 0) * 24px), 0) rotate(var(--mobile-angle));
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-collage-wide {
    transform: translate3d(0, calc(var(--mobile-drift, 0) * -22px), 0) rotate(var(--mobile-angle));
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-subject-photo img {
    transform: translate3d(0, calc(var(--mobile-drift, 0) * 17px), 0) scale(1.09);
    transition: none;
    will-change: transform;
  }

  /* A natural vertical scroll turns the held frame into a moving one. */
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut {
    position: relative;
    height: 175svh;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    isolation: isolate;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-still,
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-film {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    padding: max(28px, env(safe-area-inset-top)) var(--se-pad) max(27px, env(safe-area-inset-bottom));
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-heading {
    display: block;
    margin-bottom: 26px;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-heading h2 {
    max-width: 300px;
    font-size: clamp(42px, 12.7vw, 62px);
    line-height: .98;
    letter-spacing: -.045em;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-heading .se-text-link {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 12px;
    min-height: 44px;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-still > img {
    grid-row: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 58% center;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-film {
    z-index: 2;
    clip-path: inset(calc((1 - var(--art-progress, 0)) * 100%) 0 0 0);
    will-change: clip-path;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-film .cf-video {
    grid-row: 2;
    display: flex;
    align-items: center;
    min-height: 0;
    height: 100%;
    width: 100%;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-film .cf-player {
    height: min(100%, calc((100vw - 2 * var(--se-pad)) * .5625));
    aspect-ratio: 16 / 9;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-caption { grid-row: 3; }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-film .cf-play {
    min-height: 44px;
    left: 16px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 12px;
  }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-film .cf-toggle {
    min-height: 44px;
    right: 10px;
    top: 10px;
    font-size: 11px;
  }
  /* Keyboard focus can never land behind the scroll mask. */
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut-film:focus-within { clip-path: inset(0); }
  html[data-mobile-motion=on]:not([data-motion=off]) .se-cut:has(.se-cut-still:focus-within) .se-cut-film { clip-path: inset(100% 0 0); }
}

@media (max-width: 740px) and (max-height: 560px) {
  .se-entrance-title { font-size: clamp(48px, 12vw, 64px); bottom: 16px; }
  .se-mobile-cue { top: calc(51% - 48px); }
}
