/* Interac RFP web presentation. Cargo design system carried from the 2026 planning template.
   Desktop: 1920x1080 design grid as a centred 16:9 container, 1rem = 10 design px.
   Background, paper pattern and edge frame are viewport layers, so they always reach the screen edges.
   Tablet and mobile: same slides reflow into one scrolling column. */

:root {
  --accent: #fcb600;
  --ink: #010101;
  --text: #2a3c4b;          /* all type that was black */
  --frame: #d8cfbc;         /* edge lines and + marks */
  --page: #f4efe9;          /* average of the paper image, shown while it loads */
  --body: var(--text);      /* body copy matches headlines */
  --muted: #6e675c;
  --line: #d8cfbc;
  --line-alt: #d8cfbc;
  --paper: #fbf9f4;
  --paper-alt: #f5f2eb;
  --card: #fefdfa;
  --shadow: 0 .2rem .4rem #0000001a;
  --font: 'Plus Jakarta Sans', Arial, sans-serif;

  --edge: 6.4rem;           /* distance of the frame lines from the screen edge */
  --t-display: 12rem;
  --t-h2: 7.2rem;
  --t-h2-long: 5.6rem;
  --t-stat: 7.2rem;
  --t-h3: 3.6rem;
  --t-h4: 2.8rem;
  --t-body: 2.2rem;
  --t-small: 2rem;
  --t-label: 1.8rem;
  --t-chrome: 1.2rem;
  --gap: 1.6rem;
}

* { box-sizing: border-box; margin: 0; }
html { font-size: min(calc(100vw / 192), calc(100vh / 108)); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--page);
  font-size: var(--t-body); line-height: 1.4; overflow: hidden; height: 100vh;
  transition: background-color .35s ease;
}
body[data-tone="alt"] { background: var(--page); }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 800; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: .2rem solid var(--ink); outline-offset: .2rem; }

/* ---------- viewport layers ---------- */
.paper { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--page) url(../assets/img/background-img.jpg) 0 0 / auto repeat; }

