/* ═══════════════════════════════════════════════════════════════
   AI in Virtual Production — CJ deck v5
   Canva polaroid: cream paper, rounded colored borders,
   BLOCK yellow highlights, clean/professional, handbuilt accents
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #F4E9B0;
  --paper-deep: #EAD98C;
  --ink: #141414;
  --ink-soft: #333;
  --marker: #D94038;
  --highlight: #FFE45C;         /* block yellow */
  --pink: #F28BB1;              /* softer pink like reference */
  --blue: #8BBBE8;              /* softer blue */
  --yellow: #F1C85F;            /* softer yellow */
  --info-blue: #D4E6F7;         /* pastel blue for info box */
  --accent: #2B4B7A;
  --shadow: rgba(0, 0, 0, 0.14);
}

html, body {
  height: 100%; width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}

/* ── Subtle dots (smaller, more spaced, like reference) ── */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1.3px, transparent 2px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ── Deck ── */
#deck {
  position: relative;
  width: 100vw; height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 5vw 8vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.slide-inner {
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  position: relative;
  overflow: visible;
}

.slide-inner.wide  { max-width: 1280px; }
.slide-inner.tight { max-width: 900px; }

/* ── Washi tape (kept only as rare accent on title slide) ── */
.tape {
  position: absolute;
  width: 110px;
  height: 28px;
  background: rgba(227, 216, 170, 0.82);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 20;
  mix-blend-mode: multiply;
}
.tape-tl { top: -14px; left: 40px; transform: rotate(-4deg); }
.tape-br { bottom: -14px; right: 60px; transform: rotate(5deg); }

/* ── Black tag label (like "FEATURED PROJECTS" in reference) ── */
.black-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-radius: 2px;
}
.black-tag + .tag-arrow {
  display: inline-block;
  width: 42px; height: 28px;
  margin-left: -4px;
  margin-bottom: 10px;
  vertical-align: middle;
}

/* ── Hand-drawn curved arrow (black, thin, like reference) ── */
.hand-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 12;
}

/* ── Typography ── */
.eyebrow {
  font-family: "Shadows Into Light", cursive;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
  display: inline-block;
  padding: 2px 8px;
  position: relative;
  z-index: 2;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 22%; bottom: 14%;
  background: var(--highlight);
  z-index: -1;
  border-radius: 2px;
}

h1, h2 {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h1 { font-size: clamp(42px, 6.6vw, 92px); }
h2 { font-size: clamp(32px, 5vw, 64px); margin-bottom: 22px; }
h2 em { font-style: italic; color: var(--marker); }

.display {
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.98;
  margin-bottom: 28px;
}

.subline {
  font-family: "Caveat", cursive;
  font-size: 0.55em;
  color: var(--marker);
  font-weight: 700;
}

.handwritten {
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: var(--ink);
}

.caption-handbuilt {
  font-size: 28px;
  margin-top: 18px;
  color: var(--ink);
  font-family: "Caveat", cursive;
}

/* ── Yellow BLOCK highlight (key feature from references) ── */
.hi {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 8px;
  white-space: nowrap;
}
.hi::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 12%; bottom: 6%;
  background: var(--highlight);
  z-index: -1;
  border-radius: 3px;
}

/* ── Subtle underline accent (for when highlight is too much) ── */
.marker-under {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.marker-under::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.02em;
  height: 0.32em;
  background: var(--highlight);
  z-index: -1;
  border-radius: 1px;
}

.lede {
  font-family: "Inter", sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  max-width: 820px;
  margin: 8px 0 22px;
  color: var(--ink);
  font-weight: 500;
}

.link-line {
  margin-top: 14px;
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--ink);
  display: inline-block;
}

/* ── Info box (pastel blue like ref) ── */
.info-box {
  background: var(--info-blue);
  border-radius: 14px;
  padding: 18px 22px;
  font-family: "Inter", sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}
.info-box ul { list-style: none; padding: 0; }
.info-box li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* ── Intro slide ── */
.intro-slide .display { margin-bottom: 36px; }

/* Intro slide — two-column layout (reference) */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.intro-left { text-align: left; }

.intro-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.intro-role {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  background: var(--info-blue);
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.intro-email {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  background: var(--highlight);
  padding: 10px 18px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.15s;
}
.intro-email:hover { transform: translateY(-2px); }

.intro-right {
  display: flex;
  justify-content: center;
}
.polaroid-card {
  background: #fff;
  border: 8px solid var(--pink);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.2);
  transform: rotate(2deg);
  max-width: 420px;
  width: 100%;
}
.polaroid-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .intro-left { text-align: center; }
  .polaroid-card { max-width: 280px; transform: rotate(1deg); }
}

