/* ==========================================================================
   SUHAIL ZAMAAN — MINIMALIST CANVAS & EDITORIAL CONCEPT
   Aesthetic: Generous White Space, Monochromatic Dot Portrait, Focus/Blur Lists
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

:root {
  /* Color Palette - Obsidian Dark (Default) */
  --sz-m-bg: #090a0f;
  --sz-m-surface: #10131c;
  --sz-m-text: #f8fafc;
  --sz-m-text-muted: #64748b;
  --sz-m-text-dim: #334155;
  --sz-m-border: rgba(255, 255, 255, 0.08);
  --sz-m-accent: #10b981;
  --sz-m-accent-glow: rgba(16, 185, 129, 0.2);
  --sz-m-dot-color: #ffffff;
  
  --sz-m-dock-bg: rgba(15, 19, 31, 0.82);
  --sz-m-dock-border: rgba(255, 255, 255, 0.12);
  
  --sz-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sz-font-mono: 'JetBrains Mono', monospace;
  --sz-font-serif: 'Newsreader', Georgia, serif;

  --sz-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-sz-theme="light"] {
  --sz-m-bg: #fcfcfd;
  --sz-m-surface: #f4f5f8;
  --sz-m-text: #090a0f;
  --sz-m-text-muted: #64748b;
  --sz-m-text-dim: #cbd5e1;
  --sz-m-border: rgba(0, 0, 0, 0.08);
  --sz-m-accent: #059669;
  --sz-m-accent-glow: rgba(5, 150, 105, 0.15);
  --sz-m-dot-color: #090a0f;

  --sz-m-dock-bg: rgba(255, 255, 255, 0.88);
  --sz-m-dock-border: rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
  overflow-x: clip;
}

body {
  font-family: var(--sz-font-sans);
  background-color: var(--sz-m-bg);
  color: var(--sz-m-text);
  line-height: 1.65;
  overflow-x: clip;
  transition: background-color 0.4s var(--sz-ease), color 0.4s var(--sz-ease);
  padding-bottom: 60px;
}

.sz-m-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Minimalist Top Nav */
.sz-m-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sz-m-border);
  background: rgba(9, 10, 15, 0.7);
  transition: background 0.4s var(--sz-ease);
}

[data-sz-theme="light"] .sz-m-nav {
  background: rgba(252, 252, 253, 0.8);
}

.sz-m-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.sz-m-logo {
  font-family: var(--sz-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--sz-m-text);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sz-m-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sz-m-accent);
}

.sz-m-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--sz-m-text-muted);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

@media (max-width: 680px) {
  .sz-m-logo-sub {
    display: none;
  }
}

.sz-m-concept-badge {
  font-family: var(--sz-font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--sz-m-surface);
  border: 1px solid var(--sz-m-border);
  color: var(--sz-m-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sz-m-concept-badge:hover {
  color: var(--sz-m-text);
  border-color: var(--sz-m-accent);
}

/* ==========================================================================
   HERO SECTION: Vast Empty Space, Dual Tabs, Dot Matrix Portrait
   ========================================================================== */
.sz-m-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 60px 0 40px;
  position: relative;
}

.sz-m-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* Left Content Area */
.sz-m-hero-left {
  max-width: 640px;
}

/* Eyebrow Section Header */
.sz-m-hero-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--sz-m-surface);
  border: 1px solid var(--sz-m-border);
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.sz-m-hero-header:hover {
  border-color: var(--sz-m-accent);
}

.sz-m-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sz-m-accent);
  box-shadow: 0 0 10px var(--sz-m-accent-glow);
  display: inline-block;
  flex-shrink: 0;
}

.sz-m-header-tag {
  font-family: var(--sz-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sz-m-text-muted);
  text-transform: uppercase;
}

/* 3-Line Staggered Typographic Statement */
.sz-m-hero-statement {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 24px);
  user-select: none;
}

.sz-m-statement-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  width: fit-content;
  cursor: default;
}

.sz-m-row-1 {
  /* Line 1: Clinically Rooted + Rotating Cross */
}

.sz-m-row-2 {
  /* Line 2: Digital Icon + Digitally Driven (indented/staggered as in sketch) */
  margin-left: clamp(24px, 4.5vw, 60px);
}

