/* ============================================================
   KUSH DHODY | Executive Portfolio
   Art Direction: Authoritative, refined, premium pharma executive
   Palette: Deep navy + warm gold accent on warm ivory
   Typography: Playfair Display (display) + DM Sans (body)
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* --- LIGHT MODE (Default) --- */
:root, [data-theme="light"] {
  --color-bg:             #FAFAF7;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F4F0;
  --color-surface-offset: #EDECEA;
  --color-border:         #D4D1CA;
  --color-divider:        #E5E3DE;

  --color-text:           #1A1A2E;
  --color-text-muted:     #5C5C6E;
  --color-text-faint:     #9E9EA8;

  --color-primary:        #1A1A2E;
  --color-primary-hover:  #2D2D44;
  --color-accent:         #B8860B;
  --color-accent-hover:   #9A7009;
  --color-accent-light:   #F5EFD8;

  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.12);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg:             #0F0F1A;
  --color-surface:        #161625;
  --color-surface-2:      #1C1C30;
  --color-surface-offset: #22223A;
  --color-border:         #2E2E48;
  --color-divider:        #252540;

  --color-text:           #E5E5EA;
  --color-text-muted:     #9E9EB0;
  --color-text-faint:     #6B6B80;

  --color-primary:        #E5E5EA;
  --color-primary-hover:  #CCCCDD;
  --color-accent:         #D4A017;
  --color-accent-hover:   #E0B030;
  --color-accent-light:   #2A2518;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0F0F1A;
    --color-surface:        #161625;
    --color-surface-2:      #1C1C30;
    --color-surface-offset: #22223A;
    --color-border:         #2E2E48;
    --color-divider:        #252540;
    --color-text:           #E5E5EA;
    --color-text-muted:     #9E9EB0;
    --color-text-faint:     #6B6B80;
    --color-primary:        #E5E5EA;
    --color-primary-hover:  #CCCCDD;
    --color-accent:         #D4A017;
    --color-accent-hover:   #E0B030;
    --color-accent-light:   #2A2518;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* --- SCROLL ANIMATIONS --- */
.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade { to { opacity: 1; } }

/* --- HEADER / NAV --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo svg { flex-shrink: 0; }
.logo-monogram {
  transition: transform var(--transition-interactive), filter var(--transition-interactive);
}
.logo:hover .logo-monogram {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--color-text); }
.nav-links a.active::after { width: 100%; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 6rem var(--space-6) var(--space-8);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.mobile-nav a:hover { color: var(--color-accent); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* --- HERO SECTION --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: #1A1A2E;
}
.hero-inner {
  max-width: 100%;
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 85vh;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-12) var(--space-10);
  max-width: 620px;
  margin-left: auto;
}
.hero-tag {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #B8860B;
}
.hero-tag .tag-sep {
  font-size: 1.15em;
  font-weight: 300;
  padding: 0 0.15em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #FAFAF7;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-credentials {
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(250,250,247,0.55);
  vertical-align: baseline;
}
.hero-subtitle {
  font-size: var(--text-base);
  color: rgba(250,250,247,0.7);
  line-height: 1.7;
  max-width: 52ch;
}
.hero-role {
  font-size: var(--text-sm);
  color: rgba(250,250,247,0.55);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

/* Hero Outline Button (light on dark) */
.btn-outline-hero {
  background: transparent;
  color: rgba(250,250,247,0.85);
  border: 1px solid rgba(250,250,247,0.3);
}
.btn-outline-hero:hover {
  border-color: #B8860B;
  color: #B8860B;
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  overflow: hidden;
}
.hero-image-wrap::before {
  display: none;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 0;
  position: relative;
  z-index: 1;
  max-width: none;
}

@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    min-height: auto;
  }
  .hero-content {
    align-items: center;
    padding: var(--space-10) var(--space-6);
    margin-left: 0;
    max-width: none;
  }
  .hero-ctas { justify-content: center; }
  .hero-image-wrap { order: -1; height: 50vh; }
  .hero-image-wrap::before { display: none; }
}

/* --- SECTION FOUNDATIONS --- */
.section {
  padding: clamp(var(--space-10), 5vw, var(--space-20)) var(--space-6);
}
.section-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.section-narrow {
  max-width: var(--content-default);
  margin-inline: auto;
}
.section-header {
  margin-bottom: var(--space-10);
}
.section-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 60ch;
  line-height: 1.7;
}
.section-alt {
  background: var(--color-surface-2);
}

/* --- DARK ACCENT STRIPS --- */
.accent-strip {
  background: #1A1A2E;
  padding: var(--space-5) var(--space-6);
}
.accent-strip-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.accent-strip-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #B8860B;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.accent-strip-sep {
  color: rgba(250,250,247,0.25);
  font-size: var(--text-sm);
}
.accent-strip-text {
  font-size: var(--text-sm);
  color: rgba(250,250,247,0.65);
}

