/* Custom Business OS Workshop — slide deck
   Self-contained: no CDN, no build step. Fonts are the site's own files. */

@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../../assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("../../assets/fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("../../assets/fonts/inter-tight-400.woff2") format("woff2"); }

:root {
  --ink: #07080a;
  --gold: #d8b26a;
  --gold-soft: #e8cf9b;
  --white: #f4f2ec;
  --mute: #9aa3b5;
  --sans: "Poppins", Helvetica, Arial, sans-serif;
  --body: "Inter Tight", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- stage ---------- */

.deck { position: relative; height: 100vh; height: 100dvh; }

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 96px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 40%, #14161c 0%, #0a0b10 55%, #050609 100%);
}
.slide.is-active { display: flex; animation: rise .55s cubic-bezier(.22,.61,.36,1) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1, h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  max-width: 17ch;
  text-wrap: balance;
  font-size: clamp(30px, 5.4vw, 78px);
}
.shout { max-width: 22ch; text-transform: none; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -.01em;
}
.hl { color: var(--white); box-shadow: inset 0 -.34em 0 rgba(216,178,106,.28); }

/* ---------- ambient art (CSS only) ---------- */

.orb, .wires, .debris, .panes, .split { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.slide > h1, .slide > h2, .slide > .chips, .slide > .cta, .slide > .byline, .slide > .fine, .slide > .chart, .slide > .layers { position: relative; z-index: 1; }

.orb {
  background:
    radial-gradient(38% 38% at 50% 46%, rgba(216,178,106,.10), transparent 70%),
    repeating-linear-gradient(120deg, rgba(216,178,106,.055) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(60deg, rgba(216,178,106,.055) 0 1px, transparent 1px 62px);
  mask-image: radial-gradient(46% 52% at 50% 50%, #000 20%, transparent 78%);
}

.wires {
  background:
    repeating-linear-gradient(28deg, rgba(160,175,205,.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(-32deg, rgba(160,175,205,.05) 0 1px, transparent 1px 57px),
    radial-gradient(60% 60% at 50% 55%, rgba(90,140,255,.08), transparent 75%);
}

.debris {
  background:
    radial-gradient(circle at 18% 72%, rgba(255,255,255,.10) 0 8px, transparent 9px),
    radial-gradient(circle at 26% 40%, rgba(255,255,255,.07) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 30%, rgba(216,178,106,.13) 0 7px, transparent 8px),
    radial-gradient(circle at 72% 78%, rgba(255,255,255,.06) 0 4px, transparent 5px);
  filter: blur(.2px);
}

.panes {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,.03) 12% 12.4%, transparent 12.4% 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 70px);
  mask-image: radial-gradient(70% 70% at 30% 50%, #000, transparent 80%);
}

.split {
  background:
    linear-gradient(90deg, rgba(140,160,200,.07) 0%, rgba(140,160,200,.0) 46%, rgba(216,178,106,.0) 54%, rgba(216,178,106,.10) 100%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 85%);
}

/* ---------- slide 5: layers ---------- */

.slide--layers { gap: clamp(22px, 4vh, 44px); }
.slide--layers h2 { font-size: clamp(20px, 2.5vw, 34px); max-width: 30ch; line-height: 1.25; letter-spacing: -.01em; }

.layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: min(620px, 84vw);
}
.layers li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(10px, 1.6vh, 16px) 22px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.4vw, 17px);
  color: #cfd7e6;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  transform-origin: 50% 50%;
  transform: perspective(1400px) rotateX(18deg) scaleX(.96);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}
.layers li:first-child { border-color: rgba(216,178,106,.55); color: #fff; background: linear-gradient(180deg, rgba(216,178,106,.20), rgba(216,178,106,.06)); }
.layers li span { color: var(--gold); font-size: .82em; letter-spacing: .16em; }

/* ---------- slide 7: chart ---------- */

.slide--chart { gap: clamp(16px, 3vh, 30px); }
.slide--chart h2 { font-size: clamp(20px, 2.7vw, 40px); max-width: 26ch; line-height: 1.16; }
.chart { margin: 0; width: min(820px, 88vw); position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 14px rgba(216,178,106,.45)); }
.chart figcaption {
  position: absolute;
  top: 2%; right: 2%;
  background: rgba(18,20,26,.92);
  border: 1px solid rgba(216,178,106,.28);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: left;
}
.chart figcaption strong { display: block; font-family: var(--sans); font-weight: 800; font-size: clamp(18px, 2vw, 26px); color: var(--gold-soft); }
.chart figcaption span { font-family: var(--body); font-size: 12.5px; letter-spacing: .02em; color: var(--mute); }
.fine { margin: 0 auto; font-size: clamp(11px, 1vw, 13px); color: #7f8798; max-width: 62ch; text-wrap: pretty; }

/* ---------- slide 9: offer ---------- */

.slide--offer { gap: clamp(22px, 3.4vh, 40px); }
.slide--offer h2 { font-size: clamp(24px, 3.6vw, 56px); max-width: 24ch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; padding: 0; }
.chips li {
  font-family: var(--body);
  font-size: clamp(11.5px, 1.05vw, 14px);
  letter-spacing: .01em;
  color: #dfe4ee;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.board { width: min(820px, 88vw); height: auto; display: block; filter: drop-shadow(0 26px 60px rgba(0,0,0,.6)); }
.board .plate { fill: rgba(18,21,28,.94); stroke: rgba(255,255,255,.10); }
.board .grid line { stroke: rgba(255,255,255,.045); stroke-width: 1; }
.board .pipe { fill: none; stroke: rgba(216,178,106,.55); stroke-width: 2; }
.board .node rect { fill: rgba(216,178,106,.16); stroke: rgba(216,178,106,.62); stroke-width: 1.2; }
.board .lbl text { fill: #8f99ab; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-anchor: middle; }

/* ---------- slide 10: close ---------- */

.slide--close { gap: clamp(26px, 4vh, 46px); }
.slide--close h2 { max-width: 24ch; }
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 19px);
  color: #0a0b10;
  background: #f7f5ef;
  text-decoration: none;
  padding: clamp(14px, 1.8vh, 20px) clamp(24px, 3vw, 40px);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(216,178,106,.5), 0 20px 50px rgba(0,0,0,.6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(216,178,106,.9), 0 26px 60px rgba(0,0,0,.7); }
.cta:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 4px; }
.byline { margin: 0; font-size: clamp(11.5px, 1vw, 13.5px); color: #8b93a4; letter-spacing: .04em; }

/* ---------- chrome ---------- */

.brand {
  position: fixed;
  top: 20px; left: 22px;
  margin: 0;
  z-index: 5;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,242,236,.42);
}

.hud {
  position: fixed;
  right: 20px; bottom: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud button {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font: inherit; font-size: 16px;
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  cursor: pointer;
}
.hud button:hover { background: rgba(255,255,255,.12); }
.hud button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.hud button:disabled { opacity: .32; cursor: default; }
.count { font-size: 12px; letter-spacing: .08em; color: var(--mute); }
.count b { color: var(--white); font-weight: 600; }

.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.07); z-index: 6; }
.progress i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, rgba(216,178,106,.5), var(--gold)); transition: width .3s ease; }

