/* ============================================================
   ISG — Material Design 3 Dark Theme
   Background: rgb(0,0,0) · Accent: #800000
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* MD3 Dark Color Scheme */
  --md-background: rgb(0, 0, 0);
  --md-surface: #0e0e0e;
  --md-surface-1: #141414;
  --md-surface-2: #1a1a1a;
  --md-surface-3: #202020;
  --md-surface-4: #262626;
  --md-on-surface: #e6e1e5;
  --md-on-surface-variant: #938f99;
  --md-outline: rgba(255, 255, 255, 0.08);
  --md-outline-variant: rgba(255, 255, 255, 0.04);

  /* ISG Brand */
  --isg-red: #9a1515;
  --isg-red-light: #b83030;
  --isg-red-bright: #d42020;
  --isg-red-container: rgba(154, 21, 21, 0.18);
  --isg-red-glow: rgba(154, 21, 21, 0.45);

  /* Typography */
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Space Grotesk", -apple-system, sans-serif;

  /* MD3 Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 28px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Transitions */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-short: 150ms;
  --duration-medium: 250ms;
  --duration-long: 400ms;
}

*:focus-visible {
  outline: 2px solid var(--md-on-surface);
  outline-offset: 4px;
  border-radius: 4px;
}

html,
body {
  /* Prevent horizontal scroll globally, fix iOS issues */
  overflow-x: hidden !important;
  width: 100vw;
  max-width: 100%;
  position: relative;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: rgb(0, 0, 0);
  /* Ensures no white flashes if body hasn't painted or during scroll bounce */
}

html:has(body.theme-light) {
  background-color: #e8e8e9;
}

body {
  font-family: var(--font-body);
  background-color: var(--md-background);
  color: var(--md-on-surface);
  line-height: 1.6;
}

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

/* --- 3D Wireframe Background --- */
#geo-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Ensure content sits above bg-lines */
.nav,
.hero,
.stats,
.services,
.heritage,
.approach,
.contact,
.footer {
  position: relative;
  z-index: 1;
}

/* --- Cursor Spotlight --- REMOVED per user request */
.cursor-spotlight {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* --- Scroll Animation Base --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(15px);
  /* Reduced from 30px for snappier entry */
  transition:
    opacity var(--duration-long) var(--ease-out),
    transform var(--duration-long) var(--ease-out);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Ambient Geometric Shapes --- */
.ambient-shape {
  position: fixed;
  border-radius: 50%;
  /* Removed heavy filter: blur(80px) which destroys GPU performance over canvas */
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  animation: ambientFloat 30s infinite alternate ease-in-out;
}

.ambient-shape--1 {
  width: 400px;
  height: 400px;
  /* Use radial gradient instead of solid background + blur */
  background: radial-gradient(circle, var(--isg-red-light) 0%, transparent 70%);
  top: 10%;
  left: 20%;
  animation-duration: 40s;
}

.ambient-shape--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4a0000 0%, transparent 70%);
  bottom: -10%;
  right: 10%;
  animation-duration: 45s;
  animation-delay: -15s;
}

.ambient-shape--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ff3333 0%, transparent 70%);
  top: 40%;
  right: 40%;
  opacity: 0.1;
  animation-duration: 35s;
  animation-delay: -5s;
}

/* Hide ambient shapes on mobile to free GPU compositor layers */
@media (max-width: 768px) {
  .ambient-shape {
    display: none;
  }
}

@keyframes ambientFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(40px, 40px) scale(1.05);
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  transition: padding var(--duration-medium) var(--ease-out);
}

.nav.is-scrolled {
  padding: 0.75rem var(--space-md);
}

.nav__inner {
  max-width: 1100px;
  /* Align with typical ultra-wide screen width */
  margin: 0 auto;
  /* Keep original margin auto for centering */
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* Restored to 1fr auto 1fr for perfect center focus */
  align-items: center;
  padding: 0.35rem 1rem;
  /* 20% taller header (from original 0 effective vertical padding) */
  height: auto;
  width: 100%;
  border-radius: 100px;
  /* Highly rounded pill header */
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Apple-style Liquid Glass - Optimized for Performance */
  background: rgba(22, 22, 22, 0.55);
  /* More transparent background */
  backdrop-filter: blur(40px);
  /* Increased blur for deep liquid glass feel */
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  /* Brighter top highlight */
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);

  /* Hardware Acceleration - Isolate the header into its own compositor layer */
  transform: translateZ(0);
  will-change: transform;

  /* Overflow hidden on desktop to clip glow orb; mobile overrides to visible */
  overflow: hidden;
  --nav-highlight-angle: 135deg;
  --nav-highlight-opacity: 0;

  /* Isolate blend modes so the noise texture doesn't bleed into the glow orb */
  isolation: isolate;
}

/* Noise Texture Layer for Vision Pro Feel */
.nav__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  /* Above glow orb (z:0) to prevent blend-mode interaction */
  opacity: 0.07;
  /* Subtle grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: inherit;
  /* Clip noise to pill shape on iPad/Safari */
}

/* Specular highlight overlay — follows mouse */
.nav__inner::after {
  /* Changed from ::before to ::after to avoid conflict with noise layer */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1px;
  background: linear-gradient(var(--nav-highlight-angle),
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.12) 33%,
      rgba(255, 255, 255, 0.25) 66%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mix-blend-mode: screen;
  opacity: var(--nav-highlight-opacity);
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.nav.is-scrolled .nav__inner {
  /* Thick High-Volume Glass Effect */
  background: rgba(45, 45, 45, 0.4);

  /* Extreme Blur & Saturation */
  /* Optimized Glass Panels */
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* 3D Cut Glass Edges */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);

  /* Voluminous 3D Shadows */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    inset 0 10px 20px rgba(255, 255, 255, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 0, 0, 0.4);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center the red line over text */
  gap: 0;
  /* Reduced to move line closer to text */
  transition: color var(--duration-short) var(--ease-out);
  z-index: 10;
  /* Above the nav links */
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-left: 0;
}

/* Restored nav logo line with requested adjustments */
.nav__logo-line {
  width: 66px;
  /* Increased to span all 3 letters */
  height: 4px;
  /* Narrower line (was 4px) */
  background-color: var(--isg-red);
  border-radius: 4px;
  transition: background-color var(--duration-short) var(--ease-out);
  /* Transition color instead of width */
  margin-top: 0px;
  margin-bottom: 2px;
  /* Space between line and text */
}

.nav__logo:hover .nav__logo-line {
  background-color: #ffffff !important;
  /* Red line turns white on hover */
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  /* Increased size (was 1.85rem) */
  font-weight: 800;
  /* Bolder text */
  letter-spacing: 0.05em;
  color: #ffffff;
  /* Make letters white as default */
  line-height: 1;
  /* Removes invisible font padding for perfect centering */
  display: block;
  transition: color var(--duration-short) var(--ease-out);
}

.nav__logo:hover .nav__logo-text {
  color: var(--isg-red) !important;
  /* Letters turn red on hover */
}

/* removed 3D hover effect from nav */

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 10;
  /* Span only the center column for perfect center alignment */
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

