/* ============================================
   TINOOP THOMAS — PORTFOLIO
   Design System & Global Styles
   ============================================ */

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

/* ---- CUSTOM PROPERTIES FOR ANIMATION ---- */
@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---- TOKENS ---- */
:root {
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale — 4 sizes only, min 14px */
  --fs-xs: 0.875rem;      /* 14px — labels, badges, captions, meta */
  --fs-body: 1.0625rem;   /* 17px — body text, descriptions */
  --fs-heading: 1.75rem;  /* 28px — card titles, section headings */
  --fs-display: clamp(2.25rem, 4.5vw, 3.5rem); /* 36–56px — slide/hero headings */

  /* Brand */
  --freshworks: #10B981;
  --freshworks-dark: #059669;

  /* Light mode */
  --bg: #FFFFFF;
  --bg2: #FFFFFF;
  --bg3: #E8EAF2;
  --ink: #0F172A;
  --ink2: #475569;
  --ink3: #94A3B8;
  --border: #E2E8F0;
  --border2: #CBD5E1;
  --accent: #6366F1;
  --accent2: #818CF8;
  --accent3: #EEF2FF;
  --gold: #D97706;
  --gold2: #FEF3C7;
  --green: #00A67E;
  --green2: #DDFFF6;
  --red: #E01B4A;
  --red2: #FFEEF3;
  --amber: #D97706;
  --amber2: #FEF3C7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.07), 0 8px 24px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0A0A08;
  --bg2: #141412;
  --bg3: #1E1E1B;
  --ink: #F8FAFC;
  --ink2: #CBD5E1;
  --ink3: #64748B;
  --border: #2A2A27;
  --border2: #3A3A36;
  --accent: #818CF8;
  --accent2: #A5B4FC;
  --accent3: #1E1B4B;
  --gold: #FBBF24;
  --gold2: rgba(251, 191, 36, 0.13);
  --green: #00E5A0;
  --green2: rgba(0, 229, 160, 0.13);
  --red: #FF4D72;
  --red2: rgba(255, 77, 114, 0.13);
  --amber: #FFC107;
  --amber2: rgba(255, 193, 7, 0.13);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
.display { font-family: var(--font-display); font-weight: 600; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-heading); }
h3 { font-size: var(--fs-body); font-weight: 600; }
p { font-size: var(--fs-body); color: var(--ink2); }

