@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

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

:root {
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --navy:       #0a1c2e;
  --navy-mid:   #112438;
  --navy-card:  #152d45;
  --navy-light: #1c3e5c;
  --orange:     #e87722;
  --orange-lt:  #f09344;
  --white:      #ffffff;
  --offwhite:   #dde9f4;
  --grey:       #7a9cb8;
  --grey-dark:  #3d607a;
  --ph-bg:      #0e2035;
  --ph-border:  #1a3d5c;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #050058 50%, #1e40af 100%);
  font-family: var(--font-sans);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--white);
}
body.page-hub {
  overflow: auto;
  min-height: 100%;
}
body.page-hub:not(.page-player) {
  padding-top: clamp(56px, 7vh, 76px);
}

/* ─── SITE LOGOS (fixed corners, all pages) ─── */
.site-logos-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(10px, 1.5vw, 16px) clamp(12px, 2vw, 20px);
  pointer-events: none;
  box-sizing: border-box;
}
.site-logos-fixed .site-logo-link {
  display: inline-block;
  line-height: 0;
  pointer-events: auto;
  text-decoration: none;
  border-radius: 6px;
}
.site-logos-fixed .site-logo-link:focus-visible {
  outline: 2px solid #4ba5ff;
  outline-offset: 3px;
}
.site-logos-fixed .site-logo {
  display: block;
  height: clamp(36px, 5.5vw, 56px);
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: center;
}
.page-player .site-logos-fixed {
  top: 54px;
  z-index: 1;
}
/* Play all: iframe slides use ?embed=1 — parent player already shows corner logos */
body.embed-presentation .site-logos-fixed {
  display: none !important;
}
.presentation-hub {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) 28px 80px;
}
.presentation-hub-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.presentation-hub-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.presentation-hub-title span {
  color: #4ba5ff;
}
.presentation-hub-lead {
  font-size: 15px;
  font-weight: 300;
  color: var(--grey);
  margin-bottom: 28px;
  line-height: 1.5;
}
.presentation-hub-list {
  list-style: none;
  counter-reset: hub;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.presentation-hub-list li {
  counter-increment: hub;
}
.presentation-hub-list li::before {
  content: counter(hub, decimal-leading-zero) ".";
  display: inline-block;
  width: 2.2em;
  font-size: 13px;
  font-weight: 700;
  color: #4ba5ff;
}
.presentation-hub-list a {
  color: var(--offwhite);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 119, 34, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.presentation-hub-list a:hover {
  color: var(--white);
  border-bottom-color: #4ba5ff;
}
.presentation-hub-actions {
  margin-bottom: 32px;
}
.presentation-hub-playall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  border: 2px solid #4ba5ff;
  background: rgba(232, 119, 34, 0.12);
  color: #4ba5ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.presentation-hub-playall:hover {
  background: rgba(232, 119, 34, 0.22);
  color: var(--white);
  transform: translateY(-1px);
}

/* ─── PLAY-ALL PLAYER (player.html) ─── */
body.page-player {
  min-height: 100vh;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.page-player .player-header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(4, 11, 20, 0.95);
  border-bottom: 1px solid var(--ph-border);
}
.page-player .player-back {
  color: var(--grey);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.page-player .player-back:hover {
  color: #4ba5ff;
}
.page-player .player-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--offwhite);
  text-align: center;
  flex: 1;
  min-width: 0;
}
.page-player .player-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-player .player-skip,
.page-player .player-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--navy-light);
  background: rgba(21, 45, 69, 0.6);
  color: var(--offwhite);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.page-player .player-skip:hover:not(:disabled),
.page-player .player-pause:hover:not(:disabled) {
  border-color: #4ba5ff;
  color: #4ba5ff;
  background: rgba(232, 119, 34, 0.1);
}
.page-player .player-skip:disabled,
.page-player .player-pause:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-player .player-shell {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.page-player .player-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  background: linear-gradient(135deg, #1e3a8a 0%, #050058 50%, #1e40af 100%);
}
.page-player .player-idle {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #050058 50%, #1e40af 100%);
  text-align: center;
}
.page-player .player-idle-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--grey);
  max-width: 420px;
  line-height: 1.5;
}
.page-player .player-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 50px;
  border: 2px solid #4ba5ff;
  background: rgba(232, 119, 34, 0.12);
  color: #4ba5ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-player .player-start-btn:hover {
  background: rgba(232, 119, 34, 0.22);
  color: var(--white);
}
.page-player .player-done {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #4ba5ff;
  background: rgba(4, 11, 20, 0.97);
  border-top: 1px solid var(--ph-border);
}