.sz-m-row-3 {
  /* Line 3: System Obsessed + Interlocking Meshed Gears */
}

.sz-m-phrase {
  font-family: var(--sz-font-sans);
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--sz-m-text);
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease;
}

.sz-m-statement-row:hover .sz-m-phrase {
  color: #ffffff;
}

[data-sz-theme="light"] .sz-m-statement-row:hover .sz-m-phrase {
  color: #000000;
}

/* Icon Pill Badges & Styling */
.sz-m-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  vertical-align: middle;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

/* 1. Outlined Clinical Cross (+) Icon */
.sz-m-cross-pill {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.sz-m-cross-pill:hover,
.sz-m-row-1:hover .sz-m-cross-pill {
  border-color: var(--sz-m-accent);
  box-shadow: 0 0 20px var(--sz-m-accent-glow);
}

.sz-m-icon-cross {
  display: block;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
  will-change: transform;
}

/* 2. Digital Grid Pill-Shaped Rubber Effect Icon */
.sz-m-digital-pill {
  width: 64px;
  height: 36px;
  border-radius: 9999px;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform;
}

@keyframes sz-rubber-squash {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.36, 0.66, 1); }
  45% { transform: scale3d(0.7, 1.3, 1); }
  60% { transform: scale3d(1.2, 0.84, 1); }
  75% { transform: scale3d(0.9, 1.1, 1); }
  88% { transform: scale3d(1.05, 0.96, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

.sz-rubber-animate {
  animation: sz-rubber-squash 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes sz-led-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 4px var(--sz-m-accent)); }
}

.sz-grid-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: sz-led-pulse 2s infinite ease-in-out;
}
.dot-1, .dot-6 { animation-delay: 0.0s; }
.dot-2, .dot-7 { animation-delay: 0.2s; }
.dot-3, .dot-8 { animation-delay: 0.4s; }
.dot-4, .dot-9 { animation-delay: 0.6s; }
.dot-5, .dot-10 { animation-delay: 0.8s; }

.sz-m-digital-pill:hover,
.sz-m-row-2:hover .sz-m-digital-pill {
  border-color: var(--sz-m-accent);
  box-shadow: 0 0 20px var(--sz-m-accent-glow);
}

/* 3. Interlocking System Gears Icon */
.sz-m-gears-pill {
  width: 74px;
  height: 46px;
  border-radius: 14px;
}

.sz-m-gears-pill:hover,
.sz-m-row-3:hover .sz-m-gears-pill {
  border-color: var(--sz-m-accent);
  box-shadow: 0 0 20px var(--sz-m-accent-glow);
}

.sz-gear {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.sz-m-gears-wrap:hover .sz-m-icon-gears,
.sz-m-row-3:hover .sz-m-icon-gears {
  filter: drop-shadow(0 0 14px var(--sz-m-accent-glow));
}

/* Backward compatibility for other sections if needed */
.sz-m-headline {
  font-family: var(--sz-font-sans);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.sz-m-paragraph {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--sz-m-text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}

.sz-m-meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sz-font-mono);
  font-size: 12px;
  color: var(--sz-m-text-muted);
}

.sz-m-meta-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--sz-m-surface);
  border: 1px solid var(--sz-m-border);
  color: var(--sz-m-accent);
}

/* Right Canvas Area: Interactive Dot Matrix Portrait */
.sz-m-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sz-m-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

#sz-particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: pan-y;
}