/* ---- LAYOUT ---- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(240, 242, 249, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="dark"] .nav {
  background: rgba(15, 15, 13, 0.85);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--freshworks); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink2);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-contact-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--ink3);
  transition: var(--transition);
}
.nav-contact-link:hover { color: var(--accent); background: var(--bg3); }

/* Dark mode toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 16px;
}
.theme-toggle:hover { background: var(--bg3); border-color: var(--border2); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--freshworks); color: #fff;
}
.btn-primary:hover { background: var(--freshworks-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,.3); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: var(--bg3); border-color: var(--ink3); }

/* ---- CARDS ---- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---- TAGS / BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.badge-blue { background: var(--accent3); color: var(--accent2); }
.badge-green { background: var(--green2); color: var(--green); }
.badge-gold { background: var(--gold2); color: var(--gold); }
.badge-red { background: var(--red2); color: var(--red); }
.badge-amber { background: var(--amber2); color: var(--amber); }
.badge-fw {
  background: rgba(37, 193, 111, 0.12);
  color: var(--freshworks-dark);
}
[data-theme="dark"] .badge-blue { background: rgba(99, 102, 241, 0.15); }
[data-theme="dark"] .badge-green { background: rgba(52, 211, 153, 0.15); }
[data-theme="dark"] .badge-gold { background: rgba(251, 191, 36, 0.12); }

/* ---- HOMEPAGE SPECIFIC ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 32px 60px;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero.hero-glow {
  background: linear-gradient(135deg, #6366F1 0%, #818CF8 30%, #10B981 65%, #34D399 100%);
}
.hero.hero-glow .hero-eyebrow { color: rgba(255,255,255,0.7); }
.hero.hero-glow .hero-eyebrow::before { background: rgba(255,255,255,0.5); }
.hero.hero-glow .hero-title { color: #fff; }
.hero.hero-glow .hero-title em { color: #FDE68A; }
.hero.hero-glow .hero-company { color: #A7F3D0; }
.hero.hero-glow .hero-tagline { color: rgba(255,255,255,0.85); }
.hero.hero-glow .hero-tagline strong { color: #fff; }
.hero.hero-glow .hero-stats { border-top-color: rgba(255,255,255,0.2); }
.hero.hero-glow .hero-stat-num { color: #fff; }
.hero.hero-glow .hero-stat-label { color: rgba(255,255,255,0.65); }
.hero.hero-glow .btn-primary { background: #fff; color: #059669; }
.hero.hero-glow .btn-primary:hover { background: #DDFFF6; }
.hero.hero-glow .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero.hero-glow .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); }
.hero.hero-glow .hero-photo-ring { box-shadow: 0 0 80px rgba(255,255,255,0.25), var(--shadow-lg); }
.hero.hero-glow .hero-photo-badge { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); color: #fff; backdrop-filter: blur(12px); }
.hero.hero-glow .hero-photo-badge strong { color: #fff; }
.hero-inner {
  max-width: 1300px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 60px; align-items: center;
}
.hero-eyebrow {
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.6s ease;
}
.hero-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--ink3);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.6s ease;
}
.hero-title em { font-style: normal; color: var(--accent); transition: color 0.6s ease; }
.hero-company {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  color: var(--freshworks);
  line-height: 1.1;
  letter-spacing: -0.035em;
  transition: color 0.6s ease;
}
.hero-tagline {
  font-size: var(--fs-body); color: var(--ink2);
  margin-top: 24px; margin-bottom: 32px;
  max-width: 540px; line-height: 1.6;
  font-weight: 400;
  transition: color 0.6s ease;
}
.hero-tagline strong { color: var(--ink); font-weight: 500; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-heading); font-weight: 600;
  color: var(--ink); line-height: 1;
  margin-bottom: 2px;
  transition: color 0.6s ease;
}
.hero-stat-label { font-size: var(--fs-xs); color: var(--ink3); font-weight: 400; transition: color 0.6s ease; }

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-photo-ring {
  width: 100%; max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  background: conic-gradient(from var(--ring-angle, 0deg), var(--accent) 0%, var(--accent2) 33%, var(--freshworks) 66%, var(--accent) 100%);
  padding: 4px;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.15), var(--shadow-lg);
}
.hero-photo-inner {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg3);
}
.hero-photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.hero-photo-badge {
  position: absolute; bottom: 20px; right: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: var(--fs-xs);
}
.hero-photo-badge strong { display: block; font-size: var(--fs-xs); color: var(--ink); }

/* ---- CASE STUDIES SECTION ---- */
.case-studies { padding: 80px 32px; }
.section-header { margin-bottom: 16px; }
.section-eyebrow {
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.section-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
/* Connected case studies container */
.case-studies-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.journey-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, var(--accent3), transparent);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px; margin: 0;
  border-radius: 0;
}
.journey-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.journey-text { font-size: var(--fs-xs); color: var(--ink2); }
.journey-text strong { color: var(--ink); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.case-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: none; transition: var(--transition);
  cursor: pointer; display: flex; flex-direction: column; text-decoration: none;
  position: relative;
}
.case-card:first-child { border-right: 1px solid var(--border); }
.case-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(0,0,0,0.2); transform: translateY(-2px); }
.case-card:hover .case-card-header { background: transparent; }
.case-card-header { padding: 24px 24px 20px; display: flex; flex-direction: column; justify-content: center; flex: 1; transition: background 0.3s ease; }
.case-card-image { display: none; }
.case-card-logo {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.fw-logo { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; }
.fw-logo-dot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #25C16F, #1A8FD4); }
.case-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-heading); font-weight: 600;
  color: var(--ink); line-height: 1.25;
  margin-bottom: 10px;
}
.case-card-desc { font-size: var(--fs-xs); color: var(--ink3); line-height: 1.65; margin-bottom: 16px; }
.case-card-metrics { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.case-metric {
  font-size: var(--fs-xs); color: var(--ink3);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.case-metric strong {
  display: block; font-size: var(--fs-body); font-weight: 600;
  color: var(--ink); font-family: var(--font-display);
  margin-bottom: 2px;
}
.case-metric .metric-bar {
  height: 4px; border-radius: 2px; background: var(--border);
  margin-top: 6px; overflow: hidden;
}
.case-metric .metric-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}
.case-metric .metric-bar-fill.green { background: var(--freshworks); }
.case-metric .metric-bar-fill.accent { background: var(--accent); }
.case-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--bg);
  font-size: var(--fs-xs); font-weight: 500;
  padding: 10px 18px; border-radius: var(--radius-sm);
  margin-bottom: 24px; transition: all 0.4s ease;
}
.case-card:hover .case-cta {
  background: var(--freshworks);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  color: #fff;
}
.case-card-image {
  background: var(--bg3);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 380px;
  min-height: 280px;
}
.case-card-image::-webkit-scrollbar { width: 4px; }
.case-card-image::-webkit-scrollbar-track { background: transparent; }
.case-card-image::-webkit-scrollbar-thumb { background: var(--ink3); border-radius: 2px; }
.case-card-image img { width: 100%; height: auto; object-fit: contain; object-position: top; display: block; }

