/* ============================================================================
   PRAXIUM LABS - style.css
   Nepal's Premier AI Company | Production Stylesheet
   Version 2.0
   ============================================================================ */

/* --------------------------------------------------------------------------
   0. DESIGN TOKENS / CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Palette ---------------------------------------------------------------- */
  --black: #030303;
  --black-rich: #080808;
  --black-soft: #0d0d0d;
  --gray-900: #151515;
  --gray-800: #1f1f1f;
  --gray-700: #2a2a2a;
  --gray-600: #404040;
  --gray-500: #6b6b6b;
  --gray-400: #8a8a8a;
  --gray-300: #a0a0a0;
  --gray-200: #c5c5c5;
  --gray-100: #e0e0e0;
  --white: #f5f5f5;
  --white-pure: #ffffff;

  --crimson: #dc143c;
  --crimson-dark: #a01030;
  --crimson-light: #ff2d55;
  --crimson-glow: rgba(220, 20, 60, 0.5);

  --gold: #c9a227;
  --gold-light: #e8c547;

  /* Typography ------------------------------------------------------------- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Easing ----------------------------------------------------------------- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing ---------------------------------------------------------------- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Layout ----------------------------------------------------------------- */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 860px;
  --header-h: 80px;

  /* Radii ------------------------------------------------------------------ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Glassmorphism ---------------------------------------------------------- */
  --glass-bg: rgba(21, 21, 21, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(20px);

  /* Shadows ---------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--crimson-glow);

  /* Transitions ------------------------------------------------------------- */
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-base: 300ms var(--ease-out-expo);
  --transition-slow: 600ms var(--ease-out-expo);
  --transition-slower: 1000ms var(--ease-out-expo);
}

/* --------------------------------------------------------------------------
   1. MODERN CSS RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-300);
  background-color: #030303;
  background-color: var(--black);
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

input,
textarea,
select,
button,
[contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

p {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   2. UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Screen-reader only -------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* GPU layer promotion ------------------------------------------------------- */
.will-animate {
  will-change: transform, opacity;
}

/* SPA Page display --------------------------------------------------------- */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Button size modifiers ---------------------------------------------------- */
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   3. CUSTOM CURSOR
   -------------------------------------------------------------------------- */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--crimson);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              opacity 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo);
}

#cursor.clicking {
  width: 14px;
  height: 14px;
  border-color: var(--crimson-light);
}

#cursor.hovering {
  width: 50px;
  height: 50px;
  border-color: var(--crimson-light);
  background: rgba(220, 20, 60, 0.08);
}

#cursor.hidden {
  width: 0;
  height: 0;
  opacity: 0;
}

@media (pointer: coarse) {
  #cursor { display: none; }
}

/* --------------------------------------------------------------------------
   4. READING PROGRESS BAR
   -------------------------------------------------------------------------- */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson), var(--crimson-light));
  z-index: 10000;
  transition: width 80ms linear;
  transform-origin: left;
  will-change: width;
}

/* --------------------------------------------------------------------------
   5. PRELOADER
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity 0.6s var(--ease-out-expo),
              visibility 0.6s var(--ease-out-expo);
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* CSS-only fallback: auto-hide preloader after 3s if JS fails */
@keyframes preloaderFallback {
  0%, 80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
#preloader:not(.loaded) {
  animation: preloaderFallback 3s ease-out forwards;
}

/* Eye SVG animation */
.eye-outer {
  animation: eyeBlink 4s ease-in-out infinite;
}

.eye-iris {
  transform-origin: center;
  animation: eyeLook 6s ease-in-out infinite;
}

.eye-pupil {
  transform-origin: center;
  animation: pupilPulse 2s ease-in-out infinite;
}

.eye-reflection {
  animation: reflectionShimmer 2.5s ease-in-out infinite;
}

@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.05); }
}

@keyframes eyeLook {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
}

@keyframes pupilPulse {
  0%, 100% { r: 4; }
  50% { r: 5; }
}

@keyframes reflectionShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--gray-800);
  border-radius: var(--radius-full);
  margin-top: 2.5rem;
  overflow: hidden;
  position: relative;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson));
  transform-origin: left;
  animation: preloaderFill 2.4s var(--ease-out-expo) forwards;
}

@keyframes preloaderFill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.preloader-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 1rem;
  letter-spacing: 0.2em;
}

.preloader-text {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-500);
  overflow: hidden;
}

.preloader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.5s var(--ease-out-expo) forwards;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   6. PAGE TRANSITIONS
   -------------------------------------------------------------------------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  display: none;
}

.page-transition.active {
  display: flex;
}

.page-transition .panel {
  flex: 1;
  background: var(--crimson-dark);
  transform: scaleY(0);
  transform-origin: bottom;
}

.page-transition.active .panel {
  animation: panelUp 0.6s var(--ease-out-expo) forwards;
}

.page-transition.active .panel:nth-child(2) { animation-delay: 0.06s; }
.page-transition.active .panel:nth-child(3) { animation-delay: 0.12s; }
.page-transition.active .panel:nth-child(4) { animation-delay: 0.18s; }
.page-transition.active .panel:nth-child(5) { animation-delay: 0.24s; }

@keyframes panelUp {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  50.01% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* --------------------------------------------------------------------------
   7. COOKIE BANNER
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: calc(100% - 3rem);
  max-width: 680px;
  padding: 1.5rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.6s var(--ease-out-expo);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
  flex: 1;
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.cookie-banner p a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn.decline {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  background: transparent;
  cursor: pointer;
}

.cookie-btn.decline:hover {
  color: var(--white);
  border-color: var(--gray-500);
}

.cookie-btn.accept {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--white-pure);
  background: var(--crimson);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.cookie-btn.accept:hover {
  background: var(--crimson-light);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   8. EASTER EGG & NEPAL FLAG
   -------------------------------------------------------------------------- */
.easter-egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo),
              visibility 0.4s var(--ease-out-expo);
}

.easter-egg-overlay.active {
  opacity: 1;
  visibility: visible;
}

.easter-egg-overlay .easter-egg-content {
  text-align: center;
  max-width: 500px;
  padding: 2rem;
}

.nepal-flag {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 9990;
  width: 28px;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.nepal-flag:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   9. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 9000;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out-expo),
              backdrop-filter 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.header.scrolled {
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 9002;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-300);
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white-pure);
  background: var(--crimson);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background: var(--crimson-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--crimson-glow);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  z-index: 9002;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo),
              visibility 0.5s var(--ease-out-expo);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .mobile-link {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo),
              color 0.2s;
}

