/* ONROL — iOS appearance.
 * Follows Apple's interface conventions: system colours and materials, large
 * titles, inset grouped lists, a bottom tab bar on phones, a floating top tab bar on iPad and a macOS window on desktop
 * screens. One tint colour, ONROL orange, darkened in light mode so tinted text
 * keeps a 4.5:1 contrast. Secondary text is slightly stronger than Apple's
 * default for the same reason.
 */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --fill: rgba(118, 118, 128, 0.12);
  --fill-strong: rgba(118, 118, 128, 0.2);
  --label: #000000;
  --label-2: #6b6b70;
  --label-3: rgba(60, 60, 67, 0.3);
  --sep: rgba(60, 60, 67, 0.22);
  --bar: rgba(249, 249, 249, 0.82);
  --tint: #c2410c;
  --tint-fill: #c2410c;
  --on-tint: #ffffff;
  --tint-soft: rgba(194, 65, 12, 0.12);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.14);
  --seg-on: #ffffff;

  --r-group: 12px;
  --r-card: 22px;
  --gutter: 16px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font-family: var(--font); font-size: 17px; line-height: 1.3; letter-spacing: calc(var(--trk, 1) * -0.011em);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, a, summary { touch-action: manipulation; }
button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; color: inherit; letter-spacing: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; border-radius: 8px; }
main:focus, .large-title:focus { outline: none; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 12px 16px; border-radius: 12px; background: var(--tint-fill); color: var(--on-tint); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- shell ---------- */

.device, .screen { height: 100vh; height: 100dvh; }
.screen { position: relative; overflow: hidden; background: var(--bg); transform: translateZ(0); }
.app { scroll-padding-top: 64px; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.app::-webkit-scrollbar { display: none; }
.sidebar, .menubar, .nav-fwd { display: none; }
.nav-left { display: contents; }
.stage { min-width: 0; }

.navbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 44px; padding: env(safe-area-inset-top) 8px 0;
  border-bottom: 0.5px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
}
.navbar.is-collapsed { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--sep); }
.nav-back { justify-self: start; display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0 8px 0 0; color: var(--tint); max-width: 44vw; }
.nav-back svg { width: 12px; height: 21px; flex: none; }
.nav-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-title { grid-column: 2; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; opacity: 0; transition: opacity 200ms ease; }
.navbar.is-collapsed .nav-title { opacity: 1; }
.nav-action { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; color: var(--tint); font-size: 15px; font-weight: 500; }
.nav-action svg { width: 22px; height: 22px; }

main { margin: 0; padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
main.push { animation: push 380ms var(--ease) both; }
main.pop { animation: pop 380ms var(--ease) both; }
@keyframes push { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px 0 env(safe-area-inset-bottom);
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 49px; padding-top: 4px; color: var(--label-2); font-size: 12px; font-weight: 500; }
.tab svg { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--tint); }

/* ---------- type ---------- */

.eyebrow { padding-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tint); }
.large-title { padding-top: 2px; font-size: 34px; line-height: 1.19; font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.022em); text-wrap: balance; }
.lede { margin-top: 8px; font-size: 17px; line-height: 1.38; color: var(--label-2); max-width: 60ch; }
.body { font-size: 17px; line-height: 1.42; }
.body p + p { margin-top: 12px; }

/* ---------- programme cards (home) ---------- */

.cards { display: grid; gap: 20px; margin-top: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  min-height: min(430px, 62vh); padding: 20px; border-radius: var(--r-card);
  color: #fff; box-shadow: var(--shadow-card), 0 0 0 0.5px var(--sep); isolation: isolate;
  transition: transform 260ms var(--ease);
}
.card:active { transform: scale(0.975); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -2; background-color: #04060e; background-image: var(--art); background-size: cover; background-position: var(--art-at, center); background-repeat: no-repeat; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.78) 100%); }
.card-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.card-title { margin-top: 6px; font-size: 28px; line-height: 1.14; font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.022em); text-wrap: balance; max-width: 16ch; }
.card-sub { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
/* Artwork rendered in Blender: blender/build_galaxy.py (card mode) and blender/build_art.py. */
.art-ai { --art: url("media/galaxy-card.webp"); --art-at: 50% 38%; }
.art-cyber { --art: url("media/art-cyber.webp"); --art-at: 50% 12%; }
.art-csv { --art: url("media/art-csv.webp"); --art-at: 50% 22%; }

/* ---------- facts row ---------- */

.facts { display: flex; margin: 20px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; border-top: 0.5px solid var(--sep); border-bottom: 0.5px solid var(--sep); }
.facts::-webkit-scrollbar { display: none; }
.fact { flex: 1 1 0; min-width: 76px; padding: 12px 6px; text-align: center; }
.fact + .fact { border-left: 0.5px solid var(--sep); }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--label-2); white-space: nowrap; }
.fact dd { margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.02em); white-space: nowrap; }
.fact dd small { display: block; margin-top: 1px; font-size: 13px; font-weight: 500; color: var(--label-2); letter-spacing: 0; }

/* ---------- inset grouped lists ---------- */

.section { margin-top: 28px; }
.group-head { padding: 0 16px 7px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--label-2); }
.group { background: var(--surface); border-radius: var(--r-group); overflow: hidden; }
.group-foot { padding: 7px 16px 0; font-size: 13px; line-height: 1.38; color: var(--label-2); }
.cell { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 16px; width: 100%; text-align: left; }
.cell + .cell::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; border-top: 0.5px solid var(--sep); }
.cell.has-lead + .cell.has-lead::before { left: 58px; }
a.cell:active, button.cell:active { background: var(--fill); }
.lead { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--tint-soft); color: var(--tint); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cell-main { flex: 1; min-width: 0; }
.cell-title { display: block; font-size: 17px; line-height: 1.3; }
.cell-sub { display: block; margin-top: 2px; font-size: 15px; line-height: 1.34; color: var(--label-2); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell-value { flex: none; font-size: 17px; color: var(--label-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chev { flex: none; width: 8px; height: 14px; color: var(--label-3); }
.check { flex: none; width: 18px; height: 18px; color: var(--tint); }
.cell-block { display: block; }
.cell-block .cell-title { font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--fill); font-size: 15px; }

details.cell { display: block; cursor: pointer; }
details.cell summary { list-style: none; display: flex; align-items: flex-start; gap: 12px; }
details.cell summary::-webkit-details-marker { display: none; }
details.cell summary .chev { margin-top: 5px; transition: transform 200ms var(--ease); }
details.cell[open] summary .chev { transform: rotate(90deg); }
details.cell .answer { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--label-2); }
details.cell.has-lead .answer { margin-left: 42px; }
details.cell .answer strong { color: var(--label); font-weight: 600; }
details.cell.has-lead summary { align-items: center; }
.opts { display: grid; gap: 6px; margin-top: 10px; }
.opts li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.34; color: var(--label-2); }
.opts li::before { content: attr(data-l); position: absolute; left: 0; top: 0; width: 18px; font-size: 13px; font-weight: 600; color: var(--tint); }

