/* Digital Factory — presentation (16:9 stage, scaled to the window).
   Same grammar as the website: ink headlines with a muted second clause, ruled columns instead of cards,
   blue and ink colour fields for the key slides, real photographs, the plan drawn to scale. Tokens in theme.css. */
html, body { height: 100%; overflow: hidden; }
body { background: var(--bg); }
.viewport { position: fixed; inset: 0; display: grid; place-items: center; }
.stage { width: 1600px; height: 900px; position: absolute; left: 50%; top: 50%; margin: -450px 0 0 -800px; flex: none; transform-origin: center center; background: var(--bg); overflow: hidden; color: var(--text); }

.slide { position: absolute; inset: 0; padding: 80px 100px 112px; z-index: 1; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateX(36px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), visibility 0s .55s; }
.slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.slide.prev { transform: translateX(-36px); }
.slide .r { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-in) var(--ease-out), transform var(--dur-in) var(--ease-out); }
.slide.active .r { opacity: 1; transform: none; }
.slide.active .r.d1 { transition-delay: .1s; } .slide.active .r.d2 { transition-delay: .22s; }
.slide.active .r.d3 { transition-delay: .34s; } .slide.active .r.d4 { transition-delay: .46s; }
.slide [data-split] .w { transition-delay: calc(var(--i) * 45ms + 100ms); }
.slide:not(.active) [data-split] .w { opacity: 0; transform: translateY(.35em); filter: blur(8px); transition-delay: 0ms; }