.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu .mobile-link:hover {
  color: var(--crimson);
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-cta.desktop-only { display: none; }
  .menu-toggle { display: flex; }
}

/* --------------------------------------------------------------------------
   10. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  right: 1.5rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  padding: 1rem 1.5rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--white);
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(100%);
  animation: toastIn 0.5s var(--ease-out-expo) forwards;
}

.toast.success { border-left: 3px solid #22c55e; }
.toast.error   { border-left: 3px solid var(--crimson); }
.toast.info    { border-left: 3px solid #3b82f6; }

.toast.removing {
  animation: toastOut 0.4s var(--ease-out-expo) forwards;
}

@keyframes toastIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(120%); }
}

/* --------------------------------------------------------------------------
   11. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 3, 3, 0.7) 0%,
    rgba(3, 3, 3, 0.5) 40%,
    rgba(3, 3, 3, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 6rem;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
}

.hero-badge .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--crimson);
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-title .accent {
  color: var(--crimson);
  font-style: italic;
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* CTA group */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-indicator span {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 48px;
  background: var(--gray-700);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--crimson);
  animation: scrollLine 2s var(--ease-out-expo) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Stats bar - positioned below hero section */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-stats-inner {
  display: flex;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* legacy .hero-stats .container selector kept for compatibility */

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--gray-800);
}

.stat-number {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   12. STORY STRIP
   -------------------------------------------------------------------------- */
.story-strip {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--gray-800);
}

.story-strip .container,
.story-strip-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.story-strip-item {
  padding: var(--space-lg) var(--space-xl);
  position: relative;
}

.story-strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--gray-800);
}

.story-strip-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crimson);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.story-strip-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.story-strip-text {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .story-strip .container,
  .story-strip-container {
    grid-template-columns: 1fr;
  }
  .story-strip-item:not(:last-child)::after {
    right: 10%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 80%;
  }
}

/* --------------------------------------------------------------------------
   13. SECTION HEADERS (shared)
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.section-label .dot {
  width: 6px;
  height: 6px;
  background: var(--crimson);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--crimson);
}

.section-description {
  font-size: 1.0625rem;
  color: var(--gray-400);
  max-width: 560px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-section,
.services {
  padding: var(--space-3xl) 0;
  background: var(--black-rich);
}

.services-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo),
              border-color 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(220, 20, 60, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 20, 60, 0.25);
  box-shadow: 0 8px 40px rgba(220, 20, 60, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.featured {
  grid-column: span 2;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--crimson);
  font-size: 1.5rem;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--crimson);
  transition: gap 0.3s var(--ease-out-expo);
}

.service-link:hover {
  gap: 0.875rem;
}

.service-link .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.service-link:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .services-mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .services-mega-grid {
    grid-template-columns: 1fr;
  }
  .service-card.featured {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   15. WORK / PORTFOLIO SECTION
   -------------------------------------------------------------------------- */
.work-section,
.work {
  padding: var(--space-3xl) 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.work-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  group: true;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(3, 3, 3, 0.9) 0%,
    rgba(3, 3, 3, 0) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-category {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.work-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.work-overlay p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   16. BLOG SLIDER SECTION
   -------------------------------------------------------------------------- */
.blog-slider-section {
  padding: var(--space-3xl) 0;
  background: var(--black-rich);
  overflow: hidden;
}

.blog-slider-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1rem;
}

.blog-slider-track::-webkit-scrollbar {
  display: none;
}

.blog-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-700);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.75rem;
}

.blog-card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.blog-slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-slider-nav button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-700);
  border-radius: 50%;
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.blog-slider-nav button:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

@media (max-width: 768px) {
  .blog-card {
    flex: 0 0 calc(100vw - 4rem);
  }
}

/* --------------------------------------------------------------------------
   17. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials-section,
.testimonials {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--gray-200);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  letter-spacing: -0.01em;
}

.testimonial-client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-700);
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
  color: var(--gold);
  font-size: 1rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-700);
  border: none;
  transition: var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--crimson);
  width: 24px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   18. CONSULTATION CTA
   -------------------------------------------------------------------------- */
.consultation-cta {
  padding: var(--space-3xl) 0;
  background: linear-gradient(
    135deg,
    var(--crimson-dark) 0%,
    var(--crimson) 50%,
    var(--crimson-dark) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.consultation-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
}

.consultation-cta .section-title {
  color: var(--white-pure);
  margin-bottom: 1rem;
}

.consultation-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* --------------------------------------------------------------------------
   19. CONTACT SECTION (Home page)
   -------------------------------------------------------------------------- */
.contact-section,
.contact {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.92);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: var(--gray-400);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  color: var(--crimson);
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-700);
  border-radius: 50%;
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.contact-social a:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: rgba(220, 20, 60, 0.08);
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   20. PAGE HERO (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 3, 3, 0.6) 0%,
    rgba(3, 3, 3, 0.9) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.page-hero-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero-title em {
  font-style: italic;
  color: var(--crimson);
}

.page-hero-description {
  font-size: 1.0625rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 540px;
}

/* --------------------------------------------------------------------------
   21. ABOUT PAGE
   -------------------------------------------------------------------------- */
.about-intro {
  padding: var(--space-3xl) 0;
}

.about-intro-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--gray-200);
  line-height: 1.45;
  max-width: 900px;
  letter-spacing: -0.01em;
}

.about-intro-text strong {
  color: var(--white);
  font-weight: 600;
}

/* Vision / Mission cards */
.vm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-bottom: var(--space-3xl);
}

.vm-card {
  padding: 3rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
}

.vm-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--crimson);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vm-card p {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .vm-cards { grid-template-columns: 1fr; }
}

/* Values grid */
.values-section {
  padding: var(--space-3xl) 0;
  background: var(--black-rich);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2.5rem;
  background: var(--black-soft);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
}

.value-card:hover {
  border-color: var(--gray-600);
  transform: translateY(-3px);
}

.value-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: rgba(220, 20, 60, 0.08);
  border-radius: var(--radius-md);
  color: var(--crimson);
  font-size: 1.5rem;
}

.value-card h3 {
  font-size: 1.0625rem;
  color: var(--white);
  margin-bottom: 0.625rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Timeline */
.timeline-section {
  padding: var(--space-3xl) 0;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-800);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.375rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crimson);
  border: 2px solid var(--black);
  transform: translateX(-50%);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crimson);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Team grid */