/* Sliding active indicator (Red Liquid Glass) */
.nav__indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--indicator-left, 0);
  width: var(--indicator-width, 0);
  height: 48px;
  /* Increased height to match taller header */
  border-radius: var(--radius-xl);
  z-index: 0;
  opacity: var(--indicator-opacity, 0);
  transition:
    left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s var(--ease-out);
  pointer-events: none;

  /* Liquid Glass Core */
  background: rgba(180, 20, 20, 0.55);
  /* More saturated red */
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  /* Hard top edge reflection (inner white stroke) + Shadow depth */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  /* Stronger specular highlight */

  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.4),
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(120, 10, 10, 0.4);
}

/* Simulated 3D light reflection across the top curve */
.nav__indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  /* Only glare the top half */
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  pointer-events: none;
}

/* Glow orb: flies from ISG logo → active nav link */
.nav__glow-orb {
  position: absolute;
  top: 50%;
  pointer-events: none;
  z-index: 0;
  left: var(--orb-left, 0);
  width: var(--orb-width, 20px);
  height: var(--orb-height, 20px);
  border-radius: var(--orb-radius, 50%);
  opacity: var(--orb-opacity, 0);
  transform: translateY(-50%);
  background: var(--orb-bg, transparent);
  box-shadow: var(--orb-shadow, none);
  will-change: left, width, height, opacity, filter;
  contain: layout style;
  transition:
    left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    opacity 0.35s ease,
    box-shadow 0.5s ease,
    border 0.4s ease,
    backdrop-filter 0.4s ease,
    filter 0.4s ease;
}

/* No transitions during scroll-driven morph */
.nav__glow-orb.is-morphing {
  transition: none !important;
}

/* Logo state: shapeless ambient glow using radial-gradient + blur (no circle edge) */
.nav__glow-orb.is-logo-glow {
  --orb-bg: radial-gradient(ellipse at center,
      rgba(154, 21, 21, 0.45) 0%,
      rgba(154, 21, 21, 0.25) 30%,
      rgba(154, 21, 21, 0.1) 60%,
      transparent 100%);
  --orb-shadow: none;
  filter: blur(30px);
  border: 1px solid transparent;
  border-top: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__glow-orb.is-logo-glow::after {
  display: none;
}

/* Pill state: Apple-style Liquid Glass — dark, inset, refractive */
.nav__glow-orb.is-pill {
  --orb-bg: rgba(120, 10, 10, 0.75);
  --orb-shadow:
    /* Inner top highlight — bright specular edge */
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    /* Inner glow — soft warm light pooling at top */
    inset 0 6px 16px rgba(200, 40, 40, 0.2),
    /* Inner bottom shadow — depth/thickness */
    inset 0 -2px 6px rgba(60, 0, 0, 0.7),
    /* Outer glow — subtle lift */
    0 4px 12px rgba(100, 10, 10, 0.5),
    0 0 4px rgba(180, 20, 20, 0.3);
  filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  background: var(--orb-bg);
  box-shadow: var(--orb-shadow);
  backdrop-filter: blur(40px) saturate(250%) brightness(0.85);
  -webkit-backdrop-filter: blur(40px) saturate(250%) brightness(0.85);
}

/* Specular shine sweep — slow, subtle */
.nav__glow-orb.is-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.05) 46%,
      rgba(255, 255, 255, 0.03) 54%,
      transparent 62%,
      transparent 100%);
  background-size: 300% 100%;
  opacity: 1;
  animation: pillShine 3s infinite ease-in-out;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Prismatic / rainbow edge highlight — very subtle */
.nav__glow-orb.is-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
      rgba(255, 100, 100, 0.08),
      rgba(100, 200, 255, 0.06),
      rgba(150, 255, 150, 0.05),
      rgba(255, 200, 100, 0.06),
      rgba(255, 100, 100, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.3;
}

@keyframes pillShine {
  0% {
    background-position: 300% 0;
  }

  100% {
    background-position: -300% 0;
  }
}

.nav__link {
  font-size: 1.35rem;
  /* Larger nav font size */
  font-weight: 600;
  /* Heavier weight */
  color: var(--md-on-surface-variant);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-short) var(--ease-out),
    background-color var(--duration-short) var(--ease-out);
  position: relative;
  z-index: 10;
  /* Sit above the indicator */
}

.nav__link:hover {
  color: var(--md-on-surface);
}

.nav__link.is-active {
  color: #ffffff;
  /* Turn white when active to contrast the dark red pill */
}

.nav__link--cta:hover {
  background-color: var(--isg-red-light);
  color: #fff;
  transform: none !important;
  /* NUCLEAR OPTION: ABSOLUTELY NO MOVEMENT */
  box-shadow: 0 4px 16px rgba(128, 0, 0, 0.3);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Reduced red background blur as requested */
/* .hero::before { 
    display: none; 
} */

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle,
      rgba(128, 0, 0, 0.15) 0%,
      transparent 70%);
  /* Significantly reduced opacity */
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.3;
  /* Lower opacity */
}

.hero::after {
  display: none;
  /* Removed the second pulse for cleaner look */
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  /* Pushes all hero content down as requested */
}

.hero__logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-md);
}

/* .hero__line removed per user request */

@keyframes lineExpand {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 80px;
    opacity: 1;
  }
}

.hero__title {
  font-family: var(--font-serif);
  /* Desktop: Decreased 30% from the previous large scale */
  font-size: clamp(10rem, 25vw, 22rem);
  /* Massive 2-line presence */
  letter-spacing: 0.02em;
  font-weight: 900;
  /* Increased weight globally */
  line-height: 0.8;
  /* Very tight line height for 2 lines */
  color: #fff;
  /* Removed old text-shadows as new texture handles it */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: -4rem;
  margin-bottom: var(--space-xl);
}

