/* ==========================================================================
   IAN YEN PORTFOLIO — Exact Visual & Motion Clone of
   https://leomarlowe.framer.website/ (Defaulting to Dark Mode)
   Original Content & Assets: https://www.ianyen.net
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=tanker@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Caveat:wght@500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Geist+Mono:wght@400;500;600&family=Geist:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Google Sans Flex';
  src: url('assets/fonts/GoogleSansFlex-Variable.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans Mono';
  src: url('assets/fonts/GoogleSansMono-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans Mono';
  src: url('assets/fonts/GoogleSansMono-Italic-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root,
body,
body[data-theme="dark"] {
  /* Slide 324 Dark Theme with Black Background — `#000000` Pure Black Canvas, `#0E1015` Dark Surfaces, `#3186FF` Gemini Electric Blue, `#88E2AC` Fitbit Mint & Graceful `#FDA0FC` Orchid-Purple Touches */
  --bg-page: #000000;
  --bg-surface: #0E1015;
  --bg-elevated: #171A24;
  --bg-card: #0E1015;
  --text-primary: #F4F7FE;
  --text-secondary: #BCC7EB;
  --text-muted: #8E9ECF;
  --border-subtle: rgba(49, 134, 255, 0.16);
  --border-strong: rgba(49, 134, 255, 0.32);
  --accent: #3186FF;
  --accent-saffron: #88E2AC;
  --accent-blush: #E7D5F1;
  --accent-navy: #040A2F;
  --accent-blue: #3186FF;
  --accent-coral: #FDA0FC;
  --accent-lime: #C4EED0;
  --accent-soft: rgba(49, 134, 255, 0.18);
  --nav-bg: rgba(12, 14, 20, 0.88);
  --nav-hover-pill: rgba(49, 134, 255, 0.18);
  --card-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --dot-grid-color: rgba(49, 134, 255, 0.11);
  --tooltip-bg: #F4F7FE;
  --tooltip-text: #000000;

  /* Google Sans Flex Expressive Variable + Google Sans Mono Typography */
  --font-display: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Google Sans Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Named Motion Tokens (charles-ux-animation) */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);        /* entering, leaving, answering input */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* moving or resizing on screen */
  --dur-press: 150ms;                                /* press, hover, colour */
  --dur-tooltip-in: 125ms;
  --dur-tooltip-out: 90ms;
  --dur-modal-in: 220ms;
  --dur-modal-out: 160ms;
  --dur-enter: 350ms;
  --dur-move: 300ms;

  /* Legacy aliases mapped to named tokens */
  --ease-out-expo: var(--ease-out);
  --ease-slot: var(--ease-out);
  --ease-spring: var(--ease-out);
}

body[data-theme="light"] {
  /* Slide 324 Light Theme (`Fitbit` Mock) — Pure `#FFFFFF` White Page Background, `#F0F4F9` Soft Slate-Blue Cards, `#1F3B9B` Royal Blue, `#146C2E` Forest Green & `#C4EED0` Mint */
  --bg-page: #FFFFFF;
  --bg-surface: #F0F4F9;
  --bg-elevated: #C2E7FF;
  --bg-card: #F0F4F9;
  --text-primary: #1F1F1F;
  --text-secondary: #444746;
  --text-muted: #5F6368;
  --border-subtle: rgba(31, 59, 155, 0.10);
  --border-strong: rgba(31, 59, 155, 0.22);
  --accent: #1F3B9B;
  --accent-saffron: #146C2E;
  --accent-blush: #E7D5F1;
  --accent-navy: #040A2F;
  --accent-blue: #1F3B9B;
  --accent-coral: #A24EA5;
  --accent-lime: #C4EED0;
  --accent-soft: rgba(31, 59, 155, 0.12);
  --nav-bg: rgba(240, 244, 249, 0.90);
  --nav-hover-pill: rgba(31, 59, 155, 0.10);
  --card-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --dot-grid-color: rgba(31, 59, 155, 0.08);
  --tooltip-bg: #1F1F1F;
  --tooltip-text: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

/* Muted & Accent spans inside Fraunces headings (exact leomarlowe pattern) */
.text-muted {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent);
}

/* ==========================================================================
   1. FLOATING TOP PILL NAV BAR (`U(e)` in `leo_script_main.D6svKvWZ.mjs`)
      + TOP-RIGHT TIME & SUN/MOON MODE TOGGLE SWITCH
   ========================================================================== */
.leo-nav-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.leo-nav {
  pointer-events: auto;
  position: relative;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45), var(--card-inner-shadow);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.top-right-controls {
  pointer-events: auto;
  position: absolute;
  top: 0;
  right: 28px;
  height: 44px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Rocket Relaunch Icon Button (Positioned next to the word "Launch" — Shown only when the rocket is not in action) */
.rocket-relaunch-btn {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 5;
  transition:
    color 0.25s ease,
    background 0.28s ease,
    border-color 0.25s ease,
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.rocket-relaunch-btn svg {
  transform: rotate(-45deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rocket-relaunch-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.6);
}

body[data-theme="light"] .rocket-relaunch-btn {
  background: rgba(18, 17, 16, 0.07);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.14), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rocket-relaunch-btn:hover {
  background: linear-gradient(135deg, #EC4899 0%, #6366F1 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(236, 72, 153, 0.45);
  transform: translateY(calc(-50% - 1px)) scale(1.08);
}

body[data-theme="light"] .rocket-relaunch-btn:hover {
  background: linear-gradient(135deg, #EC4899 0%, #6366F1 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.38);
}

.rocket-relaunch-btn:hover svg {
  transform: rotate(-45deg) translate(1px, -1px);
}

.rocket-relaunch-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Tactile Sun & Moon Toggle Switch */
.theme-toggle-switch {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="light"] .theme-toggle-switch {
  background: rgba(18, 17, 16, 0.09);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.theme-toggle-switch:hover {
  border-color: var(--accent);
}

.theme-toggle-option {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.35s var(--ease-out-expo);
}

body[data-theme="dark"] .theme-toggle-option.is-moon {
  color: #121110;
  opacity: 1;
}
body[data-theme="dark"] .theme-toggle-option.is-sun {
  color: var(--text-secondary);
  opacity: 0.65;
}
body[data-theme="light"] .theme-toggle-option.is-sun {
  color: #ffffff;
  opacity: 1;
}
body[data-theme="light"] .theme-toggle-option.is-moon {
  color: var(--text-secondary);
  opacity: 0.65;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--text-primary);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 1;
  transform: translateX(32px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

body[data-theme="light"] .theme-toggle-thumb {
  background: #111111;
  transform: translateX(0px);
}

.leo-nav-highlight {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--nav-hover-pill);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.2s ease;
}

/* Scroll-Progress Ring Logo (`34x34px` with `r=15` terracotta SVG stroke) */
.leo-nav-logo {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.leo-nav-logo-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.leo-nav-logo-ring circle.ring-track {
  stroke: var(--border-subtle);
  stroke-width: 1.5;
  fill: none;
}

.leo-nav-logo-ring circle.ring-progress {
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 94.25;
  transition: stroke-dashoffset 0.08s linear;
}

.leo-nav-logo-inner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.04em;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease;
}

.leo-nav-logo:hover .leo-nav-logo-inner {
  transform: rotate(-8deg) scale(1.05);
}

.leo-nav-divider {
  width: 1px;
  height: 14px;
  background: var(--border-subtle);
  margin: 0 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.leo-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  cursor: pointer;
}

.leo-nav-link:hover,
.leo-nav-link.active {
  color: var(--text-primary);
}

.slot-text-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.15;
  height: 1.15em;
}

.slot-text-primary,
.slot-text-clone {
  display: block;
  transition: transform 0.45s var(--ease-slot);
}

.slot-text-clone {
  position: absolute;
  top: 125%;
  left: 0;
  color: var(--text-primary);
}

.leo-nav-link:hover .slot-text-primary,
.leo-nav-cta:hover .slot-text-primary {
  transform: translateY(-125%);
}

.leo-nav-link:hover .slot-text-clone,
.leo-nav-cta:hover .slot-text-clone {
  transform: translateY(-125%);
}

/* Live Local Time Clock (`NYC`) */
.leo-nav-clock {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  user-select: none;
}

.pulse-dot-wrap {
  position: relative;
  width: 6px;
  height: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-dot-core {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #C38EB4;
}

.pulse-dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #C38EB4;
  animation: leoPulse 2.4s ease-out infinite;
}

@keyframes leoPulse {
  0% { transform: scale(1); opacity: 0.5; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.leo-nav-clock-tz {
  opacity: 0.65;
}

/* Theme Toggle Button (Sun / Moon) */
.leo-theme-toggle {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.3s var(--ease-out-expo);
}

.leo-theme-toggle:hover {
  color: var(--text-primary);
  transform: rotate(14deg) scale(1.06);
}

.leo-theme-toggle .icon-sun { display: block; }
.leo-theme-toggle .icon-moon { display: none; }
body[data-theme="light"] .leo-theme-toggle .icon-sun { display: none; }
body[data-theme="light"] .leo-theme-toggle .icon-moon { display: block; }

/* Nav CTA Pill ("Say hi" / "Resume") — Green in Dark Theme, Purple in Light Theme */
.leo-nav-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #88E2AC;
  color: #072711;
  font-family: var(--font-sans);
  font-variation-settings: 'opsz' 24, 'wght' 660, 'ROND' 80;
  font-size: 13px;
  font-weight: 660;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-theme="light"] .leo-nav-cta {
  background: #7C3AED;
  color: #FFFFFF;
}

.leo-nav-cta .slot-text-clone {
  color: #072711;
}

.leo-nav-cta:hover {
  background: #68C489;
  color: #072711;
}

body[data-theme="light"] .leo-nav-cta .slot-text-clone {
  color: #FFFFFF;
}

body[data-theme="light"] .leo-nav-cta:hover {
  background: #6D28D9;
  color: #FFFFFF;
}

/* ==========================================================================
   2. HERO SHELL & HERO CARD (`.framer-1bpb68h` -> `.framer-3ke7q3` -> `.framer-mwp2xd`)
   ========================================================================== */
.leo-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   2A. HERO SECTION CLONED FROM https://aboutdean.framer.website/
       - Boxed 1px grid frame (`.dean-hero-outer` -> `.dean-hero-box`)
       - 4 corner 4-point star sparkle markers
       - Top border-straddling pill (`"Hi, I'm Ian"`)
       - Split Big Shoulders Display title (`PRODUCT` [3D Avatar] `DESIGNER`)
       - Custom 3D Pixar-style avatar (`122x147px`, `border-radius: 30px`)
   ========================================================================== */
.dean-hero-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.dean-hero-outer {
  width: 100%;
  max-width: 1240px;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 116px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.dean-hero-box {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 68px 24px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.dean-corner-star {
  position: absolute;
  width: 17px;
  height: 17px;
  color: var(--accent);
  pointer-events: none;
  z-index: 2;
}

.dean-corner-star.tl { top: -8.5px; left: -8.5px; }
.dean-corner-star.tr { top: -8.5px; right: -8.5px; }
.dean-corner-star.bl { bottom: -8.5px; left: -8.5px; }
.dean-corner-star.br { bottom: -8.5px; right: -8.5px; }

.dean-name-pill {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.35);
}

.dean-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 0;
  flex-wrap: wrap;
}

.dean-big-word {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(64px, 9.8vw, 125px);
  font-weight: 700;
  line-height: 0.9em;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--text-primary);
  user-select: none;
}

.dean-avatar-card {
  width: 122px;
  height: 147px;
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0px 3px 0px -2px var(--border-strong),
    0 16px 36px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.dean-avatar-card:hover {
  transform: translateY(-4px) rotate(-2deg) scale(1.03);
}

.dean-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.dean-avatar-card:hover .dean-avatar-img {
  transform: scale(1.04);
}

.dean-hero-bio {
  max-width: 600px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6em;
  color: var(--text-secondary);
  text-align: center;
}

.dean-hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding-top: 4px;
}

.dean-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease-out-expo),
    border-color 0.25s ease;
}

.dean-cta-pill:hover {
  background: var(--text-primary);
  color: var(--bg-page);
  transform: translateY(-2px);
}

.hero-viewport-wrap {
  width: 100%;
  max-width: 1600px;
  min-height: 760px;
  height: auto;
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
}

.hero-shell-outer {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 30px;
  background: transparent;
  border: none;
}

body[data-theme="light"] .hero-shell-outer {
  background: transparent;
  border: none;
}

.hero-card-inner {
  position: relative;
  flex: 1;
  border-radius: 30px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 136px 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body[data-theme="light"] .hero-card-inner {
  border-color: rgba(14, 31, 47, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.hero-process-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 32px;
  padding: 28px 0 6px;
}

/* Hero Dot Grid Removed per User Request */
.hero-dot-grid {
  display: none !important;
}

/* Very Faded Hue Shadow in the Background of the Hero Card */
.hero-radial-glow {
  display: block;
  position: absolute;
  top: 44%;
  left: 50%;
  width: 880px;
  height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(49, 134, 255, 0.14) 0%,
    rgba(136, 226, 172, 0.065) 42%,
    rgba(49, 134, 255, 0) 72%
  );
  pointer-events: none;
  z-index: 0;
}

body[data-theme="light"] .hero-radial-glow {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(31, 59, 155, 0.12) 0%,
    rgba(20, 108, 46, 0.07) 42%,
    rgba(31, 59, 155, 0) 72%
  );
}

/* Torch-Like Gradient Top Border Explosion Flash (Enlarged Explosion Area, Clean & Simple Tonal Blue Glow for Both Themes) */
.hero-top-torch-flash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28%;
  min-height: 215px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform-origin: 50% 0%;
  transition: opacity 0.25s ease;
  background:
    /* Clean single-hue tonal top border line */
    linear-gradient(
      90deg,
      transparent 4%,
      rgba(49, 134, 255, 0.35) 22%,
      rgba(168, 199, 250, 0.78) 50%,
      rgba(49, 134, 255, 0.35) 78%,
      transparent 96%
    ) top center / 100% 3px no-repeat,
    /* Soft, restrained tonal blue central glow */
    radial-gradient(
      68% 185px at 50% 0%,
      rgba(168, 199, 250, 0.42) 0%,
      rgba(49, 134, 255, 0.24) 48%,
      rgba(31, 59, 155, 0.08) 80%,
      transparent 100%
    ),
    /* Subtle ambient top wash */
    radial-gradient(
      115% 100% at 50% 0%,
      rgba(49, 134, 255, 0.22) 0%,
      rgba(31, 59, 155, 0.10) 56%,
      transparent 100%
    );
}

body[data-theme="light"] .hero-top-torch-flash {
  background:
    linear-gradient(
      90deg,
      transparent 4%,
      rgba(31, 59, 155, 0.24) 22%,
      rgba(49, 134, 255, 0.58) 50%,
      rgba(31, 59, 155, 0.24) 78%,
      transparent 96%
    ) top center / 100% 3px no-repeat,
    radial-gradient(
      68% 185px at 50% 0%,
      rgba(49, 134, 255, 0.26) 0%,
      rgba(31, 59, 155, 0.14) 50%,
      rgba(168, 199, 250, 0.06) 82%,
      transparent 100%
    ),
    radial-gradient(
      115% 100% at 50% 0%,
      rgba(31, 59, 155, 0.14) 0%,
      rgba(49, 134, 255, 0.06) 56%,
      transparent 100%
    );
}

.hero-top-torch-flash.is-flashing {
  animation: heroTopTorchPulse 5.2s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

.hero-top-torch-flash.is-outside-hero {
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
}

@keyframes heroTopTorchPulse {
  0% {
    opacity: 0;
    transform: scaleX(0.45) scaleY(0.55);
    filter: blur(2px);
  }
  5% {
    opacity: 1;
    transform: scaleX(1.02) scaleY(1.04);
    filter: blur(0px);
  }
  38% {
    opacity: 0.92;
    transform: scaleX(1.06) scaleY(1.02);
    filter: blur(0.5px);
  }
  70% {
    opacity: 0.52;
    transform: scaleX(1.1) scaleY(0.98);
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.15) scaleY(0.92);
    filter: blur(6px);
  }
}

.hero-center-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1280px;
  width: 100%;
  gap: 26px;
}

/* Interactive Circular 3D Pixar Avatar Stage (White Circle in Light Mode, Dark Circle in Dark Mode) */
.avatar-stage {
  position: relative;
  width: 172px;
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 700px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 4px;
}

.avatar-tilt-card {
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(65% 90% at 50% 0%, rgba(134, 168, 207, 0.12) 0%, rgba(28, 51, 75, 0.08) 52%, transparent 80%),
    rgba(6, 13, 26, 0.94);
  border: 1.5px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45), var(--card-inner-shadow);
  transform-style: preserve-3d;
  transition: transform 0.22s var(--ease-slot), box-shadow 0.3s ease, background 0.35s ease, border-color 0.35s ease;
}

body[data-theme="light"] .avatar-tilt-card,
body[data-theme="light"] .avatar-stage.is-transparent-gif .avatar-tilt-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 12px 32px -10px rgba(14, 31, 47, 0.12), var(--card-inner-shadow);
}

.avatar-img-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.avatar-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s var(--ease-out-expo), opacity 0.2s ease;
}

/* Circular Avatar Stage for Transparent-Background 3D Pixar Avatar & Gesture Variants */
.avatar-stage.is-transparent-gif {
  width: 176px;
  height: 176px;
  margin-bottom: 4px;
}

.avatar-stage.is-transparent-gif .avatar-tilt-card {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(65% 90% at 50% 0%, rgba(134, 168, 207, 0.12) 0%, rgba(28, 51, 75, 0.08) 52%, transparent 80%),
    rgba(6, 13, 26, 0.94);
  border: 1.5px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45), var(--card-inner-shadow);
}

