/* VMS keynote deck. Everything is sized in rem so the whole deck scales with the screen. */

:root {
  color-scheme: dark;
  --petrol: #003850;          /* brand colour, taken from the logo */
  --ink: #050d13;             /* neutral shade laid over footage: no colour cast */
  --aqua: #5fe3cf;            /* primary accent */
  --aqua-soft: #b4f2e7;
  --amber: #ffc15e;           /* sparing accent: the main call to action and key moments */
  --coral: #ff8d7a;           /* the "pain" side of the problem scene */
  --text: #f4f8fa;
  --text-2: rgba(236, 244, 248, .8);
  --text-3: rgba(236, 244, 248, .56);
  --line: rgba(255, 255, 255, .2);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --dockw: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { font-size: clamp(12px, min(1.05vw, 1.9vh), 28px); }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--aqua); color: var(--ink); }
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.ico { width: 1.5rem; height: 1.5rem; }

/* Neutral dark glass: it blurs the footage behind it without tinting it. */
.glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    rgba(6, 14, 20, .42);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  backdrop-filter: blur(1.5rem) saturate(1.35);
  -webkit-backdrop-filter: blur(1.5rem) saturate(1.35);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* ---------- Deck and scene transitions ---------- */
#site { position: fixed; inset: 0 var(--dockw) 0 0; overflow: hidden; transition: opacity .25s ease; }
#site.dim { opacity: 0; }

.scene { position: absolute; inset: 0; z-index: 1; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s .55s; }
.scene.leaving { visibility: visible; }
.scene.active { z-index: 2; opacity: 1; visibility: visible; transition: opacity .7s ease .12s; }

.bg { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.scene.active .bg video, .scene.leaving .bg video { animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.13) translate(-1.2%, -1%); } }

/* Footage keeps its own colours. Only neutral shade is added, where the text needs it. */
.bg::after { content: ""; position: absolute; inset: 0; }
.shade-hero .bg::after {
  background:
    linear-gradient(90deg, rgba(5, 13, 19, .9) 0%, rgba(5, 13, 19, .72) 36%, rgba(5, 13, 19, .2) 68%, rgba(5, 13, 19, .3) 100%),
    linear-gradient(180deg, rgba(5, 13, 19, .5) 0%, transparent 24%, transparent 70%, rgba(5, 13, 19, .62) 100%);
}
.shade-even .bg::after {
  background:
    linear-gradient(180deg, rgba(5, 13, 19, .62) 0%, rgba(5, 13, 19, .36) 32%, rgba(5, 13, 19, .42) 68%, rgba(5, 13, 19, .74) 100%),
    rgba(5, 13, 19, .22);
}

.scene-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  gap: 2.2rem;
  padding: 6.5rem 4.5rem 4.2rem 8.5rem;
  overflow-y: auto;
  scrollbar-width: none;
}
.scene-inner::-webkit-scrollbar { display: none; }

/* Staggered entrance. The fill is "backwards" so, once it ends, the element returns to its normal
   styles and hover effects keep working. */
.rv { opacity: 0; }
.scene.active .rv, .scene.leaving .rv { opacity: 1; }
.scene.active .rv { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms + 300ms); }
@keyframes rise { from { opacity: 0; transform: translateY(1.8rem); } }

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; color: var(--aqua); font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 1rem rgba(0, 0, 0, .5); }
.eyebrow b { padding: .2rem .55rem; border: 1px solid rgba(95, 227, 207, .5); border-radius: 99px; background: rgba(5, 13, 19, .35); letter-spacing: .08em; }
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 1rem var(--amber); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.8); } }
h1, h2 { font-family: var(--serif); letter-spacing: -.025em; text-shadow: 0 .15rem 2rem rgba(0, 0, 0, .45); }
h1 { font-size: 5.6rem; line-height: 1.02; }
h2 { font-size: 3.6rem; line-height: 1.07; }
h1 em, h2 em {
  background: linear-gradient(100deg, var(--aqua) 0%, var(--aqua-soft) 45%, var(--aqua) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  text-shadow: none;
  filter: drop-shadow(0 .12rem 1rem rgba(0, 0, 0, .55));
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.lede { max-width: 42rem; color: var(--text-2); font-size: 1.3rem; line-height: 1.65; text-shadow: 0 1px 1.2rem rgba(0, 0, 0, .5); }
.head { flex: 0 0 auto; }

/* ---------- Chrome ---------- */
.progress { position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: .22rem; background: rgba(255, 255, 255, .08); }
.progress i { display: block; width: 10%; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--amber)); transition: width .8s var(--ease); }
.brand { position: absolute; z-index: 5; top: 1.6rem; left: 2.2rem; display: flex; align-items: center; gap: .8rem; }
.brand img { width: 2.6rem; height: auto; filter: drop-shadow(0 .1rem .6rem rgba(0, 0, 0, .5)); }
.brand span { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; text-shadow: 0 .1rem .8rem rgba(0, 0, 0, .5); }
.brand small { color: var(--text-3); font-size: inherit; font-weight: 500; }