.hero__letter {
  display: inline-block;
  position: relative;
  animation: letterReveal 0.9s var(--ease-out) calc(0.4s + var(--i) * 0.12s) both;

  /* High Volume 3D Style (Requested: More Volume/Thickness) */
  color: rgba(255, 255, 255, 0.95);
  /* Deep multi-layered extrusion for massive volume */
  text-shadow:
    0px 1px 0px #d4d4d4,
    0px 2px 0px #c6c6c6,
    0px 3px 0px #b8b8b8,
    0px 4px 0px #aaaaaa,
    0px 5px 0px #9c9c9c,
    0px 6px 0px #8e8e8e,
    0px 7px 0px #808080,
    0px 8px 0px #727272,
    0px 9px 0px #646464,
    0px 10px 0px #565656,
    0px 11px 0px #484848,
    0px 12px 0px #3a3a3a,
    0px 13px 0px #2c2c2c,
    0px 14px 20px rgba(0, 0, 0, 0.7),
    /* Massive drop shadow for lift */
    0 0 30px rgba(255, 255, 255, 0.15);

  /* Enriched gradient to simulate curved surface */
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 40%, #c0c0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Hard Glass Reflection for Hero Letters */
.hero__letter::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  /* Sharp diagonal shine */
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

@keyframes letterReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.85);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero__subtitle {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.7s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__tagline {
  font-size: 1.45rem;
  /* Smaller font for better hierarchy */
  font-weight: 400;
  color: #ffffff;
  margin-top: 2rem;
  line-height: 1.45;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: 2.5rem;
  animation: fadeInUp 0.8s var(--ease-out) 1.1s both;
}

.hero__actions .btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.hero-action-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 260px;
  /* Fixed width for uniformity */
  padding: 20px 36px;
  /* 25% taller (was 16px) */
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: #ffffff;

  /* Premium Matte Glass Finish - Optimized */
  background: rgba(35, 35, 35, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    inset 0 10px 20px rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-action-pill:hover {
  color: var(--isg-red);
  background: rgba(50, 50, 50, 0.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    inset 0 10px 24px rgba(255, 255, 255, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(154, 21, 21, 0.2);
}

/* LinkedIn pill: override generic red hover — go straight to blue */
.hero-action-pill--linkedin:hover {
  color: #0077b5;
}

.hero-action-pill--icon {
  display: grid !important;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  padding: 6px 0;
  /* Taller buttons — 50% more height */
  overflow: hidden;
}

.hero-action-pill--icon .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  padding: 8px 12px;
  /* Reduced from 20px — tighter icon space */
}

.hero-action-pill--icon .icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  fill: currentColor;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
    fill 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-action-pill--icon .btn__text {
  grid-column: 2 / 4;
  /* Span across the right side to center naturally */
  text-align: center;
  padding-right: 44px;
  /* Offset to counter the width of the left icon block */
  transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-action-pill--linkedin:hover .icon,
.hero-action-pill--linkedin:hover .btn__text {
  color: #0077b5;
}

.hero-action-pill--linkedin:hover .icon {
  fill: #0077b5;
}

body.theme-light .hero-linkedin-btn:hover {
  color: #0077b5 !important;
}

/* --- LinkedIn SVG Hover Enhancement --- */
.hero-linkedin-btn .linkedin-icon,
.company-linkedin-btn .linkedin-icon,
.linkedin-circle-btn .linkedin-icon {
  transition:
    fill 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
    color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-linkedin-btn:hover .linkedin-icon,
.company-linkedin-btn:hover .linkedin-icon,
.linkedin-circle-btn:hover .linkedin-icon {
  color: #0077b5 !important;
  fill: #0077b5 !important;
}

.company-linkedin-btn {
  border-radius: 100px !important;
  /* Perfect pill shape */
  gap: 24px !important;
  /* Extra space to differentiate logo from text */
  padding: 16px 36px !important;
  background: rgba(35, 35, 35, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    inset 0 10px 20px rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.company-linkedin-btn .linkedin-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 16px;
  box-sizing: content-box;
  transition: inherit;
}

.company-linkedin-btn:hover {
  background: rgba(50, 50, 50, 0.8) !important;
  color: #0077b5 !important;
  /* Force text to blue */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    inset 0 10px 24px rgba(255, 255, 255, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(154, 21, 21, 0.2) !important;
}

.company-linkedin-btn:hover .btn__text {
  color: #0077b5 !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 0.8s var(--ease-out) 1.5s both;
}

/* Scroll indicator removed per user request */

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.5;
    height: 48px;
  }

  50% {
    opacity: 1;
    height: 64px;
  }
}

/* --- Buttons (MD3) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  /* Increased from 0.9375rem */
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  /* Removed transition: all to prevent layout shifts */
  transition:
    background-color var(--duration-short) var(--ease-out),
    box-shadow var(--duration-short) var(--ease-out),
    border-color var(--duration-short) var(--ease-out),
    color var(--duration-short) var(--ease-out);
}

.btn--primary {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(40px) saturate(180%) brightness(0.8);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 6px 16px rgba(255, 255, 255, 0.06),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 48%,
      rgba(255, 255, 255, 0.015) 52%,
      transparent 60%,
      transparent 100%);
  background-size: 300% 100%;
  opacity: 0.5;
  animation: pillShine 12s infinite ease-in-out;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

.btn--primary:hover {
  background: rgba(60, 10, 10, 0.55);
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.35);
  transform: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 6px 20px rgba(255, 255, 255, 0.1),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(154, 21, 21, 0.15);
}

.btn--primary:active {
  transform: none !important;
  background: rgba(40, 5, 5, 0.6);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn--outlined {
  background-color: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--md-on-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--outlined:hover {
  background-color: rgba(30, 30, 30, 0.6);
  border-color: rgba(128, 0, 0, 0.3);
  transform: none !important;
  /* NUCLEAR OPTION */
  box-shadow: 0 0 20px rgba(128, 0, 0, 0.15);
}

.btn--outlined:active {
  transform: none !important;
  background-color: rgba(30, 30, 30, 0.8);
}

.btn__icon {
  font-size: 1.125rem;
  transition: transform var(--duration-short) var(--ease-out);
}

.btn:hover .btn__icon {
  transform: none !important;
  /* NO ICON MOVEMENT */
}

.btn__ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
      rgba(255, 255, 255, 0.2) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn:active .btn__ripple {
  opacity: 1;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(128, 0, 0, 0.15);
  border-bottom: 1px solid rgba(128, 0, 0, 0.15);
  background: linear-gradient(180deg,
      rgba(128, 0, 0, 0.04) 0%,
      transparent 40%,
      transparent 60%,
      rgba(128, 0, 0, 0.04) 100%);
}

.stats__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 30px rgba(128, 0, 0, 0.4),
    0 0 60px rgba(128, 0, 0, 0.15);
}

.stat__suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--isg-red-light);
  text-shadow: 0 0 20px rgba(128, 0, 0, 0.3);
}

.stat__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--md-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
  max-width: 170px;
  margin-inline: auto;
}

.stat__divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(128, 0, 0, 0.3),
      transparent);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__label {
  display: inline-block;
  font-size: 0.95rem;
  /* Bigger font (was 0.75rem) */
  font-weight: 700;
  /* Heavier weight */
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--isg-red-light);
  padding: 10px 24px;
  /* More padding */
  border: 2.5px solid rgba(128, 0, 0, 0.5);
  /* Thicker oval outline */
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
  box-shadow:
    0 0 15px rgba(128, 0, 0, 0.1),
    inset 0 0 15px rgba(128, 0, 0, 0.05);
  background: rgba(128, 0, 0, 0.06);
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--md-on-surface);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.animate-on-scroll.is-visible .section-header__title,
.section-header__title.is-revealed {
  clip-path: inset(0 0% 0 0);
}

.section-header__subtitle {
  font-size: 1.125rem;
  color: var(--md-on-surface-variant);
  margin-top: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--space-2xl) var(--space-lg);
}

.services__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  perspective: 1000px;
}

.service-card {
  position: relative;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(60px) saturate(1.4);
  -webkit-backdrop-filter: blur(60px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-out);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  --card-highlight-angle: 135deg;
  --card-highlight-opacity: 0;
}

/* Mouse-responsive specular highlight on cards — REMOVED per user request */
.service-card::after {
  display: none;
}

.service-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-card__accent {
  transform: scaleX(1);
}

