/* CSS CUSTOM VARIABLES & DESIGN TOKENS (Apple-Grade Titanium Minimalist Theme) */
:root {
  /* Apple Cupertino Palette (Titanium Dark) */
  --bg-primary: #000000;           /* Pure OLED black background */
  --bg-surface: #0e0e11;           /* Deep titanium surface */
  --bg-surface-2: #16161a;         /* Elevated surface layer */
  --bg-surface-card: rgba(255, 255, 255, 0.035); /* Frosted translucent card */
  --bg-surface-card-hover: rgba(255, 255, 255, 0.065);
  --bg-navbar: rgba(14, 14, 17, 0.78);
  --bg-glass: rgba(24, 24, 28, 0.72);
  --bg-pill: rgba(255, 255, 255, 0.07);
  --bg-pill-active: #f5f5f7;
  --bg-backdrop: rgba(0, 0, 0, 0.82);

  /* Apple Signature Typography Colors */
  --text-primary: #f5f5f7;         /* Soft silk white, non-glaring */
  --text-muted: #86868b;           /* Apple signature secondary gray */
  --text-tertiary: #6e6e73;        /* Subtle tertiary details */
  --text-dark: #000000;            /* Contrast text */
  --text-stroke: rgba(255, 255, 255, 0.12);

  /* Apple Titanium & Accent Scale */
  --accent: #f5f5f7;               /* Titanium white */
  --accent-light: #ffffff;
  --accent-dark: #86868b;
  --accent-cyan: #2997ff;          /* Cupertino blue */
  --accent-gradient: linear-gradient(135deg, #f5f5f7 0%, #a1a1a6 100%);

  /* Delicate Hairline Specular Borders */
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-focus: rgba(255, 255, 255, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --chart-fill: rgba(255, 255, 255, 0.08);

  --bg-close-btn: rgba(24, 24, 28, 0.7);
  --bg-close-btn-hover: rgba(255, 255, 255, 0.2);

  /* Shadows (Ambient & Soft Depth) */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-theater: 0 32px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Typography System */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Mono', Courier, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  /* Radii (Apple Squircle Aesthetics) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Font Size Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: clamp(2.5rem, 6vw, 4.5rem);
  
  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4.5rem;
  --spacing-4xl: 6rem;
  
  /* Apple Spring & Inertia Curves */
  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 160ms var(--ease-apple);
  --transition-base: 280ms var(--ease-apple);
  --transition-slow: 500ms var(--ease-apple);
  --transition-smooth: 800ms var(--ease-spring);
}

/* Light Mode Overrides (Apple Clean Off-White) */
[data-theme="light"] {
  --bg-primary: #fbfbfd;        /* Apple off-white canvas */
  --bg-surface: #ffffff;        /* Pure white card */
  --bg-surface-2: #f5f5f7;      /* Apple titanium light surface */
  --bg-surface-card: #ffffff;
  --bg-surface-card-hover: #ffffff;
  --bg-navbar: rgba(251, 251, 253, 0.82);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-pill: rgba(0, 0, 0, 0.05);
  --bg-pill-active: #1d1d1f;
  --bg-backdrop: rgba(0, 0, 0, 0.45);
  
  --accent: #1d1d1f;            /* Apple deep slate */
  --accent-light: #000000;
  --accent-dark: #86868b;
  --accent-cyan: #0071e3;
  --accent-gradient: linear-gradient(135deg, #1d1d1f 0%, #515154 100%);
  
  --text-primary: #1d1d1f;      /* Apple primary dark */
  --text-muted: #86868b;        /* Apple secondary gray */
  --text-tertiary: #a1a1a6;
  --text-dark: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --border-focus: rgba(0, 0, 0, 0.35);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --text-stroke: rgba(0, 0, 0, 0.1);
  --chart-fill: rgba(0, 0, 0, 0.06);
  --bg-close-btn: rgba(255, 255, 255, 0.85);
  --bg-close-btn-hover: rgba(0, 0, 0, 0.08);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 12px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESET & SYSTEM STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
  overscroll-behavior-y: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  overscroll-behavior-y: none;
  transition: background-color var(--transition-base), color var(--transition-base);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lenis Scroll Helper Boilerplate */
html.lenis, html.lenis body {
  height: auto;
}
.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis-stopped {
  overflow: hidden;
}
.lenis-scrolling iframe {
  pointer-events: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), border-color var(--transition-base);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

li {
  list-style: none;
}

/* Focus Visible Accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-2);
  border: 2px solid var(--bg-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ==========================================================================
   UTILITY CLASSES & GRID LAYOUTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

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

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-text {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Dynamic Outline Text Style */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--text-stroke);
  transition: -webkit-text-stroke var(--transition-slow), color var(--transition-slow);
}

/* Text outline trigger states */
.reveal-item.active .text-outline,
.text-outline-trigger:hover .text-outline,
.hero-headline:hover .text-outline {
  color: var(--text-primary);
  -webkit-text-stroke: 1.2px transparent;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subheading {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Minimalist Card */
.glass-card {
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

/* Swiss Grid Section Divider */
section {
  border-bottom: 1px solid var(--border);
}

/* Button UI Components (Apple Ergonomic Scale) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem; /* 13px */
  letter-spacing: -0.01em;
  padding: 0 18px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
}

/* Sizing Modifiers */
.btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
}

.btn-md {
  height: 40px;
  padding: 0 20px;
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.22);
}
.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: var(--border-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.97);
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px) scale(1.02);
}
.btn-ghost:active {
  transform: translateY(0) scale(0.97);
}