.frame { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.frame .l { position: absolute; background: var(--frame); }
.frame .l.t { top: var(--edge); left: 0; right: 0; height: 1px; }
.frame .l.b { bottom: var(--edge); left: 0; right: 0; height: 1px; }
.frame .l.ll { left: var(--edge); top: 0; bottom: 0; width: 1px; }
.frame .l.r { right: var(--edge); top: 0; bottom: 0; width: 1px; }
.mark { position: absolute; width: 1.6rem; height: 1.6rem; }
.mark::before, .mark::after { content: ""; position: absolute; background: var(--text); }
.mark::before { left: 0; right: 0; top: calc(50% - 1px); height: 2px; }
.mark::after { top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; }
.mark.tl { top: calc(var(--edge) - .8rem); left: calc(var(--edge) - .8rem); }
.mark.tr { top: calc(var(--edge) - .8rem); right: calc(var(--edge) - .8rem); }
.mark.bl { bottom: calc(var(--edge) - .8rem); left: calc(var(--edge) - .8rem); }
.mark.br { bottom: calc(var(--edge) - .8rem); right: calc(var(--edge) - .8rem); }

.rail { position: absolute; left: 0; top: 0; bottom: 0; width: var(--edge); display: flex; align-items: center; justify-content: center; }
.rail div { writing-mode: vertical-rl; height: 60%; display: flex; justify-content: space-between;
  font-size: var(--t-chrome); font-weight: 600; letter-spacing: .4rem; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.chrome-txt { font-size: var(--t-chrome); font-weight: 600; letter-spacing: .2rem; text-transform: uppercase; color: var(--muted); }

.topbar { position: fixed; z-index: 5; top: 0; left: var(--edge); right: var(--edge); height: var(--edge);
  display: flex; align-items: center; justify-content: space-between; padding: 0 6.4rem; }
.topbar .logo-btn { display: block; }
.topbar .logo-btn img { height: 2.4rem; width: auto; }
.topbar .right { display: flex; align-items: center; gap: 2.4rem; }

.botbar { position: fixed; z-index: 5; bottom: 0; left: var(--edge); right: var(--edge); height: var(--edge);
  display: flex; align-items: center; justify-content: space-between; padding: 0 6.4rem; gap: 2rem; }
.botbar .where { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.botbar .ctrls { display: flex; align-items: center; gap: 1.2rem; }

.ctl { min-width: 3.6rem; height: 3.6rem; display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  border-radius: 25.6rem; border: 1px solid transparent; font-size: var(--t-chrome); font-weight: 600;
  letter-spacing: .2rem; text-transform: uppercase; color: var(--muted); transition: background-color .2s ease, color .2s ease; padding: 0 .8rem; }
.ctl:hover { background: var(--ink); color: var(--paper); }
.ctl svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl[disabled] { opacity: .3; pointer-events: none; }

.progress { position: fixed; z-index: 6; left: 0; bottom: 0; height: .3rem; background: var(--accent); width: 0; transition: width .3s ease; }

/* ---------- 16:9 container ---------- */
.stage { position: fixed; left: 50%; top: 50%; width: 192rem; height: 108rem; margin: -54rem 0 0 -96rem; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.slide { --muted: var(--text); }   /* labels inside slides match headlines; top and bottom bars keep the muted tone */
.slide.on { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.inner { position: absolute; left: 17.6rem; right: 17.6rem; top: 11.2rem; bottom: 9.6rem; display: flex; flex-direction: column; gap: 4rem; justify-content: center; }
.page-no { display: none; }

/* full-screen slide art */
.slide-bg { position: fixed; z-index: 0; inset: calc(var(--edge) + 1px); width: calc(100vw - 2 * var(--edge) - 2px); height: calc(100vh - 2 * var(--edge) - 2px);
  object-fit: cover; opacity: .05; mix-blend-mode: multiply; pointer-events: none; }

/* ---------- type ---------- */
.eyebrow { font-size: var(--t-label); font-weight: 600; letter-spacing: .5rem; text-transform: uppercase; color: var(--accent); }
.head { display: flex; flex-direction: column; gap: 1.6rem; flex: none; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.tag { flex: none; padding: .5rem 1.8rem; font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: .25rem; text-transform: uppercase;
  color: var(--accent); border: none; background: #f6f4ef; border-radius: 25.6rem; white-space: nowrap; }
.tag.ink { color: var(--text); }
.tags { display: flex; gap: 1rem; flex-wrap: wrap; }
h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -.2rem; text-wrap: balance; }
h2.long { font-size: var(--t-h2-long); letter-spacing: -.15rem; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.05rem; }
h4 { font-size: var(--t-h4); line-height: 1.2; letter-spacing: -.03rem; }
p { color: var(--body); }
.sm { font-size: var(--t-small); line-height: 1.38; }
.lead { font-size: var(--t-body); line-height: 1.4; color: var(--body); max-width: 128rem; }
.ink { color: var(--text); }
.accent { color: var(--accent); }
.kicker { font-size: var(--t-label); font-weight: 600; letter-spacing: .4rem; text-transform: uppercase; color: var(--accent); }
.kicker.mute { color: var(--muted); }
b, strong { font-weight: 800; color: var(--text); }
.stat { font-size: var(--t-stat); font-weight: 800; line-height: 1.05; letter-spacing: -.2rem; color: var(--accent); }

/* open placeholders stay visible until the real content lands */
.ph { display: inline; padding: .1rem .7rem; background: #fcb60026; border: 1px dashed var(--accent); border-radius: .4rem; color: var(--text); font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- blocks ---------- */
.card { display: flex; flex-direction: column; gap: 1.2rem; padding: 3.2rem 3.6rem; background: none; border: 1px solid var(--frame); border-radius: .8rem; box-shadow: none; min-width: 0; }
.card.tight { padding: 2.4rem 2.8rem; gap: .8rem; }
.card.dark { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.card.dark h3, .card.dark h4, .card.dark p, .card.dark b, .card.dark .statement { color: var(--paper) !important; }
.card.dark .kicker { color: var(--accent); }
.card.dash { background: #fcb6000d; border: .2rem dashed var(--accent); box-shadow: none; }
.card.hatch { background: repeating-linear-gradient(135deg, #e4ded1 0, #f8f6f0 1.4px, #f8f6f0 5px); border: 1px solid var(--line-alt); box-shadow: none; }
.rule { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--frame); min-width: 0; }
.grow { flex: 1; min-height: 0; }
.row { display: flex; gap: var(--gap); }
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.g2, .g3, .g4, .g5, .g6 { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; gap: 4.8rem; grid-template-columns: 1fr 1fr; }
.split.w60 { grid-template-columns: 3fr 2fr; }
.split.w40 { grid-template-columns: 2fr 3fr; }
.gap-l { gap: 3.2rem; }
.span2 { grid-column: span 2; }
.statement { font-size: 4.4rem; font-weight: 800; line-height: 1.12; letter-spacing: -.1rem; color: var(--text); }
.statement.sm2 { font-size: 3.6rem; letter-spacing: -.05rem; }

/* tables */
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); font-size: var(--t-small); line-height: 1.3; background: var(--paper); }
.tbl th { background: var(--ink); color: var(--paper); text-align: left; font-weight: 600; padding: 1.4rem 2.4rem; }
.tbl td { padding: 1.2rem 2.4rem; vertical-align: top; color: var(--body); }
.tbl tr:nth-child(odd) td { background: var(--card); }
.tbl td:first-child { color: var(--text); font-weight: 600; }
.tbl.xs th, .tbl.xs td { padding-top: 1rem; padding-bottom: 1rem; }
.tbl.md td { padding-top: 1.8rem; padding-bottom: 1.8rem; }
.tbl.lg { font-size: var(--t-body); }
.tbl.lg th { padding: 2rem 2.8rem; }
.tbl.lg td { padding: 2.4rem 2.8rem; }
.tbl .ref { text-align: right; white-space: nowrap; font-weight: 800; color: var(--text); }
.tbl .ref a { text-decoration: none; border-bottom: .2rem solid var(--accent); }

/* images */
.pic { width: 100%; height: 100%; object-fit: cover; border-radius: .8rem; min-height: 0; }
.pic-wrap { position: relative; border-radius: .8rem; overflow: hidden; background: #e9e4d8; min-height: 0; }
.pic-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* cover + dividers */
.cover .inner { align-items: center; justify-content: center; text-align: center; gap: 2.8rem; }
.display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -.4rem; text-wrap: balance; }
.logo { height: 4.3rem; width: auto; }
.divider .inner { justify-content: center; gap: 3.2rem; }
.divider .eyebrow { font-size: var(--t-h4); letter-spacing: .8rem; }
.divider p { max-width: 76rem; }
.numeral { position: absolute; right: 14rem; top: 50%; transform: translateY(-50%); font-size: 52rem; font-weight: 800; line-height: 1; letter-spacing: 0;
  color: #f7f5ef; text-shadow: 1px 0 0 var(--line-alt), -1px 0 0 var(--line-alt), 0 1px 0 var(--line-alt), 0 -1px 0 var(--line-alt), 1px 1px 0 var(--line-alt), -1px -1px 0 var(--line-alt), 1px -1px 0 var(--line-alt), -1px 1px 0 var(--line-alt); opacity: .75; user-select: none; }
.divider .txt { position: relative; display: flex; flex-direction: column; gap: 3.2rem; }

/* letter */
.letter p { font-size: 2.8rem; line-height: 1.45; color: var(--text); }
.letter { display: flex; flex-direction: column; gap: 2.4rem; }
.sign { display: flex; align-items: center; gap: 2rem; }
.sign img { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; object-position: top; background: #ebe7de; }
.signature { font-size: 4.4rem; font-weight: 800; letter-spacing: -.1rem; color: var(--text); line-height: 1; }

/* people */
.person { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.person .pic-wrap { aspect-ratio: 4 / 5; background: none; border: 1px solid var(--frame); }
.person h4 { font-size: 2.4rem; }
.person .sm { font-size: 1.8rem; line-height: 1.35; }
.person em { font-style: italic; display: block; margin-bottom: .4rem; }
.person img { object-position: top; }
.avatar { width: 7.2rem; height: 7.2rem; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: #ebe7de; }
.avatar.init { display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 2.2rem; }

/* org chart */
.org { display: flex; flex-direction: column; gap: 1.6rem; }
.org-tier { display: grid; gap: var(--gap); }
.org-card { display: flex; gap: 1.6rem; align-items: flex-start; padding: 2rem 2.2rem; background: var(--card); border-radius: .8rem; box-shadow: var(--shadow); min-width: 0; }
.org-card h4 { font-size: 2.4rem; margin: .3rem 0 .5rem; }
.org-card .r { font-size: 1.6rem; font-weight: 600; letter-spacing: .1rem; text-transform: uppercase; color: var(--muted); line-height: 1.25; }
.org-card p { font-size: 1.8rem; line-height: 1.3; }
.org-card.role { background: transparent; border: 1px dashed var(--line-alt); box-shadow: none; }
.tier-label { font-size: 1.5rem; font-weight: 600; letter-spacing: .3rem; text-transform: uppercase; color: var(--muted); }

/* diagrams */
.pods .bar { padding: 2rem 2.8rem; border-radius: .8rem; text-align: center; }
.bar-dark { background: var(--ink); }
.bar-dark p, .bar-dark b { color: var(--paper); }
.bar-soft { background: var(--card); box-shadow: var(--shadow); }
.dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1.2rem; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line-alt); }
.dots i.on { background: var(--ink); }
.dots i.off { background: transparent; border: 1px dashed var(--line-alt); }

/* five D spine */
.spine { display: grid; grid-template-columns: 22rem repeat(5, 1fr); column-gap: 1.2rem; row-gap: 1.2rem; align-items: stretch; }
.spine .lab { font-size: 2rem; font-weight: 600; line-height: 1.25; color: var(--text); align-self: center; }
.spine .d { padding: 2.4rem; background: var(--ink); border-radius: .8rem; }
.spine .d h4 { color: var(--paper); }
.spine .d p { color: #e8e3d7; font-size: 2rem; line-height: 1.3; margin-top: .6rem; }
.gear { position: relative; height: 4.4rem; border-radius: .4rem; background: transparent; border: 1px solid var(--line-alt); display: flex; align-items: center; justify-content: center; }
.gear.thin { height: 4.4rem; border-style: dashed; }
.touch { position: absolute; top: 50%; left: 50%; width: 1.26rem; height: 1.26rem; background: var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
.legend { display: inline-flex; align-items: center; gap: 1.2rem; font-size: 1.7rem; color: var(--body); }
.legend i { width: 1.12rem; height: 1.12rem; background: var(--accent); transform: rotate(45deg); flex: none; }

/* flows */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3.2rem; position: relative; }
.flow .st { position: relative; padding: 2.4rem; background: none; border: 1px solid var(--frame); border-radius: .8rem; box-shadow: none; display: flex; flex-direction: column; gap: .8rem; }
.flow .st:not(:last-child)::after { content: "→"; position: absolute; right: -2.6rem; top: 50%; transform: translateY(-50%); color: var(--text); font-weight: 800; }
.flow .st.dark { background: var(--ink); border-color: var(--ink); }
.flow .st.dark h3, .flow .st.dark h4, .flow .st.dark p { color: var(--paper); }
.check { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.5rem; font-weight: 600; letter-spacing: .15rem; text-transform: uppercase; color: var(--muted); }
.check::before { content: ""; width: 1.2rem; height: 1.2rem; background: var(--accent); transform: rotate(45deg); flex: none; }

/* IAT model */
.iat { display: grid; grid-template-columns: 30rem 1fr; gap: 3.2rem; align-items: stretch; }
.iat .hub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 2.4rem 2.8rem; background: var(--ink); border-radius: .8rem; }
.iat .hub h4 { color: var(--paper); }
.iat .hub p { color: #e8e3d7; font-size: var(--t-small); line-height: 1.3; }
.iat .hub::after { content: "→"; position: absolute; right: -2.6rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--text); }

/* ladder */
.ladder { min-width: 0; position: relative; display: flex; flex-direction: column; gap: 0; border-left: .4rem solid var(--accent); border-right: .4rem solid var(--accent); padding: 0 2.4rem; height: 100%; justify-content: space-around; }
.ladder .rung { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 1.6rem 0; border-bottom: .2rem solid var(--ink); font-size: var(--t-small); color: var(--text); font-weight: 600; min-height: 7.6rem; }
.ladder-wrap { position: relative; display: flex; gap: 1.6rem; min-height: 0; }
.rail-lab { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 1.5rem; font-weight: 600; letter-spacing: .3rem; text-transform: uppercase; color: var(--muted); }

/* compare model */
.model { display: flex; flex-direction: column; gap: 1.2rem; padding: 2.4rem 2.8rem; border-radius: .8rem; min-width: 0; }
.model.old { border: 1px dashed var(--line-alt); }
.model.new { background: var(--card); box-shadow: var(--shadow); }
.chain { display: flex; align-items: stretch; gap: 1rem; }
.chain span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; border-radius: .4rem; border: 1px solid var(--line-alt); font-size: 1.7rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.chain span.fill { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chain span.gold { background: var(--accent); border-color: var(--accent); }

/* case pages */
.foot-note { font-size: 1.7rem; color: var(--muted); line-height: 1.3; }
.stats { display: grid; gap: var(--gap); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 3.2rem; font-size: 2rem; font-weight: 800; letter-spacing: -.02rem; color: var(--muted); }

/* map schematic */
.map { position: relative; background: var(--card); border-radius: .8rem; box-shadow: var(--shadow); overflow: hidden; min-height: 0; }
.map svg { width: 100%; height: 100%; }
.map text { font-family: var(--font); }

/* ---------- menu overlay ---------- */
.menu { position: fixed; z-index: 20; inset: 0; background: var(--paper); display: none; overflow: auto; padding: calc(var(--edge) + 4rem) calc(var(--edge) + 6.4rem); }
.menu.open { display: block; }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3.2rem; }
.menu-grid { columns: 4; column-gap: 4.8rem; }
.menu-sec { break-inside: avoid; margin-bottom: 3.2rem; }
.menu-sec h4 { font-size: var(--t-label); font-weight: 600; letter-spacing: .3rem; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.menu a { display: flex; gap: 1.2rem; padding: .5rem 0; text-decoration: none; font-size: 1.7rem; line-height: 1.3; color: var(--text); }
.menu a:hover { text-decoration: underline; }
.menu a span { color: var(--muted); min-width: 2.6rem; font-weight: 600; }

/* ==========================================================================
   Tablet and mobile: slides reflow into a single scrolling column.
   Mirrors the media query in deck.js.
   ========================================================================== */
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  html { font-size: 8px; scroll-padding-top: 8rem; }
  :root {
    --edge: 28px;
    --t-display: 64px; --t-h2: 44px; --t-h2-long: 40px; --t-stat: 52px; --t-h3: 26px; --t-h4: 22px;
    --t-body: 18px; --t-small: 17px; --t-label: 14px; --t-chrome: 11px; --gap: 14px;
  }
  body { overflow: visible; height: auto; }
  .paper { position: fixed; }
  .slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .frame .l.t { top: 56px; }
  .frame .l.b { bottom: 12px; }
  .mark.tl, .mark.tr { top: calc(56px - .8rem); }
  .mark.bl, .mark.br { bottom: calc(12px - .8rem); }
  .topbar { left: 0; right: 0; height: 56px; padding: 0 calc(var(--edge) + 18px); background: var(--page) url(../assets/img/background-img.jpg) 0 0 / auto repeat; border-bottom: 0; }
  .topbar .logo-btn img { height: 24px; }
  .botbar { display: none; }
  .progress { top: 56px; bottom: auto; height: 3px; }
  .frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--page); z-index: -1; }
  .stage { position: relative; left: auto; top: auto; margin: 0; width: auto; height: auto; padding: 56px 0 12px; }
  .slide { position: relative; inset: auto; opacity: 1; visibility: visible; overflow: hidden; border-bottom: 1px solid var(--line); }
  .slide:last-child { border-bottom: 0; }
  .inner { position: relative; left: auto; right: auto; top: auto; bottom: auto; padding: 56px calc(var(--edge) + 36px) 64px; gap: 28px; }
  .page-no { display: block; position: absolute; right: calc(var(--edge) + 18px); bottom: 18px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--muted); z-index: 1; }
  .grow { flex: none; }
  .rail div { height: 50%; }
  .tag { font-size: 12px; padding: 4px 12px; white-space: normal; flex: 0 1 auto; max-width: 100%; border-radius: 14px; }
  .head-row { flex-wrap: wrap; }
  h2 { letter-spacing: -1px; }
  .sm { line-height: 1.45; }
  .statement { font-size: 32px; letter-spacing: -.5px; }
  .statement.sm2 { font-size: 28px; }
  .display { letter-spacing: -2px; }
  .cover .inner, .divider .inner { min-height: calc(100svh - 68px); }
  .divider .inner { min-height: 62svh; }
  .numeral { display: none; }
  .logo { height: 34px; }
  .g4, .g5, .g6 { grid-template-columns: repeat(2, 1fr); }
  .g6.six3 { grid-template-columns: repeat(3, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g3.keep { grid-template-columns: repeat(3, 1fr); }
  .split, .split.w60, .split.w40 { grid-template-columns: 1fr; gap: 28px; }
  .pic-wrap.m-h { aspect-ratio: 16 / 9; height: auto !important; flex: none; }
  .map { aspect-ratio: 16 / 9; }
  .org-tier { grid-template-columns: repeat(2, 1fr) !important; }
  .org-card h4 { font-size: 19px; }
  .org-card p { font-size: 15px; }
  .org-card .r { font-size: 12px; }
  .tier-label { font-size: 12px; }
  .spine { grid-template-columns: repeat(2, 1fr); }
  .spine .lab, .spine .gear, .legend { display: none; }
  .spine .d p { font-size: 15px; }
  .legend, .foot-note { font-size: 14px; }
  .flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 26px; }
  .flow .st:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .iat { grid-template-columns: 1fr; gap: 26px; }
  .iat .hub::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .chain span { font-size: 14px; }
  .check { font-size: 12px; }
  .ladder .rung { min-height: 56px; }
  .letter p { font-size: 18px; }
  .signature { font-size: 30px; }
  .menu { padding: 88px calc(var(--edge) + 18px) 40px; }
  .menu-grid { columns: 2; column-gap: 28px; }
  .menu a { font-size: 15px; padding: 7px 0; }
  .ctl { min-width: 44px; height: 44px; font-size: 11px; }
  .ctl svg { width: 20px; height: 20px; }
  .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; }
  table.tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  table.tbl.stack { border: 0; background: transparent; }
  .tbl.stack tr:first-child { display: none; }
  .tbl.stack tr { background: var(--card); border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 14px 0; }
  .tbl.stack tr:nth-child(odd) td { background: transparent; }
  .tbl.stack td { padding: 5px 18px; }
  .tbl.stack td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}

/* phone */
@media (max-width: 767px) {
  html { font-size: 6.5px; }
  :root {
    --edge: 12px;
    --t-display: 44px; --t-h2: 32px; --t-h2-long: 30px; --t-stat: 44px; --t-h3: 23px; --t-h4: 20px;
    --t-body: 16px; --t-small: 15.5px; --t-label: 12px; --gap: 12px;
  }
  .rail, .topbar .chrome-txt { display: none; }
  .topbar { padding: 0 24px; }
  .inner { padding: 44px 28px 52px; gap: 24px; }
  .page-no { right: 28px; bottom: 16px; }
  .head-row { flex-wrap: wrap; gap: 10px; }
  .eyebrow { letter-spacing: 3px; }
  .kicker { letter-spacing: 2.5px; }
  .display { letter-spacing: -1.5px; }
  .statement { font-size: 27px; }
  .statement.sm2 { font-size: 24px; }
  
  .g2, .g3, .g4, .g5, .g3.keep, .spine { grid-template-columns: 1fr; }
  .rail-lab { font-size: 10px; letter-spacing: 1.5px; flex: none; }
  .ladder { min-width: 0; padding: 0 12px; }
  .ladder-wrap { gap: 8px; }
  .ladder .rung { font-size: 14px; gap: 8px; }
  .g6, .g6.six3 { grid-template-columns: repeat(2, 1fr); }
  .g2.keep, .g4.keep { grid-template-columns: repeat(2, 1fr); }
  .g4.keep .card { padding: 14px; }
  .span2 { grid-column: auto; }
  .card { padding: 20px 20px; }
  .card.tight { padding: 16px 18px; }
  .org-tier { grid-template-columns: 1fr !important; }
  .menu-grid { columns: 1; }
  .chain { flex-wrap: wrap; }
  .chain span { flex: 1 1 40%; }

  /* tables stack into labelled cards */
  table.tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  table.tbl { border: 0; background: transparent; }
  .tbl tr:first-child:has(th) { display: none; }
  .tbl tr { background: var(--card); border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 12px 0; }
  .tbl tr:nth-child(odd) td { background: transparent; }
  .tbl td { padding: 4px 16px; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
  .tbl td:first-child[data-l]::before { display: none; }
  .tbl td:first-child { font-size: 16px; }
  .tbl .ref { text-align: left; }
  .tbl.plain tr { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .tbl.plain td { width: auto; }
  .tbl.plain td[data-l]::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html { font-size: 10px; }
  body { overflow: visible; height: auto; background: var(--paper); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .botbar, .frame, .progress, .menu { display: none !important; }
  .paper { display: none; }
  .stage { position: static; margin: 0; width: 1920px; height: auto; }
  .slide { position: relative; inset: auto; width: 1920px; height: 1080px; opacity: 1; visibility: visible; break-after: page; overflow: hidden; }
  .slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
}

/* figure slot on the slide 27 alt (the mast) */
.fig-slot { min-height: 0; height: 100%; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .fig-slot { height: auto; }
}



/* Interac and Konek side by side: one grid, so each row lines up across both columns;
   all dividers are the frame colour */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; align-content: center; }
.brand-grid > * { padding: 0 4.8rem 0 0; min-width: 0; }
.brand-grid > :nth-child(even) { padding: 0 0 0 4.8rem; border-left: 1px solid var(--frame); }
.bg-logo { height: 20rem; display: flex; align-items: center; padding-bottom: 2.4rem !important; }
.bg-logo img { display: block; width: auto; }
.logo-interac { height: 16.4rem; }          /* solid badge: smaller box, same visual weight as the wordmark */
.logo-konek { height: 7.8rem; }
.bg-cell { padding-top: 0 !important; padding-bottom: 2.4rem !important; }
.bg-cell p { border-top: 1px solid var(--frame); padding-top: 2rem; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .brand-grid > * { padding-right: 16px; }
  .brand-grid > :nth-child(even) { padding-left: 16px; padding-right: 0; }
  .bg-logo { height: 96px; padding-bottom: 12px !important; }
  .logo-interac { height: 78px; }
  .logo-konek { height: 36px; }
  .bg-cell { padding-bottom: 14px !important; }
  .bg-cell p { padding-top: 12px; }
}

/* soft outlined card: frame-colour border on the paper surface */
.card.card-soft { background: #f6f4ef; border: 1px solid var(--frame); box-shadow: none; }
.card.card-soft h3 { font-size: var(--t-h4); line-height: 1.25; }

/* slide 6: a square stat box on the left, the statement on the right */
.obs-split { grid-template-columns: auto 1fr; gap: 8rem; align-items: center; }
.sq-box { width: 58rem; height: 58rem; max-width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 5.6rem; background: none; border: 1px solid var(--frame); border-radius: .8rem; text-align: center; }
.obs-num { font-size: 26rem; letter-spacing: -1.2rem; line-height: .85; font-variant-numeric: tabular-nums; }
.sq-rule { height: 1px; background: var(--frame); }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .obs-split { grid-template-columns: 1fr; gap: 28px; }
  .sq-box { height: auto; width: 100%; aspect-ratio: 1; padding: 28px; }
  .obs-num { font-size: 140px; letter-spacing: -6px; }
}

/* headline entrance: slide up by word (set up by deck.js; without it headlines simply show) */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.words .wi { display: inline-block; transform: translateY(115%); }
.words.words-in .wi { transform: none; transition: transform .75s cubic-bezier(.2, .75, .2, 1) calc(var(--i) * 55ms); }
@media (prefers-reduced-motion: reduce) { .words .wi { transform: none; } }
@media print { .words .wi { transform: none !important; } }

/* eyebrows: a fixed 18px on desktop, on every slide (dividers included) */
@media (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .eyebrow, .divider .eyebrow { font-size: 18px; }
}

/* section dividers (slides 7, 12, 20): the big number without its outline, smaller, sitting on the bottom edge */
.numeral.numeral-plain { text-shadow: none; font-size: 31.2rem; line-height: .74; top: auto; bottom: 9.6rem; transform: none; }

/* one rhythm on every content slide: headline, content and statement 4rem apart, the stack centred
   vertically. Blocks no longer stretch to fill the height, so image panels get a set height instead. */
.inner > .grow { flex: none; }
.pic-wrap.m-h { min-height: 40rem; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .pic-wrap.m-h { min-height: 0; }
}

/* years-with-client cards: centred, short divider between number and name */
.client-yrs { align-items: center; text-align: center; }
.yrs-rule { width: 90%; height: 1px; background: var(--frame); }

/* four E's cards: icon tile on the right, half the card's height */
.e-card { position: relative; padding-right: 12rem; }
.e-icon { position: absolute; right: 2.8rem; top: 50%; height: 50%; aspect-ratio: 1; transform: translateY(-50%); display: grid; place-items: center; }
.e-icon img { width: 100%; height: 100%; display: block; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  /* narrow cards: the icon sits above the title instead of beside it */
  .e-card { padding-right: 2.8rem !important; }
  .e-icon { position: static; order: -1; transform: none; height: 28px; width: 28px; }
}

/* the Six C's: wider gaps, icon on the right of each name */
.six-c { gap: 3.2rem; }
.six-c h4 { white-space: nowrap; font-size: 2.4rem; }
.c-card { align-items: center; text-align: center; gap: 1.6rem; }
.c-icon { width: 5.4rem; height: 5.4rem; flex: none; margin-bottom: .8rem; }

/* product cards: brand logos stand in for the brand names */
.prod-card { justify-content: center; }
.prod-card h3 { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.lg-interac { height: 6.4rem; width: auto; flex: none; }
.lg-konek { height: 4rem; width: auto; flex: none; }
/* body copy then statement, each full width */
.stack-full { display: flex; flex-direction: column; gap: 1.6rem; }
.stack-full > * { max-width: none; }

/* transparent cut-out images: shown whole, no frame fill */
.pic-cut { background: none; border-radius: 0; }
.pic-cut img { object-fit: contain; }

/* centred, narrower content column (e.g. slide 15) */
.inner-narrow { align-items: center; text-align: center; }
.inner-narrow > * { width: 100%; max-width: 108rem; margin-inline: auto; }

/* two columns, 2/3 + 1/3 (slide 19) */
.split-23 { display: grid; grid-template-columns: 2fr 1fr; gap: 6.4rem; align-items: center; }
.split-23 > .col { display: flex; flex-direction: column; gap: 4rem; min-width: 0; }
.split-23 > .stack-cards { gap: 1.6rem; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .split-23 { grid-template-columns: 1fr; gap: 24px; }
}

/* numbered cards: big watermark number on the right, 80% of the card's height */
.num-card { position: relative; overflow: hidden; min-height: 14rem; justify-content: center; }
.num-card h4 { position: relative; z-index: 1; padding-right: 4rem; }
.card-num { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); margin: 0;
  font-size: 10.7rem; line-height: .72; font-weight: 800; letter-spacing: -.4rem; color: rgba(255,255,255,.25); pointer-events: none; }
@media not all and (min-width: 1200px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .num-card { min-height: 110px; }
  .card-num { font-size: 84px; letter-spacing: -3px; right: 14px; }
}

/* small subhead above a group: sentence case, Cargo grey */
.subhead { font-size: var(--t-body); font-weight: 700; line-height: 1.3; color: var(--text); }