/* ─── BACKGROUND GRADIENT ANIMATION ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 40%, rgba(28,62,92,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(18,50,78,0.4) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── SCENE SYSTEM ─── */
.scene {
  position: fixed; inset: 0; z-index: 1;
  display: flex;
  padding: 72px 90px 110px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.scene.active {
  opacity: 1;
  pointer-events: all;
}
.scene.out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ─── LAYOUT VARIANTS ─── */
.l-opening {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vh, 40px);
}
.opening-title {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.03em;
  max-width: min(1100px, 94vw);
  margin: 0;
  padding: 0 16px;
}
.opening-title span { color: #4ba5ff; }
.opening-pair {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
  width: 100%;
  max-width: 1920px;
}

/* Main video deck: visual scenes (browser / phone only) */
body.page-presentation .scene.l-opening {
  padding: 44px 36px 108px;
}
body.page-presentation .visual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vh, 28px);
  width: 100%;
  max-width: 1760px;
  flex: 1;
  min-height: 0;
}
body.page-presentation .browser-frame {
  flex: 1 1 380px;
  max-width: min(880px, 90vw);
  min-width: 280px;
  height: min(70vh, 700px);
}
body.page-presentation .browser-frame.browser-frame-hero {
  flex: 0 0 auto;
  max-width: min(1240px, 96vw);
  width: 100%;
  height: min(84vh, 860px);
}
/* Widescreen capture (e.g. 1920×900): frame matches aspect ratio; full image visible, not cropped */
body.page-presentation .browser-frame.browser-frame-hero.browser-frame-fullshot {
  height: auto;
  max-height: none;
  max-width: min(1600px, 96vw);
  width: min(1600px, 96vw, calc((100vh - 246px) * 1920 / 900));
}
body.page-presentation .browser-frame.browser-frame-hero.browser-frame-fullshot .bf-viewport {
  flex: 0 0 auto;
  aspect-ratio: 1920 / 900;
  width: 100%;
  min-height: 0;
}
body.page-presentation .browser-frame.browser-frame-hero.browser-frame-fullshot .bf-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
body.page-presentation .browser-frame.browser-frame-hero.browser-frame-fullshot .bf-viewport video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* Single-scene hero phone: full screenshot at device aspect (e.g. 1290×2796) */
body.page-presentation .phone-frame.phone-frame-hero .pf-screen {
  width: min(420px, 44vw, calc((100vh - 220px) * 1290 / 2796));
  height: auto;
  aspect-ratio: 1290 / 2796;
  max-height: calc(100vh - 220px);
}
body.page-presentation .phone-frame.phone-frame-hero .pf-screen img {
  object-fit: contain;
  object-position: center top;
}
body.page-presentation .opening-pair.three-across {
  align-items: stretch;
}
body.page-presentation .opening-pair.three-across .browser-frame {
  flex: 1 1 300px;
  max-width: min(520px, 34vw);
  min-width: 240px;
  height: min(58vh, 560px);
}
body.page-presentation .visual-stack .opening-pair .browser-frame {
  height: min(52vh, 520px);
}
body.page-presentation .visual-stack .phone-frame .pf-screen {
  width: min(300px, 32vw);
  height: min(520px, 52vh);
  max-height: calc(58vh - 20px);
}
/* One row: web + app (matches intro proportions) */
body.page-presentation .scene.l-opening > .opening-pair:not(.three-across) .browser-frame {
  flex: 1 1 480px;
  max-width: min(1040px, 58vw);
  min-width: 300px;
  height: min(82vh, 820px);
}
body.page-presentation .scene.l-opening > .opening-pair:not(.three-across) .phone-frame .pf-screen {
  width: min(320px, 34vw);
  height: min(672px, 70vh);
  max-height: calc(82vh - 28px);
}

