@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTg.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url('https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTg.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTg.ttf') format('truetype');
}

/* ==========================================================================
   DESIGN TOKENS & DAY/NIGHT ENVIRONMENT SYSTEM
   ========================================================================== */
:root {
  /* Day Mode Tokens */
  --bg-color: #FAF9F7;
  /* Warm off-white / ivory */
  --text-primary: #1a1a1a;
  /* Deep charcoal / near-black */
  --text-secondary: #3a3a3a;
  /* Muted charcoal-gray */
  --text-eyebrow: #52627a;
  /* Muted eyebrow */
  --text-muted: #64748b;
  --card-placeholder: #edeae6;
  /* Warm off-white placeholder */
  --border-subtle: rgba(15, 23, 42, 0.05);

  --nav-bg: rgba(255, 255, 255, 0.65);
  --nav-border: rgba(255, 255, 255, 0.85);
  --nav-text: rgba(15, 23, 42, 0.65);
  --nav-text-active: #0b0f19;
  --nav-hover-bg: rgba(255, 255, 255, 0.45);

  /* Dark gradient overlay on background image for light mode */
  --overlay-gradient: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.50) 40%,
      rgba(0, 0, 0, 0.60) 65%,
      rgba(0, 0, 0, 0.30) 100%);

  /* Removed background container gradient to let text float cleanly */
  --hero-backdrop-gradient: transparent;

  --focus-ring: #0284c7;
  --transition-speed: 0.8s;
  --transition-ease: cubic-bezier(0.25, 1, 0.5, 1);

  /* CTA Button Pulse Color Variables */
  --btn-pulse-color: rgba(13, 13, 13, 0.25);
  --btn-pulse-color-fade: rgba(13, 13, 13, 0);

  /* Shiny Text Gradient Variable (Day Mode) */
  --shiny-text-gradient: linear-gradient(110deg, #111827 0%, #111827 38%, #94a3b8 50%, #111827 62%, #111827 100%);

  /* Stats Shiny Gradients (Day Mode: Crisp Onyx Black Base with Smooth Silver Specular Beam) */
  --stats-shiny-gradient: linear-gradient(110deg, #111827 0%, #111827 38%, #94a3b8 50%, #111827 62%, #111827 100%);
  --label-shiny-gradient: linear-gradient(110deg, #52525b 0%, #52525b 38%, #18181b 50%, #52525b 62%, #52525b 100%);

  /* Magic Bento Spotlight Variables (Day Mode) */
  --bento-spotlight-radius: 400px;
  --bento-spotlight-color: rgba(15, 23, 42, 0.04);
  --bento-border-glow-color: rgba(15, 23, 42, 0.15);

  /* Card Surface Tokens (Day Mode) */
  --card-bg-color: #ffffff;
  --card-border-color: rgba(15, 23, 42, 0.06);
  --card-hover-border-color: rgba(15, 23, 42, 0.12);
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.015);
  --card-hover-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

/* Night Mode Tokens */
html.theme-night {
  --bg-color: #0d0d0d;
  /* Deep near-black background */
  --text-primary: #f5f5f4;
  /* Warm off-white, never pure harsh white */
  --text-secondary: #cbd5e1;
  /* Muted cool-gray */
  --text-eyebrow: #94a3b8;
  /* Muted cool-white eyebrow */
  --text-muted: #6b7280;
  --card-placeholder: #161618;
  /* Deep near-black card placeholders */
  --border-subtle: rgba(255, 255, 255, 0.05);

  --nav-bg: rgba(18, 26, 38, 0.88);
  --nav-border: rgba(255, 255, 255, 0.14);
  --nav-text: #94a3b8;
  --nav-text-active: #ffffff;
  --nav-hover-bg: rgba(255, 255, 255, 0.08);

  /* Subtle dark overlay in Night Mode */
  --overlay-gradient: linear-gradient(180deg,
      rgba(3, 7, 18, 0.38) 0%,
      rgba(3, 7, 18, 0.22) 50%,
      rgba(3, 7, 18, 0.38) 100%);

  /* Removed background container gradient */
  --hero-backdrop-gradient: transparent;

  --focus-ring: #38bdf8;

  /* CTA Button Pulse Color Variables */
  --btn-pulse-color: rgba(255, 255, 255, 0.2);
  --btn-pulse-color-fade: rgba(255, 255, 255, 0);

  /* Shiny Text Gradient Variable (Night Mode: Luminous Off-White Base with Incandescent Platinum Glow) */
  --shiny-text-gradient: linear-gradient(110deg, #f4f4f5 0%, #f4f4f5 38%, #ffffff 50%, #f4f4f5 62%, #f4f4f5 100%);

  /* Stats Shiny Gradients (Night Mode: Solid Crisp Platinum Base with Brilliant Gliding Diamond Shimmer) */
  --stats-shiny-gradient: linear-gradient(110deg, #f4f4f5 0%, #f4f4f5 38%, #ffffff 50%, #f4f4f5 62%, #f4f4f5 100%);
  --label-shiny-gradient: linear-gradient(110deg, #a1a1aa 0%, #a1a1aa 38%, #ffffff 50%, #a1a1aa 62%, #a1a1aa 100%);

  /* Magic Bento Spotlight Variables (Night Mode) */
  --bento-spotlight-radius: 400px;
  --bento-spotlight-color: rgba(255, 255, 255, 0.06);
  --bento-border-glow-color: rgba(255, 255, 255, 0.22);

  /* Card Surface Tokens (Night Mode) */
  --card-bg-color: #121214;
  --card-border-color: rgba(255, 255, 255, 0.06);
  --card-hover-border-color: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

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

/* Hide browser scrollbars globally across all browsers & devices */
html {
  overflow-x: clip;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  /* Prevent horizontal scroll breakout without breaking position: sticky */
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-speed) var(--transition-ease),
    color var(--transition-speed) var(--transition-ease);
}

/* Chrome, Safari, Opera, Edge - Hide Scrollbar Track & Thumb */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   FLOATING NAVBAR (CONSISTENT FIXED CAPSULE ACROSS ALL PAGES)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  transition: top 0.3s var(--transition-ease);
}

.site-header.scrolled {
  top: 1rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 420px;
  height: 52px;
  padding: 0 0.4rem;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 9999px;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.35),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.12);
  transition: background 0.3s var(--transition-ease),
    border-color 0.3s var(--transition-ease),
    box-shadow 0.3s var(--transition-ease);
}

.site-header.scrolled .navbar {
  height: 52px;
  padding: 0 0.4rem;
  max-width: 420px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.35),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.42rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .nav-link {
  font-size: 0.88rem;
  padding: 0.42rem 1.15rem;
}

/* Day Mode active/hover pill (Frosted Glass Button) */
html.theme-day .nav-link:hover:not(.active) {
  color: #0b0f19;
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.65);
}

html.theme-day .nav-link.active {
  color: #0b0f19 !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5),
    0 4px 14px rgba(15, 23, 42, 0.08),
    inset 0 1.5px 2px rgba(255, 255, 255, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Night Mode active/hover pill (Frosted Glass Button Matching Screenshot) */
html.theme-night .nav-link:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

html.theme-night .nav-link.active {
  color: #ffffff !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.nav-link.placeholder-link {
  cursor: default;
}

/* ==========================================================================
   HERO TOP-LEFT BRAND LOGO (Scrolls naturally with Hero Section)
   ========================================================================== */
.hero-brand-logo {
  position: absolute;
  top: 1.5rem;
  left: 2.2rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.hero-brand-logo:hover {
  transform: scale(1.04);
  opacity: 0.88;
}

.brand-logo-img {
  display: none;
  height: auto;
  width: clamp(110px, 12vw, 150px);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: opacity 0.4s var(--transition-ease);
}

/* Night Mode: display white signature logo */
html.theme-night .brand-logo-img.logo-dark {
  display: block;
}

html.theme-night .brand-logo-img.logo-light {
  display: none;
}

/* Day Mode: display black signature logo */
html.theme-day .brand-logo-img.logo-dark {
  display: none;
}

html.theme-day .brand-logo-img.logo-light {
  display: block;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.15));
}

@media (max-width: 768px) {
  .hero-brand-logo {
    top: 1.15rem;
    left: 1.25rem;
  }
  .brand-logo-img {
    width: 105px;
  }
}

@media (max-width: 480px) {
  .hero-brand-logo {
    top: 0.95rem;
    left: 0.85rem;
  }
  .brand-logo-img {
    width: 90px;
  }
}

/* ==========================================================================
   FULL-VIEWPORT HERO EXPERIENCE (100dvh)
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  /* Enforce exact stable viewport height */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 7.5rem 1.5rem 2.5rem;
  overflow: hidden;
}

/* Synchronized Landscape Video Stack */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-canvas,
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  will-change: opacity;
}