.team-section {
  padding: var(--space-3xl) 0;
  background: var(--black-rich);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
  transition: filter 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}

.team-card:hover .team-photo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.team-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
}

.team-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-700);
  border-radius: 50%;
  color: var(--gray-500);
  font-size: 0.8125rem;
  transition: var(--transition-fast);
}

.team-social a:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   22. SERVICES PAGE (Detail)
   -------------------------------------------------------------------------- */
.service-detail-section {
  padding: var(--space-3xl) 0;
}

.service-detail-grid {
  display: grid;
  gap: 4rem;
}

.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--gray-800);
}

.service-detail-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-detail-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 20, 60, 0.08);
  border-radius: var(--radius-lg);
  color: var(--crimson);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.service-detail-block h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.service-detail-block p {
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-300);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-300);
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

@media (max-width: 768px) {
  .service-detail-block {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   23. WORK PAGE (Case Studies)
   -------------------------------------------------------------------------- */
.case-study {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--gray-800);
}

.case-study:nth-child(even) {
  background: var(--black-rich);
}

.case-study-header {
  margin-bottom: 2.5rem;
}

.case-study-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.case-study-header p {
  font-size: 1.0625rem;
  color: var(--gray-400);
  max-width: 700px;
  line-height: 1.7;
}

.case-study-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.metric-card {
  padding: 1.5rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .case-study-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   24. CAREERS PAGE
   -------------------------------------------------------------------------- */
.culture-section {
  padding: var(--space-3xl) 0;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.perk-card {
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease-out-expo);
}

.perk-card:hover {
  border-color: var(--gray-600);
}

.perk-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.perk-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.perk-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .perks-grid { grid-template-columns: 1fr; }
}

/* Job listings */
.jobs-section {
  padding: var(--space-3xl) 0;
  background: var(--black-rich);
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  background: var(--black-soft);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo);
}

.job-card:hover {
  border-color: var(--gray-600);
  transform: translateX(4px);
}

.job-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.job-card-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.job-card-meta span {
  font-size: 0.8125rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.job-card-meta .type {
  color: var(--crimson);
  font-weight: 600;
}

.job-apply-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: var(--crimson);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.job-apply-btn:hover {
  background: var(--crimson-light);
}

@media (max-width: 768px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   25. BLOG PAGE
   -------------------------------------------------------------------------- */

/* Blog hero */
.blog-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  text-align: center;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
}

/* Blog grid */
.blog-grid-section {
  padding: 0 0 var(--space-3xl);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Blog Post page */
.blog-post-page {
  padding: calc(var(--header-h) + 3rem) 0 var(--space-3xl);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--crimson);
}

.breadcrumb .separator {
  color: var(--gray-600);
}

/* Post header */
.post-header {
  max-width: var(--container-narrow);
  margin: 0 auto 3rem;
  text-align: center;
}

.post-header .post-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.post-meta .reading-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.post-featured-image {
  width: 100%;
  aspect-ratio: 2/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post content layout */
.post-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Table of contents */
.toc-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}

.toc-sidebar h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.toc-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.toc-sidebar li a {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
  transition: color 0.2s;
  display: block;
  padding-left: 0.75rem;
  border-left: 1px solid var(--gray-800);
}

.toc-sidebar li a:hover,
.toc-sidebar li a.active {
  color: var(--white);
  border-left-color: var(--crimson);
}

/* Post content typography */
.post-content {
  max-width: var(--container-narrow);
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

.post-content p {
  font-size: 1.0625rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 3px solid var(--crimson);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--gray-900);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gray-200);
  margin-bottom: 0;
  line-height: 1.6;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--crimson-light);
  background: var(--gray-900);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

.post-content pre {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--gray-200);
  font-size: 0.875rem;
  line-height: 1.65;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.post-content a {
  color: var(--crimson);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(220, 20, 60, 0.3);
  transition: text-decoration-color 0.2s;
}

.post-content a:hover {
  text-decoration-color: var(--crimson);
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.author-bio p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Related posts */
.related-posts {
  padding: var(--space-2xl) 0;
}

.related-posts h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.post-tag {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.post-tag:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

/* --------------------------------------------------------------------------
   26. CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-page-section {
  padding: var(--space-3xl) 0;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.contact-method {
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.3s var(--ease-out-expo);
}

.contact-method:hover {
  border-color: var(--gray-600);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(220, 20, 60, 0.08);
  border-radius: 50%;
  color: var(--crimson);
  font-size: 1.25rem;
}

.contact-method h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.contact-method p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .contact-methods { grid-template-columns: 1fr; }
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   27. SERVICE SEO PAGES
   -------------------------------------------------------------------------- */
.service-seo-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  position: relative;
}

.service-seo-hero .breadcrumb {
  margin-bottom: 1.5rem;
}

.service-seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(220, 20, 60, 0.08);
  border: 1px solid rgba(220, 20, 60, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.service-seo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 800px;
}

.service-seo-hero .description {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.service-seo-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-seo-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.service-seo-meta-item strong {
  color: var(--white);
}

/* Content grid */
.service-seo-content {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.service-seo-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
}

.service-seo-main h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  margin: 2.5rem 0 1rem;
}

.service-seo-main p {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Sidebar */
.service-seo-sidebar {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.sidebar-card {
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 0.875rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* How-we-work */
.how-we-work {
  padding: var(--space-2xl) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step-card {
  counter-increment: step;
  position: relative;
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crimson);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .service-seo-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* Pricing tiers */
.pricing-section {
  padding: var(--space-2xl) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  padding: 2.5rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--crimson);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-pure);
  background: var(--crimson);
  border-radius: var(--radius-full);
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-800);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--gray-300);
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* FAQ accordion */
.faq-section {
  padding: var(--space-2xl) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-800);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--crimson);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-500);
  transition: transform 0.3s var(--ease-out-expo);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--crimson);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo),
              padding 0.4s var(--ease-out-expo);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* Quote form section */
.quote-section {
  padding: var(--space-3xl) 0;
  background: var(--black-rich);
}

