/* Additions for the 19-slide presentation (Interac_Presentation_Outline_v4.docx).
   Loaded after deck.css; everything here uses its tokens. deck.css itself is unchanged. */

/* placeholders on dark surfaces */
.card.dark .ph, .bar-dark .ph { color: var(--paper) !important; }

/* date and place under the title: quieter than body copy */
.lead.date { font-size: calc(var(--t-body) * .7); }

/* intro: a wireframe box, outline only, with the logo on its lid. The box is built as a flat net (base in the
   screen plane, walls hinged on its edges, lid hinged on the back wall) and seen from straight above in perspective, so the base sits
   inside the rim. On next the lid opens, the walls fall flat and the base grows into the deck frame. Going back plays it in reverse. */
.slide.intro { --bw: 230px; --bd: 122px; --bh: 84px; }
.intro-scene { position: relative; height: 320px; overflow: hidden; perspective: 440px; }
.intro-view { position: absolute; inset: 0; transform-style: preserve-3d; }
.intro-box { position: absolute; left: calc(50% - var(--bw) / 2); right: calc(50% - var(--bw) / 2); top: calc(50% - var(--bd) / 2); bottom: calc(50% - var(--bd) / 2);
  color: var(--frame); transform-style: preserve-3d; }
/* every face is an exact rectangle with its 1px outline drawn inside it. Neighbouring faces overlap by that 1px and
   hinge on the middle of the shared line, so edges meet at the corners with no gaps or doubled lines */
.intro-box .wall, .intro-box .lid { position: absolute; transform-style: preserve-3d; }
.intro-box::before, .intro-box .wall::before, .intro-box .lid::before { content: ""; position: absolute; inset: 0; border: 1px solid currentColor; }
.intro-box .wall.l { right: calc(100% - 1px); top: 0; bottom: 0; width: var(--bh); transform-origin: calc(100% - .5px) 50%; transform: rotateY(90deg); }
.intro-box .wall.r { left: calc(100% - 1px); top: 0; bottom: 0; width: var(--bh); transform-origin: .5px 50%; transform: rotateY(-90deg); }
.intro-box .wall.b { top: calc(100% - 1px); left: 0; right: 0; height: var(--bh); transform-origin: 50% .5px; transform: rotateX(90deg); }
.intro-box .wall.t { bottom: calc(100% - 1px); left: 0; right: 0; height: var(--bh); transform-origin: 50% calc(100% - .5px); transform: rotateX(-90deg); }
.intro-box .lid { bottom: calc(100% - 1px); left: 0; right: 0; height: var(--bd); transform-origin: 50% calc(100% - .5px); transform: rotateX(-90deg); display: grid; place-items: center; }
.intro-box .lid img { width: 26%; height: auto; position: relative; top: -5px; transform: scaleY(-1); }

/* slides that are one line of type */
.one-line .inner { align-items: center; text-align: center; }
.one-line h2 { max-width: 140rem; }