.service-card__bg-icon {
  position: absolute;
  bottom: -4%;
  right: -2%;
  width: 45%;
  max-width: 180px;
  height: auto;
  color: rgba(255, 255, 255, 0.12);
  /* More prominent (was 0.07) */
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  transition: color var(--duration-medium) var(--ease-out);
}

.service-card:hover .service-card__bg-icon {
  opacity: 1;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  max-width: 82%;
  position: relative;
  z-index: 1;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-width: 85%;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--isg-red-light);
  transition: gap var(--duration-short) var(--ease-out);
  position: relative;
  z-index: 1;
}

.service-card__link .material-symbols-outlined {
  font-size: 1rem;
  transition: transform var(--duration-short) var(--ease-out);
}

.service-card:hover .service-card__link {
  gap: 10px;
}

.service-card:hover .service-card__link .material-symbols-outlined {
  transform: translateX(4px);
}

.service-card__ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(128, 0, 0, 0.15) 0%,
      transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-out);
  pointer-events: none;
}

.service-card:hover .service-card__ripple {
  opacity: 1;
}

/* ============================================================
   HERITAGE
   ============================================================ */
.heritage {
  padding: var(--space-lg) var(--space-lg) var(--space-2xl) var(--space-lg);
  background-color: transparent;
}

.heritage__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.heritage__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  perspective: 1000px;
}

@media (min-width: 1025px) {
  .heritage__grid>* {
    grid-column: span 1 !important;
  }
}

/* Explicit layout for desktop to prevent stacking */
@media (min-width: 1025px) {
  .heritage__grid>*:nth-child(1) {
    grid-column: 1;
  }

  .heritage__grid>*:nth-child(2) {
    grid-column: 2;
  }

  .heritage__grid>*:nth-child(3) {
    grid-column: 3;
  }

  .heritage__grid>*:nth-child(4) {
    grid-column: 4;
  }
}

.heritage-card {
  position: relative;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--duration-medium) var(--ease-out);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  --card-highlight-angle: 135deg;
  --card-highlight-opacity: 0;
}

/* Mouse-responsive specular highlight on heritage cards — REMOVED */
.heritage-card::after {
  display: none;
}

.heritage-card:hover {
  background: rgba(30, 30, 30, 0.75);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.heritage-card__bg-icon {
  position: absolute;
  bottom: -5%;
  right: -5%;
  width: 50%;
  max-width: 140px;
  height: auto;
  color: rgba(255, 255, 255, 0.15);
  /* Always visible */
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  transition: color var(--duration-medium) var(--ease-out);
}

.heritage-card:hover .heritage-card__bg-icon {
  opacity: 1;
  /* Keep it visible, or adjust opacity if needed */
}

/* --- Typography Utilities --- */
/* Prevent text overflowing and pushing width */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
div {
  max-width: 100%;
  word-wrap: break-word;
}

/* --- Team Profiles --- */
.heritage-profiles-wrapper {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Language Switcher */
/* On desktop, the right group just contains the floating lang-switcher */
.nav__right-group {
  position: absolute;
  top: var(--space-sm);
  bottom: var(--space-sm);
  right: calc(var(--space-md) + 116px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav.is-scrolled .nav__right-group {
  top: 0.75rem;
  bottom: 0.75rem;
}

.lang-switcher {
  position: relative;
}


.lang-switcher__btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(22, 22, 22, 0.55);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  padding: 8px 16px;
  height: 100%;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--duration-short) var(--ease-out);
  outline: none;
  text-decoration: none;
}

.lang-switcher__btn:hover {
  background: rgba(40, 40, 40, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.lang-switcher__arrow {
  font-size: 1.2rem !important;
  opacity: 0.6;
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration-short) var(--ease-out);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lang-switcher__dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--duration-short) var(--ease-out);
  white-space: nowrap;
  outline: none;
}

.lang-option span {
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  width: 24px;
  display: inline-block;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.theme-light .lang-switcher__btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  color: #000 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

body.theme-light .lang-switcher__btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

body.theme-light .lang-switcher__dropdown {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.theme-light .lang-option {
  color: rgba(0, 0, 0, 0.6);
}

body.theme-light .lang-option span {
  color: #000;
}

body.theme-light .lang-option:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

@media (max-width: 768px) {
  .nav__right-group {
    /* Inside the nav grid, column 3 */
    position: static;
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001;
  }

  .lang-switcher {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .lang-switcher__btn {
    /* Circle matching hamburger glassy style */
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.4),
      0 2px 6px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 3px rgba(0, 0, 0, 0.3);
    gap: 0;
  }

  .lang-switcher__btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .lang-switcher__current {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  /* Hide dropdown arrow on mobile — circle is too small */
  .lang-switcher__arrow {
    display: none;
  }

  .lang-switcher__dropdown {
    right: 0;
    top: calc(100% + 8px);
  }
}

/* Light theme overrides for mobile lang-switcher circle */
@media (max-width: 768px) {
  body.theme-light .lang-switcher__btn {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.08),
      0 2px 6px rgba(0, 0, 0, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -1px 3px rgba(0, 0, 0, 0.05);
  }

  body.theme-light .lang-switcher__btn:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
  }
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(45, 45, 45, 0.4);
  backdrop-filter: blur(40px) saturate(160%) brightness(110%);
  -webkit-backdrop-filter: blur(40px) saturate(160%) brightness(110%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  padding: 4px;
  transition: all var(--duration-medium) var(--ease-out);
  
  /* Desktop placement: column 3 (right side) */
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  z-index: 10002;
  position: relative;
}

.heritage-profile {
  position: relative;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(40px) saturate(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all var(--duration-medium) var(--ease-out);
}

.heritage-profile:hover {
  background: rgba(28, 22, 22, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 0.5px rgba(154, 21, 21, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

/* --- Theme Image Toggling --- */
.theme-light-img {
  display: none;
}

body.theme-light .theme-dark-img {
  display: none;
}

body.theme-light .theme-light-img {
  display: block;
}

.heritage-profile__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #222222;
  /* Provide a solid dark background for transparent PNGs */
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-md);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.7),
    0 8px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 0;
}

.heritage-profile__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.heritage-profile__role {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--isg-red);
  margin-bottom: 4px;
  font-weight: 600;
}

.heritage-profile__email {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  transition: color var(--duration-short) var(--ease-out);
}

.heritage-profile__email:hover {
  color: var(--isg-red);
}

.heritage-profile__bio {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* --- LinkedIn Liquid Glass Button --- */
.linkedin-circle-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;

  /* Liquid Glass */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: rgba(255, 255, 255, 0.85);
}

.linkedin-circle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.35);
  color: #0077b5 !important;
  transform: scale(1.1);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 119, 181, 0.2);
}

.linkedin-circle-btn:hover svg {
  fill: #0077b5 !important;
}

.linkedin-circle-btn:hover span {
  color: #0077b5 !important;
}

.linkedin-circle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

body.theme-light .linkedin-circle-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

body.theme-light .linkedin-circle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0077b5 !important;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.linkedin-glass-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  /* Liquid Glass */
  background: rgba(255, 255, 255, 0.15);
  /* Slightly stronger for dark mode */
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: rgba(255, 255, 255, 0.85);
}

.linkedin-glass-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.35);
  color: #0077b5 !important;
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 119, 181, 0.2);
}