/* --------------------------------------------------------------------------
   28. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-3xl) 0 0;
  background: var(--black-rich);
  border-top: 1px solid var(--gray-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  gap: 0;
  max-width: 320px;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.footer-newsletter input::placeholder {
  color: var(--gray-600);
}

.footer-newsletter input:focus {
  border-color: var(--crimson);
}

.footer-newsletter button {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white-pure);
  background: var(--crimson);
  border: 1px solid var(--crimson);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.2s;
}

.footer-newsletter button:hover {
  background: var(--crimson-light);
}

/* Footer columns */
.footer-column h4,
.footer-column h5 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-column li a {
  font-size: 0.8125rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer-column li a:hover {
  color: var(--white);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-800);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--gray-600);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--gray-300);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-800);
  border-radius: 50%;
  color: var(--gray-500);
  font-size: 0.8125rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   29. 404 PAGE
   -------------------------------------------------------------------------- */
.page-404 {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.page-404.active {
  display: flex;
}

.page-404-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  position: relative;
  -webkit-text-stroke: 1px var(--gray-800);
  animation: glitch404 3s infinite;
}

@keyframes glitch404 {
  0%, 90%, 100% { opacity: 1; }
  92% { opacity: 0.8; transform: translate(-2px, 1px); }
  94% { opacity: 1; transform: translate(1px, -1px); }
  96% { opacity: 0.8; transform: translate(-1px, 2px); }
  98% { opacity: 1; transform: translate(0); }
}

.page-404 h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-404 p {
  color: var(--gray-500);
  max-width: 400px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   30. SOCIAL SHARE BAR
   -------------------------------------------------------------------------- */
.social-share-bar {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-800);
  border-radius: 50%;
  color: var(--gray-500);
  background: var(--black-rich);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  transform: scale(1.1);
}

.share-btn.facebook:hover  { color: #1877f2; border-color: #1877f2; }
.share-btn.twitter:hover   { color: var(--white); border-color: var(--white); }
.share-btn.linkedin:hover  { color: #0a66c2; border-color: #0a66c2; }
.share-btn.whatsapp:hover  { color: #25d366; border-color: #25d366; }
.share-btn.copy:hover      { color: var(--gold); border-color: var(--gold); }

@media (max-width: 1024px) {
  .social-share-bar {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin: 2rem 0;
  }
}

/* --------------------------------------------------------------------------
   30b. BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 50%;
  color: var(--gray-400);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--white-pure);
}

/* Social share bar visibility */
.social-share-bar {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.social-share-bar.visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   31. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.4s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo),
              color 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  color: var(--white-pure);
  background: var(--crimson);
}

.btn-primary:hover {
  background: var(--crimson-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--crimson-glow);
}

.btn-outline {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gray-600);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  color: var(--black);
  background: var(--white-pure);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.15);
}

.btn .btn-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Magnetic wrapper */
.magnetic {
  display: inline-block;
  position: relative;
}

/* --------------------------------------------------------------------------
   32. FORM STYLES
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  font-size: 0.9375rem;
  color: var(--white);
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--gray-500);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.form-field textarea ~ label {
  top: 1.125rem;
  transform: none;
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label,
.form-field select:focus ~ label,
.form-field select:valid ~ label {
  top: 0.375rem;
  transform: none;
  font-size: 0.6875rem;
  color: var(--crimson);
  letter-spacing: 0.05em;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* Error state */
.form-field.error input,
.form-field.error textarea,
.form-field.error select {
  border-color: var(--crimson-light);
}

.form-field .error-message {
  font-size: 0.75rem;
  color: var(--crimson-light);
  margin-top: 0.375rem;
}

/* Form placeholders (used for floating label logic) */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: transparent;
}

/* Submit button */
.form-submit {
  margin-top: 0.5rem;
}

.form-submit .btn {
  white-space: nowrap;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  color: #22c55e;
  font-size: 1.75rem;
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray-400);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   33. REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-stagger.revealed > *:nth-child(9) { transition-delay: 0.64s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   34. LAZY LOADING IMAGES
   -------------------------------------------------------------------------- */
.lazy-image {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
}

.lazy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.05);
  transition: opacity 0.6s var(--ease-out-expo),
              filter 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.lazy-image.loaded img {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.lazy-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--gray-900) 0%,
    var(--gray-800) 50%,
    var(--gray-900) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
  transition: opacity 0.4s;
}

.lazy-image.loaded::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --------------------------------------------------------------------------
   35. RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */

/* Large screens (> 1440px) */
@media (min-width: 1441px) {
  :root {
    font-size: 17px;
  }
  .container {
    max-width: 1360px;
  }
}

/* Desktop adjustments */
@media (max-width: 1280px) {
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .hero-content {
    padding-top: calc(var(--header-h) + 3rem);
  }

}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-indicator {
    display: none;
  }

  .btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.8125rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .page-hero {
    min-height: 340px;
    padding: calc(var(--header-h) + 3rem) 0 3rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-badge {
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   36. PERFORMANCE OPTIMIZATIONS
   -------------------------------------------------------------------------- */

/* Promote animated elements to own compositing layer */
.header,
#cursor,
#readingProgress,
.page-transition .panel,
.mobile-menu,
.toast,
.scroll-indicator .scroll-line::after {
  will-change: transform;
  transform: translateZ(0);
}

/* Contain layout thrashing */
.service-card,
.blog-card,
.work-item,
.team-card,
.perk-card,
.job-card,
.pricing-card {
  contain: layout style;
}

/* --------------------------------------------------------------------------
   37. ACCESSIBILITY
   -------------------------------------------------------------------------- */

/* Focus-visible styles */
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-scale,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .lazy-image img {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .lazy-image::before {
    display: none;
  }

  #cursor {
    display: none;
  }
}

/* High contrast */
@media (forced-colors: active) {
  .btn-primary,
  .nav-cta,
  .cookie-btn.accept,
  .job-apply-btn {
    border: 2px solid ButtonText;
  }

  .service-card,
  .blog-card,
  .work-item,
  .pricing-card {
    border: 1px solid CanvasText;
  }

  :focus-visible {
    outline: 3px solid Highlight;
  }
}

/* --------------------------------------------------------------------------
   38. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .header,
  .footer,
  #cursor,
  #readingProgress,
  #preloader,
  .page-transition,
  .cookie-banner,
  .nepal-flag,
  .scroll-indicator,
  .social-share-bar,
  .toast-container,
  .mobile-menu,
  .menu-toggle {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  img {
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   TECHNOLOGY PARTNERS & CERTIFICATIONS
   -------------------------------------------------------------------------- */
.tech-partners {
  padding: var(--space-2xl) 0;
  background: var(--gray-900);
}

.tech-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.tech-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  transition: border-color 0.3s var(--ease-out-quint), transform 0.3s var(--ease-out-quint);
}