/* slide 3: service icon cards floating around the headline; the far ones sit blurred in the back */
.svc-field { --u: 5px; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.svc { --s: calc(var(--u) * var(--k, 13) * .63); position: absolute; left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  animation: svc-float var(--d, 12s) ease-in-out var(--dl, 0s) infinite alternate; }
.svc span { position: absolute; inset: 0; background: #fff; opacity: .5; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.svc.far { filter: blur(calc(var(--u) * var(--b))); opacity: var(--o); }
@keyframes svc-float { from { transform: translate3d(calc(var(--u) * -.3), calc(var(--u) * -1), 0) rotate(-2deg); } to { transform: translate3d(calc(var(--u) * .3), calc(var(--u) * 1), 0) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .svc { animation: none; } }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .slide[data-id="slice"] .inner { padding-top: 150px; padding-bottom: 150px; }
}
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .svc-field { --u: 1rem; }
  .box-rest .ico-grid { --i: 4rem; --tf: 1.6rem; }
  .box-list p .ico { width: 3.2rem; height: 3.2rem; margin-top: -.1rem; }
  .svc { left: var(--x); top: var(--y); }
}

/* film stills: a small tag in the corner */
.film-tag { position: absolute; left: 1.6rem; bottom: 1.6rem; display: inline-flex; align-items: center; gap: 1rem; padding: .7rem 1.8rem;
  background: var(--ink); color: var(--paper); border-radius: 25.6rem; font-size: 1.4rem; font-weight: 600; line-height: 1.2; letter-spacing: .2rem; text-transform: uppercase; }
.film-tag::before { content: ""; border-left: 1rem solid var(--accent); border-top: .6rem solid transparent; border-bottom: .6rem solid transparent; }
.pic-wrap.film-ph { display: grid; place-items: center; padding: 2.4rem 2.4rem 6.4rem; text-align: center; border: 1px solid var(--line-alt);
  background: repeating-linear-gradient(135deg, #e4ded1 0, #f8f6f0 1.4px, #f8f6f0 5px); }
.pic-cap { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.pic-cap .pic-wrap { flex: none; height: 36rem; }

/* the box: what Interac has used (lit) inside everything Cargo does (unlit) */
.box-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 6.4rem; padding: 3.2rem; border: .2rem dashed var(--line-alt); border-radius: .8rem; }
.box-rest { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.box-rest + .box-rest { position: relative; }
.box-rest + .box-rest::before { content: ""; position: absolute; left: -3.2rem; top: -3.2rem; bottom: -3.2rem; border-left: 1px solid var(--line-alt); }
.box-rest.have .box-list p, .box-rest.have .sm { color: var(--text); opacity: 1; }
.box-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; }
.box-list p { padding: 1.6rem 0; border-top: 1px dashed var(--line-alt); font-size: 2.4rem; font-weight: 600; line-height: 1.25; opacity: .5; }
/* the rest of the box: a 5 x 5 grid of service icons, named on hover */
.ico-grid { --i: 32px; --tf: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(var(--i) * .6) 0; justify-items: center; padding-top: calc(var(--i) * .4); border-top: 1px dashed var(--line-alt); }
.ico-grid span { position: relative; display: block; width: var(--i); height: var(--i); }
.ico-grid i { display: block; width: 100%; height: 100%; background: var(--text); opacity: .5; transition: opacity .2s ease; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ico-grid span:hover i { opacity: 1; }
.ico-grid span::after { content: attr(data-name); position: absolute; z-index: 2; left: 50%; bottom: calc(100% + var(--i) * .2); transform: translate(-50%, 4px); padding: .5em 1em; background: var(--text); color: var(--paper);
  border-radius: 4px; font-size: var(--tf); font-weight: 600; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.ico-grid span:hover::after { opacity: 1; transform: translate(-50%, 0); }
.box-list p:has(.ico) { display: flex; gap: 1.2rem; align-items: flex-start; }
.box-list .ico { flex: none; width: 32px; height: 32px; margin-top: -5px; background: var(--text); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }

/* the same box at the close: grown to fill, everything lit */
/* regular card look; the border is an SVG outline so it can draw itself shut, counterclockwise */
.box-fig.full { position: relative; grid-template-columns: 1fr; gap: 2rem; background: none; border: 1px solid transparent; }
.box-fig.full .box-list { grid-template-columns: repeat(4, 1fr); gap: 0 3.2rem; }
.box-fig.full .box-list p { display: flex; gap: 1.2rem; align-items: baseline; font-size: 2rem; opacity: 1; border-top: 1px solid var(--frame); }
.box-fig.full .box-list p::before { content: ""; flex: none; width: 1rem; height: 1rem; background: var(--accent); transform: rotate(45deg) translateY(-.1rem); }
.box-edge { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
.box-edge rect { x: .5px; y: .5px; width: calc(100% - 1px); height: calc(100% - 1px); rx: .8rem; fill: none; stroke: var(--frame); stroke-width: 1px; stroke-dasharray: 1 1; vector-effect: non-scaling-stroke; }
.slide.on .box-edge rect { animation: box-close 1.8s cubic-bezier(.45, 0, .2, 1) .35s both; }
@keyframes box-close { from { stroke-dashoffset: -1; } to { stroke-dashoffset: 0; } }

/* one job as a timeline */
.jobline { position: relative; display: grid; gap: 2rem; }
.jobline::before { content: ""; position: absolute; background: var(--text); }
.jobline .stp { position: relative; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.jobline .stp::before { content: ""; position: absolute; width: 1.4rem; height: 1.4rem; background: var(--accent); transform: rotate(45deg); }
.jobline .stp h4 { font-size: 2.4rem; }
.jobline .stp .sm { font-size: 1.8rem; line-height: 1.35; }
.jobline .stp.gap { padding: 1.6rem; background: #fcb6000d; border: .2rem dashed var(--accent); border-radius: .8rem; justify-content: center; }
.jobline .stp.gap::before { background: var(--page); border: .2rem solid var(--accent); }
.jobline .stp.done h4 { font-size: 2rem; }
.jobline .stp.done { justify-content: center; }

/* everyone at the table for one campaign */
.table-fig { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.seat { display: flex; flex-direction: column; gap: .4rem; align-items: center; justify-content: center; text-align: center; padding: 1.6rem 1.2rem; border: 1px solid var(--frame); border-radius: .8rem; min-width: 0; }
.seat.us { background: var(--accent); border-color: var(--accent); }
.seat h4 { font-size: 2.2rem; }
.seat .r { font-size: 1.4rem; font-weight: 600; letter-spacing: .2rem; text-transform: uppercase; color: var(--text); }

/* named seats */
.who { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.who p { font-size: 1.8rem; line-height: 1.25; }
.who b { display: block; }
.duo { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.duo .who p, .duo .who b { color: var(--text); text-align: left; }
.bar-dark .duo .who p, .bar-dark .duo .who b { color: var(--paper); }

/* ---------- desktop only ---------- */
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .slide.intro { --bw: 58rem; --bd: 30.8rem; --bh: 21rem; cursor: pointer; }
  .intro-scene { position: fixed; inset: 0; height: auto; overflow: visible; perspective: 110rem; }
  /* the deck frame, bars and progress line stay out of the way until the box has become the frame */
  .frame, .topbar, .botbar, .progress { transition: opacity .6s ease; }
  body:has(.slide.intro.on) :is(.frame, .topbar, .botbar, .progress) { opacity: 0; pointer-events: none; }
  .slide.intro:is(.opening, .closing) .intro-box { animation: intro-zoom 2.2s cubic-bezier(.6, 0, .2, 1) both; }
  .slide.intro:is(.opening, .closing) .wall.l { animation: intro-wall-l 2.2s ease-in-out both; }
  .slide.intro:is(.opening, .closing) .wall.r { animation: intro-wall-r 2.2s ease-in-out both; }
  .slide.intro:is(.opening, .closing) .wall.b { animation: intro-wall-b 2.2s ease-in-out both; }
  .slide.intro:is(.opening, .closing) .wall.t { animation: intro-wall-t 2.2s ease-in-out both; }
  .slide.intro:is(.opening, .closing) .lid { animation: intro-lid 2.2s ease-in-out both; }
  .slide.intro:is(.opening, .closing) .lid img { animation: intro-logo 2.2s ease both; }
  /* !important: the animation shorthands above are more specific and would reset the direction to normal */
  .slide.intro.closing :is(.intro-box, .wall, .lid, .lid img) { animation-direction: reverse !important; }
  .one-line h2 { font-size: 10.4rem; letter-spacing: -.3rem; }
  .jobline { grid-auto-flow: column; grid-auto-columns: 1fr; padding-top: 3.6rem; }
  .jobline.gaps { grid-auto-flow: row; grid-template-columns: 1.5fr 1fr 1fr 1.5fr 1fr 1fr 1fr 1.5fr 1.5fr; }
  .jobline::before { left: 0; right: 0; top: 1rem; height: 1px; }
  .jobline .stp::before { top: -3.3rem; left: 0; }
  .jobline .stp.gap::before { left: 1.4rem; }
  /* build steps: dim until the presenter advances (→, space or the next button) */
  .slide [data-step] { opacity: .14; transition: opacity .45s ease; }
  .slide [data-step].shown { opacity: 1; }
}

/* ---------- tablet and mobile ---------- */
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .film-tag { font-size: 11px; left: 12px; bottom: 12px; padding: 5px 12px; }
  .box-fig { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .box-rest + .box-rest::before { left: -20px; right: -20px; top: -12px; bottom: auto; border-left: 0; border-top: 1px solid var(--line-alt); }
  .box-list p { font-size: 18px; padding: 12px 0; }
  .box-fig.full .box-list { grid-template-columns: 1fr 1fr; }
  .box-fig.full .box-list p { font-size: 16px; }
  .jobline { grid-template-columns: 1fr; gap: 22px; padding-left: 30px; }
  .jobline::before { left: 6px; top: 6px; bottom: 6px; width: 1px; }
  .jobline .stp::before { left: -30px; top: 6px; width: 12px; height: 12px; }
  .jobline .stp h4, .jobline .stp.done h4 { font-size: 19px; }
  .jobline .stp .sm { font-size: 15.5px; }
  .seat h4 { font-size: 17px; }
  .seat .r { font-size: 11px; }
  .who p { font-size: 15px; }
  .pic-cap .pic-wrap { height: auto; }
}
@media (max-width: 767px) {
  .box-list, .box-fig.full .box-list { grid-template-columns: 1fr; }
  .duo { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .slide.on .box-edge rect { animation: none; } }
@media print { .slide [data-step] { opacity: 1 !important; } .slide.on .box-edge rect { animation: none; } }

@keyframes intro-lid { 0% { transform: rotateX(-90deg); opacity: 1; } 30% { transform: rotateX(0); opacity: 1; } 62% { transform: rotateX(0); opacity: 1; } 84%, 100% { transform: rotateX(0); opacity: 0; } }
@keyframes intro-logo { 0% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes intro-wall-l { 0%, 24% { transform: rotateY(90deg); color: var(--frame); } 58% { transform: rotateY(0); } 62% { transform: rotateY(0); color: var(--frame); } 84%, 100% { transform: rotateY(0); color: transparent; } }
@keyframes intro-wall-r { 0%, 24% { transform: rotateY(-90deg); color: var(--frame); } 58% { transform: rotateY(0); } 62% { transform: rotateY(0); color: var(--frame); } 84%, 100% { transform: rotateY(0); color: transparent; } }
@keyframes intro-wall-b { 0%, 24% { transform: rotateX(90deg); color: var(--frame); } 58% { transform: rotateX(0); } 62% { transform: rotateX(0); color: var(--frame); } 84%, 100% { transform: rotateX(0); color: transparent; } }
@keyframes intro-wall-t { 0%, 24% { transform: rotateX(-90deg); color: var(--frame); } 58% { transform: rotateX(0); } 62% { transform: rotateX(0); color: var(--frame); } 84%, 100% { transform: rotateX(0); color: transparent; } }
@keyframes intro-zoom { 0%, 56% { left: calc(50% - var(--bw) / 2); right: calc(50% - var(--bw) / 2); top: calc(50% - var(--bd) / 2); bottom: calc(50% - var(--bd) / 2); } 100% { left: var(--edge); right: var(--edge); top: var(--edge); bottom: var(--edge); } }

/* cover: one illustration. The slide starts empty, colour blots in from a random spot, holds a second, is eaten away to a faint grey version, then the content comes in */
.slide-bg.color { filter: grayscale(1); }
.slide-bg.brush { display: none; }
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  /* the colour copy sits on top. A white blot in its mask opens from a random spot to show it; a black blot then opens from the centre in stepped frames and eats it away, leaving the faint grey image */
  .slide-bg.brush { display: block; opacity: 0; mix-blend-mode: multiply; }
  .slide-bg.brush .blot { transform-origin: 836px 470px; transform: scale(0); }
  .slide-bg.brush .lobe { transform-box: fill-box; transform-origin: center; }
  .slide-bg.brush .blot-in { transform: scale(0); }
  .slide.on > .slide-bg.color { animation: cover-fade .01s linear 1.5s both; }
  .slide.on > .slide-bg.brush { animation: brush-out .2s linear 3.8s both; }
  .slide.on > .slide-bg.brush .blot-in { animation: blot-in-grow 1.2s linear .3s both; }
  .slide.on > .slide-bg.brush .blot { animation: blot-grow 1.2s linear 2.5s both; }
  .slide.on > .slide-bg.brush .lobe { animation: blot-lobe .5s steps(5, end) calc(2.5s + var(--d, 0s)) both; }
  .slide.on > .slide-bg.brush .blot-in .lobe { animation-delay: calc(.3s + var(--d, 0s)); }
  .slide.on > .slide-bg.color ~ .svc-field { animation: cover-fade 1s ease 3.7s both; }
  .divider.on > .slide-bg.color ~ .numeral, .divider.on > .slide-bg.color ~ .inner .txt > :not(h1) { animation: cover-fade .9s ease 3.7s both; }
  .slide.on:not(.cover, .divider) > .slide-bg.color ~ .inner > :not(.words) { animation: cover-fade .9s ease 4.3s both; }
  .cover.on:has(> .slide-bg.color) .inner > * { animation: cover-in .8s cubic-bezier(.2, .75, .2, 1) 3.7s both; }
  .cover.on:has(> .slide-bg.color) .inner > :nth-child(3) { animation-delay: 4s; }
  .cover.on:has(> .slide-bg.color) .inner > :nth-child(4) { animation-delay: 4.12s; }
  .cover.on:has(> .slide-bg.color) .inner > :nth-child(5) { animation-delay: 4.24s; }
  .slide:has(> .slide-bg.color) .words.words-in .wi { transition-delay: calc(3.7s + var(--i) * 55ms); }
}
@keyframes blot-grow {
  0% { transform: scale(0); animation-timing-function: steps(7, end); }
  30% { transform: scale(.5); animation-timing-function: steps(8, end); }
  65% { transform: scale(.95); animation-timing-function: steps(7, end); }
  100% { transform: scale(1.4); }
}
@keyframes blot-in-grow {
  0% { transform: scale(0); animation-timing-function: steps(7, end); }
  30% { transform: scale(calc(var(--s, 2) * .36)); animation-timing-function: steps(8, end); }
  65% { transform: scale(calc(var(--s, 2) * .7)); animation-timing-function: steps(7, end); }
  100% { transform: scale(var(--s, 2)); }
}
@keyframes blot-lobe { from { transform: scale(.2); } to { transform: scale(1); } }
@keyframes brush-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cover-fade { from { opacity: 0; } }
@keyframes cover-in { from { opacity: 0; transform: translateY(1.6rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .slide-bg.brush { display: none; }
  .slide.on > .slide-bg.color, .slide.on > .slide-bg.color ~ :is(.svc-field, .numeral), .slide.on > .slide-bg.color ~ .inner > *, .divider.on > .slide-bg.color ~ .inner .txt > *, .cover.on:has(> .slide-bg.color) .inner > * { animation: none; }
}

/* How we work: tool cards on "The system", and a few statement helpers for the outline update */
.tool-h { display: flex; align-items: center; gap: 1.2rem; }
.tool-ico { flex: none; width: 32px; height: 32px; background: var(--text); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .tool-h .tool-ico { width: 4rem; height: 4rem; }
  .one-line .inner > .eyebrow, .one-line .inner > .statement { max-width: 140rem; }
  .one-line h2.long { font-size: 7.2rem; letter-spacing: -.2rem; }
}

/* film popup: a thumbnail with data-vimeo (or data-video for a local file) plays in an overlay instead of leaving the deck */
a.pic-wrap[data-vimeo], a.pic-wrap[data-video] { cursor: pointer; }
a.pic-wrap[data-vimeo]::after, a.pic-wrap[data-video]::after { content: ""; position: absolute; inset: 0; background: var(--text); opacity: 0; transition: opacity .2s; }
a.pic-wrap[data-vimeo]:hover::after, a.pic-wrap[data-video]:hover::after { opacity: .18; }
a.pic-wrap[data-vimeo] .film-tag, a.pic-wrap[data-video] .film-tag { z-index: 1; }
.film-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: max(16px, 4vmin); background: rgba(24, 34, 43, .9); animation: film-pop-in .2s ease both; }
.film-pop-box { width: min(100%, 1280px, calc((100vh - 140px) * 16 / 9)); display: grid; gap: 12px; }
.film-pop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fefdfa; font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.film-pop-bar a { color: inherit; opacity: .7; text-decoration: none; font-weight: 500; letter-spacing: .06em; }
.film-pop-bar a:hover { opacity: 1; }
.film-pop-close { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(254, 253, 250, .4); color: #fefdfa; font-size: 20px; line-height: 1; }
.film-pop-close svg { display: block; }
.film-pop-close { transition: color .15s, border-color .15s; }
.film-pop-close:hover, .film-pop-close:focus-visible { color: var(--accent); border-color: var(--accent); }
.film-pop-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.film-pop-frame iframe, .film-pop-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-pop-frame .film-pop-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; padding: 24px; color: #fefdfa; font-size: 18px; }
.film-pop-msg a { justify-self: center; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: #2a3c4b; font-weight: 700; text-decoration: none; }
@keyframes film-pop-in { from { opacity: 0; } }

/* "The rest of the box": bought list in a narrow single column, the other 25 services named in the wider one */
.box-fig.split25 { grid-template-columns: 3fr 7fr; }
.box-fig.split25 .box-list { grid-template-columns: 1fr; }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-alt); }
.svc-list p { display: flex; align-items: center; gap: 1.2rem; padding: .9rem 0; font-size: 1.9rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.svc-list i { flex: none; width: 2.8rem; height: 2.8rem; background: var(--text); opacity: .5; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.svc-list span { opacity: .6; }
@media not ((min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3)) {
  .box-fig.split25 { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr 1fr; gap: 0 16px; padding-top: 8px; }
  .svc-list p { font-size: 14px; gap: 8px; padding: 6px 0; }
  .svc-list i { width: 22px; height: 22px; }
}
@media (max-width: 420px) { .svc-list { grid-template-columns: 1fr; } }

/* cards that arrive one by one on their own, no click needed */
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .slide.on .auto-in > * { animation: card-in-ltr .7s cubic-bezier(.2, .75, .2, 1) 1s both; }
  .slide.on .auto-in > :nth-child(2) { animation-delay: 1.7s; }
  .slide.on .auto-in > :nth-child(3) { animation-delay: 2.4s; }
  .slide.on .auto-in > :nth-child(4) { animation-delay: 3.1s; }
}
@media (prefers-reduced-motion: reduce) { .slide.on .auto-in > * { animation: none; } }

/* stats in one card: centred number and label, a vertical divider between each */
.stat-card { display: grid; grid-template-columns: repeat(4, 1fr); padding: 2.4rem 0; background: #f6f4ef; border: 1px solid var(--frame); border-radius: .8rem; }
.stat-card > div { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 0 2.4rem; text-align: center; min-width: 0; }
.stat-card > div + div { border-left: 1px solid var(--frame); }
.stat-card .stat { font-variant-numeric: tabular-nums; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .stat-card { grid-template-columns: 1fr 1fr; gap: 16px 0; padding: 16px 0; border-radius: 8px; }
  .stat-card > div { padding: 0 12px; gap: 2px; }
  .stat-card > div:nth-child(odd) { border-left: 0; }
}

/* film story cards: quieter title and description under the poster */
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .story h4 { font-size: 2.2rem; }
  .story .sm { font-size: 1.6rem; }
}

/* "See case study": a small pill in the head row that opens a web page over the deck, filling the framed area */
.cs-btn { all: unset; box-sizing: border-box; flex: none; cursor: pointer; padding: .5rem 1.4rem; border: 1px solid var(--text); border-radius: 99rem; font-size: 1.1rem; font-weight: 700; line-height: 1.2; letter-spacing: .15rem; text-transform: uppercase; color: var(--text); transition: background .15s, border-color .15s; }
.cs-btn:hover, .cs-btn:focus-visible { background: var(--accent); border-color: var(--accent); }
.film-pop.page { display: block; padding: 0; }
.film-pop.page .film-pop-box { position: absolute; display: block; width: auto; inset: max(16px, 4vmin); }
.film-pop.page .film-pop-frame { position: absolute; inset: 0; aspect-ratio: auto; background: #fefdfa; }
.film-pop.page .film-pop-frame .film-pop-msg { color: #2a3c4b; }
.film-pop.page .film-pop-close { position: absolute; z-index: 2; top: 12px; right: 12px; background: rgba(24, 34, 43, .85); border-color: transparent; }
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  /* on the stage the close button sits in the margin above the top-right corner mark, clear of the page */
  .film-pop.page .film-pop-close { top: -4.6rem; right: 0; width: 3.2rem; height: 3.2rem; background: none; border-color: rgba(254, 253, 250, .4); }
  .film-pop.page .film-pop-close:hover, .film-pop.page .film-pop-close:focus-visible { border-color: var(--accent); }
}
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .cs-btn { padding: 6px 14px; font-size: 11px; letter-spacing: 1.5px; }
}

/* six stats in one card, three across and two down, ruled between cells */
.split.w33 { grid-template-columns: 1fr 2fr; }
.stat-card.x6 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; padding: 0; }
.stat-card.x6 > div { justify-content: center; padding: 2.4rem; }
.stat-card.x6 > div:nth-child(3n + 1) { border-left: 0; }
.stat-card.x6 > div:nth-child(n + 4) { border-top: 1px solid var(--frame); }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .split.w33 { grid-template-columns: 1fr; }
  .stat-card.x6 { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
  .stat-card.x6 > div { padding: 16px 12px; border-top: 0; }
  .stat-card.x6 > div:nth-child(3n + 1) { border-left: 1px solid var(--frame); }
  .stat-card.x6 > div:nth-child(odd) { border-left: 0; }
  .stat-card.x6 > div:nth-child(n + 3) { border-top: 1px solid var(--frame); }
}

/* small goal cards: titles a step down from h4 */
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) { .goals h4 { font-size: 2.2rem; } }

.stat-card.x5 { grid-template-columns: repeat(5, 1fr); }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .stat-card.x5 > div:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
}

/* How we work, slide 1: scattered tools against one connected system */
.sys-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; min-height: 0; }
.sys-panel { position: relative; display: flex; flex-direction: column; gap: 1.6rem; padding: 2.4rem; background: #f6f4ef; border: 1px solid var(--frame); border-radius: .8rem; min-height: 0; }
.sys-panel > .kicker { text-align: center; }
.scatter, .linked { position: relative; flex: 1; min-height: 0; }
.ttile { position: absolute; width: 20%; aspect-ratio: 1; display: grid; place-items: center; background: var(--card); border: 1px solid var(--frame); border-radius: .6rem; }
.ttile i { width: 46%; height: 46%; background: var(--text); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.linked { display: grid; grid-template-columns: repeat(3, 20%); grid-template-rows: repeat(3, auto); justify-content: space-between; align-content: space-between; width: min(100%, var(--lk, 100%)); aspect-ratio: 1; flex: none; margin: auto; }
.linked .ttile { position: relative; width: 100%; }
.linked .ttile.hub { background: var(--accent); border-color: var(--accent); }
.linked svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.linked svg path { fill: none; stroke: var(--text); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .45; }
/* How we work, slide 2: the tools drawn as rooms off one corridor */
.plan { display: flex; flex-direction: column; border: .3rem solid var(--text); border-radius: .4rem; min-height: 0; }
.plan .rooms { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.plan .room { display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; padding: 2.4rem 2.8rem; }
.plan .room + .room { border-left: 1px solid var(--text); }
.plan .room h3 { font-size: 2.8rem; line-height: 1.15; }
.plan .room .tool-ico { width: 4rem; height: 4rem; }
.plan .spine { display: flex; justify-content: space-between; gap: 2rem; padding: 1.4rem 2.8rem; background: var(--accent); font-size: 1.4rem; font-weight: 700; letter-spacing: .25rem; text-transform: uppercase; color: var(--text); }
/* How we work, slide 3: five outcomes as bays of one structure, the last two heavier */
.bays { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1.25fr; border: .3rem solid var(--text); border-radius: .4rem; min-height: 0; }
.bay { grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: 2.8rem 3.2rem; min-width: 0; }
.bay:nth-child(2), .bay:nth-child(3), .bay:nth-child(5) { border-left: 1px solid var(--text); }
.bay.heavy { grid-column: span 3; border-top: 1px solid var(--text); background: #f6f4ef; box-shadow: inset 0 .8rem 0 var(--accent); }
.bay.heavy h3 { font-size: 4.4rem; line-height: 1.08; letter-spacing: -.1rem; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .sys-vs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sys-panel { padding: 14px; gap: 10px; aspect-ratio: 3 / 4; }
  .plan .rooms { grid-template-columns: 1fr; }
  .plan .room { padding: 16px 18px; flex-direction: row; align-items: center; }
  .plan .room + .room { border-left: 0; border-top: 1px solid var(--text); }
  .plan .room h3 { font-size: 20px; }
  .plan .room .tool-ico { width: 28px; height: 28px; }
  .plan .spine { padding: 10px 18px; font-size: 11px; letter-spacing: 1.5px; }
  .bays { grid-template-columns: 1fr; grid-template-rows: none; }
  .bay, .bay.heavy { grid-column: auto; padding: 18px 20px; }
  .bay + .bay { border-left: 0 !important; border-top: 1px solid var(--text); }
  .bay.heavy h3 { font-size: 26px; }
}

/* two stat cards, one third and two thirds, centred */
.stat-pair { display: grid; grid-template-columns: 1fr 1.65fr; gap: 1.6rem; }
.stat-pair .card { align-items: center; justify-content: center; text-align: center; gap: .6rem; }

/* slide 25: tools float loose until the System switch connects them to Cargo at the centre */
.mind { --tan: #c9b99a; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; min-height: 0; }
.mind-box { position: relative; align-self: stretch; flex: 1; min-height: 52rem; border: 1px solid var(--frame); border-radius: .8rem; overflow: hidden; }
.mind-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.mind-lines path { fill: none; stroke: var(--tan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 6; vector-effect: non-scaling-stroke; }
.mind.on .mind-lines { opacity: .75; transition-delay: .5s; }
.mtile { position: absolute; left: 0; top: 0; width: 5%; aspect-ratio: 1; display: grid; place-items: center; will-change: transform; }
.mtile i { width: 100%; height: 100%; background: var(--text); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.mind-hub { position: absolute; left: 50%; top: 50%; width: 16%; display: block; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .4s ease; z-index: 1; }
.mind-hub img { display: block; width: 100%; height: auto; }
.mind.on .mind-hub { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .2s; }
.sys-toggle { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .9rem; cursor: pointer; font-size: 1.1rem; font-weight: 700; letter-spacing: .2rem; text-transform: uppercase; color: var(--text); }
.sys-track { position: relative; width: 4rem; height: 2.2rem; border-radius: 99rem; border: .15rem solid var(--text); }
.sys-knob { position: absolute; top: 50%; left: .2rem; transform: translateY(-50%); width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--text); transition: transform .25s cubic-bezier(.3, 1.3, .5, 1), background .25s; }
.mind.on .sys-knob { transform: translate(1.9rem, -50%); background: var(--accent); }
.sys-state { min-width: 3.2em; }
.sys-toggle:focus-visible .sys-track { outline: .2rem solid var(--accent); outline-offset: .3rem; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .mind-box { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .mtile { width: 6.3%; }
  .mind-hub { width: 22%; }
  .sys-toggle { font-size: 10px; letter-spacing: 1.5px; gap: 8px; }
  .sys-track { width: 34px; height: 18px; border-width: 1.5px; }
  .sys-knob { left: 2px; width: 12px; height: 12px; }
  .mind.on .sys-knob { transform: translate(15px, -50%); }
}

/* slide 26: nine tools as one 3 x 3 plan, under an "always on" subhead */
.plan-wrap { display: flex; flex-direction: column; gap: 1.6rem; min-height: 0; }
.plan-sub { display: flex; align-items: center; gap: 1rem; font-size: 1.4rem; font-weight: 700; letter-spacing: .25rem; text-transform: uppercase; color: var(--text); }
.plan-sub .live { width: 1rem; height: 1rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(252, 182, 0, .6); } 100% { box-shadow: 0 0 0 1rem rgba(252, 182, 0, 0); } }
.plan.grid9 { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; border: 1px solid var(--frame); border-radius: .8rem; }
.plan.grid9 .room { justify-content: center; }
.plan.grid9 .room { justify-content: flex-start; gap: .8rem; padding: 2.4rem 2.8rem; }
.plan.grid9 .room .tool-ico { width: 3.2rem; height: 3.2rem; margin-bottom: .6rem; }
.plan.grid9 .room h3 { font-size: 2.4rem; }
.plan.grid9 .room + .room { border-left: 0; }
.plan.grid9 .room:not(:nth-child(3n + 1)) { border-left: 1px solid var(--frame); }
.plan.grid9 .room:nth-child(n + 4) { border-top: 1px solid var(--frame); }
@media (prefers-reduced-motion: reduce) { .plan-sub .live { animation: none; } }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .plan-sub { font-size: 11px; letter-spacing: 1.5px; gap: 8px; }
  .plan-sub .live { width: 8px; height: 8px; }
  .plan.grid9 { grid-template-columns: 1fr 1fr; }
  .plan.grid9 .room { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .plan.grid9 .room h3 { font-size: 17px; }
  .plan.grid9 .room:not(:nth-child(3n + 1)) { border-left: 0; }
  .plan.grid9 .room:nth-child(n + 4) { border-top: 0; }
  .plan.grid9 .room:nth-child(even) { border-left: 1px solid var(--frame); }
  .plan.grid9 .room:nth-child(n + 3) { border-top: 1px solid var(--frame); }
}

/* slide 26: each tool's product logo sits in front of its name */
.plan.grid9 .room { flex-direction: row; align-items: center; gap: 1.6rem; padding: 2rem 2.4rem; }
.plan.grid9 .room > div { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.prod-logo { flex: none; width: 5.6rem; height: 5.6rem; object-fit: contain; }
.prod-logo.ph { border: .15rem dashed var(--frame); border-radius: 1.6rem; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .plan.grid9 .room { flex-direction: row; align-items: center; gap: 10px; }
  .prod-logo { width: 36px; height: 36px; }
  .prod-logo.ph { border-radius: 10px; }
}

/* slide 27: the five outcomes as separate standard cards, sliding in left to right */
.bays.cards { border: 0; border-radius: 0; gap: 1.6rem; }
.bays.cards { grid-template-columns: repeat(5, 1fr); grid-template-rows: none; }
.bays.cards > .bay h3 { line-height: 1.15; min-height: 3.45em; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) { .bays.cards > .bay h3 { min-height: 0; } }
.bays.cards > .bay { grid-column: auto; justify-content: flex-start; gap: 1.2rem; padding: 2.8rem 2.4rem; border: 1px solid var(--frame); border-radius: .8rem; background: none; box-shadow: none; }
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .slide.on .auto-in.ltr > * { animation-name: card-in-ltr; }
  .slide.on .auto-in.ltr > :nth-child(2) { animation-delay: 1.35s; }
  .slide.on .auto-in.ltr > :nth-child(3) { animation-delay: 1.7s; }
  .slide.on .auto-in.ltr > :nth-child(4) { animation-delay: 2.05s; }
  .slide.on .auto-in.ltr > :nth-child(5) { animation-delay: 2.4s; }
}
@keyframes card-in-ltr { from { opacity: 0; transform: translateY(3.2rem); } to { opacity: 1; transform: none; } }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .bays.cards { gap: 10px; }
  .bays.cards > .bay + .bay { border-top: 1px solid var(--frame); }
}

/* slide 28: "We like a system. So does the work." set as a tan wordmark */
.sys-word { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 0; padding: 4.8rem; border: 1px solid var(--frame); border-radius: .8rem; }
.sys-word img { width: 100%; max-width: 64rem; height: auto; filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .1)); }

/* slide 5: what the lead seat includes, six plain cards */
.seat-cards { grid-auto-rows: 1fr; gap: 1.6rem; }
.seat-cards .card { justify-content: center; padding: 2.4rem 2.8rem; }
.seat-cards h4 { font-size: 2.2rem; line-height: 1.25; text-wrap: pretty; }

/* slide 25, system on: the loose service icons fade away and the nine Cargo products bloom out of the centre */
.mtile { transition: opacity .6s ease; }
.mind.on .mtile { opacity: 0; transition: opacity .8s cubic-bezier(.5, 0, .9, .6); }
.mprod { position: absolute; left: 0; top: 0; width: 6.75%; height: auto; aspect-ratio: 1; opacity: 0; pointer-events: none; will-change: transform; transition: opacity .4s ease; }
.mind.on .mprod { opacity: 1; transition: opacity .7s ease calc(.25s + var(--k) * .07s); }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) { .mprod { width: 9%; } }

/* closing slide: Cargo x Interac lockup */
.lockup { display: inline-flex; align-items: center; gap: 2.4rem; }
.lockup .logo { height: 4.8rem; position: relative; top: .5rem; }
.lockup-x { display: block; width: 1.8rem; height: 1.8rem; overflow: visible; }
.lockup-x path { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; opacity: .6; }
.lockup-interac { height: 7.2rem; width: auto; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .lockup { gap: 14px; }
  .lockup .logo { height: 34px; top: 4px; }
  .lockup-x { width: 13px; height: 13px; }
  .lockup-interac { height: 50px; }
}

/* slide 7: one big number with its two supporting lines, in a box exactly as tall as the left column
   (the box adds no height of its own, it fills whatever the eyebrow, headline and statement need) */
.big-stat { height: 0; min-height: 100%; justify-content: space-between; gap: 1.2rem; padding: 2.8rem 3.2rem; overflow: hidden; }
.big-stat-top { display: flex; flex-direction: column; gap: .4rem; }
.big-stat .stat { font-size: 8.8rem; line-height: .9; letter-spacing: -.3rem; }
.big-stat .rule { padding-top: 1.2rem; }
.big-stat .rule p, .big-stat-top p:not(.stat) { font-size: var(--t-small); line-height: 1.35; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) { .big-stat { height: auto; min-height: 0; padding: 24px; } .big-stat .stat { font-size: 64px; letter-spacing: -2px; } }

/* RBC: thumbnails exactly as tall as the text column beside them */
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) { .pic-wrap.m-h.fit-col { min-height: 0; height: 100%; } }

/* four stats in one card, two by two, ruled between cells */
.stat-card.x4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; padding: 0; }
.stat-card.x4 > div { justify-content: center; padding: 2.4rem; }
.stat-card.x4 > div:nth-child(odd) { border-left: 0; }
.stat-card.x4 > div:nth-child(n + 3) { border-top: 1px solid var(--frame); }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) { .stat-card.x4 { gap: 0; padding: 0; } .stat-card.x4 > div { padding: 16px 12px; } }

/* slide 22: rule titles a step down from h4 */
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) { .small-rules .rule h4 { font-size: 2.2rem; } }

/* statements never end on a lone word */
.statement { text-wrap: pretty; }

/* card headings never end on a lone word */
.card :is(h3, h4), .bay h3, .room h3, .rule h4 { text-wrap: pretty; }

/* body copy never ends on a lone word either */
.slide .inner p { text-wrap: pretty; }
/* short ruled lines: even out the lines so two-line ones never strand a word */
.slide .inner .rule p { text-wrap: balance; }