/* NDA note */
.nda-note {
  margin-top: 40px; padding: 24px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg2);
  display: flex; align-items: flex-start; gap: 16px;
}
.nda-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.nda-text { font-size: var(--fs-xs); color: var(--ink2); line-height: 1.65; font-style: italic; }

/* ---- HERO COMPANIES STRIP ---- */
.hero-companies {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-companies-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 14px;
}
.hero-companies-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.hero-company-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
}
.hero-company-logo-zeta,
.hero-company-logo-soroco {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.hero-company-logo-zeta { background: linear-gradient(135deg, #5B2BF0, #9B59F0); }
.hero-company-logo-soroco { background: linear-gradient(135deg, #FF6B35, #FF8F5E); }
.hero-company-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: -0.01em;
}
.hero-company-divider {
  width: 1px;
  height: 24px;
  background: var(--border2);
  flex-shrink: 0;
}
.hero.hero-glow .hero-companies { border-top-color: rgba(255,255,255,0.2); }
.hero.hero-glow .hero-companies-label { color: rgba(255,255,255,0.5); }
.hero.hero-glow .hero-company-name { color: rgba(255,255,255,0.8); }
.hero.hero-glow .hero-company-divider { background: rgba(255,255,255,0.25); }

/* ---- DESIGN PHILOSOPHY ---- */
.philosophy-section {
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.philosophy-journey {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.philosophy-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
}
.philosophy-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  transition: var(--transition);
}
.philosophy-step:hover .philosophy-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.philosophy-step-title {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.philosophy-step-desc {
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.6;
}
.philosophy-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--freshworks));
  margin-top: 28px;
  flex-shrink: 0;
  border-radius: 1px;
  opacity: 0.5;
}

/* Contact */
.contact-section { padding: 80px 32px; border-top: 1px solid var(--border); }
.contact-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- SLIDE DECK LAYOUT ---- */
.slide-container {
  background: var(--bg);
}
.slide {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center;
  padding: 100px clamp(48px, 6vw, 120px) 64px;
  overflow-y: auto;
}
/* Alternating subtle background tints for visual rhythm */
[data-theme="dark"] .slide:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
[data-theme="dark"] .slide:nth-child(3n) {
  background: rgba(99, 102, 241, 0.02);
}
[data-theme="dark"] .slide:nth-child(5n) {
  background: rgba(52, 211, 153, 0.02);
}

/* -- SLIDE MODE (default) -- */
[data-view="slides"] .slide-container {
  position: fixed; inset: 0;
  overflow: hidden;
}
[data-view="slides"] .slides-wrap {
  position: relative; width: 100%; height: 100%;
}
[data-view="slides"] .slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.38s ease-out, transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(40px);
}
[data-view="slides"] .slide.active {
  opacity: 1; pointer-events: all;
  transform: translateX(0);
}
[data-view="slides"] .slide.prev {
  opacity: 0; pointer-events: none;
  transform: translateX(-40px);
}

/* -- SCROLL MODE -- */
[data-view="scroll"] .slide-container {
  position: relative;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
[data-view="scroll"] .slides-wrap {
  display: flex; flex-direction: column;
}
[data-view="scroll"] .slide {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  opacity: 1;
  transform: none;
  pointer-events: all;
  transition: none;
}
.slide-content { max-width: 1400px; width: 100%; }
.slide-content.slide-cinematic { max-width: 1080px; }

/* Slide nav bar */
.slide-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(240, 242, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .slide-nav { background: rgba(15,15,13,0.9); }
.slide-nav-back {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); color: var(--ink2);
  transition: var(--transition); cursor: pointer;
  background: none; border: none; font-family: var(--font-body);
}
.slide-nav-back:hover { color: var(--ink); }
.slide-title-bar { font-size: var(--fs-xs); color: var(--ink3); font-weight: 400; }
.slide-counter { font-size: var(--fs-xs); color: var(--ink2); display: flex; align-items: center; gap: 16px; }
.slide-counter-num { font-family: var(--font-display); font-size: var(--fs-body); }

/* Progress dots — hidden */
.slide-dots {
  display: none;
}

/* Arrow nav — hidden, using keyboard nav instead */
.slide-arrow { display: none; }

/* Keyboard hint — top-right, only in slide mode */
.keyboard-hint {
  position: fixed;
  top: 80px;
  right: 32px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: var(--fs-xs);
  color: var(--ink3);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.keyboard-hint:hover { opacity: 1; }
[data-view="scroll"] .keyboard-hint { display: none; }

/* View toggle button */
.view-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--ink2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  padding: 0;
}
.view-toggle:hover { background: var(--accent3); color: var(--accent); border-color: var(--accent); }
.view-toggle svg { width: 16px; height: 16px; }
.keyboard-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink2);
}

