/* ------------------------------------------------------------------
   base.css – structure shared by all concepts.
   Design canvas: 1920 x 1080 (reveal.js scales it to any screen).
   Each concept-*.css sets the tokens below and adds its own decoration.
------------------------------------------------------------------- */
:root {
  --bg: #fff;
  --bg-alt: #E9EFFA;
  --fg: #0C1F4C;
  --muted: #394B75;
  --primary: #003087;
  --accent: #0056BF;
  --hl: #ECC215;
  --on-hl: #0B0F1A;
  --card: #fff;
  --card-line: #DCE3F0;
  --radius: 20px;
  --card-shadow: 0 10px 30px rgba(0, 48, 135, .08);
  --num-color: var(--primary);
  --eyebrow-color: var(--accent);

  --font-head: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: Consolas, "Courier New", monospace;
  --head-weight: 700;
  --head-case: none;
  --head-track: -.01em;
  --h2-size: 76px;
  --px: 112px;
}

html, body, .reveal-viewport { margin: 0; height: 100%; overflow: hidden; background: var(--letterbox, #000) !important; }

.reveal { font-family: var(--font-body); font-size: 28px; line-height: 1.4; color: var(--fg); }
.reveal .slides { text-align: left; }
.reveal .slides section {
  box-sizing: border-box; width: 100%; height: 100%;
  padding: 76px var(--px) 128px;
  flex-direction: column;
  background: var(--bg); color: var(--fg);
  overflow: hidden;
}
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  margin: 0; font-family: var(--font-head); font-weight: var(--head-weight);
  text-transform: var(--head-case); letter-spacing: var(--head-track);
  line-height: 1.05; color: inherit; text-shadow: none;
}
.reveal h2 { font-size: var(--h2-size); }
.reveal h3 { font-size: 34px; line-height: 1.15; }
:where(.reveal) :where(p, ul, ol, figure, q) { margin: 0; }
:where(.reveal) :where(ul, ol) { list-style: none; padding: 0; }
.reveal q::before, .reveal q::after { content: none; }
.reveal img { max-width: none; max-height: none; border: 0; background: none; box-shadow: none; margin: 0; }

/* fragments: gentle rise instead of a plain fade */
.reveal .fragment { transform: translateY(22px); transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.reveal .fragment.visible { transform: none; }

.reveal .slide-number { font-family: var(--font-mono); font-size: 13px; color: #fff; background: rgba(0, 32, 91, .62); border-radius: 6px; padding: 3px 8px; left: 16px; right: auto; top: 16px; bottom: auto; }

/* ---- shared parts ---- */
.bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chrome { position: absolute; bottom: 34px; left: var(--px); right: var(--px); z-index: 5; display: flex; align-items: center; justify-content: space-between; }
.chrome .lg { height: 40px; width: auto; display: block; }
.chrome .pn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 24px; font-weight: 400; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--muted); }
section[data-tone="dark"] .chrome .pn { color: rgba(255, 255, 255, .94); text-shadow: 0 1px 10px rgba(3, 12, 40, .45); }
section[data-tone="dark"] .lg-dark, section[data-tone="light"] .lg-white { display: none; }

.eyebrow { font-family: var(--font-mono); font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow-color); margin-bottom: 18px; }
.head { flex: none; position: relative; z-index: 1; margin-bottom: 40px; }
.hl { color: var(--hl); }
.card-base, .app, .stat, .pillar, .prs-item { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-shadow); }

/* ---- 1 title ---- */
section[data-kind="title"] { padding: 0; }
.title-logo { position: absolute; z-index: 2; top: 64px; left: var(--px); height: 38px; }
.title-block { position: absolute; z-index: 2; left: var(--px); bottom: 120px; max-width: 1200px; }
.title-block h1 { font-size: 150px; }
.title-block .subtitle { font-size: 46px; margin-top: 20px; }

/* ---- 2 statement ---- */
section[data-kind="statement"] { justify-content: center; }
.statement-body { position: relative; z-index: 1; max-width: 1020px; }
.statement-body h2 { font-size: 96px; margin-bottom: 36px; }
.statement-body .lead { font-size: 32px; line-height: 1.45; max-width: 860px; }
.pills { display: flex; gap: 16px; margin-top: 44px; }
.pills li { font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 12px 24px; border-radius: 999px; border: 2px solid currentColor; }