.tech-partner:hover {
  border-color: rgba(220, 20, 60, 0.3);
  transform: translateY(-4px);
}

.tech-partner-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-align: center;
}

.tech-partner-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.certifications-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
}

.certification {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-300);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.certification svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

@media (max-width: 1024px) {
  .tech-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certifications-bar {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   TRUSTED BY SECTION
   -------------------------------------------------------------------------- */
.trusted-by {
  padding: var(--space-xl) 0;
  background: var(--black);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.trusted-by-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.trusted-by-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trusted-logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-500);
  opacity: 0.6;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.trusted-logo:hover {
  opacity: 1;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   JOB APPLICATION MODAL
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--gray-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--crimson);
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.modal-content h3 span {
  color: var(--crimson);
  font-style: italic;
}

/* ==========================================================================
   SUPPLEMENTARY RULES: Bridge HTML structure to CSS
   These rules handle structural differences between components.
   ========================================================================== */

/* Case study grid layout -------------------------------------------------- */
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.case-study-grid.reverse {
  direction: rtl;
}

.case-study-grid.reverse > * {
  direction: ltr;
}

.case-study-content {
  margin-bottom: 0;
}

.case-study-content h3,
.case-study-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.case-study-content p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-study-category {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.case-study-content .case-study-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-study-content .case-study-metrics div {
  text-align: center;
  padding: 1rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
}

.case-study-content .case-study-metrics strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.25rem;
}

.case-study-content .case-study-metrics span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.case-study-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-study-tech span {
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-300);
  background: var(--gray-800);
  border-radius: var(--radius-full);
}

.case-study-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .case-study-grid,
  .case-study-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .case-study-content .case-study-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Job cards: bridge HTML structure ---------------------------------------- */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.job-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
}

.job-type {
  padding: 0.2rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--crimson);
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: var(--radius-full);
}

.job-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.job-card-meta span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* Team cards: bridge h4 elements ------------------------------------------ */
.team-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-card span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

/* Value card icon as number ----------------------------------------------- */
.value-card-icon {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--crimson);
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* Perk cards: bridge h4 elements ------------------------------------------ */
.perk-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.perk-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Blog card body: map h4 and p to expected styles ------------------------- */
.blog-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body time {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Contact form wrap ------------------------------------------------------- */
.contact-form-wrap {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-wrap h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* Contact page grid ------------------------------------------------------- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-page-title em {
  color: var(--crimson);
  font-style: italic;
}

@media (max-width: 768px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact grid on home page ----------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info h3 em {
  color: var(--crimson);
  font-style: italic;
}

.contact-info > p {
  color: var(--gray-400);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Contact details --------------------------------------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  color: var(--crimson);
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--crimson);
}

/* Contact methods (contact page) ------------------------------------------ */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  color: var(--crimson);
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-method p,
.contact-method a {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* Contact social ---------------------------------------------------------- */
.contact-social {
  display: flex;
  gap: 0.75rem;
}

.contact-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-800);
  border-radius: 50%;
  color: var(--gray-500);
  transition: var(--transition-fast);
}

.contact-social a:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.contact-social a svg {
  width: 18px;
  height: 18px;
}

/* Contact background ------------------------------------------------------ */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  position: relative;
  padding: var(--space-3xl) 0;
}

.contact > .container {
  position: relative;
  z-index: 1;
}

/* Technology partners ----------------------------------------------------- */
.tech-partners {
  padding: var(--space-2xl) 0;
  background: var(--black-rich);
}

.tech-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tech-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color 0.3s;
}

.tech-partner:hover {
  border-color: var(--gray-600);
}

.tech-partner-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.tech-partner-label {
  font-size: 0.6875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.certifications-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.certification {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.certification svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

@media (max-width: 768px) {
  .tech-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Trusted By section ------------------------------------------------------ */
.trusted-by {
  padding: var(--space-xl) 0;
  text-align: center;
}

.trusted-by-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.trusted-by-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.trusted-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.trusted-logo:hover {
  color: var(--gray-300);
}

/* Story strip section ----------------------------------------------------- */
.story-strip {
  padding: var(--space-2xl) 0;
  background: var(--black-rich);
  border-bottom: 1px solid var(--gray-800);
}

.story-strip-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.story-strip-item {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.story-strip-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--crimson);
  opacity: 0.5;
  padding-top: 0.25rem;
}

.story-strip-content h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.story-strip-content em {
  color: var(--crimson);
  font-style: italic;
}

.story-strip-content p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.story-strip-divider {
  width: 1px;
  height: 60px;
  background: var(--gray-800);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .story-strip-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .story-strip-divider {
    width: 60px;
    height: 1px;
  }
}

/* About intro section ----------------------------------------------------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-intro-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  line-height: 1.3;
}

.about-intro-grid h2 em {
  color: var(--crimson);
  font-style: italic;
}

.about-intro-grid p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Service detail blocks --------------------------------------------------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-detail-block {
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}

.service-detail-block:hover {
  border-color: var(--gray-600);
}

.service-detail-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--crimson);
}

.service-detail-block h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-detail-block p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-detail-tags span {
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-300);
  background: var(--gray-800);
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog post pages --------------------------------------------------------- */
.blog-post-page {
  padding-top: calc(var(--header-h) + 2rem);
}

.blog-post {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.blog-post-header {
  margin-bottom: 3rem;
}

.blog-breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.blog-breadcrumb a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: var(--crimson);
}

.blog-post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.blog-post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.blog-post-category {
  color: var(--crimson);
  font-weight: 600;
}

.blog-post-featured {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.blog-post-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin: 2.5rem 0 1rem;
}

.blog-post-body p {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}

.blog-post-body li {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--crimson);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gray-200);
}

.blog-post-body strong {
  color: var(--white);
}

/* Blog grid section ------------------------------------------------------- */
.blog-grid-section {
  padding: var(--space-2xl) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal pages ------------------------------------------------------------- */
.legal-page {
  padding-bottom: 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}

.legal-page p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--crimson);
}

/* Careers culture section ------------------------------------------------- */
.careers-culture {
  padding: var(--space-2xl) 0;
}

/* Blog hero section ------------------------------------------------------- */
.blog-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  text-align: center;
}