/* Progress bar */
.slide-progress {
  position: fixed; top: 64px; left: 0; right: 0;
  height: 3px; background: var(--border); z-index: 100;
}
.slide-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--freshworks));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- SLIDE CONTENT TYPES ---- */
.slide-eyebrow {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.slide-eyebrow::before { content: ''; width: 24px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 1px; }
.slide-eyebrow.center { justify-content: center; }
.slide-eyebrow.center::before { display: none; }
.slide-heading {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700; line-height: 1.1;
  color: var(--ink); margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.slide-heading em { font-style: normal; color: var(--accent); }
.slide-body { font-size: var(--fs-body); color: var(--ink2); line-height: 1.75; max-width: 780px; }
.slide-two-col {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start; margin-top: 44px;
}
.slide-two-col-wide { grid-template-columns: 1fr 1.4fr; }

/* Quote block */
.pull-quote {
  padding: 24px 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.pull-quote-text {
  font-family: var(--font-display);
  font-size: var(--fs-body); font-style: italic; font-weight: 500;
  color: var(--ink); line-height: 1.65; margin-bottom: 10px;
}
.pull-quote-text em { font-style: italic; color: var(--accent); }
.pull-quote-attr { font-size: var(--fs-xs); color: var(--ink3); font-weight: 500; }

/* Stat cards */
.stat-row { display: flex; gap: 20px; margin: 32px 0; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 140px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
[data-theme="dark"] .stat-card.blue { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); }
[data-theme="dark"] .stat-card.green { background: rgba(0, 229, 160, 0.1); border-color: rgba(0, 229, 160, 0.2); }
[data-theme="dark"] .stat-card.gold { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 700;
  line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: var(--fs-xs); color: var(--ink2); line-height: 1.4; font-weight: 400; }
.stat-card.blue .stat-num { color: var(--accent); }
.stat-card.green .stat-num { color: var(--green); }
.stat-card.gold .stat-num { color: var(--gold); }

/* Before/after */
.before-after {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 32px;
}
.ba-panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.ba-label {
  padding: 12px 18px; font-size: var(--fs-xs);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ba-label.before { background: var(--bg3); color: var(--ink2); }
.ba-label.after { background: var(--accent3); color: var(--accent2); }
[data-theme="dark"] .ba-label.before { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .ba-label.after { background: rgba(129, 140, 248, 0.15); }
.ba-image { background: var(--bg3); }
.ba-image img { width: 100%; object-fit: contain; }

/* Iteration steps */
.iter-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.iter-step {
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg2);
}
.iter-step-header { padding: 14px 18px; }
.iter-step-header.fail { background: var(--red2); border-bottom: 1px solid var(--border); }
.iter-step-header.partial { background: var(--amber2); border-bottom: 1px solid var(--border); }
.iter-step-header.success { background: var(--green2); border-bottom: 1px solid var(--border); }
.iter-version { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.iter-version.fail { color: var(--red); }
.iter-version.partial { color: var(--amber); }
.iter-version.success { color: var(--green); }
.iter-label { font-size: var(--fs-body); font-weight: 500; color: var(--ink); }
.iter-body { padding: 14px 18px; font-size: var(--fs-xs); color: var(--ink2); line-height: 1.65; }
.iter-outcome { font-style: italic; font-size: var(--fs-xs); margin-top: 8px; }
.iter-outcome.fail { color: var(--red); }
.iter-outcome.partial { color: var(--amber); }
.iter-outcome.success { color: var(--green); }
.iter-image { border-top: 1px solid var(--border); background: var(--bg3); overflow: hidden; }
.iter-image img { width: 100%; object-fit: contain; }

/* Timeline */
.timeline { list-style: none; padding: 0; }
.tl-item { display: flex; gap: 24px; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 36px; }
.tl-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 700; flex-shrink: 0;
}
.tl-dot.done { background: var(--green2); color: var(--green); }
.tl-dot.active { background: var(--accent3); color: var(--accent2); }
.tl-dot.future { background: var(--gold2); color: var(--gold); }
[data-theme="dark"] .tl-dot.done { background: rgba(0, 229, 160, 0.18); }
[data-theme="dark"] .tl-dot.active { background: rgba(99, 102, 241, 0.18); }
.tl-line { width: 2px; background: var(--border); flex: 1; margin-top: 4px; border-radius: 1px; }
.tl-content { padding-top: 6px; flex: 1; }
.tl-phase { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent2); margin-bottom: 4px; }
.tl-heading { font-size: var(--fs-body); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tl-desc { font-size: var(--fs-xs); color: var(--ink2); line-height: 1.65; }

/* Personas */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.persona-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.persona-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.6;
}
.persona-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
  border: 2px solid var(--border);
  overflow: hidden;
}
.persona-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.persona-name { font-size: var(--fs-body); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.persona-role { font-size: var(--fs-xs); color: var(--accent2); font-weight: 600; margin-bottom: 14px; letter-spacing: 0.04em; }
.persona-need { font-size: var(--fs-xs); color: var(--ink2); line-height: 1.65; }
.persona-tension {
  background: var(--accent3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px;
  margin-top: 20px; font-size: var(--fs-xs); color: var(--ink2); line-height: 1.6;
}
.persona-tension strong { color: var(--accent); }

/* Leadership story card */
.story-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.story-card-label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 16px;
}
.story-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.story-step { display: flex; gap: 16px; align-items: flex-start; }
.story-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.story-step-text { font-size: var(--fs-body); color: var(--ink2); line-height: 1.65; }
.story-step-text strong { color: var(--ink); font-weight: 600; }

/* Slide opening — full bleed hero */
.slide-hero {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
}
.slide-hero-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700; line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: -20px; display: block;
  background: linear-gradient(135deg, var(--green), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
}

/* Impact grid */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.impact-card {
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.impact-card.blue { background: var(--accent3); }
.impact-card.green { background: var(--green2); }
.impact-card.gold { background: var(--gold2); }
[data-theme="dark"] .impact-card.blue { background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.25); }
[data-theme="dark"] .impact-card.green { background: rgba(0, 229, 160, 0.12); border-color: rgba(0, 229, 160, 0.25); }
[data-theme="dark"] .impact-card.gold { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); }
.impact-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.6rem); font-weight: 700;
  line-height: 1; margin-bottom: 10px;
}
.impact-card.blue .impact-num { color: var(--accent); }
.impact-card.green .impact-num { color: var(--green); }
.impact-card.gold .impact-num { color: var(--gold); }
.impact-label { font-size: var(--fs-xs); color: var(--ink2); line-height: 1.5; font-weight: 400; }
.impact-context { font-size: var(--fs-xs); color: var(--ink3); margin-top: 6px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-ring { width: 220px; height: 220px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card:first-child { border-right: 1px solid var(--border); }
  .hero-companies-list { gap: 12px; }
  .hero-company-item { padding: 6px 12px 6px 6px; }
  .hero-companies { text-align: left; }
  .philosophy-journey { flex-direction: column; align-items: center; gap: 0; }
  .philosophy-connector { width: 2px; height: 24px; margin: 0; }
  .philosophy-step { max-width: 100%; padding: 16px 0; }
  .slide { padding: 80px 24px 48px; }
  .keyboard-hint { top: 72px; right: 16px; }
  .slide-heading { font-size: var(--fs-heading); }
  .slide-two-col { grid-template-columns: 1fr; gap: 24px; }
  .iter-steps { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .slide-arrow { display: none; }
  .container { padding: 0 20px; }
}

/* ---- HERO ENTRANCE ANIMATIONS ---- */
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-anim-d1 { animation-delay: 0.1s; }
.hero-anim-d2 { animation-delay: 0.2s; }
.hero-anim-d3 { animation-delay: 0.3s; }
.hero-anim-d4 { animation-delay: 0.42s; }
.hero-anim-d5 { animation-delay: 0.54s; }
.hero-anim-d6 { animation-delay: 0.66s; }

/* Photo subtle float + ring rotation */
.hero-photo-ring {
  animation: heroFloat 6s ease-in-out infinite, ringRotate 8s linear infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ringRotate {
  to { --ring-angle: 360deg; }
}

/* ---- WORD REVEAL ANIMATION ---- */
.hero-title .word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-title .word-reveal-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: wordReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes wordReveal {
  to { transform: translateY(0); }
}

/* ---- FILM GRAIN OVERLAY ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
[data-theme="dark"] body::before {
  opacity: 0.04;
}

/* ---- ITERATION TIMELINE (horizontal) ---- */
.iter-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.iter-timeline-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
}
.iter-timeline-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.iter-timeline-header.fail { background: var(--red2); }
.iter-timeline-header.partial { background: var(--amber2); }
.iter-timeline-header.success { background: var(--green2); }
[data-theme="dark"] .iter-timeline-header.fail { background: rgba(255, 77, 114, 0.14); }
[data-theme="dark"] .iter-timeline-header.partial { background: rgba(255, 193, 7, 0.12); }
[data-theme="dark"] .iter-timeline-header.success { background: rgba(0, 229, 160, 0.14); }
.iter-timeline-version {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.iter-timeline-version.fail { color: var(--red); }
.iter-timeline-version.partial { color: var(--amber); }
.iter-timeline-version.success { color: var(--green); }
.iter-timeline-verdict {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.iter-timeline-verdict.fail { color: var(--red); }
.iter-timeline-verdict.partial { color: var(--amber); }
.iter-timeline-verdict.success { color: var(--green); }
.iter-timeline-body {
  padding: 16px 18px;
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.65;
  flex: 1;
}
.iter-timeline-img {
  border-top: 1px solid var(--border);
  background: var(--bg3);
}
.iter-timeline-img img {
  width: 100%;
  object-fit: contain;
}

/* ---- SOLUTION GRID ---- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.solution-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.solution-card-num {
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 12px;
  line-height: 1;
}
.solution-card-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.solution-card-desc {
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.65;
}

/* ---- HORIZONTAL ROADMAP ---- */
.roadmap-h {
  display: flex;
  gap: 0;
  margin-top: 36px;
  position: relative;
}
.roadmap-h::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--gold));
  opacity: 0.3;
  z-index: 0;
  border-radius: 2px;
}
.roadmap-phase {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.roadmap-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.roadmap-dot.done { background: var(--green2); color: var(--green); }
.roadmap-dot.active { background: var(--accent3); color: var(--accent2); }
.roadmap-dot.future { background: var(--gold2); color: var(--gold); }
[data-theme="dark"] .roadmap-dot.done { background: rgba(0, 229, 160, 0.18); }
[data-theme="dark"] .roadmap-dot.active { background: rgba(99, 102, 241, 0.18); }
[data-theme="dark"] .roadmap-dot.future { background: rgba(251, 191, 36, 0.12); }
.roadmap-phase-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 6px;
}
.roadmap-phase-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.roadmap-phase-desc {
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.55;
}

/* ---- LEADERSHIP GRID ---- */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.leadership-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.leadership-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  opacity: 0.5;
}
.leadership-card-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}
.leadership-card-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.leadership-card-desc {
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.65;
}