/* Agency strip */
.accent-strip-agencies {
  gap: var(--space-6);
}
.accent-strip-agency {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(250,250,247,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.accent-strip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(250,250,247,0.2);
  flex-shrink: 0;
}

/* Quote strip */
.accent-strip-quote {
  padding: var(--space-8) var(--space-6);
}
.accent-strip-blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: rgba(250,250,247,0.75);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
  border: none;
  padding: 0;
}

@media (max-width: 768px) {
  .accent-strip-inner { flex-direction: column; gap: var(--space-2); text-align: center; }
  .accent-strip-sep { display: none; }
  .accent-strip-agencies { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-4); }
  .accent-strip-blockquote { font-size: var(--text-base); }
}

/* Decorative line accent */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: var(--space-6);
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.about-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}
.about-text p + p { margin-top: var(--space-4); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.stat-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.stat-headline {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.stat-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  white-space: nowrap;
}
.stat-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-stats { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}

/* --- LEADERSHIP PHILOSOPHY --- */
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.philosophy-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.philosophy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.philosophy-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.philosophy-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.philosophy-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

/* --- THERAPEUTIC AREAS --- */
.therapeutic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.therapeutic-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.therapeutic-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.therapeutic-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-5);
  color: var(--color-accent);
}
.therapeutic-icon svg {
  width: 100%;
  height: 100%;
}
.therapeutic-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.therapeutic-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.therapeutic-card.expandable {
  cursor: pointer;
  text-align: left;
}
.therapeutic-card.expandable .therapeutic-icon {
  margin: 0 0 var(--space-5) 0;
}
.therapeutic-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.stat-pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 100px;
  background: var(--color-accent-subtle, rgba(184, 134, 11, 0.1));
  color: var(--color-accent);
  line-height: 1.7;
  white-space: nowrap;
}
.therapeutic-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.35s ease;
  opacity: 0;
  margin-top: 0;
}
.therapeutic-card.expanded .therapeutic-details {
  max-height: 800px;
  opacity: 1;
  margin-top: var(--space-5);
}
.therapeutic-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.therapeutic-details li {
  position: relative;
  padding-left: 16px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-2);
}
.therapeutic-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}
.therapeutic-details li:last-child {
  margin-bottom: 0;
}
.therapeutic-expand-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.therapeutic-card:hover .therapeutic-expand-hint {
  opacity: 1;
}
.expand-chevron {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.therapeutic-card.expanded .expand-chevron {
  transform: rotate(180deg);
}
.therapeutic-card.expanded .expand-text {
  display: none;
}
.therapeutic-card.expanded .therapeutic-expand-hint::before {
  content: 'Hide details';
}

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

/* --- CORE LEADERSHIP COMPETENCIES --- */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-12);
}
.competency-card {
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-divider);
  transition: border-color 0.3s var(--ease-out);
}
.competency-card:hover {
  border-left-color: var(--color-accent);
}
.competency-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.competency-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
[data-theme="dark"] .competency-card {
  border-left-color: #B8860B;
}
[data-theme="dark"] .competency-card:hover {
  border-left-color: #D4A017;
}

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

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

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

/* --- CAREER TIMELINE --- */
.timeline {
  position: relative;
  max-width: 700px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}
.timeline-item {
  padding-left: var(--space-8);
  padding-bottom: var(--space-6);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
}
.timeline-year {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.timeline-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.timeline-desc + .timeline-desc {
  margin-top: var(--space-3);
}
.timeline-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}
.timeline-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: var(--space-2);
}
.timeline-bullets li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-1);
}
.timeline-bullets li:last-child {
  margin-bottom: 0;
}
.timeline-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  font-style: italic;
  color: var(--color-accent);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

/* --- MEDIA & PRESS --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.media-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}
.media-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.media-card:hover > a h3,
.media-card:hover h3 {
  color: var(--color-accent);
}
.media-card:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.media-card--featured {
  grid-column: 1 / -1;
  border-left: 3px solid var(--color-accent);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent-light) 100%);
}
.media-source {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.media-source-icon {
  flex-shrink: 0;
  opacity: 0.6;
}
.media-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  transition: color 0.2s var(--ease-out);
}
.media-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.media-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: auto;
  padding-top: var(--space-2);
}

/* Media card link wrapper (for cards with blockquotes) */
.media-card-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}
.media-card-link:hover h3 {
  color: var(--color-accent);
}

/* Media quote blockquote inside news cards */
.media-quote {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
}
.media-quote cite {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Amarex logo image in case study */
.amarex-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) brightness(2);
}
.case-study-logo-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .amarex-logo-img {
  filter: brightness(0) invert(1) brightness(2);
}
[data-theme="dark"] .accent-strip-agency {
  color: #D4A017;
}
[data-theme="dark"] .accent-strip-dot {
  background: rgba(212,160,23,0.35);
}