.sz-m-canvas-hint {
  position: absolute;
  bottom: -28px;
  font-family: var(--sz-font-mono);
  font-size: 11px;
  color: var(--sz-m-text-muted);
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
   SECTION 2: INTERACTIVE SECTOR SELECTION BAR & ACTIVITIES SHOWCASE
   Sketched Concept: [FOR] [Clinical Trials & CROs] [Healthcare Orgs & Dental Clinics]
   Interactive expandable bar with squeezed icon state & dynamic 5-pillar showcase
   ========================================================================== */
.sz-m-selection-section {
  position: relative;
  border-top: 1px solid var(--sz-m-border);
  overflow: visible;
  background: var(--sz-m-bg);
  transition: background-color 0.4s var(--sz-ease);
  scroll-margin-top: 64px;
}

/* On Desktop / Tablet: Pinned Viewport Architecture */
@media (min-width: 861px) and (min-height: 580px) {
  .sz-m-selection-section {
    min-height: calc(100vh + 850px);
    padding: 0;
  }

  .sz-m-selection-sticky-frame {
    position: sticky;
    top: 64px; /* Pins directly below top 64px navbar */
    height: calc(100vh - 64px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(16px, 2.5vh, 28px) 0 clamp(16px, 2.2vh, 24px);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 2;
  }

  .sz-m-selection-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    position: relative;
    z-index: 1;
  }

  .sz-m-selector-wrapper {
    flex-shrink: 0;
    margin: 0 auto clamp(14px, 2vh, 22px) auto !important;
  }

  .sz-m-activities-divider {
    flex-shrink: 0;
    margin: 0 auto clamp(16px, 2.2vh, 26px) auto !important;
  }

  .sz-m-selection-content {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(36px, 4.5vw, 70px);
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  .sz-m-sector-info {
    position: relative;
    top: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .sz-m-activities-viewport {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 14px, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14px, black calc(100% - 24px), transparent 100%);
  }

  .sz-m-activities-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 120px;
    will-change: transform;
    transition: transform 0.06s linear;
  }
}

/* Subtle Generative Topography Wireframe Mesh */
.sz-m-wireframe-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  background-image: radial-gradient(var(--sz-m-text) 1px, transparent 1px),
                    radial-gradient(circle at 60% 40%, rgba(16, 185, 129, 0.14) 0%, transparent 65%);
  background-size: 24px 24px, 100% 100%;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to bottom right, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
}

.sz-m-selection-section .sz-m-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   THE RECTANGULAR BAR SELECTOR: [FOR] [Clinical Trials] [Healthcare & Dental]
   ========================================================================== */
.sz-m-selector-wrapper {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 36px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto clamp(28px, 4vw, 44px) auto;
}

.sz-m-selector-prefix {
  font-family: var(--sz-font-mono);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--sz-m-text);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.sz-m-selector-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sz-m-surface);
  border: 1.5px solid var(--sz-m-border);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.sz-m-selector-bar:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

[data-sz-theme="light"] .sz-m-selector-bar {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Individual Segment Box: Initially BOTH VISIBLE 50/50 */
.sz-m-bar-box {
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  height: 72px;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 26px;
  text-align: left;
  user-select: none;
  flex: 1 1 50%;
  min-width: 0;
  transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              min-width 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

[data-sz-theme="light"] .sz-m-bar-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.sz-m-bar-box:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

[data-sz-theme="light"] .sz-m-bar-box:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
}

/* Expanded State: Dominant width (~85%), luxury monochromatic aesthetic (NO GREEN BG) */
.sz-m-bar-box.active,
.sz-m-selector-bar[data-hover="trials"] .box-trials,
.sz-m-selector-bar[data-hover="dental"] .box-healthcare {
  flex: 1 1 calc(100% - 82px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.38) !important;
}

[data-sz-theme="light"] .sz-m-bar-box.active,
[data-sz-theme="light"] .sz-m-selector-bar[data-hover="trials"] .box-trials,
[data-sz-theme="light"] .sz-m-selector-bar[data-hover="dental"] .box-healthcare {
  background: rgba(0, 0, 0, 0.07) !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08) !important;
}

/* Squeezed State: Compresses into small square icon box (64px) */
.sz-m-bar-box.squeezed,
.sz-m-selector-bar[data-hover="trials"] .box-healthcare,
.sz-m-selector-bar[data-hover="dental"] .box-trials {
  flex: 0 0 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  padding: 0 !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: none !important;
}

[data-sz-theme="light"] .sz-m-bar-box.squeezed,
[data-sz-theme="light"] .sz-m-selector-bar[data-hover="trials"] .box-healthcare,
[data-sz-theme="light"] .sz-m-selector-bar[data-hover="dental"] .box-trials {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.09) !important;
}

.sz-m-bar-box.squeezed:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12) !important;
}

