/* ==========================================================================
   NIDHEESH KRISHNA — DIGITAL MARKETER & STRATEGIST
   Editorial Growth Architect Design System
   Chalakudy, Kerala · Global Practice
   ========================================================================== */
/* Google Fonts loaded via preconnect in HTML head for non-blocking parallel delivery */
:root {
  /* Surface & Background Palette (Crisp Luminous White, Daylight Brightness - Zero Dullness) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-lowest: #ffffff;
  --surface-low: #f8fafc;
  --surface-container: #ffffff;
  --surface-high: #f1f5f9;
  --surface-highest: #e2e8f0;
  --surface-bright: #ffffff;

  /* Typography & Foreground (Sharp, Deep, Crystal Clear Readability - Zero Eye Strain) */
  --text-main: #090d16;
  --text-secondary: #27364b;
  --text-muted: #4b586d;
  --text-dim: #78889b;
  --text-dark: #090d16;

  /* Accents & Brand Tones (Vibrant Teal, Emerald, Cyan) */
  --primary: #0f766e;
  --primary-container: #0d9488;
  --primary-hover: #115e59;
  --on-primary: #ffffff;
  --on-primary-container: #ffffff;
  --tertiary: #06b6d4;
  --tertiary-container: #0891b2;
  --accent-vermilion: #e11d48;
  --accent-gold: #b45309;
  --accent-green: #10b981;

  /* Hairline & Structural Borders (Light, Clean, Non-Muted) */
  --outline: #e2e8f0;
  --hairline: rgba(15, 23, 42, 0.06);
  --hairline-light: rgba(15, 23, 42, 0.03);
  --hairline-strong: rgba(15, 23, 42, 0.11);
  --hairline-accent: rgba(13, 148, 136, 0.24);

  /* Fonts (Standard, Modern, Executive Sans-Serif System) */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', 'Space Mono', monospace;

  /* Layout & Spacing */
  --max-width: 1440px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Elevation & Shadows (Clean Soft Daylight Lighting) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.07), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.15);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }
}

/* ==========================================================================
   Base & Reset (Universal Fluid Responsive Optimization)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

button,
a,
input,
select,
textarea,
[role="button"],
.brand-lockup,
.brand-name,
.nav-link,
.btn,
.spec-pill,
.choice-card,
.stat-card {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Universal Text Word-Wrap: Prevents overflow on ultra-narrow screens (240px-320px) */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
button,
input,
textarea,
select,
label {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Maintain readable line-length on ultra-wide / 4K monitors */
p {
  max-width: 75ch;
}

::selection {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
}

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: currentColor;
}

.svg-icon-stroke {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(246, 96, 24, 0.12);
  color: var(--primary);
  border: 1px solid rgba(246, 96, 24, 0.25);
}

.accent-bullet {
  color: var(--primary-container);
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography Utilities (Fluid clamp Scaling Across 240px to 3840px)
   ========================================================================== */

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
}

.display-xl {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* ==========================================================================
   Hero Section: 100% Fullscreen Viewport & Spacious Architecture
   ========================================================================== */
.hero-fullscreen-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vh, 2rem) 0 clamp(1.75rem, 3.8vh, 3rem);
  box-sizing: border-box;
}

.hero-fullscreen-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: clamp(0.75rem, 1.5vh, 1.25rem);
}

.hero-fullscreen-container .hero-grid-lockup {
  align-items: center;
}

.hero-portrait-col {
  grid-column: span 6;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: clamp(480px, 70vh, 620px);
  width: 100%;
  padding-bottom: clamp(1rem, 2vh, 1.85rem);
  padding-right: clamp(1rem, 3.5vw, 4rem);
  margin-top: -0.5rem;
}

/* Pale Green Sketch Canvas Backdrop */
.hero-portrait-col::before {
  content: '';
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  right: clamp(0.75rem, 3vw, 3.25rem);
  width: clamp(260px, 34vw, 390px);
  height: clamp(340px, 48vh, 480px);
  background: 
    radial-gradient(ellipse at 50% 45%, rgba(45, 212, 191, 0.28) 0%, rgba(13, 148, 136, 0.15) 45%, rgba(204, 251, 241, 0.08) 68%, transparent 84%),
    repeating-linear-gradient(45deg, rgba(13, 148, 136, 0.04) 0px, rgba(13, 148, 136, 0.04) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-45deg, rgba(45, 212, 191, 0.04) 0px, rgba(45, 212, 191, 0.04) 1px, transparent 1px, transparent 10px);
  border-radius: 46% 54% 62% 38% / 42% 46% 54% 58%;
  border: 1.5px dashed rgba(13, 148, 136, 0.24);
  box-shadow: inset 0 0 35px rgba(45, 212, 191, 0.16), 0 10px 40px rgba(13, 148, 136, 0.08);
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0) rotate(-1.5deg);
}

/* Standing Walking Portrait Cutout with Soft Feathering in Leg Area */
.portrait-img-standing {
  position: relative;
  z-index: 1;
  height: 100%;
  max-height: clamp(440px, 66vh, 570px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.08));
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.5) 89%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.5) 89%, transparent 99%);
}

/* Enlarged Identification Tag with Premium Glassmorphism Background (Aligned with Portrait) */
.hero-identity-tag {
  position: absolute;
  bottom: clamp(1.2rem, 2.5vh, 2.2rem);
  right: clamp(1.5rem, 4vw, 4.5rem);
  left: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 16px;
  box-shadow: 
    0 16px 40px -8px rgba(15, 23, 42, 0.12),
    0 4px 14px rgba(13, 148, 136, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  pointer-events: auto;
}

.hero-tag-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-tag-name {
  font-family: var(--font-display, 'Plus Jakarta Sans');
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.hero-tag-role {
  font-family: var(--font-mono, 'Space Grotesk');
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-tag-sep {
  opacity: 0.6;
}

.hero-tag-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-content-col {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.85rem, 1.8vh, 1.35rem);
  padding-left: clamp(1rem, 3vw, 3rem);
  padding-right: clamp(0.5rem, 1.5vw, 1.5rem);
}

/* Stretched, Clean, Well-Structured Executive Headline */
.hero-headline-executive {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.15vw, 2.95rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(0.4rem, 1vh, 0.75rem) 0;
}

.hero-headline-line1 {
  display: block;
  white-space: nowrap;
}

.hero-headline-line2 {
  display: block;
}

@media (max-width: 640px) {
  .hero-headline-line1 {
    white-space: normal;
  }
}

.hero-headline-executive .hero-highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: 800;
  display: inline;
}

/* ==========================================================================
   Dynamic Headline Text Rotator (Kinetic Fluid Phrase Transition)
   ========================================================================== */
.hero-dynamic-rotator {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  min-width: 0;
}

.hero-rotator-item {
  display: inline-block;
  vertical-align: baseline;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              filter 0.35s ease;
  will-change: transform, opacity, filter;
}

.hero-rotator-item.slide-out {
  transform: translateY(-14px);
  opacity: 0;
  filter: blur(4px);
}

.hero-rotator-item.slide-in-prep {
  transform: translateY(14px);
  opacity: 0;
  filter: blur(4px);
  transition: none !important;
}

.hero-rotator-item.slide-in {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0px);
}

/* Enlarged Bio Paragraph with Clear Visual Hierarchy */
.hero-lead-p {
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
  width: 100%;
  max-width: 100%;
}

/* Action Buttons: Positioned Close to Bio Text with Reduced Spacing */
.hero-cta-wrap {
  margin-top: clamp(0.2rem, 0.6vh, 0.5rem);
  padding-top: 0;
  padding-bottom: 0;
}

.hero-cta-group .btn-compact {
  padding: 0.65rem 1.45rem;
  font-size: 0.825rem;
  min-height: 42px;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm, 6px);
}