.dots { position: absolute; z-index: 6; top: 50%; left: 1.4rem; display: flex; flex-direction: column; gap: .5rem; padding: .8rem .5rem; border-radius: 99px; transform: translateY(-50%); }
.dots button { position: relative; width: 1.1rem; height: 1.1rem; padding: 0; border: 0; background: none; cursor: pointer; }
.dots button::before { content: ""; position: absolute; inset: .3rem; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: all .4s var(--ease); }
.dots button:hover::before { background: #fff; }
.dots button.active::before { inset: .1rem .3rem; background: var(--aqua); box-shadow: 0 0 .9rem rgba(95, 227, 207, .7); }
.dots button span { position: absolute; left: 1.9rem; top: 50%; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: rgba(5, 13, 19, .88); backdrop-filter: blur(.8rem); font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-.4rem, -50%); transition: all .25s; }
.dots button:hover span { opacity: 1; transform: translate(0, -50%); }

.counter { position: absolute; z-index: 5; left: 2.2rem; bottom: 1.6rem; display: flex; align-items: baseline; gap: .5rem; color: var(--text-3); font-size: .9rem; text-shadow: 0 1px .8rem rgba(0, 0, 0, .6); }
.counter b { color: var(--text); font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }

.start-pill {
  position: fixed;
  z-index: 70;
  top: 1.4rem;
  right: 1.8rem;
  padding: .7rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(5, 13, 19, .5);
  backdrop-filter: blur(1rem);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.start-pill:hover { border-color: var(--aqua); background: rgba(95, 227, 207, .18); }
.presenting .start-pill { display: none; }

#toast { position: fixed; z-index: 90; top: 1.6rem; left: 50%; max-width: 90vw; padding: .9rem 1.4rem; border: 1px solid rgba(255, 193, 94, .55); border-radius: 99px; background: rgba(5, 13, 19, .94); backdrop-filter: blur(1rem); font-size: .95rem; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, -1rem); transition: all .4s var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.05rem 1.9rem;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--amber), #ffd98f);
  box-shadow: 0 .8rem 2.2rem rgba(255, 193, 94, .3);
  color: #2a1c00;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out 2s infinite; }
@keyframes sheen { 40%, 100% { transform: translateX(120%); } }
.cta:hover { transform: translateY(-.15rem); box-shadow: 0 1.1rem 2.8rem rgba(255, 193, 94, .45); }
.cta .arrow { transition: transform .25s; }
.cta:hover .arrow { transform: translateX(.3rem); }
.hint { color: var(--text-3); font-size: 1rem; }
.presenting .cta[data-start], .presenting .hint { display: none; }

/* ---------- Home ---------- */
#home .scene-inner { justify-content: space-between; gap: 2rem; padding-top: 8rem; }
.hero-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 1.6rem; }
.hero-copy .lede { max-width: 38rem; }
.stat-bar { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; flex: 0 0 auto; }
.stat-bar > div { display: grid; gap: .2rem; padding: 1.5rem 1.8rem; }
.stat-bar > div + div { border-left: 1px solid var(--line); }
.stat-bar strong { font-family: var(--serif); font-size: 2.8rem; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.stat-bar strong.word { padding-top: .3rem; font-size: 2.3rem; white-space: nowrap; }
.stat-bar small { color: var(--text-2); font-size: .95rem; }

/* ---------- The problem ---------- */
.challenge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: center; }
.challenge h2 { font-size: 3.2rem; }
.challenge-copy { display: grid; gap: 1.6rem; align-content: center; }
.challenge-copy .lede { font-size: 1.2rem; }
.pains { display: grid; gap: .8rem; }
.pain-row { display: grid; gap: .6rem; padding: 1rem 1.4rem 1.05rem; border-radius: 1.1rem; }
.pain, .fix { display: flex; align-items: center; gap: .9rem; }
.pain p { color: var(--text-2); font-size: 1rem; line-height: 1.4; }
.fix p { color: #fff; font-size: 1.12rem; font-weight: 600; line-height: 1.4; }
.mark { display: grid; flex: 0 0 auto; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; }
.mark .ico { width: .95rem; height: .95rem; stroke-width: 2.5; }
.mark-x { background: rgba(255, 141, 122, .18); color: var(--coral); border: 1px solid rgba(255, 141, 122, .5); }
.mark-ok { background: rgba(95, 227, 207, .22); color: var(--aqua); border: 1px solid rgba(95, 227, 207, .65); }
/* The pain is stated first and fades back; then the answer arrives beneath it, card by card. */
.scene.active .pain { animation: pain-fade .7s calc(1.4s + var(--n) * .45s) ease forwards; }
@keyframes pain-fade { to { opacity: .6; } }
.fix { opacity: 0; transform: translateY(.6rem); }
.scene.active .fix { animation: fix-in .8s var(--ease) calc(1.4s + var(--n) * .45s) forwards; }
.scene.leaving .fix { opacity: 1; transform: none; }
@keyframes fix-in { to { opacity: 1; transform: none; } }
.result { display: flex; align-items: center; gap: .9rem; align-self: flex-start; padding: 1rem 1.5rem; border: 1px solid rgba(255, 193, 94, .6); border-radius: 1.1rem; background: rgba(255, 193, 94, .13); backdrop-filter: blur(1rem); font-size: 1.1rem; font-weight: 600; line-height: 1.45; }
.result i { flex: 0 0 auto; width: .6rem; height: .6rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 1rem var(--amber); }

/* ---------- Tiles ---------- */
.grid { display: grid; gap: 1.2rem; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem 1.7rem 1.7rem; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.tile:hover { transform: translateY(-.35rem); border-color: rgba(95, 227, 207, .6); box-shadow: 0 1.8rem 3.4rem rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tile h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.tile p { color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }
.tile-ico { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .4rem; border: 1px solid rgba(95, 227, 207, .4); border-radius: .9rem; background: rgba(95, 227, 207, .12); color: var(--aqua); }
.tile-no { color: var(--aqua); font-size: .85rem; font-weight: 800; letter-spacing: .14em; }
.faq .tile h3 { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.faq .tile p { font-size: .98rem; }

/* ---------- Spotlight: the item Irfan is talking about ---------- */
.spot { transition: transform .45s var(--ease), opacity .45s, filter .45s, border-color .45s, box-shadow .45s; }
.scene.spotting .spot:not(.spot-on) { opacity: .5; filter: saturate(.7); }
.scene .spot.spot-on { transform: translateY(-.3rem) scale(1.025); border-color: var(--aqua); box-shadow: 0 0 0 .14rem rgba(95, 227, 207, .55), 0 1.6rem 3.4rem rgba(0, 0, 0, .45), 0 0 2.6rem rgba(95, 227, 207, .28), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* ---------- Company flow ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: .8rem; }
.flow-line { position: absolute; top: 1.4rem; left: 8.3%; right: 8.3%; height: .14rem; border-radius: 9px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.flow-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--aqua), var(--amber)); transform: scaleX(0); transform-origin: left; }
.scene.active .flow-line::after { animation: draw 2.4s .9s var(--ease) forwards; }
.scene.leaving .flow-line::after { transform: none; }
@keyframes draw { to { transform: scaleX(1); } }
.flow-node { position: relative; display: grid; justify-items: center; gap: .9rem; text-align: center; }
.flow-node span { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(5, 13, 19, .75); backdrop-filter: blur(.6rem); font-family: var(--serif); font-size: 1.15rem; }
.scene.active .flow-node span { animation: light .6s calc(1s + var(--n) * .4s) var(--ease) forwards; }
@keyframes light { to { border-color: var(--aqua); background: rgba(95, 227, 207, .28); color: var(--aqua-soft); box-shadow: 0 0 1.4rem rgba(95, 227, 207, .5); } }
.flow-node b { font-size: 1.05rem; font-weight: 600; text-shadow: 0 1px .8rem rgba(0, 0, 0, .6); }

/* ---------- Approach ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.steps-line { position: absolute; top: -.7rem; left: 0; right: 0; height: .14rem; border-radius: 9px; background: rgba(255, 255, 255, .2); }
.steps-line i { position: absolute; inset: 0; border-radius: 9px; background: linear-gradient(90deg, var(--aqua), var(--amber)); transform: scaleX(0); transform-origin: left; }
.scene.active .steps-line i { animation: draw 3s .8s var(--ease) forwards; }
.scene.leaving .steps-line i { transform: none; }
.step { display: flex; flex-direction: column; gap: .6rem; padding: 1.7rem; transition: transform .35s var(--ease), border-color .35s; }
.step:hover { transform: translateY(-.35rem); border-color: rgba(95, 227, 207, .6); }
.step-n { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .6rem; border-radius: 50%; border: 1px solid rgba(95, 227, 207, .5); background: rgba(95, 227, 207, .16); color: var(--aqua); font-family: var(--serif); font-size: 1.4rem; }
.step h3 { font-family: var(--serif); font-size: 1.7rem; }
.step p { color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }
.step-key { border-color: rgba(255, 193, 94, .65); background: linear-gradient(145deg, rgba(255, 193, 94, .22), rgba(255, 255, 255, .04)), rgba(6, 14, 20, .42); }
.step-key .step-n { border-color: var(--amber); background: rgba(255, 193, 94, .2); color: var(--amber); }

/* ---------- Industries bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.bento-1 { grid-column: span 2; background: linear-gradient(145deg, rgba(95, 227, 207, .26), rgba(255, 255, 255, .04)), rgba(6, 14, 20, .42); }
.bento-6 { grid-column: span 2; background: linear-gradient(145deg, rgba(255, 193, 94, .24), rgba(255, 255, 255, .04)), rgba(6, 14, 20, .42); }
.bento .tile { min-height: 9.6rem; }
.bento-1 h3, .bento-6 h3 { font-size: 2rem; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; color: var(--text-2); font-size: 1.02rem; font-weight: 600; text-shadow: 0 1px .8rem rgba(0, 0, 0, .6); }
.also small { color: var(--aqua); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.also i { width: .3rem; height: .3rem; border-radius: 50%; background: var(--text-3); }

/* ---------- Clients marquee ---------- */
/* Starts to the right of the navigation dots so nothing slides underneath them. */
.marquee { display: grid; gap: 1.2rem; margin: 0 -4.5rem 0 -3rem; padding: 1rem 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-row { overflow: hidden; padding: .3rem 0; }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; animation: scroll 55s linear infinite; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 65s; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip { display: grid; flex: 0 0 auto; align-content: center; gap: .2rem; min-width: 14rem; min-height: 5.6rem; padding: 1.1rem 1.9rem; text-align: center; border-radius: 1.2rem; }
.chip strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.chip small { color: var(--text-2); font-size: .9rem; }
.fine { color: var(--text-3); font-size: .85rem; text-shadow: 0 1px .8rem rgba(0, 0, 0, .6); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 4rem; align-items: center; }
.contact-grid h2 { font-size: 3.5rem; margin-bottom: 1.2rem; }
.contact-grid .lede { margin-bottom: 1.8rem; }
.contact-list { display: grid; gap: .9rem; max-width: 36rem; margin-top: 2.2rem; }
.row { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.4rem; transition: border-color .3s, transform .3s var(--ease); }
.row:hover { border-color: rgba(95, 227, 207, .6); transform: translateX(.3rem); }
.row .ico { flex: 0 0 auto; color: var(--aqua); }
.row span { display: grid; line-height: 1.3; }
.row small { color: var(--text-3); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.row b { font-size: 1.1rem; font-weight: 600; }
.qr { display: grid; justify-items: center; gap: .6rem; padding: 1.6rem; text-align: center; }
.qr img { width: 100%; max-width: 15rem; padding: .7rem; border-radius: 1rem; background: #fff; }
.qr b { margin-top: .5rem; font-size: 1.15rem; }
.qr small { color: var(--text-2); font-size: .95rem; }

/* ---------- AI co-presenter dock ---------- */
#presenter {
  position: fixed;
  z-index: 60;
  right: 1.4rem;
  bottom: 1.4rem;
  display: none;
  flex-direction: column;
  gap: .9rem;
  width: 21rem;
  padding: .8rem;
  border-radius: 1.5rem;
  background: rgba(7, 15, 21, .8);
}
.presenting #presenter { display: flex; animation: dock-in .7s var(--ease) both; }
@keyframes dock-in { from { opacity: 0; transform: translateX(2rem); } }

.stage { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 1.1rem; background: radial-gradient(circle at 50% 35%, #1b3a4a, #070f15 78%); transition: box-shadow .4s; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .7s; }
.has-video #video { opacity: 1; }
.stage-idle { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1rem; color: var(--text-2); font-size: .95rem; transition: opacity .5s; }
.stage-idle img { width: 4rem; animation: pulse 2s ease-in-out infinite; }
.has-video .stage-idle { opacity: 0; }
.live-badge { position: absolute; top: .8rem; left: .8rem; display: none; align-items: center; gap: .45rem; padding: .25rem .7rem; border-radius: 99px; background: rgba(5, 13, 19, .72); backdrop-filter: blur(.5rem); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.live-badge i { width: .5rem; height: .5rem; border-radius: 50%; background: #ff5a5f; animation: pulse 1.4s ease-in-out infinite; }
.has-video .live-badge { display: inline-flex; }
/* a soft glow while Irfan is talking, so the room knows who has the floor */
#presenter[data-state="speaking"] .stage { animation: speak 1.8s ease-in-out infinite; }
@keyframes speak { 0%, 100% { box-shadow: 0 0 0 .14rem rgba(95, 227, 207, .55), 0 0 1.6rem rgba(95, 227, 207, .25); } 50% { box-shadow: 0 0 0 .14rem rgba(95, 227, 207, .95), 0 0 2.8rem rgba(95, 227, 207, .5); } }

.presenter-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 0 .3rem; }
.presenter-name { display: grid; line-height: 1.25; }
.presenter-name strong { font-size: 1.2rem; font-weight: 800; }
.presenter-name small { color: var(--text-3); font-size: .85rem; }
#state { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--text-2); font-size: .85rem; font-weight: 600; white-space: nowrap; }
#mic { width: .55rem; height: .55rem; border-radius: 50%; background: #5d6878; transition: background .12s, box-shadow .12s; }
#mic.on { background: #63dd98; box-shadow: 0 0 0 .28rem rgba(99, 221, 152, .22); }
#presenter[data-state="speaking"] #state { background: rgba(95, 227, 207, .2); color: var(--aqua-soft); }

#captions { display: none; flex-direction: column; gap: .7rem; max-height: 9.5rem; overflow-y: auto; padding: 0 .3rem; scrollbar-width: none; }
#captions:not(:empty) { display: flex; }
#captions p { font-size: .98rem; line-height: 1.5; }
#captions b { display: block; margin-bottom: .1rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cap-agent b { color: var(--aqua); }
.cap-agent span { color: #fff; }
.cap-user b { color: var(--text-3); }
.cap-user span { color: var(--text-2); }
#end { padding: .8rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255, 255, 255, .06); font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .25s, border-color .25s; }
#end:hover { border-color: #ff7b80; background: rgba(255, 90, 95, .2); }

/* Irfan always gets a full-height column of his own and the deck shrinks to make room, so slides never sit behind him. */
@media (min-width: 720px) {
  body.presenting { --dockw: clamp(18rem, 24vw, 34rem); }
  #presenter { top: 0; right: 0; bottom: 0; width: var(--dockw); gap: 1.1rem; padding: 1.3rem; border-width: 0 0 0 1px; border-radius: 0; box-shadow: -1.5rem 0 4rem rgba(0, 0, 0, .45); }
  .presenting #presenter { animation: dock-wide .7s var(--ease) both; }
  @keyframes dock-wide { from { transform: translateX(100%); } }
  #captions { flex: 1; max-height: none; justify-content: flex-end; gap: 1.1rem; }
  #captions p { font-size: 1rem; }
  /* Irfan's words are large: this is what the room reads while he talks. */
  .cap-agent span { font-size: 1.5rem; font-weight: 500; line-height: 1.38; }
  .cap-user span { font-size: .95rem; }
  #end { margin-top: auto; }
  .presenting .scene-inner { gap: 1.6rem; padding: 5.6rem 3rem 3.4rem 8.5rem; }
  .presenting #home .scene-inner { padding-top: 7rem; }
  .presenting .marquee { margin-right: -3rem; }
  /* The deck is a quarter narrower while Irfan is beside it, so cards tighten up to keep every scene on one screen. */
  .presenting h2 { font-size: 3.1rem; }
  .presenting .grid, .presenting .bento { gap: 1rem; }
  .presenting .tile { gap: .4rem; padding: 1.15rem 1.35rem 1.25rem; }
  .presenting .tile h3 { font-size: 1.4rem; }
  .presenting .tile p { font-size: .96rem; line-height: 1.5; }
  .presenting .tile-ico { width: 2.4rem; height: 2.4rem; margin-bottom: .15rem; }
  .presenting .bento .tile { min-height: 7.4rem; }
  .presenting .bento-1 h3, .presenting .bento-6 h3 { font-size: 1.7rem; }
  .presenting .step { padding: 1.3rem; }
  .presenting .contact-grid h2 { font-size: 3rem; }
  .presenting .challenge h2 { font-size: 2.8rem; }
  .presenting .stat-bar > div { padding: 1.3rem 1.4rem; }
  .presenting .stat-bar strong.word { font-size: 1.9rem; padding-top: .55rem; }
}

/* ---------- Other screen shapes ---------- */
@media (min-width: 720px) and (max-width: 1000px) {
  .presenting .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presenting .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presenting .bento-1, .presenting .bento-6 { grid-column: span 2; }
  .presenting .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presenting .challenge { grid-template-columns: 1fr; }
  .presenting .contact-grid { grid-template-columns: 1fr; }
  .presenting .qr { display: none; }
}
/* Squarer projectors and short laptop screens: tighten spacing so scenes still fit. */
@media (max-aspect-ratio: 3/2), (max-height: 740px) {
  .scene-inner { gap: 1.6rem; padding-top: 5.8rem; padding-bottom: 3.4rem; }
  h2 { font-size: 3.1rem; }
  .tile { padding: 1.3rem 1.4rem 1.4rem; gap: .5rem; }
  .tile-ico { width: 2.6rem; height: 2.6rem; }
  .bento .tile { min-height: 8rem; }
  .pain-row { padding: .8rem 1.3rem; }
  .step { padding: 1.3rem; }
}
@media (max-width: 719px) {
  html { font-size: 14px; }
  body { overflow: auto; }
  .scene-inner { justify-content: flex-start; padding: 5.5rem 1.4rem 4.5rem; }
  .dots, .counter { display: none; }
  h1 { font-size: 3.2rem; }
  h2, .contact-grid h2 { font-size: 2.4rem; }
  .g3, .bento, .steps, .contact-grid { grid-template-columns: 1fr; }
  .bento-1, .bento-6 { grid-column: auto; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat-bar > div:nth-child(3) { border-left: 0; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .flow-line { display: none; }
  .challenge { grid-template-columns: 1fr; gap: 2rem; }
  .marquee { margin: 0 -1.4rem; }
  #presenter { width: min(19rem, calc(100vw - 2rem)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv, .fix { opacity: 1; transform: none; }
}

/* Stage mode: the talk bar over the avatar (tap SPACE to talk) */
#talk { display: none; position: absolute; left: .7rem; right: .7rem; bottom: .7rem; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: .9rem; background: rgba(5, 13, 19, .72); backdrop-filter: blur(8px); color: var(--text); font-size: .85rem; font-weight: 600; transition: background .2s, box-shadow .2s; }
.stage-mode #talk { display: flex; }
#talk kbd { padding: .15rem .5rem; border-radius: .4rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); font: 800 .7rem/1.4 var(--sans); letter-spacing: .08em; }
#talk-text { flex: 1; }
#bars { display: inline-flex; align-items: center; gap: .18rem; height: 1.3rem; }
#bars i { width: .22rem; height: 100%; border-radius: 99px; background: #5d6878; transform: scaleY(.18); transition: transform .08s linear, background .2s; }
#presenter[data-talk="listening"] #talk { background: rgba(26, 110, 70, .85); box-shadow: 0 0 0 .2rem rgba(99, 221, 152, .35); }
#presenter[data-talk="listening"] #bars i { background: #b8f5d2; }
#presenter[data-talk="listening"] .stage { box-shadow: 0 0 0 .22rem rgba(99, 221, 152, .55), 0 0 2.2rem rgba(99, 221, 152, .35); }
#presenter[data-talk="thinking"] #talk { background: rgba(120, 90, 20, .85); }
#presenter[data-talk="speaking"] #talk { background: rgba(0, 56, 80, .88); }
#presenter[data-talk="thinking"] #bars i { background: var(--amber); animation: think 1s ease-in-out infinite; }
#presenter[data-talk="thinking"] #bars i:nth-child(2) { animation-delay: .12s; } #presenter[data-talk="thinking"] #bars i:nth-child(3) { animation-delay: .24s; }
#presenter[data-talk="thinking"] #bars i:nth-child(4) { animation-delay: .36s; } #presenter[data-talk="thinking"] #bars i:nth-child(5) { animation-delay: .48s; }
@keyframes think { 50% { transform: scaleY(.9); } }
