/* ============================================================================
   Sea Cross V2: Operations
   One order moving through a port call. The page is a run from shore to water:
   pre-light at the desk, a quiet close look at the order, a working quay in
   daylight, the side of a vessel, then dusk.

   Its own grammar: an orange order tag the camera follows; places that arrive
   on a diagonal (shore at the top left, water at the bottom right); the world
   moves past the tag rather than the tag moving through a diagram.
   Signal orange is the order itself and the one action at the end.

   Build order: the static layouts below are the page (phones, reduced motion,
   no JS). operations.js adds .ops-live on wide, tall screens with motion
   (pinned places, the travelling tag) and .ops-flow on phones with motion
   (short entry movements, no pinning).
   ========================================================================== */

.page-operations {
  --ops-ink: #151b21;
  --ops-prelight: #18212a;     /* before first light                           */
  --ops-prelight-2: #10161b;
  --ops-on-ink: #eceae4;
  --ops-on-ink-2: #b6bdbf;     /* secondary type on ink (8.6:1)                */
  --ops-fog: #dee1dd;          /* morning fog: the quiet stop                  */
  --ops-quay: #d5d2ca;         /* quay concrete in daylight                    */
  --ops-steel: #4b565e;        /* secondary type on fog and concrete (6.2:1)   */
  --ops-tag: var(--sx-signal);
  --ops-tag-ink: #151b21;
  --ops-hair: rgba(21, 27, 33, .18);
  --ops-hair-dark: rgba(236, 234, 228, .16);
  --ops-print: saturate(.82) contrast(1.03);
  background: var(--ops-ink);
  color: var(--ops-on-ink);
}
html:has(.page-operations) { background: var(--ops-ink); }
.page-operations main { overflow-x: clip; }

/* ------------------------------------------------------------- shared marks */
.ops-crumbs { font-size: .84rem; color: var(--ops-on-ink-2); }
.ops-crumbs ol { display: flex; gap: .5rem; }
.ops-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.ops-crumbs a { text-decoration: none; }
.ops-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ops-title {
  font-size: clamp(2.7rem, 1.1rem + 4.6vw, 6.2rem); font-weight: 700; font-stretch: 112%;
  letter-spacing: -.045em; line-height: .9; text-wrap: balance; max-width: 12ch;
}
.ops-lede { max-width: 40ch; font-size: var(--sx-t-lede); line-height: 1.45; color: var(--ops-on-ink-2); }
.ops-h {
  font-size: clamp(2rem, 1rem + 2.7vw, 4rem); font-weight: 700; font-stretch: 112%;
  letter-spacing: -.04em; line-height: .94; text-wrap: balance;
}
/* The place name: mono, led by a short rule on the page's diagonal (shore to water). */
.ops-where {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem;
  font-family: var(--sx-mono); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.ops-where::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; transform: rotate(28deg); }
.ops-points { margin-top: 1.6rem; display: grid; max-width: 34ch; }
.ops-points li { padding-block: .7rem; border-top: 1px solid var(--ops-hair-dark); line-height: 1.4; }
.ops-points li:last-child { border-bottom: 1px solid var(--ops-hair-dark); }

/* ================================================================ THE TAG
   The order's identification: a stiff signal-orange tag, chamfered top corners,
   an ink header band, the fields a requisition carries, and the marks it collects
   as it is handled. Printed, not a form: the fields stay unfilled on purpose. */
