/* =========================================================
   FL PR & Communications â€” Workshop Deck
   Editorial agency aesthetic
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-MediumItalic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Extrabold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-BlackItalic.woff2') format('woff2');
  font-weight: 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Heavy.woff2') format('woff2');
  font-weight: 950; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FHLecturis';
  src: url('assets/fonts/FHLecturis-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FHLecturis';
  src: url('assets/fonts/FHLecturis-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FHLecturis';
  src: url('assets/fonts/FHLecturis-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand â€” defaults. Tweaks panel can override these live. */
  --fl-petrol: #0E3B42;
  --fl-petrol-deep: #082428;
  --fl-yellow: #FFD100;
  --fl-cream: #F4F0E6;
  --fl-paper: #FBF8F0;
  --fl-ink: #0A0A0A;
  --fl-ink-soft: #242424;
  --fl-rule: rgba(10,10,10,0.14);
  --fl-mute: #7B7568;

  --font-display: 'Gilroy', -apple-system, Helvetica, Arial, sans-serif;
  --font-body: 'Gilroy', -apple-system, Helvetica, Arial, sans-serif;
  --font-serif: 'FHLecturis', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
html, body { margin: 0; padding: 0; background: #000; }
body {
  font-family: var(--font-body);
  color: var(--fl-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Slide root */
.slide {
  width: 1920px;
  height: 1080px;
  background: var(--fl-paper);
  color: var(--fl-ink);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

.slide.dark {
  background: var(--fl-petrol);
  color: var(--fl-paper);
}
.slide.ink {
  background: var(--fl-ink);
  color: var(--fl-paper);
}
.slide.cream {
  background: var(--fl-cream);
}

/* ---------- Slide chrome: corner marks, page number ---------- */
.chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.chrome .brand {
  position: absolute;
  top: 44px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.chrome .brand .dot {
  width: 8px; height: 8px;
  background: var(--fl-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,209,0,0.18);
}
.chrome .pagenum {
  position: absolute;
  bottom: 44px;
  right: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fl-mute);
}
.slide.dark .chrome .pagenum,
.slide.ink .chrome .pagenum { color: rgba(244,240,230,0.45); }
.chrome .topline {
  position: absolute;
  top: 44px;
  right: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fl-mute);
}
.slide.dark .chrome .topline,
.slide.ink .chrome .topline { color: rgba(244,240,230,0.55); }
.chrome .bottomline {
  position: absolute;
  bottom: 44px;
  left: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fl-mute);
}
.slide.dark .chrome .bottomline,
.slide.ink .chrome .bottomline { color: rgba(244,240,230,0.5); }

/* Rule lines */
.chrome .rule-top, .chrome .rule-bot {
  position: absolute;
  left: 56px; right: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.14;
}
.chrome .rule-top { top: 84px; }
.chrome .rule-bot { bottom: 84px; }
.slide.dark .chrome .rule-top,
.slide.dark .chrome .rule-bot,
.slide.ink .chrome .rule-top,
.slide.ink .chrome .rule-bot { opacity: 0.2; }

/* ---------- Content wrapper ---------- */
.body {
  position: absolute;
  top: 120px;
  bottom: 120px;
  left: 120px;
  right: 120px;
}

/* ---------- Typography system ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fl-petrol);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.slide.dark .eyebrow { color: var(--fl-yellow); }
.slide.ink .eyebrow { color: var(--fl-yellow); }
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 132px;
  line-height: 0.99;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.title-xxl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 96px;
  line-height: 0.97;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.title-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.title-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.title-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fl-ink-soft);
  text-wrap: pretty;
  max-width: 1400px;
}
.slide.dark .lede { color: rgba(244,240,230,0.85); }
.body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.5;
  color: var(--fl-ink-soft);
}
.body-md {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.55;
  color: var(--fl-ink-soft);
}
.caption {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--fl-mute);
  text-transform: uppercase;
}
.slide.dark .caption,
.slide.ink .caption { color: rgba(244,240,230,0.55); }
.num-huge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 240px;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

em, .italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.hl { background: var(--fl-yellow); color: var(--fl-ink); padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.slide.dark .hl, .slide.ink .hl { color: var(--fl-ink); }

.underlined {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 94%;
  padding-bottom: 4px;
}

.quote-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 64px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: var(--gap, 24px); }
.stack-sm { --gap: 12px; }
.stack-md { --gap: 24px; }
.stack-lg { --gap: 40px; }
.stack-xl { --gap: 64px; }

.row { display: flex; gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* ---------- Chips & tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fl-cream);
  border: 1px solid var(--fl-rule);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fl-ink-soft);
}
.chip.on-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: var(--fl-paper);
}
.chip.yellow {
  background: var(--fl-yellow);
  border-color: var(--fl-yellow);
  color: var(--fl-ink);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--fl-rule);
  padding: 36px;
  position: relative;
}
.slide.dark .card, .slide.ink .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--fl-paper);
}
.card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--fl-mute);
}

/* ---------- Buttons / CTA look ---------- */
.marker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--fl-yellow);
  color: var(--fl-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Logo mark (simplified SVG-able) ---------- */
.logo-mark {
  display: inline-block;
  width: 56px; height: 56px;
  background-image: url('assets/logo-main.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.slide.dark .logo-mark { background-image: url('assets/logo-light.png'); }
.slide.ink .logo-mark { background-image: url('assets/logo-white.png'); }

/* ---------- Print ---------- */
@media print {
  html, body { background: #fff; }
}

/* ---------- Animations ---------- */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Only active slide animates */
[data-deck-active] .anim-in {
  animation: slideIn 0.6s cubic-bezier(.2,.8,.2,1) both;
}
[data-deck-active] .anim-in-1 { animation: slideIn 0.6s cubic-bezier(.2,.8,.2,1) 0.08s both; }
[data-deck-active] .anim-in-2 { animation: slideIn 0.6s cubic-bezier(.2,.8,.2,1) 0.18s both; }
[data-deck-active] .anim-in-3 { animation: slideIn 0.6s cubic-bezier(.2,.8,.2,1) 0.28s both; }
[data-deck-active] .anim-in-4 { animation: slideIn 0.6s cubic-bezier(.2,.8,.2,1) 0.38s both; }
[data-deck-active] .anim-in-5 { animation: slideIn 0.6s cubic-bezier(.2,.8,.2,1) 0.48s both; }
[data-deck-active] .anim-in-6 { animation: slideIn 0.6s cubic-bezier(.2,.8,.2,1) 0.58s both; }

[data-deck-active] .anim-bar {
  transform-origin: left;
  animation: growBar 0.9s cubic-bezier(.2,.8,.2,1) 0.3s both;
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 72px;
  right: 24px;
  z-index: 2147483100;
  width: 280px;
  background: #0A0A0A;
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  font-family: var(--font-body);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.tweaks-row { margin-bottom: 14px; }
.tweaks-row label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.tweaks-swatches { display: flex; gap: 8px; }
.tweaks-swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}
.tweaks-swatch:hover { transform: scale(1.08); }
.tweaks-swatch.active { border-color: #fff; }
.tweaks-select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

span.chip {
    text-transform: capitalize;
}