/* ==========================================================================
   CINEMATIC PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth) 200ms, opacity var(--transition-slow);
}

.preloader-inner {
  text-align: center;
}

.preloader-name {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  color: var(--text-primary);
  opacity: 0;
  filter: blur(10px);
  will-change: opacity, filter, letter-spacing;
}

.preloader-logo-container {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.preloader-logo .logo-circle {
  stroke-dasharray: 270;
  stroke-dashoffset: 270;
  transform-origin: center;
  transform: rotate(-90deg);
}

.preloader-logo .logo-char {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

.preloader-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 16px;
  transform: scaleX(0);
}

.preloader-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0;
  transform: translateY(15px);
}

.preloader-role.revealed {
  opacity: 1;
  transform: translateY(0);
}

body.loaded .preloader {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   SCROLL PROGRESS BAR & MOUSE GLOW
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: transform;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  transition: transform var(--transition-base);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-primary);
  background-color: var(--bg-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 1010;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.theme-toggle-icon {
  display: block;
  color: inherit;
  transition: transform var(--transition-base);
}

.theme-toggle:active .theme-toggle-icon {
  transform: rotate(30deg) scale(0.95);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Hamburger Menu */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 4px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fullscreen Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-base);
}

.mobile-menu-overlay.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  color: var(--text-muted);
  cursor: pointer;
}
.mobile-menu-close:hover {
  color: var(--accent);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px;
}
.mobile-nav-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   SECTION 1: HERO STYLES
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s infinite ease-in-out;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-primary-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-sub-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-text-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-text-link:hover {
  color: var(--text-primary);
}

