/* ===== Renderbox motion layer (preview) ===== */
body { animation: mxPage .6s ease both; }
body.mx-leave { opacity: 0; transition: opacity .22s ease; }
@keyframes mxPage { from { opacity: 0; } to { opacity: 1; } }

/* hero film */
.mx-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; margin-top: -84px; padding: 140px 0 clamp(48px,8vh,96px); }
.mx-hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: mxZoom 14s ease-out forwards; }
.mx-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.86) 0%, rgba(8,8,8,.55) 38%, rgba(8,8,8,.05) 70%), linear-gradient(0deg, rgba(8,8,8,.75), transparent 45%); }
.mx-hero__body { position: relative; z-index: 2; width: 100%; will-change: transform, opacity; }
.mx-hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, 7.4vw, 112px); line-height: .98; letter-spacing: -.035em; color: #fff; margin: 0 0 26px; }
.mx-hero__title em { font-style: normal; color: var(--orange); }
.mx-line { display: block; overflow: hidden; padding-bottom: .06em; }
.mx-line > span { display: inline-block; transform: translateY(105%); animation: mxRise 1.1s cubic-bezier(.2,.7,.1,1) forwards; animation-delay: var(--d); }
.mx-up { opacity: 0; transform: translateY(18px); animation: mxUp .9s cubic-bezier(.2,.7,.1,1) forwards; animation-delay: var(--d); }
.mx-hero__sub { max-width: 46ch; color: rgba(255,255,255,.78); font-size: clamp(15px,1.25vw,17px); line-height: 1.75; margin: 0 0 30px; }
.mx-hero__cap { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0; }
.mx-cap-m { display: none; }
.mx-hero__pause { position: absolute; right: var(--gutter); top: 104px; z-index: 3; background: rgba(10,10,10,.55); color: #fff; border: 1px solid rgba(255,255,255,.25); font: 500 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; min-height: 40px; cursor: pointer; }
@keyframes mxRise { to { transform: none; } }
@keyframes mxUp { to { opacity: 1; transform: none; } }
@keyframes mxZoom { to { transform: scale(1); } }

/* pinned scroll stories (shell, launch) */
.mx-pin { position: relative; background: var(--bg-2); border-top: 1px solid var(--hairline); }
.mx-shell { height: 300vh; }
.mx-launch { height: 440vh; }
.mx-pin__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 70px; }
.mx-shell__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto); gap: clamp(32px,6vw,96px); align-items: center; width: 100%; }
.mx-shell__frame { position: relative; height: min(76svh, 760px); aspect-ratio: 9/16; border: 1px solid var(--hairline-2); background: #000; overflow: hidden; }
.mx-shell__frame canvas { width: 100%; height: 100%; display: block; }
.mx-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.5); padding: 5px 9px; transition: opacity .4s; z-index: 9; }
.mx-steps { position: relative; min-height: 270px; margin-top: 22px; }
.mx-step { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.mx-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mx-step > span { font-size: 12px; color: var(--orange); letter-spacing: .12em; }
.mx-step h2 { font: 300 clamp(32px,4vw,58px)/1.04 var(--font-display); letter-spacing: -.03em; color: #fff; margin: 12px 0 16px; }
.mx-step p { color: var(--text-dim); max-width: 40ch; line-height: 1.8; margin: 0 0 18px; }
.mx-progress { width: 200px; height: 2px; background: var(--hairline-2); margin-top: 18px; }
.mx-progress i { display: block; height: 100%; width: 0; background: var(--orange); }
.kx-cs { display: inline-block; font-size: 13px; color: var(--white); border-bottom: 1px solid var(--orange); padding-bottom: 3px; }

/* launch story stage */
.mx-launch__grid { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.5fr); gap: clamp(28px,4vw,72px); align-items: center; width: 100%; }
.mx-stage { position: relative; aspect-ratio: 16/10; width: min(100%, calc(74svh * 1.6)); margin-left: auto; }
.mx-layer { position: absolute; margin: 0; overflow: hidden; border: 1px solid var(--hairline-2); background: #111; box-shadow: 0 30px 70px rgba(0,0,0,.6); opacity: 0; transform: translateY(46px) scale(.94); transition: opacity .7s var(--ease), transform .9s cubic-bezier(.2,.7,.1,1); }
.mx-layer.is-in { opacity: 1; transform: none; }
.mx-layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mx-layer figcaption { position: absolute; left: 8px; top: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #fff; background: rgba(10,10,10,.78); padding: 5px 8px; transition: background .4s, color .4s; }
.mx-layer.is-now figcaption { background: var(--orange); color: #0A0A0A; }
.l-main { left: 0; top: 7%; width: 74%; aspect-ratio: 16/9; z-index: 1; }
.l-broch { left: 6%; bottom: 3%; width: 38%; aspect-ratio: 1300/1005; z-index: 2; }
.l-phone { right: 5%; bottom: 4%; width: 15%; aspect-ratio: 390/760; z-index: 4; border-radius: 16px; border: 5px solid #1c1c1c; }
.l-phone figcaption { top: auto; bottom: 8px; left: 4px; right: 4px; text-align: center; padding: 4px 2px; font-size: 9px; letter-spacing: .04em; }
.l-banner { right: 0; top: 0; width: 36%; aspect-ratio: 16/9; z-index: 3; }
.l-story { left: 48%; bottom: 6%; width: 12%; aspect-ratio: 9/16; z-index: 3; }
.l-story2 { left: 61.5%; bottom: 10%; width: 12%; aspect-ratio: 9/16; z-index: 3; transition-delay: .12s; }

/* horizontal work rail */
.mx-rail { position: relative; background: var(--bg); border-top: 1px solid var(--hairline); }
.mx-rail__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px,3vh,34px); overflow: hidden; padding-top: 84px; }
.mx-rail__head { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.mx-rail__count { font: 300 14px var(--font-display); color: var(--text-dim); letter-spacing: .08em; white-space: nowrap; }
.mx-rail__count b { color: #fff; font-weight: 400; }
.mx-rail__view { overflow: hidden; }
.mx-rail__track { display: flex; align-items: flex-start; gap: clamp(14px,2vw,28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.mx-rail figure { margin: 0; flex: none; }
.mx-rail figure a { display: block; overflow: hidden; border: 1px solid var(--hairline-2); }
.mx-rail img { height: min(56svh, 600px); width: auto; max-width: none; display: block; transition: transform .9s var(--ease); }
.mx-rail figure a:hover img { transform: scale(1.03); }
.mx-rail figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 13px; color: #fff; }
.mx-rail figcaption span { color: var(--text-dim); font-size: 12px; }
.mx-rail__end { flex: none; width: min(380px, 80vw); height: min(56svh, 600px); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-left: clamp(8px,2vw,32px); }
.mx-rail__end h3 { font: 300 clamp(28px,3vw,42px)/1.08 var(--font-display); letter-spacing: -.02em; color: #fff; margin: 0; }
.mx-rail__end p { color: var(--text-dim); margin: 0; line-height: 1.8; }
.mx-rail__bar { height: 2px; background: var(--hairline-2); margin-inline: var(--gutter); }
.mx-rail__bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.mx-rail--native { height: auto !important; }
.mx-rail--native .mx-rail__sticky { position: static; height: auto; padding-block: clamp(56px,8vw,96px); }
.mx-rail--native .mx-rail__view { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mx-rail--native .mx-rail__view::-webkit-scrollbar { display: none; }
.mx-rail--native .mx-rail__track { transform: none !important; }
.mx-rail--native figure, .mx-rail--native .mx-rail__end { scroll-snap-align: center; }
.mx-rail--native .mx-rail__bar, .mx-rail--native .mx-rail__count { display: none; }

/* renderings wipe in */
.mx-wipe { clip-path: inset(0 0 100% 0); transform: scale(1.06); transition: clip-path 1.1s cubic-bezier(.2,.7,.1,1), transform 1.4s cubic-bezier(.2,.7,.1,1); }
.mx-wipe.is-shown { clip-path: inset(0 0 0 0); transform: none; }

.mx-chip { position: fixed; right: 16px; bottom: 16px; z-index: 950; display: flex; gap: 10px; align-items: center; background: #141414; border: 1px solid #FA4C06; color: #fff; font: 500 12px var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; min-height: 44px; }
.mx-chip a { color: #FA4C06; }

@media (max-width: 860px) {
  .mx-hero { margin-top: -70px; padding-top: 120px; }
  .mx-hero__shade { background: linear-gradient(0deg, rgba(8,8,8,.9) 15%, rgba(8,8,8,.35) 70%, rgba(8,8,8,.2)); }
  .mx-hero__cap { right: auto; left: var(--gutter); top: 92px; bottom: auto; font-size: 10px; }
  .mx-hero__pause { top: 84px; }
  .mx-pin__sticky { padding-top: 64px; align-items: flex-start; }
  .mx-shell__grid, .mx-launch__grid { grid-template-columns: 1fr; gap: 16px; }
  .mx-shell__frame { height: 52svh; margin: 0 auto; order: -1; }
  .mx-stage { order: -1; aspect-ratio: 1/1.04; width: min(100%, calc(52svh / 1.04)); margin: 0 auto; }
  .mx-steps { min-height: 200px; margin-top: 6px; }
  .mx-step h2 { font-size: 28px; margin: 6px 0 10px; }
  .mx-step p { font-size: 14px; line-height: 1.65; margin-bottom: 10px; }
  .mx-pin .eyebrow { display: none; }
  .mx-progress { margin-top: 8px; }
  .l-main { top: 0; width: 100%; }
  .l-broch { left: 0; bottom: 0; width: 54%; }
  .l-phone { right: 0; bottom: 0; width: 22%; border-radius: 10px; border-width: 3px; }
  .l-banner { top: 31%; width: 48%; }
  .l-story { left: 56.5%; bottom: 0; width: 19%; }
  .l-story2 { display: none; }
  .mx-layer figcaption { font-size: 8px; padding: 3px 5px; left: 4px; top: 4px; }
  .l-phone figcaption { top: auto; bottom: 4px; left: 2px; right: 2px; font-size: 7px; }
  .mx-rail img { height: 58vw; width: auto; }
  .mx-rail__end { height: auto; width: 78vw; padding: 24px 0; }
}
@media (max-width: 860px) and (orientation: portrait) { .mx-cap-m { display: inline; } .mx-cap-d { display: none; } }

/* reduced motion: everything readable without scroll effects */
.mx-static body { animation: none; }
.mx-static .mx-hero__vid { animation: none; transform: none; }
.mx-static .mx-line > span, .mx-static .mx-up { animation: none; transform: none; opacity: 1; }
.mx-static .mx-pin { height: auto; }
.mx-static .mx-pin__sticky { position: static; height: auto; padding-block: 72px; }
.mx-static .mx-steps { min-height: 0; display: grid; gap: 28px; }
.mx-static .mx-step { position: static; opacity: 1; transform: none; pointer-events: auto; }
.mx-static .mx-layer { transition: none; }
.mx-static .mx-progress, .mx-static .mx-hint { display: none; }
.mx-static .mx-wipe { clip-path: none; transform: none; transition: none; }