.linkedin-glass-btn:hover svg {
  fill: #0077b5 !important;
}

.linkedin-glass-btn:hover span {
  color: #0077b5 !important;
}

.linkedin-glass-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Modifiers for the prominent company LinkedIn button */
.company-linkedin-btn {
  position: relative;
  top: auto;
  right: auto;
  margin: var(--space-md) auto 0;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
}

.company-linkedin-btn svg {
  width: 20px;
  height: 20px;
}

/* Light theme overrides for LinkedIn button */
body.theme-light .linkedin-glass-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

body.theme-light .linkedin-glass-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0077b5 !important;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.heritage-card--offices {
  display: flex;
  flex-direction: column;
}

.heritage-card--background {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.heritage-card--background .heritage-card__content {
  position: relative;
  z-index: 1;
}

.heritage-card--background .heritage-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-xs);
  padding-right: 40px;
}

.heritage-card--background .heritage-card__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Heritage card watermark icon — always visible */
.heritage-card__bg-icon {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 50%;
  max-width: 140px;
  height: auto;
  opacity: 0.2;
  color: rgba(255, 255, 255, 0.8);
  z-index: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
}

.heritage-card:hover .heritage-card__bg-icon {
  opacity: 0.25;
}

.heritage-card__content {
  position: relative;
  z-index: 1;
}

/* Offices card: vertical stack for 4-column layout */
.heritage-card--offices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.heritage-card--offices .heritage-card__content {
  flex: 0 0 auto;
  text-align: center;
}

.heritage-card__map {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offices-map {
  width: 100%;
  max-height: 220px;
  filter: drop-shadow(0 0 8px rgba(154, 21, 21, 0.15));
  pointer-events: none;
}

/* ============================================================
   APPROACH (Timeline)
   ============================================================ */
.approach {
  padding: var(--space-2xl) var(--space-lg);
}

.approach__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.approach__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 850px;
  margin: 0 auto;
}

.approach__step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  position: relative;
}

.approach__step-number {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--isg-red);
  line-height: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: text-shadow var(--duration-medium) var(--ease-out);
}

.approach__step-number::after {
  display: none;
}

.approach__step:hover .approach__step-number {
  text-shadow: 0 0 30px rgba(128, 0, 0, 0.5);
}

.approach__step-content {
  flex: 1;
}

.approach__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--md-on-surface);
  margin-bottom: var(--space-sm);
}

.approach__step-desc {
  font-size: 1.05rem;
  color: var(--md-on-surface-variant);
  line-height: 1.6;
}

.approach__step-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.approach__step-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
      rgba(128, 0, 0, 0.6),
      rgba(128, 0, 0, 0.1));
  transition: width 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.approach__step-line.is-filled::after {
  width: 100%;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--space-2xl) var(--space-lg);
  background-color: transparent;
}

.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-field {
  position: relative;
}

.form-field--full {
  grid-column: span 2;
}

.form-field__input {
  width: 100%;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1;
  color: #ffffff;
  background: rgba(25, 25, 25, 0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px !important;
  text-align: center;
  outline: none;
  transition: all var(--duration-short) var(--ease-out);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 4px rgba(0, 0, 0, 0.15);
}

.form-field__input:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(30, 30, 30, 0.92);
}

.form-field__input::placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.15rem;
  font-weight: 600;
}

.form-field__input--textarea {
  text-align: left;
  border-radius: 24px !important;
  resize: vertical;
  min-height: 120px;
  padding: 16px 24px;
}

.form-field__input--textarea::placeholder {
  text-align: left;
  padding-top: 0;
}

/* Center labels when they act as placeholders */
.form-field__input:placeholder-shown~.form-field__label {
  left: 50%;
  transform: translateX(-50%);
}

.form-field__input:focus~.form-field__label,
.form-field__input:not(:placeholder-shown)~.form-field__label {
  left: 20px;
  transform: translateY(-28px);
  color: var(--isg-red);
  font-weight: 600;
}

/* Textarea labels: also center horizontally */
.form-field--full .form-field__label {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.form-field--full .form-field__input:focus~.form-field__label,
.form-field--full .form-field__input:not(:placeholder-shown)~.form-field__label {
  left: 20px !important;
  transform: translateY(-28px) !important;
}

.form-field__input:focus {
  background: rgba(30, 30, 30, 0.95);
  border-color: var(--isg-red);
  box-shadow:
    0 0 0 1px var(--isg-red),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.form-field__input--textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field__label {
  position: absolute;
  top: 20px;
  left: var(--space-md);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition: all var(--duration-short) var(--ease-out);
}

.form-field__input:focus+.form-field__label,
.form-field__input:not(:placeholder-shown)+.form-field__label {
  top: 6px;
  font-size: 0.8125rem;
  color: var(--isg-red-light);
}

.form-field__line {
  display: none;
}

.form-field__line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--isg-red);
  transition: all var(--duration-medium) var(--ease-out);
}

.form-field__input:focus~.form-field__line::after {
  left: 0;
  width: 100%;
}