.avatar-stage.is-transparent-gif .avatar-img-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}

.avatar-stage.is-transparent-gif .avatar-img-circle > img.hero-transparent-gif {
  width: 94%;
  height: 94%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(3px) scale(1.02);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

/* Full Real Photo Reveal Layer on Avatar Hover + First-Scroll 2-Second Flash */
.avatar-real-reveal {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: #21485E;
  clip-path: circle(100% at 50% 50%);
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-stage.is-revealing-photo .avatar-real-reveal,
.avatar-stage.is-teasing-photo .avatar-real-reveal {
  opacity: 1;
  clip-path: circle(100% at 50% 50%);
}

.avatar-stage.is-transparent-gif .avatar-img-circle .avatar-real-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  filter: none;
}

.avatar-stage.is-revealing-photo .avatar-img-circle .avatar-real-reveal img,
.avatar-stage.is-teasing-photo .avatar-img-circle .avatar-real-reveal img {
  transform: scale(1);
}

/* When the rocket top-border explosion happens, the celebratory avatar is slightly zoomed in (border stays identical to other avatar states) */
.avatar-stage.is-looking-at-explosion .avatar-img-circle > img.hero-transparent-gif {
  transform: translateY(4px) scale(1.07);
}

.avatar-stage.is-spinning .avatar-tilt-card {
  animation: avatar360Spin 0.72s var(--ease-out-expo);
}

@keyframes avatar360Spin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.07); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* Speech Bubble above Avatar (`leo_Li2v0N4GV.D-FfpaZK.mjs`) */
.avatar-speech-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 14px;
  transform: translateX(-50%) translateY(8px) scale(0.92);
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 8px 13px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s var(--ease-slot);
  z-index: 10;
}

.avatar-speech-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--tooltip-bg) transparent transparent transparent;
}

.avatar-stage:hover .avatar-speech-bubble,
.avatar-stage.bubble-visible .avatar-speech-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Bottom-Right Generic Face Icon Button on Avatar (Cycles Facial Expressions) */
.avatar-action-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(6, 13, 26, 0.92);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

body[data-theme="light"] .avatar-action-btn {
  background: #FFFFFF;
  border-color: rgba(14, 31, 47, 0.14);
  color: #26425A;
  box-shadow: 0 6px 16px -4px rgba(14, 31, 47, 0.16);
}

.avatar-action-btn:hover {
  transform: scale(1.08);
  background: #86A8CF;
  color: #0E1F2F;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(134, 168, 207, 0.5);
}

body[data-theme="light"] .avatar-action-btn:hover {
  background: #C38EB4;
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(195, 142, 180, 0.45);
}

/* Hero Name & Location Text (No Chip Container — Direct on Background) */
.hero-name-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #E1CBD7;
  transition: color 0.35s ease;
}

body[data-theme="light"] .hero-name-pill {
  background: transparent;
  border: none;
  color: var(--text-primary);
  box-shadow: none;
}

.hero-name-pill .pill-sep {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(225, 203, 215, 0.45);
}

body[data-theme="light"] .hero-name-pill .pill-sep {
  background: var(--border-strong);
}

.hero-name-pill .pill-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

/* Bold Expressive Display Hero Headline (`Google Sans Flex` M3 Expressive from Slides 318–323) */
.hero-fraunces-title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 120, 'wght' 900, 'wdth' 96, 'ROND' 85;
  font-size: clamp(39px, 6.4vw, 90px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-primary);
  max-width: 1280px;
  white-space: nowrap;
}

.hero-fraunces-title .hero-mobile-break {
  display: none;
}

@media (max-width: 720px) {
  .hero-name-pill {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    font-size: 13.5px;
    gap: 6px;
  }

  .hero-fraunces-title {
    white-space: normal;
    font-size: clamp(37px, 10.9vw, 56px);
    line-height: 0.96;
  }

  .hero-fraunces-title .hero-mobile-break {
    display: inline;
  }
}

.hero-fraunces-title .text-accent {
  color: #3186FF;
}

body[data-theme="light"] .hero-fraunces-title .text-accent {
  color: #1F3B9B;
}

/* Interactive On-Hover & First-Load Wave Effect on Hero Headline Words ("Designing AI products people trust.") */
.hero-hover-word {
  position: relative;
  display: inline-block;
  cursor: default;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.28s ease,
    text-shadow 0.35s ease;
  will-change: transform, color;
}

/* Inline Apple Memoji Head Replacing the "O" in "PEOPLE" */
.hero-hover-word.is-designing-word {
  position: relative;
  isolation: isolate;
}

.hero-o-avatar {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 0.86em;
  height: 0.86em;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: baseline;
  position: relative;
  top: 0.08em;
  margin: 0 0.02em;
  pointer-events: none;
  background:
    radial-gradient(65% 90% at 50% 0%, rgba(134, 168, 207, 0.14) 0%, rgba(28, 51, 75, 0.1) 52%, transparent 80%),
    rgba(6, 13, 26, 0.94);
  border: 2px solid var(--border-strong);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.45), var(--card-inner-shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, border-color 0.35s ease;
}

body[data-theme="light"] .hero-o-avatar {
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  box-shadow: 0 10px 26px -8px rgba(14, 31, 47, 0.16), var(--card-inner-shadow);
}

.hero-o-avatar-img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  display: block;
}

.hero-hover-word.is-people-word:hover .hero-o-avatar {
  transform: scale(1.1) rotate(-5deg);
}

.hero-hover-word:hover,
.hero-hover-word.is-flash {
  transform: translateY(-8px) scale(1.06) rotate(-1.5deg);
  color: #3186FF;
  text-shadow: none;
}

body[data-theme="light"] .hero-hover-word:hover,
body[data-theme="light"] .hero-hover-word.is-flash {
  color: #1F3B9B;
  text-shadow: none;
}

/* Expressive variable-font shape morph on "AI" during the Prototype -> Measure -> Launch count */
@keyframes aiWordShapeMorph {
  0% {
    font-variation-settings: 'opsz' 120, 'wght' 900, 'wdth' 96, 'slnt' 0, 'ROND' 85;
  }
  20% {
    font-variation-settings: 'opsz' 120, 'wght' 350, 'wdth' 106, 'slnt' 0, 'ROND' 0;
  }
  44% {
    font-variation-settings: 'opsz' 120, 'wght' 950, 'wdth' 108, 'slnt' 0, 'ROND' 0;
  }
  68% {
    font-variation-settings: 'opsz' 120, 'wght' 720, 'wdth' 84, 'slnt' -10, 'ROND' 100;
  }
  86% {
    font-variation-settings: 'opsz' 120, 'wght' 950, 'wdth' 102, 'slnt' -4, 'ROND' 50;
  }
  100% {
    font-variation-settings: 'opsz' 120, 'wght' 900, 'wdth' 96, 'slnt' 0, 'ROND' 85;
  }
}

.hero-hover-word.is-ai-word.is-ai-morphing {
  animation: aiWordShapeMorph 2.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Normal hover state of the word "AI", AND its frozen resting state when the rocket explosion triggers */
@keyframes aiFrozenSubtleFloat {
  0%, 100% {
    transform: translateY(-8px) scale(1.07) rotate(1.5deg);
  }
  50% {
    transform: translateY(-12px) scale(1.085) rotate(-0.8deg);
  }
}

.hero-hover-word.is-ai-word:hover,
.hero-hover-word.is-ai-word.is-flash,
.hero-hover-word.is-ai-word.is-ai-frozen {
  transform: translateY(-8px) scale(1.07) rotate(1.5deg);
  color: #C084FC;
  text-shadow: none;
}

.hero-hover-word.is-ai-word.is-ai-frozen {
  animation: aiFrozenSubtleFloat 3.4s ease-in-out infinite;
}

body[data-theme="light"] .hero-hover-word.is-ai-word:hover,
body[data-theme="light"] .hero-hover-word.is-ai-word.is-flash,
body[data-theme="light"] .hero-hover-word.is-ai-word.is-ai-frozen {
  color: #146C2E;
  text-shadow: none;
}

/* Different interactive on-hover state for the word "AI" once it is frozen */
.hero-hover-word.is-ai-word.is-ai-frozen:hover {
  animation: none;
  transform: translateY(-15px) scale(1.16) rotate(-4deg);
  color: #88E2AC;
  text-shadow: none;
}

body[data-theme="light"] .hero-hover-word.is-ai-word.is-ai-frozen:hover {
  color: #A24EA5;
  text-shadow: none;
}

.hero-hover-word:nth-of-type(3):hover,
.hero-hover-word:nth-of-type(3).is-flash {
  transform: translateY(-8px) scale(1.06) rotate(-1deg);
  color: #E7D5F1;
  text-shadow: none;
}

body[data-theme="light"] .hero-hover-word:nth-of-type(3):hover,
body[data-theme="light"] .hero-hover-word:nth-of-type(3).is-flash {
  color: #8E3B91;
}

.hero-hover-word.is-accent:hover,
.hero-hover-word.is-accent.is-flash {
  transform: translateY(-8px) scale(1.06) rotate(1.5deg);
  color: #88E2AC;
  text-shadow: none;
}

body[data-theme="light"] .hero-hover-word.is-accent:hover,
body[data-theme="light"] .hero-hover-word.is-accent.is-flash {
  color: #146C2E;
}

.hero-hover-word.is-accent:last-of-type:hover,
.hero-hover-word.is-accent:last-of-type.is-flash {
  transform: translateY(-8px) scale(1.06) rotate(-1.2deg);
  color: #3186FF;
  text-shadow: none;
}

/* Clean Subtitle Line (`.framer-xasqps` — Enlarged, NO cluttered chips underneath!) */
.hero-subtitle-line {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 680px;
  text-wrap: balance;
}

/* Breakable Hero Text Pieces (characters inside headline words & words inside subtitle) that part to let the ascending rocket pass through */
.rocket-breakable-piece {
  display: inline-block;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rocket-breakable-piece.is-parting {
  transition: transform 0.07s ease-out;
}

/* ==========================================================================
   3. HERO BOTTOM PROJECT DOCK (`Kt` & `.framer-1g93158` in leomarlowe)
      - Exact squircle colored tiles (`border-radius: 28%`, `46x46px`)
      - Centered white vector glyphs inside each squircle
      - Floating `216px` preview card above on hover with pointer triangle
   ========================================================================== */
.hero-dock-area {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 36px;
}

.hero-dock-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-project-dock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 22px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5), var(--card-inner-shadow);
}

.dock-item-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-tile {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%), var(--tile-tint, #4A6B6C);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 6px 14px -8px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  cursor: pointer;
  transform-origin: 50% 100%;
  will-change: transform;
  transition: box-shadow 0.35s var(--ease-out-expo);
}

.dock-item-wrap:hover .dock-tile,
.dock-item-wrap.is-flash .dock-tile {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 12px 22px -8px rgba(0, 0, 0, 0.6);
}

.dock-item-wrap.is-flash .dock-tile {
  transform: translateY(-6px) scale(1.12);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s var(--ease-out-expo);
}

.dock-tile svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  pointer-events: none;
}

.dock-tile.dock-tile-contact {
  background: var(--bg-surface);
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.dock-item-wrap:hover .dock-tile.dock-tile-contact {
  color: var(--text-primary);
}

.dock-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Floating Project Preview Popover (`216px` wide card from `Kt`) */
.dock-preview-card {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 20px;
  width: 216px;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 44px -16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.95);
  transform-origin: 50% 100%;
  transition: opacity 0.2s ease, transform 0.38s var(--ease-slot);
  z-index: 30;
  text-align: left;
}

.dock-preview-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--bg-page) transparent transparent transparent;
}

.dock-item-wrap:hover .dock-preview-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dock-preview-thumb {
  width: 100%;
  height: 120px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--tile-tint, #4A6B6C);
  position: relative;
}

.dock-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.8s var(--ease-out-expo);
}

.dock-item-wrap:hover .dock-preview-thumb img {
  transform: scale(1);
}

.dock-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 4px;
}

.dock-preview-mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--tile-tint, #4A6B6C);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dock-preview-mini-icon svg {
  width: 14px;
  height: 14px;
}

.dock-preview-text {
  min-width: 0;
  flex: 1;
}

.dock-preview-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-preview-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dock-preview-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Tooltip for Email Tile in Dock */
.dock-contact-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 16px;
  transform: translateX(-50%) translateY(6px) scale(0.95);
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 6px 10px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.3s var(--ease-slot);
  z-index: 30;
}

.dock-item-wrap:hover .dock-contact-tooltip,
.dock-item-wrap.is-flash .dock-contact-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Position Daily Toolbox labels below the icons so they never overlap the "Daily toolbox" heading above */
.hero-dock-area.is-below-process .dock-contact-tooltip {
  bottom: auto;
  top: 100%;
  margin-bottom: 0;
  margin-top: 12px;
  transform: translateX(-50%) translateY(-6px) scale(0.95);
}

.hero-dock-area.is-below-process .dock-item-wrap:hover .dock-contact-tooltip,
.hero-dock-area.is-below-process .dock-item-wrap.is-flash .dock-contact-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ==========================================================================
   4. SECTIONS (`.framer-1fy50qp`, `.framer-1dksjnv`, `.framer-i6feiq`)
      - Centered minimalist layout with `max-width: 1120px` and top 1px border
   ========================================================================== */
.leo-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--border-subtle);
}

.leo-section.no-top-border {
  border-top: none;
}

.leo-section-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.leo-section-header-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.leo-h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wght' 850, 'wdth' 98, 'ROND' 85;
  font-size: clamp(37px, 4.85vw, 64px);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  max-width: 880px;
  text-wrap: balance;
}

.leo-h2 .text-muted {
  font-family: var(--font-script);
  font-variation-settings: 'opsz' 96, 'wght' 700, 'wdth' 104, 'slnt' -10, 'ROND' 100;
  font-size: 1.02em;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--accent-saffron);
  font-weight: 700;
}

.leo-range-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. SELECTED WORK CARDS (`Ot` in `leo_0QwCgx6w0iq2gGzR8wZiaRIwjwU51YjwzS_DL9844vA.DxGwEzPP.mjs`)
      - Clean rounded cover (`420px` height, `24px` radius)
      - Direct device frame sitting on Thrust AI gradient background (NO frame-within-a-frame)
   ========================================================================== */
.leo-work-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 56px 24px;
  margin-top: 12px;
}

.leo-work-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.leo-work-cover {
  position: relative;
  width: 100%;
  height: 468px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border: none;
  box-shadow:
    0 20px 44px -14px rgba(0, 0, 0, 0.55),
    0 6px 18px -6px rgba(0, 0, 0, 0.32);
  transform: translateY(44px) scale(0.96);
  opacity: 0;
  transition:
    transform 1.1s var(--ease-out-expo),
    opacity 0.5s ease,
    box-shadow 0.38s ease;
}

#project-sharekit .leo-work-cover {
  background: #142B47;
  border: none;
}

#project-contacts-editor .leo-work-cover {
  background: transparent;
  border: none;
}

#project-sonicare .leo-work-cover {
  background: transparent !important;
  border: none;
}

body[data-theme="light"] .leo-work-cover {
  border: none;
  box-shadow:
    0 20px 44px -14px rgba(14, 31, 47, 0.24),
    0 6px 18px -6px rgba(14, 31, 47, 0.12);
}

.leo-work-card.is-revealed .leo-work-cover {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.leo-work-card:hover .leo-work-cover {
  box-shadow:
    0 26px 54px -14px rgba(0, 0, 0, 0.68),
    0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .leo-work-card:hover .leo-work-cover {
  box-shadow:
    0 26px 54px -14px rgba(14, 31, 47, 0.30),
    0 10px 24px -6px rgba(14, 31, 47, 0.15);
}

.leo-work-media-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  perspective: 1200px;
  transform: none !important;
}

.leo-work-card:hover .leo-work-media-inner {
  /* No shift or zoom on hover per user request */
  transform: none !important;
}

.leo-work-media-inner > img.wix-static-card-img,
.leo-work-media-inner > video.wix-card-1-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: none !important;
  transition: filter 0.38s ease !important;
}

/* Soft Tint Overlay on Cover Hover (Matched to Each Card's Cover Image Palette) */
.leo-work-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(
    --cover-tint,
    linear-gradient(180deg, rgba(24, 24, 28, 0.1) 0%, rgba(36, 38, 44, 0.3) 56%, rgba(48, 50, 58, 0.62) 100%)
  );
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-work-cover:hover::after {
  opacity: 1;
}

.leo-work-cover:hover .leo-work-media-inner > img.wix-static-card-img,
.leo-work-cover:hover .leo-work-media-inner > video.wix-card-1-video {
  filter: brightness(0.86) saturate(0.98);
}

/* Hover Chips on Case Study Cover Images (Matched to Each Card's Cover Image Palette) */
.work-card-hover-chips {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.work-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chip-bg, rgba(38, 41, 46, 0.84));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--chip-border, rgba(206, 209, 216, 0.54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px -8px rgba(10, 12, 16, 0.55);
  color: var(--chip-text, #F4F5F7);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card-chip:nth-child(1) {
  transition-delay: 0ms;
}

.work-card-chip:nth-child(2) {
  transition-delay: 45ms;
}

.work-card-chip:nth-child(3) {
  transition-delay: 90ms;
}

.leo-work-cover:hover .work-card-chip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Top-Right Monochromatic Google "G" & Philips Brand Logo on Case Study Cards */
.work-card-brand-logo {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(14, 31, 47, 0.14));
}

.work-card-brand-logo svg {
  width: 28px;
  height: 28px;
  display: block;
}