/* ── VP reference image (bridge slide) ── */
.vp-reference {
  margin: 14px auto 10px;
  max-width: 820px;
  aspect-ratio: 16/9;
  max-height: 48vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  background: #1a1a1a;
  position: relative;
}
.vp-reference img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vp-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-family: "Caveat", cursive;
  font-size: 24px;
  text-align: center;
  padding: 20px;
}
.vp-placeholder code {
  font-family: "Inter", monospace;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 18px;
  color: #fff;
}

.byline {
  border-top: 2.5px solid var(--ink);
  padding-top: 12px;
  display: inline-block;
}
.byline .name {
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
}

.hand-squiggle {
  position: absolute;
  pointer-events: none;
}
.hand-squiggle-1 {
  top: 28%;
  right: -2%;
  width: 300px;
  height: 70px;
  transform: rotate(-7deg);
  opacity: 0.9;
}
.hand-squiggle-2 {
  width: 65%;
  max-width: 420px;
  height: 58px;
  margin-top: 16px;
  opacity: 0.9;
}

/* ── Big list ── */
.big-list {
  list-style: none;
  margin-top: 16px;
}
.big-list li {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.25;
  margin-bottom: 8px;
}

/* ── Gen AI slide 2 (visual thought card) ── */
.gen-ai-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.thought-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px 32px;
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.3;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 620px;
  text-align: center;
  font-weight: 600;
}
.thought-card .dash {
  display: block;
  font-size: 0.7em;
  color: var(--ink-soft);
  margin-top: 10px;
  font-weight: 400;
}

/* ── Methods grid (polaroid cards, ROUNDED like reference) ── */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 12px 0 6px;
  position: relative;
}
.flavor-grid.flavor-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin-left: auto; margin-right: auto; }
.flavor-grid--3 .flavor-thumb { aspect-ratio: 1 / 1; }

.flavor-card {
  background: #fff;
  border: 6px solid var(--pink);
  border-radius: 14px;           /* ROUNDED */
  padding: 10px 10px 14px;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  overflow: hidden;
}

.flavor-card:nth-child(1) { border-color: var(--pink);   transform: rotate(-1.2deg); }
.flavor-card:nth-child(2) { border-color: var(--blue);   transform: rotate(0.8deg); }
.flavor-card:nth-child(3) { border-color: var(--yellow); transform: rotate(-0.5deg); }
.flavor-card:nth-child(4) { border-color: var(--pink);   transform: rotate(1deg); }

.flavor-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.flavor-num {
  position: absolute;
  top: -12px; left: -12px;
  background: var(--ink);
  color: var(--paper);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.flavor-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
  margin-bottom: 10px;
  border-radius: 6px;
}

.flavor-thumb img,
.flavor-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn { display: none; }

.flavor-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 16px;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.flavor-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.flavor-ex {
  font-family: "Caveat", cursive;
  font-size: 15px;
  color: var(--marker);
  display: block;
  margin-top: 4px;
}

.flavor-source {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
  opacity: 0.75;
}

/* ── Video wrap ── */
.video-wrap {
  margin: 6px auto;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Square 1:1 video (hybrid slide gif) — no wrapper padding */
.video-wrap.square {
  aspect-ratio: 1 / 1;
  height: 58vh;
  width: 58vh;
  max-width: 90vw;
}

/* Naked FMP clip — no black wrapper */
.naked-clip {
  display: block;
  max-height: 72vh;
  max-width: 90vw;
  margin: 8px auto 0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  background: transparent;
}

/* ── Riyadh top/bot split (16:9 layout from 9:16 doc) ── */
.riyadh-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1180px;
  margin: 8px auto 0;
  align-items: start;
}
.riyadh-split img {
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: block;
}

/* ── Riyadh workflow rebuild ── */
.riyadh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 6px;
  align-items: stretch;
}

.riyadh-block {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.riyadh-block.problem  { border: 4px solid var(--pink);   transform: rotate(-0.6deg); }
.riyadh-block.step-1   { border: 4px solid var(--blue);   transform: rotate(0.4deg); }
.riyadh-block.step-2   { border: 4px solid var(--yellow); transform: rotate(-0.3deg); }
.riyadh-block.step-3   { border: 4px solid var(--pink);   transform: rotate(0.5deg); }
.riyadh-block.step-4   { border: 4px solid var(--blue);   transform: rotate(-0.4deg); }
.riyadh-block.result   { border: 4px solid var(--yellow); transform: rotate(0.3deg); grid-column: 1 / -1; }

.riyadh-block img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
  display: block;
}
.riyadh-block.result img { height: 130px; object-fit: cover; }
.riyadh-block.problem img { height: 100px; }