.ops-tag { width: 15rem; color: var(--ops-tag-ink); filter: drop-shadow(0 14px 14px rgba(8, 12, 16, .34)) drop-shadow(0 2px 2px rgba(8, 12, 16, .3)); }
.ops-tag__body {
  position: relative; padding: 0 1.05rem 1.05rem;
  background: var(--ops-tag);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
}
/* Two strapping slots, punched through the header band. */
.ops-tag__body::before {
  content: ""; position: absolute; top: 9px; left: 50%; width: 46px; height: 6px; margin-left: -23px;
  background: linear-gradient(90deg, #0a0e12 0 16px, transparent 16px 30px, #0a0e12 30px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ops-tag__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  margin-inline: -1.05rem; padding: 1.55rem 1.05rem .6rem;
  background: var(--ops-tag-ink); color: var(--ops-tag);
  font-size: .8rem; font-weight: 800; font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
}
.ops-tag__head { flex-wrap: wrap; row-gap: .3rem; }
.ops-tag__head span + span { white-space: nowrap; font-family: var(--sx-mono); font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-transform: none; color: rgba(218, 94, 38, .82); }
/* What a requisition carries, printed as a spec block, not as boxes to fill in. */
.ops-tag__fields { margin: .9rem 0 0; padding-bottom: .8rem; border-bottom: 2px solid var(--ops-tag-ink); display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .6rem; }
.ops-tag__fields div:nth-child(3) { grid-column: 1 / -1; order: 5; }
.ops-tag__fields dt { font-family: var(--sx-mono); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ops-tag__fields dt::before { content: ""; display: inline-block; width: .38rem; height: .38rem; margin-right: .4rem; background: currentColor; vertical-align: .08em; }
.ops-tag__fields dd { display: none; }
.ops-tag__marks { margin-top: .9rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; min-height: 4.6rem; align-content: start; }
.ops-mark {
  justify-self: start; padding: .28rem .4rem .24rem;
  border: 2px solid currentColor; color: rgba(21, 27, 33, .88);
  font-family: var(--sx-mono); font-size: .6rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15;
  opacity: 0; transform: rotate(-3deg);
}
.ops-mark[data-mark="2"] { transform: rotate(2deg); }
.ops-mark[data-mark="3"] { grid-column: 1 / -1; transform: rotate(-1.5deg); }
.ops-mark[data-mark="4"] { transform: rotate(-4deg); border-width: 3px; font-weight: 500; }
.ops-tag[data-marks="1"] .ops-mark:nth-child(-n+1),
.ops-tag[data-marks="2"] .ops-mark:nth-child(-n+2),
.ops-tag[data-marks="3"] .ops-mark:nth-child(-n+3),
.ops-tag[data-marks="4"] .ops-mark:nth-child(-n+4) { opacity: 1; }

/* =============================================================== REQUEST */
.ops-request { --ground: linear-gradient(180deg, var(--ops-prelight) 0%, var(--ops-prelight-2) 85%); background: var(--ground); color: var(--ops-on-ink); }
.ops-request__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); align-items: start;
  padding-block: calc(var(--header-h) + clamp(1.5rem, 4vh, 3rem)) clamp(4rem, 9vh, 6rem);
}
.ops-crumbs { grid-column: 1 / -1; }
.ops-request .ops-title { grid-column: 1 / span 8; margin-top: clamp(1.5rem, 5vh, 3.5rem); }
.ops-request .ops-lede { grid-column: 1 / span 5; margin-top: 1.4rem; }
.ops-request__beat { grid-column: 1 / span 5; margin-top: clamp(3rem, 8vh, 5rem); }
.ops-request__beat .ops-where { color: var(--sx-rust-lt); }
.ops-request__slot { grid-column: 9 / span 4; grid-row: 2 / span 3; align-self: center; justify-self: center; }

/* ================================================================= QUOTE */
.ops-quote { --ground: var(--ops-fog); background: var(--ground); color: var(--sx-ink); }
.ops-quote .ops-points li { border-color: var(--ops-hair); }
.ops-quote .ops-where { color: var(--sx-rust); }
.ops-quote__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); align-items: center;
  padding-block: clamp(5rem, 12vh, 8rem);
}
.ops-quote__beat { grid-column: 1 / span 5; }
.ops-quote__slot { grid-column: 7 / span 6; justify-self: center; }
.ops-quote__slot .ops-tag { width: 21rem; font-size: 1.4em; }