.work-card-brand-logo.is-philips img {
  width: 28px;
  height: auto;
  display: block;
}

/* 3D-Angled Studio Titanium iPhone Frame (referencing uploaded iPhone Pro studio image) */
.leo-work-media-inner > .device-frame {
  position: relative;
  height: 100%;
  max-height: 392px;
  width: auto;
  max-width: 192px;
  aspect-ratio: 416 / 896;
  margin: auto;
  padding: 8px;
  border-radius: 36px;
  background: linear-gradient(155deg, #2B3542 0%, #121820 48%, #090D12 100%);
  border: 1.5px solid rgba(225, 203, 215, 0.34);
  transform: rotateY(18deg) rotateX(6deg) rotateZ(-5deg);
  transform-style: preserve-3d;
  box-shadow:
    /* 3D Brushed Titanium Left Chassis Rail */
    -4px 2px 0 0 #626E7E,
    -8px 5px 0 0 #3E4856,
    -11px 7px 0 0 #242B35,
    -12px 8px 0 0 rgba(255, 255, 255, 0.18),
    /* Deep studio drop shadow */
    -26px 34px 58px -10px rgba(5, 10, 18, 0.78),
    0 20px 38px -10px rgba(5, 10, 18, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    inset 0 -1px 1px rgba(0, 0, 0, 0.75);
  transition: none !important;
}

.leo-work-media-inner > .device-frame:hover {
  transform: rotateY(18deg) rotateX(6deg) rotateZ(-5deg) !important;
}

/* Dynamic Island Pill on Homepage 3D Studio iPhone Frame */
.leo-work-media-inner > .device-frame::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 13px;
  border-radius: 999px;
  background: #07090C;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 4;
  pointer-events: none;
}

.leo-work-media-inner > .device-frame img,
.leo-work-media-inner > .device-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.leo-work-media-inner.is-sonicare-inner {
  padding: 16px;
}

.leo-work-media-inner > img.clean-cutout-visual {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  filter: none;
}

/* Cursor-Following Frosted Glass Badge — Removed per user request */
.leo-work-cursor-badge {
  display: none !important;
}

.leo-work-badge-text {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* Centered Title + Centered Category/Metric Below Cover (Gradient Color Sweep + Expanding Underline on Hover) */
.leo-work-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

/* Per-card palette variables matching each case study cover image */
.leo-work-card {
  --case-hue-1: #F9DADA;
  --case-hue-2: #E99E9F;
  --case-hue-3: #D06B6E;
  --case-hue-light-1: #9E3E42;
  --case-hue-light-2: #C45E62;
  --case-hue-light-3: #DF8486;
  --chip-bg: rgba(94, 34, 38, 0.84);
  --chip-border: rgba(242, 184, 186, 0.56);
  --chip-text: #FCE8E8;
  --cover-tint: linear-gradient(180deg, rgba(42, 14, 16, 0.08) 0%, rgba(78, 28, 32, 0.28) 56%, rgba(98, 36, 40, 0.62) 100%);
}

#project-ai-contacts {
  --case-hue-1: #F9DADA;
  --case-hue-2: #E99E9F;
  --case-hue-3: #D06B6E;
  --case-hue-light-1: #9E3E42;
  --case-hue-light-2: #C45E62;
  --case-hue-light-3: #DF8486;
  --chip-bg: rgba(94, 34, 38, 0.84);
  --chip-border: rgba(242, 184, 186, 0.56);
  --chip-text: #FCE8E8;
  --cover-tint: linear-gradient(180deg, rgba(42, 14, 16, 0.08) 0%, rgba(78, 28, 32, 0.28) 56%, rgba(98, 36, 40, 0.62) 100%);
}

#project-ai-contacts .leo-work-cover {
  background: #DB8D8E;
}

/* Interactive Dunzo Colour Palette & Component Variants Specimen on sharing-design-system.html (No Outer Background Container) */
.sk-dunzo-case-specimen {
  width: 100%;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #F1F5F9;
  font-family: var(--font-sans);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sk-dunzo-case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sk-dunzo-case-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #0D1E33;
  border: 1px solid rgba(49, 134, 255, 0.16);
}

.sk-dunzo-case-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #93A8C1;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background-color var(--dur-press) ease,
    color var(--dur-press) ease,
    border-color var(--dur-press) ease,
    scale var(--dur-press) var(--ease-out);
}

.sk-dunzo-case-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.sk-dunzo-case-tab.is-active {
  background: #173052;
  color: #FFFFFF;
  border-color: rgba(138, 180, 248, 0.36);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.sk-dunzo-case-tab i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.sk-dunzo-case-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8AB4F8;
  background: rgba(27, 110, 243, 0.14);
  border: 1px solid rgba(138, 180, 248, 0.24);
  padding: 6px 12px;
  border-radius: 999px;
}

.sk-dunzo-case-specimen .sk-dunzo-grid {
  gap: 16px;
  min-height: 460px;
}

.sk-dunzo-case-specimen .sk-dunzo-card {
  border-radius: 18px;
  padding: 18px 20px;
}

.sk-dunzo-case-specimen .sk-pri-bar {
  height: 52px;
  border-radius: 14px;
}

.sk-dunzo-case-specimen .sk-pri-meta strong {
  font-size: 14px;
}

.sk-dunzo-case-specimen .sk-pri-meta span {
  font-size: 12px;
}

.sk-dunzo-case-specimen .sk-dunzo-heading {
  font-size: 17px;
  margin-bottom: 6px;
}

.sk-dunzo-case-specimen .sk-dunzo-q-utility .sk-sq {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.sk-dunzo-case-specimen .sk-dunzo-q-utility .sk-sw-txt strong {
  font-size: 10.5px;
}

.sk-dunzo-case-specimen .sk-dunzo-q-utility .sk-sw-txt span {
  font-size: 9px;
}

.sk-dunzo-case-specimen .sk-sq {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.sk-dunzo-case-specimen .sk-sq.is-lg {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.sk-dunzo-case-specimen .sk-circle {
  width: 24px;
  height: 24px;
}

.sk-dunzo-case-specimen .sk-sw-txt strong {
  font-size: 11px;
}

.sk-dunzo-case-specimen .sk-sw-txt span {
  font-size: 9.5px;
}

.sk-dunzo-case-specimen .sk-split-heading {
  font-size: 16px;
  margin-bottom: 4px;
}

.sk-dunzo-case-specimen .sk-split-subcard {
  border-radius: 14px;
  padding: 14px;
}

.sk-dunzo-case-specimen .sk-swatch-item {
  gap: 8px;
}

.sk-dunzo-case-specimen .sk-swatch-item.is-dark-ink .sk-sw-txt strong {
  font-size: 11px;
}

.sk-dunzo-case-specimen .sk-swatch-item.is-dark-ink .sk-sw-txt span {
  font-size: 9.5px;
}

/* Bottom Live Component Variants Strip inside the Dunzo Specimen (No Background Container) */
.sk-dunzo-variants-bar {
  border-radius: 0;
  padding: 8px 0 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sk-dunzo-variants-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sk-dunzo-variants-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sk-variant-elem-card {
  border-radius: 0;
  padding: 4px 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-variant-elem-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sk-variant-elem-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sk-v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  transition:
    background-color var(--dur-press) ease,
    color var(--dur-press) ease,
    border-color var(--dur-press) ease,
    scale var(--dur-press) var(--ease-out);
}

@media (max-width: 768px) {
  .sk-dunzo-case-specimen .sk-dunzo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .sk-dunzo-variants-row {
    grid-template-columns: 1fr 1fr;
  }
}

.gemini-intel-cover {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(85% 65% at 50% 85%, rgba(236, 64, 122, 0.14) 0%, rgba(251, 232, 248, 0) 72%),
    linear-gradient(180deg, #FFF6FE 0%, #FBE8F8 68%, #F6DFF3 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gemini-intel-device-crop {
  position: relative;
  width: 58%;
  max-width: 274px;
  height: calc(100% - 36px);
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.52s var(--ease-out-expo), filter 0.38s ease;
}

.leo-work-cover:hover .gemini-intel-device-crop {
  transform: translateY(-4px);
  filter: brightness(0.95) saturate(1.02);
}

/* 3D Anodized Berry/Peony Pixel 11 Lower Hardware Frame */
.gemini-intel-chassis {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 4.5px 4.5px 4.5px;
  border-radius: 0 0 44px 44px;
  background: linear-gradient(
    90deg,
    #F8BBD0 0%,
    #D81B60 7%,
    #880E4F 22%,
    #C2185B 50%,
    #880E4F 78%,
    #D81B60 93%,
    #F8BBD0 100%
  );
  box-shadow:
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.58),
    inset 2px 0 2px rgba(255, 255, 255, 0.48),
    inset -2px 0 2px rgba(62, 6, 32, 0.55),
    0 20px 32px -12px rgba(74, 12, 44, 0.28),
    0 8px 14px -6px rgba(74, 12, 44, 0.18);
}

/* Subtle bottom antenna band notches on the anodized Pixel rail */
.gemini-intel-chassis::before,
.gemini-intel-chassis::after {
  content: '';
  position: absolute;
  bottom: 48px;
  width: 4.5px;
  height: 3.5px;
  background: rgba(255, 214, 232, 0.55);
  z-index: 2;
  pointer-events: none;
}

.gemini-intel-chassis::before {
  left: 0;
}

.gemini-intel-chassis::after {
  right: 0;
}

/* Deep-black obsidian glass bezel */
.gemini-intel-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 8px 8px 8px;
  border-radius: 0 0 39.5px 39.5px;
  background: #050507;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.12);
}

/* Inner rounded display showing the bottom ~65% of the Magic Cue screen */
.gemini-intel-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0 0 31.5px 31.5px;
  overflow: hidden;
  background: #131316;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.gemini-intel-screen video {
  width: 100%;
  height: 138%;
  position: absolute;
  left: 0;
  bottom: 0;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Seamless Top-Edge Gradient Dissolve ("Designed for Gemini Intelligence" mist fade) */
.gemini-intel-top-fade {
  position: absolute;
  top: -4px;
  left: -24px;
  right: -24px;
  height: 32%;
  background: linear-gradient(
    180deg,
    #FFF6FE 0%,
    #FFF6FE 22%,
    rgba(255, 246, 254, 0.92) 48%,
    rgba(253, 239, 251, 0.48) 76%,
    rgba(251, 232, 248, 0) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Sharing Design System Specimen Preview Cover (#project-sharekit) — Dunzo Colour Palette 2x2 Layout */
#project-sharekit .leo-work-cover {
  background: #081220;
}

.sharekit-dunzo-cover {
  width: 100%;
  height: 100%;
  padding: 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(85% 75% at 15% 15%, rgba(27, 110, 243, 0.16) 0%, transparent 65%),
    linear-gradient(180deg, #091525 0%, #07101C 100%);
  color: #F1F5F9;
  font-family: var(--font-sans);
  box-sizing: border-box;
  transition: filter 0.38s ease;
}

.leo-work-cover:hover .sharekit-dunzo-cover {
  filter: brightness(0.95);
}

.sk-dunzo-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 42px;
  flex-shrink: 0;
}

.sk-dunzo-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border-radius: 999px;
  background: #0D1E33;
  border: 1px solid rgba(49, 134, 255, 0.16);
}

.sk-dunzo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #93A8C1;
  white-space: nowrap;
}

.sk-dunzo-pill.is-active {
  background: #173052;
  color: #FFFFFF;
  border: 1px solid rgba(138, 180, 248, 0.34);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.sk-dunzo-pill i {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* 2x2 Dunzo Grid */
.sk-dunzo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.sk-dunzo-card {
  border-radius: 14px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  box-sizing: border-box;
}

/* Quadrant 1 (Top-Left): Primary Pill Bars */
.sk-dunzo-q-primary {
  background: #0F233C;
  border: 1px solid rgba(138, 180, 248, 0.12);
  justify-content: space-around;
  padding: 12px 14px;
}

.sk-pri-row {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 10px;
}

.sk-pri-bar {
  display: block;
  height: 34px;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sk-pri-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sk-pri-meta strong {
  font-size: 9.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.15;
  white-space: nowrap;
}

.sk-pri-meta span {
  font-size: 8px;
  font-weight: 400;
  color: #B8CBE0;
  line-height: 1.15;
  white-space: nowrap;
}

/* Quadrant 2 (Top-Right): Utility 4x4 Grid */
.sk-dunzo-q-utility {
  background: #091728;
  border: 1px solid rgba(138, 180, 248, 0.10);
  gap: 6px;
}

.sk-dunzo-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #559BF6;
  line-height: 1.1;
}

.sk-util-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.02fr 1.08fr 0.98fr;
  grid-template-rows: repeat(4, 1fr);
  column-gap: 6px;
  row-gap: 5px;
  flex: 1;
  align-items: center;
}

.sk-dunzo-q-utility .sk-sq {
  width: 12px;
  height: 12px;
  border-radius: 3.5px;
}

.sk-dunzo-q-utility .sk-sw-txt strong {
  font-size: 5.8px;
}

.sk-dunzo-q-utility .sk-sw-txt span {
  font-size: 5.2px;
}

.sk-swatch-item {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.sk-sq {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sk-sq.is-lg {
  width: 16px;
  height: 16px;
  border-radius: 4.5px;
}

.sk-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sk-sw-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.08;
}

.sk-sw-txt strong {
  font-size: 6.4px;
  font-weight: 600;
  color: #F1F5F9;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.sk-sw-txt span {
  font-size: 5.7px;
  font-weight: 400;
  color: #9BB0C7;
  white-space: nowrap;
}

/* Quadrant 3 (Bottom-Left): Vibrant Primary Outer Container with 2 Subcards (Text & Background) */
.sk-dunzo-q-split {
  background: #1B6EF3;
  padding: 8px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 7px;
}

.sk-split-subcard {
  border-radius: 10px;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}

.sk-split-subcard.is-text-sub {
  background: #8AB4F8;
}

.sk-split-subcard.is-bg-sub {
  background: #669DF6;
}

.sk-split-heading {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #081220;
  line-height: 1.1;
}

.sk-split-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.sk-swatch-item.is-dark-ink .sk-sw-txt strong {
  color: #091423;
  font-size: 6.5px;
}

.sk-swatch-item.is-dark-ink .sk-sw-txt span {
  color: #203754;
  font-size: 5.8px;
}

.sk-swatch-item.is-dark-ink .sk-sq {
  box-shadow: inset 0 0 0 1px rgba(8, 18, 32, 0.14);
}

/* Quadrant 4 (Bottom-Right): Component Circular Swatches */
.sk-dunzo-q-component {
  background: #0D2038;
  border: 1px solid rgba(138, 180, 248, 0.12);
  gap: 6px;
}

.sk-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, 1fr);
  column-gap: 6px;
  row-gap: 5px;
  flex: 1;
  align-items: center;
}

#project-sharekit {
  --case-hue-1: #E6F1FC;
  --case-hue-2: #9FC3E4;
  --case-hue-3: #6996C2;
  --case-hue-light-1: #244F7A;
  --case-hue-light-2: #4878A8;
  --case-hue-light-3: #76A5D1;
  --chip-bg: rgba(24, 54, 86, 0.84);
  --chip-border: rgba(172, 208, 242, 0.56);
  --chip-text: #EDF5FD;
  --cover-tint: linear-gradient(180deg, rgba(12, 28, 48, 0.08) 0%, rgba(22, 52, 84, 0.28) 56%, rgba(28, 64, 102, 0.62) 100%);
}

#project-contacts-editor {
  --case-hue-1: #F4F5F7;
  --case-hue-2: #C5C6CC;
  --case-hue-3: #8D9098;
  --case-hue-light-1: #34373D;
  --case-hue-light-2: #585C65;
  --case-hue-light-3: #828690;
  --chip-bg: rgba(38, 41, 46, 0.84);
  --chip-border: rgba(206, 209, 216, 0.54);
  --chip-text: #F4F5F7;
  --cover-tint: linear-gradient(180deg, rgba(18, 20, 24, 0.08) 0%, rgba(34, 37, 42, 0.28) 56%, rgba(44, 48, 54, 0.62) 100%);
}

#project-sonicare {
  --case-hue-1: #F5F8FA;
  --case-hue-2: #C2D2DE;
  --case-hue-3: #6B8EA8;
  --case-hue-light-1: #2B485E;
  --case-hue-light-2: #4B6E87;
  --case-hue-light-3: #7899B2;
  --chip-bg: rgba(36, 56, 74, 0.84);
  --chip-border: rgba(196, 214, 228, 0.56);
  --chip-text: #F4F8FB;
  --cover-tint: linear-gradient(180deg, rgba(16, 28, 38, 0.08) 0%, rgba(32, 52, 68, 0.28) 56%, rgba(42, 66, 86, 0.62) 100%);
}

.leo-work-title {
  position: relative;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'wght' 800, 'wdth' 98, 'ROND' 80;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--text-primary);
  display: inline-block;
  transition:
    color 0.32s ease,
    letter-spacing 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-work-card:hover .leo-work-title {
  letter-spacing: 0.032em;
  transform: translateY(-1px);
}

/* Hover title colors matched to each Case Study Card's cover palette */
#project-ai-contacts:hover .leo-work-title {
  color: #F06292;
}

#project-sharekit:hover .leo-work-title {
  color: #689DF6;
}

#project-contacts-editor:hover .leo-work-title {
  color: #B5C98E;
}

#project-sonicare:hover .leo-work-title {
  color: #5FA8D3;
}

body[data-theme="light"] .leo-work-title {
  color: #0C1D4B;
}

body[data-theme="light"] #project-ai-contacts:hover .leo-work-title {
  color: #C2185B;
}