/* ==========================================================================
   Continuous Logo Train Animation (Right to Left Smooth Flowing Marquee)
   ========================================================================== */
.hero-marquee-wrap {
  width: 100%;
  margin-top: auto;
  padding-top: clamp(0.35rem, 0.8vh, 0.65rem);
  padding-bottom: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
}

.hero-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  padding: 0.15rem 0;
}

.hero-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0.75rem;
  animation: logoTrainMarquee 45s linear infinite;
  will-change: transform;
}

.hero-marquee-viewport:hover .hero-marquee-track {
  animation-play-state: paused;
}

/* Right-to-Left Infinite Seamless Scroll */
@keyframes logoTrainMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Individual Train Car / Logo Badge (Small, Sleek, Subtle) */
.marquee-train-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.6rem 0.28rem 0.4rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.marquee-train-card:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.marquee-card-logo-frame {
  width: 30px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-low, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 4px;
  padding: 2px 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.marquee-card-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.marquee-train-card:hover .marquee-card-logo-frame img {
  transform: scale(1.06);
}

.marquee-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.marquee-card-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1.2;
}

.marquee-card-sector {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 1px;
}

@media (max-width: 1024px) {
  .hero-fullscreen-section {
    min-height: auto;
    padding: clamp(1.25rem, 2.5vh, 2rem) 0 clamp(1.25rem, 2.5vh, 2rem);
  }

  .hero-fullscreen-container {
    justify-content: flex-start;
    gap: clamp(1.25rem, 2.5vh, 2rem);
    height: auto;
  }

  .hero-portrait-col {
    height: auto;
    min-height: clamp(340px, 44vh, 440px);
    padding-bottom: 0.5rem;
    padding-right: clamp(0.5rem, 2vw, 2rem);
  }

  .hero-portrait-col::before {
    width: clamp(220px, 32vw, 320px);
    height: clamp(280px, 40vh, 370px);
    bottom: clamp(0.5rem, 1.5vh, 1.5rem);
    right: clamp(0.5rem, 2vw, 2rem);
  }

  .portrait-img-standing {
    max-height: clamp(340px, 44vh, 430px);
  }

  .hero-marquee-wrap {
    margin-top: clamp(0.75rem, 2vh, 1.5rem);
  }
}

@media (max-width: 640px) {
  .hero-fullscreen-section {
    min-height: auto;
    padding: 1.25rem 0 2rem;
  }

  .hero-content-col {
    padding-left: 0;
    margin-top: 1rem;
    gap: 1rem;
  }

  .hero-headline-executive {
    font-size: clamp(1.85rem, 7.5vw, 2.45rem);
    line-height: 1.18;
  }

  .hero-lead-p {
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .hero-marquee-wrap {
    margin-top: 0.85rem;
    padding-top: 0.5rem;
  }

  .hero-identity-tag {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 0.6rem;
    padding: 0.65rem 1.15rem;
    gap: 0.75rem;
  }

  .hero-tag-name {
    font-size: 0.92rem;
  }

  .hero-tag-role {
    font-size: 0.7rem;
  }
}

.display-lg {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.5vw, 2.35rem);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.headline-lg {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.headline-sm {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.1vw, 1.05rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.body-lg {
  font-family: var(--font-body);
  font-size: clamp(0.925rem, 1.05vw, 1.05rem);
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-muted);
}

.body-md {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-muted);
}

.body-sm {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-muted);
}

.mono-label-sm {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.mono-label-md {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.9vw, 0.75rem);
  line-height: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.metric-display {
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.8vw, 2.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

.container {
  width: min(100% - clamp(0.75rem, 4vw, 3rem) * 2, var(--max-width));
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 1.75rem);
  padding-right: clamp(1rem, 3.5vw, 1.75rem);
  box-sizing: border-box;
}

.container-narrow {
  width: min(100% - clamp(0.75rem, 4vw, 2.5rem) * 2, 1080px);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.section-spacing {
  padding-top: clamp(1.25rem, 2vw, 2.25rem);
  padding-bottom: clamp(1.25rem, 2vw, 2.25rem);
}

#hero-section,
#about-hero {
  padding-top: clamp(0.5rem, 1.2vw, 0.85rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.section-spacing-sm {
  padding-top: clamp(0.85rem, 1.5vw, 1.5rem);
  padding-bottom: clamp(0.85rem, 1.5vw, 1.5rem);
}

/* Subtle Ambient Glow (Strictly Contained & Hardware Accelerated) */
.ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  width: min(100vw, clamp(240px, 60vw, 750px));
  max-width: 100vw;
  height: clamp(180px, 35vw, 400px);
  background: radial-gradient(ellipse at center, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(15, 23, 42, 0.16);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-normal);
  transform: translateZ(0);
  will-change: transform;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.09);
  border-bottom-color: rgba(15, 23, 42, 0.22);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  position: relative;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 0.95rem);
  text-decoration: none;
  min-width: 0;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-full, 9999px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.brand-lockup:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-avatar-frame {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 2px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.45) 0%, rgba(45, 212, 191, 0.75) 100%);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-lockup:hover .brand-avatar-frame {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.5);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

.brand-monogram {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--surface-low);
  padding: 3px;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
}

/* Digital Marketing Chalakudy Text: Fills progressively with bright color on scroll and page load */
.brand-role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  background-image: linear-gradient(to right, #0d9488 0%, #14b8a6 0%, #475569 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: background-image 0.05s ease;
  filter: drop-shadow(0 0 1px rgba(13, 148, 136, 0.2));
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    height: 60px;
  }

  .brand-lockup {
    gap: 0.5rem;
    padding: 0.1rem 0;
  }

  .brand-avatar-frame {
    width: 30px;
    height: 30px;
    padding: 1.5px;
  }

  .brand-name {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
  }

  .brand-role {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .site-header {
    height: 56px;
  }

  .brand-lockup {
    gap: 0.42rem;
  }

  .brand-avatar-frame {
    width: 27px;
    height: 27px;
    padding: 1.2px;
  }

  .brand-name {
    font-size: 0.69rem;
    letter-spacing: 0.04em;
  }

  .brand-role {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 340px) {
  .brand-avatar-frame {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 0.64rem;
  }

  .brand-role {
    font-size: 0.46rem;
  }
}

/* Status Indicator Beacon */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-container);
  position: relative;
  flex-shrink: 0;
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--primary-container);
  opacity: 0.5;
  animation: beacon-pulse 2s infinite ease-out;
}

@keyframes beacon-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ==========================================================================
   Dynamic Island Navigation (Apple-Inspired White Glass Interactive Navbar)
   Centered in dead middle of the website header
   ========================================================================== */
@property --neon-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes neonBorderLoop {
  0% {
    --neon-angle: 0deg;
  }
  100% {
    --neon-angle: 360deg;
  }
}

.dynamic-island-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 120;
}

@media (max-width: 1024px) {
  .dynamic-island-nav {
    display: none !important;
  }
}

.dynamic-island-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(13, 148, 136, 0.42);
  border-radius: var(--radius-full, 9999px);
  height: 32px;
  width: 122px;
  padding: 0 0.8rem;
  box-shadow: 
    0 2px 8px rgba(15, 23, 42, 0.05),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: 
    width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width, transform;
  user-select: none;
  overflow: hidden;
  cursor: pointer;
}

/* Crisp Neon Moving Border Loop - Slow, smooth constant speed (6s linear) */
.dynamic-island-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--neon-angle, 0deg),
    transparent 0deg 200deg,
    rgba(13, 148, 136, 0.25) 240deg,
    #0d9488 280deg,
    #14b8a6 320deg,
    #2dd4bf 345deg,
    #5eead4 358deg,
    transparent 360deg
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  animation: neonBorderLoop 6s linear infinite;
  z-index: 10;
}

