/* ==========================================================
   Presentation layout: fixed 1920x1080 stage, scaled to fit
   ========================================================== */
html { scroll-behavior: smooth; background: #04070f; }
body { margin: 0; overflow-x: hidden; }

.viewport { background: #04070f; }
.stage { position: relative; }

/* Each 1920x1080 slide sits in a slot that takes its scaled height,
   so the page scrolls naturally from one section to the next. */
.slot {
  position: relative;
  width: 100%;
  height: calc(1080px * var(--scale, 1));
  overflow: hidden;
  scroll-snap-align: start;
}
.slot > .slide {
  top: 0; left: 0; right: auto;
  width: 1920px;
  height: 1080px;
  transform: scale(var(--scale, 1));
  transform-origin: top left;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 92px 120px 110px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 88% 8%, rgba(24, 191, 255, .13), transparent 60%),
    radial-gradient(800px 600px at 6% 96%, rgba(139, 108, 255, .14), transparent 60%),
    linear-gradient(160deg, var(--bg-2), var(--bg) 60%);
}

/* subtle grid texture */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.slide > * { position: relative; }

.kicker {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .02em;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(270deg, var(--cyan), var(--violet));
}

h1, h2 { font-family: var(--display); margin: 0; font-weight: 800; }
h1 { font-size: 112px; line-height: 1.25; }
h2 { font-size: 64px; line-height: 1.35; }
.lead { font-size: 34px; line-height: 1.75; color: #c9d4f2; margin: 22px 0 0; max-width: 1180px; font-weight: 300; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; flex: 1; align-items: center; margin-top: 30px; }
.cols.wide-visual { grid-template-columns: 720px 1fr; }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.bullets li {
  font-size: 31px;
  line-height: 1.6;
  padding-right: 46px;
  position: relative;
  font-weight: 400;
}
.bullets li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(24,191,255,.6);
}
.bullets li:nth-child(2)::before { background: var(--green); box-shadow: 0 0 18px rgba(46,230,166,.6); }
.bullets li:nth-child(3)::before { background: var(--violet); box-shadow: 0 0 18px rgba(139,108,255,.6); }
.bullets li:nth-child(4)::before { background: var(--magenta); box-shadow: 0 0 18px rgba(255,79,216,.6); }
.bullets li:nth-child(5)::before { background: var(--amber); box-shadow: 0 0 18px rgba(255,194,75,.6); }

.card {
  background: linear-gradient(160deg, rgba(22,34,74,.92), rgba(17,27,58,.92));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px 36px;
}

/* ---------- Cover ---------- */
.cover-grid { display: grid; grid-template-columns: 1fr 760px; gap: 40px; flex: 1; align-items: center; }
.cover .role { font-size: 40px; color: var(--cyan); font-weight: 500; margin: 26px 0 0; }
.cover .tagline { font-size: 36px; line-height: 1.7; color: #c9d4f2; margin: 34px 0 0; max-width: 980px; font-weight: 300; }
.cover .tagline b { color: var(--text); font-weight: 600; }

/* ---------- Numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 54px; }
.stat { padding: 40px 40px 34px; min-height: 270px; display: flex; flex-direction: column; }
.stat .num {
  font-family: var(--display);
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  direction: ltr;
  text-align: right;
  background: linear-gradient(270deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .num small { font-size: 46px; font-weight: 700; }
.stat .cap { font-size: 28px; line-height: 1.55; margin-top: 22px; font-weight: 500; }
.stat .sub { font-size: 22px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 10px; }
.step h3 { font-family: var(--display); font-size: 34px; margin: 0 0 14px; font-weight: 700; }
.step p { font-size: 25px; line-height: 1.6; color: #c9d4f2; margin: 0; }
.note {
  margin-top: 46px;
  display: inline-flex;
  gap: 26px;
  align-items: center;
  font-size: 30px;
  padding: 24px 36px;
  border-radius: 999px;
  border: 1px solid rgba(46,230,166,.45);
  background: rgba(46,230,166,.08);
  align-self: flex-start;
}
.note b { color: var(--green); }

/* ---------- Audience cards ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 56px; }
.aud { padding: 40px 34px; min-height: 470px; display: flex; flex-direction: column; gap: 22px; }
.aud svg { width: 96px; height: 96px; }
.aud h3 { font-family: var(--display); font-size: 33px; line-height: 1.45; margin: 0; font-weight: 700; }
.aud p { font-size: 24px; line-height: 1.65; color: #c9d4f2; margin: 0; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.skill-grid .card h3 { font-family: var(--display); font-size: 28px; margin: 0 0 20px; font-weight: 700; color: var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; direction: ltr; justify-content: flex-end; }
.chip {
  font-size: 22px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.certs { display: flex; gap: 22px; margin-top: 30px; }
.cert {
  flex: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 23px;
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255,194,75,.35);
  background: rgba(255,194,75,.06);
}
.cert svg { width: 46px; height: 46px; flex: none; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 26px; margin-top: 50px; }
.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 38px;
  color: var(--text);
  text-decoration: none;
}
.contact-list .ico {
  width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center;
  background: rgba(24,191,255,.12);
  border: 1px solid rgba(24,191,255,.4);
}
.contact-list .ico svg { width: 40px; height: 40px; }

/* ---------- Chrome: progress, counter, nav ---------- */
.progress {
  position: fixed;
  right: 0; top: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(270deg, var(--cyan), var(--violet), var(--magenta));
  z-index: 20;
}
.footer {
  position: absolute;
  bottom: 36px; right: 120px; left: 120px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  font-size: 20px;
  color: var(--muted);
  z-index: 5;
}
.footer .brand { font-family: var(--display); font-weight: 700; color: #b9c6ea; }

.nav {
  position: fixed;
  bottom: 22px;
  left: 22px;
  display: flex;
  gap: 10px;
  z-index: 10;
  direction: ltr;
}
.nav button {
  width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17,27,58,.85);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.nav button:hover { border-color: var(--cyan); }

/* ==========================================================
   Print / PDF: one 1920x1080 page per slide, final states
   ========================================================== */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; height: auto; background: var(--bg); }
  html { scroll-behavior: auto; }
  .slot { height: auto; overflow: visible; }
  .slot > .slide { position: relative; transform: none !important; height: 1080px; page-break-after: always; break-after: page; }
  .nav { display: none; }
  .progress { display: none; }
}

/* ---------- Service families ---------- */
.families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 46px; }
.family { padding: 34px 34px 26px; }
.fam-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.fam-head svg { width: 70px; height: 70px; flex: none; }
.fam-head h3 { font-family: var(--display); font-size: 38px; margin: 0; font-weight: 800; }
.fam-en { font-size: 20px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.family ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.family li { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.family li b { font-size: 26px; font-weight: 500; line-height: 1.45; }
.family li .en { font-size: 19px; color: var(--muted); text-align: right; }

/* ---------- Geography ---------- */
.geo-grid { display: grid; grid-template-columns: 500px 1fr; gap: 30px; flex: 1; align-items: center; margin-top: 0; }
.geo-map { width: 1035px; height: 690px; }
.geo-label { font-family: var(--body); font-size: 17px; font-weight: 600; fill: #ffffff; paint-order: stroke; stroke: #080d1c; stroke-width: 5px; stroke-linejoin: round; }
.region { padding: 22px 0; border-top: 1px solid var(--line); }
.region h3 { font-family: var(--display); font-size: 30px; margin: 0 0 8px; font-weight: 700; }
.region p { font-size: 28px; margin: 0; line-height: 1.6; }

/* page numbers */
.stage { counter-reset: slide; }
.slide { counter-increment: slide; }
.slide .pg { font-family: var(--display); font-weight: 500; color: var(--muted); padding-right: 18px; border-right: 1px solid var(--line); }
.slide .pg::after { content: counter(slide, decimal-leading-zero) " / 14"; }

.m-only { display: none; }

/* ================= Phones and small tablets: reflow instead of scaling ================= */
@media (max-width: 899px) {
  .d-only { display: none !important; }
  .m-only { display: block; }
  .nav { display: none; }

  .slot { height: auto; overflow: visible; }
  .slot > .slide {
    position: relative; width: auto; height: auto; transform: none;
    padding: 56px 20px 72px; overflow: hidden;
  }
  .slot + .slot > .slide { border-top: 1px solid var(--line); }

  .kicker { font-size: 14px; margin-bottom: 10px; gap: 10px; }
  .kicker::before { width: 26px; height: 3px; }
  h1 { font-size: 46px; }
  h2 { font-size: 27px; line-height: 1.45; }
  .lead { font-size: 17px; margin-top: 12px; }
  .card { border-radius: 18px; padding: 18px; }

  .cols, .cols.wide-visual, .cover-grid, .geo-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 22px; }
  .slide svg[viewBox] { width: 100%; height: auto; max-width: 520px; margin-inline: auto; display: block; }
  .cover-grid > svg, .cover-grid > div:has(svg[viewBox]) { order: -1; max-width: 300px; }
  .cover .role { font-size: 19px; margin-top: 12px; }
  .cover .tagline { font-size: 17px; margin-top: 14px; }

  .bullets { gap: 14px; }
  .bullets li { font-size: 16.5px; padding-right: 26px; }
  .bullets li::before { width: 11px; height: 11px; top: 9px; border-radius: 4px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .stat { padding: 16px; min-height: 0; }
  .stat .num { font-size: 40px; }
  .stat .num small { font-size: 20px; }
  .stat .cap { font-size: 14px; margin-top: 10px; }
  .stat .sub { font-size: 12px; }

  .families { grid-template-columns: 1fr !important; gap: 12px !important; margin-top: 22px !important; }
  .fam-head svg { width: 40px !important; height: 40px !important; }
  .fam-head h3 { font-size: 22px !important; }
  .family li b { font-size: 16px !important; }
  .family li .en { font-size: 12.5px !important; }

  .steps { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px !important; }
  .step h3 { font-size: 17px; margin-bottom: 6px; }
  .step p { font-size: 14px; }
  .note { font-size: 14px; gap: 10px; padding: 10px 16px; margin-top: 20px; flex-wrap: wrap; }

  .audience { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
  .aud { padding: 16px; min-height: 0; gap: 10px; }
  .aud svg { width: 38px; height: 38px; }
  .aud h3 { font-size: 16px; }
  .aud p { font-size: 13.5px; }

  .geo-label { font-size: 30px; stroke-width: 8px; }
  .region h3 { font-size: 18px !important; }
  .region p { font-size: 16px !important; }

  .skill-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .skill-grid .card h3 { font-size: 17px; margin-bottom: 10px; }
  .chips { gap: 7px; }
  .chip { font-size: 13px; padding: 5px 11px; }
  .certs { flex-direction: column; gap: 8px; margin-top: 14px; }
  .cert { font-size: 13.5px; padding: 10px 14px; border-radius: 12px; }
  .cert svg { width: 24px; height: 24px; }

  .contact-list { gap: 14px; margin-top: 24px; }
  .contact-list a, .contact-list div { font-size: 17px; gap: 12px; }
  .contact-list .ico { width: 44px; height: 44px; border-radius: 13px; }
  .contact-list .ico svg { width: 22px; height: 22px; }

  .footer { right: 20px; left: 20px; bottom: 22px; font-size: 12px; gap: 10px; }
  .slide .pg { padding-right: 10px; }

  .steps .card p { font-size: 15px !important; }
  .slide h2[style*="font-size"] { font-size: 34px !important; }
  .m-tl .y { text-align: right; }

  /* phone-only alternatives for wide labelled diagrams */
  .m-block h3 { font-family: var(--display); font-size: 17px; margin: 22px 0 10px; }
  .m-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: c; }
  .m-chain li { counter-increment: c; position: relative; font-size: 15px; padding: 11px 44px 11px 14px;
    border: 1px solid rgba(24,191,255,.45); border-radius: 12px; background: rgba(17,27,58,.85); }
  .m-chain li::before { content: counter(c); position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
    font-family: var(--display); color: var(--cyan); border: 1px solid currentColor; }
  .m-chain.green li { border-color: rgba(46,230,166,.45); }
  .m-chain.green li::before { color: var(--green); }
  .m-tl { list-style: none; margin: 26px 0 0; padding: 0 22px 0 0; border-right: 2px solid var(--violet); display: grid; gap: 18px; }
  .m-tl li { position: relative; }
  .m-tl li::before { content: ""; position: absolute; right: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 0 3px var(--bg); }
  .m-tl .y { display: block; font-family: var(--display); font-weight: 700; color: var(--cyan); font-size: 15px; }
  .m-tl b { display: block; font-size: 16px; margin-top: 2px; }
  .m-tl .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
}

@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: none; }
}
@media (min-width: 900px) {
  html { scroll-snap-type: y proximity; }
}