.contact__form .btn {
  grid-column: span 2;
  justify-content: center;
  margin-top: var(--space-lg);
  /* More distance */
  padding: 22px 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;

  /* Voluminous Liquid Glass Button */
  background: linear-gradient(180deg, #b82020 0%, #8a1010 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  /* Fully pill-shaped */
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 4px 15px rgba(154, 21, 21, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 5px rgba(0, 0, 0, 0.4);

  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.contact__form .btn:hover {
  background: linear-gradient(180deg, #d42020 0%, #a01515 100%);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 30, 30, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-top: 1px solid rgba(128, 0, 0, 0.2);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* keep them vertically centered */
  gap: var(--space-lg);
}

.footer__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* Align logo elements to the left edge */
  justify-self: start;
  /* Pin logo block to the start of its grid track */
  gap: 12px;
}

.footer__logo-line {
  width: 34px;
  height: 3px;
  background-color: var(--isg-red);
  border-radius: 2px;
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-self: center;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--md-on-surface-variant);
  transition: color var(--duration-short) var(--ease-out);
}

.footer__links a:hover {
  color: var(--md-on-surface);
}

.footer__legal {
  text-align: right;
  justify-self: end;
}

.footer__legal p {
  font-size: 0.75rem;
  color: var(--md-on-surface-variant);
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* NOTE: .nav__inner flex override for mobile is handled below in @media block */

/* Mobile Menu Overlay Styles */
@media (max-width: 768px) {
  .nav {
    /* Ensure header strictly stays fixed */
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
  }

  .nav__links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    gap: var(--space-lg) !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999 !important;
    /* Force it to the absolute top */
    grid-column: auto !important;
    /* Break out of grid cells */
    grid-row: auto !important;
  }

  /* When menu is open, remove restricting container properties */
  .nav__inner.is-mobile-open {
    overflow: visible !important;
    transform: none !important;
    border-radius: 0 !important;
    /* Optional: transitions better if it doesn't try to clip */
  }

  .nav__inner.is-mobile-open .nav__links {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 200;
    /* Ensure it's above everything including the header pill */
  }

  .nav__inner.is-mobile-open .nav__link {
    font-size: 2rem !important;
    padding: var(--space-sm) !important;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUpMenu 0.4s forwards;
    /* In dark mode, inactive links are whitish */
    color: rgba(255, 255, 255, 0.85);
  }

  /* Active link on dark theme mobile */
  .nav__inner.is-mobile-open .nav__link.is-active,
  .nav__inner.is-mobile-open .nav__link:hover {
    color: var(--isg-red) !important;
  }

  /* Stagger link animations */
  .nav__inner.is-mobile-open .nav__link:nth-child(2) {
    animation-delay: 0.1s;
  }

  .nav__inner.is-mobile-open .nav__link:nth-child(3) {
    animation-delay: 0.15s;
  }

  .nav__inner.is-mobile-open .nav__link:nth-child(4) {
    animation-delay: 0.2s;
  }

  .nav__inner.is-mobile-open .nav__link:nth-child(5) {
    animation-delay: 0.25s;
  }

  @keyframes fadeUpMenu {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hide indicator and logo-glow orb in mobile navigation */
  .nav__indicator,
  .nav__glow-orb {
    opacity: 0 !important;
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
  }

  .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 12px;
    height: 65px;
    gap: 8px;
    transform: none !important;
    overflow: visible !important;
    /* Required so the 100vh full-screen menu can escape the pill */
  }

  .theme-switcher {
    grid-column: 1;
    justify-self: start;
    transform: scale(1.1) !important;
    transform-origin: left center !important;
    margin: 0 !important;
    z-index: 100;
  }

  .nav__logo {
    grid-column: 2;
    transform: translateY(-3px) scale(0.85);
    margin: 0;
    justify-self: center;
    transform-origin: center center;
  }

  .nav__hamburger {
    display: flex !important;
  }

  .section-header__title {
    font-size: 1.75rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .hero__title {
    font-size: clamp(10rem, 45vw, 18rem);
    /* Increased for mobile as requested */
    letter-spacing: normal;
    font-weight: 900;
    /* Increased weight globally */
  }

  .hero__subtitle {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    padding: 0 var(--space-md);
  }

  .hero__tagline {
    font-size: 1rem;
    padding: 0 var(--space-md);
  }

  .hero-action-pill {
    min-width: 200px;
    width: 250px;
    padding: 12px 20px;
    font-size: 0.9rem;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-action-pill--icon {
    grid-template-columns: auto 1fr;
    padding: 0;
  }

  .hero-action-pill--icon .icon-wrapper {
    padding: 0 16px;
    height: 48px;
    /* Match mobile pill height */
  }

  .hero-action-pill--icon .icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  .hero-action-pill--icon .btn__text {
    grid-column: 2;
    padding-right: 53px;
    /* Compensate for left icon block (16+20+16+1px border) */
    position: static;
    left: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 var(--space-lg);
    margin-top: 2rem;
  }

  .stats__inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .stat__divider {
    display: none;
  }

  .stat__number {
    font-size: 3rem;
  }

  .stat__suffix {
    font-size: 1.75rem;
  }

  .stat__label {
    font-size: 0.85rem;
  }
}

@media (max-width: 375px) {
  .nav__link {
    font-size: 0.7rem;
    padding: 2px 4px;
  }

  .nav__links {
    gap: 2px;
  }

  .nav__glow-orb {
    height: 28px;
  }
}

@media (max-width: 1024px) {
  .heritage__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .heritage__grid {
    grid-template-columns: 1fr;
  }


  .contact__form {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .form-field--full {
    grid-column: span 1;
  }

  .contact__form .btn {
    grid-column: span 1;
    width: 100%;
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }

  .footer__links {
    flex-wrap: wrap;
    align-self: center;
    justify-content: center;
  }

  .footer__legal {
    justify-self: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --text-xs: 0.7rem;
    --text-sm: 0.8rem;
    --text-base: 0.9rem;
    --text-lg: 1.1rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.6rem;
    --text-3xl: 2rem;
  }

  .nav__inner {
    padding: 0 8px;
    gap: 4px;
  }

  .nav__link {
    font-size: 0.65rem;
    padding: 2px 3px;
  }

  .theme-switcher {
    transform: scale(1) !important;
    /* Made much larger for very small screens */
  }

  .section-header__title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .heritage-profile {
    padding: 16px;
  }

  .heritage-card {
    padding: 16px;
  }
}

/* Clean up redundant block */

/* ── Hamburger Button (hidden on desktop, shown on mobile) ── */
.nav__hamburger {
  display: none;
  /* Hidden on desktop, shown on mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  grid-column: 3;
  justify-self: end;
  transition: all 0.3s var(--ease-out);
  margin: 0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 3px rgba(0, 0, 0, 0.3);
}

.nav__hamburger:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 3px rgba(0, 0, 0, 0.3);
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    width 0.25s ease;
}

/* Animate into X when open */
.nav__hamburger.is-active .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   THEME SWITCHER — Liquid Glass (2-option: light / dark)
   ============================================================ */
.theme-switcher {
  --sw-glass: #bbbbbc;
  --sw-light: #fff;
  --sw-dark: #000;
  --sw-reflex-dark: 1;
  --sw-reflex-light: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 104px;
  /* Perfectly bounds the child objects (44px * 2 + 4px gap + 12px padding = 104px) */
  height: 46px;
  box-sizing: border-box;
  padding: 4px 6px 5px;
  margin: 0;
  border: none;
  border-radius: 99em;
  /* Push to the right on desktop, let mobile media query handle mobile */
  margin-left: auto;
  transform: scale(1.0);
  transform-origin: right center;
  margin-right: -0.5rem;
  background-color: color-mix(in srgb, var(--sw-glass) 12%, transparent);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb,
      var(--sw-light) calc(var(--sw-reflex-light) * 10%),
      transparent),
    inset 1.2px 2px 0px -1px color-mix(in srgb,
      var(--sw-light) calc(var(--sw-reflex-light) * 70%),
      transparent),
    inset -1px -1px 0px -1px color-mix(in srgb,
      var(--sw-light) calc(var(--sw-reflex-light) * 60%),
      transparent),
    inset -2px -5px 1px -4px color-mix(in srgb,
      var(--sw-light) calc(var(--sw-reflex-light) * 40%),
      transparent),
    inset -0.2px -0.5px 3px 0px color-mix(in srgb,
      var(--sw-dark) calc(var(--sw-reflex-dark) * 12%),
      transparent),
    inset -1px 1.5px 0px -1px color-mix(in srgb,
      var(--sw-dark) calc(var(--sw-reflex-dark) * 15%),
      transparent),
    0px 1px 4px 0px color-mix(in srgb,
      var(--sw-dark) calc(var(--sw-reflex-dark) * 8%),
      transparent),
    0px 4px 12px 0px color-mix(in srgb,
      var(--sw-dark) calc(var(--sw-reflex-dark) * 6%),
      transparent);
  transition:
    background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
  z-index: 2;
  position: relative;
  flex-shrink: 0;
}

.theme-switcher__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.theme-switcher__input {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.theme-switcher__icon {
  display: block;
  width: 100%;
  transition: scale 200ms cubic-bezier(0.5, 0, 0, 1);
}

.theme-switcher__option {
  --sw-c: var(--md-on-surface-variant);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  width: 44px;
  height: 100%;
  box-sizing: border-box;
  border-radius: 99em;
  cursor: pointer;
  transition: all 160ms;
}

.theme-switcher__option:hover {
  --sw-c: var(--isg-red);
}

.theme-switcher__option:hover .theme-switcher__icon {
  scale: 1.15;
}

.theme-switcher__option:has(input:checked) {
  --sw-c: var(--md-on-surface);
  cursor: auto;
}

.theme-switcher__option:has(input:checked) .theme-switcher__icon {
  scale: 1;
}

/* Sliding glass pill indicator */
.theme-switcher::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  display: block;
  width: 50px;
  height: calc(100% - 7px);
  border-radius: 99em;
  background-color: color-mix(in srgb, var(--sw-glass) 30%, transparent);
  z-index: -1;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb,
      var(--sw-light) calc(var(--sw-reflex-light) * 10%),
      transparent),
    inset 1.5px 0.8px 0px -0.8px color-mix(in srgb,
      var(--sw-light) calc(var(--sw-reflex-light) * 70%),
      transparent),
    inset -1px -0.8px 0px -0.8px color-mix(in srgb,
      var(--sw-light) calc(var(--sw-reflex-light) * 60%),
      transparent),
    inset -1px 1.5px 2px -1px color-mix(in srgb,
      var(--sw-dark) calc(var(--sw-reflex-dark) * 15%),
      transparent),
    0px 2px 5px 0px color-mix(in srgb,
      var(--sw-dark) calc(var(--sw-reflex-dark) * 6%),
      transparent);
  transition:
    background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1),
    translate 400ms cubic-bezier(1, 0, 0.4, 1);
}

.theme-switcher:has(input[c-option="1"]:checked)::after {
  translate: 0 0;
  transform-origin: right;
  animation: swScaleToggle 440ms ease;
}

.theme-switcher:has(input[c-option="2"]:checked)::after {
  translate: 48px 0;
  /* Option width (44px) + gap (4px) = perfectly aligns the thumb to the right side */
  transform-origin: left;
  animation: swScaleToggle2 440ms ease;
}

@keyframes swScaleToggle {
  0% {
    scale: 1 1;
  }

  50% {
    scale: 1.15 1;
  }

  100% {
    scale: 1 1;
  }
}

@keyframes swScaleToggle2 {
  0% {
    scale: 1 1;
  }

  50% {
    scale: 1.15 1;
  }

  100% {
    scale: 1 1;
  }
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */

/* Smooth body transition for theme switch */
body {
  transition:
    background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    color 400ms cubic-bezier(1, 0, 0.4, 1);
}

body.theme-light {
  /* MD3 Light Color Scheme */
  --md-background: #e8e8e9;
  --md-surface: #ffffff;
  --md-surface-1: #f5f5f5;
  --md-surface-2: #eeeeee;
  --md-surface-3: #e0e0e0;
  --md-surface-4: #d6d6d6;
  --md-on-surface: #1a1a2e;
  --md-on-surface-variant: #555566;
  --md-outline: rgba(0, 0, 0, 0.08);
  --md-outline-variant: rgba(0, 0, 0, 0.04);

  /* ISG Brand: keep red, adjust container alpha */
  --isg-red-container: rgba(154, 21, 21, 0.1);
  --isg-red-glow: rgba(154, 21, 21, 0.25);
}

/* --- Switcher and glass vars for light --- */
body.theme-light .theme-switcher {
  --sw-reflex-dark: 0.5;
  --sw-reflex-light: 2;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

body.theme-light .theme-switcher svg {
  color: #0d0d1a !important;
}

body.theme-light .nav__hamburger {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* --- Nav Glass (Light) --- */
body.theme-light .nav__inner {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-light .nav.is-scrolled .nav__inner {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    inset 0 0 20px 0 rgba(255, 255, 255, 0.3),
    0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Nav specular highlight on light */
body.theme-light .nav__inner::after {
  background: linear-gradient(var(--nav-highlight-angle),
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 33%,
      rgba(255, 255, 255, 0.7) 66%,
      rgba(255, 255, 255, 0) 100%);
}

/* Nav hamburger: dark lines on light */
body.theme-light .nav__hamburger-line {
  background: #1a1a2e;
}

/* --- Header Logo (Light) --- */
body.theme-light .nav__logo-text {
  color: #0d0d1a;
}

body.theme-light .nav__logo-line {
  background-color: var(--isg-red);
}

body.theme-light .nav__logo:hover .nav__logo-text {
  color: var(--isg-red) !important;
}

body.theme-light .nav__logo:hover .nav__logo-line {
  background-color: #0d0d1a !important;
}

body.theme-light .nav__link {
  color: #1a1a2a;
  font-weight: 600;
}

body.theme-light .nav__link:hover {
  color: var(--isg-red);
}

/* White text when active link is covered by the cherry-red pill */
body.theme-light .nav__link.is-active {
  color: #ffffff !important;
}

/* Active Nav Indicator (Pill) — Light Theme: dark cherry red */
body.theme-light .nav__indicator {
  background: rgba(150, 10, 15, 0.98);
  backdrop-filter: blur(16px) saturate(250%);
  -webkit-backdrop-filter: blur(16px) saturate(250%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(60, 0, 0, 0.8);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(40, 0, 0, 0.9),
    0 4px 12px rgba(130, 10, 15, 0.6),
    0 0 16px rgba(150, 15, 15, 0.3);
}

body.theme-light .nav__indicator::after {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 100%);
}

@media (max-width: 768px) {
  body.theme-light .nav__links {
    background: rgba(255, 255, 255, 0.98) !important;
    border: none !important;
    box-shadow: none !important;
  }

  body.theme-light .nav__inner.is-mobile-open .nav__link {
    color: #1a1a2e !important;
    /* Dark inactive text */
  }

  body.theme-light .nav__inner.is-mobile-open .nav__link.is-active,
  body.theme-light .nav__inner.is-mobile-open .nav__link:hover {
    color: var(--isg-red) !important;
    /* Red active text */
  }
}

/* --- Hero Buttons (Light) --- */
body.theme-light .hero-action-pill {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}

body.theme-light .hero-action-pill:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--isg-red);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05),
    0 6px 20px rgba(0, 0, 0, 0.12),
    0 0 15px rgba(154, 21, 21, 0.1);
}

body.theme-light .hero-action-pill--icon .icon-wrapper {
  border-right-color: rgba(0, 0, 0, 0.2);
}

body.theme-light .hero-action-pill--linkedin .icon {
  color: #0077b5;
  filter: drop-shadow(0 0 4px rgba(0, 119, 181, 0.2));
}

body.theme-light .hero-action-pill--linkedin:hover .icon,
body.theme-light .hero-action-pill--linkedin:hover .btn__text {
  color: #006699;
}

/* --- Hero (Light) --- */
body.theme-light .hero__letter {
  color: #050510;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #050510;
  text-shadow:
    0px 1px 0px #333,
    0px 2px 0px #2e2e2e,
    0px 3px 0px #2a2a2a,
    0px 4px 0px #262626,
    0px 5px 0px #222,
    0px 6px 0px #1e1e1e,
    0px 7px 0px #1a1a1a,
    0px 8px 0px #161616,
    0px 9px 0px #121212,
    0px 10px 0px #0e0e0e,
    0px 11px 0px #0a0a0a,
    0px 12px 0px #060606,
    0px 13px 20px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(5, 5, 16, 0.2);
}

body.theme-light .hero__letter::after {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

body.theme-light .hero__subtitle {
  color: rgba(26, 26, 46, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.theme-light .hero__tagline {
  color: rgba(26, 26, 46, 0.8);
}

/* --- Buttons (Light) --- */
body.theme-light .btn--primary {
  color: #fff;
}

body.theme-light .btn--outlined {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--md-on-surface);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body.theme-light .btn--outlined:hover {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(128, 0, 0, 0.25);
}

body.theme-light .btn--outlined:active {
  background-color: rgba(255, 255, 255, 0.85);
}

body.theme-light .btn__ripple {
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
      rgba(0, 0, 0, 0.1) 0%,
      transparent 70%);
}

/* --- Banner / Stats (Light) --- */
body.theme-light .banner {
  background: linear-gradient(180deg,
      rgba(154, 21, 21, 0.06) 0%,
      rgba(154, 21, 21, 0.04) 100%);
  border-top: 1px solid rgba(154, 21, 21, 0.08);
  border-bottom: 1px solid rgba(154, 21, 21, 0.08);
}

body.theme-light .stat__number {
  color: var(--isg-red);
}

/* --- Service Cards (Light) --- */
body.theme-light .service-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

body.theme-light .service-card::after {
  background: linear-gradient(var(--card-highlight-angle),
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 40%,
      rgba(255, 255, 255, 0.8) 60%,
      rgba(255, 255, 255, 0) 100%);
}

body.theme-light .service-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04);
}

/* Light theme accent: subtle shimmer */
body.theme-light .service-card__accent {
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 0, 0, 0.06),
      transparent);
}

body.theme-light .service-card__bg-icon {
  color: rgba(0, 0, 0, 0.08);
}

body.theme-light .service-card:hover .service-card__bg-icon {
  color: rgba(154, 21, 21, 0.12);
}

/* --- Heritage Profiles (Light) --- */
body.theme-light .heritage-profile {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

body.theme-light .heritage-profile:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  border-top-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(154, 21, 21, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04);
}

body.theme-light .heritage-profile__image {
  background: #ffffff;
  /* Clear white background for illustrations in light mode */
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.08),
    0 4px 15px rgba(0, 0, 0, 0.06);
}

/* --- Approach Section (Light) --- */
body.theme-light .approach__step-line {
  background: rgba(0, 0, 0, 0.08);
}

/* --- Heritage Info Cards (Light) — Global Presence, Institutional Pedigree --- */
body.theme-light .heritage-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

body.theme-light .heritage-card::after {
  background: linear-gradient(var(--card-highlight-angle),
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 40%,
      rgba(255, 255, 255, 0.8) 60%,
      rgba(255, 255, 255, 0) 100%);
}

body.theme-light .heritage-card:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  border-top-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04);
}