body[data-theme="light"] #project-sharekit:hover .leo-work-title {
  color: #1B6EF3;
}

body[data-theme="light"] #project-contacts-editor:hover .leo-work-title {
  color: #4F6826;
}

body[data-theme="light"] #project-sonicare:hover .leo-work-title {
  color: #1B6294;
}

/* Character-by-character slot machine spans (for buttons) */
.char-slot {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.18em;
  line-height: 1.18em;
  vertical-align: top;
}

.char-slot-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out-expo);
  transition-delay: calc(var(--char-index, 0) * 5ms);
}

.leo-work-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.38s var(--ease-out-expo), gap 0.45s var(--ease-out-expo);
}

.leo-work-card:hover .leo-work-meta-line {
  color: var(--text-primary);
  gap: 10px;
}

.leo-work-metric {
  color: var(--accent);
  transition: color 0.35s ease;
}

.leo-work-card:hover .leo-work-metric {
  color: #E1CBD7;
}

body[data-theme="light"] .leo-work-card:hover .leo-work-metric {
  color: #9A5889;
}

.leo-work-meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transition: width 0.55s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background-color 0.35s ease;
}

.leo-work-card:hover .leo-work-meta-dot {
  width: 18px;
  height: 1.5px;
  background: var(--case-hue-2);
}

body[data-theme="light"] .leo-work-card:hover .leo-work-meta-dot {
  background: var(--case-hue-light-2);
}

/* ==========================================================================
   6. ABOUT SECTION (Image Stacked Above Paragraph & Balanced Proportions)
   ========================================================================== */
.about-editorial-split {
  width: 100%;
  max-width: 760px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.about-bio-copy {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  text-align: left;
}

.about-bio-copy strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Interactive Hover-Reveal Words */
.hover-reveal-word {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px dashed var(--accent);
  cursor: pointer;
  transition: color 0.2s ease;
}

.hover-reveal-word:hover {
  color: var(--accent);
}

.hover-reveal-lens {
  position: fixed;
  top: 0;
  left: 0;
  width: 210px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84) rotate(-3deg);
  transition: opacity 0.2s ease, transform 0.28s var(--ease-out-expo);
  border: 2px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: var(--bg-surface);
}

.hover-reveal-lens.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(2deg);
}

.hover-reveal-lens img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parents Photo Card — Enlarged & Stacked Above Bio Paragraph for Balanced Proportions */
.about-photo-tray,
.about-photo-card {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  text-align: center;
}

.about-photo-img {
  width: 100%;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.48);
}

.about-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.65s var(--ease-out-expo);
}

.about-photo-card:hover .about-photo-img img {
  transform: scale(1.03);
}

.about-photo-caption {
  padding: 12px 4px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.about-photo-caption strong {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

/* 3-Step Process Story Flow — Always Single Row ("Prototype ↝ Measure ↝ Launch") with Handwritten Arrows */
.leo-process-tray {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: clamp(3px, 1.2vw, 8px);
}

.hero-dock-area.is-below-process {
  margin-top: 4px;
  padding-top: 8px;
}

.hero-dock-area.is-below-process .hero-dock-label {
  color: var(--text-secondary);
}

.leo-process-card {
  position: relative;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  overflow: visible;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.35s ease;
}

.leo-process-card:nth-of-type(1) {
  --word-base-color: #E5E7EB;
  --word-base-color-light: #000000;
  --loop-color: #3186FF;
  --loop-color-light: #1F3B9B;
  --loop-glow: rgba(49, 134, 255, 0.75);
  --word-flash-delay: 0.10s;
}

.leo-process-card:nth-of-type(2) {
  --word-base-color: #E5E7EB;
  --word-base-color-light: #000000;
  --loop-color: #88E2AC;
  --loop-color-light: #146C2E;
  --loop-glow: rgba(136, 226, 172, 0.78);
  --word-flash-delay: 0.90s;
}

.leo-process-card:nth-of-type(3) {
  --word-base-color: #E5E7EB;
  --word-base-color-light: #000000;
  --loop-color: #E7D5F1;
  --loop-color-light: #8E3B91;
  --loop-glow: rgba(211, 123, 212, 0.72);
  --word-flash-delay: 1.70s;
}

/* Cute Retro Rocket Vector that grows directly out of the `.rocket-relaunch-btn` next to "Launch":
   1. Anchored at the exact horizontal & vertical center of `.rocket-relaunch-btn` (`left: calc(100% + 23px); top: 50%`)
   2. Grows upward out of the button (`scale(0.18) -> scale(1)`) as the button morphs away
   3. Thruster fire & smoke simmer underneath until 1.65s, then lifts off straight up to the top border */
.ship-rocket-stage {
  position: absolute;
  left: calc(100% + 23px);
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 60;
  overflow: visible;
}

.ship-launch-smoke {
  position: absolute;
  left: 0;
  top: -18px;
  width: 96px;
  height: 36px;
  transform: translate3d(-50%, 10px, 0) scale(0.2);
  opacity: 0;
  pointer-events: none;
  overflow: visible;
}

.ship-launch-smoke .smoke-puff {
  transform-box: fill-box;
  transform-origin: center center;
  animation: smokePuffBoil 0.24s ease-in-out infinite alternate;
}
.ship-launch-smoke .smoke-puff.p2 { animation-delay: -0.08s; animation-duration: 0.28s; }
.ship-launch-smoke .smoke-puff.p3 { animation-delay: -0.15s; animation-duration: 0.26s; }
.ship-launch-smoke .smoke-puff.p4 { animation-delay: -0.05s; animation-duration: 0.3s; }
.ship-launch-smoke .smoke-puff.p5 { animation-delay: -0.19s; animation-duration: 0.25s; }

@keyframes smokePuffBoil {
  0% {
    transform: translateY(1px) scale(0.88);
    opacity: 0.78;
  }
  100% {
    transform: translateY(-2.5px) scale(1.18);
    opacity: 1;
  }
}

#process.is-rocket-launched .ship-launch-smoke {
  animation: shipLaunchpadSmoke 4.5s linear 0s 1 forwards;
}

@keyframes shipLaunchpadSmoke {
  /* Grows out of the launch button in tandem with the rocket vector as soon as the words are seen */
  0% {
    opacity: 0;
    transform: translate3d(-50%, 10px, 0) scale(0.2);
  }
  6%, 55.6% {
    opacity: 0.92;
    transform: translate3d(-50%, 0px, 0) scale(0.9);
  }
  /* Billows outward as the rocket lifts off at 2.5s */
  65% {
    opacity: 1;
    transform: translate3d(-50%, -2px, 0) scale(1.22);
  }
  /* Dissipates after the rocket leaves the pad */
  81%, 100% {
    opacity: 0;
    transform: translate3d(-50%, -8px, 0) scale(1.5);
  }
}

.ship-rocket-launch {
  position: absolute;
  left: 0;
  top: -72px;
  width: 50px;
  height: 94px;
  transform-origin: 50% 76%;
  transform: translate3d(-50%, 24px, 0) scale(0.18);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.35));
}

#process.is-rocket-launched .ship-rocket-launch {
  animation: shipRocketLiftoff 4.5s linear 0s 1 forwards;
}

.ship-rocket-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  animation: rocketSimmerRumble 0.14s ease-in-out infinite alternate;
}

@keyframes rocketSimmerRumble {
  0% {
    transform: translate3d(-0.6px, 0.5px, 0);
  }
  100% {
    transform: translate3d(0.6px, -0.5px, 0);
  }
}

.ship-rocket-svg .rocket-flame-outer,
.ship-rocket-svg .rocket-flame-core {
  transform-origin: 40px 88px;
  animation: rocketFlameFlicker 0.11s ease-in-out infinite alternate;
}

.ship-rocket-svg .rocket-exhaust-plume {
  transform-origin: 40px 112px;
  animation: rocketPlumePulse 0.16s ease-in-out infinite alternate;
}

/* Side booster pods stay attached during simmer, then peel outward mid-flight */
#process.is-rocket-launched .ship-rocket-svg .rocket-side-booster-left {
  transform-box: fill-box;
  transform-origin: center top;
  animation: boosterDetachLeft 4.5s linear 0s 1 forwards;
}

#process.is-rocket-launched .ship-rocket-svg .rocket-side-booster-right {
  transform-box: fill-box;
  transform-origin: center top;
  animation: boosterDetachRight 4.5s linear 0s 1 forwards;
}

@keyframes boosterDetachLeft {
  0%, 76% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  89% {
    opacity: 0.85;
    transform: translate3d(-22px, 38px, 0) rotate(-24deg);
  }
  96%, 100% {
    opacity: 0;
    transform: translate3d(-36px, 76px, 0) rotate(-38deg);
  }
}

@keyframes boosterDetachRight {
  0%, 76% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  89% {
    opacity: 0.85;
    transform: translate3d(22px, 38px, 0) rotate(24deg);
  }
  96%, 100% {
    opacity: 0;
    transform: translate3d(36px, 76px, 0) rotate(38deg);
  }
}

@keyframes rocketFlameFlicker {
  0% {
    transform: scaleY(0.86) scaleX(0.92);
  }
  100% {
    transform: scaleY(1.26) scaleX(1.08);
  }
}

@keyframes rocketPlumePulse {
  0% {
    transform: translateY(-1px) scale(0.88);
    opacity: 0.72;
  }
  100% {
    transform: translateY(5px) scale(1.16);
    opacity: 0.98;
  }
}

@keyframes shipRocketLiftoff {
  /* 0% -> 5% (0s -> 0.22s): Rocket vector appears in position right as the user sees the three words */
  0% {
    opacity: 0;
    transform: translate3d(-50%, 20px, 0) scale(0.24);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  5% {
    opacity: 1;
    transform: translate3d(-50%, -3px, 0) scale(1.05);
    animation-timing-function: ease-out;
  }
  /* 7% -> 55.6% (0.31s -> 2.50s): Perched in position simmering while Prototype (0.1s) -> Measure (0.9s) -> Launch (1.7s) flash once, then launches at 2.5s */
  7%, 55.6% {
    opacity: 1;
    transform: translate3d(-50%, 0px, 0) scale(1);
    animation-timing-function: linear;
  }
  /* 2.50s -> 4.20s (55.6% -> 93.3%): Launches at 2.5s and ascends steadily to the top border */
  93.3% {
    opacity: 1;
    transform: translate3d(-50%, -920px, 0) scale(1);
  }
  /* 4.20s -> 4.50s (93.3% -> 100%): Continues past the top edge and fades out permanently */
  100% {
    opacity: 0;
    transform: translate3d(-50%, -1020px, 0) scale(0.96);
  }
}

.leo-process-card::before {
  display: none !important;
}

.leo-process-card:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.leo-process-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 36, 'wght' 750, 'wdth' 102, 'slnt' -6, 'ROND' 95;
  font-size: clamp(13px, 3.6vw, 23px);
  font-weight: 750;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: none;
  white-space: nowrap;
  color: var(--text-primary);
  margin: 0;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Each word flashes strictly ONCE when the three words enter view, starting and ending at its resting palette color so there is never a double flash */
#process.is-rocket-launched .leo-process-title {
  animation: processTitleFlashOnce 0.70s cubic-bezier(0.4, 0, 0.2, 1) var(--word-flash-delay, 0s) 1 backwards;
}

body[data-theme="light"] #process.is-rocket-launched .leo-process-title {
  animation-name: processTitleFlashOnceLight;
}

@keyframes processTitleFlashOnce {
  0%, 100% {
    color: var(--word-base-color);
    text-shadow: none;
    transform: translateY(0) scale(1);
  }
  45% {
    color: var(--loop-color);
    text-shadow: none;
    transform: translateY(-2px) scale(1.06);
  }
}

@keyframes processTitleFlashOnceLight {
  0%, 100% {
    color: var(--word-base-color-light);
    text-shadow: none;
    transform: translateY(0) scale(1);
  }
  45% {
    color: var(--loop-color-light);
    text-shadow: none;
    transform: translateY(-2px) scale(1.06);
  }
}

.leo-process-card:nth-of-type(1):hover .leo-process-title {
  color: #3186FF;
  text-shadow: none;
}

.leo-process-card:nth-of-type(2):hover .leo-process-title {
  color: #88E2AC;
  text-shadow: none;
}

.leo-process-card:nth-of-type(3):hover .leo-process-title {
  color: #D37BD4;
  text-shadow: none;
}

body[data-theme="light"] .leo-process-card:nth-of-type(1):hover .leo-process-title {
  color: #1F3B9B;
  text-shadow: none;
}

body[data-theme="light"] .leo-process-card:nth-of-type(2):hover .leo-process-title {
  color: #146C2E;
  text-shadow: none;
}

body[data-theme="light"] .leo-process-card:nth-of-type(3):hover .leo-process-title {
  color: #8E3B91;
  text-shadow: none;
}

.process-hand-arrow {
  width: clamp(24px, 7.5vw, 58px);
  height: clamp(14px, 3.2vw, 24px);
  color: var(--text-secondary);
  opacity: 0.72;
  flex-shrink: 1;
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

/* Daily Toolbox (`.framer-1354vyu` & `Yt` Tool Dock) */
.leo-toolbox-wrap {
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.leo-tool-dock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-dock-item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transform-origin: 50% 100%;
  will-change: transform;
}

.tool-dock-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-slot);
  z-index: 20;
}

.tool-dock-item:hover .tool-dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   7. EXPERIENCE SECTION (`.framer-i6feiq` -> `.framer-1gh5sm3` -> `.framer-13c0y3x`)
      Exact match to leomarlowe.framer.website Experience section!
   ========================================================================== */
.leo-exp-content {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.leo-exp-timeline {
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Personal Geographic & Career Timeline Spine (`🇺🇸 -> 🇬🇧 -> 🇭🇰`) */
.leo-exp-timeline.is-personal-timeline {
  position: relative;
  gap: 22px;
  padding-left: 38px;
}

.leo-exp-timeline.is-personal-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 10px;
  left: 14px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(223, 182, 178, 0.55) 0%,
    rgba(133, 79, 108, 0.45) 55%,
    rgba(134, 168, 207, 0.38) 100%
  );
  border-radius: 2px;
}

.exp-timeline-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.exp-timeline-group.is-origin-only {
  height: 20px;
  margin-top: -4px;
}

.exp-timeline-group.is-origin-only .exp-timeline-flag {
  top: 10px;
}

.exp-timeline-flag {
  position: absolute;
  left: -38px;
  top: 41px;
  transform: translateY(-50%);
  width: 30px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 4px var(--bg-page);
  z-index: 2;
}