/* Hover & Active States: Neon Beam Loops Crisp Around the Borders */
.dynamic-island-pill:hover::before,
.dynamic-island-pill.neon-active::before,
.dynamic-island-pill.is-expanded::before {
  opacity: 1;
}

.dynamic-island-pill:hover:not(.is-expanded) {
  transform: translateY(-1px);
  border-color: #0d9488;
}

/* Collapsed State: Menu Trigger Button (Proportionally Compact) */
.island-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: var(--text-main, #1e293b);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  outline: none;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  transition: 
    opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.24s,
    color 0.25s ease;
}

.island-trigger-btn:focus-visible {
  outline: 2px solid var(--primary, #0d9488);
  outline-offset: 3px;
  border-radius: var(--radius-full);
}

.island-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d9488;
  transition: transform 0.25s ease, color 0.25s ease;
}

.island-trigger-btn:hover .island-icon,
.dynamic-island-pill:hover .island-icon {
  transform: scale(1.1);
  color: #14b8a6;
}

.island-label {
  line-height: 1;
  color: var(--text-main, #1e293b);
  transition: color 0.25s ease;
}

.island-trigger-btn:hover .island-label,
.dynamic-island-pill:hover .island-label {
  color: #0d9488;
}

.island-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.island-trigger-btn:hover .island-badge,
.dynamic-island-pill:hover .island-badge {
  color: #0d9488;
  transform: translateY(1px);
}

/* Expanded State: Height comfortably increased to 44px, Border clearly defined, Moving Neon Active */
.dynamic-island-pill.is-expanded {
  width: 520px;
  max-width: calc(100vw - 2rem);
  height: 44px;
  padding: 0 0.5rem 0 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(13, 148, 136, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  cursor: default;
}

/* Fluid Hide Trigger in Expanded State */
.dynamic-island-pill.is-expanded .island-trigger-btn {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateY(-4px);
  pointer-events: none;
}

/* Expanded Content (Links & Close Button) */
.island-content-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.6vw, 0.45rem);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(4px);
  pointer-events: none;
  transition: 
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s;
}

.dynamic-island-pill.is-expanded .island-content-wrap {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  transition: 
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    visibility 0.28s;
}

.island-nav-items {
  display: flex;
  align-items: center;
  gap: 3px;
}

.island-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
  padding: 0.28rem 0.58rem;
  border-radius: var(--radius-full, 9999px);
  position: relative;
  transition: 
    color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.island-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  transition: transform 0.2s ease;
}

.island-nav-link:hover .island-nav-icon {
  transform: scale(1.12);
}

.island-nav-link:hover {
  color: #0f172a;
  background-color: rgba(13, 148, 136, 0.08);
  transform: translateY(-1px);
}

.island-nav-link.active {
  color: #ffffff;
  background-color: var(--primary-container, #0d9488);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35);
}

.island-nav-link.active:hover {
  background-color: #0f766e;
  color: #ffffff;
}

/* Circular Close Button */
.island-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #64748b;
  cursor: pointer;
  padding: 0;
  margin-left: 0.2rem;
  flex-shrink: 0;
  outline: none;
  transition: 
    background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

.island-close-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
}

.island-close-btn:active {
  transform: rotate(90deg) scale(0.94);
}

.island-close-btn:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Header Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.85rem);
  flex-shrink: 0;
}

/* Header LinkedIn Profile Link (Right Navbar Section) */
.header-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.36rem 0.82rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-full, 9999px);
  color: #0a66c2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-linkedin-btn:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.25);
}

.header-linkedin-btn svg {
  display: block;
  flex-shrink: 0;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
}

.nav-cta-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

@media (max-width: 520px) {
  .nav-cta-btn {
    display: none;
  }
}

.nav-avatar {
  width: clamp(32px, 8vw, 36px);
  height: clamp(32px, 8vw, 36px);
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--hairline-strong);
}

/* ==========================================================================
   Dynamic Bottom Navigation Pill / Dock (<= 1024px Tablet & Mobile)
   Centered at Bottom, Small & Expanded Like Desktop Dynamic Island
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: clamp(10px, 2.2vh, 18px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 16px);
  z-index: 150;
  pointer-events: auto;
  user-select: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  body {
    padding-bottom: clamp(65px, 9vw, 80px) !important;
  }
}

/* Mobile & Tablet Bottom Dynamic Island Dock Styling */
.mobile-bottom-nav .dynamic-island-pill {
  box-shadow: 
    0 12px 36px rgba(15, 23, 42, 0.16),
    0 2px 8px rgba(13, 148, 136, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  height: 36px;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
}

/* Upward Chevron on Bottom Dock Trigger */
.mobile-bottom-nav .island-badge {
  transform: rotate(180deg);
}

.mobile-bottom-nav .island-trigger-btn:hover .island-badge,
.mobile-bottom-nav .dynamic-island-pill:hover .island-badge {
  transform: rotate(180deg) translateY(1px);
}

.mobile-bottom-nav .dynamic-island-pill.is-expanded {
  width: min(480px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  height: 40px;
  padding: 0 0.35rem 0 0.45rem;
  box-sizing: border-box;
}

.mobile-bottom-nav .island-content-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  box-sizing: border-box;
}

.mobile-bottom-nav .island-nav-items {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1px, 0.4vw, 3px);
  width: 100%;
  flex: 1 1 auto;
}

.mobile-bottom-nav .island-nav-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
  padding: 0.2rem 0.38rem;
  border-radius: var(--radius-full, 9999px);
  white-space: nowrap;
  min-height: 28px;
  flex: 1 1 auto;
  transition: 
    color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-bottom-nav .island-nav-link:hover {
  color: #0f172a;
  background-color: rgba(13, 148, 136, 0.08);
}