.canvas-day,
.hero-video-day {
  opacity: 1;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.canvas-night,
.hero-video-night {
  opacity: 0;
  z-index: 2;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

html.theme-night .canvas-day,
html.theme-night .hero-video-day {
  opacity: 0;
}

html.theme-night .canvas-night,
html.theme-night .hero-video-night {
  opacity: 1;
}

/* Atmospheric top & bottom blur overlays */
.blur-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  height: 10vh;
  z-index: 2;
  /* Layered directly above background canvases but below text & navbar */
  backdrop-filter: blur(25px) saturate(1.5);
  -webkit-backdrop-filter: blur(25px) saturate(1.5);
  pointer-events: none;
}

.blur-top {
  top: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.blur-bottom {
  bottom: 0;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Adaptive Scrim Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: var(--overlay-gradient);
  transition: background var(--transition-speed) var(--transition-ease);
}

/* ==========================================================================
   EDITORIAL HERO CONTENT COMPOSITION
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 880px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  /* Tightened gap between eyebrow and H1 */
  margin-top: auto;
  margin-bottom: auto;
  transform: translateY(-2.5dvh);
  background: transparent;
  /* No visible background box */
  padding: 0;
  /* Let text float cleanly */
  transition: transform var(--transition-speed) var(--transition-ease);
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  /* White in both modes */
  opacity: 0.90;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
  padding-top: 4px;
  transition: opacity var(--transition-speed) var(--transition-ease);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-eyebrow .bullet {
  display: inline-block;
  margin: 0 0.55rem;
  font-size: 1.15em;
  vertical-align: middle;
  line-height: 1;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.05rem, 3.8vw + 0.3rem, 3.5rem);
  /* Slightly smaller footprint, refined size */
  font-weight: 800;
  line-height: 1.1;
  /* Tightened line height */
  letter-spacing: -0.025em;
  color: #ffffff;
  /* White in Day Mode */
  text-wrap: balance;
  transition: color var(--transition-speed) var(--transition-ease);
}

html.theme-night .hero-title {
  color: #f5f5f4;
  /* Warm off-white in Night Mode */
}

/* ==========================================================================
   EXACT MINIMALIST 3D GLASS TOGGLE (MATCHING SCREENSHOTS)
   ========================================================================== */
.hero-bottom-control {
  position: relative;
  z-index: 10;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.glass-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  border-radius: 9999px;
}

.glass-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 180px;
  height: 44px;
  padding: 3px;
  border-radius: 9999px;
  background: rgba(22, 28, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  transition: background var(--transition-speed) var(--transition-ease),
    border-color var(--transition-speed) var(--transition-ease),
    box-shadow var(--transition-speed) var(--transition-ease);
}

/* Day Mode Track */
html.theme-day .glass-toggle-track {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Night Mode Track */
html.theme-night .glass-toggle-track {
  background: rgba(22, 28, 36, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}

.toggle-label {
  position: relative;
  z-index: 2;
  width: 50%;
  text-align: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.4s var(--transition-ease), opacity 0.4s var(--transition-ease);
  user-select: none;
  pointer-events: none;
}

/* Default active/inactive label colors */
html.theme-day .light-label {
  color: #0b0f19;
  opacity: 1;
}

html.theme-day .dark-label {
  color: rgba(15, 23, 42, 0.42);
  opacity: 0.8;
}

html.theme-night .light-label {
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.8;
}

html.theme-night .dark-label {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Glass Slider Knob */
.glass-slider-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  width: 85px;
  height: 36px;
  border-radius: 9999px;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    background var(--transition-speed) var(--transition-ease),
    border-color var(--transition-speed) var(--transition-ease),
    box-shadow var(--transition-speed) var(--transition-ease);
}

html.theme-day .glass-slider-knob {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5),
    0 4px 14px rgba(15, 23, 42, 0.1),
    inset 0 1.5px 2px rgba(255, 255, 255, 1);
  transform: translateX(0);
}

html.theme-night .glass-slider-knob {
  transform: translateX(87px);
  /* 180px track - 85px knob - 6px padding offsets */
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    top: 1.25rem;
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }



  .navbar {
    height: 46px;
    padding: 0 0.3rem;
  }

  .site-header.scrolled .navbar {
    height: 46px;
    padding: 0 0.3rem;
  }

  .nav-links {
    gap: 0.25rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.32rem 0.75rem;
  }

  .hero-section {
    padding: 8.5rem 1.25rem 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 480px) {
  .navbar {
    max-width: 100%;
    height: 44px;
    padding: 0 0.25rem;
  }

  .site-header.scrolled .navbar {
    height: 44px;
    padding: 0 0.25rem;
  }

  .nav-links {
    gap: 0.15rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.28rem 0.55rem;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero-description {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   SECTION 02 — PERSONAL STATEMENT
   ========================================================================== */
.personal-statement-section {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: 140px 2rem;
  /* Generous breathing room, 140px top and bottom */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top: none;
  /* No borders */
  z-index: 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Scroll reveal starting states */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    background-color var(--transition-speed) var(--transition-ease),
    background-image var(--transition-speed) var(--transition-ease);
}

.personal-statement-section.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Light Mode: Warm organic textured wallpaper */
html.theme-day .personal-statement-section {
  background-color: #f7f4ee;
  background-image: url("images/I'm Zubair light mode.jpg");
}

html.theme-day .statement-intro {
  color: #1a1614;
}

html.theme-day .statement-body {
  color: #2e2a28;
}

/* Dark Mode: Deep moody charcoal texture */
html.theme-night .personal-statement-section {
  background-color: #191816;
  background-image: url("images/I'm Zubair dark mode.jpg");
}

html.theme-night .statement-intro {
  color: #f5f4f0;
}

html.theme-night .statement-body {
  color: #d1cfc9;
}

.statement-container {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.statement-intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 6vw, 54px);
  /* Desktop size roughly 52-58px */
  font-style: italic;
  font-weight: 500;
  margin-bottom: 28px;
  /* Gap between name and statement: 28px only */
  letter-spacing: -0.01em;
  line-height: 1.15;
  transition: color var(--transition-speed) var(--transition-ease);
}

.statement-body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(18px, 3.5vw, 24px);
  /* Size around 22-26px on desktop */
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.015em;
  max-width: 640px;
  /* Controlled width to wrap naturally into 2 lines on desktop */
  margin: 0 auto;
  text-wrap: balance;
  transition: color var(--transition-speed) var(--transition-ease);
}



/* ==========================================================================
   SECTION 04 — CREDIBILITY
   ========================================================================== */
.stats-strip-section {
  position: relative;
  width: 100%;
  padding: 110px 2rem;
  /* Generous spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  transition: background-color var(--transition-speed) var(--transition-ease);
}

/* Mode backgrounds matching user requirements */
html.theme-day .stats-strip-section {
  background-color: #FAF9F7;
  /* Warm/off-white background */
}

html.theme-night .stats-strip-section {
  background-color: #0d0d0d;
  /* Near-black/deep charcoal background */
}

/* Subtle understated stats header */
.stats-header {
  text-align: center;
  margin-bottom: 4rem;
  width: 100%;
  max-width: 1100px;
}

.stats-heading-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  line-height: 1.4;
  opacity: 0.85;
}

html.theme-day .stats-heading-text {
  color: #52525b;
}

html.theme-night .stats-heading-text {
  color: #cbd5e1;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
}

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

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  height: 64px;
  margin-bottom: 8px;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  text-align: center;
  display: inline-block;
  transition: color var(--transition-speed) var(--transition-ease);
}

.stat-plus {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-left: 2px;
  display: inline-block;
  transition: color var(--transition-speed) var(--transition-ease);
}

/* 🌟 DAY MODE (LIGHT): Ultra-Crisp Pure Black with Maximum Contrast & Zero Blur */
html.theme-day .stat-number,
html.theme-day .stat-plus {
  color: #000000;
  -webkit-text-fill-color: #000000;
  animation: glitter-pulse-day 4s ease-in-out infinite;
}

/* 🌟 NIGHT MODE (DARK): Sleek Refined Crystal White with Ambient Glow */
html.theme-night .stat-number,
html.theme-night .stat-plus {
  color: #f4f4f5;
  -webkit-text-fill-color: #f4f4f5;
  animation: glitter-pulse-night 4s ease-in-out infinite;
}

.stat-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.4;
  margin-top: 6px;
  text-align: center;
  transition: color var(--transition-speed) var(--transition-ease);
}

html.theme-day .stat-label {
  color: #27272a;
  -webkit-text-fill-color: #27272a;
  font-weight: 700;
  opacity: 0.95;
}

html.theme-night .stat-label {
  color: #a1a1aa;
  -webkit-text-fill-color: #a1a1aa;
  font-weight: 600;
  opacity: 0.85;
}

/* Subtle vertical separators */
.stat-divider {
  width: 1px;
  height: 48px;
  transition: background-color var(--transition-speed) var(--transition-ease);
}

html.theme-day .stat-divider {
  background-color: rgba(15, 23, 42, 0.08);
}

html.theme-night .stat-divider {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Refined Luxury Shimmer Pulses (Exact match from about.html) */
@keyframes glitter-pulse-night {
  0%,
  100% {
    color: #e4e4e7;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25), 0 0 14px rgba(255, 255, 255, 0.12);
    filter: brightness(1);
  }

  50% {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 22px rgba(255, 255, 255, 0.35);
    filter: brightness(1.08);
  }
}

@keyframes glitter-pulse-day {
  0%,
  100% {
    color: #18181b;
    text-shadow: none;
    filter: brightness(1);
  }

  50% {
    color: #000000;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
    filter: brightness(1.04);
  }
}

/* ==========================================================================
   SECTION 05 — SERVICES (HOMEPAGE)
   ========================================================================== */
.services-section {
  position: relative;
  width: 100%;
  padding: 120px 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color var(--transition-speed) var(--transition-ease),
              background-image var(--transition-speed) var(--transition-ease);
}

html.theme-day .services-section {
  background-color: #f0f4f8;
  background-image: url('images/WHAT%20WE%20DO%20light%20theme.jpg');
}

html.theme-night .services-section {
  background-color: #0b111e;
  background-image: url('images/WHAT%20WE%20DO%20dark%20theme.jpg');
}

.services-header {
  max-width: 880px;
  width: 100%;
  text-align: center;
  margin-bottom: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-eyebrow {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.15rem;
  transition: color var(--transition-speed) var(--transition-ease);
}

html.theme-day .services-eyebrow {
  color: #111827;
  opacity: 0.92;
}

html.theme-night .services-eyebrow {
  color: #ffffff !important;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.services-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  text-wrap: balance;
  transition: color var(--transition-speed) var(--transition-ease);
}

.services-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  text-wrap: balance;
  transition: color var(--transition-speed) var(--transition-ease);
}

.services-list {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.85rem 2.25rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden; /* Clips the rotating conic shimmer strictly to the rounded border */
  cursor: pointer;
  isolation: isolate;
  
  box-shadow: var(--card-shadow);
  
  /* Smooth transform and shadow transition */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dual Rotating Shimmer Border Beams (180deg opposite sources — active on hover) */
.service-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(1600px, 250%);
  height: max(1600px, 250%);
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 20deg,
    var(--service-shimmer-glow) 42deg,
    var(--service-shimmer-beam) 65deg,
    var(--service-shimmer-glow) 88deg,
    transparent 110deg,
    transparent 200deg,
    var(--service-shimmer-glow) 222deg,
    var(--service-shimmer-beam) 245deg,
    var(--service-shimmer-glow) 268deg,
    transparent 290deg,
    transparent 360deg
  );
  animation: service-border-shimmer-spin 5s linear infinite;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inner Solid Card Backdrop with 1.8px thick border boundary cutout */
.service-row::after {
  content: '';
  position: absolute;
  inset: 1.8px;
  border-radius: calc(14px - 1.8px);
  background-color: var(--service-card-bg);
  border: 1px solid var(--service-card-border);
  z-index: -1;
  pointer-events: none;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes service-border-shimmer-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Theme Tokens for Shimmer Border Beams */
html.theme-day .service-row {
  --service-card-bg: #ffffff;
  --service-card-border: rgba(15, 23, 42, 0.08);
  --service-shimmer-beam: rgba(15, 23, 42, 0.40);
  --service-shimmer-glow: rgba(15, 23, 42, 0.10);
}

html.theme-day .service-row:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.03);
}

html.theme-day .service-row:hover::after {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
}

html.theme-night .service-row {
  --service-card-bg: #0d0d0d;
  --service-card-border: rgba(255, 255, 255, 0.07);
  --service-shimmer-beam: #ffffff;
  --service-shimmer-glow: rgba(255, 255, 255, 0.50);
}

html.theme-night .service-row:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 14px 38px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.04);
}

