/* ============================================================
   Mobile experience — ≤760px only. Desktop untouched.
   Editorial layout inspired by NeoCultural Couture, rebuilt in
   the PC design system: near-black canvas · cream type ·
   amber accent · ds-cta crop-mark buttons · Saans + mono.
   ============================================================ */

/* Mobile-only blocks hidden on desktop */
.m-hero,
.m-statement,
.m-index,
.m-contact,
.m-footer,
.m-bottomnav,
.m-viewer,
.m-only {
  display: none;
}

@media (max-width: 760px) {

  :root {
    --m-bg: var(--ink-850);          /* #050608 page */
    --m-bg-2: var(--ink-800);
    /* monochrome — no orange, no grey: hierarchy via size + weight */
    --m-fg: #ffffff;                 /* headings (white) */
    --m-cream: var(--cream-100);     /* body (near-white) */
    --m-cream-2: var(--cream-200);
    --m-mut: var(--cream-200);       /* labels/meta — white family, not grey */
    --m-accent: var(--cream-100);    /* was amber — now near-white */
    --m-line: var(--line-mid);
    --m-line-soft: var(--line-soft);

    /* THREE type sizes only — big / mid / small */
    --m-t1: clamp(2.4rem, 11vw, 3.4rem);   /* headline  · bold  */
    --m-t2: clamp(1.4rem, 5.6vw, 1.72rem); /* subhead   · mid   */
    --m-t3: 0.92rem;                        /* text/label · thin */
    /* three weights */
    --m-w-bold: 700;
    --m-w-mid: 500;
    --m-w-thin: 300;
  }

  html { scroll-behavior: smooth; background: var(--m-bg); }
  body.ds-scope,
  main.portfolio { background: var(--m-bg); color: var(--m-cream); }
  main.portfolio { padding-bottom: 0; }

  /* hide desktop scenes / cases / reveal docks */
  .page--hero .page__bg,
  .page--hero .page__scene,
  .page--work .page__scene { display: none; }
  .page--hero,
  .page--work {
    display: block; height: auto; min-height: 0; margin: 0; padding: 0;
    overflow: visible; background: var(--m-bg);
    transform: none !important;   /* neutralise desktop scroll-snap JS */
  }
  .page { transform: none !important; }
  main.portfolio { padding-top: 0; margin-top: 0; }
  .project-case,
  .more-work,
  .top-nav,
  .bottom-nav { display: none !important; }

  .m-hero, .m-statement, .m-index, .m-contact, .m-footer { display: block; }
  .m-bottomnav { display: flex; }

  /* shared editorial atoms */
  .m-slash {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--m-accent);
  }
  .m-mono {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--m-mut);
  }

  /* ══════════════════════════════════════════════════════════
     HERO — full-bleed figure, oversized type at the base
     ══════════════════════════════════════════════════════════ */
  .m-hero {
    position: relative;
    height: 100svh; min-height: 580px;
    overflow: hidden;
  }
  .m-hero__bar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 0;
  }
  .m-hero__brand {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--m-cream); text-decoration: none;
  }
  .m-hero__connect-wrap { position: relative; }
  .m-hero__connect.ds-cta--frame {
    color: var(--m-fg); text-decoration: none; cursor: pointer;
    padding: 11px 16px; font-size: 0.78rem; letter-spacing: 0.06em;
  }
  .m-connect-pop {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 12;
    min-width: 236px; padding: 6px;
    background: #14161c; border: 1px solid var(--m-line); border-radius: 14px;
    box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.75);
    display: flex; flex-direction: column; gap: 2px;
    transform-origin: top right;
    animation: m-pop-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .m-connect-pop[hidden] { display: none; }
  .m-connect-pop a { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; text-decoration: none; border-radius: 9px; }
  .m-connect-pop a:active { background: rgba(255, 255, 255, 0.06); }
  .m-connect-pop__k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--m-mut); }
  .m-connect-pop__v { font-family: var(--font-sans); font-size: 0.92rem; color: var(--m-fg); }
  @keyframes m-pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
  .m-hero__media { position: absolute; inset: 0; z-index: 0; }
  .m-hero__media img {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    height: 88%; width: auto; max-width: none; object-fit: contain;
  }
  .m-hero__glow {
    position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 0; pointer-events: none;
    background: radial-gradient(72% 100% at 50% 100%, rgba(255, 255, 255, 0.045), transparent 72%);
  }
  .m-hero__scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg,
      rgba(5, 6, 8, 0.45) 0%, rgba(5, 6, 8, 0) 22%, rgba(5, 6, 8, 0) 42%,
      rgba(5, 6, 8, 0.82) 78%, var(--m-bg) 100%);
  }
  .m-hero__copy {
    position: absolute; z-index: 2;
    left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    padding: 0 20px;
  }
  .m-hero .m-hero__k {
    display: block; margin-bottom: 18px;
    font-size: 0.98rem; letter-spacing: 0.1em; color: var(--m-cream);
  }
  .m-hero .m-hero__title {
    margin: 0;
    font-family: var(--font-sans); font-weight: var(--m-w-bold);
    font-size: var(--m-t1); line-height: 0.9; letter-spacing: -0.04em;
    color: var(--m-fg);
  }
  .m-hero .m-hero__title span { display: block; }
  .m-hero__sub {
    margin: 14px 0 0; max-width: 30ch;
    font-family: var(--font-sans); font-weight: 300; font-size: var(--m-t3); line-height: 1.42;
    color: var(--m-cream);
  }
  .m-hero__actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
  .m-hero__cta.ds-cta--frame { color: var(--m-fg); padding: 15px 22px; font-size: 0.92rem; }
  .m-hero__enter {
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--m-mut);
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  }

  /* ══════════════════════════════════════════════════════════
     STATEMENT — editorial POV
     ══════════════════════════════════════════════════════════ */
  .m-statement {
    border-top: 1px solid var(--m-line-soft);
    padding: clamp(72px, 14vh, 120px) 20px;
  }
  .m-statement__k { display: block; margin-bottom: 26px; }
  .m-statement__lead {
    margin: 0;
    font-family: var(--font-sans); font-weight: var(--m-w-mid);
    font-size: var(--m-t2); line-height: 1.18; letter-spacing: -0.022em;
    color: var(--m-fg);
  }
  .m-statement__lead em { font-style: italic; color: var(--m-accent); }
  .m-statement__body {
    margin: 22px 0 0; max-width: 46ch;
    font-size: var(--m-t3); line-height: 1.6; color: var(--m-mut);
  }

  /* ══════════════════════════════════════════════════════════
     INDEX — numbered project list  [001] … [004]
     ══════════════════════════════════════════════════════════ */
  .m-index {
    border-top: 1px solid var(--m-line-soft);
    padding: clamp(58px, 10vh, 92px) 0 clamp(30px, 6vh, 50px);
  }
  .m-index__k { display: block; padding: 0 20px; margin-bottom: 14px; }
  .m-index__head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 0 20px clamp(14px, 3vh, 22px);
  }
  .m-index__title {
    margin: 0;
    font-family: var(--font-sans); font-weight: var(--m-w-bold);
    font-size: var(--m-t1); letter-spacing: -0.03em; color: var(--m-fg);
  }
  .m-index__count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--m-mut); }

  .m-rowitem { border-top: 1px solid var(--m-line-soft); }
  .m-rowitem:last-child { border-bottom: 1px solid var(--m-line-soft); }
  .m-row {
    display: block; width: 100%; padding: 20px; border: 0; background: none;
    text-align: left; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .m-row__top { display: flex; align-items: baseline; gap: 12px; }
  .m-row__num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--m-accent); }
  .m-row__name {
    font-family: var(--font-sans); font-weight: var(--m-w-mid);
    font-size: var(--m-t2); line-height: 1; letter-spacing: -0.025em; color: var(--m-fg);
  }
  .m-row__cat {
    margin-left: auto; align-self: center;
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--m-mut); text-align: right;
  }
  .m-row__media {
    position: relative; margin-top: 16px; aspect-ratio: 16 / 10;
    border-radius: 14px; overflow: hidden; background: var(--m-bg-2);
    border: 1px solid var(--m-line);
  }
  .m-row__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .m-row:active .m-row__media { transform: scale(0.99); transition: transform 0.2s; }
  .m-row__go {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--m-accent);
  }

  /* ---- swipeable card deck (drag to swipe, tap to open) ---- */
  .m-deck { display: flex; flex-direction: column; align-items: center; padding: 12px 16px 6px; }
  .m-deck__stack {
    position: relative;
    width: min(90vw, 366px);
    height: min(122vw, 486px);
    touch-action: pan-y;
    transform-style: preserve-3d;
    --card-perspective: 950px;
    --card-z: 16px;
    --card-y: 13px;
  }
  .m-deck__card {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    border-radius: 30px; overflow: hidden;
    padding: 7px;                        /* the phone bezel */
    /* brushed iPhone-grey aluminium chassis */
    background: linear-gradient(150deg, #8b8e94 0%, #6c6f75 34%, #55585e 70%, #45474c 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 0 0 1px rgba(0, 0, 0, 0.25),
      0 28px 58px -24px rgba(0, 0, 0, 0.85);
    cursor: grab; will-change: transform, opacity;
    transform:
      perspective(var(--card-perspective))
      translateZ(calc(var(--lift, 0px) - var(--card-z) * var(--i, 1)))
      translateY(calc(var(--card-y) * var(--i, 1)))
      translateX(var(--swipe-x, 0px))
      rotateY(var(--swipe-rotate, 0deg));
  }
  .m-deck__card:active { cursor: grabbing; }
  /* inner black "screen": photo on top, text panel below */
  .m-deck__media {
    position: relative; flex: 0 0 auto;
    width: 100%; aspect-ratio: 16 / 10;
    border-radius: 23px 23px 0 0; overflow: hidden;
    background-size: cover; background-position: center top; background-color: #0d0f12;
  }
  .m-deck__scrim { display: none; }
  .m-deck__body {
    position: relative; flex: 1 1 auto;
    padding: 16px 18px 18px; display: flex; flex-direction: column; justify-content: center;
    border-radius: 0 0 23px 23px;
    background: #0b0c0f;                  /* the screen continues under the text */
  }
  .m-deck__num { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--m-mut); }
  .m-deck__name { display: block; margin: 8px 0 8px; font-family: var(--font-sans); font-weight: var(--m-w-bold); font-size: 2.15rem; line-height: 0.98; letter-spacing: -0.03em; color: #fff; }
  .m-deck__cat { display: block; font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.04em; text-transform: none; color: var(--m-cream); }
  .m-deck__open { display: none; }

  /* swipe-hint finger */
  .m-deck__finger {
    position: absolute; z-index: 60; left: 50%; top: 42%;
    width: 42px; height: 42px; margin: -21px 0 0 -21px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
    display: grid; place-items: center; color: #fff;
    opacity: 0; pointer-events: none;
  }
  .m-deck__finger svg { width: 20px; height: 20px; }

  /* ══════════════════════════════════════════════════════════
     ABOUT / RÉSUMÉ — dark, single column
     ══════════════════════════════════════════════════════════ */
  .about-section {
    background: var(--m-bg); border-top: 1px solid var(--m-line-soft);
    padding: clamp(58px, 11vh, 92px) 0 clamp(44px, 8vh, 68px);
  }
  .about-section__head { display: block; grid-template-columns: none; padding: 0 20px clamp(24px, 4.5vh, 34px); border: 0; }
  .about-section__head .eyebrow { display: none; }   /* replaced by the // slash eyebrow on mobile */
  .about-head__k { display: block; margin: 0 0 16px; }
  .about-section .about-section__title { font-size: clamp(1.7rem, 7vw, 2.05rem); line-height: 1.04; letter-spacing: -0.025em; max-width: none; color: var(--m-fg); margin: 0; }
  .about-section__meta { margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em; color: var(--m-mut); }
  .about-cta.ds-cta--frame { display: inline-flex; width: auto; align-self: flex-start; margin: 20px 0 0; grid-column: auto; padding: 13px 18px; color: var(--m-fg); font-size: 0.86rem; }

  .about-section__wrap { padding: clamp(30px, 5.5vh, 46px) 20px 0; }
  .about-resume { display: flex; flex-direction: column; gap: clamp(44px, 8vh, 64px); max-width: none; }
  .about-resume__left, .about-resume__right { width: auto; border: 0; padding: 0; }
  /* remove all accent lines/markers on mobile */
  .about-resume__right::before, .ritem--xp::before, .ritem__link::before { display: none !important; }

  .about-lead { margin: 0 0 clamp(44px, 8vh, 60px); font-weight: var(--m-w-thin); font-size: 1.14rem; line-height: 1.52; letter-spacing: -0.01em; color: var(--m-cream); }

  .about-rblock { margin: 0; border: 0; }
  /* clear, brighter section names above each block */
  .about-section .about-rblock__h,
  .about-section .about-rblock__h--xp {
    font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--m-fg);
    margin: 0 0 22px; padding: 20px 0 0; border-top: 1px solid var(--m-line); border-bottom: 0;
  }
  .ritem { padding: 0; margin: 0 0 clamp(28px, 5.5vh, 40px); border-bottom: 0; }
  .ritem:last-child { margin-bottom: 0; }
  .ritem__name { margin: 0 0 8px; font-family: var(--font-sans); font-weight: var(--m-w-mid); font-size: 1.2rem; line-height: 1.24; letter-spacing: -0.012em; color: var(--m-fg); }
  .ritem__meta { margin: 0 0 11px; display: flex; flex-wrap: wrap; gap: 3px 12px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--m-mut); }
  .ritem__meta em { color: var(--m-cream); font-style: normal; }
  .ritem__desc { margin: 0; font-size: 1rem; line-height: 1.62; color: var(--m-cream); font-weight: var(--m-w-thin); }
  .about-section__pin { display: none; }
  /* mobile-only section label above the intro */
  .m-only { display: block; }

  /* ══════════════════════════════════════════════════════════
     CONTACT — UNITE-style block
     ══════════════════════════════════════════════════════════ */
  .m-contact {
    border-top: 1px solid var(--m-line-soft);
    padding: clamp(76px, 15vh, 128px) 20px;
  }
  .m-contact__k { display: block; margin-bottom: 24px; }
  .m-contact .m-contact__title {
    margin: 0;
    font-family: var(--font-sans); font-weight: var(--m-w-bold);
    font-size: var(--m-t1); line-height: 0.9; letter-spacing: -0.035em; color: var(--m-fg);
  }
  .m-contact .m-contact__title span { display: block; }
  .m-contact .m-contact__title em { font-style: italic; color: var(--m-accent); font-weight: 300; }
  .m-contact__body { margin: 22px 0 0; max-width: 40ch; font-size: var(--m-t3); line-height: 1.6; color: var(--m-mut); }
  .m-contact__links { margin-top: clamp(30px, 5vh, 42px); border-top: 1px solid var(--m-line-soft); }
  .m-contact__link { display: flex; align-items: center; gap: 14px; padding: 18px 2px; border-bottom: 1px solid var(--m-line-soft); text-decoration: none; }
  .m-contact__link-k { flex: 0 0 auto; width: 82px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-mut); }
  .m-contact__link-v { flex: 1 1 auto; min-width: 0; font-family: var(--font-sans); font-weight: var(--m-w-mid); font-size: 1.02rem; letter-spacing: -0.01em; color: var(--m-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-contact__link-a { flex: 0 0 auto; font-size: 1.1rem; color: var(--m-mut); }
  .m-contact__link:active .m-contact__link-a { color: var(--m-fg); }

  /* ══════════════════════════════════════════════════════════
     FOOTER — local time · method · credits
     ══════════════════════════════════════════════════════════ */
  .m-footer {
    border-top: 1px solid var(--m-line-soft);
    padding: 28px 20px calc(112px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 16px;
  }
  .m-footer__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .m-footer__lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-mut); }
  .m-footer__val { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--m-cream); }
  .m-footer__val a { color: var(--m-cream); text-decoration: none; border-bottom: 1px solid var(--m-line); }
  .m-footer__method { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--m-accent); }

  /* ══════════════════════════════════════════════════════════
     VISIBLE BOTTOM NAV
     ══════════════════════════════════════════════════════════ */
  .m-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    padding: 9px 18px calc(11px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 6, 8, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
    border-top: 1px solid var(--m-line-soft);
  }
  /* nav items styled like our crop-mark buttons (ds-cta--frame motif):
     inactive = registration corners; in-section = frame closes + pressed */
  .m-bottomnav__btn {
    position: relative;
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    padding: 12px 14px; border-radius: 5px;
    text-decoration: none; color: var(--m-mut);
    transition: color 0.3s ease, transform 0.14s ease, background 0.3s ease, box-shadow 0.2s ease;
  }
  .m-bottomnav__btn svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
  .m-bottomnav__btn span {
    display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
    transition: max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, margin-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* crop-mark corners */
  .m-bottomnav__btn::before,
  .m-bottomnav__btn::after {
    content: ""; position: absolute; width: 8px; height: 8px; pointer-events: none;
    border: 0 solid currentColor; opacity: 0.5;
    transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1), height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  }
  .m-bottomnav__btn::before { top: 3px; left: 4px; border-top-width: 1.5px; border-left-width: 1.5px; }
  .m-bottomnav__btn::after  { bottom: 3px; right: 4px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
  /* in-section → frame closes to a full box + button presses in */
  .m-bottomnav__btn.is-active {
    color: var(--m-fg);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(1.5px);
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.55);
  }
  .m-bottomnav__btn.is-active::before,
  .m-bottomnav__btn.is-active::after { width: calc(100% - 8px); height: calc(100% - 6px); opacity: 1; }
  .m-bottomnav__btn.is-active span { max-width: 8ch; opacity: 1; margin-left: 8px; }
  .m-bottomnav__btn.is-active svg { transform: scale(0.93); }

  /* pre-scroll nudge — big headline that lands after the icon finishes growing */
  .m-nudge {
    position: absolute; left: 50%; bottom: calc(100% + 296px);
    transform: translateX(-50%) translateY(16px);
    width: max-content; max-width: 86vw; text-align: center;
    font-family: var(--font-sans); font-weight: var(--m-w-bold);
    font-size: clamp(1.7rem, 8.4vw, 2.5rem); line-height: 1.04; letter-spacing: -0.02em;
    color: var(--m-fg); text-shadow: 0 12px 40px rgba(5, 6, 8, 0.95);
    opacity: 0; pointer-events: none;
  }
  .m-bottomnav.is-nudge .m-nudge {
    animation: m-nudge-in 0.6s 2.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  @keyframes m-nudge-in { to { opacity: 1; transform: translateX(-50%) translateY(0); } }

  /* pre-scroll delight: the Work icon grows crisply and rises
     vertically out of the bar, staying white, the longer you don't scroll.
     Animating width/height (not transform:scale) keeps the SVG
     vector-sharp at every size — no pixelation. */
  .m-bottomnav.is-nudge .m-bottomnav__btn--work {
    z-index: 20; color: var(--m-fg); overflow: visible; min-width: 47px;
  }
  .m-bottomnav.is-nudge .m-bottomnav__btn--work svg {
    position: absolute; left: 50%; bottom: 100%;
    transform: translateX(-50%); transform-origin: bottom center;
    color: var(--m-fg);            /* stays white the whole way up */
    will-change: width, height;
    animation: m-work-grow 3s cubic-bezier(0.66, 0, 0.86, 0.36) forwards;  /* ease-in: starts slow, accelerates */
  }
  .m-bottomnav.is-nudge .m-bottomnav__btn--work span { animation: m-fade-out 1.2s ease forwards; }

  @keyframes m-work-grow {
    0%   { width: 23px;  height: 23px;  margin-bottom: 6px;  opacity: 0.55; }
    14%  { opacity: 1; }
    100% { width: min(48vw, 205px); height: min(48vw, 205px); margin-bottom: 74px; opacity: 1; }
  }
  @keyframes m-fade-out { to { opacity: 0; } }

  /* ══════════════════════════════════════════════════════════
     FULLSCREEN LIVE VIEWER
     ══════════════════════════════════════════════════════════ */
  .m-viewer[hidden] { display: none !important; }
  .m-viewer {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1000;
    background: var(--m-bg); transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .m-viewer.is-open { transform: none; }
  .m-viewer__bar {
    flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    background: var(--m-bg-2); border-bottom: 1px solid var(--m-line-soft);
  }
  .m-viewer__back.ds-cta--frame { flex: 0 0 auto; padding: 10px 14px; font-size: 0.72rem; color: var(--m-cream); }
  .m-viewer__title { flex: 1 1 auto; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-viewer__num { font-family: var(--font-mono); font-size: 0.64rem; color: var(--m-mut); }
  .m-viewer__frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #fff; }
  body.m-viewer-open { overflow: hidden; }

  /* body texts — thin */
  .m-hero__sub, .m-statement__body, .m-contact__body, .ritem__desc { font-weight: var(--m-w-thin); }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .m-viewer { transition: none; }
    .m-row:active .m-row__media { transform: none; }
    .m-bottomnav.is-nudge .m-bottomnav__btn--work svg,
    .m-bottomnav.is-nudge .m-bottomnav__btn span,
    .m-bottomnav.is-nudge .m-nudge { animation: none; }
    .m-bottomnav.is-nudge .m-bottomnav__btn--work svg { position: static; width: 34px; height: 34px; }
    .m-bottomnav.is-nudge .m-nudge { opacity: 1; transform: translateX(-50%); }
  }
}