@media (max-width: 768px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-card--featured { grid-column: auto; }
}

/* --- PUBLICATIONS --- */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.pub-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  transition: box-shadow 0.3s var(--ease-out);
}
.pub-item:hover { box-shadow: var(--shadow-sm); }

/* Clickable publication links */
a.pub-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}
a.pub-item--link:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
a.pub-item--link:hover .pub-content h3 {
  color: var(--color-accent);
}
a.pub-item--link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* External link icon */
.external-link-icon {
  display: inline;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.4;
  transition: opacity 0.2s var(--ease-out);
}
a.pub-item--link:hover .external-link-icon,
a.partnership-card--link:hover .external-link-icon {
  opacity: 1;
}

/* Publication profile links (Google Scholar, ORCID) */
.pub-profiles {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
.pub-profile-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.pub-profile-link:hover {
  background: var(--color-accent);
  color: #fff;
}
.pub-profile-link svg {
  flex-shrink: 0;
}

/* Inline text links in cards */
.inline-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s var(--ease-out);
}
.inline-link:hover {
  opacity: 0.8;
}
.pub-date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
  min-width: 80px;
  padding-top: 2px;
}
.pub-content {
  flex: 1;
  min-width: 0;
}
.pub-content h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--space-1);
}
.pub-content p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.pub-type {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  align-self: flex-start;
}

.pub-expand-wrapper {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}
.pub-expand-wrapper.expanded {
  display: flex;
}
.pub-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  align-self: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.pub-toggle-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.pub-toggle-btn svg {
  transition: transform 0.3s var(--ease-out);
}
.pub-toggle-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (max-width: 600px) {
  .pub-item { flex-direction: column; gap: var(--space-3); }
  .pub-date { min-width: auto; }
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.testimonial-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  position: relative;
}
.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-5);
}
.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 0;
  display: block;
  margin-bottom: var(--space-3);
}
.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

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

/* --- FEATURED CASE STUDY --- */
.case-study-section {
  background: var(--color-primary);
  color: #E5E5EA;
  overflow: hidden;
}
.case-study-banner {
  background: rgba(255,255,255,0.06);
  padding: var(--space-3) var(--space-6);
  text-align: center;
}
.case-study-featured-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.case-study-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: clamp(var(--space-10), 5vw, var(--space-20)) var(--space-6);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-10);
  align-items: center;
}
.case-study-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
}
.case-study-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: var(--space-6);
}
.case-study-accent {
  color: var(--color-accent);
}
.case-study-desc {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
  max-width: 580px;
}
.case-study-metrics {
  display: flex;
  gap: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: var(--space-8);
}
.case-study-metric-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-1);
}
.case-study-metric-value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.case-study-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.case-study-cta:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.case-study-cta svg {
  flex-shrink: 0;
}
.case-study-logos {
  text-align: center;
}
.case-study-logos-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-6);
}
.case-study-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.case-study-logo-item {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}
.case-study-logo-svg {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
}
.case-study-logo-svg svg {
  flex-shrink: 0;
}
.case-study-logo-sep {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}
@media (max-width: 768px) {
  .case-study-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  .case-study-desc { max-width: none; }
  .case-study-metrics {
    justify-content: center;
  }
  .case-study-cta {
    justify-content: center;
  }
}

/* Dark mode overrides for case study */
[data-theme="dark"] .case-study-section {
  background: #0A0A14;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .case-study-section {
    background: #0A0A14;
  }
}

/* --- PARTNERSHIPS --- */
.partnerships-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.partnership-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

/* Clickable partnership cards */
a.partnership-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}
a.partnership-card--link:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
a.partnership-card--link:hover h3 {
  color: var(--color-accent);
}
a.partnership-card--link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.partnership-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}
.partnership-date {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  opacity: 0.7;
}
.partnership-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.partnership-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

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

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-method {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-method h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.contact-method p,
.contact-method a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.contact-method a:hover { color: var(--color-accent); }
.contact-email-line {
  margin: 0 0 var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.contact-email-line strong {
  color: var(--color-text);
  font-weight: 600;
}
.contact-email-line a {
  color: var(--color-accent);
  text-decoration: none;
}
.contact-email-line a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}
.form-group textarea { min-height: 120px; resize: vertical; }

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

/* --- FOOTER --- */
.site-footer {
  padding: var(--space-12) var(--space-6);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
}
.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}
.footer-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-attribution {
  width: 100%;
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-attribution a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-attribution a:hover { color: var(--color-accent); }

/* --- PERSONAL SECTION --- */
.personal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.personal-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.personal-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.personal-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Divider */
.section-divider {
  max-width: var(--content-wide);
  margin-inline: auto;
  height: 1px;
  background: var(--color-divider);
}

/* Smooth text rendering for dark backgrounds */
[data-theme="dark"] body {
  -webkit-font-smoothing: antialiased;
}