html.theme-night .service-row:hover::after {
  background-color: #131316;
  border-color: rgba(255, 255, 255, 0.18);
}

.service-row:hover::before {
  opacity: 1;
}

/* Content Elements strictly above the backdrop layer */
.service-row-number,
.service-row-name,
.service-row-description,
.service-row-arrow {
  position: relative;
  z-index: 1;
}

.service-row-number {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  width: 44px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover .service-row-number {
  color: var(--text-primary);
}

.service-row-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex: 1 1 270px;
  margin: 0 1.5rem 0 0;
  transition: color var(--transition-speed) var(--transition-ease);
}

.service-row-description {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-secondary);
  flex: 1.5 1 350px;
  margin: 0 1.5rem 0 0;
  transition: color var(--transition-speed) var(--transition-ease);
}

.service-row-arrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  flex-shrink: 0;
  width: 24px;
  text-align: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover .service-row-arrow {
  transform: translateX(6px);
  color: var(--text-primary);
}

/* Responsive: Mobile & Tablet */
@media (max-width: 860px) {
  .services-section {
    padding: 80px 1.25rem;
  }

  .services-header {
    margin-bottom: 3rem;
  }

  .service-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1.35rem;
    gap: 0.5rem;
  }

  .service-row-number {
    width: auto;
    font-size: 13.5px;
    margin-bottom: 0.15rem;
  }

  .service-row-name {
    font-size: 18px;
    margin: 0 0 0.25rem 0;
  }

  .service-row-description {
    font-size: 13.5px;
    margin: 0 0 0.5rem 0;
    width: 100%;
  }

  .service-row-arrow {
    align-self: flex-end;
    margin-top: -0.75rem;
  }
}