/* =============================================================== PREPARE */
.ops-prep { --ground: var(--ops-quay); background: var(--ground); color: var(--sx-ink); }
.ops-prep .ops-where { color: var(--sx-rust); }
.ops-prep__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap);
  padding-block: clamp(5rem, 12vh, 8rem) clamp(3rem, 7vh, 5rem);
}
.ops-prep__head { grid-column: 1 / span 6; }
.ops-lanes { grid-column: 1 / span 4; margin-top: 2rem; display: grid; align-content: start; }
.ops-lane {
  padding-block: .85rem; border-top: 2px solid var(--sx-ink);
  font-size: clamp(1.1rem, .95rem + .4vw, 1.35rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.25;
}
.ops-frags { grid-column: 5 / -1; margin-top: 2rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sx-gap); align-items: start; }
.ops-frag { margin: 0; position: relative; }
.ops-frag img { width: 100%; height: auto; filter: var(--ops-print); background: #bdb9b0; }
.ops-frag--wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.ops-frag--print img { aspect-ratio: 410 / 300; object-fit: cover; box-shadow: 0 0 0 5px #f1eee8; }
.ops-frag figcaption { margin-top: .65rem; font-family: var(--sx-mono); font-size: .7rem; color: var(--ops-steel); }
.ops-frag[data-frag="1"] { grid-column: 1 / span 4; }
.ops-frag[data-frag="2"] { grid-column: 5 / span 2; max-width: 260px; }
.ops-frag[data-frag="3"] { grid-column: 1 / span 2; max-width: 230px; }
.ops-frag[data-frag="4"] { grid-column: 3 / span 4; }
.ops-frag[data-frag="5"] { grid-column: 1 / span 3; max-width: 250px; }
.ops-frag[data-frag="6"] { grid-column: 4 / span 3; max-width: 240px; }
.ops-prep__slot { display: none; }
/* Static order: the heading and its points first, then the place's photograph. */
.ops-prep .ops-stage, .ops-deliver .ops-stage { display: flex; flex-direction: column; }
.ops-prep__quay { order: 2; }
.ops-deliver__frame { order: 2; max-height: 140vh; }
.ops-prep__quay img { width: 100%; height: min(70vh, 44rem); object-fit: cover; object-position: 50% 60%; }

/* =============================================================== DELIVER */
.ops-deliver { --ground: var(--ops-ink); background: var(--ground); color: var(--ops-on-ink); }
.ops-deliver .ops-where { color: var(--sx-rust-lt); }
.ops-deliver__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); align-items: start;
  padding-block: clamp(5rem, 12vh, 8rem);
}
.ops-deliver__frame { position: relative; overflow: hidden; }
.ops-deliver__frame img { width: 100%; height: auto; }
.ops-deliver__frame:not(:where(.ops-live *, .ops-flow *)) img { max-height: 140vh; object-fit: cover; object-position: 50% 30%; }
.ops-deliver__beat { grid-column: 1 / span 6; }
.ops-deliver__at, .ops-deliver__signed { margin-top: 1.4rem; max-width: 30ch; font-size: var(--sx-t-lede); line-height: 1.4; color: var(--ops-on-ink-2); }
.ops-deliver__signed { grid-column: 1 / span 6; }
.ops-deliver__slot { grid-column: 8 / span 4; grid-row: 1 / span 2; }

/* ================================================================ ENDING */
.ops-end { position: relative; z-index: 6; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; background: #1c232a; color: var(--ops-on-ink); overflow: clip; }
.ops-end__film { position: absolute; inset: 0; z-index: -1; }
.ops-end__still, .ops-end__still img, .ops-end__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.ops-end__still img, .ops-end__video { object-fit: cover; object-position: 50% 40%; }
.ops-end__video { opacity: 0; transition: opacity .4s linear; }
.ops-end__video.is-ready { opacity: 1; }
/* A scrim only where the type sits: lower left, where the quay is darkest. */
.ops-end__film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 19, 24, .9) 0%, rgba(14, 19, 24, .66) 34%, rgba(14, 19, 24, 0) 64%); }
.ops-end__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sx-gap); row-gap: 2.5rem; align-items: end;
  padding-block: clamp(10rem, 30vh, 18rem) clamp(3rem, 7vh, 4.5rem);
}
.ops-end__copy { grid-column: 1 / span 6; }
.ops-end__title { max-width: 14ch; }
.ops-end__lede { margin-top: 1.3rem; max-width: 36ch; font-size: var(--sx-t-lede); line-height: 1.45; color: var(--ops-on-ink-2); }
.ops-end__cta { margin-top: 2rem; }
.ops-end__areas { grid-column: 8 / -1; font-size: .92rem; }
.ops-end__areas p { color: var(--ops-on-ink-2); font-size: .82rem; margin-bottom: .5rem; }
.ops-end__areas ul { display: grid; }
.ops-end__areas a { display: block; padding-block: .55rem; border-top: 1px solid var(--ops-hair-dark); text-decoration: none; font-weight: 600; }
.ops-end__areas a:hover { color: var(--sx-teal-lt); }
.ops-end__note { grid-column: 1 / -1; max-width: 80ch; font-size: .76rem; line-height: 1.5; color: var(--ops-on-ink-2); }
.ops-end :focus-visible, .ops-request :focus-visible, .ops-deliver :focus-visible { outline-color: var(--sx-teal-lt); }

