﻿/* Public presentation (pitch deck) page. Scoped tokens keep the slide engine independent from the site theme. */
.presentation-page,
.presentation-overlay {
  --brand-red: #B9EB00;
}

/* Zero-specificity reset the slide templates were designed against. */
:where(.presentation-page) *,
:where(.presentation-page) *::before,
:where(.presentation-page) *::after {
  margin: 0;
  padding: 0;
}

:where(.presentation-page) :where(ul, ol) {
  list-style: none;
}

:where(.presentation-page) button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

:where(.presentation-page) :where(img, picture, video, canvas, svg) {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =============================================================================
   AMBINO - PUBLIC PRESENTATION ENGINE (PITCH DECK MODE)
   ============================================================================= */

body.presentation-public-page {
  overflow: hidden;
  background: #02122c;
}

body.presentation-public-page > main {
  min-height: 100vh;
  isolation: auto;
}

body.presentation-public-page .presentation-page {
  min-height: 100vh;
}

body.presentation-public-page .presentation-page > .container:first-child {
  display: none;
}

.presentation-empty {
  padding-top: 30vh;
}

/* Body state when presentation is active */
body.presentation-mode-active {
  overflow: hidden !important;
}

/* Fullscreen Presentation Overlay */
.presentation-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #02122c;
  display: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.presentation-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #02122c;
  opacity: 1;
}

/* Windowed frame: 16:9 card on the navy backdrop. Native fullscreen expands this frame. */
.presentation-overlay.is-compact-preview {
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #02122c;
}