.riyadh-num {
  position: absolute;
  top: -10px; left: -10px;
  background: var(--ink);
  color: var(--paper);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 12px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.riyadh-block h4 {
  font-family: "Archivo Black", sans-serif;
  font-size: 14px;
  margin: 2px 0 0;
  letter-spacing: -0.01em;
}

.riyadh-block p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
  margin: 0;
}

.riyadh-block a { color: var(--marker); text-decoration: none; }

/* ── HighVis wipe ── */
.wipe-compare {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  max-height: 52vh;
  margin: 8px auto;
  overflow: hidden;
  border-radius: 10px;
  cursor: ew-resize;
  background: #000;
  user-select: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.wipe-before, .wipe-after {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.wipe-before { clip-path: inset(0 50% 0 0); z-index: 2; }
.wipe-after  { z-index: 1; }

.wipe-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2.5px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.wipe-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.wipe-compare::before,
.wipe-compare::after {
  position: absolute;
  bottom: 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 4;
  pointer-events: none;
}
.wipe-compare::before { content: attr(data-label-left);  left: 12px; }
.wipe-compare::after  { content: attr(data-label-right); right: 12px; }

/* ── Corridor solo card (single centered) ── */
.corridor-solo {
  display: block;
  max-width: 720px;
  margin: 14px auto 8px;
  background: #fff;
  border: 6px solid var(--pink);
  border-radius: 14px;
  padding: 12px 12px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transform: rotate(-0.6deg);
  text-align: left;
  transition: transform 0.15s;
}
.corridor-solo:hover { transform: rotate(0deg) translateY(-3px); }
.corridor-solo {
  max-width: 460px;
}
.corridor-solo .flavor-thumb {
  aspect-ratio: 1/1;
  margin-bottom: 12px;
  max-height: 50vh;
  width: 100%;
}
.corridor-solo .flavor-thumb video { object-fit: cover; }
.corridor-solo .flavor-title { font-size: 22px; }
.corridor-solo .flavor-sub   { font-size: 14px; }

/* ── Corridor slide ── */
.corridor-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 16px auto 10px;
  max-width: 820px;
}
.corridor-card {
  background: #fff;
  border: 6px solid var(--blue);
  border-radius: 14px;
  padding: 10px 10px 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: block;
  position: relative;
  overflow: hidden;
}
.corridor-card:nth-child(1) { border-color: var(--pink);   transform: rotate(-1deg); }
.corridor-card:nth-child(2) { border-color: var(--yellow); transform: rotate(1deg); }

.corridor-card .flavor-thumb { aspect-ratio: 16/9; margin-bottom: 10px; }
.corridor-card .flavor-title { font-size: 17px; }
.corridor-card .flavor-sub   { font-size: 12px; }

/* ── Flow / question slides ── */
.flow-display    { color: var(--marker); }
.question-display {
  color: var(--ink);
  font-size: clamp(38px, 6.5vw, 86px);
  line-height: 1.06;
}

/* ── Close ── */
.contact-row {
  margin-top: 28px;
  border-top: 2.5px solid var(--ink);
  padding-top: 12px;
  display: inline-block;
}
.contact-name { font-family: "Archivo Black", sans-serif; font-size: 20px; }

/* ── Chrome ── */
.deck-chrome {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.deck-chrome button {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.3);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.deck-chrome button:hover {
  background: var(--marker);
  border-color: var(--marker);
}
#indicator {
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Wipe overlay ── */
.wipe-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 50;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.wipe-overlay.wipe-in          { transform: translateX(0); }
.wipe-overlay.wipe-out         { transform: translateX(-100%); }
.wipe-overlay.reverse          { transform: translateX(-100%); }
.wipe-overlay.reverse.wipe-in  { transform: translateX(0); }
.wipe-overlay.reverse.wipe-out { transform: translateX(100%); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .slide { padding: 3vh 4vw 8vh; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .display { font-size: 58px; }
  .question-display { font-size: 42px; }

  .flavor-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .corridor-row,
  .riyadh-grid { grid-template-columns: 1fr; }
  .riyadh-block.result { grid-column: auto; }

  .hand-squiggle-1 { display: none; }
  .big-list li { font-size: 24px; }
  .lede { font-size: 16px; }
}

@media (max-height: 740px) {
  .display          { font-size: clamp(40px, 7vw, 86px); }
  .question-display { font-size: clamp(32px, 5vw, 68px); }
  h2                { font-size: clamp(26px, 4vw, 48px); margin-bottom: 14px; }
  .lede             { font-size: clamp(15px, 1.6vw, 20px); margin: 4px 0 12px; }
  .big-list li      { font-size: clamp(20px, 2.4vw, 28px); }
  .riyadh-block img { height: 80px; }
}