.mobile-bottom-nav .island-nav-link.active {
  color: #ffffff !important;
  background-color: var(--primary-container, #0d9488);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35);
}

.mobile-bottom-nav .island-nav-link.active .island-nav-icon svg {
  stroke: #ffffff;
}

.mobile-bottom-nav .island-close-btn {
  width: 24px;
  height: 24px;
  margin-left: 2px;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .mobile-bottom-nav .dynamic-island-pill.is-expanded {
    width: calc(100vw - 16px);
    height: 38px;
    padding: 0 0.25rem 0 0.32rem;
  }

  .mobile-bottom-nav .island-nav-items {
    gap: 1px;
  }

  .mobile-bottom-nav .island-nav-link {
    padding: 0.16rem 0.24rem;
    font-size: 0.61rem;
    gap: 0.15rem;
    min-height: 26px;
  }

  .mobile-bottom-nav .island-nav-icon svg {
    width: 12px;
    height: 12px;
  }

  .mobile-bottom-nav .island-close-btn {
    width: 22px;
    height: 22px;
    margin-left: 1px;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav .dynamic-island-pill.is-expanded {
    width: calc(100vw - 10px);
    height: 36px;
    padding: 0 0.18rem 0 0.22rem;
  }

  .mobile-bottom-nav .island-nav-link {
    padding: 0.14rem 0.18rem;
    font-size: 0.55rem;
    gap: 0.1rem;
  }

  .mobile-bottom-nav .island-nav-icon svg {
    width: 11px;
    height: 11px;
  }

  .mobile-bottom-nav .island-close-btn {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   Advanced Kinetic Mobile Navigation Toggle Button
   ========================================================================== */
.mobile-toggle {
  display: none !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.85rem 0.42rem 0.65rem;
  height: 40px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(13, 148, 136, 0.35);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12), 0 0 10px rgba(13, 148, 136, 0.1);
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 205;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.16), 0 0 16px rgba(13, 148, 136, 0.2);
  transform: translateY(-1px);
}

.mobile-toggle:active {
  transform: scale(0.95);
}

.mobile-toggle.is-active {
  background: rgba(241, 245, 249, 0.98);
  border-color: var(--primary-container);
  box-shadow: 0 0 18px rgba(13, 148, 136, 0.25);
}

/* Kinetic 3-Bar Animated Hamburger Icon */
.toggle-icon-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.38s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    opacity 0.25s ease,
    width 0.3s ease,
    background-color 0.3s ease;
}

.toggle-bar.bar-top {
  width: 100%;
  transform-origin: center;
}

.toggle-bar.bar-mid {
  width: 65%;
  background: var(--primary);
}

.mobile-toggle:hover .toggle-bar.bar-mid {
  width: 100%;
}

.toggle-bar.bar-bot {
  width: 100%;
  transform-origin: center;
}

/* Morph to dynamic X when is-active */
.mobile-toggle.is-active .toggle-bar.bar-top {
  transform: translateY(6px) rotate(45deg);
  background: var(--text-main);
}

.mobile-toggle.is-active .toggle-bar.bar-mid {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.is-active .toggle-bar.bar-bot {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--text-main);
}

.toggle-label {
  display: inline-block;
  line-height: 1;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.mobile-toggle.is-active .toggle-label {
  color: var(--primary);
}

/* ==========================================================================
   Cinematic Glassmorphic Mobile/Tablet Navigation Drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  background-image:
    radial-gradient(ellipse at 85% 12%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(59, 130, 246, 0.05), transparent 50%);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    visibility 0.45s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.drawer-close:hover {
  background: var(--surface-high);
  color: var(--text-main);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1vh, 0.65rem);
  padding: clamp(1rem, 2vh, 1.5rem) 0;
  flex: 1;
  justify-content: center;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid transparent;
  text-decoration: none;
  background: transparent;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateX(-24px);
}

.mobile-drawer.open .drawer-link {
  animation: nkNavCascade 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-drawer.open .drawer-link:nth-child(1) {
  animation-delay: 0.08s;
}

.mobile-drawer.open .drawer-link:nth-child(2) {
  animation-delay: 0.14s;
}

.mobile-drawer.open .drawer-link:nth-child(3) {
  animation-delay: 0.20s;
}

.mobile-drawer.open .drawer-link:nth-child(4) {
  animation-delay: 0.26s;
}

.mobile-drawer.open .drawer-link:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes nkNavCascade {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.drawer-index {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  min-width: 22px;
}

.drawer-link-text {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 650;
  color: var(--text-main);
  flex: 1;
  letter-spacing: -0.015em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.drawer-arrow {
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-link:hover,
.drawer-link:active {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
}

.drawer-link:hover .drawer-link-text {
  color: var(--primary);
  transform: translateX(4px);
}

.drawer-link:hover .drawer-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

.drawer-link.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.drawer-link.active .drawer-link-text {
  color: var(--primary);
}

.drawer-link.active .drawer-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-shrink: 0;
}

.drawer-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.drawer-quick-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md, 6px);
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-quick-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary-container);
  color: var(--primary);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1rem, 2.5vw, 1.75rem);
  min-height: 44px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
}

/* Responsive Button Groups / CTA Stacking */
.hero-cta-group,
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

@media (max-width: 520px) {

  .hero-cta-group,
  .btn-group,
  .conversion-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn,
  .btn-group .btn,
  .conversion-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn-primary {
  background: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-low);
  color: var(--text-main);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover {
  background: var(--surface-high);
  border-color: var(--hairline-strong);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--hairline-strong);
}

.btn-outline:hover {
  background: var(--surface-low);
  border-color: var(--primary);
  color: var(--primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--surface-low);
  color: var(--text-secondary);
  border: 1px solid var(--hairline);
}

.badge-primary {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.25);
}

.badge-accent {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Cards & Content Modules (Strict Height & Flex Alignment)
   ========================================================================== */

.card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: clamp(0.85rem, 1.6vw, 1.45rem);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.card-highlight {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

.card-bordered-top {
  border-top: 2px solid var(--primary-container);
}

/* ==========================================================================
   Dedicated Responsive Grids (Guaranteed Horizontal Alignment)
   ========================================================================== */

/* 1. Hero Tenets Grid (Get Seen, Be Remembered, Be Chosen / Conversion Loops) */
.tenets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  align-items: stretch;
  width: 100%;
}

.tenet-card {
  padding: 0.65rem 0.85rem !important;
  justify-content: flex-start !important;
  gap: 0.2rem;
}

.tenet-title {
  margin: 0.25rem 0 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.tenet-desc {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: auto;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .tenets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .tenet-card {
    padding: 0.5rem 0.6rem !important;
  }

  .tenet-title {
    font-size: 0.8rem;
  }

  .tenet-desc {
    font-size: 0.7rem;
    line-height: 1.35;
  }
}

@media (max-width: 520px) {
  .tenets-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .tenet-card {
    padding: 0.5rem 0.75rem !important;
    display: flex;
    flex-direction: column;
  }
}

/* Hero Top Regional Badge Row */
.hero-top-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Mobile & Tablet Responsiveness:
   Show exactly ONE clean badge container (e.g., "Digital Marketer · Chalakudy, Kerala")
   and hide secondary clutter/kicker elements */
@media (max-width: 1024px) {
  .hero-top-badge-row {
    display: flex !important;
    justify-content: flex-start !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-top-badge-row .badge,
  .hero-top-badge-row .badge-primary {
    display: inline-flex !important;
    font-size: 0.72rem !important;
    padding: 0.28rem 0.65rem !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08) !important;
  }

  /* Hide secondary unboxed scope text and redundant kicker row */
  .hero-top-badge-row .hero-top-scope-text,
  .hero-top-badge-row > div:not(.badge),
  .hero-kicker-row {
    display: none !important;
  }
}

/* Hero Kicker & Badge Pill Row */
.hero-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

/* Hero Quote Callout Box */
.hero-quote-box {
  padding: 0.55rem 0.85rem;
  background: var(--surface-container);
  border-left: 3px solid var(--primary-container);
  border-radius: var(--radius-sm);
  margin: 0.25rem 0;
}

.hero-quote-box p {
  font-family: var(--font-body);
  font-size: clamp(0.825rem, 1.1vw, 0.9rem);
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.55;
}

/* Execution Mandate Container */
.execution-mandate-card {
  padding: 0.5rem 0.85rem;
  background: var(--surface-container);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.execution-mandate-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  white-space: nowrap;
}

.execution-mandate-text {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.1vw, 0.85rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* 2. Services Grid (What I Can Help With - 6 Cards) - Compact */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

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

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

/* 3. Process Framework Grid (Discover, Position, Create, Reach, Grow) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

/* 4. Why Work With Nidheesh Pillars Grid - Full Desktop Screen Proportions */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.2vw, 1.85rem);
  align-items: stretch;
  width: 100%;
}

@media (max-width: 820px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* 5. The Work Behind the Screens Decisions Grid (9 Pillars) - Compact */
.decisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  width: 100%;
}

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

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

/* 6. Strategy to Execution Framework Grid */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

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

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

/* 6b. Strict 3x2 Grid (3 on Top Row, 3 on Bottom Row) */
.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
  width: 100%;
}

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

@media (max-width: 600px) {
  .grid-3x2 {
    grid-template-columns: 1fr;
  }
}

/* 7. Four-Column Anchor Alignment Grid */
.anchor-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

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

@media (max-width: 560px) {
  .anchor-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Executive Portrait Cards & Dossier Lockups (Desktop & Laptop Viewport Optimization) */
.about-portrait-col {
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#hero-portrait-card {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  padding: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#about-portrait-card {
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
  padding: 0.45rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 330px;
  background: var(--surface-lowest);
  margin-inline: auto;
}

#about-portrait-card .portrait-frame {
  max-height: 260px;
}

#about-specs-card {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

/* Floating Identification Badge inside Portraits */
.floating-id-badge {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  right: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

/* Brand Logo Frame for Work Showcase */
.brand-logo-frame {
  width: 100%;
  height: 150px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--hairline-strong);
  transition: transform var(--transition-normal);
}

.brand-card:hover .brand-logo-frame {
  transform: translateY(-2px);
}

.brand-logo-frame img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-lowest);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-low);
}