/* ==========================================================================
   SECTION 06 — CONTACT / CLOSING
   ========================================================================== */
.contact-closing-section {
  position: relative;
  background: #0d0d0d;
  /* Locked deep near-black background for both Day and Night modes */
  padding: 11rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  z-index: 10;
}

.closing-container {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 1.25rem;
}

.cta-headline-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 880px;
  margin-bottom: 1.25rem;
}

.cta-video-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.closing-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  /* High contrast white */
  line-height: 1.15;
  margin: 0;
  z-index: 2;
  position: relative;
}

.closing-description {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
  color: #a0a0a0;
  max-width: 880px;
  margin-bottom: 3.5rem;
  text-wrap: balance;
}

.closing-btn {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0d0d0d;
  padding: 1.25rem 3.5rem;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  background-color: #ffffff;

  /* Dynamic 3D shadow and pulse color tokens */
  --btn-pulse-color: rgba(255, 255, 255, 0.25);
  --btn-pulse-color-fade: rgba(255, 255, 255, 0);
  --base-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-shadow: var(--base-shadow);

  position: relative;
  overflow: hidden;
  z-index: 1;
  transform: translateZ(0);

  /* Smooth color, 3D transform and lighting transition */
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;

  /* Continuous pulse animation */
  animation: btn-pulse 3s ease-out infinite;
}

