/* Mobile reading layer for SOLE WAKE work detail pages. */
@media (max-width: 1100px) {
  #viewport {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
  }

  section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  nav#dots {
    display: flex;
    right: 2px;
    gap: 0;
    opacity: 0.88;
  }

  nav#dots a {
    position: relative;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    transform: none;
  }

  nav#dots a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(246, 243, 238, 0.72);
    background: rgba(15, 14, 13, 0.28);
    transform: translate(-50%, -50%);
    transition: width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  nav#dots a.on {
    background: transparent;
    transform: none;
  }

  nav#dots a.on::after {
    width: 9px;
    height: 9px;
    border-color: var(--orange);
    background: var(--orange);
  }

  nav#dots a:focus-visible {
    outline: 1px solid var(--white);
    outline-offset: -4px;
  }

  .sw-site-header,
  .sw-site-header.is-scrolled,
  body.work-detail-past-hero .sw-site-header,
  body.work-detail-past-hero .sw-site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(15, 14, 13, 0.54) 0%, rgba(15, 14, 13, 0.18) 58%, rgba(15, 14, 13, 0) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    scroll-snap-align: start;
  }

  #hero .cap {
    width: calc(100% - 40px);
    max-width: 620px;
  }

  #hero .ec,
  #hero .meta {
    line-height: 1.8;
  }

  #intro {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  #intro .txt {
    display: block;
    overflow: visible;
    padding: max(104px, calc(env(safe-area-inset-top) + 92px)) 22px 52px;
  }

  #intro h2 {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.45;
    text-wrap: balance;
  }

  #intro .concept p {
    max-width: 65ch;
    font-size: 16px;
    line-height: 2;
    color: var(--concrete);
    text-wrap: pretty;
  }

  #intro .facts {
    padding: 42px 22px 64px;
  }

  #intro .facts-inner {
    max-width: none;
  }

  #intro .facts-inner .fc {
    grid-template-columns: minmax(82px, 0.72fr) minmax(0, 1.45fr);
    gap: 14px;
  }

  #intro .facts-inner .fc dd {
    overflow-wrap: anywhere;
  }

  #intro .facts-inner .pal {
    font-size: 13px;
    color: var(--grey);
  }

  #intro .txt > *,
  #intro .facts-inner > *,
  #strategy .strategy-copy > *,
  #strategy .strategy-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .full:not(#hero) {
    display: block;
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--black);
  }

  .full:not(#hero) .ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
  }

  .full:not(#hero) .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    transition: none;
  }

  .full:not(#hero) .shade {
    display: block;
    background: linear-gradient(to top, rgba(15, 14, 13, 0.96) 0%, rgba(15, 14, 13, 0.62) 28%, rgba(15, 14, 13, 0.12) 68%);
  }

  .full:not(#hero) .cap {
    position: absolute;
    inset: auto 44px max(34px, env(safe-area-inset-bottom)) 22px;
    max-width: min(620px, calc(100% - 66px));
    padding: 0;
    background: transparent;
  }

  .full:not(#hero) .cap > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .full:not(#hero) .cap h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.35;
    letter-spacing: 0.1em;
    text-wrap: balance;
  }

  .full:not(#hero) .cap p {
    max-width: 38ch;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(246, 243, 238, 0.94);
    text-wrap: pretty;
  }

  .duo {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none;
    grid-template-rows: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .duo::-webkit-scrollbar { display: none; }

  .duo figure {
    position: relative;
    overflow: hidden;
    border-left: 0;
    border-top: 0;
    background: var(--black);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .duo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    transition: none;
  }

  .duo figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin: 0;
    padding: 10px 12px;
    border-left: 2px solid var(--orange);
    background: rgba(15, 14, 13, 0.68);
    backdrop-filter: blur(6px);
    font-size: 11px;
    line-height: 1.7;
    white-space: normal;
  }

  .duo-swipe-hint {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(246, 243, 238, 0.72);
    border-radius: 50%;
    color: var(--white);
    background: rgba(15, 14, 13, 0.54);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: var(--mono);
    font-size: 26px;
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: duo-swipe-nudge 1.35s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    transition: opacity 260ms ease, visibility 260ms ease;
    will-change: transform;
  }

  @keyframes duo-swipe-nudge {
    0%, 100% { transform: translate(-50%, -50%) translateX(-7px); }
    50% { transform: translate(-50%, -50%) translateX(7px); }
  }

  .duo-swipe-hint.is-hidden {
    opacity: 0;
    visibility: hidden;
  }

  #plan {
    height: auto;
    min-height: 0;
    align-items: flex-start;
    overflow: visible;
    padding: 80px 20px 56px;
  }

  .plan-wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .plan-head p {
    max-width: 65ch;
    font-size: 16px;
    line-height: 2;
    color: var(--concrete);
  }

  #wall {
    padding: 72px 20px 56px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
  }

  #wall .sub {
    font-size: 14px;
    line-height: 1.9;
  }

  .card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }

  .card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--black);
  }

  .card span {
    position: static;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    min-height: 44px;
    padding: 10px 8px 12px;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #strategy {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 64px 20px 56px;
    gap: 28px;
  }

  #strategy .strategy-copy p,
  .strategy-card p {
    font-size: 16px;
    line-height: 2;
    color: var(--concrete);
    text-wrap: pretty;
  }

  .strategy-grid {
    gap: 0;
  }

  .strategy-card,
  .strategy-card.wide {
    min-height: 0;
    padding: 24px 0 26px;
    border: 0;
    border-top: 1px solid var(--iron);
    background: transparent;
  }

  .strategy-card:last-child {
    border-bottom: 1px solid var(--iron);
  }

  #end {
    min-height: 100dvh;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card span {
    max-width: none;
    min-height: 0;
    padding: 12px 0 22px;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  #viewport {
    scroll-behavior: auto;
  }

  header {
    transition: none;
  }

  .full .ph img,
  .duo img,
  .cap > *,
  .card,
  .card img,
  #strategy .strategy-copy > *,
  #strategy .strategy-card {
    transform: none !important;
    transition: none !important;
  }

  .scrollhint::after,
  .scanline,
  .duo-swipe-hint {
    animation: none !important;
    transition: none !important;
  }

  .plan-img > img {
    clip-path: inset(0) !important;
    transition: none !important;
  }

  .plan-frame rect {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .pin {
    opacity: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 420px) {
  #hero .cap {
    width: calc(100% - 32px);
  }

  #hero .ec {
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  #hero .meta {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  #intro .facts-inner .fc {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }
}
