/* Crink pitch deck. Slides are authored on a fixed 1920x1080 canvas (generated
   by tools/pptx2html.py), scaled to the viewport via --scale, and moved by
   assets/js/deck.js (the page itself never scrolls). */

:root {
  /* The deck uses Gordita / Sigher (commercial). Put 'Gordita' first here once
     a webfont licence is in place and the files are self-hosted. */
  --font-sans: "Poppins", "Gordita", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Sigher", cursive;

  --brand: #771fc5;
  --brand-soft: #e5c9fe;
  --letterbox: #0e0b14;
  --chip-bg: rgba(20, 14, 30, 0.74);
  --chip-fg: #f4ecff;
  --scale: 0.5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--letterbox);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* deck.js handles swipes; keep pinch-zoom for reading small text on phones. */
body { touch-action: pinch-zoom; }

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

.deck { position: fixed; inset: 0; overflow: hidden; }

/* Each slide sits in a full-viewport frame painted with the slide's own
   background; the frame is what slides sideways (transform set by deck.js). */
.frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  will-change: transform;
  contain: strict;
}

/* Outgoing slide dims as the next one covers it. */
.frame__dim {
  position: absolute;
  inset: 0;
  background: var(--letterbox);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-family: var(--font-sans);
}

/* A run of shapes that parallax together (built by deck.js). */
.layer { position: absolute; }
.layer.is-warm { will-change: transform; }

.sh { position: absolute; }

.sh > img,
.sh > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sh > .fill { position: absolute; inset: 0; }

.tx {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: #000;
}

.tx p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  letter-spacing: -0.01em; /* Poppins tracks slightly wider than Gordita */
}

.tx[data-nowrap] p { white-space: pre; }

.tx .bu { display: inline-block; text-indent: 0; }

.tx a { color: inherit; text-decoration: none; }
.tx a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

/* ------------------------------------------------- letterbox edge fill --- */

.edge { position: absolute; overflow: hidden; pointer-events: none; }
.edge--top { left: 0; right: 0; top: 0; }
.edge--bottom { left: 0; right: 0; bottom: 0; }
.edge--left { top: 0; bottom: 0; left: 0; }
.edge--right { top: 0; bottom: 0; right: 0; }
.edge[hidden] { display: none; }

.edge__strip { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; }
.edge__strip > .slide { position: absolute; transform: none; }

/* ---------------------------------------------- slide 5: app demo video --- */
/* A full-screen slide (not a scaled canvas) so the player and its native
   controls are drawn at normal size on any screen. */

.slide.slide--full { left: 0; top: 0; width: 100%; height: 100%; transform: none; }

.vslide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(40px, env(safe-area-inset-top)) max(16px, 3vw) max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(119, 31, 197, 0.38), transparent 70%),
    radial-gradient(40% 40% at 85% 90%, rgba(119, 31, 197, 0.22), transparent 70%),
    #0e0b14;
}