.link-bullet {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* Hero Metrics Cards Group */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.metric-card {
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background-color: var(--bg-surface-card-hover);
  box-shadow: var(--shadow-card);
}

.metric-number {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.metric-suffix {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* ==========================================================================
   HERO DASHBOARD CARD
   ========================================================================== */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.dashboard-card {
  width: 100%;
  max-width: 440px;
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.dashboard-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.dashboard-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-tabs {
  display: flex;
  gap: 6px;
  background-color: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
}

.dash-tab {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
}

.dash-tab:hover {
  color: var(--text-primary);
}

.dash-tab.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
}

.dash-stat-number {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: opacity var(--transition-base);
}

.dash-stat-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.dashboard-chart-container {
  width: 100%;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.dashboard-svg-chart {
  width: 100%;
  height: 100%;
}

.chart-path-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
  animation: drawChart 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes drawChart {
  from { stroke-dashoffset: 600; }
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   SECTION 2: MARQUEE STRIP
   ========================================================================== */
.marquee-strip {
  width: 100%;
  height: 52px;
  background-color: var(--text-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
}

.marquee-container {
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 16px;
  animation: marquee 35s linear infinite;
}

.marquee-content span {
  font-size: var(--text-xs);
  color: var(--bg-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION 3: ABOUT STYLES
   ========================================================================== */
.about-section {
  background-color: var(--bg-surface);
  padding: 100px 0;
}

.about-container {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
  align-items: start;
}

.about-visual-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 120px;
}

.about-image-container {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background-color: var(--bg-surface-2);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all var(--transition-base);
}

.about-image-wrapper:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
}

.avatar-svg {
  width: 56px;
  height: 56px;
  color: var(--accent-dark);
}

.placeholder-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

[data-theme="light"] .about-image-overlay {
  background: linear-gradient(to bottom, transparent 65%, rgba(255, 255, 255, 0.2) 100%);
}

.about-image-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.about-contact-info {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-email-link:hover, .about-tel-link:hover {
  color: var(--text-primary);
}


.about-pullquote {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-rule {
  width: 48px;
  height: 2px;
  background-color: var(--accent);
  margin-bottom: 32px;
}

.about-text-col {
  display: flex;
  flex-direction: column;
}

.about-narrative {
  margin-top: 24px;
}

.about-narrative p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION 4: EXPERIENCE TIMELINE
   ========================================================================== */
.work-section {
  background-color: var(--bg-primary);
  padding: 100px 0;
}

.work-header {
  margin-bottom: 60px;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 32px;
  left: -32px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg-primary);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: all var(--transition-base);
  z-index: 2;
}

.timeline-item:hover .timeline-marker {
  background-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 14px var(--accent);
}

.timeline-content {
  padding: 32px;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.timeline-header {
  margin-bottom: 20px;
}

.company-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.role-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.case-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

.case-body {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 24px;
}

.timeline-actions {
  display: flex;
}

/* ==========================================================================
   SECTION 5: BRAND IDENTITY & GRAPHIC SHOWCASE
   ========================================================================== */
.design-section {
  background-color: var(--bg-surface);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.design-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.showcase-item {
  overflow: hidden;
  box-shadow: var(--glow-sm);
}

.showcase-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-md);
}



/* ==========================================================================
   SECTION 6: SKILLS MATRIX
   ========================================================================== */
.skills-section {
  background-color: var(--bg-surface-2);
  padding: 100px 0;
}

.skills-header {
  margin-bottom: 60px;
}

.skills-showcase-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skills-column {
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  perspective: 1000px;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.skills-column:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.skills-col-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.title-icon {
  font-size: 1.25rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
}

.skills-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-size: 10px;
  top: 1px;
}

/* ==========================================================================
   SECTION 7: SERVICES STYLES
   ========================================================================== */
.services-section {
  background-color: var(--bg-primary);
  padding: 100px 0;
}

.services-header {
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  perspective: 1000px;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  line-height: 1;
}

.service-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-hover-details {
  position: relative;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.hover-hint-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: block;
  opacity: 1;
  transition: opacity var(--transition-base);
}

.reveal-content {
  filter: blur(4px);
  opacity: 0.4;
  height: 0;
  overflow: hidden;
  transition: filter var(--transition-base), opacity var(--transition-base), height var(--transition-base);
}

.reveal-subtitle {
  font-size: var(--text-xs);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.reveal-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reveal-list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  position: relative;
  padding-left: 12px;
}

.reveal-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service-card:hover .hover-hint-label {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.service-card:hover .reveal-content {
  filter: blur(0);
  opacity: 1;
  height: auto;
}

/* ==========================================================================
   SECTION 8: NUMBERS / STATS STYLES
   ========================================================================== */
.stats-section {
  background-color: var(--bg-surface);
  padding: 80px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-heading {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 48px;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 160px;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-suffix {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  max-width: 150px;
  margin-top: 8px;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 64px;
  background-color: var(--border);
}

/* ==========================================================================
   SECTION 9: TESTIMONIALS STYLES
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-primary);
  padding: 100px 0;
}

.testimonials-header {
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition-base);
  perspective: 1000px;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-card);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.quote-mark {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.author-meta {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   SECTION 10: LEAD CAPTURE & CONTACT
   ========================================================================== */
.contact-section {
  background-color: var(--bg-surface);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.contact-header {
  margin-bottom: 48px;
}

.contact-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-subheadline {
  font-size: var(--text-base);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 60px;
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.form-char-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.form-group select {
  width: 100%;
  padding: 14px 18px;
  padding-right: 48px; /* space for custom chevron */
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-group select option {
  background-color: var(--bg-surface-2);
  color: var(--text-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-success-msg {
  display: none;
  margin-top: 16px;
  font-size: var(--text-sm);
  text-align: center;
  font-weight: 600;
}

.form-success-msg.show {
  display: block;
}

.contact-direct-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.direct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.direct-link:hover {
  color: var(--text-primary);
}

.link-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   SECTION 11: FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-col {
  max-width: 300px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: var(--text-sm);
}

.footer-nav, .footer-social {
  display: flex;
  gap: 24px;
}

.footer-link, .footer-social-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer-link:hover, .footer-social-link:hover {
  color: var(--text-primary);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.footer-copyright, .footer-credit {
  font-size: var(--text-xs);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (CSS)
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   AMBIENT FLOATING BACKGROUNDS
   ========================================================================== */
section[data-moving-bg="true"] {
  position: relative;
  overflow: hidden;
}

section[data-moving-bg="true"]::before,
section[data-moving-bg="true"]::after {
  display: none !important;
}

/* Float Animations Keyframes */
@keyframes bgFloat {
  0% { transform: translateX(-10%) translateY(-10%) scale(1); }
  25% { transform: translateX(15%) translateY(-5%) scale(1.05); }
  50% { transform: translateX(20%) translateY(10%) scale(1); }
  75% { transform: translateX(-5%) translateY(15%) scale(0.95); }
  100% { transform: translateX(-10%) translateY(-10%) scale(1); }
}

@keyframes bgFloatReverse {
  0% { transform: translateX(10%) translateY(10%) scale(1); }
  25% { transform: translateX(-15%) translateY(5%) scale(0.95); }
  50% { transform: translateX(-20%) translateY(-10%) scale(1); }
  75% { transform: translateX(5%) translateY(-15%) scale(1.05); }
  100% { transform: translateX(10%) translateY(10%) scale(1); }
}

@keyframes bgGradientShiftHorizontal {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bgGradientShiftDiagonal {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 4px var(--accent); }
  50% { opacity: 1; box-shadow: 0 0 12px var(--accent); }
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subheadline {
    max-width: 600px;
  }
  .hero-graphic {
    max-width: 440px;
    margin: 0 auto;
  }
  .skills-showcase-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .design-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Let the 3rd card span full width on tablet when columns are 2 */
  .work-case-card:last-child {
    grid-column: span 2;
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .navbar-menu {
    display: none;
  }
  .hamburger-toggle {
    display: flex;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual-col {
    position: relative;
    top: 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stat-divider {
    display: none;
  }
  .stats-grid {
    gap: 32px;
  }
  .stat-item {
    flex: 1 1 40%;
  }
  .design-showcase-grid {
    grid-template-columns: 1fr;
  }
  .work-case-card:last-child {
    grid-column: span 1;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  /* Mobile Hero Section Optimizations */
  .hero-headline {
    font-size: var(--text-3xl);
    line-height: 1.2;
    text-align: center;
    align-items: center;
    margin-bottom: 28px; /* rhythm gap */
  }
  .hero-eyebrow {
    margin-bottom: 28px; /* rhythm gap */
  }
  .hero-subheadline {
    max-width: 440px; /* constrain max-width with comfortable line-length */
    line-height: 1.6; /* increase line-height for better readability */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px; /* rhythm gap before buttons */
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    gap: 16px;
  }
  .hero-primary-btns {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }
  .hero-primary-btns .btn {
    flex: 1;
    max-width: 190px;
    height: 44px;
    font-size: 0.8125rem;
    box-sizing: border-box;
    margin: 0;
  }
  .hero-sub-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
  }
  .hero-metrics {
    margin-top: 48px; /* extra margin-top for proof section separation */
    border-top: 1px solid var(--border); /* subtle divider line */
    padding-top: 32px; /* padding above the cards */
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .skills-showcase-container {
    grid-template-columns: 1fr;
  }
  .footer-top-row {
    flex-direction: column;
    gap: 30px;
  }
  .footer-nav, .footer-social {
    flex-direction: column;
    gap: 12px;
  }
}

/* Reduced Motion Preference Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .chart-path-line {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  .preloader-char, .preloader-line, .preloader-role {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal-item, .scroll-reveal, .scroll-fade-item {
    opacity: 1 !important;
    transform: none !important;
  }
  section[data-moving-bg="true"]::before,
  section[data-moving-bg="true"]::after {
    animation: none !important;
  }
}

/* ==========================================================================
   17. MIX-BLEND INVERTING CURSOR
   ========================================================================== */
.custom-cursor {
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  mix-blend-mode: difference;
  
  /* Hardware Accelerated Position & Scale separation */
  translate: -50% -50%;
  scale: 1;
  
  /* Transition scale, opacity, and color only, avoiding position coordinate lag */
  transition: opacity 0.25s ease, scale 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
  body {
    cursor: none !important;
  }
  a, button, select, input, textarea, [data-cursor-hover], .carousel-dot, .carousel-nav, .project-lightbox-trigger {
    cursor: none !important;
  }
}

.custom-cursor.cursor-hovered {
  scale: 2.8;
  background-color: #ffffff;
}

/* ==========================================================================
   18. STORYTELLING INTERACTION & CINEMATIC ELEMENTS
   ========================================================================== */
/* Headline Masking */
.line-mask {
  overflow: hidden;
  display: block;
  line-height: 1.15;
}

.line-mask .line-text {
  display: inline-block;
  transform: translateY(100%);
  will-change: transform;
}

/* Text Popups trigger and container */
.text-popup-trigger {
  font-family: var(--font-mono);
  font-size: 0.95em;
  border-bottom: 1px dashed var(--border);
  color: var(--accent);
  cursor: help;
  display: inline-block;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.text-popup-trigger:hover {
  border-bottom-color: var(--text-primary);
  color: var(--text-primary);
}

.text-popup-preview {
  position: fixed;
  width: 170px;
  height: 110px;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: scale(0.85) translate(15px, 15px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  background-color: var(--bg-primary);
  will-change: transform, opacity;
}

.text-popup-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-popup-preview.active {
  opacity: 1;
  transform: scale(1) translate(15px, 15px);
}

/* Rotating Hire Seal Stamp */
.hero-seal-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  position: relative;
  margin-left: 20px;
  pointer-events: auto;
  transition: transform var(--transition-base);
  user-select: none;
}

.hero-seal-container:hover {
  transform: scale(1.1);
}

.hero-seal-svg {
  animation: rotateSeal 25s linear infinite;
  overflow: visible;
}

.seal-text {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: var(--text-primary);
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.seal-center-arrow {
  position: absolute;
  font-size: 1.6rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  pointer-events: none;
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes rotateSeal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseArrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

/* Adjust layout on mobile */
@media (max-width: 480px) {
  .hero-seal-container {
    margin-left: 0;
    margin-top: 24px;
  }
}

/* ==========================================================================
   VINTAGE FILM PRELOADER EFFECTS & ANIMATIONS
   ========================================================================== */
.film-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
  animation: grain-flicker 0.15s steps(2) infinite;
}

.film-scratch {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: scratch-move 4s steps(4) infinite;
}

[data-theme="light"] .film-scratch {
  background-color: rgba(0, 0, 0, 0.15);
}

.film-flicker {
  position: absolute;
  inset: 0;
  background-color: var(--bg-primary);
  opacity: 0.05;
  pointer-events: none;
  z-index: 3;
  animation: flicker-brightness 0.3s infinite alternate;
}

@keyframes grain-flicker {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(-2%, 1%); }
  30% { transform: translate(1%, -2%); }
  40% { transform: translate(-1%, 3%); }
  50% { transform: translate(-2%, 1%); }
  60% { transform: translate(3%, -1%); }
  70% { transform: translate(2%, 1%); }
  80% { transform: translate(-3%, -2%); }
  90% { transform: translate(1%, 2%); }
  100% { transform: translate(0, 0); }
}

@keyframes scratch-move {
  0% { left: 18%; opacity: 0; }
  5% { left: 18%; opacity: 0.3; transform: translateX(2px); }
  10% { opacity: 0; }
  30% { left: 52%; opacity: 0; }
  31% { left: 52%; opacity: 0.5; transform: translateX(-3px); }
  33% { opacity: 0; }
  65% { left: 78%; opacity: 0; }
  66% { left: 78%; opacity: 0.25; transform: translateX(1px); }
  68% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes flicker-brightness {
  0% { opacity: 0.03; }
  50% { opacity: 0.08; }
  100% { opacity: 0.04; }
}

.preloader-swirl {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
  transform-origin: center;
}

[data-theme="light"] .preloader-swirl {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.05));
}

.movie-outer-ring {
  transform-origin: center;
  animation: swirl-rotate-clockwise 20s linear infinite;
}

.movie-inner-ring {
  transform-origin: center;
}

.movie-spiral {
  transform-origin: center;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.movie-sweep {
  transform-origin: center;
}

@keyframes swirl-rotate-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes swirl-rotate-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}


/* ==========================================================================
   CONTACT SPLIT GRID LAYOUT & CHANNELS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  text-align: left;
}

.channel-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.channel-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  background-color: var(--bg-pill);
  flex-shrink: 0;
}

[data-theme="light"] .channel-icon-wrapper {
  background-color: rgba(0, 0, 0, 0.02);
}

.channel-info {
  flex-grow: 1;
}

.channel-info h3 {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 4px;
}

.channel-info p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.3;
}

.channel-btn {
  font-size: var(--text-xs) !important;
  padding: 8px 16px !important;
  min-height: 36px !important;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.contact-form-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-form-container .contact-form {
  margin: 0;
  padding: 40px;
  height: 100%;
}

.form-note {
  margin-top: 16px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

/* Clipboard Feedback Animations */
#btn-copy-email.copied {
  background-color: var(--accent) !important;
  color: var(--bg-primary) !important;
  border-color: var(--accent) !important;
}

/* Responsive adjustment for contact split layout */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .channel-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .channel-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .channel-btn {
    width: 100%;
  }
}

/* Outcome-Driven Project Details Grid Styles */
.project-details-block {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.project-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.project-detail .label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  min-width: 90px;
}

/* ==========================================================================
   WORK grid cards & CASE STUDY MODAL PATTERN
   ========================================================================== */

/* Card (collapsed/grid view) styles */
.work-case-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  outline: none;
}

.work-case-card:hover,
.work-case-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-case-card:hover .card-cover-img,
.work-case-card:focus-visible .card-cover-img {
  transform: scale(1.04); /* subtle zoom */
}

.card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.45) 80%, var(--bg-surface-card) 100%);
  pointer-events: none;
}

.card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  background-color: var(--bg-surface-card);
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-hook {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-cta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.work-case-card:hover .card-cta,
.work-case-card:focus-visible .card-cta {
  color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--bg-backdrop); /* theme-sensitive overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: flex-start; /* top align so scrolling makes sense */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px 24px;
  overflow-y: auto; /* scroll backdrop instead of inner wrapper */
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-wrapper {
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  max-width: 760px;
  position: relative;
  box-shadow: var(--shadow-theater);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto 0; /* vertical center when content fits, top align with margins when tall */
}

@media (max-width: 580px) {
  .modal-backdrop {
    padding: 20px 12px;
  }
}

.modal-backdrop.active .modal-wrapper {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: var(--bg-close-btn);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
  outline: none;
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .modal-hero {
    aspect-ratio: 4/3;
    min-height: 280px;
  }
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 40px; /* Generous internal padding */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 580px) {
  .modal-body {
    padding: 24px;
    gap: 20px;
  }
  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-top: -8px;
}

.modal-desc {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
}

.modal-case-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.modal-detail-row {
  display: flex;
  flex-direction: column;
  gap: 8px; /* generous label-to-value spacing */
}

.modal-detail-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-detail-value {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

/* Result field payoff styles */
.modal-result-row {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.modal-result-row .modal-detail-label {
  color: var(--accent); /* subtle accent color */
}

.modal-result-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.modal-link-container {
  margin-top: 12px;
}

/* Scrollbar styling for modal backdrop - high contrast and visible */
.modal-backdrop::-webkit-scrollbar {
  width: 8px;
}

.modal-backdrop::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.modal-backdrop::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: var(--radius-full);
}

.modal-backdrop::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Scroll Down Button overlaying bottom of hero image */
.modal-hero-scroll-btn {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
}

.modal-hero-scroll-btn:hover,
.modal-hero-scroll-btn:focus-visible {
  background-color: rgba(0, 0, 0, 0.85);
  border-color: var(--accent);
  outline: none;
}

.modal-hero-scroll-btn span {
  display: inline-block;
  animation: modalHeroArrowMove 1.5s infinite ease-in-out;
}

@keyframes modalHeroArrowMove {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

/* Scroll to Top Button for Modal Backdrop */
.modal-scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100015;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--transition-fast),
              background-color var(--transition-fast);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.modal-scroll-top-btn:hover,
.modal-scroll-top-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.modal-scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* iOS momentum scroll optimization for backdrop */
.modal-backdrop {
  -webkit-overflow-scrolling: touch;
}

/* Mobile responsiveness adjustments */
@media (max-width: 580px) {
  .modal-scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* ==========================================================================
   19. PROFESSIONAL SVG ICON SYSTEM & PAGE SCROLL-TO-TOP BUTTON
   ========================================================================== */

/* SVG Icon alignment and stroke configurations */
.about-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
  margin-right: 8px;
}

.skills-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
  margin-right: 12px;
}

.skills-col-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-icon-svg {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  stroke: currentColor;
  fill: none;
  color: var(--accent);
}

.channel-icon-svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  color: var(--text-primary);
}

/* Page floating Back-to-Top button */
.page-scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--transition-fast),
              background-color var(--transition-fast),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-scroll-top-btn:hover,
.page-scroll-top-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px); /* subtle lift */
  outline: none;
}

.page-scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 580px) {
  .page-scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* Modal Horizontal Scrollable Gallery */
.modal-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100%;
  scrollbar-width: none; /* Hide default scrollbar */
  -ms-overflow-style: none; /* Hide IE scrollbar */
  -webkit-overflow-scrolling: touch;
}

.modal-gallery::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbar */
}

.modal-gallery-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain; /* display image fully without cropping */
  scroll-snap-align: start;
  background-color: var(--bg-primary); /* frame the image nicely */
}

/* Gallery indicators overlay */
.modal-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-gallery-dots:empty {
  display: none;
}

.modal-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.modal-gallery-dot.active {
  background-color: var(--accent);
  transform: scale(1.2);
}

.modal-gallery-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  transform: scale(1.2);
}

/* ==========================================================================
   VIDEO EDITING & MOTION SHOWCASE SECTION (Apple-Grade Polish)
   ========================================================================== */
.video-showcase-section {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.video-filter-bar {
  display: flex;
  justify-content: center;
  margin: 36px 0 52px;
}

/* Apple Segmented Control Pill Enclosure */
.apple-segmented-track {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 4px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.apple-segmented-track::-webkit-scrollbar {
  display: none;
}

.video-filter-btn {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
  white-space: nowrap;
  user-select: none;
}

.video-filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.video-filter-btn.active {
  background: #f5f5f7;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transform: scale(1.01);
}

[data-theme="light"] .apple-segmented-track {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .video-filter-btn.active {
  background: #1d1d1f;
  color: #ffffff;
}

.video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Apple TV / iPad Video Card */
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-card);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-apple),
              box-shadow 0.4s var(--ease-apple),
              border-color 0.3s var(--ease-apple);
  box-shadow: var(--shadow-card);
}

.video-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.video-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  background: #000000;
  border-radius: 21px 21px 0 0;
  overflow: hidden;
  cursor: pointer;
}

.video-media-wrapper.video-aspect-wide {
  aspect-ratio: 16 / 10;
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-apple);
}

.video-card:hover .showcase-video {
  transform: scale(1.025);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 25%, transparent 65%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-card.is-playing .video-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 35%, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
}

/* Apple Frosted Glass Play Button */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring),
              background 0.25s ease,
              color 0.25s ease,
              opacity 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #f5f5f7;
  color: #000000;
  border-color: #ffffff;
}

.video-card.is-playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-card.is-playing:hover .video-play-btn {
  opacity: 0.9;
  pointer-events: auto;
}

.video-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.video-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: var(--radius-full);
}

.video-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.video-controls-quick {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  z-index: 2;
  pointer-events: auto;
}

.video-sound-btn,
.video-fullscreen-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.video-sound-btn:hover,
.video-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.video-card-info {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.video-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.video-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.vtag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.video-card:hover .vtag {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   MINIMALIST BRAND ARCHITECTURE SECTION (Apple Keynote Polish)
   ========================================================================== */
.branding-showcase-section {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.branding-inspector {
  margin-top: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 42px;
  position: relative;
  box-shadow: var(--shadow-glass);
}

.branding-inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.branding-title-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branding-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
}

.branding-spec-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 500;
  color: var(--text-primary);
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}

.branding-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.branding-counter {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.branding-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  backdrop-filter: blur(12px);
}

.branding-nav-btn:hover {
  background: #f5f5f7;
  color: #000000;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.branding-display-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.branding-slider-wrapper {
  width: 100%;
  max-width: 780px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.branding-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s var(--ease-apple), transform 0.3s var(--ease-apple);
}

/* Apple Expanding Pill Pagination Dots */
.branding-slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  align-items: center;
}

.branding-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease-spring);
}

.branding-dot.active {
  background: #f5f5f7;
  width: 24px;
}

.branding-inspector-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.branding-desc-box {
  max-width: 600px;
}

.branding-spec-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.branding-deliverables-action {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.branding-download-btn {
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-apple);
}

/* ==========================================================================
   VIDEO THEATER MODAL (Apple TV Ambient Lightbox)
   ========================================================================== */
.video-theater-wrapper {
  position: relative;
  width: 90vw;
  max-width: 980px;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-theater);
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease;
}