/* Section: generic padding ------------------------------------------------ */
.section {
  padding: var(--space-2xl) 0;
}

/* Consultation CTA content ------------------------------------------------ */
.consultation-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
}

.consultation-cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white-pure);
  margin-bottom: 1rem;
}

.consultation-cta-content h2 em {
  font-style: italic;
}

.consultation-cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Section CTA wrapper ----------------------------------------------------- */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Form success message ---------------------------------------------------- */
.form-success {
  text-align: center;
  padding: 2rem;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success-icon svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin: 0 auto 1rem;
}

.form-success h4 {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray-400);
}

/* Share label -------------------------------------------------------------- */
.share-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* em accent styles for section titles ------------------------------------- */
.section-title em,
.hero-title .accent,
em {
  color: var(--crimson);
  font-style: italic;
}

/* Hero stats override — now a static bar below hero */
/* (removed old absolute positioning) */

.stat-suffix {
  display: inline;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--crimson);
}

/* Service card badge ------------------------------------------------------ */
.service-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-pure);
  background: var(--crimson);
  border-radius: var(--radius-full);
}

/* Cookie button styles ---------------------------------------------------- */
.cookie-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.cookie-btn.accept {
  background: var(--crimson);
  color: var(--white-pure);
}

.cookie-btn.accept:hover {
  background: var(--crimson-light);
}

.cookie-btn.decline {
  background: transparent;
  color: var(--gray-400);
  border: 1px solid var(--gray-700);
}

.cookie-btn.decline:hover {
  border-color: var(--gray-500);
  color: var(--white);
}

/* Easter egg close button ------------------------------------------------- */
.easter-egg-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.easter-egg-close:hover {
  color: var(--white);
}

.easter-egg-content {
  position: relative;
  max-width: 400px;
  padding: 3rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  text-align: center;
}

.easter-egg-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin: 1rem 0;
}

.easter-egg-content p {
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.easter-egg-motto {
  color: var(--crimson);
  font-weight: 600;
}

.nepal-flag-art {
  margin-bottom: 1rem;
}

/* Reveal animation (see section 33 for full definitions) */
/* Lazy image (see section 34 for full definitions with shimmer) */

/* Section header center --------------------------------------------------- */
.section-header.center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 3rem;
}

/* Testimonials section alias ---------------------------------------------- */
.testimonials {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
}

/* Text-based avatar (initials) -------------------------------------------- */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--crimson);
  background: var(--gray-900);
  flex-shrink: 0;
}

.testimonial-client strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.testimonial-client span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* Work item image wrapper ------------------------------------------------- */
.work-image {
  width: 100%;
  height: 100%;
}

