/* ============================================================
   JoyOS Lab -- Launch Deck v3 :: theme.css
   Brand tokens + slide layout system.
   Harmonizes the fork-mockup duotone language (teal/gold/ink/cream)
   with Kristin's premiere deck typography (serif display + gold
   italic accents, eyebrow rules, JS seal, slate-blue body lead).
   ASCII only. No em/en dashes, no curly quotes, no emoji.
   ============================================================ */

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

:root {
  /* -- Core brand palette (fork-mockup + Kristin deck, reconciled) -- */
  --gold:        #c9a24b;
  --gold-2:      #d8b65f;   /* brighter gold for italic accents */
  --gold-deep:   #9a7a32;
  --gold-soft:   rgba(201,162,75,0.14);
  --gold-line:   rgba(201,162,75,0.30);
  --gold-glow:   rgba(201,162,75,0.10);

  --teal:        #039fb2;
  --teal-bright: #0bb6cb;
  --teal-deep:   #02707d;

  /* Kristin's ink family (slightly bluer than fork) */
  --ink:         #0e1a2e;
  --ink-2:       #16273f;
  --ink-3:       #0a1422;

  --cream:       #f4efe3;   /* Kristin's warm cream */
  --cream-2:     #eeede9;
  --slate:       #9fa9b9;   /* Kristin's body-lead slate-blue */
  --slate-dim:   rgba(159,169,185,0.72);

  --ink-on-cream:    #16273f;
  --warm-dim:        rgba(22,39,63,0.62);

  --font:  'Sora', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --frame-inset: clamp(18px, 2.4vw, 40px);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink-3);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--cream);
}

/* ============================================================
   DECK ENGINE
   ============================================================ */
#deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

/* Global fine film grain (poster depth, no AI-tell gradient banding) */
#deck::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(56px) scale(0.995);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
  overflow: hidden;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 2;
}
.slide.is-prev { transform: translateX(-56px) scale(0.995); }

/* The inner hairline frame, shared by every slide */
.frame {
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid rgba(201,162,75,0.16);
  border-radius: 3px;
  pointer-events: none;
  z-index: 30;
}

/* Diagonal lighting sheen on dark slides (top-left -> bottom-right),
   echoing Kristin's deck and the fork wedge lighting. */
.sheen-dark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(128deg,
      rgba(22,39,63,0.0) 0%,
      rgba(22,39,63,0.55) 42%,
      rgba(10,20,34,0.0) 78%),
    radial-gradient(120% 90% at 14% 8%, rgba(31,58,92,0.45) 0%, transparent 55%);
}

/* Giant ghost monogram watermark, bottom-right (Kristin signature move) */
.ghost-mark {
  position: absolute;
  right: -3%;
  bottom: -10%;
  width: clamp(340px, 38vw, 620px);
  height: clamp(340px, 38vw, 620px);
  z-index: 2;
  opacity: 0.05;
  pointer-events: none;
  filter: grayscale(1) brightness(1.4);
}
.ghost-mark img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   THE SEAL (J-monogram in a gold ring)
   ============================================================ */
.seal {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--ink-3);
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1.5px rgba(244,239,227,0.16),
    0 0 0 3px rgba(201,162,75,0.92),
    0 0 0 4.5px rgba(10,20,34,0.6),
    0 0 34px 6px rgba(201,162,75,0.16),
    0 16px 44px rgba(0,0,0,0.5);
}
.seal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.seal--sm { width: 52px; height: 52px;
  box-shadow:
    0 0 0 1px rgba(244,239,227,0.14),
    0 0 0 2.4px rgba(201,162,75,0.9),
    0 0 0 3.4px rgba(10,20,34,0.55),
    0 0 20px 4px rgba(201,162,75,0.14),
    0 8px 22px rgba(0,0,0,0.45);
}

/* ============================================================
   EYEBROW  (gold rule + uppercase letterspaced label)
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font);
  font-size: clamp(0.6rem, 0.78vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  display: block;
  width: clamp(34px, 4vw, 58px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,75,0.0));
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  display: block;
  width: clamp(34px, 4vw, 58px);
  height: 1px;
  background: linear-gradient(270deg, var(--gold), rgba(201,162,75,0.0));
}

/* ============================================================
   DISPLAY HEADLINE (serif, cream, with gold-italic key phrase)
   ============================================================ */
.display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.02;
  letter-spacing: -0.012em;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}
.display--lg { font-size: clamp(3rem, 8vw, 6.8rem); }

.lead {
  font-family: var(--font);
  font-weight: 300;
  color: var(--slate);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  line-height: 1.62;
  max-width: 38ch;
}

/* ============================================================
   WORDMARK LOCKUP  (joyOS LAB)
   ============================================================ */
.wordmark {
  font-family: var(--serif);
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  line-height: 1;
}
.wordmark .wm-joy {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 400;
}
.wordmark .wm-os {
  font-family: var(--font);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.wordmark .wm-lab {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.42em;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
  align-self: center;
  margin-left: 0.2em;
}

/* Footer lockup, bottom-left */
.slide-footer {
  position: absolute;
  left: calc(var(--frame-inset) + clamp(20px, 3vw, 48px));
  bottom: calc(var(--frame-inset) + clamp(18px, 2.6vw, 38px));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.slide-footer .wordmark { font-size: 1.4rem; }

/* Slide index, bottom-right inside frame */
.slide-index {
  position: absolute;
  right: calc(var(--frame-inset) + clamp(20px, 3vw, 48px));
  bottom: calc(var(--frame-inset) + clamp(18px, 2.6vw, 38px));
  z-index: 25;
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(159,169,185,0.55);
}
.slide-index b { color: var(--gold); font-weight: 700; }

/* ============================================================
   CONTENT GRID  (eyebrow / headline / lead, left aligned)
   ============================================================ */
.content {
  position: absolute;
  z-index: 20;
  left: calc(var(--frame-inset) + clamp(26px, 5vw, 96px));
  top: 50%;
  transform: translateY(-50%);
  max-width: 56%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vh, 1.9rem);
}
.content--center {
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  text-align: center;
  max-width: 76%;
}

/* ============================================================
   NAV CONTROLS  (prev / next + dots)
   ============================================================ */
.deck-nav {
  position: fixed;
  bottom: clamp(14px, 2.2vh, 26px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.5rem 0.9rem;
  background: rgba(10,20,34,0.62);
  border: 1px solid rgba(201,162,75,0.20);
  border-radius: 100px;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.42);
}
.nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,75,0.30);
  background: rgba(201,162,75,0.06);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s var(--ease-out), border-color 0.18s, transform 0.18s, opacity 0.18s;
}
.nav-btn:hover { background: rgba(201,162,75,0.18); border-color: rgba(201,162,75,0.55); transform: translateY(-1px); }
.nav-btn:active { transform: translateY(0); }
.nav-btn svg { width: 14px; height: 14px; }

.dots { display: flex; align-items: center; gap: 0.5rem; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(159,169,185,0.34);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s, width 0.2s, box-shadow 0.2s;
}
.dot:hover { background: rgba(201,162,75,0.55); }
.dot.is-active {
  width: 22px;
  border-radius: 100px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201,162,75,0.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content { max-width: 84%; }
  .display { font-size: clamp(2.2rem, 8vw, 3.6rem); }
}