/* colour fields: the slide redefines the tokens, so every part below follows */
.tone-blue, .tone-ink, .stage[data-tone="blue"], .stage[data-tone="ink"] {
  --text: #fff; --text-2: rgba(255, 255, 255, .84); --text-3: rgba(255, 255, 255, .7);
  --border: rgba(255, 255, 255, .22); --border-strong: rgba(255, 255, 255, .55); --brand-text: #fff; --success-text: #fff;
}
.tone-blue { background: var(--brand); }
.tone-ink { background: #0F1115; }
[data-theme="dark"] .tone-ink, [data-theme="dark"] .stage[data-tone="ink"] {
  --text: #0F1115; --text-2: #3A404C; --text-3: #4A5160; --border: rgba(15, 17, 21, .16); --border-strong: rgba(15, 17, 21, .5); --brand-text: #1428A0;
}
[data-theme="dark"] .tone-ink { background: #F2F4F7; }

/* type */
.slide h1 { font-size: 140px; line-height: .95; font-weight: 800; letter-spacing: -.045em; }
.slide h2 { font-size: 60px; line-height: 1.02; font-weight: 800; letter-spacing: -.04em; max-width: 1220px; text-wrap: balance; }
.slide .hl { color: var(--text-3); }
.slide h3 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.slide p { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.slide .lead { font-size: 24px; line-height: 1.5; color: var(--text-2); max-width: 1180px; margin-top: 40px; }
.slide .lead b { color: var(--text); font-weight: 650; }
.src-note { font-size: 14px !important; color: var(--text-3) !important; margin-top: auto; padding-top: 24px; max-width: 1200px; }

/* ruled columns: a 2px rule, a heading, a short paragraph (the website's facts) */
.cols { display: grid; gap: 40px 48px; margin-top: 56px; list-style: none; padding: 0; }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols > * { border-top: 2px solid var(--text); padding-top: 22px; min-width: 0; }
.cols > * p { margin-top: 10px; }
.cols > .key { border-top-width: 8px; padding-top: 16px; }
.cols ul { list-style: none; padding: 0; margin-top: 14px; }
.cols ul li { font-size: 18px; line-height: 1.45; color: var(--text-2); padding: 6px 0; }
.cols.tight { gap: 28px 40px; margin-top: 44px; }
.cols.tight h3 { font-size: 22px; }
.cols.tight p { font-size: 16.5px; margin-top: 8px; }
.fig { display: block; font-size: 88px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: 22px; white-space: nowrap; }
.c3 .fig { font-size: 76px; }
.figs h3 { font-size: 24px; }
.figs p { font-size: 17px; }

/* title */
.title-slide { padding-top: 112px; }
.title-slide .promise { font-size: 34px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--text); margin-top: 22px; }
.meta { display: flex; gap: 56px; margin: 40px 0 0; }
.meta dt { font-size: 15px; font-weight: 600; color: var(--text-3); }
.meta dd { margin: 6px 0 0; font-size: 19px; font-weight: 500; color: var(--text); }
.title-twin { position: absolute; left: 70px; right: 70px; bottom: 104px; height: 300px; margin: 0; }
.title-twin canvas { width: 100%; height: 100%; display: block; }

/* text beside a photograph */
.with-photo { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; align-items: stretch; }
.with-photo .lhs { display: flex; flex-direction: column; min-width: 0; }
.with-photo h2 { font-size: 52px; }
.with-photo .cols { margin-top: 44px; }
.with-photo .lead { font-size: 21px; margin-top: auto; padding-top: 32px; }
.photo { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band { margin: 40px 0 0; flex: 1; min-height: 150px; border-radius: var(--r); overflow: hidden; background: var(--surface-3); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }

/* the 2030 road (as on the website) */
.road { list-style: none; padding: 30px 0 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--border-strong); }
.road li { position: relative; padding-right: 24px; }
.road li::before { content: ""; position: absolute; left: 0; top: -30px; width: 16px; height: 16px; border-radius: 5px; background: var(--bg); border: 2px solid var(--text-2); }
.road li.here::before { background: var(--brand-2); border-color: var(--brand-2); }
.road b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.road span { display: block; color: var(--text-2); margin-top: 6px; font-size: 17px; line-height: 1.45; max-width: 28ch; }
[data-id="mandate"] .cols { margin-top: 48px; gap: 32px 40px; }
[data-id="mandate"] .cols h3 { font-size: 23px; }
[data-id="mandate"] .cols p { font-size: 16.5px; }
[data-id="mandate"] .lead { margin-top: 36px; font-size: 22px; }
.have { font-size: 15px !important; font-weight: 650; color: var(--brand-text) !important; margin-top: 14px !important; line-height: 1.4 !important; }

/* from → to */
.vs { margin-top: 48px; max-width: 1400px; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; padding: 21px 0; border-bottom: 1px solid var(--border); font-size: 27px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; } /* taste-skill-ignore: a real table row */
.vs-row .old { color: var(--text-3); font-weight: 500; }
.vs-row i { color: var(--brand-2); display: grid; place-items: center; }
.vs-row i .icon { width: 24px; height: 24px; }
.vs-head { font-size: 16px; font-weight: 650; letter-spacing: 0; color: var(--text-3); border-bottom: 2px solid var(--text); padding: 0 0 14px; }
.vs-head span:last-child { color: var(--text); }

/* demo */
.demo-slide { padding-bottom: 104px; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.demo-head h2 { max-width: none; }
.demo-wrap { flex: 1; margin-top: 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border-strong); position: relative; background: var(--surface); } /* taste-skill-ignore: the frame of the embedded app */
.demo-wrap iframe { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; border: 0; transform-origin: 0 0; }

/* capability index (the website's list) */
.caplist { list-style: none; padding: 0; margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.caplist a { display: grid; grid-template-columns: 1fr 24px; gap: 4px 16px; padding: 17px 22px; border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; transition: background-color var(--dur-ui) var(--ease-out); }
.caplist a:hover { background: var(--brand-soft); }
.caplist b { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.caplist span { grid-column: 1; color: var(--text-2); font-size: 17px; line-height: 1.4; }
.caplist i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--brand-text); transition: transform var(--dur-ui) var(--ease-out); }
.caplist a:hover i { transform: translateX(4px); }
.caplist .icon { width: 22px; height: 22px; }

/* predictive maintenance: two shifts drawn to scale */
.uc { display: grid; grid-template-columns: 1.08fr 1fr; gap: 72px; margin-top: 52px; align-items: start; }
.tl { padding-bottom: 30px; }
.tl + .tl { padding-top: 30px; }
.tl .lbl { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.tl .bar { height: 60px; border-radius: 12px; display: flex; gap: 3px; overflow: hidden; }
.tl .bar span { display: grid; place-items: center; white-space: nowrap; color: #fff; font-size: 15px; font-weight: 700; }
.tl .cap { margin-top: 14px; font-size: 17px; }
.ruled { list-style: none; padding: 0; margin: 0; }
.ruled { border-top: 2px solid var(--text); padding-top: 8px; }
.ruled li { font-size: 21px; line-height: 1.45; color: var(--text-2); padding: 12px 0; }
.ruled b { color: var(--text); font-weight: 650; }
.ruled.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin-top: 52px; }

/* decisions: the questions are the content */
.asks { list-style: none; padding: 0; margin-top: 26px !important; }
.asks li { font-size: 25px !important; line-height: 1.3 !important; font-weight: 650; letter-spacing: -.015em; color: var(--text) !important; padding: 12px 0 !important; }
[data-id="decisions"] .cols h3 { font-size: 30px; }

/* architecture */
.arch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; margin-top: 48px; }
.arch-stack { border-top: 2px solid var(--text); }
.tier { display: grid; grid-template-columns: 200px 1fr; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); } /* taste-skill-ignore: a real table row */
.tier.floor { border-bottom: 2px solid var(--text); }
.tier .tn { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tier .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tier .chips span { font-size: 15px; padding: 7px 13px; border-radius: 999px; background: var(--surface); color: var(--text-2); white-space: nowrap; }
.side-box { border-top: 2px solid var(--text); padding-top: 18px; }
.side-box h3 { font-size: 20px; margin-bottom: 8px; }
.side-box h3 + ul + h3 { margin-top: 30px; }
.side-box ul { list-style: none; padding: 0; }
.side-box li { font-size: 16.5px; line-height: 1.45; color: var(--text-2); padding: 5px 0; }

/* business case */
.roi { display: grid; grid-template-columns: 620px 1fr; gap: 56px; margin-top: 44px; }
.roi-in { border-top: 2px solid var(--text); }
.roi-in label { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 16px; font-size: 17px; color: var(--text-2); padding: 9px 0; border-bottom: 1px solid var(--border); } /* taste-skill-ignore: form field rows */
.roi-in .input { font-size: 19px; font-weight: 700; text-align: right; height: 46px; font-variant-numeric: tabular-nums; }
.roi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-content: start; }
.roi-out .out { border-top: 2px solid var(--text); padding: 14px 0 22px; }
.roi-out .ol { font-size: 15px; font-weight: 600; color: var(--text-2); }
.roi-out .big { display: block; font-size: 46px; margin-top: 6px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
#oPay { color: var(--success-text); }
.roi-out .total { grid-column: 1 / -1; background: var(--brand); border: 0; border-radius: var(--r); padding: 26px 32px 30px; color: #fff; margin-top: 10px; }
.roi-out .total .ol { color: rgba(255, 255, 255, .84); }
.roi-out .total .big { font-size: 84px; color: #fff; letter-spacing: -.045em; }
.roi-out .total p#oNote { color: rgba(255, 255, 255, .86); font-size: 16px; margin-top: 10px; }

/* plan: the bar is the diagram */
.plan { list-style: none; padding: 0; display: flex; gap: 6px; margin-top: 56px; }
.plan li { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; }
.plan b { display: block; height: 150px; padding: 20px; border-radius: 14px; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.plan em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--text); margin-top: 16px; }
.plan span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--text-2); padding-right: 14px; }
.plan .s1 b { background: var(--brand); } .plan .s2 b { background: #1565D8; } .plan .s3 b { background: #0B7A43; } .plan .s4 b { background: #0F1115; }
.plan .s5 { margin-left: 22px; }
.plan .s5 b { background: transparent; color: var(--text); border: 2px dashed var(--border-strong); }
[data-theme="dark"] .plan .s4 b { background: #F2F4F7; color: #0F1115; }
.targets { margin-top: 52px; }
.targets .fig { font-size: 64px; margin-bottom: 10px; }
.targets p { font-size: 16.5px !important; margin-top: 0 !important; }

/* closing: the ask on the blue field */
.closing { justify-content: center; }
.closing h2 { font-size: 88px; line-height: .98; letter-spacing: -.045em; max-width: 1250px; }
.nsteps { margin-top: 64px; }
.nsteps b { display: block; font-size: 16px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.nsteps span { display: block; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.ctas { display: flex; gap: 14px; margin-top: 56px; }
.btn.on-field { background: #fff; color: #1428A0; border: 0; }
.btn.on-field:hover { background: #E8ECFA; }
.btn.on-field-2 { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn.on-field-2:hover { background: rgba(255, 255, 255, .1); }

/* footer + production-line progress (follow the active slide's field) */
.footer { position: absolute; left: 100px; right: 100px; bottom: 46px; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-3); pointer-events: none; transition: color .4s var(--ease-out); }
.footer .logo { color: var(--text); }
.footer .logo-mark { width: 24px; height: 24px; border-radius: 7px; }
.footer .logo-mark::before { left: 6px; top: 6px; width: 4px; height: 11px; }
.footer .logo-mark::after { left: 13px; top: 10px; width: 4px; height: 7px; }
.footer .logo-word { font-size: 15px; }
.stage[data-tone="blue"] .footer .logo-mark, .stage[data-tone="ink"] .footer .logo-mark { background: #fff; }
.stage[data-tone="blue"] .footer .logo-mark::before, .stage[data-tone="blue"] .footer .logo-mark::after,
.stage[data-tone="ink"] .footer .logo-mark::before, .stage[data-tone="ink"] .footer .logo-mark::after { background: #0F1115; }
[data-theme="dark"] .stage[data-tone="ink"] .footer .logo-mark { background: var(--brand); }
[data-theme="dark"] .stage[data-tone="ink"] .footer .logo-mark::before, [data-theme="dark"] .stage[data-tone="ink"] .footer .logo-mark::after { background: #fff; }
.prail { position: absolute; left: 100px; right: 100px; bottom: 18px; height: 16px; z-index: 3; }
.prail-line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--border-strong); border-radius: 2px; overflow: hidden; }
.prail-line i { display: block; height: 100%; width: 0; background: var(--text); transition: width .9s var(--ease-out); }
.prail-st { position: absolute; inset: 0; }
.prail-st span { position: absolute; top: 4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 2px; background: var(--bg); border: 1px solid var(--border-strong); transition: background .5s, border-color .5s; }
.stage[data-tone] .prail-st span { background: transparent; }
.prail-st span.done { background: var(--text); border-color: var(--text); }
.piece { position: absolute; top: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 5px; background: var(--brand-2); transition: left .9s var(--ease-out); }
.stage[data-tone="blue"] .piece { background: #fff; }

/* controls outside the stage */
.controls { position: fixed; right: 16px; top: 14px; z-index: 20; display: flex; gap: 6px; opacity: .4; transition: opacity .3s; }
.controls:hover, .controls:focus-within { opacity: 1; }
.controls button, .controls a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.controls .icon { width: 18px; height: 18px; }
.counter { position: fixed; left: 16px; top: 18px; z-index: 20; font-size: 14px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; background: var(--bg); padding: 4px 8px; border-radius: 8px; }
.notes { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-height: 34vh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); padding: 16px 24px 22px; /* taste-skill-ignore: overlay drawer */ transform: translateY(100%); transition: transform .3s var(--ease-out); font-size: 17px; line-height: 1.7; }
.notes.open { transform: none; }
.notes .nt { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--brand-text); }
.help { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 25; font-size: 14px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong); padding: 8px 16px; border-radius: 99px; transition: opacity .6s; }

/* field slides: the headline owns the top, the evidence sits on the bottom edge (as the website's fields) */
body[data-tone="blue"] { background: var(--brand); }
body[data-tone="ink"] { background: #0F1115; }
[data-theme="dark"] body[data-tone="ink"] { background: #F2F4F7; }
[data-id="summary"] h2 { font-size: 112px; line-height: .95; letter-spacing: -.045em; max-width: 1300px; }
[data-id="summary"] .cols { margin-top: auto; }
[data-id="summary"] .cols p { font-size: 20px; }
[data-id="lighthouses"] h2 { font-size: 84px; line-height: .98; letter-spacing: -.045em; }
[data-id="lighthouses"] .cols { margin-top: auto; }
[data-id="lighthouses"] .fig { font-size: 104px; }
[data-id="lighthouses"] .src-note { margin-top: 0; padding-top: 36px; }
[data-id="team"] .photo img { object-position: 64% center; }

/* slides with less copy run larger, so the page is full rather than sparse */
[data-id="maintenance"] .uc { margin-top: 64px; }
[data-id="maintenance"] .tl .bar { height: 76px; }
[data-id="maintenance"] .tl .lbl { font-size: 20px; }
[data-id="maintenance"] .tl .cap { font-size: 19px; }
[data-id="maintenance"] .tl { padding-bottom: 40px; }
[data-id="maintenance"] .tl + .tl { padding-top: 40px; }
[data-id="maintenance"] .ruled li { font-size: 24px; padding: 22px 0; }
[data-id="quality"] .cols { margin-top: 72px; }
[data-id="quality"] .fig { font-size: 80px; margin-bottom: 26px; }
[data-id="quality"] .cols h3 { font-size: 28px; }
[data-id="quality"] .cols p { font-size: 19px; }
[data-id="quality"] .ruled.two { margin-top: auto; }
[data-id="quality"] .ruled li { font-size: 23px; padding: 20px 0; }
[data-id="decisions"] .cols { margin-top: 64px; }
[data-id="decisions"] .cols h3 { font-size: 36px; }
[data-id="decisions"] .cols > * > p { font-size: 20px; }
[data-id="decisions"] .asks li { font-size: 30px !important; padding: 20px 0 !important; }
[data-id="decisions"] .lead { margin-top: auto; font-size: 28px; }
.roi-out .total .big { font-size: 76px; white-space: nowrap; }