body.theme-light .heritage-card__bg-icon {
  color: rgba(0, 0, 0, 0.6);
}

/* Heritage map SVG: higher contrast for light */
body.theme-light .offices-map path {
  fill: rgba(0, 0, 0, 0.06) !important;
  stroke: rgba(0, 0, 0, 0.25) !important;
}

body.theme-light .offices-map .map-pin circle {
  fill: var(--isg-red) !important;
  filter: none !important;
}

body.theme-light .offices-map .map-pin {
  box-shadow: none !important;
  background: none !important;
}

body.theme-light .offices-map .map-pin::before,
body.theme-light .offices-map .map-pin::after {
  display: none !important;
  /* Removes the white glowing rings */
}

/* Removed duplicate profile image rule */

/* --- Contact Form (Light) --- */
body.theme-light .contact .section-header__title,
body.theme-light .contact .section-header__subtitle,
body.theme-light .contact .section-header__label {
  color: #050505;
}

body.theme-light .form-field__input {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  color: #050505;
  font-weight: 600;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.theme-light .form-field__input:focus {
  background: #ffffff;
  border-color: var(--isg-red);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.08),
    0 0 0 4px rgba(154, 21, 21, 0.15);
}

body.theme-light .form-field__input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

body.theme-light .form-field__label {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
}