.exp-timeline-flag svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.exp-timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.leo-exp-role-card {
  position: relative;
  width: 100%;
  padding: 20px 24px 20px 20px;
  border-radius: 20px;
  background-color: #121212;
  background-image:
    radial-gradient(65% 110% at 92% -10%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid transparent;
  box-shadow:
    0 14px 34px -14px rgba(0, 0, 0, 0.55),
    0 2px 6px -1px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Top-to-bottom fading 1px liquid-glass border (exact clientele.framer.website `.framer-63x8lm` spec) */
.leo-exp-role-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-mask: linear-gradient(#000 0%, rgba(0, 0, 0, 0.16) 82.8442%);
  mask: linear-gradient(#000 0%, rgba(0, 0, 0, 0.16) 82.8442%);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.35s ease;
}

/* Soft diagonal blurred light ray inside card (`clientele.framer.website` `.framer-1c33wqp`) */
.leo-exp-role-card::before {
  content: '';
  position: absolute;
  top: -110%;
  right: -8%;
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 48%, transparent 75%);
  filter: blur(48px);
  opacity: 0.45;
  transform: rotate(-18deg);
  pointer-events: none;
  transition: opacity 0.38s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-theme="light"] .leo-exp-role-card {
  background-color: rgba(255, 255, 255, 0.86);
  background-image:
    radial-gradient(65% 110% at 92% -10%, rgba(134, 168, 207, 0.18) 0%, rgba(225, 203, 215, 0.10) 48%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 244, 246, 0.88) 100%);
  box-shadow:
    0 14px 32px -14px rgba(14, 31, 47, 0.10),
    0 2px 6px -1px rgba(14, 31, 47, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .leo-exp-role-card::after {
  border-color: rgba(14, 31, 47, 0.12);
}

body[data-theme="light"] .leo-exp-role-card::before {
  background: linear-gradient(135deg, rgba(134, 168, 207, 0.28) 0%, rgba(195, 142, 180, 0.12) 48%, transparent 75%);
  opacity: 0.55;
}

.leo-exp-role-card:hover {
  transform: translateY(-3px);
  background-color: #171717;
  box-shadow:
    0 20px 42px -14px rgba(0, 0, 0, 0.68),
    0 4px 12px -2px rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .leo-exp-role-card:hover {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 20px 42px -14px rgba(14, 31, 47, 0.15),
    0 4px 12px -2px rgba(14, 31, 47, 0.06),
    inset 0 1px 0 #FFFFFF;
}

.leo-exp-role-card:hover::after {
  border-color: rgba(255, 255, 255, 0.20);
}

body[data-theme="light"] .leo-exp-role-card:hover::after {
  border-color: rgba(14, 31, 47, 0.20);
}

.leo-exp-role-card:hover::before {
  opacity: 0.78;
  transform: rotate(-14deg) scale(1.06);
}

/* 46x46px Liquid-Glass Brand Logo Squircle (`clientele.framer.website` `.framer-5v2Ux` spec) */
.leo-exp-mark,
.leo-exp-mark.is-theme-logo {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background-color: rgba(13, 13, 13, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow:
    0px 4px 10px -2px rgba(0, 0, 0, 0.24),
    0px 2px 2px -1px rgba(0, 0, 0, 0.16),
    0px 0px 0px 1px rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

body[data-theme="light"] .leo-exp-mark,
body[data-theme="light"] .leo-exp-mark.is-theme-logo {
  background-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    0px 4px 10px -2px rgba(14, 31, 47, 0.08),
    0px 2px 2px -1px rgba(14, 31, 47, 0.04),
    0px 0px 0px 1px rgba(14, 31, 47, 0.11);
  color: var(--text-primary);
}

.exp-theme-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  opacity: 0.94;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

body[data-theme="light"] .exp-theme-logo-img {
  filter: invert(1) brightness(0.08);
}

.leo-exp-role-card:hover .leo-exp-mark {
  transform: scale(1.06) rotate(-3deg);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0px 8px 18px -4px rgba(0, 0, 0, 0.4),
    0px 0px 0px 1px rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

body[data-theme="light"] .leo-exp-role-card:hover .leo-exp-mark {
  background-color: #FFFFFF;
  box-shadow:
    0px 8px 18px -4px rgba(14, 31, 47, 0.12),
    0px 0px 0px 1px rgba(14, 31, 47, 0.16);
  color: var(--text-primary);
}

.leo-exp-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.leo-exp-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.leo-exp-company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.leo-exp-company {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.leo-exp-role-card:hover .leo-exp-company {
  color: #FFFFFF;
}

body[data-theme="light"] .leo-exp-role-card:hover .leo-exp-company {
  color: #0E1F2F;
}

/* Liquid-Glass `Now` Pill Badge (`clientele.framer.website` `.framer-kkkzf6` spec) */
.leo-exp-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="light"] .leo-exp-now-badge {
  background-color: rgba(14, 31, 47, 0.04);
  border-color: rgba(14, 31, 47, 0.12);
  color: var(--text-primary);
}

.leo-exp-title {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.leo-exp-role-card:hover .leo-exp-title {
  color: rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .leo-exp-role-card:hover .leo-exp-title {
  color: rgba(14, 31, 47, 0.85);
}

/* Right Period Pill (`clientele.framer.website` liquid-glass pill) */
.leo-exp-period {
  position: relative;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

body[data-theme="light"] .leo-exp-period {
  background-color: rgba(14, 31, 47, 0.03);
  border-color: rgba(14, 31, 47, 0.10);
}

.leo-exp-role-card:hover .leo-exp-period {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

body[data-theme="light"] .leo-exp-role-card:hover .leo-exp-period {
  background-color: rgba(14, 31, 47, 0.06);
  border-color: rgba(14, 31, 47, 0.18);
  color: #0E1F2F;
}

/* ==========================================================================
   8. EXPRESSIVE ACTION & FOOTER BUTTONS (Clean Pill Hover without Layout Shift)
   ========================================================================== */
.leo-magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 52px;
  border-radius: 999px;
  background: #3186FF;
  color: #FFFFFF;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-variation-settings: 'opsz' 24, 'wght' 680, 'ROND' 80;
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 26px -8px rgba(49, 134, 255, 0.35);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.32s ease,
    border-color 0.32s ease,
    color 0.32s ease,
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-magnetic-btn:active {
  transform: translateY(0) scale(0.97);
}

body[data-theme="light"] .leo-magnetic-btn {
  background: #1F3B9B;
  color: #FFFFFF;
  box-shadow: 0 12px 26px -8px rgba(31, 59, 155, 0.38);
}

.leo-magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--btn-hover-fill, transparent);
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.32s var(--ease-slot),
    transform 0.38s var(--ease-slot);
  pointer-events: none;
}

.leo-magnetic-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Primary Button Hover Effect */
.leo-magnetic-btn:not(.is-secondary):not(.is-icon):hover {
  transform: translateY(-2px) scale(1.02);
  background: #529BFF;
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 16px 32px -8px rgba(49, 134, 255, 0.55);
}

body[data-theme="light"] .leo-magnetic-btn:not(.is-secondary):not(.is-icon):hover {
  background: #162B75;
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 16px 32px -8px rgba(31, 59, 155, 0.52);
}

.leo-magnetic-btn:not(.is-secondary):not(.is-icon):hover .leo-btn-label svg {
  transform: translateY(-1px) rotate(-6deg) scale(1.08);
}

.leo-magnetic-btn.is-secondary {
  --btn-hover-fill: rgba(49, 134, 255, 0.14);
  --btn-hover-text: #FFFFFF;
  background: #1D2138;
  color: #F3F5FC;
  border-color: rgba(49, 134, 255, 0.22);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

/* Slide 321 & 322 Expressive Multi-Tone Pill Buttons ("Email me", "Let's connect", "View resume") */
.leo-magnetic-btn.is-secondary.is-palette-blue {
  background: #3186FF;
  color: #FFFFFF;
  border-color: transparent;
  --btn-hover-fill: #529BFF;
  --btn-hover-text: #FFFFFF;
  box-shadow: 0 12px 28px -8px rgba(49, 134, 255, 0.42);
}

.leo-magnetic-btn.is-secondary.is-palette-mauve {
  background: #88E2AC;
  color: #072711;
  border-color: transparent;
  --btn-hover-fill: #C4EDD3;
  --btn-hover-text: #072711;
  box-shadow: 0 12px 28px -8px rgba(136, 226, 172, 0.38);
}

.leo-magnetic-btn.is-secondary.is-palette-blush {
  background: #22264A;
  color: #E7D5F1;
  border-color: rgba(211, 123, 212, 0.34);
  --btn-hover-fill: #D37BD4;
  --btn-hover-text: #1B071C;
  box-shadow: 0 12px 28px -8px rgba(4, 10, 47, 0.55);
}

body[data-theme="light"] .leo-magnetic-btn.is-secondary {
  background: #DCE4F2;
  color: #111420;
  border-color: rgba(31, 59, 155, 0.16);
  --btn-hover-fill: rgba(31, 59, 155, 0.12);
  --btn-hover-text: #040A2F;
  box-shadow: 0 8px 20px -8px rgba(31, 59, 155, 0.14);
}

body[data-theme="light"] .leo-magnetic-btn.is-secondary.is-palette-blue {
  background: #1F3B9B;
  color: #FFFFFF;
  border-color: transparent;
  --btn-hover-fill: #162B75;
  --btn-hover-text: #FFFFFF;
  box-shadow: 0 12px 28px -8px rgba(31, 59, 155, 0.38);
}

body[data-theme="light"] .leo-magnetic-btn.is-secondary.is-palette-mauve {
  background: #C4EDD3;
  color: #072711;
  border-color: transparent;
  --btn-hover-fill: #146C2E;
  --btn-hover-text: #FFFFFF;
  box-shadow: 0 10px 24px -8px rgba(20, 108, 46, 0.20);
}

body[data-theme="light"] .leo-magnetic-btn.is-secondary.is-palette-blush {
  background: #F3E5F6;
  color: #6B236E;
  border-color: rgba(162, 78, 165, 0.24);
  --btn-hover-fill: #E7D5F1;
  --btn-hover-text: #3A0E3D;
  box-shadow: 0 10px 24px -8px rgba(162, 78, 165, 0.16);
}

/* Keep border 100% consistent on hover (no highlighted border) while rolling slot text & tinting icon */
.leo-magnetic-btn.is-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle);
  color: var(--btn-hover-text);
  box-shadow: none;
}

.leo-magnetic-btn.is-secondary .slot-text-clone {
  color: var(--btn-hover-text);
}

.leo-magnetic-btn:hover .slot-text-primary,
.leo-magnetic-btn:hover .slot-text-clone {
  transform: translateY(-125%);
}

.leo-magnetic-btn.is-secondary:hover .leo-btn-label svg {
  color: var(--btn-hover-text);
  transform: translateY(-1px) scale(1.08);
}

.leo-magnetic-btn.is-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.leo-btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.leo-btn-label svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.leo-magnetic-btn:hover .leo-btn-arrow {
  transform: translate(1.5px, -1.5px);
}

.leo-magnetic-btn.is-icon:hover .leo-btn-label svg {
  transform: scale(1.07);
}

/* ==========================================================================
   9. FOOTER WRAP — "Let's build something good." (Pinterest Pin 2181499817012571 Palette)
      Colors: #0E1F2F, #26425A, #86A8CF, #E1CBD7, #C38EB4 (Borderless Twilight-Aurora Gradient)
   ========================================================================== */
.leo-footer-outer {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 40px 16px 16px;
}

.leo-footer-wrap {
  position: relative;
  width: 100%;
  border-radius: 28px;
  background:
    radial-gradient(115% 75% at 50% 105%, rgba(225, 203, 215, 0.44) 0%, rgba(195, 142, 180, 0.28) 38%, transparent 74%),
    radial-gradient(85% 65% at 85% 15%, rgba(134, 168, 207, 0.28) 0%, transparent 62%),
    linear-gradient(165deg, #0E1F2F 0%, #1C334B 38%, #26425A 68%, #5B7EA3 100%);
  border: none !important;
  box-shadow: 0 24px 56px -18px rgba(14, 31, 47, 0.58);
  padding: 96px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  overflow: hidden;
  color: #FFFFFF;
}

.leo-footer-invite {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.leo-footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  background: rgba(14, 31, 47, 0.62);
  border: 1px solid rgba(225, 203, 215, 0.24);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #E1CBD7;
}

.leo-footer-heading {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wght' 850, 'wdth' 98, 'ROND' 85;
  font-size: clamp(40px, 5.7vw, 70px);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.leo-footer-heading .text-accent {
  font-family: var(--font-script);
  font-variation-settings: 'opsz' 96, 'wght' 700, 'wdth' 104, 'slnt' -10, 'ROND' 100;
  text-transform: none;
  letter-spacing: -0.015em;
  font-size: 1.02em;
  color: #3186FF;
}

.leo-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* Balanced Equal-Width Primary (#E1CBD7 / #C38EB4) & Secondary (#26425A / #86A8CF) Buttons inside Footer Card */
.leo-footer-actions .leo-magnetic-btn {
  min-width: 214px;
}

.leo-footer-wrap .leo-magnetic-btn {
  background: linear-gradient(135deg, #E1CBD7 0%, #C38EB4 100%);
  color: #0E1F2F;
  border: 1px solid rgba(225, 203, 215, 0.65);
  font-weight: 600;
}

.leo-footer-wrap .leo-magnetic-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #F1E3EB 0%, #D4A1C6 100%);
  color: #0E1F2F;
  border-color: #FFFFFF;
  box-shadow: 0 12px 26px -8px rgba(195, 142, 180, 0.52);
}

.leo-footer-wrap .leo-magnetic-btn.is-secondary {
  background: rgba(38, 66, 90, 0.62);
  color: #FFFFFF;
  border: 1px solid rgba(134, 168, 207, 0.38);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.leo-footer-wrap .leo-magnetic-btn.is-secondary:hover {
  transform: translateY(-2px);
  background: rgba(38, 66, 90, 0.90);
  color: #E1CBD7;
  border-color: rgba(225, 203, 215, 0.65);
  box-shadow: 0 12px 26px -8px rgba(14, 31, 47, 0.55);
}

.leo-footer-wrap .leo-magnetic-btn.is-icon {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(225, 203, 215, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(225, 203, 215, 0.28);
}

.leo-footer-wrap .leo-magnetic-btn.is-icon:hover {
  transform: translateY(-2px);
  background: rgba(225, 203, 215, 0.26);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 20px -6px rgba(14, 31, 47, 0.4);
}

.leo-footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.leo-footer-meta-bar {
  width: 100%;
  max-width: 1040px;
  padding: 16px 0;
  border-top: 1px solid rgba(225, 203, 215, 0.20);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D2DCE8;
}

.leo-footer-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.leo-back-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 31, 47, 0.55);
  border: 1px solid rgba(225, 203, 215, 0.28);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #FFFFFF;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.leo-back-top-link:hover {
  background: #E1CBD7;
  color: #0E1F2F;
  border-color: #E1CBD7;
}

/* Giant Full-Width Tanker Wordmark (`owen-gray.framer.website` style) */
.leo-footer-wordmark {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(92px, 20vw, 250px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #E1CBD7;
  opacity: 0.18;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ==========================================================================
   10. CASE STUDY LEAF PAGES (`.case-*` classes)
   ========================================================================== */
.case-main {
  padding-top: 96px;
}

.case-hero {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.case-hero-header {
  max-width: 960px;
  margin-bottom: 36px;
}

.case-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.case-eyebrow::before {
  content: '/';
  font-weight: 700;
  color: currentColor;
  opacity: 0.72;
  background: none;
}

.case-title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 110, 'wght' 900, 'wdth' 96, 'ROND' 85;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.case-subtitle {
  font-size: clamp(17.5px, 2vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 800px;
}

/* Soft Atmospheric Case Study Hero Stage (Zero Top White Border & Distinct Compatible Gradients!) */
.case-hero-stage {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 28px 0 8px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(110% 65% at 50% 100%, rgba(225, 203, 215, 0.44) 0%, rgba(195, 142, 180, 0.24) 34%, transparent 74%),
    linear-gradient(165deg, #0E1F2F 0%, #26425A 55%, #86A8CF 100%);
  border: none;
  box-shadow: 0 24px 56px -20px rgba(8, 16, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.case-hero-stage > .device-frame {
  max-width: 205px;
  margin: auto !important;
  transform: none !important;
  transition: none !important;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.55);
}

.case-hero-stage > .device-frame:hover {
  transform: none !important;
}

.brief-video-carousel {
  margin: 24px 0 32px;
}

.brief-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.brief-carousel-active-label {
  margin: 0 !important;
  text-align: left !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.brief-carousel-active-label.is-switching {
  opacity: 0.25;
  transform: translateY(-2px);
}

.brief-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brief-carousel-dot {
  position: relative;
  width: 28px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease;
}

body[data-theme="light"] .brief-carousel-dot {
  background: rgba(14, 31, 47, 0.14);
}

.brief-carousel-dot.is-active {
  width: 44px;
}

.brief-carousel-dot .brief-dot-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-blue, #3186FF);
  transform: scaleX(0);
  transform-origin: left center;
}

.brief-carousel-dot.is-active .brief-dot-fill {
  animation: briefCarouselProgress 5s linear 1 forwards;
}

@keyframes briefCarouselProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.brief-carousel-stage {
  position: relative;
  width: 100%;
  height: 480px;
}

.brief-carousel-stage .brief-stack-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.985);
  pointer-events: none;
  z-index: 1;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.brief-carousel-stage .brief-stack-item.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.case-hero-stage.is-brief-equal-stage {
  width: 100%;
  height: 480px;
  margin: 0;
  padding: 28px;
  border: none;
  box-shadow: 0 24px 56px -20px rgba(8, 16, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Distinct Website-Palette Gradients for Each of the 3 Brief Video Containers */
.brief-stack-item:nth-child(1) .case-hero-stage.is-brief-equal-stage {
  background:
    radial-gradient(110% 70% at 82% 100%, rgba(134, 168, 207, 0.46) 0%, rgba(38, 66, 90, 0.28) 45%, transparent 78%),
    linear-gradient(145deg, #071322 0%, #1C3752 52%, #6E95C2 100%);
}

.brief-stack-item:nth-child(2) .case-hero-stage.is-brief-equal-stage {
  background:
    radial-gradient(110% 70% at 18% 100%, rgba(225, 203, 215, 0.44) 0%, rgba(195, 142, 180, 0.28) 45%, transparent 78%),
    linear-gradient(150deg, #0D122A 0%, #34294E 54%, #9E739B 100%);
}

.brief-stack-item:nth-child(3) .case-hero-stage.is-brief-equal-stage {
  background:
    radial-gradient(110% 70% at 50% 100%, rgba(225, 203, 215, 0.36) 0%, rgba(134, 168, 207, 0.32) 48%, transparent 80%),
    linear-gradient(160deg, #0C1D36 0%, #2B4564 50%, #8CA4C8 100%);
}

.case-hero-stage.is-brief-equal-stage > .device-frame {
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 640 / 1400;
  border-radius: 28px;
  margin: 0 auto !important;
}

.case-hero-stage.is-brief-equal-stage > .device-frame video {
  border-radius: 28px;
}

.case-hero-stage.is-brief-equal-stage > .desktop-window-frame {
  height: 100%;
  width: auto;
  max-width: 100%;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-hero-stage.is-brief-equal-stage > .desktop-window-frame video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.case-hero-stage > img.clean-cutout-visual {
  height: 88%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 30px 54px rgba(0, 0, 0, 0.65));
}

.case-hero-stage.is-wide-slide {
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 8px !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: block !important;
}

.case-hero-stage.is-wide-slide > img,
.case-hero-stage.is-wide-slide > video,
.case-hero-stage.is-wide-slide > img.single-border-mock,
.sk-hero-full-img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 24px;
  border: none;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.55);
  display: block;
}

.case-hero-stage.is-wide-slide.is-sharekit-hero-scaled > video.sk-hero-full-img {
  width: 80% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

.sk-hero-labeled-pair {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}

.sk-hero-labeled-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sk-hero-labeled-col .case-caption {
  margin: 0;
  text-align: center;
}

.sk-hero-labeled-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.sk-hero-labeled-col.is-desktop img {
  max-width: 440px;
}

.sk-hero-labeled-col.is-mobile img {
  max-width: 265px;
}

@media (max-width: 760px) {
  .sk-hero-labeled-pair {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Frameless ShareKit Annotated Mock (Full-width & Enlarged so labels are super readable) */
.feature-row.is-annotated-principle {
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 34px 36px;
}

.annotated-principle-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.annotated-principle-copy.is-single {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.annotated-principle-copy .case-body {
  margin-bottom: 0;
}

.annotated-principle-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sk-annotated-mock {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 12px auto 0;
  background: transparent;
  border: none;
}

.sk-annotated-mock .sk-base-layer {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.48));
}

body[data-theme="light"] .sk-annotated-mock .sk-base-layer {
  filter: drop-shadow(0 18px 36px rgba(14, 31, 47, 0.22));
}

.sk-annotated-mock .sk-annot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 0.35s ease;
}

body[data-theme="light"] .sk-annotated-mock .sk-annot-layer {
  filter: brightness(0.12);
}

/* ShareKit Governance Registry Terminal Card (Slide 87) */
.sk-governance-registry {
  background: #08090C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 28px 32px;
  margin: 24px 0 32px;
  font-family: var(--font-mono, 'Google Sans Mono', 'Geist Mono', monospace);
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.45);
}

.sk-reg-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.sk-reg-key {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 500;
}

.sk-reg-val {
  color: rgba(255, 255, 255, 0.72);
}

.sk-reg-key.is-highlight,
.sk-reg-val.is-highlight {
  color: #FFFFFF;
  font-weight: 600;
}

.sk-reg-key.is-accent,
.sk-reg-val.is-accent {
  color: #F6D860;
}

@media (max-width: 640px) {
  .sk-governance-registry {
    padding: 20px;
    font-size: 12px;
  }
  .sk-reg-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Frameless Share Icons for "Inconsistent entry points" (White in Dark Mode, Dark in Light Mode) */
.share-icons-direct {
  width: 100%;
  max-width: 130px;
  height: auto;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: filter 0.35s ease;
}

body[data-theme="light"] .share-icons-direct {
  filter: none;
  opacity: 0.9;
}

.case-meta-grid,
.case-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  margin: 32px 0 40px;
}

.case-meta-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.case-meta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.case-meta-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Single Clean Container for Figures (No Padded Frame-Within-Frame Mat!) */
.case-hero-media,
.case-figure {
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0;
  margin: 24px 0;
}

.alt-bg .case-figure,
.case-section-alt .case-figure {
  background: transparent;
}

.case-hero-media img,
.case-hero-media video,
.case-figure img,
.case-figure video {
  width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 17px;
  display: block;
  margin: 0 auto;
}

.case-section {
  width: 100%;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.alt-bg,
.case-section-alt,
.case-section-dark {
  background: var(--bg-surface);
}

.case-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-container-wide {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 84, 'wght' 850, 'wdth' 98, 'ROND' 85;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.case-h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'wght' 800, 'wdth' 98, 'ROND' 80;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.case-h3-italic {
  font-family: var(--font-script);
  font-variation-settings: 'opsz' 48, 'wght' 680, 'wdth' 102, 'slnt' -10, 'ROND' 100;
  font-weight: 680;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #3186FF;
  margin: -6px 0 22px;
}

body[data-theme="light"] .case-h3-italic {
  color: #1F3B9B;
}

.case-h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.case-body {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.case-list {
  margin: 14px 0 24px 22px;
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-list strong {
  color: var(--text-primary);
  font-weight: 500;
}

.case-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 10px;
}

.case-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.case-grid-3,
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.case-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.metrics-block {
  margin: 36px 0 12px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.metric-card,
.case-card,
.callout-box,
.principle-card {
  padding: 26px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-inner-shadow);
}

.alt-bg .metric-card,
.alt-bg .case-card,
.alt-bg .principle-card,
.case-section-alt .metric-card,
.case-section-alt .case-card,
.case-section-dark .metric-card,
.case-section-dark .case-card {
  background: var(--bg-page);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.principle-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.principle-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  margin: 28px 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.alt-bg .feature-row {
  background: var(--bg-page);
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  margin-top: 6px;
}

.hmw-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.hmw-box {
  padding: 28px;
  border-radius: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.alt-bg .hmw-box {
  background: var(--bg-page);
}

.hmw-box.revised {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--card-inner-shadow);
}

.alt-bg .hmw-box.revised {
  background: var(--bg-page);
}

.hmw-text {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.38;
  color: var(--text-primary);
  margin-top: 8px;
}

.proto-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 18px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  margin: 28px 0 20px;
}

.proto-banner-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.metric-value,
.metric-number {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 400;
  color: var(--accent);
  line-height: 0.96;
  letter-spacing: 0.015em;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.next-case-banner {
  width: 100%;
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.next-case-inner {
  padding: 44px 48px;
  border-radius: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.next-case-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.next-case-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--text-primary);
  line-height: 0.98;
}

.next-case-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.btn,
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-page);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.btn:hover,
.btn-light:hover {
  background: var(--accent);
  color: #121110;
  transform: translateY(-2px);
}

/* Scroll Reveal Utility (charles-ux-animation Entrances: 350ms ease-out, subtle rise + 2px blur) */
.framer-reveal {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(2px);
  transition:
    opacity var(--dur-enter) var(--ease-out) var(--reveal-delay, 0s),
    transform var(--dur-enter) var(--ease-out) var(--reveal-delay, 0s),
    filter var(--dur-enter) var(--ease-out) var(--reveal-delay, 0s);
}

.framer-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* ==========================================================================
   10B. ON-LOAD SMOOTH ENTRANCE MOTION (`leomarlowe.framer.website` style)
   ========================================================================== */
.load-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--load-delay, 0ms);
  will-change: opacity, transform, filter;
}

body.is-loaded .load-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ==========================================================================
   10B-2. PIXEL DROP M3 EXPRESSIVE FIRST-LOAD HERO CHOREOGRAPHY
          - Elastic spring scale-pop, variable-font flex pulse & blur-clear
            inspired by the Google Pixel Drop M3 Expressive intro animation
   ========================================================================== */
@keyframes leoAvatarAppear {
  0% {
    opacity: 0.001;
    transform: scale(0.76) rotate(-6deg);
    filter: blur(8px);
  }
  62% {
    opacity: 1;
    transform: scale(1.06) rotate(2deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
  }
}

@keyframes leoNavAppear {
  0% {
    opacity: 0.001;
    transform: translateY(-22px) scale(0.92);
    filter: blur(6px);
  }
  65% {
    opacity: 1;
    transform: translateY(3px) scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes leoFadeRise10 {
  0% {
    opacity: 0.001;
    transform: translateY(20px) scale(0.92);
    filter: blur(8px);
  }
  64% {
    opacity: 1;
    transform: translateY(-3px) scale(1.03);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes leoHeadlineWordAppear {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px) scale(0.95);
    font-variation-settings: 'opsz' 120, 'wght' 350, 'wdth' 102, 'slnt' 0, 'ROND' 0;
  }
  24% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
    font-variation-settings: 'opsz' 120, 'wght' 420, 'wdth' 100, 'slnt' 0, 'ROND' 20;
  }
  52% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
    font-variation-settings: 'opsz' 120, 'wght' 950, 'wdth' 104, 'slnt' 0, 'ROND' 0;
  }
  78% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
    font-variation-settings: 'opsz' 120, 'wght' 760, 'wdth' 88, 'slnt' -10, 'ROND' 100;
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
    font-variation-settings: 'opsz' 120, 'wght' 900, 'wdth' 96, 'slnt' 0, 'ROND' 85;
  }
}

.jd-appear-avatar,
.jd-appear-dock,
.jd-appear-nav,
.hero-name-pill.jd-appear-title,
.hero-fraunces-title.jd-appear-title,
.jd-appear-subtitle,
#process.jd-appear-subtitle {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.hero-fraunces-title .hero-hover-word {
  transform-origin: 50% 65%;
}

/* ==========================================================================
   10C. CONSISTENT HARDWARE DEVICE FRAME (`.device-frame`) & MOCK GRIDS
        - Single clean hardware bezel (NO top bar, NO hover shift, NO double frame)
   ========================================================================== */
.device-frame {
  position: relative;
  width: 100%;
  max-width: 218px;
  margin: 0 auto;
  padding: 0;
  border-radius: 24px;
  background: transparent;
  border: none;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body[data-theme="light"] .device-frame {
  background: transparent;
  border: none;
  box-shadow: 0 20px 44px -14px rgba(14, 31, 47, 0.26);
}

.device-frame img,
.device-frame video {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  display: block;
  background: transparent;
}

/* Equal-dimension phone mock for side-by-side video + static mock in "The Brief No One Could Define" */
.device-frame.is-equal-phone,
.mock-grid-4 .device-frame {
  aspect-ratio: 640 / 1400;
}

.device-frame.is-equal-phone img,
.device-frame.is-equal-phone video,
.mock-grid-4 .device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* HITL Confirmation Card Explorations Masonry (Frameless — no black container, compact 2-column cards) */
.hitl-card-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 620px;
  margin: 18px auto 38px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  align-items: stretch;
}

.hitl-card-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.hitl-card-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.hitl-card-item .case-caption {
  margin: 0;
  text-align: left;
}

.hitl-card-img {
  width: 100%;
  max-width: 295px;
  height: auto;
  display: block;
  background: transparent;
  border: none;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.38));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.hitl-card-img:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.55));
}

body[data-theme="light"] .hitl-card-img {
  filter: drop-shadow(0 16px 32px rgba(14, 31, 47, 0.16));
}

@media (max-width: 720px) {
  .hitl-card-masonry {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* Desktop Side Panel Card (for Gmail Desktop side-panel explorations — uniform height & corner radius!) */
.desktop-panel-card {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 640 / 1740;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.55);
}

.desktop-panel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Web Dialog Mock (e.g. Maps Desktop Share Dialog — natural horizontal/square web modal aspect ratio, never stretched to mobile) */
.mock-grid-4.is-unified-system {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.38fr);
  align-items: center;
}

.mock-col.is-web-dialog-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.web-dialog-card {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 20px;
  overflow: visible;
}

.web-dialog-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.36));
}

body[data-theme="light"] .web-dialog-card img {
  filter: drop-shadow(0 14px 28px rgba(14, 31, 47, 0.16));
}

@media (max-width: 780px) {
  .mock-grid-4.is-unified-system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop Window Mock (Frameless with soft drop shadow matching "Choosing the Pattern that Matches User Intent") */
.desktop-window-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 24px auto;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.55);
}

body[data-theme="light"] .desktop-window-frame {
  box-shadow: 0 20px 44px -14px rgba(14, 31, 47, 0.26);
}

.desktop-window-frame img,
.desktop-window-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

/* Frameless Mock (Zero outer frame or background box — used for Model Is Wrong & Google Maps Web Dialog) */
.frameless-mock {
  width: 100%;
  max-width: 900px;
  margin: 28px auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.frameless-mock img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
}

.frameless-mock.is-elevated-dialog img {
  border-radius: 22px;
  filter:
    drop-shadow(0 20px 44px rgba(0, 0, 0, 0.45))
    drop-shadow(0 6px 16px rgba(0, 0, 0, 0.24));
}

body[data-theme="light"] .frameless-mock.is-elevated-dialog img {
  filter:
    drop-shadow(0 20px 42px rgba(14, 31, 47, 0.22))
    drop-shadow(0 6px 16px rgba(14, 31, 47, 0.12));
}

/* Single-Border Mock (Strictly 1 border, zero nested container — used for ShareKit Design Principles slides) */
.single-border-mock {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 10px auto 0;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
}

.mock-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.mock-col .case-caption {
  margin-top: 0;
}

.mock-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 500px;
  margin: 28px auto;
  align-items: start;
}

.mock-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 740px;
  margin: 28px auto;
  align-items: start;
}

.mock-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 28px auto;
  align-items: start;
}

.mock-group-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 28px auto;
}

.mock-group-split.is-mvp-ideal-split .device-frame {
  max-width: 230px;
}

/* Clean Frameless Half-Group so `.device-frame` phones don't sit inside a second container box! */
.mock-group-half {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.alt-bg .mock-group-half {
  background: transparent;
}

.mock-group-half .case-caption {
  margin-top: 0;
}

.mock-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

/* Exact 204x171px Discover Share Icon Card (`ianyen.net` `comp-mvpdhfch`) */
.share-icon-card {
  width: 204px;
  height: 171px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .leo-section {
    padding: 88px 24px;
  }

  .leo-work-grid,
  .about-editorial-split,
  .case-grid-3,
  .metrics-row,
  .case-grid-4,
  .case-grid-2,
  .mock-group-split {
    grid-template-columns: 1fr;
  }

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

  .top-right-controls .leo-nav-clock {
    display: none;
  }

  .top-right-controls {
    padding: 4px;
    right: 14px;
  }

  .leo-footer-wordmark {
    height: 110px;
  }
}

@media (max-width: 640px) {
  .hero-viewport-wrap {
    padding: 8px;
    height: auto;
  }

  .hero-shell-outer {
    padding: 0;
    border-radius: 22px;
  }

  .hero-card-inner {
    padding: 88px 16px 28px;
    border-radius: 22px;
  }

  .leo-process-tray {
    padding-right: 28px;
    gap: 2px;
  }

  .leo-process-card {
    padding: 2px 3px;
  }

  .rocket-relaunch-btn {
    left: calc(100% + 4px);
    width: 24px;
    height: 24px;
  }

  .ship-rocket-stage {
    left: calc(100% + 16px);
  }

  .leo-work-cover {
    height: 290px;
  }

  .leo-exp-role-card {
    flex-wrap: wrap;
  }

  .leo-footer-wordmark {
    height: 68px;
  }
}

/* ==========================================================================
   CASE STUDY PASSWORD GATE (`uxian12`)
   ========================================================================== */
body.case-study-body.is-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

body.case-study-body .case-page,
body.case-study-body .leo-footer {
  transition:
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.case-study-body.is-locked .case-page,
body.case-study-body.is-locked .leo-footer {
  filter: blur(32px) saturate(0.7);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
  transform: scale(0.985);
}

.case-password-gate {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 17, 16, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--dur-modal-in) var(--ease-out),
    visibility var(--dur-modal-in) var(--ease-out);
}

body[data-theme="light"] .case-password-gate {
  background: rgba(249, 248, 246, 0.76);
}

.case-password-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-duration: var(--dur-modal-out);
}

.case-password-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 38px 34px 32px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  transform: scale(1);
  transition: transform var(--dur-modal-in) var(--ease-out);
}

body[data-theme="light"] .case-password-card {
  box-shadow:
    0 28px 70px rgba(18, 17, 16, 0.12),
    0 4px 16px rgba(18, 17, 16, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.case-password-gate.is-hidden .case-password-card {
  transform: scale(0.97);
  transition-duration: var(--dur-modal-out);
}

.case-password-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(134, 168, 207, 0.30);
}

.case-password-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.case-password-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.case-password-desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.case-password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.case-password-input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-password-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.case-password-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.case-password-input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.case-password-toggle {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.case-password-toggle:hover {
  color: var(--text-primary);
  background: rgba(128, 128, 128, 0.12);
}

.case-password-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: var(--text-primary);
  color: var(--bg-page);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.2s ease;
}

.case-password-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.case-password-submit:active {
  transform: translateY(0);
}

.case-password-help {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: -2px 0 4px;
}

.case-password-help a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.case-password-help a:hover {
  opacity: 0.8;
}

.case-password-error {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #ef4444;
  min-height: 18px;
  margin-top: 2px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.case-password-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.case-password-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-password-back:hover {
  color: var(--text-primary);
}

@keyframes caseGateShake {
  0%, 100% { transform: translateX(0); }
  16% { transform: translateX(-10px); }
  33% { transform: translateX(10px); }
  50% { transform: translateX(-6px); }
  66% { transform: translateX(6px); }
  83% { transform: translateX(-3px); }
}

.case-password-card.is-shaking {
  animation: caseGateShake 360ms var(--ease-out);
}

/* ==========================================================================
   GOOGLE CONTACTS CASE STUDY — SLIDE 92 MINIMAL AURORA ENERGY HERO STAGE
   ========================================================================== */
.case-hero-stage.is-aurora-ecosystem {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 24px;
  padding: 12px 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-theme="light"] .case-hero-stage.is-aurora-ecosystem {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.aurora-ecosystem-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  height: auto;
  display: block;
}

/* Flowing Aurora Stream Dash Animation */
.aurora-energy-stream {
  stroke-dasharray: 44 180;
  animation: auroraStreamFlow 3.8s linear infinite;
}

.aurora-energy-stream.is-s2 { animation-duration: 3.4s; animation-delay: -0.7s; }
.aurora-energy-stream.is-s3 { animation-duration: 4.0s; animation-delay: -1.5s; }
.aurora-energy-stream.is-s4 { animation-duration: 3.6s; animation-delay: -0.5s; }
.aurora-energy-stream.is-s5 { animation-duration: 3.5s; animation-delay: -1.2s; }
.aurora-energy-stream.is-s6 { animation-duration: 3.9s; animation-delay: -2.0s; }

@keyframes auroraStreamFlow {
  from {
    stroke-dashoffset: 224;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.aurora-core-pulse {
  transform-origin: 500px 210px;
  animation: auroraCoreBreathe 4.8s ease-in-out infinite alternate;
}

@keyframes auroraCoreBreathe {
  0% { transform: scale(0.94); opacity: 0.75; }
  100% { transform: scale(1.06); opacity: 1; }
}

.aurora-app-node {
  animation: auroraNodeFloat 5.2s ease-in-out infinite alternate;
}

.aurora-app-node.is-float-2 { animation-delay: -0.9s; }
.aurora-app-node.is-float-3 { animation-delay: -1.8s; }
.aurora-app-node.is-float-4 { animation-delay: -0.5s; }
.aurora-app-node.is-float-5 { animation-delay: -1.4s; }
.aurora-app-node.is-float-6 { animation-delay: -2.3s; }

@keyframes auroraNodeFloat {
  0% { transform: translate(var(--tx, 0), var(--ty, 0)) translateY(-3px); }
  100% { transform: translate(var(--tx, 0), var(--ty, 0)) translateY(3px); }
}

.aurora-app-node.is-float-1 { --tx: 210px; --ty: 100px; }
.aurora-app-node.is-float-2 { --tx: 155px; --ty: 210px; }
.aurora-app-node.is-float-3 { --tx: 210px; --ty: 320px; }
.aurora-app-node.is-float-4 { --tx: 790px; --ty: 100px; }
.aurora-app-node.is-float-5 { --tx: 845px; --ty: 210px; }
.aurora-app-node.is-float-6 { --tx: 790px; --ty: 320px; }

/* ==========================================================================
   CONTACTS EDITOR CASE STUDY — SLIDE 146 BEFORE & AFTER HERO STAGE
   ========================================================================== */
.case-hero-stage.is-editor-before-after {
  height: auto;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.editor-ba-card {
  position: relative;
  border-radius: 24px;
  padding: 28px 24px 32px;
  background:
    radial-gradient(110% 65% at 50% 100%, rgba(225, 203, 215, 0.24) 0%, rgba(195, 142, 180, 0.14) 36%, transparent 74%),
    linear-gradient(160deg, #0D1B2A 0%, #1C324A 56%, #416182 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 48px -18px rgba(8, 16, 26, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.editor-ba-card.is-after {
  background:
    radial-gradient(110% 70% at 50% 100%, rgba(196, 181, 253, 0.35) 0%, rgba(244, 180, 212, 0.24) 40%, transparent 76%),
    linear-gradient(155deg, #EEF4FF 0%, #E5ECFF 52%, #F6E7F5 100%);
  border: 1px solid rgba(138, 180, 248, 0.32);
  box-shadow: 0 22px 48px -18px rgba(15, 23, 42, 0.22);
}

body[data-theme="light"] .editor-ba-card {
  background:
    radial-gradient(110% 65% at 50% 100%, rgba(225, 203, 215, 0.24) 0%, rgba(195, 142, 180, 0.14) 36%, transparent 74%),
    linear-gradient(160deg, #0D1B2A 0%, #1C324A 56%, #416182 100%);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 20px 44px -16px rgba(15, 23, 42, 0.22);
}

body[data-theme="light"] .editor-ba-card.is-after {
  background:
    radial-gradient(110% 70% at 50% 100%, rgba(196, 181, 253, 0.38) 0%, rgba(244, 180, 212, 0.26) 40%, transparent 76%),
    linear-gradient(155deg, #EAF2FF 0%, #E2EAFF 52%, #F5E4F3 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 44px -16px rgba(15, 23, 42, 0.12);
}

.editor-ba-label {
  align-self: flex-start;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 14px;
  line-height: 1.1;
}

.editor-ba-card.is-after .editor-ba-label,
body[data-theme="light"] .editor-ba-card.is-after .editor-ba-label {
  color: #0F172A;
}

body[data-theme="light"] .editor-ba-card:not(.is-after) .editor-ba-label {
  color: rgba(255, 255, 255, 0.94);
}

.editor-ba-card .device-frame.is-ba-phone {
  width: 100%;
  max-width: 215px;
  aspect-ratio: 1 / 2;
  margin: 0 auto !important;
  transform: none !important;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.45);
}

.editor-ba-card.is-after .device-frame.is-ba-phone {
  box-shadow: 0 20px 42px -14px rgba(15, 23, 42, 0.28);
}

.editor-ba-card .device-frame.is-ba-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .case-hero-stage.is-editor-before-after {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FINAL PRODUCT STAGES — DISTINCT GRADIENT CONTAINERS (ANDROID, DESKTOP, WEAR)
   ========================================================================== */
.final-product-stage {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin: 24px 0;
}

.final-product-stage.is-android {
  padding: 36px 32px 44px;
  background:
    radial-gradient(90% 80% at 82% 18%, rgba(244, 194, 224, 0.45) 0%, transparent 65%),
    linear-gradient(135deg, #DCEBFF 0%, #E8E4FF 52%, #F5E3F2 100%) !important;
}

.final-product-stage.is-android .mock-grid-2 {
  margin: 0 auto;
  max-width: 500px;
}

.final-product-stage.is-android .case-caption {
  color: #334155;
  font-weight: 600;
}

.final-product-stage.is-android .case-caption.is-after-caption {
  color: #1A73E8;
}

.final-product-stage.is-android .device-frame {
  box-shadow: 0 20px 42px -14px rgba(15, 23, 42, 0.26);
}

.final-product-stage.is-desktop {
  background:
    radial-gradient(85% 75% at 18% 82%, rgba(165, 216, 255, 0.42) 0%, transparent 65%),
    linear-gradient(135deg, #E8EEFF 0%, #DCE9FF 50%, #D4F1FA 100%) !important;
}

.final-product-stage.is-wear {
  background:
    radial-gradient(85% 75% at 80% 80%, rgba(199, 210, 254, 0.42) 0%, transparent 65%),
    linear-gradient(135deg, #DFF4EC 0%, #DCEFF8 52%, #E7E9FF 100%) !important;
}

@media (max-width: 640px) {
  .final-product-stage.is-android {
    padding: 24px 16px 30px;
  }
}

/* ==========================================================================
   NATIVE VALIDATION TIMELINE ("From Conflicting Priorities" — Slide 204)
   Sits directly on the website background with zero white box container
   ========================================================================== */
.validation-timeline-native {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 36px 0 8px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  align-items: stretch;
}

.vt-col {
  display: grid;
  grid-template-rows: 220px 64px 160px;
  align-items: center;
  justify-items: center;
}

.vt-top-slot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0;
}

.vt-top-slot.is-media-top {
  padding-bottom: 14px;
}

.vt-bottom-slot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}

.vt-pill {
  width: 100%;
  height: 62px;
  border-radius: 999px;
  background: #4B85EA;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  box-shadow: 0 10px 24px -10px rgba(75, 133, 234, 0.45);
}

.vt-pill.is-soft {
  background: #CBDDFB;
  color: #1E293B;
  box-shadow: 0 10px 24px -10px rgba(148, 163, 184, 0.28);
}

.vt-stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
}

.vt-stem .vt-line {
  width: 2px;
  height: 52px;
  background: var(--text-secondary);
  opacity: 0.65;
}

.vt-stem .vt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  background: transparent;
  flex-shrink: 0;
}

.vt-note {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
  text-align: left;
}

.vt-top-slot.is-callout-top .vt-note {
  margin-bottom: 10px;
}

.vt-bottom-slot.is-callout-bottom .vt-note {
  margin-top: 10px;
}

.vt-note strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.vt-subnote {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-secondary);
}

.vt-apps-img {
  width: 78px;
  height: auto;
  display: block;
  object-fit: contain;
}

.vt-rocket-gif {
  width: 122px;
  height: 122px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.38);
}

@media (max-width: 860px) {
  .validation-timeline-native {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .vt-col {
    grid-template-rows: auto auto auto;
    gap: 10px;
  }

  .vt-stem .vt-line {
    height: 28px;
  }
}

/* ==========================================================================
   "LET'S BUILD SOMETHING GOOD." MENU-STYLED CARD & MINIMAL SINGLE-LINE FOOTER
   Uses the exact frosted-glass pill surface & border styling of `.leo-nav`
   ========================================================================== */
.leo-fade-card {
  position: relative;
  width: 100%;
  border-radius: 28px;
  background: var(--nav-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45), var(--card-inner-shadow);
  padding: 64px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body[data-theme="light"] .leo-fade-card {
  background: var(--nav-bg);
  border-color: var(--border-subtle);
  box-shadow: 0 12px 32px -10px rgba(14, 31, 47, 0.10), var(--card-inner-shadow);
}

.leo-fade-card .leo-footer-heading {
  color: var(--text-primary);
}

.leo-fade-card .leo-footer-heading .text-accent {
  color: #3186FF;
}

body[data-theme="light"] .leo-fade-card .leo-footer-heading .text-accent {
  color: #1F3B9B;
}

.clientele-footer {
  width: 100%;
  padding: 28px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SYSTEMATIC TYPOGRAPHIC COLOR & BOLD HIERARCHY (M3 EXPRESSIVE SLIDES 318–323)
   ========================================================================== */
.leo-section-label,
.case-eyebrow,
.next-case-eyebrow,
.proto-banner-label,
.case-password-kicker,
.feature-num,
.principle-num {
  color: #88E2AC;
}

body[data-theme="light"] .leo-section-label,
body[data-theme="light"] .case-eyebrow,
body[data-theme="light"] .next-case-eyebrow,
body[data-theme="light"] .proto-banner-label,
body[data-theme="light"] .case-password-kicker,
body[data-theme="light"] .feature-num,
body[data-theme="light"] .principle-num {
  color: #146C2E;
}

.case-eyebrow::before {
  background: none;
  color: #88E2AC;
}

body[data-theme="light"] .case-eyebrow::before {
  background: none;
  color: #146C2E;
}

.metric-value,
.metric-number,
.leo-work-metric,
.leo-range-label,
.case-meta-label,
.case-caption.is-accent,
.leo-exp-period {
  color: #3186FF;
}

body[data-theme="light"] .metric-value,
body[data-theme="light"] .metric-number,
body[data-theme="light"] .leo-work-metric,
body[data-theme="light"] .leo-range-label,
body[data-theme="light"] .case-meta-label,
body[data-theme="light"] .case-caption.is-accent,
body[data-theme="light"] .leo-exp-period {
  color: #1F3B9B;
}

.leo-work-metric,
.leo-exp-period {
  font-weight: 600;
}

.leo-work-card:hover .leo-work-metric {
  color: #88E2AC;
}

body[data-theme="light"] .leo-work-card:hover .leo-work-metric {
  color: #146C2E;
}

.leo-work-meta-dot {
  background: #3186FF;
}

body[data-theme="light"] .leo-work-meta-dot {
  background: #1F3B9B;
}

/* Hero Name Pill — consistent bolding and location highlight across Dark and Light themes */
.hero-name-pill > span:first-of-type {
  color: var(--text-primary);
  font-weight: 600;
}

body[data-theme="light"] .hero-name-pill > span:first-of-type {
  color: #040A2F;
}

.hero-name-pill .pill-loc {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Consistent Inline Highlight System in Subtitle & Bio Across BOTH Dark and Light Themes */
.hero-subtitle-line .is-sub-navy,
.about-bio-copy .bio-highlight.is-navy {
  color: var(--text-primary);
  font-weight: 600;
}

body[data-theme="light"] .hero-subtitle-line .is-sub-navy,
body[data-theme="light"] .about-bio-copy .bio-highlight.is-navy {
  color: #1F3B9B;
}

.hero-subtitle-line .is-sub-blue,
.hero-subtitle-line .is-sub-mauve,
.about-bio-copy .bio-highlight.is-blue,
.about-bio-copy .bio-highlight.is-mauve {
  color: #3186FF;
  font-weight: 600;
}

body[data-theme="light"] .hero-subtitle-line .is-sub-blue,
body[data-theme="light"] .hero-subtitle-line .is-sub-mauve,
body[data-theme="light"] .about-bio-copy .bio-highlight.is-blue,
body[data-theme="light"] .about-bio-copy .bio-highlight.is-mauve {
  color: #1F3B9B;
}

/* Process Flow ("Prototype -> Measure -> Launch"): Very light grey in Dark Theme, Black in Light Theme */
.leo-process-card:nth-of-type(1) .leo-process-title,
.leo-process-card:nth-of-type(2) .leo-process-title,
.leo-process-card:nth-of-type(3) .leo-process-title {
  color: #E5E7EB;
}

body[data-theme="light"] .leo-process-card:nth-of-type(1) .leo-process-title,
body[data-theme="light"] .leo-process-card:nth-of-type(2) .leo-process-title,
body[data-theme="light"] .leo-process-card:nth-of-type(3) .leo-process-title {
  color: #000000;
}

.process-hand-arrow {
  color: #3186FF;
}

body[data-theme="light"] .process-hand-arrow {
  color: #1F3B9B;
}

/* Subheadings, Experience Company, Photo Caption & Case Study Strong/Em Emphasis Across BOTH Themes */
.about-photo-caption strong,
.case-body strong,
.case-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.leo-exp-company,
.case-meta-value,
.case-h4,
.principle-title {
  color: var(--text-primary);
}

body[data-theme="light"] .about-photo-caption strong,
body[data-theme="light"] .case-body strong,
body[data-theme="light"] .case-list strong,
body[data-theme="light"] .leo-exp-company,
body[data-theme="light"] .case-meta-value,
body[data-theme="light"] .case-h4,
body[data-theme="light"] .principle-title {
  color: #0C1D4B;
}

.case-body em u {
  color: #C38EB4;
  text-decoration-color: #C38EB4;
  font-style: normal;
  font-weight: 600;
}

.leo-exp-now-badge,
.feature-tag {
  background-color: rgba(195, 142, 180, 0.14);
  border-color: rgba(195, 142, 180, 0.34);
  color: #E1CBD7;
}

body[data-theme="light"] .leo-exp-now-badge,
body[data-theme="light"] .feature-tag {
  background-color: rgba(225, 203, 215, 0.55);
  border-color: rgba(195, 142, 180, 0.45);
  color: #0C1D4B;
}

.clientele-footer-credits {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-secondary);
}

.clientele-footer-credits a {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.clientele-footer-credits a:hover {
  opacity: 0.78;
}

.clientele-footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--text-secondary);
  opacity: 0.35;
}

/* ==========================================================================
   CASE STUDY VISUAL REFINEMENTS:
   1. Expectation vs. Reality Mocks Shadow (Light & Dark Mode)
   2. "From Conflicting Priorities" Shared Validation Plan Grid (`google-contacts.html`)
   3. AI-Built Prototypes Header (`ai-in-contacts.html`)
   4. "We Had a Solution" Native Transparent Diagram (`ai-in-contacts.html`)
   ========================================================================== */

/* 1. Expectation vs. Reality Mocks Elevation Shadow */
.frameless-mock.is-expectation-reality {
  padding: 12px 6px 24px;
  overflow: visible;
}

.frameless-mock.is-expectation-reality img {
  filter:
    drop-shadow(0 24px 48px rgba(0, 0, 0, 0.52))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

body[data-theme="light"] .frameless-mock.is-expectation-reality img {
  filter:
    drop-shadow(0 22px 42px rgba(12, 29, 75, 0.18))
    drop-shadow(0 8px 20px rgba(12, 29, 75, 0.12))
    drop-shadow(0 1px 3px rgba(12, 29, 75, 0.16));
}

/* 2. "From Conflicting Priorities" Shared Validation Plan Grid */
.validation-plan-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 12px;
}

.validation-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

body[data-theme="light"] .validation-step-card {
  background: #FFFFFF;
  border-color: rgba(14, 31, 47, 0.11);
  box-shadow:
    0 12px 30px rgba(14, 31, 47, 0.06),
    0 2px 6px rgba(14, 31, 47, 0.04);
}

.validation-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 168, 207, 0.42);
}

.validation-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.validation-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #C38EB4;
}

.validation-step-title {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

body[data-theme="light"] .validation-step-title {
  color: #0C1D4B;
}

.validation-step-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .validation-plan-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .validation-plan-flow {
    grid-template-columns: 1fr;
  }
}

/* 3. Prototypes I Built Chip Header (`ai-in-contacts.html`) */
.ai-prototypes-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px auto 4px;
  text-align: center;
}

/* 4. Interactive Prototype Preview Carousel (`index.html` `#prototypes`) */
.proto-showcase-divider {
  width: 100%;
  margin-top: 48px;
  padding-top: 84px;
  scroll-margin-top: 96px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.proto-showcase-divider .leo-h2 .text-muted.is-blue {
  color: #86A8CF;
}

.proto-carousel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proto-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 2px 12px;
  cursor: grab;
}

.proto-carousel-viewport.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.proto-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.proto-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
}

/* Google Store "Help this brilliant has to be Google Pixel" Frameless Carousel Card Style */
.proto-carousel-card {
  width: 440px;
  flex: 0 0 440px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--text-primary);
  user-select: none;
  -webkit-user-drag: none;
}

.proto-carousel-card:hover {
  transform: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body[data-theme="light"] .proto-carousel-card:hover {
  box-shadow: none;
}

/* Top Rounded Media Container (.lXKJdc in Google Store template_card_slider) */
.proto-carousel-stage {
  position: relative;
  height: 364px;
  border-radius: 22px;
  background:
    radial-gradient(75% 65% at 50% 45%, rgba(134, 168, 207, 0.14) 0%, transparent 72%),
    var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  overflow: hidden;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.34s var(--ease-out-expo);
}

body[data-theme="light"] .proto-carousel-stage {
  background:
    radial-gradient(75% 65% at 50% 45%, rgba(255, 255, 255, 0.85) 0%, transparent 75%),
    #F3F5F8;
  border-color: rgba(14, 31, 47, 0.08);
}

.proto-carousel-card:hover .proto-carousel-stage {
  border-color: var(--border-strong);
  box-shadow: 0 20px 42px -20px rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .proto-carousel-card:hover .proto-carousel-stage {
  box-shadow: 0 18px 36px -18px rgba(14, 31, 47, 0.14);
}

/* Bottom-Right Circular Action Button inside Media Stage (matching Google Store .m45old icon_button) */
.proto-stage-action-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  transition: transform 0.26s var(--ease-out-expo), background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

body[data-theme="light"] .proto-stage-action-btn {
  background: #FFFFFF;
  border-color: rgba(14, 31, 47, 0.1);
  color: #1F2937;
  box-shadow: 0 6px 16px rgba(14, 31, 47, 0.12);
}

.proto-carousel-card:hover .proto-stage-action-btn {
  transform: scale(1.08);
  background: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
}

/* Studio Hardware Device Frames (Phone & Desktop — Matching Case Study Previews 1:1) */
.proto-device-phone {
  position: relative;
  height: 100%;
  aspect-ratio: 454 / 932;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.26));
  transition: transform 0.42s var(--ease-out-expo), filter 0.42s var(--ease-out-expo);
}

.proto-device-phone::before {
  display: none;
}

.proto-device-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/mocks/studio_phone_frame.png?v=134") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 4;
}

.proto-device-desktop {
  position: relative;
  width: 96%;
  aspect-ratio: 1251 / 764;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.26));
  transition: transform 0.42s var(--ease-out-expo), filter 0.42s var(--ease-out-expo);
}

.proto-device-desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/mocks/studio_desktop_frame.png?v=134") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 4;
}

body[data-theme="light"] .proto-device-phone,
body[data-theme="light"] .proto-device-desktop {
  filter:
    drop-shadow(0 16px 28px rgba(14, 31, 47, 0.24))
    drop-shadow(0 5px 12px rgba(14, 31, 47, 0.14));
}

.proto-device-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.proto-device-phone .proto-device-bezel,
.proto-device-desktop .proto-device-bezel {
  border-radius: 0;
}

.proto-device-screen {
  position: absolute;
  overflow: hidden;
  background: #0B0C0E;
  z-index: 1;
}

.proto-device-phone .proto-device-screen {
  left: 3.30%;
  top: 1.61%;
  width: 92.73%;
  height: 96.78%;
  border-radius: 11.2% / 5.3%;
}

.proto-device-desktop .proto-device-screen {
  left: 9.75%;
  top: 3.53%;
  width: 80.50%;
  height: 82.98%;
  border-radius: 1.6% 1.6% 0 0 / 2.5% 2.5% 0 0;
  background: #FFFFFF;
}

.proto-device-desktop .proto-device-screen video {
  object-fit: contain;
  background: #FFFFFF;
}

.proto-device-phone .proto-device-screen::after {
  display: none;
}

.proto-carousel-card:hover .proto-device-phone,
.proto-carousel-card:hover .proto-device-desktop {
  transform: scale(1.045);
}

.proto-carousel-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Frameless Generator Preview Stage (Card 03: Splitti Theme Generator — zoomed out so top elements are never cut off) */
.proto-carousel-stage.is-generator-stage {
  padding: 20px 18px;
}

.proto-generator-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 6px;
  box-shadow:
    0 14px 32px -8px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.42s var(--ease-out-expo), box-shadow 0.42s var(--ease-out-expo);
}

body[data-theme="light"] .proto-generator-canvas {
  box-shadow:
    0 14px 30px -8px rgba(14, 31, 47, 0.16),
    0 0 0 1px rgba(14, 31, 47, 0.08);
}

.proto-carousel-card:hover .proto-generator-canvas {
  transform: scale(1.03);
}

.proto-generator-canvas video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #FFFFFF;
  transform: scale(0.94);
  transform-origin: center center;
}

/* Sonicare Case Study Shipped Product Showcase Grid */
.sonicare-shipped-stage {
  margin-top: 28px;
  padding: 28px 26px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .sonicare-shipped-stage {
  background: #F4F7FA;
  border-color: rgba(14, 31, 47, 0.08);
}

.sonicare-shipped-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.sonicare-shipped-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5FA8D3;
}

body[data-theme="light"] .sonicare-shipped-badge {
  color: #1B6294;
}

.sonicare-shipped-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.sonicare-shipped-grid.is-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.sonicare-phone-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sonicare-phone-item .proto-device-phone {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.sonicare-phone-item .proto-device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sonicare-phone-caption {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 960px) {
  .sonicare-shipped-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sonicare-shipped-grid.is-four {
    grid-template-columns: 1fr;
  }
}

/* Editorial Copy Block Outside & Below Media Container (.Ihndud in Google Store template_card_slider) */
.proto-carousel-body {
  margin-top: 20px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.proto-carousel-eyebrow-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proto-carousel-eyebrow {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

.proto-carousel-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  transition: color 0.24s ease;
}

.proto-carousel-card:hover .proto-carousel-title {
  color: #86A8CF;
}

.proto-exp-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.proto-carousel-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 420px;
}

.proto-carousel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.proto-carousel-chip {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.proto-carousel-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.proto-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proto-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border-strong);
  cursor: pointer;
  transition: width 0.28s var(--ease-out-expo), background 0.25s ease;
}

.proto-carousel-dot.is-active {
  width: 26px;
  background: #86A8CF;
}

.proto-carousel-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proto-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.proto-carousel-btn:hover:not(:disabled) {
  background: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.proto-carousel-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

@media (max-width: 640px) {
  .proto-carousel-card {
    width: min(85vw, 360px);
    flex: 0 0 min(85vw, 360px);
  }
  .proto-carousel-stage {
    height: 230px;
  }
}

/* ==========================================================================
   SINGLE INTERACTIVE PROTOTYPE DIRECTORY PORTAL CARD (`.proto-directory-portal`)
   - Replaces the multi-card carousel with one cohesive interactive showcase
   - Combines 5 custom squircle prototype icons, live tags, magnetic CTA,
     and an animated 3-device live preview fan that spreads on hover
   ========================================================================== */
.proto-directory-portal {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 360px;
  border-radius: 28px;
  background: var(--nav-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45), var(--card-inner-shadow);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

body[data-theme="light"] .proto-directory-portal {
  background: var(--nav-bg);
  border-color: var(--border-subtle);
  box-shadow: 0 12px 32px -10px rgba(14, 31, 47, 0.10), var(--card-inner-shadow);
}

.proto-directory-portal:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 168, 207, 0.45);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.52), var(--card-inner-shadow);
}

body[data-theme="light"] .proto-directory-portal:hover {
  border-color: rgba(134, 168, 207, 0.65);
  box-shadow: 0 20px 44px -16px rgba(14, 31, 47, 0.16), var(--card-inner-shadow);
}

.proto-portal-glow {
  display: none;
}

.proto-portal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 44px 36px 44px 44px;
}