.vslide__frame {
  position: relative;
  width: min(100%, calc((100vh - 96px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -20px rgba(119, 31, 197, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.vslide__video { display: block; width: 100%; height: 100%; object-fit: contain; }

.vslide__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(14, 11, 20, 0) 40%, rgba(14, 11, 20, 0.6));
  cursor: pointer;
}

.vslide__play[hidden] { display: none; }

.vslide__play-icon {
  display: grid;
  place-items: center;
  width: clamp(52px, 9vmin, 104px);
  height: clamp(52px, 9vmin, 104px);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 14px 36px rgba(119, 31, 197, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.vslide__play-icon svg { width: 42%; height: 42%; margin-left: 6%; fill: #fff; }

.vslide__play:hover .vslide__play-icon,
.vslide__play:focus-visible .vslide__play-icon { transform: scale(1.08); background: #8a32da; }

.vslide__play:focus-visible { outline: 4px solid var(--brand-soft); outline-offset: -4px; }

.vslide__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 11, 20, 0.7);
  font: 500 clamp(11px, 1.4vmin, 17px)/1.2 var(--font-sans);
  color: #fff;
  letter-spacing: 0.01em;
}

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

/* Top progress: one segment per slide, filled continuously; click to jump. */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top);
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 0 max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left));
}

.progress__seg {
  position: relative;
  flex: 1;
  height: 14px; /* hit area; the visible bar is the 4px strip inside */
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

html.is-touch .progress__seg { height: 24px; }

.progress__seg::before,
.progress__fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 4px;
  border-radius: 2px;
}

.progress__seg::before { background: rgba(128, 128, 128, 0.32); }

.progress__fill {
  display: block;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.progress__seg:hover::before { background: rgba(128, 128, 128, 0.5); }
.progress__seg:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; border-radius: 4px; }

/* Floating chip: first-slide hint. */
.hint {
  position: fixed;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 14px/1 "Poppins", system-ui, sans-serif;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hint {
  right: max(24px, 3vw);
  bottom: max(20px, 3vh, env(safe-area-inset-bottom));
  padding: 10px 16px;
  pointer-events: none;
}

.hint svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint svg { animation: nudge 1.6s ease-in-out infinite; }
.hint.is-hidden { opacity: 0; transform: translateX(12px); }

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hint, .hint svg, .vslide__play-icon { transition: none; animation: none; }
}

/* ------------------------------------------------------ phone layout --- */
/* Portrait screens (html.is-m, set by deck.js) show the reflowed single-column
   version of each slide from tools/mobile.html instead of the 16:9 canvas. The
   slides still change sideways with the same parallax; each one scrolls
   vertically on its own. */

.m { display: none; }

html.is-m body { touch-action: pan-y pinch-zoom; }
html.is-m .frame > .slide:not(.slide--full),
html.is-m .edge { display: none; }

html.is-m .m {
  position: absolute;
  inset: 0;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: none;
  padding: calc(env(safe-area-inset-top) + 44px) 0 calc(env(safe-area-inset-bottom) + 40px);
  font: 400 16px/1.5 var(--font-sans);
  letter-spacing: -0.01em;
  color: #111;
}

.m::-webkit-scrollbar { display: none; }

/* The swipe hint sits under the progress bar, clear of the content. */
html.is-m .hint {
  top: calc(env(safe-area-inset-top) + 34px);
  right: 16px;
  bottom: auto;
  padding: 7px 12px;
  font-size: 13px;
}

/* Promote the cascading pieces of the current and neighbouring slides only. */
html.is-m .frame.is-warm .ml { will-change: transform; }

.m__in {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
}

/* Resets kept at single-class weight so the component rules below win. */
.m :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
.m :where(ul, ol) { padding: 0; list-style: none; }
.m a { color: inherit; text-decoration: none; }
.m b { font-weight: 600; }

.m-logo { display: block; width: 104px; height: auto; margin: 4px 0 22px; }

.m-h1,
.m-h2 {
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.m-h1 { font-size: clamp(36px, 10.6vw, 60px); line-height: 1.06; }
.m-h2 { font-size: clamp(30px, 8.6vw, 48px); line-height: 1.1; margin-bottom: 26px; }
.m-h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--brand); margin: 28px 0 12px; }

.m .m-center { text-align: center; }
.m .m-white { color: #fff; }
.m .m-purple { color: var(--brand); }
.m-lead { font-size: 19px; line-height: 1.4; color: var(--brand); }

/* slide 1 */
.m-cri { margin: 18px 0 10px; }
.m-cri img { display: block; width: min(84%, 380px); height: auto; margin: -4px 0 0 auto; }
.m-cri__say { font-size: 17px; line-height: 1.35; color: var(--brand); }
.m-logos {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  align-items: center;
  gap: 22px 16px;
  margin: 22px 0 26px;
}
.m-logos img { width: auto; max-width: 100%; height: 18px; }
.m-logos img[alt="Kerala Startup Mission"],
.m-logos img[alt="Microsoft"] { height: 42px; }
.m-logos .m-logos__wide { grid-column: span 2; width: min(100%, 240px); height: auto; }
.m-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 15px;
  color: var(--brand);
}