/* Mobile integration slide: six app screenshots (laptop / desktop only — fills grid cells, tall like earlier 4-up) */
body.page-presentation .scene.l-opening:has(.opening-phones-hero) {
  padding-left: clamp(16px, 2.2vw, 36px);
  padding-right: clamp(16px, 2.2vw, 36px);
}
body.page-presentation .scene.l-opening .opening-phones-hero {
  width: 100%;
  max-width: min(2560px, 98vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}
body.page-presentation .scene.l-opening .opening-phones-hero .opening-phones-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  gap: clamp(8px, 1.1vw, 18px);
  width: 100%;
}
body.page-presentation .scene.l-opening .opening-phones-hero .opening-phones-row .phone-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}
body.page-presentation .scene.l-opening .opening-phones-hero .opening-phones-row .phone-frame .pf-screen {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 1290 / 2796;
  /* Match earlier large phone treatment; width comes from 1/6 grid cell */
  max-height: min(82vh, 820px);
}

.l-split  { flex-direction: row; gap: 72px; align-items: center; }
.l-split .col-t { flex: 0 0 46%; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.l-split .col-v { flex: 1; display: flex; flex-direction: column; gap: 18px; height: 100%; justify-content: center; }
.l-closing { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; }
.closing-brand-logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  max-height: min(120px, 18vh);
  object-fit: contain;
  object-position: center bottom;
}

/* ─── ANIMATION BASE ─── */
.a1, .a2, .a3, .a4, .a5, .a6, .a7, .a8,
.av1, .av2, .av3, .av4, .av5, .av6 {
  opacity: 0;
  transform: translateY(22px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes expandW {
  from { width: 0; opacity: 0; }
  to   { opacity: 1; }
}

.scene.active .a1 { animation: fadeUp 0.7s ease 0.15s both; }
.scene.active .a2 { animation: fadeUp 0.7s ease 0.40s both; }
.scene.active .a3 { animation: fadeUp 0.7s ease 0.65s both; }
.scene.active .a4 { animation: fadeUp 0.7s ease 0.90s both; }
.scene.active .a5 { animation: fadeUp 0.7s ease 1.15s both; }
.scene.active .a6 { animation: fadeUp 0.7s ease 1.40s both; }
.scene.active .a7 { animation: fadeUp 0.7s ease 1.65s both; }
.scene.active .a8 { animation: fadeUp 0.7s ease 1.90s both; }

.scene.active .av1 { animation: fadeIn 0.8s ease 0.5s  both; }
.scene.active .av2 { animation: fadeIn 0.8s ease 0.9s  both; }
.scene.active .av3 { animation: fadeIn 0.8s ease 1.3s  both; }
.scene.active .av4 { animation: fadeIn 0.8s ease 1.7s  both; }
.scene.active .av5 { animation: fadeIn 0.8s ease 2.1s  both; }
.scene.active .av6 { animation: fadeIn 0.8s ease 2.5s  both; }

.divider {
  width: 0; height: 3px;
  background: #4ba5ff; border-radius: 2px;
  opacity: 0;
}
.scene.active .divider {
  animation: expandW 0.6s ease 0.55s both;
  width: 52px;
}

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: #4ba5ff;
}
.title-hero {
  font-size: 68px; font-weight: 900; line-height: 1.0;
  color: var(--white); letter-spacing: -1px;
}
.title-hero span { color: #4ba5ff; }

.title-section {
  font-size: 46px; font-weight: 800; line-height: 1.08;
  color: var(--white);
}
.title-section span { color: #4ba5ff; }

.subtitle {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: #ffffff;
  max-width: 640px;
}

.body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: #9bbdd6;
}
.body strong { color: var(--white); font-weight: 700; }

/* ─── FEATURE LIST ─── */
.feat-list { display: flex; flex-direction: column; gap: 14px; }
.feat {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: rgba(21,45,69,0.5);
  border: 1px solid rgba(28,62,92,0.6);
  border-radius: 8px;
}
.feat-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(232,119,34,0.15);
  border: 1px solid rgba(232,119,34,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.feat-body { flex: 1; }
.feat-title { font-size: 13.5px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.feat-desc  { font-size: 12.5px; font-weight: 300; color: var(--grey); line-height: 1.5; }

/* ─── MODULE TAGS ─── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: rgba(232,119,34,0.12);
  border: 1px solid rgba(232,119,34,0.35);
  color: #4ba5ff;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 4px;
}

/* ─── STAT ROW ─── */
.stats { display: flex; gap: 18px; }
.stat {
  flex: 1;
  background: var(--navy-card);
  border: 1px solid var(--navy-light);
  border-radius: 10px; padding: 18px 16px; text-align: center;
}
.stat-num { display: block; font-size: 36px; font-weight: 900; color: #4ba5ff; line-height: 1; }
.stat-lbl { display: block; font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 5px; }

/* ─── PLACEHOLDER VISUALS ─── */
.ph {
  background: var(--ph-bg);
  border: 1.5px dashed var(--ph-border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; position: relative; overflow: hidden;
  min-height: 120px;
}
.ph::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px, transparent 28px,
      rgba(28,62,92,0.07) 28px, rgba(28,62,92,0.07) 29px
    );
  pointer-events: none;
}
.ph::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: rgba(28,62,92,0.5);
  border-bottom: 1px solid var(--ph-border);
}
.ph-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
  padding: 20px;
}
.ph-icon { font-size: 26px; opacity: 0.4; }
.ph-lbl {
  font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--grey); opacity: 0.6;
}
.ph-desc { font-size: 10px; font-weight: 300; color: var(--grey); opacity: 0.4; max-width: 160px; text-align: center; }

.ph-dots {
  position: absolute; top: 7px; left: 12px; z-index: 2;
  display: flex; gap: 5px;
}
.ph-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: block;
}