.proto-portal-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.proto-portal-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes protoIconBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.proto-portal-icon-tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tile-tint, #4A6B6C);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 14px -4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: protoIconBob 3.4s ease-in-out infinite;
  animation-delay: calc(var(--icon-i, 0) * 0.22s);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.proto-portal-icon-tile svg {
  width: 17px;
  height: 17px;
}

.proto-directory-portal:hover .proto-portal-icon-tile {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.08) rotate(calc((var(--icon-i, 0) - 2) * 3deg));
}

.proto-portal-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 2px 0 0;
  transition: color 0.28s ease;
}

.proto-directory-portal:hover .proto-portal-title {
  color: #86A8CF;
}

.proto-portal-desc {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 490px;
  margin: 0;
}

.proto-portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.proto-portal-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

body[data-theme="light"] .proto-portal-tag {
  background: #FFFFFF;
  border-color: rgba(14, 31, 47, 0.08);
}

.proto-directory-portal:hover .proto-portal-tag {
  border-color: rgba(134, 168, 207, 0.35);
  color: var(--text-primary);
}

.proto-portal-cta-row {
  margin-top: 8px;
}

.proto-portal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #3186FF;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-variation-settings: 'opsz' 24, 'wght' 680, 'ROND' 80;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px -8px rgba(49, 134, 255, 0.42);
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease;
}