.ops-traveller, .ops-occluder { display: none; }

/* ====================================================== WIDE, TALL, MOTION
   Each place is a pinned stage. The next place overlaps the last 100vh of the one
   before and comes in over it on the diagonal. operations.js writes, per place:
   --e (arriving), --a (its own run), --c (being covered by the next). */
/* The ground belongs to the stage, so the diagonal edge shows the place before it, not this section's own colour. */
.ops-live .ops-place { position: relative; height: var(--len); background: none; }
.ops-live .ops-place + .ops-place, .ops-live .ops-end { margin-top: -100vh; }
.ops-live .ops-request { --len: 300vh; z-index: 1; }
.ops-live .ops-quote { --len: 270vh; z-index: 2; }
.ops-live .ops-prep { --len: 520vh; z-index: 3; }
.ops-live .ops-deliver { --len: 600vh; z-index: 4; }
.ops-live .ops-stage {
  position: sticky; top: 0; height: 100vh; overflow: clip;
  background: var(--ground);
  /* Arriving: the leading edge is a diagonal, high at the water side. */
  clip-path: polygon(0 calc((1 - var(--e, 1)) * 34vh), 100% 0, 100% 100%, 0 100%);
}
.ops-live .ops-place > .ops-stage > .sx-wrap { transform: translate(calc((1 - var(--e, 1)) * 7vw - var(--c, 0) * 5vw), calc(var(--c, 0) * -7vh)); }
.ops-live .ops-slot { display: none; }
.ops-live .ops-traveller {
  display: block; position: fixed; left: 0; top: 0; z-index: 7; pointer-events: none;
  will-change: transform;
}
.ops-live .ops-traveller .ops-tag { width: 15rem; }
.ops-live .ops-traveller .ops-mark { transition: opacity .12s linear, transform .22s cubic-bezier(.3, 0, .2, 1); }
.ops-live .ops-traveller .ops-mark:not(.is-on) { opacity: 0; transform: scale(1.35) rotate(-8deg); }
.ops-live .ops-traveller .ops-mark.is-on { opacity: 1; }

/* Request: the page opens before first light; the beat rises in, then the world moves off up-left. */
.ops-live .ops-request__grid { position: relative; min-height: 100vh; align-content: center; padding-block: calc(var(--header-h) + 1rem) 12vh; }
.ops-live .ops-request .ops-crumbs { position: absolute; top: calc(var(--header-h) + 1.25rem); left: 0; }
.ops-live .ops-request .ops-title { margin-top: 0; }
/* The requisition itself arrives where the title was, as the title moves off up the shore. */
.ops-live .ops-request__beat {
  position: absolute; left: 0; bottom: 9vh; width: min(30rem, 38vw); margin: 0;
  --t: clamp(0, (var(--a) - .1) / .3, 1);
  opacity: var(--t); transform: translate(calc((1 - var(--t)) * 4vw), calc((1 - var(--t)) * 6vh));
}
.ops-live .ops-request .ops-crumbs, .ops-live .ops-request .ops-title, .ops-live .ops-request .ops-lede {
  --t: clamp(0, (var(--a) - .05) / .4, 1);
  transform: translate(calc(var(--t) * -5vw), calc(var(--t) * -22vh)); opacity: calc(1 - var(--t) * .86);
}

/* Quote: the quiet stop. */
.ops-live .ops-quote__grid { min-height: 100vh; padding-block: calc(var(--header-h) + 1rem) 2rem; }
.ops-live .ops-quote__beat { grid-column: 1 / span 5; }
.ops-live .ops-quote .ops-points li {
  --t: clamp(0, (var(--a) - .08 - var(--i) * .1) / .25, 1);
  opacity: calc(.15 + var(--t) * .85);
}
.ops-live .ops-quote .ops-points li:nth-child(1) { --i: 0; }
.ops-live .ops-quote .ops-points li:nth-child(2) { --i: 1; }
.ops-live .ops-quote .ops-points li:nth-child(3) { --i: 2; }