.video-modal-backdrop.active .video-theater-wrapper {
  transform: scale(1);
  opacity: 1;
}

.video-theater-player-container {
  width: 100%;
  max-height: 72vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theater-video-element {
  width: 100%;
  max-height: 72vh;
  outline: none;
}

.video-theater-info {
  padding: 26px 36px 32px;
  border-top: 1px solid var(--border);
  background: #0e0e11;
}

.video-theater-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.video-theater-title {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.video-theater-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-gallery-vid {
  object-fit: cover;
  background: #000000;
  border-radius: 14px;
}

/* Smooth Work Case Card Apple Polish */
.work-case-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-apple),
              box-shadow 0.4s var(--ease-apple),
              border-color 0.3s var(--ease-apple);
}

.work-case-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.work-case-card .card-visual {
  border-radius: 21px 21px 0 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .video-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .video-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .branding-inspector {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }
  .branding-inspector-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .branding-inspector-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .apple-segmented-track {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   CREATIVE JOURNEY & NARRATIVE ARCHITECTURE
   ========================================================================== */

/* Systematic Chapter Journey Badges */
.journey-chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
}

.journey-chapter-tag .chapter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  display: inline-block;
}

.journey-chapter-tag .chapter-num {
  font-weight: 700;
  color: var(--text-primary);
}