body[data-theme="light"] .proto-portal-cta {
  background: #0A55D1;
  color: #FFFFFF;
  box-shadow: 0 12px 28px -8px rgba(10, 85, 209, 0.38);
}

.proto-directory-portal:hover .proto-portal-cta {
  background: #68C489;
  color: #072711;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(104, 196, 137, 0.48);
}

body[data-theme="light"] .proto-directory-portal:hover .proto-portal-cta {
  background: #146C2E;
  color: #FFFFFF;
  box-shadow: 0 16px 32px -8px rgba(20, 108, 46, 0.45);
}

.proto-directory-portal:hover .proto-portal-cta .slot-text-primary {
  transform: translateY(-125%);
}

.proto-directory-portal:hover .proto-portal-cta .slot-text-clone {
  transform: translateY(-125%);
  color: #072711;
}

body[data-theme="light"] .proto-directory-portal:hover .proto-portal-cta .slot-text-clone {
  color: #FFFFFF;
}

.proto-portal-cta-arrow {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.proto-directory-portal:hover .proto-portal-cta-arrow {
  transform: translate(2px, -2px);
}

/* Right Animated Code Terminal + Live Prototype Snippets Stage */
.proto-portal-fan-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 360px;
  padding: 20px 20px 20px 8px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  perspective: 1100px;
}