.hint {
  position: fixed;
  left: 22px; bottom: 20px;
  margin: 0;
  font-size: 11.5px;
  color: rgba(244,242,236,.34);
  z-index: 5;
  transition: opacity .4s ease;
}
.hint.is-gone { opacity: 0; }

@media (max-width: 640px) {
  .brand { top: 14px; left: 16px; font-size: 9.5px; letter-spacing: .14em; }
  .hint { left: 16px; bottom: 16px; font-size: 10.5px; }
  .hud { right: 14px; bottom: 14px; }
  .chart figcaption { position: static; margin-top: 10px; display: inline-block; }
  .layers li { transform: none; }
  .board { width: 100%; }
  .board .lbl text { font-size: 9.5px; }
  .slide--offer { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.is-active { animation: none; }
  .cta, .progress i { transition: none; }
}

/* ---------- print / PDF export: every slide, one per landscape page ---------- */

@media print {
  @page { size: 1376px 768px; margin: 0; }
  html, body { height: auto; overflow: visible; background: #07080a; }
  .brand, .hud, .progress, .hint { display: none !important; }
  .deck { height: auto; }
  .slide {
    display: flex !important;
    position: relative;
    inset: auto;
    break-after: page;
    height: 768px;
    background: #07080a;
  }
  .slide.is-active { animation: none; }
}