/* ---- 3 adoption curve ---- */
.curve { position: relative; flex: none; height: 370px; color: var(--accent); z-index: 1; }
.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve svg path, .curve svg line { vector-effect: non-scaling-stroke; }
.curve .dot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--bg); border: 6px solid currentColor; box-sizing: border-box; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; min-height: 0; margin-top: 8px; position: relative; z-index: 1; }
.stage { text-align: center; padding: 0 28px; }
.stage-tag { display: inline-block; font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stage h3 { margin-bottom: 12px; }
.stage p { font-size: 27px; color: var(--muted); }
.stage .logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 360px; margin: 8px auto 0; }
.stage .logos img { width: 100%; height: 54px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px 12px; box-sizing: border-box; border: 1px solid var(--card-line); }
.stage-big h3 { font-size: 30px; }
.stage-big h3 b { display: block; font-size: 96px; line-height: 1; color: var(--num-color); margin-bottom: 4px; }

/* ---- 4 core applications ---- */
.apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; flex: none; height: 650px; position: relative; z-index: 1; }
.app { padding: 40px 30px; display: flex; flex-direction: column; position: relative; }
.app-num { position: absolute; top: 28px; right: 26px; font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--muted); }
.app .icon { width: 76px; height: 76px; padding: 17px; box-sizing: border-box; border-radius: 50%; margin-bottom: 30px; color: var(--accent); background: var(--bg-alt); }
.app h3 { font-size: 38px; margin-bottom: 26px; }
.app li { font-size: 28px; line-height: 1.3; color: var(--muted); margin-bottom: 18px; padding-left: 20px; position: relative; }
.app li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---- 5 photo + list ---- */
section[data-kind="photolist"] { justify-content: center; }
.photolist-body { position: relative; z-index: 1; max-width: 860px; }
.photolist-body h2 { font-size: 120px; margin-bottom: 48px; }
.checks li { font-size: 42px; line-height: 1.2; padding: 18px 0 18px 70px; position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--hl); }
.checks li::after { content: ""; position: absolute; left: 15px; top: 50%; width: 10px; height: 20px; margin-top: -16px; border: solid var(--on-hl); border-width: 0 5px 5px 0; transform: rotate(40deg); }