@keyframes protoPhoneFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes cliCursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.proto-code-terminal {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  background: #0D1117;
  border: none;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.68);
  overflow: hidden;
  font-family: var(--font-mono);
  animation: none;
  transform: none;
  transition: box-shadow 0.45s ease;
}

body[data-theme="light"] .proto-code-terminal {
  box-shadow: 0 22px 46px -12px rgba(14, 31, 47, 0.32);
}

.proto-directory-portal:hover .proto-code-terminal {
  box-shadow: 0 30px 60px -14px rgba(0, 0, 0, 0.78);
}

.proto-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #161B22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.proto-terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.proto-terminal-dots .t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.proto-terminal-dots .t-dot.is-red { background: #FF5F56; }
.proto-terminal-dots .t-dot.is-yellow { background: #FFBD2E; }
.proto-terminal-dots .t-dot.is-green { background: #27C93F; }

.proto-terminal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.proto-terminal-tab {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  color: #8B949E;
}

.proto-terminal-tab.is-active {
  background: rgba(134, 168, 207, 0.16);
  color: #E6EDF3;
}

.proto-terminal-status {
  font-size: 11px;
  font-weight: 500;
  color: #3FB950;
  letter-spacing: 0.02em;
}

.proto-terminal-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #E6EDF3;
  white-space: pre;
  overflow: hidden;
}

.proto-terminal-body .code-line {
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 1px 6px;
}

.proto-terminal-body .code-line.is-highlight {
  background: rgba(134, 168, 207, 0.14);
  border-left: 2px solid #86A8CF;
}

.proto-terminal-body .c-ln {
  color: #484F58;
  margin-right: 12px;
  user-select: none;
  font-size: 11px;
}

.proto-terminal-body .c-kw { color: #FF7B72; }
.proto-terminal-body .c-fn { color: #D2A8FF; }
.proto-terminal-body .c-id { color: #79C0FF; }
.proto-terminal-body .c-str { color: #A5D6FF; }
.proto-terminal-body .c-tag { color: #7EE787; }
.proto-terminal-body .c-pr { color: #FFA657; }
.proto-terminal-body .c-num { color: #C38EB4; }

.proto-terminal-cli {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #090D11;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #8B949E;
}

.proto-terminal-cli .cli-prompt {
  color: #86A8CF;
  font-weight: 700;
}

.proto-terminal-cli .cli-cmd {
  color: #C9D1D9;
}

.proto-terminal-cli .cli-ok {
  margin-left: auto;
  color: #3FB950;
  font-weight: 500;
}

.proto-terminal-cli .cli-cursor,
.proto-terminal-body .cli-cursor {
  width: 6px;
  height: 13px;
  margin-left: 5px;
  background: #86A8CF;
  display: inline-block;
  animation: cliCursorBlink 1.05s steps(1) infinite;
}

.proto-fan-device {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  will-change: transform;
}

.proto-fan-device.is-single-phone {
  right: 34px;
  bottom: 18px;
  height: 302px;
  z-index: 3;
  transform: translate3d(0, 0, 24px) rotate(0deg) scale(1);
}

.proto-fan-device.is-single-phone .proto-device-phone {
  animation: none;
}

.proto-directory-portal:hover .proto-fan-device.is-single-phone {
  transform: translate3d(0, 0, 24px) rotate(0deg) scale(1);
}

.proto-device-screen .proto-rotating-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.proto-device-screen .proto-rotating-video.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 960px) {
  .proto-directory-portal {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .proto-portal-content {
    padding: 32px 28px 12px;
  }

  .proto-portal-fan-stage {
    min-height: 320px;
    padding: 16px 24px 28px;
  }
}

@media (max-width: 640px) {
  .proto-directory-portal {
    border-radius: 22px;
  }

  .proto-portal-content {
    padding: 26px 20px 10px;
  }

  .proto-portal-fan-stage {
    min-height: 270px;
    padding: 12px 16px 20px;
  }

  .proto-terminal-body {
    font-size: 10px;
    padding: 12px 12px;
  }

  .proto-fan-device.is-single-phone {
    right: 22px;
    bottom: 16px;
    height: 225px;
    transform: translate3d(0, 0, 20px) rotate(0deg) scale(1);
  }

  .proto-directory-portal:hover .proto-fan-device.is-single-phone {
    transform: translate3d(0, 0, 20px) rotate(0deg) scale(1);
  }
}

/* ==========================================================================
   CHARLES UX ANIMATION LAWS — Theme Switch, Press, Tap Targets, Loops, Touch & Reduced Motion
   ========================================================================== */

/* 1. Instant Theme Switch (Recipes: Theme switch — all colours land on one frame) */
.theme-changing,
.theme-changing *,
.theme-changing *::before,
.theme-changing *::after {
  transition: none !important;
}

/* 2. Tactile Press Feedback (Recipes: Press — scale 0.97, 150ms --ease-out on buttons/chips/icon buttons) */
.leo-nav-cta,
.leo-nav-logo,
.leo-nav-home-btn,
.leo-theme-switch,
.fold-unfold-pill,
.fold-lock-icon-btn,
.fold-cta,
.fold-scroll-work-btn,
.fold-connect-btn,
.proto-portal-cta,
.case-password-submit,
.case-password-toggle,
.sk-dunzo-case-tab,
.back-to-top-btn,
.case-back-btn {
  transition-property: background-color, color, border-color, opacity, transform, scale;
  transition-duration: var(--dur-press);
  transition-timing-function: var(--ease-out);
}

.leo-nav-cta:active:not(:disabled, [data-dense]),
.leo-nav-logo:active:not(:disabled, [data-dense]),
.leo-nav-home-btn:active:not(:disabled, [data-dense]),
.leo-theme-switch:active:not(:disabled, [data-dense]),
.fold-unfold-pill:active:not(:disabled, [data-dense]),
.fold-lock-icon-btn:active:not(:disabled, [data-dense]),
.fold-cta:active:not(:disabled, [data-dense]),
.fold-scroll-work-btn:active:not(:disabled, [data-dense]),
.fold-connect-btn:active:not(:disabled, [data-dense]),
.proto-portal-cta:active:not(:disabled, [data-dense]),
.case-password-submit:active:not(:disabled, [data-dense]),
.case-password-toggle:active:not(:disabled, [data-dense]),
.sk-dunzo-case-tab:active:not(:disabled, [data-dense]),
.back-to-top-btn:active:not(:disabled, [data-dense]),
.case-back-btn:active:not(:disabled, [data-dense]) {
  scale: 0.97;
}

/* 3. Fitts's Law — Minimum 44x44px Invisible Tap Targets on Small Icon Buttons */
/* Note: .case-password-toggle stays position: absolute (already anchors ::before) */
.fold-lock-icon-btn,
.leo-nav-logo,
.leo-nav-home-btn {
  position: relative;
}

.case-password-toggle::before,
.fold-lock-icon-btn::before,
.leo-nav-logo::before,
.leo-nav-home-btn::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  translate: -50% -50%;
  pointer-events: auto;
}

/* 4. Pause Ambient Loops While Offscreen (Techniques: Loops) */
.is-offscreen,
.is-offscreen * {
  animation-play-state: paused !important;
}

/* 5. Turn Off Sticky Hover Transforms on Touch Screens (Anticipation, press & hover) */
@media (hover: none), (pointer: coarse) {
  .leo-work-card:hover,
  .leo-work-card:hover .leo-work-media img,
  .leo-work-card:hover .leo-work-media video,
  .leo-nav-cta:hover,
  .fold-unfold-pill:hover,
  .fold-lock-icon-btn:hover,
  .fold-cta:hover,
  .fold-connect-btn:hover,
  .case-password-submit:hover {
    transform: none;
  }
}

/* 6. Comprehensive Reduced Motion (Verify: Reduced motion — no motion/scale/rotate/blur/loops, keep opacity/colour) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .framer-reveal {
    transform: none !important;
    filter: none !important;
    transition: opacity var(--dur-press) ease !important;
  }

  .case-password-gate.is-hidden .case-password-card,
  .case-password-card {
    transform: none !important;
  }

  .case-password-card.is-shaking {
    animation: none !important;
  }

  .leo-work-card,
  .leo-work-card *,
  .slot-text-primary,
  .slot-text-clone,
  .proto-portal-cta-arrow,
  .ai-flow-chip,
  .hero-rocket-stage,
  .hero-rocket-stage *,
  .fold-float-device,
  .fold-floor-shadow,
  .fold-inside-name .fold-name-line,
  .fold-call-name {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color !important;
  }

  .leo-nav-cta:active,
  .leo-nav-logo:active,
  .leo-nav-home-btn:active,
  .leo-theme-switch:active,
  .fold-unfold-pill:active,
  .fold-lock-icon-btn:active,
  .fold-cta:active,
  .fold-scroll-work-btn:active,
  .fold-connect-btn:active,
  .proto-portal-cta:active,
  .case-password-submit:active,
  .case-password-toggle:active,
  .sk-dunzo-case-tab:active,
  .back-to-top-btn:active,
  .case-back-btn:active {
    scale: 1 !important;
  }
}