/* ---- RESPONSIVE — NEW COMPONENTS ---- */
@media (max-width: 768px) {
  .stat-dramatic { flex-direction: column; }
  .stat-dramatic-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-dramatic-item:last-child { border-bottom: none; }
  .iter-timeline { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .roadmap-h { flex-direction: column; gap: 16px; }
  .roadmap-h::before { display: none; }
  .leadership-grid { grid-template-columns: 1fr; }
  .transform-bar { flex-direction: column; }
  .transform-bar-arrow { width: 100%; height: 32px; }
  .cinematic-num { font-size: clamp(3.5rem, 10vw, 6rem); }
}

/* ---- CINEMATIC SLIDE ---- */
.slide-cinematic {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.slide-cinematic .slide-heading {
  font-size: var(--fs-display);
  font-weight: 700;
}
/* Vertically center cinematic slides in slide mode — content centers in viewport */
[data-view="slides"] .slide-cinematic {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cinematic-num {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.cinematic-sub {
  font-size: var(--fs-body);
  color: var(--ink2);
  font-weight: 400;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}
.cinematic-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 24px;
}

/* ---- DRAMATIC STAT BLOCK ---- */
.stat-dramatic {
  display: flex;
  gap: 0;
  margin: 44px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-dramatic-item {
  flex: 1;
  padding: 36px 24px;
  text-align: center;
  background: var(--bg2);
  border-right: 1px solid var(--border);
}
.stat-dramatic-item:last-child { border-right: none; }
/* Colored backgrounds for stat items in dark mode */
[data-theme="dark"] .stat-dramatic-item.blue { background: rgba(99, 102, 241, 0.1); }
[data-theme="dark"] .stat-dramatic-item.red { background: rgba(255, 77, 114, 0.1); }
[data-theme="dark"] .stat-dramatic-item.amber { background: rgba(255, 193, 7, 0.08); }
[data-theme="dark"] .stat-dramatic-item.green { background: rgba(0, 229, 160, 0.1); }
[data-theme="dark"] .stat-dramatic-item.gold { background: rgba(251, 191, 36, 0.08); }
.stat-dramatic-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-dramatic-item.blue .stat-dramatic-num { color: var(--accent); }
.stat-dramatic-item.red .stat-dramatic-num { color: var(--red); }
.stat-dramatic-item.amber .stat-dramatic-num { color: var(--amber); }
.stat-dramatic-item.green .stat-dramatic-num { color: var(--green); }
.stat-dramatic-item.gold .stat-dramatic-num { color: var(--gold); }
.stat-dramatic-label {
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.5;
  font-weight: 400;
}

/* ---- FULL-BLEED IMAGE ---- */
.full-bleed-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.full-bleed-img img { width: 100%; display: block; }
.full-bleed-img .img-caption {
  padding: 12px 20px;
  font-size: var(--fs-xs);
  color: var(--ink2);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---- HMW BLOCK ---- */
.hmw-block {
  background: var(--accent3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
[data-theme="dark"] .hmw-block {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
}
.hmw-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 20px;
}
.hmw-text {
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  max-width: 660px;
  margin: 0 auto;
}
.hmw-text em { font-style: normal; color: var(--accent); }

/* ---- TRANSFORM BAR ---- */
.transform-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.transform-bar-from,
.transform-bar-to {
  flex: 1;
  padding: 14px 20px;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-align: center;
}
.transform-bar-from { background: var(--red2); color: var(--red); }
.transform-bar-arrow {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  font-size: var(--fs-body);
  color: var(--ink3);
  align-self: stretch;
}
.transform-bar-to { background: var(--green2); color: var(--green); }

/* ---- IMAGE PLACEHOLDER ---- */
.img-placeholder {
  background: var(--bg3);
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 28px;
  aspect-ratio: 16/9;
  text-align: center;
}
[data-theme="dark"] .img-placeholder {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
}
.img-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink3);
}
.img-placeholder-text {
  font-size: var(--fs-xs);
  color: var(--ink3);
  max-width: 280px;
  line-height: 1.5;
}

/* ---- ANNOTATION OVERLAY ---- */
.annotated-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 55vh;
}
.annotated-img img { width: 100%; display: block; object-fit: contain; }
.annotation {
  position: absolute;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}
.annotation::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
}
.annotation.green::before { background: var(--green); }
.annotation.accent::before { background: var(--accent); }

/* ---- USER JOURNEY FLOW ---- */
.journey-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 32px 0;
  overflow-x: auto;
}
.journey-step {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 20px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.journey-step-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.journey-step-desc {
  font-size: var(--fs-xs);
  color: var(--ink3);
  line-height: 1.4;
}
.journey-step.pain { border-color: var(--red); background: var(--red2); border-width: 2px; }
.journey-step.pain .journey-step-label { color: var(--red); font-weight: 700; }
.journey-arrow {
  width: 36px;
  flex-shrink: 0;
  text-align: center;
  font-size: var(--fs-body);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- AFFINITY MAP PLACEHOLDER ---- */
.affinity-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.affinity-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.affinity-col-header {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink3);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.affinity-note {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.4;
}
.affinity-note.yellow { background: var(--gold2); }
.affinity-note.blue { background: var(--accent3); }
.affinity-note.green { background: var(--green2); }
.affinity-note.pink { background: var(--red2); }

/* ---- SUS GAUGE BAR ---- */
.gauge-compare {
  display: flex;
  gap: 40px;
  margin: 36px 0;
  align-items: flex-end;
}
.gauge-item {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.gauge-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gauge-track {
  height: 40px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: #fff;
  transition: width 1s cubic-bezier(0.16,1,0.3,1);
}
.gauge-fill.red { background: linear-gradient(90deg, var(--red), #ef4444); }
.gauge-fill.green { background: linear-gradient(90deg, var(--freshworks-dark), var(--green)); }
.gauge-fill.accent { background: linear-gradient(90deg, #6366F1, var(--accent)); }
.gauge-target {
  position: absolute;
  top: -20px;
  height: calc(100% + 24px);
  width: 2px;
  background: var(--ink3);
  border-style: dashed;
}
.gauge-target-label {
  position: absolute;
  top: -18px;
  font-size: var(--fs-xs);
  color: var(--ink3);
  white-space: nowrap;
  transform: translateX(-50%);
}

/* ---- FEEDBACK FUNNEL ---- */
.feedback-funnel {
  margin: 32px 0;
}
.funnel-complaints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.funnel-complaint {
  background: var(--red2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.5;
  font-weight: 400;
}
.funnel-arrow {
  text-align: center;
  font-size: var(--fs-heading);
  color: var(--accent2);
  margin: 8px 0;
  font-weight: 600;
}
.funnel-insight {
  background: var(--green2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.funnel-insight-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.funnel-insight-text {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}

/* ---- ARCHITECTURE DIAGRAM ---- */
.arch-diagram {
  margin: 36px 0;
  text-align: center;
}
.arch-personas {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
}
.arch-persona-box {
  flex: 1;
  max-width: 220px;
  background: var(--accent3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
}
[data-theme="dark"] .arch-persona-box {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}
.arch-persona-box-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
}
.arch-persona-box-sub {
  font-size: var(--fs-xs);
  color: var(--ink3);
  margin-top: 2px;
}
.arch-connectors {
  display: flex;
  justify-content: center;
  gap: 80px;
  height: 36px;
  position: relative;
}
.arch-connector-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--green));
  border-radius: 1px;
}
.arch-engine {
  background: var(--bg2);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 40px;
  display: inline-block;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.08);
}
[data-theme="dark"] .arch-engine {
  background: rgba(52, 211, 153, 0.06);
}
.arch-engine-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--green);
}
.arch-engine-sub {
  font-size: var(--fs-xs);
  color: var(--ink2);
  margin-top: 2px;
}

/* ---- EXPLORATION GRID ---- */
.exploration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.exploration-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.exploration-card.chosen { border-color: var(--green); border-width: 2px; box-shadow: 0 0 20px rgba(52, 211, 153, 0.08); }
.exploration-card-header {
  padding: 14px 18px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.exploration-card.chosen .exploration-card-header {
  background: var(--green2);
  color: var(--green);
}
[data-theme="dark"] .exploration-card.chosen .exploration-card-header {
  background: rgba(52, 211, 153, 0.1);
}
.exploration-card-body {
  padding: 16px;
}
.exploration-wireframe {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wire-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border2);
}
.wire-bar.short { width: 40%; }
.wire-bar.medium { width: 65%; }
.wire-bar.long { width: 90%; }
.wire-block {
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--border);
}
.wire-row {
  display: flex;
  gap: 8px;
}
.wire-row > * { flex: 1; }
.exploration-card-desc {
  font-size: var(--fs-xs);
  color: var(--ink2);
  line-height: 1.45;
  margin-top: 12px;
}

/* ---- RESPONSIVE — VISUAL COMPONENTS ---- */
@media (max-width: 768px) {
  .journey-flow { flex-wrap: wrap; }
  .journey-arrow { display: none; }
  .affinity-map { grid-template-columns: repeat(2, 1fr); }
  .gauge-compare { flex-direction: column; }
  .funnel-complaints { grid-template-columns: repeat(2, 1fr); }
  .arch-personas { flex-direction: column; align-items: center; }
  .arch-connectors { display: none; }
  .exploration-grid { grid-template-columns: 1fr; }
  .img-placeholder { aspect-ratio: 4/3; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.anim-fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.anim-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.anim-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.slide.active .anim-fade-up,
.slide.active .anim-fade,
.slide.active .anim-scale,
.slide.in-view .anim-fade-up,
.slide.in-view .anim-fade,
.slide.in-view .anim-scale {
  opacity: 1; transform: none;
}
.anim-d1 { transition-delay: 0.08s; }
.anim-d2 { transition-delay: 0.16s; }
.anim-d3 { transition-delay: 0.24s; }
.anim-d4 { transition-delay: 0.32s; }
.anim-d5 { transition-delay: 0.40s; }
.anim-d6 { transition-delay: 0.48s; }
.anim-d7 { transition-delay: 0.56s; }
.anim-d8 { transition-delay: 0.64s; }

/* ---- UTILS ---- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--ink2); }
.text-small { font-size: var(--fs-xs); }
.fw-500 { font-weight: 500; }

/* ---- IMAGE MODAL ---- */
#imgModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
}
#imgModal.is-open { opacity: 1; }

#imgModalInner {
  position: relative;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  cursor: default;
  transform: scale(0.93);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
#imgModal.is-open #imgModalInner { transform: scale(1); }

#imgModalImg {
  display: block;
  width: 100%;
  max-height: calc(90vh - 52px);
  object-fit: contain;
  background: var(--bg3);
}

#imgModalCaption {
  padding: 12px 20px;
  font-size: var(--fs-xs);
  color: var(--ink2);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
#imgModalCaption:empty { display: none; }

#imgModalClose {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
  font-family: var(--font-body);
}
#imgModalClose:hover { background: rgba(255, 255, 255, 0.22); }

/* Zoom-in hint on clickable images */
.modal-img-wrap {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.modal-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}
.modal-img-wrap:hover .modal-zoom-hint { opacity: 1; }

@media (max-width: 768px) {
  #imgModal { padding: 12px; }
  #imgModalClose { top: 12px; right: 12px; }
  #imgModalImg { max-height: calc(90vh - 48px); }
}