/* ==========================================================================
   Marketing Growth Activity & Q&A Explorer
   ========================================================================== */

.activity-container {
  max-width: 860px;
  margin: 0 auto;
}

.activity-progress-wrap {
  margin-bottom: 2rem;
}

.activity-progress-bar {
  height: 6px;
  background: var(--surface-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.activity-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-container));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-step {
  display: none;
  animation: fadeInStep 0.35s ease forwards;
}

.activity-step.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

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

.activity-option {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition-fast);
  user-select: none;
  text-align: left;
}

.activity-option:hover {
  border-color: var(--primary);
  background: var(--surface-low);
  transform: translateY(-1px);
}

.activity-option.selected {
  border-color: var(--primary);
  background: rgba(246, 96, 24, 0.08);
  box-shadow: 0 0 0 1px var(--primary);
}

.activity-option .option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.activity-option.multi .option-indicator {
  border-radius: 4px;
}

.activity-option.selected .option-indicator {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.activity-option.selected .option-indicator::after {
  content: '✓';
  font-size: 11px;
  font-weight: 700;
}

.activity-option .option-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  flex-grow: 1;
}

.activity-custom-input {
  width: 100%;
  background: var(--surface-lowest);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-top: 1rem;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.activity-custom-input:focus {
  border-color: var(--primary);
}

.nav-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  gap: 1rem;
}

/* Results Card Styling */
.result-do-card {
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.result-dont-card {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Q&A Explorer */
.qna-item {
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.qna-item:hover {
  border-color: var(--hairline-strong);
}

.qna-question-btn {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
}

.qna-question-btn:hover {
  color: var(--primary);
}

.qna-answer-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

.qna-item.open .qna-answer-body {
  display: block;
}

.qna-item.open .qna-toggle-icon {
  transform: rotate(180deg);
}

.qna-toggle-icon {
  transition: transform var(--transition-fast);
  color: var(--primary);
}



/* Standard General Grids */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

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

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

/* Spec & Ledger Lists */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.65rem 0.875rem;
  background: var(--surface-container);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.spec-label {
  color: var(--text-dim);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.spec-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

@media (max-width: 640px) {
  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .spec-value {
    text-align: left;
    width: 100%;
  }
}

/* Icon Bullets */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.bullet-icon {
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.15rem;
  background: var(--surface-low);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--hairline-strong);
}

.filter-btn.active {
  background: var(--primary-container);
  color: #ffffff;
  border-color: var(--primary-container);
  box-shadow: 0 2px 10px rgba(246, 96, 24, 0.3);
}

.project-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-card.hidden {
  display: none !important;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 44px;
  padding: 0.875rem 1rem;
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  /* Prevents auto-zoom on mobile iOS Safari */
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Radio / Checkbox Pills */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
}

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

.pill-option {
  position: relative;
}

.pill-option input[type="radio"],
.pill-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background: var(--surface-container);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.pill-box:hover {
  border-color: var(--hairline-strong);
  color: var(--text-main);
}

.pill-option input:checked+.pill-box {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary-container);
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Interactive Security Verification CAPTCHA
   ========================================================================== */
.form-captcha-group {
  background: rgba(13, 148, 136, 0.04);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-captcha-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.captcha-box-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
}

.captcha-badge {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(13, 148, 136, 0.09);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px dashed rgba(13, 148, 136, 0.35);
  user-select: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.captcha-refresh-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s ease, color 0.2s ease;
}

.captcha-refresh-btn:hover {
  color: var(--primary);
  transform: rotate(180deg);
}

.captcha-status-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.captcha-status-icon.valid {
  color: #22c55e;
}

.captcha-status-icon.invalid {
  color: #e11d48;
}

@keyframes captchaShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-captcha-group.shake {
  animation: captchaShake 0.4s ease;
  border-color: #e11d48 !important;
}

/* Form Feedback Status Alert (Success / Error / Security Alert) */
.form-feedback-box {
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.835rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  animation: feedbackSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes feedbackSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-feedback-box.is-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.form-feedback-box.is-success .feedback-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-feedback-box.is-error {
  background: #fff1f2;
  border: 1px solid #f43f5e;
  color: #9f1239;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.1);
}

.form-feedback-box.is-error .feedback-icon {
  color: #f43f5e;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-feedback-box.is-loading {
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.35);
  color: var(--primary);
}

.form-feedback-box a {
  text-decoration: underline;
  font-weight: 700;
  color: inherit;
}

/* Responsive Form Rows & Scenario Grids */
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.65rem;
}

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

/* Modal / Toast Confirmation */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-content {
  background: var(--surface-low);
  border: 1px solid var(--hairline-accent);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: min(540px, calc(100vw - 2rem));
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  text-align: center;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  box-sizing: border-box;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* ==========================================================================
   Footer — Luminous Pearl Green Signature Theme
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, #f0fdfa 0%, #f6fcfb 50%, #e6f7f4 100%);
  border-top: 1.5px solid rgba(13, 148, 136, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 -8px 30px rgba(13, 148, 136, 0.05);
  color: var(--text-secondary, #27364b);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, #0d9488, #14b8a6, transparent);
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.35);
  pointer-events: none;
}

.site-footer .brand-name {
  color: #090d16 !important;
}

.site-footer .brand-role {
  background-image: linear-gradient(to right, #0d9488, #0f766e) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
}

.site-footer p.body-sm,
.site-footer .body-sm {
  color: #475569 !important;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(13, 148, 136, 0.14);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e !important;
  margin-bottom: 1.25rem;
  text-shadow: none;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #334155 !important;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  text-decoration: none;
}

.footer-link:hover {
  color: #0d9488 !important;
  transform: translateX(3px);
  text-shadow: none;
}

.site-footer strong {
  color: #090d16 !important;
  font-weight: 700;
}

.site-footer a {
  color: #0d9488;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b !important;
}

.footer-bottom .footer-link {
  font-size: 0.75rem;
  color: #475569 !important;
}

.footer-bottom .footer-link:hover {
  color: #0d9488 !important;
}

.site-footer .terms-trigger-btn {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  color: #0d9488;
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.06);
}

.site-footer .terms-trigger-btn:hover {
  background: rgba(13, 148, 136, 0.16);
  color: #0f766e;
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {

  .status-pill {
    display: none;
  }

  .mobile-toggle {
    display: none !important;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .dynamic-island-nav {
    display: none !important;
  }
}

/* ==========================================================================
   Laptop to Tablet Precision Proportions (768px - 1366px)
   Eliminates oversized text, badges, containers, and padding for a sleek, balanced look
   ========================================================================== */
@media (max-width: 1366px) {
  .display-xl {
    font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  }

  .display-lg {
    font-size: clamp(1.25rem, 2vw, 2rem);
  }

  .headline-lg {
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  }

  .card {
    padding: clamp(0.85rem, 1.4vw, 1.35rem);
  }

  .hero-content-col,
  .about-content-col {
    gap: 1.25rem !important;
  }
}

/* ==========================================================================
   Tablet & Mobile Hero Reordering: Content First, Portrait Second (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .dynamic-island-nav {
    display: none !important;
  }

  .display-xl {
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    line-height: 1.18;
  }

  .display-lg {
    font-size: clamp(1.125rem, 2vw, 1.55rem);
    line-height: 1.22;
  }

  .headline-lg {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .headline-md {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  }

  .body-lg {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .body-md {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .activity-card {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }

  /* Compact Hero Section for Tablets (Eliminates forced viewport gap below portrait) */
  .hero-fullscreen-section {
    min-height: auto !important;
    height: auto !important;
    padding: clamp(1.5rem, 3vh, 2.25rem) 0 clamp(1rem, 2vh, 1.5rem) !important;
    justify-content: flex-start !important;
  }

  .hero-fullscreen-container {
    height: auto !important;
    min-height: auto !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
  }

  .hero-grid-lockup,
  .about-grid-lockup {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  /* Content (Headline, Narrative & CTAs) Comes FIRST */
  .hero-content-col,
  .about-content-col {
    order: 1 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    gap: 0.85rem !important;
  }

  /* Portrait & Coordinates Card Comes SECOND — Restrained Luxury Width, No Dead Space */
  .hero-portrait-col {
    order: 2 !important;
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    max-height: clamp(340px, 44vh, 430px) !important;
    margin-inline: auto !important;
    margin-top: 0.75rem !important;
    padding-bottom: 0 !important;
    padding-right: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .portrait-img-standing {
    max-height: clamp(320px, 40vh, 410px) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .hero-portrait-col::before {
    bottom: 0.85rem !important;
    right: 50% !important;
    transform: translateX(50%) rotate(-1.5deg) !important;
    width: clamp(210px, 28vw, 270px) !important;
    height: clamp(250px, 34vh, 340px) !important;
  }

  .hero-identity-tag {
    bottom: 0.5rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    padding: 0.55rem 1rem !important;
    gap: 0.65rem !important;
  }

  .hero-marquee-wrap {
    margin-top: 1rem !important;
    padding-top: 0.65rem !important;
  }

  .about-portrait-col,
  .about-specs-col {
    order: 2 !important;
    width: 100% !important;
    margin-inline: auto !important;
    margin-top: 1.5rem !important;
  }

  #about-hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: clamp(1.25rem, 3vh, 2rem) !important;
    padding-bottom: clamp(1.5rem, 3vh, 2.5rem) !important;
  }
}

@media (max-width: 900px) {
  .grid-12>* {
    grid-column: span 12 !important;
  }

  .contact-info-col {
    order: -1;
  }
}

@media (max-width: 640px) {

  .display-xl {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .display-lg {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }

  .about-portrait-col {
    max-width: 290px !important;
    margin-top: 1.25rem !important;
  }

  .hero-portrait-col {
    max-width: 320px !important;
    height: clamp(380px, 50vh, 460px) !important;
    margin-top: 1.25rem !important;
  }

  .card {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-top {
    padding-bottom: 2rem;
  }
}

/* ==========================================================================
   Marketing Growth Activity — Interactive Diagnostic Experience
   ========================================================================== */

.activity-hero {
  padding: clamp(2rem, 3.5vw, 3rem) 0 1.25rem;
  text-align: center;
  position: relative;
}

.activity-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  background: rgba(163, 190, 140, 0.08);
  border: 1px solid rgba(163, 190, 140, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.activity-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.2vw, 1.75rem);
  position: relative;
  box-shadow: var(--shadow-ambient);
  margin-bottom: 2.5rem;
  transition: border-color var(--transition-normal);
}

@media (max-width: 768px) {
  .activity-card {
    padding: 1rem 1.15rem;
  }
}

/* 4-Step Interactive Stepper Navigation */
.activity-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.stepper-item:hover {
  color: var(--text-secondary);
}

.stepper-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
  background: var(--surface-low);
  color: var(--text-dim);
}

.stepper-item.active {
  color: var(--text-main);
}

.stepper-item.active .stepper-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: #0f1416;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(163, 190, 140, 0.35);
}

.stepper-item.completed {
  color: var(--primary);
}

.stepper-item.completed .stepper-bubble {
  background: rgba(163, 190, 140, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 640px) {
  .stepper-label {
    display: none;
  }

  .stepper-item {
    padding: 0.25rem 0.35rem;
    gap: 0.35rem;
  }
}

@media (max-width: 320px) {
  .stepper-bubble {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
}

/* Progress bar fill */
.activity-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface-lowest);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 2rem;
}

.activity-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-container) 100%);
  width: 25%;
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(163, 190, 140, 0.4);
}

/* Step container animation */
.activity-step {
  display: none;
  animation: stepIn 0.35s ease forwards;
}

.activity-step.active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.step-header {
  margin-bottom: 2rem;
}

.step-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

/* Modern Card-Based Option Selector */
.choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

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

.choice-card {
  background: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all var(--transition-fast);
  user-select: none;
  box-sizing: border-box;
}

.choice-card:hover {
  background: var(--surface-mid);
  border-color: rgba(163, 190, 140, 0.4);
  transform: translateY(-2px);
}

.choice-card.selected {
  background: rgba(163, 190, 140, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(163, 190, 140, 0.12);
}

.choice-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.choice-icon {
  font-size: 20px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.choice-card:hover .choice-icon {
  color: var(--text-main);
}

.choice-card.selected .choice-icon {
  color: var(--primary);
}

.choice-title {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  overflow-wrap: break-word;
}

.choice-card:hover .choice-title {
  color: var(--text-main);
}

.choice-card.selected .choice-title {
  color: var(--text-main);
  font-weight: 600;
}

.choice-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.choice-card.selected .choice-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #0f1416;
}

.choice-card.selected .choice-check::after {
  content: '✓';
  font-size: 11px;
  font-weight: 900;
}

/* Custom text input */
.custom-choice-input {
  width: 100%;
  min-height: 44px;
  background: var(--surface-lowest);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  /* Prevents auto-zoom on mobile iOS Safari */
  outline: none;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: stepIn 0.3s ease;
  box-sizing: border-box;
}

.custom-choice-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(163, 190, 140, 0.2);
}

/* Step Wizard Action Footer */
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

@media (max-width: 520px) {
  .wizard-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.75rem;
  }

  .wizard-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .selected-counter-badge {
    text-align: center;
  }
}

.selected-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(163, 190, 140, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Personalized Diagnostic Results — Clean Executive Blueprint
   ========================================================================== */

#activity-results {
  display: none;
  animation: stepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Executive Header Banner */
.results-header-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, var(--surface-low) 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  margin-bottom: 1.5rem;
  position: relative;
}

.results-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.results-header-banner h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-main);
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.results-profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.profile-pill strong {
  color: var(--primary);
}