body.theme-light .form-field__line {
  background: rgba(0, 0, 0, 0.35);
}

/* --- Footer (Light) --- */
body.theme-light .footer {
  border-top-color: rgba(154, 21, 21, 0.12);
}

/* --- Cursor spotlight: hidden on light theme --- */
body.theme-light .cursor-spotlight {
  display: none;
}

/* --- Glow orb on light: slightly more visible --- */
body.theme-light .nav__glow-orb.is-logo-glow {
  --orb-bg: radial-gradient(ellipse at center,
      rgba(154, 21, 21, 0.35) 0%,
      rgba(154, 21, 21, 0.18) 30%,
      rgba(154, 21, 21, 0.06) 60%,
      transparent 100%);
}

/* Light theme glass pill: saturated deep red */
/* Light theme glass pill: dark cherry red, more saturated */
body.theme-light .nav__glow-orb.is-pill {
  --orb-bg: rgba(130, 10, 15, 0.85);
  border: 1px solid rgba(130, 10, 15, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(60, 0, 0, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 6px 16px rgba(255, 255, 255, 0.1),
    inset 0 -2px 6px rgba(130, 10, 15, 0.5),
    0 4px 12px rgba(130, 10, 15, 0.4);
}

/* Light theme send button: solid matte deep red */
body.theme-light .btn--primary {
  background: #b31b1b;
  border: 1px solid #8f1515;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(179, 27, 27, 0.25);
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.theme-light .btn--primary::after {
  display: none;
}

body.theme-light .btn--primary:hover {
  background: #d62222;
  border-color: #b31b1b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 16px rgba(179, 27, 27, 0.4);
}

/* --- Section labels on light --- */
body.theme-light .services__label,
body.theme-light .heritage__label,
body.theme-light .approach__label,
body.theme-light .contact__label {
  color: var(--isg-red);
  border-color: rgba(154, 21, 21, 0.2);
}

/* --- Map tabs on light --- */
body.theme-light .map-tab {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--md-on-surface-variant);
}

body.theme-light .map-tab.is-active {
  background: var(--isg-red);
  color: #fff;
  border-color: var(--isg-red);
}

/* --- Mobile: show switcher in header on mobile --- */
@media (max-width: 768px) {
  .theme-switcher {
    display: flex;
  }
}