/* Box Expanded Content: Text & Sliding Arrow */
.sz-m-box-expanded {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.sz-m-box-title {
  font-family: var(--sz-font-sans);
  font-size: clamp(17px, 1.75vw, 23px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--sz-m-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.sz-m-bar-box.active .sz-m-box-title,
.sz-m-bar-box:hover .sz-m-box-title {
  color: #ffffff;
}

[data-sz-theme="light"] .sz-m-bar-box.active .sz-m-box-title,
[data-sz-theme="light"] .sz-m-bar-box:hover .sz-m-box-title {
  color: #000000;
}

.sz-m-box-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sz-m-text);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.sz-m-bar-box.active .sz-m-box-arrow,
.sz-m-selector-bar[data-hover="trials"] .box-trials .sz-m-box-arrow,
.sz-m-selector-bar[data-hover="dental"] .box-healthcare .sz-m-box-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Box Squeezed Content (Icon only) */
.sz-m-box-squeezed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--sz-m-text);
}

.sz-m-bar-box.squeezed .sz-m-box-squeezed,
.sz-m-selector-bar[data-hover="trials"] .box-healthcare .sz-m-box-squeezed,
.sz-m-selector-bar[data-hover="dental"] .box-trials .sz-m-box-squeezed {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.sz-m-bar-box.squeezed .sz-m-box-expanded,
.sz-m-selector-bar[data-hover="trials"] .box-healthcare .sz-m-box-expanded,
.sz-m-selector-bar[data-hover="dental"] .box-trials .sz-m-box-expanded {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  width: 0;
}

/* Dividing Line Matching the Sketch */
.sz-m-activities-divider {
  width: 100%;
  max-width: 1100px;
  height: 1.5px;
  margin: 0 auto clamp(36px, 5vw, 56px) auto;
  background: linear-gradient(90deg, transparent, var(--sz-m-border) 8%, rgba(16, 185, 129, 0.35) 50%, var(--sz-m-border) 92%, transparent);
}

/* ==========================================================================
   DYNAMIC ACTIVITIES SHOWCASE & EDITORIAL STACK
   ========================================================================== */
.sz-m-selection-content {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5.5vw, 80px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.sz-m-sector-info {
  position: relative;
}

.sz-m-sector-headline {
  font-family: var(--sz-font-sans);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--sz-m-text);
  margin-bottom: 22px;
  transition: opacity 0.3s ease;
}

.sz-m-sector-overview {
  font-size: 15px;
  color: var(--sz-m-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  transition: opacity 0.3s ease;
}

.sz-m-action-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid var(--sz-m-border);
  color: var(--sz-m-text);
  text-decoration: none;
  font-family: var(--sz-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  background: transparent;
  cursor: pointer;
}

.sz-m-action-box:hover {
  border-color: var(--sz-m-text);
  background: var(--sz-m-text);
  color: var(--sz-m-bg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

/* Curated 5-Item Activities List */
.sz-m-activities-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sz-m-activity-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: var(--sz-m-surface);
  border: 1px solid var(--sz-m-border);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.28s var(--sz-ease),
              border-color 0.28s ease,
              background 0.28s ease,
              box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
  animation: sz-fade-slide-up 0.4s var(--sz-ease) backwards;
}

.sz-m-activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--sz-m-accent);
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease;
}

.sz-m-activity-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.05);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sz-m-activity-card:hover::before {
  opacity: 1;
}

.sz-m-activity-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.sz-m-activity-num {
  font-family: var(--sz-font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sz-m-accent);
  margin-top: 2px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

.sz-m-activity-body {
  flex: 1;
}

.sz-m-activity-title {
  font-family: var(--sz-font-sans);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--sz-m-text);
  margin-bottom: 6px;
  transition: color 0.25s ease;
}

.sz-m-activity-card:hover .sz-m-activity-title {
  color: #ffffff;
}

[data-sz-theme="light"] .sz-m-activity-card:hover .sz-m-activity-title {
  color: #000000;
}

.sz-m-activity-desc {
  font-size: 13.5px;
  color: var(--sz-m-text-muted);
  line-height: 1.65;
}