/* Interactive Tabs for Action Plan Sections */
.results-tab-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.results-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.results-tab-btn:hover {
  color: var(--text-main);
}

.results-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.results-tab-pane {
  display: none;
  animation: stepIn 0.35s ease forwards;
}

.results-tab-pane.active {
  display: block;
}

/* 4 Core Strategic Levers — Clean 2x2 Grid */
.levers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

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

.lever-card {
  background: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-fast);
  position: relative;
}

.lever-card:hover {
  border-color: rgba(163, 190, 140, 0.4);
  transform: translateY(-2px);
}

.lever-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.lever-title {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lever-flow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  background: rgba(218, 165, 32, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
}

/* Do's and Don'ts Twin Cards */
.dos-donts-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

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

.guideline-card {
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.guideline-card.do-theme {
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.guideline-card.dont-theme {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.guideline-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guideline-card.do-theme h3 {
  color: #22c55e;
}

.guideline-card.dont-theme h3 {
  color: #ef4444;
}

.guideline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guideline-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.guideline-list li span.mark-do {
  color: #22c55e;
  font-weight: 700;
}

.guideline-list li span.mark-dont {
  color: #ef4444;
  font-weight: 700;
}

/* Executive Mindset Card */
.mindset-box {
  background: var(--surface-low);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.mindset-box h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

/* Ready to Improve CTA Card */
.conversion-cta-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, var(--surface-mid) 100%);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.conversion-cta-card h3 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.conversion-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.quote-closing {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-style: normal;
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto;
}

/* Spinner Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   Smooth Page Transitions & Fluid Scroll Reveal Animation System
   ========================================================================== */

/* Main Content Page Entrance: Glides in smoothly with luxury editorial ease */
@keyframes pageGlideIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: pageGlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Page Exit Transition: Seamless fade-out on internal link click */
body {
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-transitioning {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  pointer-events: none;
}

/* Scroll Reveal Base: Cards and sections fade in and rise smoothly as user scrolls */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1), transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Hardware accelerate sticky header to eliminate scroll repaints */
.site-header {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ==========================================================================
   Right-Side Nav Profile Card & Full Screen Blur Overlay
   ========================================================================== */

.nav-avatar-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-avatar-btn:hover {
  transform: scale(1.08);
}

.nav-avatar-btn .nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-container);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-avatar-btn:hover .nav-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(246, 96, 24, 0.45);
}

/* Full Screen Blur Backdrop (Instant Hardware-Accelerated Fade-In Effect) */
.nav-profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.32s;
}

.nav-profile-overlay.active {
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.nav-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.nav-profile-overlay.active .nav-profile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Small Profile Card: Liquid Wave & Paper Emergence from Circle Avatar */
.nav-profile-card {
  position: absolute;
  top: calc(var(--header-height) + 8px);
  left: clamp(0.75rem, 3.5vw, 2.5rem);
  right: auto;
  width: min(350px, calc(100vw - 1.5rem));
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14), 0 2px 10px rgba(15, 23, 42, 0.05);
  transform-origin: 24px -10px;
  clip-path: circle(0% at 24px -10px);
  transform: scale(0.9) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: 
    clip-path 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
  will-change: clip-path, transform, opacity;
  z-index: 301;
}

.nav-profile-overlay.active .nav-profile-card {
  clip-path: circle(160% at 24px -10px);
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-profile-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.nav-profile-close:hover {
  color: var(--text-main);
  background: var(--surface-high);
  border-color: var(--hairline-strong);
  transform: rotate(90deg);
}

/* Backgrounded Profile Header */
.nav-profile-header-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(45, 212, 191, 0.14) 100%);
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  position: relative;
}

.nav-profile-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.nav-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.nav-profile-online-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.nav-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-profile-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.nav-profile-role-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Shifted Direct Coordinates Box Inside Profile Card */
.nav-profile-coords-box {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.nav-profile-coords-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.3rem;
}

.nav-profile-bio {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.nav-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.nav-profile-btn {
  width: 100%;
  padding: 0.52rem 0.65rem;
  font-size: 0.8rem;
  justify-content: center;
  border-radius: var(--radius-sm);
  text-align: center;
  box-sizing: border-box;
}

/* Responsive Nav Profile Card for Narrow Viewports */
@media (max-width: 540px) {
  .nav-profile-card {
    top: calc(var(--header-height) + 6px);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    transform-origin: 20px -8px;
    padding: 1rem 0.85rem;
  }
}

@media (max-width: 280px) {
  .nav-profile-card {
    width: calc(100vw - 0.75rem);
    padding: 1rem 0.65rem;
  }
}

/* ==========================================================================
   Footer Terms & Conditions 'i' Trigger & Modal Overlay
   ========================================================================== */
.terms-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-container);
  border: 1px solid var(--hairline-strong);
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
  transition: all var(--transition-fast);
  outline: none;
}