.ph-lg { flex: 1; min-height: 0; }
.ph-row { display: flex; gap: 16px; flex: 1; min-height: 0; }
.ph-row .ph { flex: 1; }
.ph-trio { display: flex; gap: 14px; flex: 1; min-height: 0; }
.ph-trio .ph { flex: 1; }

/* ─── REAL SCREENSHOTS ─── */
.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(28, 62, 92, 0.95);
  background: var(--ph-bg);
  min-height: 120px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.shot-lg { flex: 1; min-height: 0; }
.ph-row .shot { flex: 1; min-height: 0; }
.ph-trio .shot { flex: 1; min-height: 0; }

/* ─── INTRO: BROWSER + PHONE ─── */
.browser-frame {
  flex: 1 1 480px;
  max-width: min(1040px, 64vw);
  min-width: 320px;
  height: min(82vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(28, 62, 92, 0.95);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  background: var(--ph-bg);
}
.browser-frame .bf-chrome {
  flex-shrink: 0;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, #1a3550 0%, #152d45 100%);
  border-bottom: 1px solid var(--ph-border);
}
.browser-frame .bf-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.browser-frame .bf-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.browser-frame .bf-url {
  flex: 1;
  min-width: 0;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(28, 62, 92, 0.65);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.04em;
}
.browser-frame .bf-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #0a1622;
  display: flex;
  align-items: center;
  justify-content: center;
}
.browser-frame .bf-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.browser-frame .bf-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.phone-frame {
  flex: 0 0 auto;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.55));
}
.phone-frame .pf-bezel {
  position: relative;
  padding: 13px 12px 17px;
  border-radius: 48px;
  background: linear-gradient(155deg, #343b48 0%, #1a1f28 42%, #0c0e12 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}
.phone-frame .pf-speaker {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.phone-frame .pf-screen {
  position: relative;
  width: min(320px, 34vw);
  height: min(672px, 70vh);
  max-height: calc(82vh - 28px);
  border-radius: 36px;
  overflow: hidden;
  background: #05080c;
}
.phone-frame .pf-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone-frame .pf-home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

/* ─── BADGES (closing) ─── */
.badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.badge {
  background: var(--navy-card);
  border: 1px solid var(--navy-light);
  color: var(--grey); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 15px; border-radius: 6px;
}
.badges--logos {
  gap: clamp(21px, 3.3vw, 36px);
  align-items: center;
  max-width: min(1500px, 98vw);
  margin-left: auto;
  margin-right: auto;
}
.badges--logos-box {
  max-width: min(1560px, 98vw);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: clamp(26px, 4.5vw, 48px) clamp(22px, 3.5vw, 40px);
}
.badges--logos .badge-logo {
  display: block;
  height: clamp(63px, 8.25vw, 87px);
  width: auto;
  max-width: min(270px, 45vw);
  object-fit: contain;
  object-position: center;
}
.badges--logos .badge-logo--iso {
  height: clamp(57px, 7.5vw, 78px);
  max-width: min(210px, 39vw);
}

/* ─── CONTACT BLOCK ─── */
.contact {
  background: var(--navy-card);
  border: 1px solid var(--navy-light);
  border-radius: 12px;
  padding: 30px 48px;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-name { font-size: 22px; font-weight: 800; color: var(--white); }
.contact-detail { font-size: 15px; font-weight: 300; color: var(--grey); }
.contact-web { font-size: 15px; color: #4ba5ff; font-weight: 600; }

/* ─── ORANGE BOTTOM ACCENT ─── */
body::after {
  content: ''; position: fixed; bottom: 0; left: 0; right: 0; height: 2px; z-index: 20;
  background: linear-gradient(90deg, #4ba5ff 0%, rgba(232,119,34,0.1) 60%, transparent 100%);
}

/* ─── CAPTIONS ─── */
#caption {
  position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  contain: layout style;
  max-width: min(920px, 88vw);
  width: 88%;
  text-align: center;
  font-size: clamp(20px, 2.35vw, 26px);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: none;
  padding: 8px 12px;
  transition: opacity 0.15s linear;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3em 0.38em;
}
#caption.hidden { opacity: 0; }
#caption .caption-word {
  color: #ffffff;
  transition: color 0.07s linear, font-weight 0.07s linear;
  font-weight: 500;
}
#caption .caption-word--past {
  color: #ffffff;
  font-weight: 500;
}
#caption .caption-word--current {
  color: #ffffff;
  font-weight: 700;
}
#caption .caption-word--plain {
  color: #ffffff;
  font-weight: 500;
}
#caption.caption--karaoke {
  font-weight: 500;
}