/* Presentation Wrapper */
.presentation-wrapper {
  width: min(1280px, calc(100vw - 56px), calc((100vh - 56px) * 16 / 9));
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: calc(100vh - 56px);
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1c2520 0%, #0F1412 45%, #021636 100%);
  color: #FFFFFF;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.presentation-wrapper:fullscreen,
.presentation-wrapper:-webkit-full-screen,
.presentation-wrapper:-moz-full-screen,
.presentation-wrapper.is-native-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.presentation-wrapper:fullscreen .deck-stage,
.presentation-wrapper:-webkit-full-screen .deck-stage,
.presentation-wrapper:-moz-full-screen .deck-stage,
.presentation-wrapper.is-native-fullscreen .deck-stage {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  flex: none;
  inset: auto;
  position: relative;
}

.presentation-overlay.is-native-fullscreen {
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #000;
}

.deck-presentation-controls {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.deck-presentation-controls.is-fullscreen {
  opacity: 0.72;
}

.deck-presentation-controls.is-fullscreen:hover,
.deck-presentation-controls.is-fullscreen:focus-within {
  opacity: 1;
}

.deck-control-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #DCE7F5;
  background: rgba(2, 22, 54, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.deck-control-btn:hover,
.deck-control-btn:focus-visible {
  color: #FFFFFF;
  background: rgba(109, 148, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
  transform: translateY(-1px);
}

.deck-control-btn--exit:hover,
.deck-control-btn--exit:focus-visible {
  background: rgba(185, 235, 0, 0.92);
  border-color: rgba(255, 143, 148, 0.8);
}

.deck-control-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.deck-icon-compress {
  display: none;
}

.deck-control-btn.is-fullscreen .deck-icon-expand {
  display: none;
}

.deck-control-btn.is-fullscreen .deck-icon-compress {
  display: block;
}

/* Floating HUD Top */
.deck-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(2, 22, 54, 0.85) 0%, rgba(2, 22, 54, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hud-top-left {
  display: flex;
  align-items: center;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.hud-deck-title {
  font-size: 14px;
  font-weight: 600;
  color: #DCE7F5;
  letter-spacing: 0.02em;
}

.hud-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #DCE7F5;
  font-size: 13px;
  font-weight: 400;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.hud-btn-close {
  background: rgba(185, 235, 0, 0.2);
  border-color: rgba(185, 235, 0, 0.4);
  color: #FF8F94;
}

.hud-btn-close:hover {
  background: var(--brand-red, #B9EB00);
  color: #FFFFFF;
  border-color: var(--brand-red, #B9EB00);
}

/* Stage fills the 16:9 wrapper. Absolute so slide content cannot stretch that frame. */
.deck-stage {
  inset: 0;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  position: absolute;
  overflow: hidden;
}

.deck-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Presentation Slide */
.presentation-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  box-sizing: border-box;
  opacity: 1;
}

/* Slide surface fills the 16:9 stage */
.slide-aspect-canvas {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 16 / 9;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.8cqi 4.2cqi;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  box-sizing: border-box;
}

.presentation-slide.theme-deep-navy .slide-aspect-canvas {
  background: radial-gradient(circle at 50% 30%, #1c2520 0%, #0F1412 45%, #021636 100%);
  color: #FFFFFF;
}

.presentation-slide.theme-light-modern .slide-aspect-canvas {
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #F1F5F9 60%, #E2E8F0 100%);
  color: #090C0B;
}

.presentation-slide.theme-accent-red .slide-aspect-canvas {
  background: radial-gradient(circle at 50% 30%, #D5FF2A 0%, #B9EB00 50%, #3F6200 100%);
  color: #FFFFFF;
}

.presentation-slide.theme-dark-gradient .slide-aspect-canvas {
  background: radial-gradient(circle at 50% 30%, #1E293B 0%, #0F172A 60%, #020617 100%);
  color: #FFFFFF;
}

.presentation-slide.theme-custom-image .slide-aspect-canvas {
  background: #021636;
  color: #FFFFFF;
}

/* Floating HUD Bottom */
.deck-hud-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 100;
  background: linear-gradient(0deg, rgba(2, 22, 54, 0.22) 0%, rgba(2, 22, 54, 0) 100%);
  opacity: 1;
  pointer-events: none;
}

.deck-hud-bottom:hover,
.deck-hud-bottom:focus-within {
  opacity: 1;
}

.hud-bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  pointer-events: auto;
}

.hud-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9, 12, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-nav-btn:hover:not(:disabled):not(.is-disabled) {
  background: var(--brand-red, #B9EB00);
  border-color: var(--brand-red, #B9EB00);
  transform: scale(1.08);
}

.hud-nav-btn:disabled,
.hud-nav-btn.is-disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.hud-nav-btn:disabled:hover,
.hud-nav-btn.is-disabled:hover {
  background: rgba(9, 12, 11, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
}

.hud-nav-center {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(9, 12, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.hud-counter {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.hud-dots-rail {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(9, 12, 11, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hud-dot.active {
  background: var(--brand-red, #B9EB00);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92);
  width: 28px;
  border-radius: 5px;
}

/* Progress Track & Bar */
.deck-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.deck-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6D9400 0%, #B9EB00 100%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Template: Cover */
.slide-content-cover {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.slide-bleed-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: block;
}

.slide-bleed-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 22, 54, 0.86) 0%, rgba(2, 22, 54, 0.58) 48%, rgba(2, 22, 54, 0.4) 100%);
}

.slide-theme-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-theme-background-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 22, 54, 0.88) 0%, rgba(2, 22, 54, 0.55) 52%, rgba(2, 22, 54, 0.3) 100%);
}

/* Keep every template content layer above a custom theme background. */
.slide-content-cover,
.slide-content-split,
.slide-content-metrics,
.slide-content-showcase,
.slide-content-contact,
.slide-content-photo,
.slide-content-gallery {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.presentation-slide--image-background .slide-aspect-canvas {
  padding: clamp(64px, 8cqi, 120px) clamp(28px, 8cqi, 120px);
}

.presentation-slide--image-background .slide-bleed-dim {
  background: linear-gradient(90deg, rgba(2, 22, 54, 0.9) 0%, rgba(2, 22, 54, 0.55) 52%, rgba(2, 22, 54, 0.28) 100%);
}

.presentation-slide--image-background .slide-content-cover {
  max-width: 980px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.presentation-slide--photo .slide-bleed-dim,
.presentation-slide--photo .slide-theme-background-dim {
  background: linear-gradient(0deg, rgba(2, 22, 54, 0.88) 0%, rgba(2, 22, 54, 0.38) 52%, rgba(2, 22, 54, 0.08) 100%);
}

.slide-content-photo {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 720px;
  gap: 8px;
}

.presentation-slide--plain-photo .slide-aspect-canvas {
  padding: 0;
  background: #000;
  aspect-ratio: 16 / 9;
}

.presentation-slide--plain-photo .slide-bleed-photo {
  object-fit: contain;
  object-position: center;
  image-rendering: high-quality;
}

.presentation-overlay[data-plain-pages="true"] .deck-progress-track,
.presentation-overlay[data-plain-pages="true"] .deck-presentation-controls,
.presentation-overlay[data-plain-pages="true"] .deck-hud-bottom {
  opacity: 0;
}

.presentation-overlay[data-plain-pages="true"] .deck-hud-bottom {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.presentation-overlay[data-plain-pages="true"]:hover .deck-presentation-controls,
.presentation-overlay[data-plain-pages="true"]:focus-within .deck-presentation-controls,
.presentation-overlay[data-plain-pages="true"]:hover .deck-hud-bottom,
.presentation-overlay[data-plain-pages="true"]:focus-within .deck-hud-bottom {
  opacity: 1;
}

.presentation-overlay .presentation-wrapper.is-native-fullscreen .deck-presentation-controls,
.presentation-overlay .presentation-wrapper:fullscreen .deck-presentation-controls,
.presentation-overlay .presentation-wrapper:-webkit-full-screen .deck-presentation-controls,
.presentation-overlay .presentation-wrapper.is-native-fullscreen .deck-hud-bottom,
.presentation-overlay .presentation-wrapper:fullscreen .deck-hud-bottom,
.presentation-overlay .presentation-wrapper:-webkit-full-screen .deck-hud-bottom {
  opacity: 0.72;
}

.presentation-overlay .presentation-wrapper.is-native-fullscreen .deck-presentation-controls:hover,
.presentation-overlay .presentation-wrapper.is-native-fullscreen .deck-presentation-controls:focus-within,
.presentation-overlay .presentation-wrapper:fullscreen .deck-presentation-controls:hover,
.presentation-overlay .presentation-wrapper:fullscreen .deck-presentation-controls:focus-within,
.presentation-overlay .presentation-wrapper:-webkit-full-screen .deck-presentation-controls:hover,
.presentation-overlay .presentation-wrapper:-webkit-full-screen .deck-presentation-controls:focus-within,
.presentation-overlay .presentation-wrapper.is-native-fullscreen .deck-hud-bottom:hover,
.presentation-overlay .presentation-wrapper.is-native-fullscreen .deck-hud-bottom:focus-within,
.presentation-overlay .presentation-wrapper:fullscreen .deck-hud-bottom:hover,
.presentation-overlay .presentation-wrapper:fullscreen .deck-hud-bottom:focus-within,
.presentation-overlay .presentation-wrapper:-webkit-full-screen .deck-hud-bottom:hover,
.presentation-overlay .presentation-wrapper:-webkit-full-screen .deck-hud-bottom:focus-within {
  opacity: 1;
}

.slide-content-gallery {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.deck-gallery-heading {
  flex: 0 0 auto;
}

.deck-gallery-title {
  color: #FFFFFF;
  font-size: clamp(calc(22px * var(--slide-font-scale, 1)), calc(3cqi * var(--slide-font-scale, 1)), calc(34px * var(--slide-font-scale, 1)));
  line-height: 1.12;
  margin: 0;
}

.deck-gallery-subtitle,
.deck-gallery-description {
  color: #CAD8E8;
  font-size: clamp(calc(11px * var(--slide-font-scale, 1)), calc(1.25cqi * var(--slide-font-scale, 1)), calc(15px * var(--slide-font-scale, 1)));
  line-height: 1.45;
  margin: 6px 0 0;
}

.deck-gallery-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}

.deck-gallery-grid--1 {
  grid-template-columns: 1fr;
}

.deck-gallery-grid--standalone {
  grid-template-columns: 1fr;
}

.deck-gallery-grid--standalone .deck-gallery-side {
  width: 100%;
  height: 100%;
}

.deck-gallery-main,
.deck-gallery-side,
.deck-gallery-cell {
  overflow: hidden;
  border-radius: 6px;
  min-height: 0;
}

.deck-gallery-side {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.deck-gallery-side--1 { grid-template-columns: 1fr; }
.deck-gallery-side--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deck-gallery-side--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deck-gallery-side--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }

.deck-gallery-main img,
.deck-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.deck-gallery-empty {
  align-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #CAD8E8;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 0;
}

.presentation-slide.theme-light-modern .deck-gallery-title { color: #090C0B; }
.presentation-slide.theme-light-modern .deck-gallery-subtitle,
.presentation-slide.theme-light-modern .deck-gallery-description { color: #4B6483; }

.deck-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
}

.deck-brand-logo {
  height: 24px;
  width: auto;
}

.deck-brand-badge {
  font-size: calc(0.85cqi * var(--slide-font-scale, 1));
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #DCE7F5;
}

.deck-cover-title {
  font-size: calc(2.7cqi * var(--slide-font-scale, 1));
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.deck-cover-subtitle {
  font-size: calc(1.35cqi * var(--slide-font-scale, 1));
  font-weight: 700;
  color: var(--brand-red, #B9EB00);
  margin: 0;
  letter-spacing: 0.04em;
}

.deck-cover-divider {
  width: 5.5cqi;
  height: 0.3cqi;
  background: var(--brand-red, #B9EB00);
  border-radius: 0.2cqi;
  margin: 0.2cqi auto;
}

.deck-cover-description {
  font-size: calc(1.15cqi * var(--slide-font-scale, 1));
  color: #CAD8E8;
  line-height: 1.45;
  max-width: 72cqi;
  margin: 0;
}

.presentation-slide .deck-section-tag {
  font-size: calc(0.95cqi * var(--slide-font-scale, 1));
}

.presentation-slide .deck-cover-title {
  font-size: calc(2.7cqi * var(--slide-font-scale, 1));
}

.presentation-slide .deck-cover-subtitle {
  font-size: calc(1.35cqi * var(--slide-font-scale, 1));
}

.presentation-slide .deck-cover-description {
  font-size: calc(1.15cqi * var(--slide-font-scale, 1));
}

.presentation-slide .deck-stat-number {
  font-size: calc(2.2cqi * var(--slide-font-scale, 1));
}

.presentation-slide .deck-stat-label,
.presentation-slide .deck-bullet-item,
.presentation-slide .btn-deck-cta {
  font-size: calc(1.1cqi * var(--slide-font-scale, 1));
}

/* Template: Split Layouts */
.slide-content-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2cqi;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.slide-content-split.split-text-right {
  grid-template-columns: 0.85fr 1.15fr;
}

.split-column-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-column-media {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
}

.split-column-media .deck-media-frame {
  flex: 1 1 auto;
}

.deck-section-tag {
  display: inline-block;
  font-size: calc(0.95cqi * var(--slide-font-scale, 1));
  font-weight: 800;
  color: var(--brand-red, #B9EB00);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4cqi;
}

.deck-slide-title {
  font-size: calc(2.2cqi * var(--slide-font-scale, 1));
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.22;
  margin: 0 0 0.4cqi;
}

.deck-slide-subtitle {
  font-size: calc(1.3cqi * var(--slide-font-scale, 1));
  font-weight: 600;
  color: #AFC2DA;
  margin: 0 0 0.6cqi;
  line-height: 1.3;
}

.deck-slide-desc {
  font-size: calc(1.1cqi * var(--slide-font-scale, 1));
  color: #DCE7F5;
  line-height: 1.45;
  margin: 0 0 0.8cqi;
  white-space: pre-line;
  word-break: break-word;
}

.deck-slide-title,
.deck-cover-title,
.deck-gallery-title,
.deck-slide-subtitle,
.deck-cover-subtitle,
.deck-gallery-subtitle {
  overflow-wrap: break-word;
  word-break: break-word;
}

.deck-media-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0.8cqi;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  background: #02204c;
}

.deck-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.deck-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35cqi 0.8cqi;
  font-size: calc(0.9cqi * var(--slide-font-scale, 1));
  color: #DCE7F5;
  background: linear-gradient(0deg, rgba(2, 22, 54, 0.9) 0%, rgba(2, 22, 54, 0) 100%);
}

/* Template: Metrics */
.slide-content-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2cqi;
  height: 100%;
}

.deck-header-center {
  text-align: center;
}

.slide-content-metrics .deck-header-center,
.slide-content-metrics .deck-metrics-footer {
  width: min(100%, 75cqi);
}

.slide-content-metrics .deck-stats-grid {
  width: min(100%, 65cqi);
}

.slide-content-metrics .deck-metrics-footer {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.deck-stats-grid {
  display: grid;
  gap: 0.9cqi;
}

.deck-stats-grid.deck-stats-4 {
  grid-template-columns: repeat(4, 1fr);
}

.deck-stats-grid.deck-stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.deck-stats-grid.deck-stats-2 {
  grid-template-columns: repeat(2, 1fr);
}

.deck-stats-grid.deck-stats-1 {
  grid-template-columns: 1fr;
}

.deck-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6cqi;
  padding: 0.65cqi 1cqi;
  text-align: center;
  transition: all 0.2s ease;
}

.deck-stat-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--brand-red, #B9EB00);
}

.deck-stat-number {
  display: block;
  font-size: calc(2.2cqi * var(--slide-font-scale, 1));
  font-weight: 900;
  color: var(--brand-red, #B9EB00);
  line-height: 1.1;
  margin-bottom: 0.2cqi;
}

.deck-stat-label {
  font-size: calc(0.95cqi * var(--slide-font-scale, 1));
  color: #CAD8E8;
  font-weight: 500;
  line-height: 1.25;
}

.deck-metrics-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1cqi;
  padding-top: 0.6cqi;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.deck-certs-badges {
  display: flex;
  gap: 0.5cqi;
  flex-wrap: wrap;
}

.cert-pill {
  font-size: calc(0.85cqi * var(--slide-font-scale, 1));
  font-weight: 700;
  color: #AFC2DA;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25cqi 0.7cqi;
  border-radius: 1cqi;
}

/* Template: Showcase */
.slide-content-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2cqi;
  height: 100%;
}

.deck-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1cqi;
}

.deck-showcase-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6cqi;
  padding: 0.9cqi 1.1cqi;
  display: flex;
  flex-direction: column;
  gap: 0.5cqi;
}

.showcase-icon-wrap {
  font-size: calc(1.8cqi * var(--slide-font-scale, 1));
  color: var(--brand-red, #B9EB00);
  line-height: 1;
}

.showcase-card-title {
  font-size: calc(1.15cqi * var(--slide-font-scale, 1));
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
}

.showcase-card-desc {
  font-size: calc(0.95cqi * var(--slide-font-scale, 1));
  color: #AFC2DA;
  line-height: 1.35;
  margin: 0;
}

/* Template: Contact */
.slide-content-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2cqi;
  height: 100%;
}

.deck-contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5cqi;
  align-items: stretch;
}

.deck-contact-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6cqi;
  padding: 1.1cqi 1.3cqi;
  display: flex;
  flex-direction: column;
  gap: 0.7cqi;
}

.contact-card-header {
  font-size: calc(1.25cqi * var(--slide-font-scale, 1));
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.2cqi;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.4cqi;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7cqi;
  font-size: calc(1.05cqi * var(--slide-font-scale, 1));
  text-align: left;
}

.contact-info-row .info-icon {
  font-size: calc(1.25cqi * var(--slide-font-scale, 1));
  flex-shrink: 0;
  margin-top: 0.1cqi;
  color: var(--brand-red, #B9EB00);
}

.contact-info-row strong {
  display: block;
  color: #FFFFFF;
  font-weight: 600;
}

.contact-info-row p {
  margin: 0.1cqi 0 0;
  color: #CAD8E8;
  line-height: 1.3;
  font-size: calc(0.95cqi * var(--slide-font-scale, 1));
}

.deck-contact-qr-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6cqi;
  padding: 1.1cqi;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6cqi;
}

.qr-code-placeholder {
  width: 7.5cqi;
  height: 7.5cqi;
  background: #FFFFFF;
  border-radius: 0.6cqi;
  padding: 0.6cqi;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2cqi;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.qr-brand-logo {
  max-width: 5.5cqi;
  height: auto;
}

.qr-label {
  font-size: 0.65cqi;
  font-weight: 800;
  color: #0F1412;
  letter-spacing: 0.05em;
}

.qr-caption {
  font-size: calc(0.9cqi * var(--slide-font-scale, 1));
  color: #AFC2DA;
  margin: 0;
  line-height: 1.25;
}

/* Bullet list */
.deck-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0.4cqi 0 0.6cqi;
  display: flex;
  flex-direction: column;
  gap: 0.45cqi;
}

.deck-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6cqi;
  font-size: calc(1.1cqi * var(--slide-font-scale, 1));
  color: #DCE7F5;
  line-height: 1.35;
  text-align: left;
}

.deck-bullet-icon {
  color: #10B981;
  font-weight: bold;
  font-size: calc(1.1cqi * var(--slide-font-scale, 1));
}

/* CTA Button in Slide */
.btn-deck-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6cqi;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.55cqi 1.5cqi;
  background: var(--brand-red, #B9EB00);
  color: #FFFFFF !important;
  font-size: calc(1.1cqi * var(--slide-font-scale, 1));
  font-weight: 400;
  border-radius: 0.5cqi;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(185, 235, 0, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-deck-cta:hover {
  background: #D5FF2A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 235, 0, 0.6);
}


@media (max-width: 640px) {
  .deck-presentation-controls {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .deck-control-btn {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .deck-control-icon {
    width: 17px;
    height: 17px;
  }

  .deck-hud-top {
    padding: 0 14px;
    height: 52px;
  }

  .deck-hud-bottom {
    padding: 0 14px;
    height: 52px;
  }

  .deck-stage {
    height: auto;
    inset: 0;
    margin: 0;
    width: auto;
  }

  .presentation-slide {
    padding: 0;
  }

  .slide-aspect-canvas {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0;
    padding: 64px 16px 68px;
    overflow-y: auto;
  }

  .hud-deck-title {
    display: none;
  }

  .hud-dots-rail {
    display: none;
  }
}

/* Presentation Canvas Elements Layer (Phase 3A) */
.slide-canvas-elements-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  container-type: inline-size;
}

.slide-canvas-elements-layer--free {
  z-index: 20;
  pointer-events: none;
}

.canvas-element {
  position: absolute;
  box-sizing: border-box;
  transform-origin: center center;
  pointer-events: auto;
}

.slide-canvas-elements-layer--free .canvas-element {
  pointer-events: none;
}

.canvas-element--text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
  user-select: text;
}

.canvas-element--image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  user-select: none;
}

.canvas-element--shape {
  box-sizing: border-box;
}

.canvas-element--line {
  background: transparent;
  pointer-events: none;
}

.canvas-element--arrow {
  display: block;
  pointer-events: none;
}