/* Work overlay children --------------------------------------------------- */
.work-category {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.work-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.work-overlay p {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.work-metrics {
  display: flex;
  gap: 1.5rem;
}

.work-metrics span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Service card title and desc --------------------------------------------- */
.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* btn-arrow SVG sizing ---------------------------------------------------- */
.btn-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* btn-text and btn-spinner for form buttons ------------------------------- */
.btn-text {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white-pure);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.loading .btn-text { visibility: hidden; }
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading .btn-arrow { display: none; }

/* No-wrap utility for buttons ---------------------------------------------- */
.btn-nowrap {
  white-space: nowrap;
}

/* Services View More grid ------------------------------------------------- */
.services-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 1024px) {
  .services-more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-more-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   VISUAL ENHANCEMENTS - World-Class Design Polish
   ========================================================================== */

/* --------------------------------------------------------------------------
   ENHANCEMENT 1: Hero Section - Gradient Glow & Text Gradient
   -------------------------------------------------------------------------- */
.hero-content {
  margin-inline: auto;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-title {
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(60px);
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 2: Buttons - Premium Feel
   -------------------------------------------------------------------------- */
.btn {
  letter-spacing: 0.06em;
  text-transform: none;
  white-space: nowrap;
}

.btn-primary {
  box-shadow: 0 2px 12px rgba(220, 20, 60, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(220, 20, 60, 0.35);
  transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 2px 12px rgba(220, 20, 60, 0.3);
}

.btn-outline {
  border: 1px solid rgba(220, 20, 60, 0.5);
  color: var(--crimson);
}

.btn-outline:hover {
  background: var(--crimson);
  color: var(--white-pure);
  border-color: var(--crimson);
  transform: translateY(-3px);
  box-shadow: 0 6px 30px var(--crimson-glow);
}

.btn-outline:active {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 3: Service Cards - Gradient Overlay & Featured
   -------------------------------------------------------------------------- */
.service-card {
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card.featured {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.06) 0%, rgba(21, 21, 21, 0.9) 100%);
  border-color: rgba(220, 20, 60, 0.2);
}

.service-card.featured .service-card-badge {
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(220, 20, 60, 0); }
}

.service-icon {
  background: rgba(220, 20, 60, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  width: 56px;
  height: 56px;
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 4: Work Portfolio - Always Visible Overlay
   -------------------------------------------------------------------------- */
.work-overlay {
  opacity: 1;
  background: linear-gradient(
    to top,
    rgba(3, 3, 3, 0.95) 0%,
    rgba(3, 3, 3, 0.6) 40%,
    rgba(3, 3, 3, 0.1) 70%,
    rgba(3, 3, 3, 0) 100%
  );
}

.work-item:hover .work-overlay {
  background: linear-gradient(
    to top,
    rgba(3, 3, 3, 0.98) 0%,
    rgba(3, 3, 3, 0.7) 50%,
    rgba(3, 3, 3, 0.2) 80%,
    rgba(3, 3, 3, 0) 100%
  );
}

.work-metrics span {
  padding: 0.25rem 0.625rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
}

.work-desc {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 5: Trusted By - Glassmorphism Cards
   -------------------------------------------------------------------------- */
.trusted-logo {
  padding: 0.875rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: opacity 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.trusted-logo:hover {
  border-color: rgba(220, 20, 60, 0.2);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 6: Tech Partners - Clean Grid with Subtle Borders
   -------------------------------------------------------------------------- */
.tech-partner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.tech-partner-name {
  font-weight: 700;
  font-size: 1.0625rem;
}

.tech-partner-label {
  color: var(--crimson);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 7: Testimonials - Glassmorphism & Gold Stars
   -------------------------------------------------------------------------- */
.testimonials-carousel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 3rem 2.5rem;
}

.testimonial-stars {
  color: var(--gold-light);
  font-size: 1.25rem;
  gap: 0.375rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gray-200);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5em;
  left: -0.25em;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--crimson);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-avatar {
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  color: var(--white-pure);
  border-color: var(--crimson);
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 8: Consultation CTA - White Button & Pattern Overlay
   -------------------------------------------------------------------------- */
.consultation-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.02) 20px,
      rgba(255, 255, 255, 0.02) 40px
    );
  pointer-events: none;
}

.consultation-cta .btn-primary {
  background: var(--white-pure);
  color: var(--crimson-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.consultation-cta .btn-primary:hover {
  background: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.consultation-cta .btn-primary .btn-arrow {
  stroke: var(--crimson-dark);
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 9: Footer - Clean Dark Design
   -------------------------------------------------------------------------- */
.footer {
  background: var(--black);
}

.footer-newsletter-wrap p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.footer-newsletter input {
  background: var(--gray-900);
  border-color: var(--gray-700);
}

.footer-newsletter input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.15);
}

.footer-newsletter button {
  background: var(--crimson);
  border-color: var(--crimson);
}

.footer-newsletter button:hover {
  background: var(--crimson-light);
  border-color: var(--crimson-light);
}

.footer-newsletter button svg {
  width: 16px;
  height: 16px;
}

.footer-column li a:hover {
  color: var(--crimson);
  padding-left: 4px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   ENHANCEMENT 10: General Polish
   -------------------------------------------------------------------------- */

/* em tags in section titles - crimson italic */
section em,
.section-title em,
.page-hero-title em,
.contact-info h3 em,
.contact-page-title em,
.consultation-cta-content h2 em,
.about-intro-grid h2 em {
  color: var(--crimson);
  font-style: italic;
}

/* Section header center alignment */
.section-header.center .section-description {
  margin-inline: auto;
}

/* Smooth hover for all interactive elements */
a, button {
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Blog post page typography enhancements */
.blog-post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-300);
}

.blog-post-body h2 {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--crimson);
}

.blog-post-body blockquote {
  background: var(--gray-900);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
}

/* Legal page typography */
.legal-page {
  padding-top: 0;
}

.legal-page h1 {
  padding-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page em {
  color: var(--gray-400);
  font-style: italic;
}

.legal-page h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-800);
}

/* Logo images */
.logo-full {
  height: 36px;
  width: auto;
}

.logo-mark {
  display: none;
}

@media (max-width: 768px) {
  .logo-full {
    display: none;
  }
  .logo-mark {
    display: block;
  }
}

/* Mobile nav link for 7th item */
.mobile-menu.open .mobile-link:nth-child(7) { transition-delay: 0.4s; }

/* Mobile menu inner layout */
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-footer {
  text-align: center;
}

.mobile-menu-email {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.mobile-menu-email:hover {
  color: var(--crimson);
}

.mobile-menu-social {
  display: flex;
  gap: 1.25rem;
}

.mobile-menu-social a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

.mobile-menu-social a:hover {
  color: var(--crimson);
}

/* Header actions layout */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Preloader inner wrapper */
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-eye {
  width: 100px;
}

/* Preloader bar track */
.preloader-bar-track {
  width: 200px;
  height: 2px;
  background: var(--gray-800);
  border-radius: var(--radius-full);
  margin-top: 2.5rem;
  overflow: hidden;
  position: relative;
}

.preloader-bar-track .preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson));
  transition: width 0.3s ease-out;
  border-radius: var(--radius-full);
}

/* Cursor dots */
.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--crimson);
}

.cursor-ring {
  width: 100%;
  height: 100%;
}

/* Desktop only utility */
.desktop-only {
  display: inline-flex;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none;
  }
}

/* Work image wrapper needs full size */
.work-image {
  position: absolute;
  inset: 0;
}

.work-image .lazy-image {
  width: 100%;
  height: 100%;
}

.work-item {
  position: relative;
}

/* Section CTA bottom margin */
.section-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
}

/* Blog slider section overrides */
.blog-slider {
  position: relative;
}

/* Testimonial dots spacing */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* Contact section z-index fix */
.contact > .container {
  position: relative;
  z-index: 1;
}

/* Values grid responsive fix */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Service link SVG sizing */
.service-link svg {
  width: 16px;
  height: 16px;
}

/* Contact method icon SVG sizing */
.contact-detail-icon svg,
.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

/* Cookie icon styling */
.cookie-icon {
  display: flex;
  align-items: center;
  color: var(--crimson);
  flex-shrink: 0;
}

.cookie-icon svg {
  width: 24px;
  height: 24px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  font-size: 0.8125rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact section background fix */
.contact-bg {
  opacity: 0.1;
}

/* Blog card in grid context (not slider) */
.blog-grid .blog-card {
  flex: none;
}

/* Smooth scrollbar for blog slider */
.blog-slider-track {
  scroll-padding: 0 2rem;
}

/* Blog hero section padding */
.blog-hero {
  background: var(--black);
}

/* Form grid in contact */
.contact-form-wrap .form-grid {
  margin-bottom: 1rem;
}

/* Modal overlay animation */
.modal {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  animation: slideUp 0.4s var(--ease-out-expo);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero stats mobile fix */
@media (max-width: 1024px) {
  .hero-stats-inner {
    flex-wrap: wrap;
  }
  .stat-item {
    flex: 1 1 33%;
  }
}

@media (max-width: 768px) {
  .hero-stats-inner {
    flex-direction: column;
    padding-inline: 0;
  }
  .stat-item {
    flex: none;
    width: 100%;
  }
  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--gray-800);
  }
}

/* Story strip container mobile override */
@media (max-width: 768px) {
  .story-strip-container {
    display: grid;
    grid-template-columns: 1fr;
  }
  .story-strip-divider {
    width: 60px;
    height: 1px;
    margin-inline: auto;
  }
}

/* Blog card categories */
.blog-card-category {
  display: block;
  margin-bottom: 0.75rem;
}

/* Work title in overlay */
.work-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* Team grid responsive */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth page transitions for SPA */
.page {
  animation: pageReveal 0.5s var(--ease-out-expo);
}

@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service detail tags */
.service-detail-tags span:hover {
  background: rgba(220, 20, 60, 0.1);
  color: var(--crimson);
}

/* Case study tech tags hover */
.case-study-tech span:hover {
  background: var(--gray-700);
  color: var(--white);
}