/* Background layer (allows shimmer sweep to sit between background and text) */
.closing-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  z-index: -2;
  transition: background-color 0.3s ease;
}

/* Shimmer sweep overlay */
.closing-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.0) 25%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0.0) 75%,
      transparent 100%);
  transform: skewX(-20deg);
  z-index: -1;
  pointer-events: none;
  animation: shimmer-sweep 6s infinite ease-in-out;
  transition: background 0.3s ease;
}

@keyframes shimmer-sweep {
  0% {
    left: -150%;
  }

  15% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

@keyframes btn-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--btn-pulse-color), var(--base-shadow);
  }

  100% {
    box-shadow: 0 0 0 20px var(--btn-pulse-color-fade), var(--base-shadow);
  }
}

.closing-btn:hover,
.closing-btn.is-hovered,
.closing-btn.reveal.in-view:hover,
.closing-btn.reveal.in-view.is-hovered {
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 34px rgba(255, 255, 255, 0.55);
}

.closing-btn:active,
.closing-btn.reveal.in-view:active {
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.closing-btn:hover::before,
.closing-btn.is-hovered::before,
.closing-btn.reveal.in-view:hover::before,
.closing-btn.reveal.in-view.is-hovered::before {
  background-color: #ffffff;
}

/* Slightly increase shimmer highlight on hover */
.closing-btn:hover::after,
.closing-btn.is-hovered::after {
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.0) 20%,
      rgba(255, 255, 255, 0.85) 50%,
      rgba(255, 255, 255, 0.0) 80%,
      transparent 100%);
}

/* Respect user prefers-reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
  .closing-btn {
    animation: none;
    transition: color 0.3s ease, box-shadow 0.3s ease;
  }

  .closing-btn:hover {
    transform: none;
  }

  .service-row-name {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
  }

  html.theme-day .stat-number,
  html.theme-day .stat-plus {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: #1a1a1a !important;
    color: #1a1a1a !important;
  }

  html.theme-night .stat-number,
  html.theme-night .stat-plus {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: #f5f5f4 !important;
    color: #f5f5f4 !important;
  }

  html.theme-day .stat-label {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: #5e5e5e !important;
    color: #5e5e5e !important;
  }

  html.theme-night .stat-label {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: #8a8a8e !important;
    color: #8a8a8e !important;
  }

  .service-row-spotlight,
  .service-border-glow,
  .service-card-canvas,
  .service-click-ripple {
    display: none !important;
  }
}

/* ==========================================================================
   SECTION 07 — FOOTER (PREMIUM)
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  padding: 56px 2rem 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: #0a0a0a !important;
  --icon-color: #ffffff !important;
  --footer-watermark-gradient: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
  transition: background-color var(--transition-speed) var(--transition-ease),
    border-color var(--transition-speed) var(--transition-ease);
}

html.theme-day .site-footer {
  background: #0a0a0a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  --icon-color: #e6e6e6 !important;
}

/* ── Row 1 — Brand ── */
.footer-row-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.footer-row-brand .footer-logo {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--transition-speed) var(--transition-ease);
}

html.theme-day .footer-row-brand .footer-logo {
  color: rgba(255, 255, 255, 0.70);
}

.footer-row-brand .footer-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.32);
  transition: color var(--transition-speed) var(--transition-ease);
}

html.theme-day .footer-row-brand .footer-tagline {
  color: rgba(255, 255, 255, 0.32);
}

/* ── Row 2 — Contact Icons (Premium Refinement) ── */

:root {
  --icon-color: #e6e6e6;
  /* Softer white/light-gray for Dark Mode */
  --smoke-color: rgba(26, 26, 26, 0.08);
  /* Soft dark charcoal smoke for Day Mode */
}

html.theme-day {
  --icon-color: #333333;
  /* Softer dark charcoal for Light Mode */
  --smoke-color: rgba(255, 255, 255, 0.08);
  /* Soft light-gray/white smoke for Night Mode */
}

/* Stacking contexts for Ruixen-style smoke reveal background */
.site-footer {
  position: relative !important;
  overflow: hidden !important;
  z-index: 2 !important;
}

.footer-inner {
  position: relative !important;
  z-index: 2 !important;
}

.footer-smoke-reveal {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) scaleY(0) !important;
  transform-origin: bottom !important;
  width: 100% !important;
  max-width: 1400px !important;
  height: 100% !important;
  min-height: 400px !important;
  background: radial-gradient(ellipse at bottom, var(--smoke-color) 0%, transparent 75%) !important;
  filter: blur(40px) !important;
  opacity: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  transition: none !important;
  /* Managed smoothly in JS with LERP */
}

/* Ensure no text labels are visible underneath the icons */
.site-footer .social-label,
.site-footer .footer-contact-label {
  display: none !important;
}

/* Horizontal alignment & spacing */
.site-footer .footer-socials {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 44px !important;
  /* Gap between icons: 44px */
  margin-bottom: 52px !important;
}

/* Float freely: no background, no border, no shadow, no containers */
.site-footer .footer-social-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-decoration: none !important;
  outline: none !important;
}