details.cell.dis { padding: 0 16px; }
details.cell.dis summary { min-height: 44px; align-items: center; padding: 11px 0; }
details.cell.dis summary .chev { margin-top: 0; }
.dis-body { padding: 0 0 14px; font-size: 15px; line-height: 1.45; }
.dis-body p + p { margin-top: 10px; }
.dis-body .chips { padding: 12px 0 0; }
.dis-sub { margin-top: 14px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; color: var(--label-2); }
.dis-item strong { display: block; font-weight: 600; }
.dis-item { color: var(--label); }

/* ---------- student mode ---------- */

.study-cta { margin-top: 20px; }
.study-dots { display: flex; gap: 6px; margin-top: 16px; }
.study-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--fill); }
.study-dots i.on { background: var(--tint); }
.study-body { margin-top: 22px; font-size: 19px; line-height: 1.5; }
.study-body p + p { margin-top: 14px; }
.study-body .chips { padding: 14px 0 0; }
.study-body .dis-item { margin-top: 14px; }
.study-body .dis-sub { margin-top: 24px; }
.study-lead { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: calc(var(--trk, 1) * -0.015em); }
.study-body details.cell { margin-top: 10px; background: var(--surface); border-radius: var(--r-group); }
.study-nav { display: flex; gap: 12px; margin-top: 32px; }
.study-nav .btn { flex: 1; }
.quiz { margin-top: 22px; }
.quiz-q { margin-bottom: 10px; font-size: 17px; font-weight: 600; }
.quiz-opt { display: block; width: 100%; margin-bottom: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep); text-align: left; font-size: 17px; line-height: 1.3; }
.quiz-opt:disabled { cursor: default; opacity: 1; color: inherit; }
.quiz-opt.correct { background: rgba(52, 199, 89, 0.18); box-shadow: 0 0 0 1.5px #34c759; }
.quiz-opt.correct::before { content: "Correct answer: "; font-weight: 600; }
.quiz-opt.wrong { background: rgba(255, 59, 48, 0.12); box-shadow: 0 0 0 1.5px #ff3b30; }
.quiz-opt.wrong::before { content: "Your answer: "; font-weight: 600; }
.quiz-why { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--label-2); }
.quiz-why strong { color: var(--label); }

/* ---------- presentations: the stage ---------- */

.is-present .navbar, .is-present .tabbar, .is-present .sidebar, .is-present .menubar { display: none; }
.is-present .screen { background: #f6f3ef; }
.is-present .app { background: radial-gradient(1100px 620px at 88% -12%, rgba(194, 65, 12, 0.13), transparent 62%), radial-gradient(900px 560px at -8% 112%, rgba(194, 65, 12, 0.07), transparent 60%), #f6f3ef; }
.is-present main { display: flex; flex-direction: column; max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px) 40px; }
.stage-top { order: -3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; }
.stage-brand { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; }
.stage-count { font-size: 14px; color: #6b665f; font-variant-numeric: tabular-nums; text-align: right; }
.stage-progress { order: -2; height: 3px; margin-top: 16px; border-radius: 3px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.stage-progress i { display: block; height: 100%; border-radius: 3px; background: var(--tint); transition: width 400ms var(--ease); }
.is-present .eyebrow { align-self: flex-start; margin-top: 40px; padding: 7px 14px; border-radius: 99px; background: var(--tint-soft); color: var(--tint); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.is-present .large-title { margin-top: 16px; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.03; font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.04em); text-wrap: balance; }
.present-body { margin-top: 28px; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.5; color: #2b2825; }
.present-lead { max-width: 36em; margin-bottom: 4px; font-size: clamp(19px, 2vw, 28px); line-height: 1.38; color: #5c5750; }
.deck-label { margin: 36px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tint); }
.deck-prose { max-width: 46em; }
.deck-prose p + p { margin-top: 14px; }
.deck-note { margin-top: 16px; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.45; color: #6b665f; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.stats > div, .present-cols > div, .present-pair > div, .deck-steps li, .dblock { background: #fff; border: 1px solid rgba(60, 30, 10, 0.06); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 18px 40px -22px rgba(60, 30, 10, 0.25); }
.stats > div { padding: 22px 26px; border-radius: 24px; }
.stats b { display: block; font-size: clamp(34px, 4.4vw, 62px); font-weight: 700; line-height: 1; letter-spacing: calc(var(--trk, 1) * -0.04em); color: var(--tint); }
.stats span { display: block; margin-top: 10px; font-size: 14px; color: #6b665f; }
.present-cols, .present-pair { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 760px) { .present-cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .present-pair { grid-template-columns: 1fr 1fr; } }
.present-cols > div, .present-pair > div { padding: 24px 26px; border-radius: 24px; }
.present-cols h3, .present-pair h3, .present-cols h2, .present-pair h2 { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tint); }
.present-cols p, .present-pair p { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; }
.present-pair p + p { margin-top: 8px; }
.present-pair p span { color: #6b665f; }
.deck-steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; font-size: clamp(15px, 1.5vw, 20px); line-height: 1.45; }
.deck-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 22px; border-radius: 20px; counter-increment: step; }
.deck-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: #fff; font-size: 14px; font-weight: 700; }
.present-body .chips { padding: 0; }
.present-body .chip { padding: 8px 16px; border: 1px solid rgba(0, 0, 0, 0.08); background: #fff; font-size: clamp(13px, 1.2vw, 16px); }
.present-body .chip[aria-current="true"], .present-body .chip[aria-pressed="true"] { background: var(--tint); border-color: transparent; color: #fff; }
.blocks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.blk { display: inline-flex; flex-direction: column; align-items: center; min-width: 88px; padding: 11px 14px; border-radius: 14px; font-size: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); }
.blk b { font-size: 15px; }
.blk-lab { background: var(--tint); border-color: transparent; color: #fff; }
.blk-theory { background: linear-gradient(180deg, #0e8782, #0b6b67); border-color: transparent; color: #fff; }
.deck-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 4px; }
.deck-controls .deck-label { margin: 0 4px 0 0; }
.deck-controls .deck-gap { margin-left: 18px; }
.deck-n { min-width: 2ch; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.dblocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.dblock { padding: 20px 22px; border-radius: 22px; }
.dblock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.dblock-head span:last-child { margin-left: auto; color: #6b665f; }
.dkind { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; background: #ece8e2; }
.dkind-lab { background: var(--tint); color: #fff; }
.dblock ol { margin: 0; padding: 0; list-style: none; }
.dblock li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 8px 0; border-top: 0.5px solid rgba(0, 0, 0, 0.08); font-size: 15px; line-height: 1.35; }
.dp { font-size: 12px; font-weight: 700; color: #6b665f; }
.dm { font-size: 13px; color: #6b665f; font-variant-numeric: tabular-nums; }
.deck-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.deck-tabs a { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); font-size: 13px; }
.deck-tabs a[aria-current="true"] { background: var(--tint); border-color: transparent; color: #fff; font-weight: 600; }
.deck-dots { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.deck-dots a { width: 8px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.16); transition: width 240ms var(--ease); }
.deck-dots a[aria-current="true"] { width: 24px; background: var(--tint); }
.present-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 20px 0 8px; background: rgba(246, 243, 239, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.present-nav .btn { width: auto; min-width: 140px; border-radius: 999px; }
.present-exit { color: #6b665f; font-size: 15px; }
.slide-all { padding: 28px 0; border-top: 0.5px solid var(--sep); }
.slide-title { font-size: clamp(30px, 5vw, 56px); line-height: 1.08; letter-spacing: calc(var(--trk, 1) * -0.03em); }
.is-present .report-actions .present-exit { margin-left: 12px; }
.deck-domains { padding: 0; margin: 16px 0 8px; }
.plan-picker + .plan-picker, .segmented + .segmented { margin-top: 12px; }
.search + .deck-domains { margin-top: 14px; }
.deck-domains .chip { border: 0; }
.deck-domains .chip[aria-pressed="true"] { background: var(--tint); color: #fff; }

/* ---------- report ---------- */

.report-foot { margin-top: 24px; }

/* ---------- plan explorer ---------- */

.plan-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.plan-bar i { display: block; height: 100%; border-radius: 2px; background: var(--tint); }
.plan-label { margin-top: 20px; padding-left: 0; }
.segmented.plan-picker { margin-top: 0; }
.plan-picker button { font-size: 12px; }

/* ---------- controls ---------- */

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 20px; padding: 2px; border-radius: 9px; background: var(--fill); }
.segmented button { min-height: 32px; border-radius: 7px; font-size: 13px; font-weight: 500; transition: background 200ms var(--ease); }
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--seg-on); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.segmented.is-tall button { min-height: 44px; font-size: 15px; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 20px; border-radius: 14px; font-size: 17px; font-weight: 600; }
.btn-fill { background: var(--tint-fill); color: var(--on-tint); }
.btn-gray { background: var(--fill); color: var(--tint); }
.btn:active { opacity: 0.7; }

.search { position: relative; margin-top: 12px; }
.search svg { position: absolute; left: 9px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--label-2); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 12px 0 34px; border: 0; border-radius: 11px; background: var(--fill); }
.search input::placeholder { color: var(--label-2); }
.empty { padding: 56px 16px; text-align: center; color: var(--label-2); }
.empty strong { display: block; margin-bottom: 4px; font-size: 22px; font-weight: 700; color: var(--label); letter-spacing: calc(var(--trk, 1) * -0.02em); }

/* ---------- sheet ---------- */

.backdrop { position: absolute; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.4); animation: fade 240ms ease both; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 100;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: var(--bg);
  animation: rise 420ms var(--ease) both;
}
.grabber { display: block; width: 36px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: var(--label-3); }
.sheet-title { font-size: 22px; font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.02em); }
.sheet-note { margin: 4px 0 16px; font-size: 15px; color: var(--label-2); }
.sheet .btn { margin-top: 16px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- iPad and other touch screens: iPadOS, floating tab bar at the top ---------- */

@media (min-width: 600px) {
  .device { position: fixed; inset: 0; }
  .navbar { min-height: 60px; padding: 6px 20px 0; }
  .nav-back, .nav-action { font-size: 17px; }
  .tabbar { top: 10px; bottom: auto; left: 50%; right: auto; width: auto; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border: 0.5px solid var(--sep); border-radius: 999px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); z-index: 70; }
  .tab { flex-direction: row; gap: 8px; min-height: 38px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; }
  .tab svg { width: 20px; height: 20px; }
  .tab[aria-current="page"] { background: var(--fill); color: var(--tint); }
  main { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; }
  main.is-wide { max-width: 1120px; }
  .large-title { font-size: 40px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { min-height: 460px; }
  .card-title { font-size: 24px; max-width: none; }
  .backdrop { background: rgba(0, 0, 0, 0.3); }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; max-width: calc(100% - 48px); transform: translate(-50%, -50%); border-radius: 16px; padding-top: 20px; animation: fade 240ms ease both; }
  .grabber { display: none; }
}

/* ---------- desktop with a mouse: macOS window, sidebar, toolbar ---------- */

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  :root { --bg: #f5f5f5; --surface: #ffffff; --fill: rgba(0, 0, 0, 0.06); --sep: rgba(0, 0, 0, 0.1); --bar: rgba(236, 236, 236, 0.78); --r-group: 10px; --tint-fill: #c2410c; --on-tint: #ffffff; --seg-on: #ffffff; }
  body { font-size: 13px; line-height: 1.38; letter-spacing: 0; cursor: default; }
  /* the desktop around the window */
  body { background: radial-gradient(1100px 700px at 12% 8%, #ffd9bd 0%, transparent 60%), radial-gradient(900px 700px at 90% 20%, #b9c6ff 0%, transparent 60%), radial-gradient(1000px 800px at 50% 110%, #f6b9d3 0%, transparent 55%), #e9dcf5; background-attachment: fixed; }
  .menubar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: 28px; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; color: #000; background: rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); user-select: none; }
  .mb-l, .mb-r { display: flex; align-items: center; gap: 18px; }
  .mb-l b { font-weight: 700; }
  .mb-apple { width: 14px; height: 17px; margin-right: -4px; }
  .device { top: 44px; right: max(24px, calc((100vw - 1320px) / 2)); bottom: 28px; left: max(24px, calc((100vw - 1320px) / 2)); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35), 0 22px 70px rgba(0, 0, 0, 0.35); }
  .screen { border-radius: 12px; }
  .sidebar { border-radius: 12px 0 0 12px; }
  .nav-left { display: flex; grid-column: 1; justify-self: start; align-items: center; gap: 2px; }
  .nav-fwd { display: inline-flex; align-items: center; justify-content: center; width: 28px; min-height: 28px; border-radius: 6px; color: var(--label-2); }
  .nav-fwd svg { width: 9px; height: 15px; }
  .nav-fwd:hover { background: var(--fill); }

  button, summary, a { cursor: default; }
  .screen { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 1px; height: 100%; padding: 0 10px 12px; overflow-y: auto; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); border-right: 0.5px solid var(--sep); }
  .traffic { flex: none; display: flex; align-items: center; gap: 8px; height: 52px; padding-left: 8px; }
  .traffic i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
  .traffic i:nth-child(1) { background: #ff5f57; } .traffic i:nth-child(2) { background: #febc2e; } .traffic i:nth-child(3) { background: #28c840; }
  .side-head { padding: 14px 10px 4px; font-size: 12px; font-weight: 600; color: var(--label-2); }
  .side-item { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; }
  .side-item svg { width: 16px; height: 16px; color: var(--tint); flex: none; }
  .side-item:hover { background: var(--fill); }
  .side-item[aria-current="page"] { background: var(--tint-fill); color: #fff; font-weight: 500; }
  .side-item[aria-current="page"] svg { color: #fff; }
  .side-spacer { flex: 1; }
  .navbar { min-height: 52px; padding: 0 16px; }
  .nav-back { min-height: 28px; padding: 0 8px; border-radius: 6px; color: var(--label-2); }
  .nav-back:hover { background: var(--fill); }
  .nav-back svg { width: 9px; height: 15px; }
  .nav-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-title { font-size: 13px; }
  .nav-action { min-height: 28px; padding: 0 10px; border-radius: 6px; background: var(--fill); color: var(--label); font-size: 13px; font-weight: 400; }
  .nav-action svg { width: 15px; height: 15px; }
  main { max-width: 720px; padding: 4px 32px 48px; }
  main.is-wide { max-width: 1000px; }
  .large-title { font-size: 26px; line-height: 1.2; letter-spacing: calc(var(--trk, 1) * -0.01em); }
  .eyebrow, .group-head, .fact dt, .card-eyebrow, .dis-sub { font-size: 12px; }
  .lede, .body, .cell-title, .cell-value, .dis-body, .group-foot { font-size: 13px; line-height: 1.45; }
  .cell-sub { font-size: 12px; }
  .group-foot { font-size: 12px; }
  .group { box-shadow: 0 0 0 0.5px var(--sep); }
  .cell { min-height: 32px; padding: 6px 12px; }
  a.cell:hover, button.cell:hover { background: var(--fill); }
  .cell + .cell::before { left: 12px; }
  .cell.has-lead + .cell.has-lead::before { left: 44px; }
  .lead { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
  .group-head { padding: 0 12px 5px; }
  .group-foot { padding: 5px 12px 0; }
  .chip { padding: 3px 10px; font-size: 12px; }
  details.cell.dis { padding: 0 12px; }
  details.cell.dis summary { min-height: 32px; padding: 6px 0; }
  .segmented { max-width: 340px; border-radius: 7px; }
  .segmented button { min-height: 24px; font-size: 12px; border-radius: 5px; }
  .fact dd { font-size: 16px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card { min-height: 340px; border-radius: 12px; padding: 16px; }
  .card-title { font-size: 20px; }
  .card-sub { font-size: 13px; }
  .card:hover { transform: none; }
  .btn { min-height: 32px; font-size: 13px; border-radius: 7px; }
  .search input { height: 28px; border-radius: 7px; }
  .sheet { width: 400px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 0.5px var(--sep); }
  .sheet-title { font-size: 15px; }
  .sheet-note { font-size: 13px; }
  :focus-visible { outline-width: 2px; outline-offset: 1px; }
  .mtable { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 0.5px var(--sep); font-size: 13px; }
  .mtable th { position: sticky; top: 52px; z-index: 2; padding: 6px 12px; text-align: left; font-size: 12px; font-weight: 500; color: var(--label-2); background: var(--surface); border-bottom: 0.5px solid var(--sep); }
  .mtable th:first-child { border-top-left-radius: 8px; } .mtable th:last-child { border-top-right-radius: 8px; }
  .mtable td { height: 30px; padding: 4px 12px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtable .num { text-align: right; font-variant-numeric: tabular-nums; }
  .mtable tbody tr:nth-child(even) { background: color-mix(in srgb, var(--label) 3%, transparent); }
  .mtable tbody tr:hover { background: var(--tint-soft); }
  .mtable tbody tr { cursor: default; }
  .mtable td a { color: inherit; font-weight: 500; }
  .mtable td a:focus-visible { outline-offset: -2px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; margin-top: 18px; }
  .doc-sec { margin-bottom: 26px; }
  .doc-sec h2 { margin-bottom: 8px; font-size: 15px; font-weight: 700; }
  .doc p { font-size: 13px; line-height: 1.55; }
  .doc p + p { margin-top: 9px; }
  .doc .chips { padding: 10px 0 0; }
  .doc-list { padding-left: 20px; list-style: decimal; line-height: 1.55; }
  .doc-list li + li { margin-top: 6px; }
  .doc-dl dt { margin-top: 10px; font-weight: 600; }
  .doc-dl dd { margin: 2px 0 0; line-height: 1.5; color: var(--label-2); }
  .inspector { position: sticky; top: 64px; padding: 4px 14px 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep); }
  .insp-h { margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--label-2); }
  .insp-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 0.5px solid var(--sep); }
  .insp-row span:first-child { color: var(--label-2); }
  .insp-row:last-of-type { border-bottom: 0; }
  .inspector .chips { padding: 4px 0 0; }
  .insp-link { display: block; padding: 3px 0; color: var(--tint); }
  .insp-link:hover { text-decoration: underline; }
  main.is-wide { max-width: 1040px; }
  .study-body { max-width: 640px; font-size: 15px; line-height: 1.55; }
  .study-lead { font-size: 18px; }
  .quiz-q, .quiz-opt { font-size: 13px; }
  .quiz-opt { padding: 8px 12px; border-radius: 8px; }
  .quiz-why { font-size: 12px; }
  .study-nav { max-width: 640px; }
  .study-nav .btn { flex: 0 0 auto; width: auto; min-width: 140px; padding: 0 20px; }
  .study-nav .btn-fill { margin-left: auto; }
  .study-cta .btn { width: auto; min-width: 180px; padding: 0 20px; }
  body.is-present { background: var(--bg); }
  .is-present .device { top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; box-shadow: none; }
  .is-present .screen { grid-template-columns: minmax(0, 1fr); border-radius: 0; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  body, body.is-present { background: #fff; }
  .menubar, .sidebar, .tabbar, .navbar, .report-actions, .backdrop, .sheet { display: none !important; }
  .device { position: static !important; box-shadow: none !important; border-radius: 0 !important; }
  .screen, .app { height: auto !important; overflow: visible !important; transform: none !important; display: block !important; }
  main { max-width: none; padding: 0 !important; }
  .group, .cell { break-inside: avoid; }
  .slide-all { break-after: page; border: 0; }
  .is-present main { max-width: none; }
  .stage-top, .stage-progress, .present-nav, .deck-dots, .deck-tabs { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.lede + .segmented.plan-picker { margin-top: 18px; }

/* ---------- ONROL logo ---------- */
.nav-logo { justify-self: start; height: 26px; width: auto; margin-left: 8px; }
.nav-back:not([hidden]) + .nav-logo { display: none; }
.stage-logo { height: 27px; width: auto; }
.print-brand { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .nav-logo { display: none; }
  .side-logo { display: block; padding: 2px 10px 14px; }
  .side-logo img { height: 30px; width: auto; }
  .mb-mark { width: 14px; height: 14px; margin-right: 2px; }
}
@media print { .print-brand { display: block; height: 36px; margin-bottom: 12px; } }

/* ---------- engagements ---------- */
.eng-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.eng-actions .btn { min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; }
.frow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border-bottom: 0.5px solid var(--sep); }
.frow:last-child { border-bottom: 0; }
.flabel { font-size: 17px; }
.fin { width: 100%; min-width: 0; min-height: 36px; padding: 4px 0; border: 0; border-radius: 8px; background: transparent; color: var(--label); font: inherit; text-align: right; letter-spacing: inherit; }
select.fin { text-align-last: right; appearance: none; -webkit-appearance: none; cursor: pointer; }
.fin::placeholder { color: rgba(60, 60, 67, 0.55); }
.fin:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; background: var(--surface); }
.ftext, .fdays { grid-template-columns: 1fr; align-items: start; }
.ftext .fin { text-align: left; padding: 8px 10px; background: var(--fill); resize: vertical; font-size: 16px; }
.fdays .chips { padding: 4px 0 4px; }
.fdays .chip { min-width: 52px; min-height: 40px; text-align: center; font-weight: 500; }
.fdays .chip[aria-pressed="true"] { background: var(--tint-fill); color: var(--on-tint); font-weight: 600; }
.eng-note { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r-group); background: var(--tint-soft); font-size: 15px; line-height: 1.4; }
.eng-note.warn { background: #fff4d6; }
.eng-foot { padding: 12px 0 0; }
.eng-small { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.eng-danger { color: #b3261e; }
.eng-foot-actions { margin-top: 24px; }
.print-only { display: none; }
@media print {
  .eng-form, .eng-actions, .eng-foot-actions { display: none !important; }
  .print-only { display: block; }
}
.eng-facts .fact { flex: 1 0 118px; }
.eng-facts .fact dd small { white-space: normal; line-height: 1.25; }
@media (min-width: 600px) { .eng-actions .btn { width: auto; min-width: 200px; } }

/* ---------- gap report ---------- */
.gap-group { margin-top: 20px; }
.gap-group > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 16px 7px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--label-2); }
.gap-group > summary::-webkit-details-marker { display: none; }
.gap-count { text-transform: none; letter-spacing: 0; font-weight: 400; }
.gap-bar { margin-top: 22px; }
.gap-bar .segmented { margin-top: 0; }
.gap-row.is-on { background: var(--tint-soft); }
.switch { position: relative; flex: none; width: 51px; height: 31px; margin-left: 12px; border-radius: 16px; background: rgba(120, 120, 128, 0.32); transition: background 200ms var(--ease); }
.switch i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 200ms var(--ease); }
.switch[aria-checked="true"] { background: var(--tint-fill); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.switch::after { content: ""; position: absolute; inset: -7px -4px; }
.gap-row { align-items: center; }
.gap-print h2 { font-size: 22px; margin-bottom: 4px; } .gap-print h3 { margin-top: 18px; } .gap-print h4 { margin: 12px 0 4px; } .gap-print ul { margin-left: 18px; list-style: disc; }
@media print { .gap-group, .gap-bar, .eng-form { display: none !important; } .gap-print { display: block; } .eng-facts { margin-top: 12px; } }
.gap-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 16px 16px; }
.gap-actions .btn, .cell .btn { width: auto; flex: none; }
.gap-facts .fact { flex: 1 1 0; min-width: 72px; }
.gap-row.is-on .cell-sub { color: #55555a; }

/* ---------- shared mode ---------- */
.eng-sync { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; font-size: 14px; color: var(--label-2); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #1b6e3c; }
.sync-dot.saving { background: #b9770e; } .sync-dot.error, .sync-dot.conflict { background: #b3261e; }
.sync-who { margin-left: auto; font-weight: 500; }
.link-btn { padding: 0; color: var(--tint); font: inherit; font-weight: 600; text-decoration: underline; }
.fin:disabled, .chip:disabled { opacity: 0.55; cursor: not-allowed; }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }
.eng-error { min-height: 20px; padding: 6px 16px 0; font-size: 14px; color: #b3261e; }
.cr { padding: 14px 16px; border-bottom: 0.5px solid var(--sep); }
.cr:last-child { border-bottom: 0; }
.cr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cr-by { font-size: 13px; color: var(--label-2); }
.cr-state { padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; background: var(--fill); color: var(--label-2); }
.cr-state.applied { background: #d9efe0; color: #14562f; } .cr-state.rejected { background: #f1eeee; color: #6f6464; } .cr-state.pending { background: #fde9cf; color: #7a4300; }
.cr-reason { margin-top: 8px; font-size: 16px; }
.cr-patch { margin: 8px 0 0 18px; list-style: disc; font-size: 15px; color: var(--label-2); }
.cr-ok { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--label-2); }
.cr-ok .on { color: #14562f; font-weight: 600; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cr-actions .btn { width: auto; }
.cr-new { padding: 4px 0 8px; } .cr-new > summary { padding: 12px 16px; color: var(--tint); font-weight: 600; cursor: pointer; list-style: none; } .cr-new > summary::-webkit-details-marker { display: none; }
.cr-form .chips { padding: 4px 0; justify-content: flex-end; }
.login-logo { height: 40px; width: auto; margin: 24px 0 8px; }
.login-form { max-width: 460px; margin-top: 20px; }
.login-btn { width: 100%; margin-top: 8px; min-height: 50px; }

body.is-present main:has(.login-wrap) { max-width: 460px; margin: 8vh auto 0; }
.login-logo { display: block; width: 150px; height: 40px; margin: 22px 0 12px; object-fit: contain; }
.login-form .frow { grid-template-columns: 1fr; gap: 6px; padding: 10px 16px 12px; }
.login-form .flabel { font-size: 13px; font-weight: 600; color: var(--label-2); }
.login-form .fin { text-align: left; padding: 10px 12px; min-height: 44px; border-radius: 10px; background: var(--fill); font-size: 17px; }
.login-form .fin:focus-visible { background: var(--surface); }

/* ---------- team and logins ---------- */
.user-form { margin-top: 18px; }
.role-note { padding: 0 16px 12px; font-size: 13px; color: var(--label-2); }
.pw-row { display: flex; align-items: center; gap: 8px; }
.pw-row .fin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.pw-row .btn { flex: none; width: auto; }
.fswitch { grid-template-columns: 1fr auto; }
.pw-box { margin: 0 16px 14px; padding: 14px 16px; border-radius: var(--r-group); background: #d9efe0; color: #14562f; }
.pw-val { margin: 6px 0 10px; font: 600 20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; user-select: all; color: #0d3b20; }
.pw-box .btn { width: auto; }

/* presentation stat cards: long words (Foundation, Concept) must fit their card, never spill over the next one */
.stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stats > div { min-width: 0; }
.stats b { overflow-wrap: anywhere; }
.stats b.wordy { font-size: clamp(26px, 3vw, 44px); letter-spacing: calc(var(--trk, 1) * -0.03em); line-height: 1.05; padding-top: 0.12em; }
.stats b { overflow-wrap: normal; display: flex; align-items: flex-end; min-height: clamp(34px, 3.4vw, 52px); font-size: clamp(34px, 3.4vw, 52px); }
.stats b.wordy { font-size: clamp(24px, 2.1vw, 30px); letter-spacing: calc(var(--trk, 1) * -0.025em); padding-top: 0; }
/* the slide controls fit a phone: three actions share the row instead of overflowing it */
@media (max-width: 520px) {
  .present-nav { gap: 8px; padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); }
  .present-nav .btn { min-width: 0; padding: 0 18px; flex: 0 1 auto; }
  .present-nav > a:not(.btn) { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 14px; }
}

/* ---------- the presenter: controls, full screen, transitions ---------- */
.pctl { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
body:not(.p-on) .pctl { display: none; }
.pctl > * { pointer-events: auto; }
.pedge { position: fixed; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; color: #1c1815; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px -8px rgba(60, 30, 10, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.08); transition: transform 220ms var(--ease), opacity 320ms ease, background 200ms; }
.pedge svg { width: 14px; height: 24px; }
.pedge-prev { left: clamp(10px, 2vw, 28px); } .pedge-next { right: clamp(10px, 2vw, 28px); }
.pedge:hover { transform: scale(1.08); background: #fff; } .pedge:active { transform: scale(0.94); }
.pedge-next { background: var(--tint-fill); color: #fff; } .pedge-next:hover { background: #a93608; }
.pedge.is-off, .pbtn.is-off { opacity: 0.3; pointer-events: none; }
.pbar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 22px; transform: translateX(-50%); background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 14px 40px -12px rgba(60, 30, 10, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.08); transition: opacity 320ms ease, transform 320ms var(--ease); }
.pbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 16px; color: #1c1815; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 160ms; }
.pbtn:hover { background: rgba(0, 0, 0, 0.06); } .pbtn svg { width: 20px; height: 20px; flex: none; }
.pbtn-icon { justify-content: center; width: 44px; padding: 0; } .pbtn-icon svg { width: 11px; height: 19px; }
.pbtn-exit { color: #b3261e; }
.pcount { min-width: 74px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #1c1815; }
body.p-idle .pedge, body.p-idle .pbar { opacity: 0; pointer-events: none; }
body.p-idle .pbar { transform: translate(-50%, 12px); }
body.p-idle:not(.has-ov) { cursor: none; }
.pfx { position: fixed; right: max(14px, calc(50% - 300px)); bottom: calc(86px + env(safe-area-inset-bottom)); width: 260px; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 18px 50px -14px rgba(60, 30, 10, 0.45), 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.pfx-head { padding: 2px 8px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label-2); }
.pfx-opt { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 12px; cursor: pointer; font-size: 16px; }
.pfx-opt:hover { background: rgba(0, 0, 0, 0.05); }
.pfx-opt input { width: 20px; height: 20px; accent-color: var(--tint); flex: none; }
.pfx-check { margin-top: 6px; border-top: 0.5px solid var(--sep); border-radius: 0; padding-top: 6px; }
.pov { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(246, 243, 239, 0.88); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); animation: pov-in 260ms var(--ease) both; }
.pov-panel { width: min(1120px, 100%); max-height: 92dvh; overflow: auto; scrollbar-width: none; }
.pov-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } .pov-head h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: calc(var(--trk, 1) * -0.03em); }
.pov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pcard { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px -18px rgba(60, 30, 10, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.07); transition: transform 200ms var(--ease); }
.pcard:hover { transform: translateY(-3px); } .pcard.is-current { box-shadow: 0 0 0 2.5px var(--tint), 0 10px 30px -18px rgba(60, 30, 10, 0.4); }
.pcard-n { font-size: 30px; font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.04em); color: var(--tint); line-height: 1; } .pcard-t { font-size: 16px; font-weight: 600; line-height: 1.25; color: #1c1815; }
.pov-foot { margin-top: 18px; font-size: 15px; } .pov-foot a { color: var(--tint); font-weight: 600; }
@keyframes pov-in { from { opacity: 0; } to { opacity: 1; } }

/* the slide itself: centred in the window, room for the controls, larger when full screen */
.p-on .stage { position: relative; overflow-x: clip; }
.p-on main { min-height: 100vh; min-height: 100dvh; padding-bottom: 112px; }
.p-on main > .eyebrow { margin-top: auto; }
.p-on main > :last-child { margin-bottom: auto; }
.p-on .deck-dots, .p-on .present-nav { display: none; }
body.is-full main { max-width: min(1500px, 94vw); }
body.is-full .large-title { font-size: clamp(44px, 6vw, 100px); }
body.is-full .present-body { font-size: clamp(18px, 1.9vw, 32px); }
body.is-full .present-lead { font-size: clamp(22px, 2.3vw, 38px); }
body.is-full .deck-tabs { display: none; }
body.is-full .present-cols p, body.is-full .present-pair p { font-size: clamp(16px, 1.6vw, 26px); }
body.is-full .deck-steps { font-size: clamp(17px, 1.7vw, 28px); }

/* transitions: the old slide leaves while the new one arrives; each slide's content then rises in, one piece after another */
.slide-ghost { position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; pointer-events: none; z-index: 2; animation-duration: 520ms; animation-timing-function: var(--ease); animation-fill-mode: both; }
.pin-slide-1 { animation: pin-next 520ms var(--ease) both; } .pin-slide--1 { animation: pin-prev 520ms var(--ease) both; }
.pout-slide-1 { animation-name: pout-next; } .pout-slide--1 { animation-name: pout-prev; }
.pin-fade { animation: pin-fade 480ms ease both; } .pout-fade { animation-name: pout-fade; }
.pin-zoom { animation: pin-zoom 520ms var(--ease) both; } .pout-zoom { animation-name: pout-zoom; }
@keyframes pin-next { from { opacity: 0; transform: translateX(16%); } to { opacity: 1; transform: none; } }
@keyframes pin-prev { from { opacity: 0; transform: translateX(-16%); } to { opacity: 1; transform: none; } }
@keyframes pout-next { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-16%); } }
@keyframes pout-prev { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(16%); } }
@keyframes pin-fade { from { opacity: 0; } to { opacity: 1; } } @keyframes pout-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes pin-zoom { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } } @keyframes pout-zoom { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.06); } }
.p-anim .pe { animation: pe-rise 620ms var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 140ms); }
@keyframes pe-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .pedge { display: none; }
  .pbtn span { display: none; } .pbtn { padding: 0 11px; } .pbtn-exit { padding: 0 11px; }
  .pcount { min-width: 62px; }
  .pbar { max-width: calc(100vw - 20px); }
  .pfx { right: 10px; left: 10px; width: auto; }
}
@media print { .pctl { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .p-anim .pe, .pin-slide-1, .pin-slide--1, .pin-fade, .pin-zoom { animation: none !important; } }
.pov { background: rgba(246, 243, 239, 0.97); }
body.has-ov .pedge, body.has-ov .pbar, body.has-ov .pfx { opacity: 0; pointer-events: none; }
.pov-head .pbtn-icon { width: 48px; height: 48px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1); border-radius: 50%; }
.pov-head .pbtn-icon svg { width: 20px; height: 20px; }

.pbtn .pbtn-label { }
@media (max-width: 700px) { .pbtn span { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .pbtn { position: relative; } }

.eng-error.ok { color: #14562f; }
.pw-form { padding-bottom: 8px; }

/* touch: controls meet the 44-point target; rows never push their chevron out of the card; short facts wrap instead of clipping */
details.cell summary .cell-main { flex: 1 1 auto; min-width: 0; }
details.cell summary .chev { flex: none; margin-left: auto; }
@media (pointer: coarse) {
  .segmented button { min-height: 44px; font-size: 15px; }
  .segmented.is-tall button { min-height: 48px; }
}
@media (max-width: 520px) { .fact dd { white-space: normal; overflow-wrap: anywhere; } }
details.cell summary .chev { width: 8px; height: 14px; }
@media (pointer: coarse) { .chip, .deck-domains .chip { min-height: 44px; display: inline-flex; align-items: center; } }
details.cell summary .chev { margin-right: 3px; } /* the open chevron turns 90 degrees and would otherwise poke 3px out of the card */

/* ---------- slides that look like slides ---------- */
.is-present main { max-width: min(1320px, 92vw); }
.is-present .large-title { font-size: clamp(34px, 4.6vw, 68px); }
.p-on .stage-count { display: none; }
.p-on .stage-top { justify-content: flex-start; }
.is-present .eyebrow { background: none; padding: 0; color: var(--tint); font-size: 13px; letter-spacing: 0.18em; }
.is-present .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--tint); }
body.is-full main { max-width: min(1560px, 94vw); }

.ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 26px); margin-top: 26px; }
.ptiles .card { min-height: clamp(300px, 46vh, 520px); padding: clamp(18px, 1.8vw, 30px); border-radius: 28px; }
.ptiles .card-title { font-size: clamp(22px, 2.2vw, 36px); max-width: none; }
.ptiles .card-eyebrow { font-size: clamp(12px, 1vw, 15px); } .ptiles .card-sub { font-size: clamp(14px, 1.2vw, 19px); }
.slide-cover .large-title { font-size: clamp(56px, 9vw, 150px); line-height: 0.92; letter-spacing: calc(var(--trk, 1) * -0.055em); }
.slide-cover .present-lead { font-size: clamp(20px, 2.4vw, 38px); max-width: 28em; }

.bignums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 1.6vw, 26px); margin-top: 30px; }
.bignum { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(190px, 28vh, 300px); padding: clamp(20px, 2vw, 34px); border-radius: 28px; background: #fff; border: 1px solid rgba(60, 30, 10, 0.06); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 24px 50px -26px rgba(60, 30, 10, 0.3); }
.bignum b { font-size: clamp(48px, 6vw, 104px); font-weight: 700; line-height: 0.95; letter-spacing: calc(var(--trk, 1) * -0.05em); color: var(--tint); }
.bignum span { margin-top: 14px; font-size: clamp(16px, 1.6vw, 26px); font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.01em); }
.bignum small { margin-top: 6px; font-size: clamp(13px, 1.2vw, 18px); line-height: 1.4; color: #6b665f; }

.hbars { display: grid; gap: clamp(14px, 2vh, 24px); margin-top: 30px; }
.hbar { padding: clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 28px); border-radius: 24px; background: #fff; border: 1px solid rgba(60, 30, 10, 0.06); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 18px 40px -24px rgba(60, 30, 10, 0.28); }
.hbar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hbar-label { font-size: clamp(16px, 1.6vw, 26px); font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.01em); }
.hbar-n { font-size: clamp(22px, 2.4vw, 40px); font-weight: 700; letter-spacing: calc(var(--trk, 1) * -0.03em); color: var(--tint); font-variant-numeric: tabular-nums; }
.hbar-n small { margin-left: 4px; font-size: 0.55em; font-weight: 600; color: #6b665f; }
.hbar-track { height: 12px; margin-top: 12px; border-radius: 12px; background: rgba(60, 30, 10, 0.08); overflow: hidden; }
.hbar-track i { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, #e8590c, var(--tint)); transition: width 900ms var(--ease); }
.hbar-note { margin-top: 10px; font-size: clamp(14px, 1.3vw, 20px); line-height: 1.4; color: #5c5750; }
@media (max-width: 760px) { .ptiles { grid-template-columns: 1fr; } .ptiles .card { min-height: 220px; } }
/* tall slides: bars and numbers stay inside one screen */
.hbars { gap: clamp(8px, 1.4vh, 16px); margin-top: clamp(16px, 2.6vh, 30px); }
.hbar { padding: clamp(10px, 1.5vh, 18px) clamp(18px, 1.8vw, 28px); border-radius: 20px; }
.hbar-label { font-size: clamp(15px, 1.5vw, 24px); } .hbar-n { font-size: clamp(20px, 2.1vw, 34px); }
.hbar-track { height: 10px; margin-top: clamp(6px, 1vh, 10px); }
.hbar-note { margin-top: 6px; font-size: clamp(13px, 1.15vw, 17px); }
.bignum { min-height: clamp(170px, 26vh, 280px); }
.bignum b { white-space: nowrap; font-size: clamp(44px, 5.2vw, 92px); }
.bignum b .unit { display: inline; margin: 0 0 0 0.12em; font-size: 0.38em; font-weight: 700; letter-spacing: 0; color: #6b665f; }
.hbar-n small { font-size: max(0.6em, 13px); }

/* a topic in one screen: the brief first, the long text closed underneath */
.brief { display: grid; gap: 22px; margin-top: 20px; padding: clamp(18px, 2vw, 28px); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep), 0 18px 44px -28px rgba(60, 30, 10, 0.3); }
@media (min-width: 760px) { .brief { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 34px; } }
.brief-k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tint); }
.brief-k2 { margin-top: 20px; }
.brief-text { margin-top: 8px; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; letter-spacing: calc(var(--trk, 1) * -0.015em); font-weight: 600; }
.brief-points { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.brief-points li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.4; }
.brief-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint-soft); }
.brief-points li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--tint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.brief-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 2px; }
@media (min-width: 760px) { .brief-side { padding-left: 28px; border-left: 0.5px solid var(--sep); } }
.brief-skills { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.brief-skills li { padding: 9px 14px; border-radius: 12px; background: var(--fill); font-size: 15px; font-weight: 500; line-height: 1.3; }
.brief-read { margin-top: auto; font-size: 14px; line-height: 1.4; color: var(--label-2); }
.brief-open { width: auto; min-height: 44px; border-radius: 12px; }
.doc .section { margin-top: 26px; }
.cell.dis .cell-sub.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* choosing a topic to present: one tidy toolbar, a few good starting points, then the topics grouped by domain */
.chooser-bar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
@media (min-width: 760px) { .chooser-bar { grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; } }
.chooser-bar .search { margin: 0; }
.pick select { width: 100%; min-height: 44px; padding: 0 36px 0 14px; border: 0; border-radius: 10px; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6b70' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font: inherit; color: var(--label); cursor: pointer; }
.pick select:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 4px; }
.tcard { display: flex; flex-direction: column; gap: 6px; min-height: 124px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep), 0 12px 30px -22px rgba(60, 30, 10, 0.35); transition: transform 200ms var(--ease); }
.tcard:hover { transform: translateY(-2px); }
.tcard-k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tint); }
.tcard-t { font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: calc(var(--trk, 1) * -0.01em); }
.tcard-m { margin-top: auto; font-size: 13px; color: var(--label-2); }
.dgroups { display: grid; gap: 12px; margin-top: 22px; }
.dgrp { border-radius: var(--r-group); background: var(--surface); overflow: hidden; }
.dgrp > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; }
.dgrp > summary::-webkit-details-marker { display: none; }
.dgrp-name { flex: 1; font-size: 17px; font-weight: 650; letter-spacing: calc(var(--trk, 1) * -0.01em); }
.dgrp-meta { font-size: 14px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.dgrp > summary .chev { transition: transform 200ms var(--ease); } .dgrp[open] > summary .chev { transform: rotate(90deg); margin-right: 3px; }
.dgrp-body { display: grid; grid-template-columns: 1fr; border-top: 0.5px solid var(--sep); }
@media (min-width: 900px) { .dgrp-body { grid-template-columns: 1fr 1fr; } .dgrp-body .trow:nth-child(odd) { border-right: 0.5px solid var(--sep); } }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 8px 16px; border-bottom: 0.5px solid var(--sep); transition: background 150ms; }
.trow:hover { background: var(--fill); }
.trow-main { display: grid; min-width: 0; } .trow-main b { font-size: 16px; font-weight: 600; line-height: 1.25; } .trow-main span { font-size: 13px; color: var(--label-2); }
.trow-h { flex: none; font-size: 14px; font-weight: 600; color: var(--label-2); font-variant-numeric: tabular-nums; }
.brief-text { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) { .tcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 4px 0 0; padding: 4px 0 10px; scrollbar-width: none; } .tcards::-webkit-scrollbar { display: none; } .tcard { flex: 0 0 78%; scroll-snap-align: start; min-height: 112px; } }
.tcard-k { font-size: 12px; }
#dstart { overflow-x: clip; }

/* a slide with a picture beside it */
.present-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 72px); align-items: center; min-height: min(62vh, 560px); }
.present-split .present-body { margin-top: 0; }
.pvisual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: min(52vh, 480px); padding: clamp(20px, 2.4vw, 36px); border-radius: 32px; color: #fff; overflow: hidden; background: #0b0b10; box-shadow: 0 30px 70px -36px rgba(40, 20, 10, 0.55); }
.pvisual::before { content: ""; position: absolute; inset: 0; background: var(--art) var(--art-at, 50% 30%) / cover no-repeat; opacity: 0.95; }
.pvisual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.78) 100%); }
.pvisual > * { position: relative; z-index: 1; }
.pv-n { position: absolute !important; top: clamp(16px, 2vw, 28px); left: clamp(20px, 2.4vw, 36px); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; opacity: 0.85; font-variant-numeric: tabular-nums; }
.pv-big { font-size: clamp(40px, 5.4vw, 88px); font-weight: 700; line-height: 0.95; letter-spacing: calc(var(--trk, 1) * -0.045em); }
.pv-cap { font-size: clamp(15px, 1.4vw, 22px); font-weight: 500; opacity: 0.9; max-width: 14em; }
@media (max-width: 899px) { .present-split { grid-template-columns: 1fr; min-height: 0; } .pvisual { order: -1; min-height: 150px; padding: 16px 18px; } .pv-big { font-size: clamp(32px, 9vw, 52px); } .pv-cap { max-width: none; } }
@media print { .pvisual { display: none; } .present-split { display: block; } }
.p-on .stage-progress { margin-bottom: 22px; }
.p-on .stage { padding-bottom: 120px; }
.present-split { margin-top: 18px; }
@media (max-width: 899px) { .present-split { margin-top: 20px; gap: 20px; } .p-on .stage { padding-bottom: 130px; } }
/* the programme cards use the screen on a big display instead of leaving the bottom empty */
@media (min-width: 900px) and (min-height: 760px) { .cards { grid-auto-rows: minmax(340px, calc(100vh - 400px)); } .cards .card-title { font-size: clamp(22px, 2vw, 30px); } }