/* Prepare: the full stage is one composition that reorganises. Fragments are placed by operations.js. */
.ops-live .ops-prep__grid { position: absolute; inset: 0; display: block; padding: 0; max-width: none; }
.ops-live .ops-prep__head { position: absolute; left: var(--sx-gutter); top: calc(var(--header-h) + 3vh); z-index: 3; max-width: 38rem; }
.ops-live .ops-lanes { position: absolute; left: var(--sx-gutter); top: 0; width: min(26rem, 28vw); margin: 0; display: block; z-index: 3; }
.ops-live .ops-lane { position: absolute; left: 0; width: 100%; top: var(--y, 50vh); transform: translateY(-50%); opacity: var(--o, 0); }
.ops-live .ops-frags { position: absolute; inset: 0; margin: 0; display: block; z-index: 2; }
.ops-live .ops-frag { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; }
.ops-live .ops-frag--wide { width: 38vw; }
.ops-live .ops-frag[data-frag="4"] { width: 30vw; }
.ops-live .ops-frag--print { width: min(260px, 19vw); }
.ops-live .ops-frag[data-frag="3"] { width: min(230px, 17vw); }
.ops-live .ops-frag img { box-shadow: 0 30px 40px -24px rgba(21, 27, 33, .6); }
/* On the route the Sea Cross prints carry their mark on the image itself, like a label on a load. */
.ops-live .ops-frag--print img { box-shadow: 0 30px 40px -24px rgba(21, 27, 33, .6); }
.ops-live .ops-frag figcaption {
  position: absolute; left: 0; bottom: 0; margin: 0; padding: .3rem .5rem .28rem;
  background: rgba(17, 22, 27, .9); color: #e4e2dc; font-size: .62rem; letter-spacing: .02em;
}
/* The quay itself: first a diagonal strip at the water side, then the whole frame. */
.ops-live .ops-prep__quay { position: absolute; inset: 0; z-index: 1; clip-path: polygon(var(--qx, 100%) 100%, 100% var(--qy, 100%), 100% 100%); }
.ops-live .ops-prep__quay picture, .ops-live .ops-prep__quay img { width: 100%; height: 100%; }
.ops-live .ops-prep__quay img { object-fit: cover; object-position: 50% 55%; transform: scale(var(--qs, 1.12)); transform-origin: 70% 70%; }

/* Deliver: one tall photograph, travelled down. Placed by operations.js. */
.ops-live .ops-prep .ops-stage, .ops-live .ops-deliver .ops-stage { display: block; }
.ops-live .ops-deliver__frame { max-height: none; }
.ops-live .ops-deliver__frame { position: absolute; left: 0; top: 0; width: 120vw; overflow: visible; will-change: transform; }
.ops-live .ops-deliver__grid { position: absolute; inset: 0; display: block; padding: 0; max-width: none; z-index: 2; }
/* Type on the photograph sits on its own ink plate, never on a full-frame wash. */
.ops-live .ops-deliver__beat {
  position: absolute; left: var(--sx-gutter); bottom: 7vh; width: min(30rem, 36vw);
  padding: 1.6rem 1.8rem 1.7rem; background: rgba(17, 22, 27, .92);
  --t: clamp(0, (var(--a) - .2) / .08, 1);
  opacity: calc(1 - var(--t)); transform: translateY(calc(var(--t) * -4vh));
}
.ops-live .ops-deliver__beat .ops-h { font-size: clamp(2rem, 1rem + 2.2vw, 3.4rem); }
.ops-live .ops-deliver__signed {
  position: absolute; left: var(--sx-gutter); bottom: 7vh; margin: 0; width: min(24rem, 32vw);
  padding: 1.2rem 1.5rem; background: rgba(17, 22, 27, .92); color: var(--ops-on-ink);
  --t: clamp(0, (var(--a) - .7) / .06, 1);
  opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 3vh));
}

.ops-live .ops-occluder {
  display: block; position: fixed; left: 0; top: 0; z-index: 8; width: 120vw; pointer-events: none;
  opacity: 0; will-change: transform;
  clip-path: polygon(14.37% 52.49%, 16.88% 51.45%, 34.38% 51.84%, 62.5% 52.19%, 81.25% 52.49%, 83.75% 52.92%, 83.12% 54.14%, 79.38% 55.44%, 76.25% 56.73%, 59.38% 56.82%, 28.12% 55.87%, 16.25% 54.14%, 14.37% 53.27%);
}
.ops-live .ops-occluder img { display: block; width: 100%; height: auto; }