/* ---- 6 case study ---- */
.case-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "prs media" "kpis why"; gap: 28px 40px; position: relative; z-index: 1; }
.prs { grid-area: prs; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.prs-item { flex: 1; padding: 22px 28px; display: flex; flex-direction: column; justify-content: center; }
.prs-item .label { font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.prs-item p { font-size: 26px; line-height: 1.3; }
.prs-item.problem .label { color: #C2410C; }
.prs-item.solution .label { color: var(--accent); }
.prs-item.outcome .label { color: #15803D; }
.case-media { grid-area: media; position: relative; min-height: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--card-line); }
.media-main { position: absolute; inset: 0; }
.media-main img { width: 100%; height: 100%; object-fit: contain; }
.media-main figcaption { position: absolute; left: 16px; top: 14px; z-index: 1; background: rgba(255, 255, 255, .88); padding: 5px 12px; border-radius: 8px; font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.media-side { position: absolute; right: 18px; bottom: 18px; width: 34%; border-radius: 14px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.media-side img { width: 100%; display: block; }
.case-kpis { grid-area: kpis; display: flex; gap: 40px; align-items: flex-end; }
.kpi b { display: block; font-size: 76px; line-height: 1; font-weight: 800; color: var(--num-color); white-space: nowrap; }
.kpi b i { font-style: normal; font-weight: 400; color: var(--muted); padding: 0 .08em; }
.kpi span { display: block; font-size: 24px; color: var(--muted); margin-top: 8px; }
.why { grid-area: why; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-end; }
.why::before { content: "Why Industrial RTLS"; flex: 0 0 100%; font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.why li { font-size: 24px; padding: 9px 18px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--card-line); }
.head h2 em { font-style: normal; color: var(--num-color); }

/* ---- 7 stats wall ---- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 24px; flex: 1; min-height: 0; position: relative; z-index: 1; }
.stat { padding: 28px 36px 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.stat .num { display: block; font-size: 128px; line-height: .95; font-weight: 800; letter-spacing: -.03em; color: var(--num-color); margin-bottom: 14px; }
.stat h3 { font-size: 31px; font-weight: 700; margin-bottom: 8px; }
.stat p { font-size: 25px; color: var(--muted); }

/* ---- 8 section divider ---- */
section[data-kind="section"] { padding: 0; }
.section-body { position: absolute; z-index: 1; left: var(--px); bottom: 150px; max-width: 1000px; }
.section-body h2 { font-size: 132px; }

/* ---- 9 tech stack ---- */
.layers { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.layer { flex: 1; display: grid; grid-template-columns: 84px 520px minmax(0, 1fr); align-items: center; gap: 28px; padding: 0 44px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); }
.layer-no { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--accent); }
.layer h3 { font-size: 36px; }
.loop, .chips { display: flex; flex-wrap: wrap; gap: 12px; }
.loop li, .chips li { font-size: 26px; font-weight: 600; padding: 10px 24px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--card-line); }
.loop li:not(:last-child)::after { content: "→"; margin-left: 20px; color: var(--muted); font-weight: 400; }
.loop li { border: 0; background: none; padding: 10px 0; }
.layer code { font-family: var(--font-mono); font-size: 27px; line-height: 1.45; color: inherit; }
.layer code.ctx { font-weight: 700; }

/* ---- 10 pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; flex: 1; min-height: 0; position: relative; z-index: 1; }
.pillar { padding: 36px 40px 34px; display: flex; flex-direction: column; position: relative; }
.pillar-no { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.pillar h3 { font-size: 38px; margin-bottom: 14px; }
.pillar q { display: block; font-size: 29px; font-style: italic; line-height: 1.25; color: var(--accent); margin-bottom: 22px; }
.pillar li { font-size: 25px; line-height: 1.3; color: var(--muted); margin-bottom: 10px; padding-left: 22px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pillar-visual { margin-top: auto; height: 190px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.pillar-visual.chip { background: #fff; border-radius: 14px; border: 1px solid var(--card-line); padding: 14px; box-sizing: border-box; }
.pillar-visual.chip img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pillar-visual.logo-chip { gap: 20px; }
.pillar-visual.logo-chip img { height: 70px; }
.pillar-visual.logo-chip b { font-family: var(--font-mono); color: #0B0F1A; font-size: 34px; }
.pillar-visual.anchors img { height: 100%; width: auto; object-fit: contain; }

/* ---- 11 journey ---- */
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; flex: none; height: 590px; position: relative; z-index: 1; padding-top: 32px; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 31px; height: 3px; background: var(--card-line); }
.step { position: relative; display: flex; flex-direction: column; padding: 56px 24px 28px; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.step-no { position: absolute; top: -32px; left: 24px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-mono); font-size: 28px; font-weight: 700; box-shadow: 0 0 0 8px var(--bg); }
.step h3 { font-size: 38px; margin-bottom: 16px; }
.step q { display: block; font-size: 27px; font-style: italic; line-height: 1.25; color: var(--accent); margin-bottom: 22px; }
.step p { font-size: 25px; line-height: 1.35; color: var(--muted); margin-top: auto; padding-top: 20px; border-top: 1px solid var(--card-line); }

/* ---- 12 table ---- */
.table-wrap { flex: 1; display: flex; flex-direction: column; gap: 40px; position: relative; z-index: 1; }
.roi { width: 100%; border-collapse: collapse; font-size: 30px; }
.roi th { text-align: left; font-family: var(--font-mono); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: 0 20px 16px; border-bottom: 3px solid currentColor; }
.roi td { padding: 38px 24px; border-bottom: 1px solid var(--card-line); }
.roi .r { text-align: right; }
.roi td.r, .roi td:nth-child(2) { white-space: nowrap; }
.roi td b { font-weight: 700; }
.total { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 32px; padding: 30px 40px; border-radius: var(--radius); }
.total span { font-size: 34px; font-weight: 700; }
.total b { font-size: 104px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.total small { font-size: .4em; letter-spacing: .04em; font-weight: 700; }

/* ---- 13 end ---- */
section[data-kind="end"] { padding: 0; }
.end-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--px); }
.end-body h2 { font-size: 200px; margin-bottom: 56px; }
.end-logo { height: 52px; width: auto; align-self: flex-start; }