/* Apple devices tighten their own type (SF Pro has built-in tracking), so the hand-set tightening that suits Inter is switched off there */
@supports (font: -apple-system-body) { :root { --trk: 0; } }

/* ---------- presentation: poster rows (light, image-led) ---------- */
.is-present .ptiles { gap: clamp(12px, 1.4vw, 22px); align-items: stretch; counter-reset: poster; }
.is-present .ptiles .card { position: relative; counter-increment: poster; min-height: clamp(280px, 50vh, 560px); aspect-ratio: auto; border-radius: 18px; justify-content: flex-end; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 26px 50px -30px rgba(60, 30, 10, 0.55); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.is-present .ptiles .card-title::before { content: counter(poster); position: absolute; top: 10px; left: 16px; font-size: clamp(54px, 6vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85); }
.is-present .ptiles .card:hover { transform: translateY(-6px) scale(1.015); }
.is-present .ptiles .card-eyebrow { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: #c2410c; color: #fff; }
@media (max-width: 760px) { .is-present .ptiles { gap: 10px; } .is-present .ptiles .card { min-height: calc(var(--vh, 100vh) * 0.17); border-radius: 16px; } .is-present .ptiles .card-title::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .is-present .ptiles .card { transition: none; } .is-present .ptiles .card:hover { transform: none; } }
.is-present .present-cols { counter-reset: pcol; }
.is-present .present-cols > div { position: relative; counter-increment: pcol; min-height: clamp(180px, 30vh, 320px); padding: clamp(60px, 7vw, 92px) clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px); border-radius: 18px; border-top: 4px solid #c2410c; background: linear-gradient(180deg, #fff 0%, #fbf4ee 100%); box-shadow: 0 24px 46px -32px rgba(60, 30, 10, 0.45); overflow: hidden; }
.is-present .present-cols > div::before { content: counter(pcol); position: absolute; top: 6px; left: 16px; font-size: clamp(48px, 5.4vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px rgba(194, 65, 12, 0.7); }
@media (max-width: 760px) { .is-present .present-cols > div { min-height: 0; padding-top: 52px; } .is-present .present-cols > div::before { font-size: 40px; top: 4px; } }
.is-present .present-split .present-cols { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.is-present .present-split .present-cols > div { min-height: 0; padding: 16px 20px 16px clamp(72px, 7vw, 104px); }
.is-present .present-split .present-cols > div::before { top: 50%; left: 14px; transform: translateY(-50%); font-size: clamp(40px, 4.4vw, 64px); }
@media (max-width: 760px) { .is-present .present-split .present-cols > div { padding: 10px 14px 10px 58px; } .is-present .present-split .present-cols > div::before { top: 50%; left: 10px; font-size: 36px; } .is-present .present-split .present-cols p { font-size: 14px; line-height: 1.35; } }
.is-present .present-split .bignums { margin-top: 18px; gap: 12px; }
.is-present .present-split .bignum { min-height: clamp(120px, 19vh, 200px); padding: 16px 22px; border-radius: 20px; }
@media (max-width: 899px) { .is-present .pvisual { min-height: 96px; padding: 12px 16px; } }
@media (max-width: 899px) { .is-present .pvisual .pv-n { display: none; } }

/* ---------- one-viewport hubs ---------- */
.art-build { --art: linear-gradient(150deg, #0b6b67 0%, #0e8782 38%, #d9560f 100%); --art-at: 50% 50%; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; } .card { min-height: clamp(220px, calc(var(--vh, 100vh) * 0.46), 460px); } .card-title { font-size: clamp(18px, 1.7vw, 26px); } }
@media (max-width: 899px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; } .card { min-height: calc(var(--vh, 100vh) * 0.2); padding: 12px; } .card-title { font-size: 17px; max-width: none; } .card-sub { font-size: 12px; } }
@media (max-height: 820px) { main:has(.cards) > .lede { display: none; } }
@media (max-width: 899px) { main:has(.cards) > .lede { display: none; } }