.terms-trigger-btn:hover,
.terms-trigger-btn:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.terms-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.terms-modal-card {
  position: relative;
  width: min(560px, calc(100vw - 2rem));
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 25px rgba(13, 148, 136, 0.12);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 351;
  overflow: hidden;
  overscroll-behavior: contain;
}

.terms-modal-overlay.active .terms-modal-card {
  transform: scale(1) translateY(0);
}

.terms-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.terms-modal-close:hover {
  color: var(--text-main);
  background: var(--surface-high);
  border-color: var(--hairline-strong);
  transform: rotate(90deg);
}

.terms-modal-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.terms-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, #0d9488);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.terms-modal-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.terms-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.terms-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 auto;
  max-height: calc(min(88vh, 640px) - 170px);
}

.terms-modal-body::-webkit-scrollbar {
  width: 6px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 999px;
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.35);
  border-radius: 999px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.6);
}

.terms-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.terms-item:hover {
  border-color: var(--hairline-strong);
}

.terms-item-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-item-content h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.terms-item-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.terms-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--surface-low);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.terms-modal-note {
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (max-width: 540px) {
  .terms-modal-card {
    width: calc(100vw - 1.25rem);
    max-height: calc(100vh - 2rem);
  }
  .terms-modal-header,
  .terms-modal-body,
  .terms-modal-footer {
    padding-inline: 1rem;
  }
  .terms-modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
  }
  .terms-modal-footer button {
    width: 100%;
  }
}


/* ==========================================================================
   Lenis Watery Momentum Smooth Scroll
   ========================================================================== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ==========================================================================
   Ambient Luminous Aurora Mesh (Subtle, Non-Distracting Luxury Background)
   ========================================================================== */
.ambient-aurora-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.aurora-orb-1 {
  top: -10%;
  right: 10%;
  width: clamp(340px, 48vw, 650px);
  height: clamp(340px, 48vw, 650px);
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, rgba(20, 184, 166, 0.02) 45%, transparent 70%);
  animation: auroraDrift1 24s ease-in-out infinite alternate;
}

.aurora-orb-2 {
  bottom: 5%;
  left: -5%;
  width: clamp(300px, 42vw, 580px);
  height: clamp(300px, 42vw, 580px);
  background: radial-gradient(circle, rgba(15, 118, 110, 0.05) 0%, rgba(13, 148, 136, 0.015) 45%, transparent 70%);
  animation: auroraDrift2 28s ease-in-out infinite alternate;
}

.aurora-orb-3 {
  top: 45%;
  left: 25%;
  width: clamp(260px, 36vw, 500px);
  height: clamp(260px, 36vw, 500px);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, rgba(13, 148, 136, 0.01) 45%, transparent 70%);
  animation: auroraDrift3 32s ease-in-out infinite alternate;
}

.aurora-cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin-top: -230px;
  margin-left: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.07) 0%, rgba(20, 184, 166, 0.02) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

@keyframes auroraDrift1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-12vw, 15vh, 0) scale(1.12);
  }

  100% {
    transform: translate3d(-25vw, 6vh, 0) scale(0.95);
  }
}

@keyframes auroraDrift2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18vw, -12vh, 0) scale(1.08);
  }

  100% {
    transform: translate3d(30vw, -22vh, 0) scale(0.92);
  }
}

@keyframes auroraDrift3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-10vw, -14vh, 0) scale(1.15);
  }

  100% {
    transform: translate3d(12vw, 10vh, 0) scale(0.88);
  }
}

/* Old top scroll-progress-track removed per user specification */
.scroll-progress-track {
  display: none !important;
}

/* Header AI Star Button (Positioned Directly Beside Dynamic Island Menu Pill) */
.dynamic-island-nav .header-ai-star-btn {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  transition: 
    left 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
  will-change: left, transform;
}

.header-ai-star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(13, 148, 136, 0.38);
  color: var(--primary-container, #0d9488);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
  user-select: none;
}