/* Ending: comes over the vessel on the same diagonal, then holds while the light goes. */
.ops-live .ops-end { display: block; height: 260vh; overflow: visible; clip-path: polygon(0 calc((1 - var(--e, 1)) * 34vh), 100% 0, 100% 100%, 0 100%); }
.ops-live .ops-end__film { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ops-live .ops-end__grid {
  position: sticky; top: 0; height: 100vh; margin-top: -100vh; align-content: end;
  --t: clamp(0, (var(--q, 0) - .38) / .3, 1);
}
.ops-live .ops-end__grid > * { opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 5vh)); }
.ops-live .ops-end__note { opacity: calc(var(--t) * .9); }

/* ============================================================== PHONES ETC.
   Below the pinned layout: places stack, the tag sits in each place. */
@media (max-width: 899px) {
  .ops-request__grid, .ops-quote__grid, .ops-prep__grid, .ops-deliver__grid, .ops-end__grid { grid-template-columns: minmax(0, 1fr); }
  .ops-request__grid > *, .ops-quote__grid > *, .ops-prep__grid > *, .ops-deliver__grid > *, .ops-end__grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .ops-title { max-width: 11ch; }
  .ops-request__slot { justify-self: end; margin-top: 2.5rem; }
  .ops-request__slot .ops-tag { width: 13rem; transform: rotate(-2deg); }
  .ops-request__beat { margin-top: 2rem; }
  .ops-quote__grid { padding-block: 4rem; }
  .ops-quote__slot { justify-self: start; margin-top: 2.5rem; }
  .ops-quote__slot .ops-tag { width: min(19rem, 100%); font-size: 1.25em; }
  .ops-frags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .ops-frag { grid-column: auto !important; max-width: none !important; }
  .ops-frag--wide { grid-column: 1 / -1 !important; }
  .ops-frag figcaption { font-size: .66rem; }
  .ops-prep__quay img { height: 56vh; }
  .ops-deliver__grid { padding-block: 3.5rem 2.5rem; }
  .ops-deliver__signed { margin-top: 0; }
  .ops-deliver__slot { margin-top: 2rem; justify-self: end; }
  .ops-deliver__slot .ops-tag { width: 13rem; transform: rotate(2deg); }
  .ops-end__grid { padding-top: 45vh; }
  .ops-end__film::after { background: linear-gradient(0deg, rgba(14, 19, 24, .94) 0%, rgba(14, 19, 24, .8) 45%, rgba(14, 19, 24, 0) 75%); }
  .ops-end__cta { width: 100%; }
}
/* Phones: each place reads heading first, then its photographs. */
@media (max-width: 899px) {
  .ops-prep .ops-stage { display: flex; flex-direction: column; }
  .ops-prep__quay { order: 2; }
  .ops-deliver .ops-stage, .ops-deliver__grid { display: contents; }
  .ops-deliver { display: flex; flex-direction: column; padding-block: 3.5rem 2.5rem; }
  .ops-deliver__beat { order: 0; padding-inline: var(--sx-gutter); }
  .ops-deliver__frame { order: 1; margin-top: 2rem; }
  .ops-deliver__signed { order: 2; margin: 1.6rem var(--sx-gutter) 0; }
  .ops-deliver__slot { order: 3; margin: 2rem var(--sx-gutter) 0; align-self: flex-end; }
}

/* Phones with motion: short, directional entries. operations.js writes --v (0 arriving, 1 settled). */
@media (prefers-reduced-motion: no-preference) {
  .ops-flow [data-ops-view] { --v: 1; }
  .ops-flow .ops-place > .ops-stage, .ops-flow .ops-end { clip-path: polygon(0 calc((1 - var(--v)) * 16vh), 100% 0, 100% 100%, 0 100%); }
  .ops-flow .ops-deliver__frame { clip-path: polygon(0 calc((1 - var(--v)) * 16vh), 100% 0, 100% 100%, 0 100%); }
  .ops-flow .ops-frag:nth-child(odd) { transform: translateX(calc((1 - var(--v)) * -40vw)); }
  .ops-flow .ops-frag:nth-child(even) { transform: translateX(calc((1 - var(--v)) * 40vw)); }
  .ops-flow .ops-slot .ops-tag { translate: calc((1 - var(--v)) * 30vw) calc((1 - var(--v)) * -6vh); }
  /* The descent, phone size: the camera is a little closer in and travels from the deck down to the launch. */
  .ops-flow .ops-deliver__frame img { transform: scale(1.35); transform-origin: 50% calc(var(--d, .5) * 100%); }
}