/* Icon specifications */
.site-footer .footer-icon {
  width: 36px !important;
  height: 36px !important;
  color: var(--icon-color) !important;
  opacity: 0.85 !important;
  transition: transform 0.25s ease, opacity 0.25s ease !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

/* Hover system: small scale (1.05), opacity 1 */
.site-footer .footer-social-link:hover .footer-icon {
  transform: scale(1.05) !important;
  opacity: 1 !important;
}

/* Overriding SVG properties to enforce outline style consistently */
.site-footer .footer-icon {
  fill: none !important;
  stroke: var(--icon-color) !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Responsive adjustments for gap */
@media (max-width: 480px) {
  .site-footer .footer-socials {
    gap: 28px !important;
    /* Slightly tighter on mobile to prevent wrap */
  }
}

/* ── Row 3 — Copyright ── */
.footer-row-copyright {
  width: 100%;
  max-width: 240px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

html.theme-day .footer-row-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-row-copyright .footer-copyright {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.18);
  transition: color var(--transition-speed) var(--transition-ease);
  margin: 0;
}

html.theme-day .footer-row-copyright .footer-copyright {
  color: rgba(255, 255, 255, 0.18);
}

/* ── Footer responsive ── */
@media (max-width: 480px) {
  .site-footer {
    padding: 40px 1.5rem 32px;
  }

  .footer-row-contacts {
    gap: 12px;
  }

  .footer-contact-item {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    top: 1.25rem;
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }



  .navbar {
    height: 50px;
    padding: 0 1rem;
  }

  .site-header.scrolled .navbar {
    height: 44px;
    padding: 0 0.85rem;
  }

  .hero-section {
    padding: 8.5rem 1.25rem 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  /* Personal Statement Mobile */
  .personal-statement-section {
    padding: 7rem 1.5rem;
  }

  /* Contact Closing Mobile */
  .contact-closing-section {
    padding: 8rem 1.5rem;
  }

  /* Footer Mobile */
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    max-width: 100%;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero-description {
    font-size: 0.95rem;
  }
}



/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

  html,
  .hero-video,
  .navbar,
  .site-header,
  .glass-knob,
  .project-card,
  .project-image-placeholder {
    transition: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════
   PAGE TRANSITION SYSTEM
═══════════════════════════════ */

/* CSS Variables for transition */
:root {
  --pt-bg-light: #F5F4F1;
  --pt-text-light: #111111;
  --pt-line-light: rgba(0, 0, 0, 0.15);
  --pt-progress-light: #111111;

  --pt-bg-dark: #0c0c0c;
  --pt-text-dark: #ffffff;
  --pt-line-dark: rgba(255, 255, 255, 0.12);
  --pt-progress-dark: #ffffff;
}

/* Main overlay */
.pt-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-overlay.pt-entering,
.pt-overlay.pt-visible,
.pt-overlay.pt-leaving {
  visibility: visible;
}

/* Background fill — Default Vertical for Page Refresh & Direct Load */
.pt-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--pt-bg-light);
  transform: translate3d(0, 100%, 0);
  will-change: transform;
}

.pt-overlay.pt-dir-forward .pt-bg {
  transform: translate3d(100%, 0, 0);
}

.pt-overlay.pt-dir-backward .pt-bg {
  transform: translate3d(-100%, 0, 0);
}

html.theme-night .pt-bg {
  background: var(--pt-bg-dark);
}

/* Center content container */
.pt-center {
  position: relative;
  top: auto;
  left: auto;
  transform: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 90vw;
  padding: 0 20px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

/* Eyebrow text */
.pt-eyebrow {
  display: none;
}

/* Page name — DM Sans Block Letters (Constant Size & Stable) */
.pt-page-name {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 72px !important;
  font-optical-sizing: none;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-text-light);
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Kill ALL transitions/transforms — zero flicker */
  transform: translateZ(0) !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
  transition: none !important;
  animation: none !important;
}

html.theme-night .pt-page-name {
  color: var(--pt-text-dark);
}

/* Progress line / Underline — Disabled */
.pt-progress {
  display: none !important;
}

/* ==========================================================================
   PAGE TRANSITION STATES (ISOLATED AXIS TRANSLATIONS)
   ========================================================================== */

/* ── 1. Page Refresh & Direct Load Default: Vertical Up-Down (Y-Axis Only) ── */
.pt-overlay.pt-entering .pt-bg {
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

.pt-overlay.pt-visible .pt-bg {
  transform: translate3d(0, 0, 0);
  transition: none;
}

.pt-overlay.pt-leaving .pt-bg {
  transform: translate3d(0, -100%, 0);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1) 0.05s;
}

/* ── 2. Forward / Rightwards Navigation (X-Axis: Right ➔ Left Sweep) ── */
.pt-overlay.pt-dir-forward.pt-entering .pt-bg {
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

.pt-overlay.pt-dir-forward.pt-visible .pt-bg {
  transform: translate3d(0, 0, 0);
  transition: none;
}

.pt-overlay.pt-dir-forward.pt-leaving .pt-bg {
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1) 0.05s;
}

/* ── 3. Backward / Leftwards Navigation (X-Axis: Left ➔ Right Sweep) ── */
.pt-overlay.pt-dir-backward.pt-entering .pt-bg {
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}

.pt-overlay.pt-dir-backward.pt-visible .pt-bg {
  transform: translate3d(0, 0, 0);
  transition: none;
}

.pt-overlay.pt-dir-backward.pt-leaving .pt-bg {
  transform: translate3d(100%, 0, 0);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1) 0.05s;
}

/* ── 4. MOBILE OVERRIDE (<= 768px: Always Pure Vertical) ── */
@media (max-width: 768px) {
  .pt-bg,
  .pt-overlay.pt-dir-forward .pt-bg,
  .pt-overlay.pt-dir-backward .pt-bg {
    transform: translate3d(0, 100%, 0);
  }

  .pt-overlay.pt-entering .pt-bg,
  .pt-overlay.pt-dir-forward.pt-entering .pt-bg,
  .pt-overlay.pt-dir-backward.pt-entering .pt-bg {
    transform: translate3d(0, 0, 0);
    transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  }

  .pt-overlay.pt-visible .pt-bg,
  .pt-overlay.pt-dir-forward.pt-visible .pt-bg,
  .pt-overlay.pt-dir-backward.pt-visible .pt-bg {
    transform: translate3d(0, 0, 0);
    transition: none;
  }

  .pt-overlay.pt-leaving .pt-bg,
  .pt-overlay.pt-dir-forward.pt-leaving .pt-bg,
  .pt-overlay.pt-dir-backward.pt-leaving .pt-bg {
    transform: translate3d(0, -100%, 0);
    transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1) 0.05s;
  }

  .pt-page-name {
    font-size: clamp(38px, 11vw, 54px) !important;
  }
}