/* Contact social SVG sizing */
.contact-social a svg {
  width: 18px;
  height: 18px;
}

/* Scroll indicator hide on small */
@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

/* Certifications responsive */
@media (max-width: 480px) {
  .certifications-bar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Blog slider nav buttons SVG */
.blog-slider-nav button svg {
  width: 20px;
  height: 20px;
}

/* Back to top hover glow */
.back-to-top:hover {
  box-shadow: 0 4px 20px var(--crimson-glow);
}

/* Back to top SVG sizing */
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Footer bottom on mobile */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* Job apply button override for outline style in careers */
.job-card .btn.btn-outline.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--crimson);
  border-color: rgba(220, 20, 60, 0.4);
}

.job-card .btn.btn-outline.btn-sm:hover {
  background: var(--crimson);
  color: var(--white-pure);
  border-color: var(--crimson);
}

/* ============================================================================
   ENHANCED RESPONSIVENESS - SMALL MOBILE (480px and below)
   ============================================================================ */

@media (max-width: 480px) {
  /* Typography scaling */
  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem) !important;
    line-height: 1.15;
    white-space: nowrap;
  }
  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
  }
  .page-hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    line-height: 1.15;
  }
  .page-hero-description {
    font-size: 0.875rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero section */
  .hero-content {
    padding: 0 0.5rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-stats-inner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  .stat-item {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }

  /* Story strip */
  .story-strip-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .story-strip-divider {
    display: none;
  }
  .story-strip-item {
    padding: 1rem;
  }

  /* Trusted by logos */
  .trusted-by-logos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  /* Service cards grid */
  .services-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .services-more-grid {
    grid-template-columns: 1fr !important;
  }

  /* Work grid */
  .work-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .work-overlay {
    padding: 1rem;
  }
  .work-metrics {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .work-metrics span {
    font-size: 0.7rem;
  }

  /* Testimonials */
  .testimonial-quote {
    font-size: 0.95rem !important;
    line-height: 1.6;
    padding: 0 0.25rem;
  }
  .testimonial-client {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Blog cards */
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  .blog-card-body h4 {
    font-size: 1rem;
  }
  .blog-slider-track {
    gap: 0.75rem;
  }

  /* Contact grid */
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .form-field.full-width {
    grid-column: 1;
  }

  /* Tech partners */
  .tech-partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  /* Values grid */
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Certifications bar */
  .certifications-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  /* About intro */
  .about-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Case study */
  .case-study-grid {
    grid-template-columns: 1fr !important;
  }
  .case-study-metrics {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  /* Perks / careers */
  .perks-grid {
    grid-template-columns: 1fr !important;
  }
  .jobs-grid {
    grid-template-columns: 1fr !important;
  }

  /* Consultation CTA */
  .consultation-cta-content h2 {
    font-size: 1.4rem;
  }
  .consultation-cta-content .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Service detail grid */
  .service-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .service-detail-tags {
    flex-wrap: wrap;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .footer-newsletter {
    flex-direction: column;
  }
  .footer-newsletter input {
    width: 100%;
  }

  /* Blog post */
  .blog-post-header h1 {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }
  .blog-post-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .blog-post-body {
    font-size: 0.9rem;
  }

  /* Buttons */
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Cookie banner */
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions .cookie-btn {
    width: 100%;
  }

  /* Toast */
  #toastContainer {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  /* Modal */
  .job-modal {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Page hero */
  .page-hero {
    min-height: 50vh;
  }
  .page-hero-content {
    padding: 0 0.5rem;
  }
  .page-hero-label {
    font-size: 0.7rem;
  }

  /* Legal pages */
  .legal-page .container {
    padding-top: 5rem !important;
  }
  .legal-page h1 {
    font-size: 1.5rem;
  }
  .legal-page h2 {
    font-size: 1.2rem;
  }

  /* 404 page */
  .page-404-number {
    font-size: clamp(4rem, 20vw, 8rem);
  }

  /* Breadcrumb */
  .blog-breadcrumb {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  /* Section spacing reduction */
  .section {
    padding: 3rem 0;
  }
  .page-hero {
    padding: 0;
  }

  /* Header compact */
  .header .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .logo-full {
    max-width: 120px;
  }
}

/* ============================================================================
   EXTRA SMALL DEVICES (320px)
   ============================================================================ */
@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(1.2rem, 6.5vw, 1.5rem) !important;
    white-space: nowrap;
  }
  .section-title {
    font-size: 1.25rem !important;
  }
  .hero-cta .btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  .service-card {
    padding: 1rem;
  }
  .value-card {
    padding: 1rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .consultation-cta-content h2 {
    font-size: 1.2rem;
  }
}

/* ============================================================================
   LANDSCAPE PHONES
   ============================================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  .page-hero {
    min-height: 60vh;
  }
  .hero-stats-inner {
    flex-direction: row;
  }
}

/* ============================================================================
   IMPROVED CONTRAST FOR ACCESSIBILITY
   ============================================================================ */
.scroll-indicator span,
.share-btn {
  color: var(--gray-300);
}
.contact-method {
  color: var(--gray-200);
}

/* ============================================================================
   ENHANCED FOCUS STYLES FOR INTERACTIVE ELEMENTS
   ============================================================================ */
.share-btn:focus-visible,
.easter-egg-close:focus-visible,
.mobile-menu-email:focus-visible,
.mobile-menu-social a:focus-visible,
.cookie-btn:focus-visible,
.testimonial-dot:focus-visible,
.back-to-top:focus-visible,
.blog-slider-prev:focus-visible,
.blog-slider-next:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

/* ============================================================================
   TABLET PORTRAIT IMPROVEMENTS (768px)
   ============================================================================ */
@media (max-width: 768px) {
  .services-mega-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    text-align: center;
    justify-content: center;
  }
  .story-strip-container {
    flex-direction: column;
  }
  .story-strip-divider {
    display: none;
  }
  .contact-details {
    gap: 1.5rem;
  }
}

/* ============================================================================
   TOUCH DEVICE ENHANCEMENTS
   ============================================================================ */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  .nav-link,
  .mobile-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .service-card {
    transform: none !important;
  }
  .share-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .testimonial-dot {
    min-width: 16px;
    min-height: 16px;
  }
  .cookie-btn {
    min-height: 44px;
  }
  .filter-tag,
  .category-tag {
    min-height: 36px;
    padding: 0.5rem 1rem;
  }
}