/* slide 2 */
html.is-m .m--dark,
.m--dark .m-h2 { color: #fff; }
.m--dark .m-h2 { margin: 12px 0 40px; }
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.m-stat b,
.m-fact b { display: block; font-weight: 600; line-height: 1.1; }
.m-stat b { font-size: 40px; }
.m-stat__unit { display: block; font-size: 22px; line-height: 1.2; }
.m-stat span:last-child,
.m-fact span { display: block; font-size: 15px; line-height: 1.4; opacity: 0.88; margin-top: 4px; }
.m-fact { margin-bottom: 20px; }
.m-fact b { font-size: 24px; }
.m .m-quote {
  position: relative;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.m-quote__mark { position: absolute; right: 0; top: -22px; width: 54px; height: auto; }
.m-quote p { font-size: clamp(22px, 6.4vw, 32px); line-height: 1.25; font-weight: 600; }
.m-quote__src { display: block; width: 150px; height: auto; margin: 18px 0 0 auto; }

/* slide 3 */
.m-band {
  background: var(--brand-soft);
  margin: calc(-1 * (env(safe-area-inset-top) + 44px)) 0 26px;
  padding: calc(env(safe-area-inset-top) + 44px) 0 6px;
}
.m-icons li,
.m .m-callout { display: flex; align-items: flex-start; gap: 16px; }
.m-icons li { margin-bottom: 20px; }
.m-icons img { flex: none; width: 34px; height: 38px; object-fit: contain; }
.m .m-callout {
  align-items: center;
  margin-top: 6px;
  padding: 16px;
  border: 1.5px solid #222;
  font-size: 17px;
  line-height: 1.4;
  color: var(--brand);
}
.m-callout img { flex: none; width: 52px; height: 52px; }

/* slide 4 */
.m-phone { display: block; width: min(46%, 220px); height: auto; margin: 0 auto 28px; }
.m-ticks li { position: relative; padding-left: 30px; margin-bottom: 16px; }
.m-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 4px var(--brand);
}

/* The lilac lower half runs to the bottom of the scroll area. */
.m-zone {
  min-height: 50%;
  margin-bottom: calc(-1 * (env(safe-area-inset-bottom) + 40px));
  padding: 28px 0 calc(env(safe-area-inset-bottom) + 60px);
  background: var(--brand-soft);
}
.m .m-card { margin-bottom: 18px; padding: 20px; border-radius: 4px; background: #fff; }
.m-card blockquote { font-size: 15.5px; line-height: 1.5; }
.m-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--brand);
}
.m-card figcaption img { width: 96px; height: auto; }

/* slide 6 */
.m-box {
  margin-bottom: 16px;
  padding: 18px;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.45;
}
.m-box h3 { font-size: 22px; font-weight: 600; text-align: center; }
.m .m-box__sub { margin: 4px 0 12px; color: var(--brand); font-weight: 600; text-align: center; }
.m .m-box p + p { margin-top: 8px; }
.m .m-box ol { list-style: decimal; padding-left: 22px; margin-top: 2px; }
.m .m-box ul { list-style: disc; padding-left: 20px; }
.m-box li + li { margin-top: 4px; }
.m-crop { position: relative; overflow: hidden; margin: 10px -8px 0; }
.m-crop > .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* slide 7 */
.m-person { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.m-person img { flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.m-person h3 { font-size: 19px; line-height: 1.25; font-weight: 600; color: var(--brand); }
.m .m-person__role { margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--brand); }
.m-person p:last-child { font-size: 14.5px; line-height: 1.5; }
.m .m-roster { padding-top: 16px; border-top: 1px solid #eadcf9; font-size: 14px; line-height: 1.35; }
.m-roster li { margin-bottom: 10px; }
.m-roster b { color: var(--brand); }
.m-roster sup,
.m-note sup { font-size: 0.7em; }
.m .m-note { margin-top: 18px; font-size: 13px; color: #555; }

/* slide 8 */
.m--blob::before {
  content: "";
  position: absolute;
  left: -38vw;
  top: -40vw;
  width: 110vw;
  height: 110vw;
  border-radius: 50%;
  background: #dccaeb;
  pointer-events: none;
}
.m--blob .m__in { position: relative; }
.m--blob .m-h2 { margin: 24px 0 52px; }
.m-dots li { position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--brand); }
.m-dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  background: url("../img/image45.svg") center / contain no-repeat;
}
.m .m-pull {
  margin: 30px 0;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.22;
  font-weight: 600;
  color: var(--brand);
}
.m-address {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: #3e246d;
}

/* Portrait tablets: a little more room. */
@media (min-width: 640px) {
  .m-stat b { font-size: 52px; }
  .m-person img { width: 112px; height: 112px; }
}