.header-ai-star {
  display: inline-block;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* Hover: Rotates once (360deg) */
.header-ai-star-btn:hover .header-ai-star {
  transform: rotate(360deg);
}

.header-ai-star-btn:hover {
  background: var(--primary-container, #0d9488);
  color: #ffffff;
  border-color: var(--primary-container, #0d9488);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.dynamic-island-nav .header-ai-star-btn:hover {
  transform: translateY(-50%) scale(1.08);
}

/* Click / Active: Rotates once smoothly */
@keyframes aiStarSpinOnce {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header-ai-star-btn.is-spinning .header-ai-star,
.header-ai-star-btn:active .header-ai-star {
  animation: aiStarSpinOnce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Mobile AI star button in header actions is hidden on desktop */
.header-actions .mobile-ai-star-btn {
  display: none;
}

@media (max-width: 1024px) {
  .dynamic-island-nav {
    display: none;
  }
  .header-actions .mobile-ai-star-btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   Master Typographic Signature Preloader (Pure Kinetic Text Animation)
   ========================================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  overflow: hidden;
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0.75s ease, opacity 0.5s ease;
  animation: preloaderFailsafeDismiss 1.6s ease-out 1.2s forwards;
}

@keyframes preloaderFailsafeDismiss {
  0%, 85% {
    opacity: 1;
    pointer-events: auto;
  }
  100% {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

.site-preloader.is-loaded {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.preloader-blade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0%);
  will-change: transform;
}

/* Blade 1: Leading Mint/Seafoam Accent Blade */
.preloader-blade-accent {
  background: linear-gradient(180deg, #0f766e 0%, #0d9488 50%, #2dd4bf 100%);
  z-index: 1;
  transition: transform 0.62s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: 0 -12px 30px rgba(13, 148, 136, 0.25);
}

/* Blade 2: Pure Canvas Blade */
.preloader-blade-canvas {
  background: #ffffff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.15);
}

.site-preloader.is-loaded .preloader-blade-canvas {
  transform: translateY(-100%);
  transition-delay: 0s;
}

.site-preloader.is-loaded .preloader-blade-accent {
  transform: translateY(-100%);
  transition-delay: 0.08s;
}

.site-preloader.is-loaded .preloader-brand-signature {
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.preloader-brand-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  text-align: center;
  padding: 1.5rem;
  width: 100%;
  max-width: min(92vw, 680px);
  position: relative;
  z-index: 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Monogram Capsule Badge */
.preloader-monogram-badge,
.curtain-monogram-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 1.15rem;
  border-radius: 9999px;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.3);
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.12);
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.monogram-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0d9488;
  box-shadow: 0 0 8px #0d9488;
  animation: preloaderDotPulse 1.8s ease-in-out infinite;
}

@keyframes preloaderDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
    box-shadow: 0 0 14px #2dd4bf;
  }
}

/* Full Luminous Kinetic Name Display */
.preloader-title-wrap,
.curtain-title-wrap {
  position: relative;
  overflow: hidden;
  padding: 0.25rem 0.5rem;
}

.preloader-title,
.curtain-name-text {
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 6.5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: clamp(0.12em, 2vw, 0.24em);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  background: linear-gradient(110deg, #090d16 0%, #0d9488 35%, #14b8a6 50%, #0d9488 65%, #090d16 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: preloaderTextShimmer 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(13, 148, 136, 0.3));
}

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

/* Precision Glowing Progress Line */
.preloader-line-loader,
.curtain-line-loader {
  width: clamp(220px, 48vw, 340px);
  height: 3px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.preloader-line-fill,
.curtain-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.85);
  border-radius: 999px;
  transition: width 0.12s ease-out;
}

.curtain-line-fill {
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Metadata Subtitle & Counter */
.preloader-meta-row,
.curtain-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(220px, 48vw, 340px);
  font-family: var(--font-mono, monospace);
  font-size: clamp(0.72rem, 1.6vw, 0.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preloader-tagline,
.curtain-tagline {
  color: #0d9488 !important;
  font-weight: 700 !important;
  font-size: inherit;
  letter-spacing: inherit;
  text-shadow: 0 0 12px rgba(13, 148, 136, 0.3);
}

.preloader-counter {
  color: #0d9488;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
  text-shadow: 0 0 10px rgba(13, 148, 136, 0.25);
}

/* Curtain specific adjustments */
.curtain-brand-signature {
  gap: 1.35rem;
  max-width: min(92vw, 680px);
}

.curtain-meta-row {
  justify-content: center;
}

@media (max-width: 640px) {
  .preloader-brand-signature,
  .curtain-brand-signature {
    gap: 1rem;
    padding: 1rem;
  }
  .preloader-title,
  .curtain-name-text {
    font-size: clamp(1.6rem, 6.8vw, 2.25rem);
    letter-spacing: 0.14em;
  }
  .preloader-line-loader,
  .curtain-line-loader,
  .preloader-meta-row,
  .curtain-meta-row {
    width: clamp(200px, 78vw, 290px);
  }
}

@media (max-width: 340px) {
  .preloader-tagline {
    display: none;
  }
  .preloader-counter {
    margin: 0 auto;
  }
}

/* ==========================================================================
   Advanced Dual-Blade Cinematic Curtain Page Transition
   ========================================================================== */
.site-page-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.site-page-curtain.is-active {
  visibility: visible;
  pointer-events: auto;
}

.curtain-blade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  will-change: transform;
}

/* Blade 1: Pale Green / Emerald leading blade */
.curtain-blade-accent {
  background: linear-gradient(180deg, #0f766e 0%, #0d9488 50%, #2dd4bf 100%);
  z-index: 1;
  transition: transform 0.44s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: 0 -12px 30px rgba(13, 148, 136, 0.25);
}

/* Blade 2: Pure canvas blade */
.curtain-blade-canvas {
  background: #ffffff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.15);
}

.curtain-brand-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  padding: 1.5rem;
}

/* Sweep Enter (Wipe up to cover current page) */
.site-page-curtain.curtain-sweep-in .curtain-blade-accent {
  transform: translateY(0%);
  transition-delay: 0s;
}

.site-page-curtain.curtain-sweep-in .curtain-blade-canvas {
  transform: translateY(0%);
  transition-delay: 0.06s;
}

.site-page-curtain.curtain-sweep-in .curtain-brand-signature {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.18s;
}

.site-page-curtain.curtain-sweep-in .curtain-line-fill {
  width: 100%;
  transition-delay: 0.22s;
}

/* Sweep Out (Slide out towards top revealing destination page) */
.site-page-curtain.curtain-sweep-out .curtain-blade-canvas {
  transform: translateY(-100%);
  transition-delay: 0s;
}

.site-page-curtain.curtain-sweep-out .curtain-blade-accent {
  transform: translateY(-100%);
  transition-delay: 0.06s;
}

.site-page-curtain.curtain-sweep-out .curtain-brand-signature {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition-duration: 0.22s;
}

/* Page Entrance Animation */
@keyframes pageGlideIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

main {
  position: relative;
  z-index: 1;
  animation: pageGlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform, filter;
}

/* ==========================================================================
   Advanced Kinetic Scroll Reveal System (Blur + Scale + Fluid Glide)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Ensure interactive hero buttons and CTAs are never delayed or visually blocked */
.hero-cta-group,
.hero-cta-group .btn,
.btn-compact {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Lightweight smooth cascading delays */
.reveal-stagger-1 {
  transition-delay: 0.04s;
}

.reveal-stagger-2 {
  transition-delay: 0.08s;
}

.reveal-stagger-3 {
  transition-delay: 0.12s;
}

.reveal-stagger-4 {
  transition-delay: 0.16s;
}

.reveal-stagger-5 {
  transition-delay: 0.20s;
}

.reveal-stagger-6 {
  transition-delay: 0.24s;
}

/* 3D Perspective Tilt with Spotlight Mouse Sheen for Cards */
.tilt-card {
  transition: transform 0.24s cubic-bezier(0.2, 0, 0.2, 1),
    box-shadow 0.24s ease,
    border-color 0.24s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(37, 99, 235, 0.08),
      transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.tilt-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Accessibility & 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;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .site-preloader {
    display: none !important;
  }

  main {
    animation: none !important;
  }
}

/* ==========================================================================
   Ultra-Wide & 4K Monitor Optimization (2560px - 3840px)
   ========================================================================== */
@media (min-width: 2560px) {
  .container {
    max-width: 1600px;
  }

  .display-xl {
    font-size: 4.25rem;
  }

  .display-lg {
    font-size: 3.25rem;
  }
}