/* Text hidden while curtain is still sweeping up/across */
.pt-overlay.pt-entering .pt-page-name {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Text visible ONLY when curtain fully covers screen */
.pt-overlay.pt-visible .pt-page-name {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Text hides together with curtain rolling up/away */
.pt-overlay.pt-leaving .pt-page-name {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Block pointer events when active */
.pt-overlay.pt-entering,
.pt-overlay.pt-visible {
  pointer-events: all;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE REFINEMENT SYSTEM
   (Desktop is 100% LOCKED. All rules below are scoped to <= 768px & Touch)
   ========================================================================== */

/* 1. Desktop Defaults for Mobile Navigation & Mobile Elements (Hidden on Laptop/Desktop) */
.mobile-menu-btn,
.mobile-nav-backdrop,
.mobile-nav-panel,
.closing-title-mobile {
  display: none;
}

.closing-title-desktop {
  display: inline;
}

/* 2. Touch vs Pointer Hover Isolation (Eliminates Sticky Hover States on Mobile) */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text-primary);
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-link:hover,
  .closing-btn:hover {
    transform: none !important;
  }

  .service-row::before {
    opacity: 0 !important;
    transition: opacity 0.15s ease !important;
  }

  .service-row:hover::before {
    opacity: 0 !important;
  }

  .service-row:hover {
    transform: none !important;
    box-shadow: var(--card-shadow) !important;
  }

  /* Glowing border appears on touch/press and vanishes instantly on release */
  .service-row.is-touch-active::before,
  .service-row:active::before {
    opacity: 1 !important;
  }

  .service-row.is-touch-active,
  .service-row:active {
    transform: scale(0.985) !important;
  }

  .mobile-nav-link:active,
  .closing-btn:active,
  .cp-submit-btn:active,
  .footer-social-link:active {
    transform: scale(0.96) !important;
    opacity: 0.9 !important;
  }
}

/* 3. Mobile Fluid Experience (<= 768px: 360px – 768px) */
@media (max-width: 768px) {

  /* ── Header & Premium Floating Hamburger Navigation ── */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 1000;
    pointer-events: none;
  }

  .site-header .navbar {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: fixed;
    top: 1.15rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), inset 0 1.5px 2px rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 1002;
    pointer-events: auto;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
  }

  html.theme-night .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1.5px 2px rgba(255, 255, 255, 0.25);
  }

  .hamburger-line {
    width: 18px;
    height: 1.75px;
    border-radius: 2px;
    background-color: #0f172a;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.3s ease;
    transform-origin: center;
  }

  html.theme-night .hamburger-line {
    background-color: #ffffff;
  }

  .mobile-menu-btn.is-active .line-1 {
    transform: translateY(6.75px) rotate(45deg);
  }

  .mobile-menu-btn.is-active .line-2 {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-btn.is-active .line-3 {
    transform: translateY(-6.75px) rotate(-45deg);
  }

  /* Backdrop */
  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    pointer-events: none;
  }

  .mobile-nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Right-Side Compact Floating Glass Navigation Panel */
  .mobile-nav-panel {
    display: block;
    position: fixed;
    top: 4.35rem;
    right: 1.25rem;
    width: min(220px, calc(100vw - 2.5rem));
    border-radius: 22px;
    padding: 0.65rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.16), inset 0 1.5px 2px rgba(255, 255, 255, 1);
    z-index: 1001;
    transform: translateY(-8px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }

  html.theme-night .mobile-nav-panel {
    background: rgba(18, 18, 22, 0.86);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.65), inset 0 1.5px 2px rgba(255, 255, 255, 0.22);
  }

  .mobile-nav-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-link {
    display: block;
    text-align: center;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 0.68rem 1rem;
    border-radius: 9999px;
    color: #334155;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.theme-night .mobile-nav-link {
    color: rgba(255, 255, 255, 0.78);
  }

  html.theme-day .mobile-nav-link.active {
    color: #0f172a;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08), inset 0 1px 1.5px rgba(255, 255, 255, 1);
  }

  html.theme-night .mobile-nav-link.active {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.12), inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
  }

  /* ── Hero Section (Home) — Vertically Centered ── */
  .hero-section {
    min-height: 100svh !important;
    height: 100svh !important;
    padding: 0 1.25rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
  }

  .hero-brand-logo {
    position: absolute !important;
    top: 1.15rem !important;
    left: 1.25rem !important;
    width: 120px !important;
    z-index: 20 !important;
  }

  .hero-content {
    max-width: 92% !important;
    margin: auto 0 !important;
    transform: translateY(-3vh) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
  }

  .hero-title {
    font-size: clamp(1.95rem, 7.5vw, 2.5rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
    margin: 0 !important;
  }

  .hero-eyebrow {
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 0.6rem !important;
  }

  .hero-bottom-control {
    position: absolute !important;
    bottom: clamp(3rem, 7vh, 4.25rem) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 20 !important;
  }



  /* ── Personal Statement Section ── */
  .personal-statement-section {
    padding: 4.5rem 1.25rem 3.5rem;
  }

  .statement-intro {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 1rem;
  }

  .statement-body {
    font-size: clamp(1.15rem, 4.5vw, 1.4rem);
    line-height: 1.45;
  }

  /* ── Stats Strip Section — Sleek Compact 2x2 Grid (No Unnecessary Scrolling) ── */
  .stats-strip-section {
    padding: 2.75rem 1.25rem !important;
  }

  .stats-heading-text {
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 1.75rem !important;
    text-align: center !important;
    padding: 0 0.5rem !important;
    line-height: 1.5 !important;
  }

  .stats-heading-text .stats-line {
    display: block !important;
  }

  .stats-heading-text .stats-sep {
    display: none !important;
  }

  .stats-container,
  .facts-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 1rem !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  .stat-divider,
  .fact-divider {
    display: none !important;
  }

  .stat-column,
  .fact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: auto !important;
    padding: 0 !important;
  }

  .stat-number,
  .fact-number {
    font-size: clamp(34px, 9vw, 42px) !important;
    line-height: 1 !important;
  }

  .stat-plus,
  .fact-plus {
    font-size: clamp(20px, 5.5vw, 24px) !important;
    line-height: 1 !important;
  }

  .stat-number-wrapper,
  .fact-value-wrapper {
    height: auto !important;
    margin-bottom: 2px !important;
  }

  .stat-label,
  .fact-label {
    font-size: 11.5px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
  }

  /* ── Services Section & Compact Cards (Zero Empty Vertical Space) ── */
  .services-section {
    padding: 3rem 1.25rem !important;
  }

  .services-header {
    margin-bottom: 2rem !important;
  }

  .services-title {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem) !important;
    line-height: 1.2 !important;
  }

  .services-list {
    gap: 0.75rem !important;
  }

  .service-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.25rem 1.15rem !important;
    gap: 0.35rem !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 14px !important;
  }

  .service-row-number {
    font-size: 12.5px !important;
    width: auto !important;
    margin-bottom: 0.15rem !important;
    flex: none !important;
  }

  .service-row-name {
    font-size: 17px !important;
    margin: 0 0 0.25rem 0 !important;
    flex: none !important;
    width: 100% !important;
  }

  .service-row-description {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    flex: none !important;
    width: calc(100% - 28px) !important;
  }

  .service-row-arrow {
    align-self: flex-end !important;
    margin-top: -1.25rem !important;
    font-size: 18px !important;
    flex: none !important;
  }

  .closing-title-desktop {
    display: none !important;
  }

  .closing-title-mobile {
    display: inline !important;
  }

  /* ── Footer — Exactly Matching Laptop Staggered Orientation with Ultra-Sleek Icons ── */
  @media (max-width: 768px) {
    html.theme-day .site-footer,
    html.theme-night .site-footer,
    .site-footer {
      padding: 5.5rem 0.5rem 5rem !important;
      min-height: 180px !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    .footer-inner {
      padding: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      min-height: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .footer-composition {
      flex-direction: row !important;
      align-items: center !important;
      justify-content: center !important;
      flex-wrap: nowrap !important;
      width: 100% !important;
      gap: clamp(5px, 1.5vw, 10px) !important;
    }

    .footer-watermark {
      font-size: clamp(2.4rem, 11vw, 4.2rem) !important;
      order: 0 !important;
      margin: 0 clamp(8px, 2.2vw, 18px) !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      letter-spacing: -0.01em !important;
    }

    .footer-icon-group {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: center !important;
      gap: clamp(5px, 1.5vw, 10px) !important;
      padding: 0 !important;
      flex: none !important;
      flex-shrink: 0 !important;
    }

    .footer-social-wrapper {
      display: inline-flex !important;
      flex-shrink: 0 !important;
      will-change: transform !important;
    }

    /* Exact Staggered Continuous Organic Floating Motion (Matching Laptop Physics) */
    .footer-social-wrapper--linkedin {
      animation: float-drifting-linkedin-m 4.8s ease-in-out infinite !important;
    }

    .footer-social-wrapper--whatsapp {
      animation: float-drifting-whatsapp-m 5.4s ease-in-out infinite !important;
      animation-delay: -1.5s !important;
    }

    .footer-social-wrapper--email {
      animation: float-drifting-email-m 6.0s ease-in-out infinite !important;
      animation-delay: -3.0s !important;
    }

    .footer-social-wrapper--github {
      animation: float-drifting-github-m 5.1s ease-in-out infinite !important;
      animation-delay: -4.5s !important;
    }

    @keyframes float-drifting-linkedin-m {
      0%, 100% {
        transform: translate(0, -7px);
      }
      25% {
        transform: translate(2px, -11px);
      }
      50% {
        transform: translate(0, -13px);
      }
      75% {
        transform: translate(-2px, -11px);
      }
    }

    @keyframes float-drifting-whatsapp-m {
      0%, 100% {
        transform: translate(0, 7px);
      }
      25% {
        transform: translate(-2px, 5px);
      }
      50% {
        transform: translate(0, 3px);
      }
      75% {
        transform: translate(2px, 5px);
      }
    }

    @keyframes float-drifting-email-m {
      0%, 100% {
        transform: translate(0, 7px);
      }
      25% {
        transform: translate(2px, 5px);
      }
      50% {
        transform: translate(0, 3px);
      }
      75% {
        transform: translate(-2px, 5px);
      }
    }

    @keyframes float-drifting-github-m {
      0%, 100% {
        transform: translate(0, -7px);
      }
      25% {
        transform: translate(-2px, -11px);
      }
      50% {
        transform: translate(0, -13px);
      }
      75% {
        transform: translate(2px, -11px);
      }
    }

    .footer-social-link {
      width: 22px !important;
      height: 22px !important;
      min-width: 22px !important;
      min-height: 22px !important;
      max-width: 22px !important;
      max-height: 22px !important;
      border-radius: 50% !important;
      flex-shrink: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      padding: 0 !important;
    }

    .footer-icon,
    .footer-social-link svg,
    .footer-social-link .footer-icon {
      width: 11px !important;
      height: 11px !important;
      min-width: 11px !important;
      min-height: 11px !important;
      max-width: 11px !important;
      max-height: 11px !important;
      display: block !important;
      flex-shrink: 0 !important;
    }
  }

  /* ── Break mobile helper ── */
  .break-mobile {
    display: inline !important;
  }

  .closing-title {
    font-size: clamp(2rem, 7.8vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  .cta-headline-wrapper {
    min-height: 140px !important;
  }



/* 4. Tablet Screen Corrections (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    max-width: 85%;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .stats-container {
    padding: 0 1rem;
  }

  .stat-number {
    font-size: 52px;
  }
}