.journey-chapter-tag .chapter-sep {
  color: var(--border-hover);
}

.journey-chapter-tag .chapter-title {
  color: var(--text-muted);
  font-weight: 500;
}

/* The Three Creative Disciplines (About Me Pillars) */
.journey-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pillar-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-surface-card-hover);
  box-shadow: var(--shadow-hover);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pillar-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-pill);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.pillar-meta {
  display: flex;
  flex-direction: column;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.pillar-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.pillar-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-deliverables li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-deliverables li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Creative Evolution Timeline */
.creative-evolution-container {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.evolution-header {
  margin-bottom: 28px;
  text-align: left;
}

.evolution-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.evolution-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 600px;
}

.evolution-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.evolution-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
}

.evolution-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.evolution-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: inline-block;
}

.evolution-phase-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.evolution-phase-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Director's Blueprint (Behind The Lens Workflow) */
.director-workflow-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.workflow-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-surface-card-hover);
  box-shadow: var(--shadow-hover);
}

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  display: block;
}

.workflow-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.workflow-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.workflow-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border);
  align-self: flex-start;
}

/* Director's Note Badge on Cards */
.directors-note-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(41, 151, 255, 0.05);
  border: 1px solid rgba(41, 151, 255, 0.16);
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.directors-note-badge .note-prefix {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Channel Card Button Polish */
.channel-card .channel-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 0.78rem;
  flex-shrink: 0;
  align-self: center;
}

/* Responsive adjustments for Journey components */
@media (max-width: 1024px) {
  .journey-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .evolution-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .journey-pillars-grid {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