/* ─── START OVERLAY ─── */
#startOverlay {
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(135deg, #1e3a8a 0%, #050058 50%, #1e40af 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  cursor: pointer;
  transition: opacity 0.8s ease;
}
#startOverlay.fade { opacity: 0; pointer-events: none; }

.start-logo { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--grey); }
/* Main headline, directly above “Click to Play” */
.start-overlay-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.02em;
  max-width: min(920px, 92vw);
  padding: 0 16px;
}
.start-overlay-title span { color: #4ba5ff; }
.start-btn {
  margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--navy-light);
  border-radius: 50px; padding: 14px 32px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--grey);
  transition: all 0.2s;
}
#startOverlay:hover .start-btn {
  border-color: #4ba5ff; color: #4ba5ff;
}
.play-icon {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 11px solid currentColor;
}

/* ─── END OVERLAY (Play next / Thank you) ─── */
#endOverlay {
  position: fixed; inset: 0; z-index: 101;
  background: linear-gradient(135deg, #1e3a8a 0%, #050058 50%, #1e40af 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  transition: opacity 0.45s ease;
}
#endOverlay:hover .start-btn {
  border-color: #4ba5ff;
  color: #4ba5ff;
}
#endOverlay.end-overlay--thanks {
  cursor: default;
  gap: clamp(28px, 5vh, 48px);
}
#endOverlay.end-overlay--thanks:hover .start-btn {
  border-color: var(--navy-light);
  color: var(--grey);
}
#endOverlay.end-overlay--thanks .end-overlay-home-btn:hover {
  border-color: #4ba5ff;
  color: #4ba5ff;
}
.end-overlay-thanks {
  font-size: clamp(56px, 16vw, 140px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.04em;
  max-width: min(1100px, 96vw);
  padding: 0 24px;
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.35);
}
.end-overlay-home-btn {
  margin-top: 4px;
  text-decoration: none;
  cursor: pointer;
}

/* ─── HUD INDICATORS (pause / mute) ─── */
#pauseIndicator, #muteIndicator {
  position: fixed; top: 24px; z-index: 60;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--grey-dark);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#pauseIndicator { right: 32px; }
#muteIndicator  { right: 112px; }
#pauseIndicator.visible, #muteIndicator.visible { opacity: 1; }

/* ─── INTRO PAGE (01-intro.html) ─── */
body.page-intro {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
body.page-intro .scene {
  position: relative;
  inset: auto;
  min-height: 100vh;
  padding: 48px 40px 120px;
}