.sz-m-activity-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.sz-m-activity-badge {
  font-family: var(--sz-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sz-m-border);
  color: var(--sz-m-text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sz-m-activity-cta {
  font-family: var(--sz-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--sz-m-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sz-m-activity-card:hover .sz-m-activity-cta {
  opacity: 1;
  transform: translateX(0);
}

@keyframes sz-fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile & Short Screens Fallback (Natural Flow) */
@media (max-width: 860px), (max-height: 579px) {
  .sz-m-selection-section {
    padding: clamp(50px, 7vw, 80px) 0 clamp(40px, 6vw, 70px);
    min-height: auto !important;
  }

  .sz-m-selection-sticky-frame {
    position: static;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .sz-m-selection-content {
    grid-template-columns: 1fr;
    gap: 36px;
    height: auto;
  }

  .sz-m-sector-info {
    position: static;
  }

  .sz-m-activities-viewport {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    height: auto;
  }

  .sz-m-activities-list {
    transform: none !important;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .sz-m-selector-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .sz-m-selector-prefix {
    font-size: 22px;
  }

  .sz-m-selector-bar {
    width: 100%;
    padding: 5px;
    gap: 6px;
    border-radius: 16px;
  }

  .sz-m-bar-box {
    height: 56px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .sz-m-bar-box .sz-m-box-title {
    font-size: clamp(11.5px, 3.1vw, 14.5px);
  }

  .sz-m-bar-box.squeezed,
  .sz-m-selector-bar[data-hover="trials"] .box-healthcare,
  .sz-m-selector-bar[data-hover="dental"] .box-trials {
    flex: 0 0 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 56px;
    border-radius: 12px;
    padding: 0 !important;
  }

  .sz-m-bar-box.active,
  .sz-m-selector-bar[data-hover="trials"] .box-trials,
  .sz-m-selector-bar[data-hover="dental"] .box-healthcare {
    flex: 1 1 calc(100% - 56px) !important;
    border-radius: 12px;
    height: 56px;
    padding: 0 14px;
  }

  .sz-m-bar-box.active .sz-m-box-title,
  .sz-m-selector-bar[data-hover="trials"] .box-trials .sz-m-box-title,
  .sz-m-selector-bar[data-hover="dental"] .box-healthcare .sz-m-box-title {
    font-size: clamp(12.5px, 3.6vw, 16px);
  }

  .sz-m-box-arrow svg {
    width: 18px;
    height: 18px;
  }

  .sz-m-squeezed-icon {
    width: 22px;
    height: 22px;
  }

  .sz-m-sector-headline {
    font-size: clamp(21px, 5.5vw, 28px);
    line-height: 1.22;
    margin-bottom: 14px;
  }

  .sz-m-sector-overview {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .sz-m-action-box {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .sz-m-activities-divider {
    margin: 0 auto 24px auto;
  }

  .sz-m-activity-card {
    padding: 16px;
    border-radius: 14px;
    flex-direction: column;
    gap: 12px;
  }

  .sz-m-activity-card:active {
    transform: scale(0.985);
  }

  .sz-m-activity-left {
    gap: 12px;
  }

  .sz-m-activity-title {
    font-size: 15px;
  }

  .sz-m-activity-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .sz-m-activity-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--sz-m-border);
  }

  .sz-m-activity-cta {
    opacity: 1;
    transform: none;
    font-size: 11px;
  }

  .sz-m-activity-badge {
    font-size: 10.5px;
  }
}

/* Minimal Closing Footer */
.sz-m-footer {
  border-top: 1px solid var(--sz-m-border);
  padding: 80px 0 60px;
  background: var(--sz-m-bg);
  position: relative;
  z-index: 10;
}

.sz-m-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.sz-m-footer-title {
  font-family: var(--sz-font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 6px;
}

.sz-m-footer-sub {
  font-size: 13px;
  color: var(--sz-m-text-muted);
}

.sz-m-footer-links {
  display: flex;
  gap: 24px;
}

.sz-m-footer-link {
  font-family: var(--sz-font-mono);
  font-size: 13px;
  color: var(--sz-m-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sz-m-footer-link:hover {
  color: var(--sz-m-text);
}

.sz-m-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sz-font-mono);
  font-size: 11px;
  color: var(--sz-m-text-dim);
  border-top: 1px solid var(--sz-m-border);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .sz-m-capabilities-section {
    height: 320vh;
  }
  .sz-m-caps-sticky-inner {
    padding: 70px 0 80px;
  }
  .sz-m-caps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sz-m-type-stack {
    padding-left: 0;
  }
  .sz-m-type-item {
    font-size: clamp(16px, 3.8vw, 22px);
    line-height: 1.15;
    padding: 1px 0;
  }
  .sz-m-caps-headline {
    font-size: clamp(20px, 4.5vw, 26px);
    margin-bottom: 12px;
  }
  .sz-m-caps-body {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .sz-m-top-meta {
    margin-bottom: 16px;
  }
  .sz-m-sector-switch {
    margin-bottom: 16px;
  }
  .sz-m-footer-inner,
  .sz-m-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==========================================================================
   SIGNATURE FLOATING BOTTOM PILL NAVBAR (MINIMAL VERSION)
   ========================================================================== */
.sz-m-dock-wrap {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.sz-m-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--sz-m-dock-bg);
  border: 1px solid var(--sz-m-dock-border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 9999px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.sz-m-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  color: var(--sz-m-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sz-m-dock-btn:hover {
  color: var(--sz-m-text);
}

.sz-m-dock-btn.active {
  background: var(--sz-m-text);
  color: var(--sz-m-bg);
}

.sz-m-dock-divider {
  width: 1px;
  height: 20px;
  background: var(--sz-m-border);
  margin: 0 4px;
}

.sz-m-theme-toggle {
  background: transparent;
  border: none;
  color: var(--sz-m-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s ease;
}

.sz-m-theme-toggle:hover {
  color: var(--sz-m-text);
}

/* Responsive Breakpoints & Mobile Device Optimization */
@media (max-width: 960px) {
  .sz-m-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sz-m-hero-right {
    order: -1;
  }

  .sz-m-canvas-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .sz-m-dual-scroll-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sz-m-capabilities-column {
    position: static;
  }
}

@media (max-width: 640px) {
  .sz-m-container {
    padding: 0 20px;
  }

  .sz-m-phrase {
    font-size: clamp(22px, 6vw, 30px);
    white-space: normal;
  }
  .sz-m-row-2 {
    margin-left: 12px;
  }
  .sz-m-statement-row {
    gap: 10px;
  }
  .sz-m-hero-header {
    margin-bottom: 24px;
    padding: 5px 12px;
  }
  .sz-m-header-tag {
    font-size: 10px;
  }

  /* Dock Bottom Pill Ergonomics */
  .sz-m-dock-wrap {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    padding: 0 12px;
  }

  .sz-m-dock {
    padding: 5px 8px;
    gap: 4px;
    max-width: calc(100vw - 24px);
  }

  .sz-m-dock-btn {
    padding: 7px 14px;
    font-size: 12px;
    gap: 6px;
  }

  .sz-m-dock-divider {
    height: 16px;
    margin: 0 2px;
  }

  .sz-m-theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Direct Consultation Modal on Mobile */
  .sz-modal-backdrop {
    padding: 14px;
    align-items: flex-end;
  }

  .sz-m-modal-dialog,
  div#sz-m-modal > div {
    padding: 24px 18px !important;
    border-radius: 20px !important;
    max-height: 88vh;
    overflow-y: auto;
  }

  #sz-m-form input,
  #sz-m-form select,
  #sz-m-form textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 11px 14px !important;
  }
}

@media (max-width: 480px) {
  .sz-m-nav-inner {
    gap: 8px;
  }

  .sz-m-logo {
    font-size: 13px;
    letter-spacing: 0.03em;
  }

  .sz-m-concept-badge {
    font-size: 10px;
    padding: 4px 8px;
    white-space: nowrap;
  }

  .sz-m-canvas-wrap {
    max-width: min(280px, 72vw);
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 390px) {
  .sz-m-container {
    padding: 0 16px;
  }

  .sz-m-phrase {
    font-size: clamp(19px, 5.5vw, 24px);
  }

  .sz-m-row-2 {
    margin-left: 6px;
  }

  .sz-m-statement-row {
    gap: 8px;
  }

  .sz-m-dock-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}

/* Light Theme Refinements for Mobile Contrast */
[data-sz-theme="light"] .sz-m-dock {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

[data-sz-theme="light"] .sz-m-dock-btn.active {
  background: #090a0f;
  color: #ffffff;
}

[data-sz-theme="light"] .sz-m-bar-box.squeezed .sz-m-box-squeezed {
  color: #090a0f;
}
