/* ============================================================
   MCS Advisory — Shared Stylesheet
   Boutique healthcare advisory · Tampa, FL
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg-dark: #0F3A2A;
  --bg-darker: #0A2C1F;
  --bg-mid: #143F30;
  --gold: #C9A961;
  --gold-bright: #D4B872;
  --gold-soft: rgba(201, 169, 97, 0.3);
  --gold-faint: rgba(201, 169, 97, 0.12);
  --cream: #F2E8C9;
  --cream-muted: rgba(242, 232, 201, 0.7);
  --cream-faint: rgba(242, 232, 201, 0.4);
  --off-white: #FAF7F0;

  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --max-width: 1280px;
  --gutter: clamp(24px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- ATMOSPHERIC BACKGROUND ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(201, 169, 97, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(201, 169, 97, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(72px, 12vw, 144px) 0;
  position: relative;
}

.section--bordered {
  border-top: 1px solid var(--gold-faint);
}

.section--alt {
  background: var(--bg-darker);
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  position: relative;
  padding-left: 32px;
  margin-bottom: 32px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.eyebrow--centered {
  padding-left: 0;
}

.eyebrow--centered::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
  margin-bottom: 32px;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 28px;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

p { color: var(--cream-muted); }

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--cream-muted);
  max-width: 720px;
  line-height: 1.55;
}

.italic-accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(15, 58, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-faint);
  z-index: 100;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
}

.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}

.nav__links a:hover { color: var(--gold); }

.nav__links a.active {
  color: var(--gold);
}

.nav__cta {
  color: var(--gold) !important;
  font-weight: 500 !important;
  border: 1px solid var(--gold-soft);
  padding: 8px 18px;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--bg-dark) !important;
  border-color: var(--gold);
}

/* Mobile hamburger button */
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-soft);
  width: 44px;
  height: 44px;
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: border-color 0.25s ease;
}

.nav__toggle:hover { border-color: var(--gold); }

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    height: calc(100dvh - 73px);
    background: var(--bg-darker);
    border-top: 1px solid var(--gold-faint);
    flex-direction: column;
    gap: 0;
    padding: 32px var(--gutter);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.25s ease;
    overflow-y: auto;
    z-index: 99;
    align-items: stretch;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    width: 100%;
    border-bottom: 1px solid var(--gold-faint);
  }

  .nav__links li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .nav__links a {
    display: block;
    padding: 20px 0;
    font-size: 16px;
  }

  .nav__links .nav__cta {
    display: inline-block;
    margin-top: 8px;
  }
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Form feedback */
.form-success {
  background: var(--bg-dark);
  border: 1px solid var(--gold);
  padding: 24px;
  text-align: center;
  border-radius: 2px;
}

.form-success h4 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--cream-muted);
  margin: 0;
}

/* Print styles */
@media print {
  body::before, body::after { display: none; }
  .nav, footer, .cta-section, .hero__cta { display: none; }
  body { background: white; color: black; }
  h1, h2, h3, h4 { color: black; }
  p { color: #333; }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(96px, 16vw, 180px) 0 clamp(72px, 12vw, 120px);
  position: relative;
}

.hero--small {
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 8vw, 80px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 96px;
  }
}

.hero__main h1 {
  font-weight: 400;
}

.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 48px;
  color: var(--cream-muted);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 18px 32px;
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.hero__cta:hover {
  background: var(--gold-bright);
  transform: translateX(2px);
}

.hero__cta .arrow {
  transition: transform 0.25s ease;
}

.hero__cta:hover .arrow {
  transform: translateX(4px);
}

.hero__cta--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.hero__cta--outline:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.hero__meta {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cream-faint);
  line-height: 1.8;
}

.hero__sidebar {
  border-left: 1px solid var(--gold-faint);
  padding-left: 32px;
  align-self: end;
}

@media (max-width: 1023px) {
  .hero__sidebar {
    border-left: none;
    border-top: 1px solid var(--gold-faint);
    padding-left: 0;
    padding-top: 32px;
  }
}

.hero__sidebar p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--cream);
  font-weight: 400;
}

.hero__sidebar small {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cream-faint);
  text-transform: uppercase;
}

/* ---------- PRINCIPAL / CREDENTIAL BLOCK ---------- */
.credential {
  background: var(--bg-darker);
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}

.credential__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 900px) {
  .credential__grid {
    grid-template-columns: 1fr 1.7fr;
    gap: 80px;
  }
}

.credential__sidebar {
  align-self: start;
}

.credential__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--cream);
  margin-bottom: 8px;
  font-weight: 500;
}

.credential__role {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.credential__ministats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.credential__ministat {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.credential__ministat-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 4px;
}

.credential__ministat-label {
  font-size: 10.5px;
  color: var(--cream-muted);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.credential__body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--cream-muted);
}

.credential__body p { margin-bottom: 20px; }
.credential__body p:last-of-type { margin-bottom: 0; }

.credential__body strong {
  color: var(--cream);
  font-weight: 500;
}

.credential__list {
  list-style: none;
  margin: 24px 0;
}

.credential__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: 17px;
  color: var(--cream-muted);
}

.credential__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.credential__sub-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-faint);
}

.credential__awards {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-faint);
  font-size: 12.5px;
  color: var(--cream-faint);
  line-height: 1.7;
  font-style: italic;
}

/* ---------- PRACTICE LANES ---------- */
.lanes__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 32px;
}

.lanes__header h2 {
  margin-bottom: 0;
  max-width: 600px;
}

.lanes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-faint);
}

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

.lane {
  background: var(--bg-dark);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1),
              background 0.4s ease,
              box-shadow 0.45s ease,
              border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
}

.lane:hover {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-darker) 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(8, 30, 22, 0.5),
              0 2px 6px rgba(201, 169, 97, 0.10);
  border-left-color: var(--gold-soft);
}

.lane:hover .lane__number {
  color: var(--gold-bright);
}

.lane__number {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.lane__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
}

.lane__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-muted);
  margin-bottom: 24px;
}

.lane__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lane__cta .arrow {
  transition: transform 0.25s ease;
}

.lane:hover .lane__cta .arrow {
  transform: translateX(4px);
}

/* ---------- ENGAGEMENTS ---------- */
.engagements {
  background: var(--bg-darker);
}

.engagements__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .engagements__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 96px;
    align-items: start;
  }
}

.engagements__list {
  list-style: none;
  border-top: 1px solid var(--gold-faint);
}

.engagements__list li {
  padding: 28px 0;
  border-bottom: 1px solid var(--gold-faint);
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-size: 16px;
  color: var(--cream);
}

.engagements__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.engagements__list strong {
  font-weight: 500;
  color: var(--cream);
}

.engagements__list span {
  color: var(--cream-muted);
  font-weight: 300;
}

/* ---------- PROOF STRIP ---------- */
.proof {
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
  padding: clamp(48px, 6vw, 80px) 0;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}

@media (min-width: 768px) {
  .proof__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.proof__stat { text-align: left; }

.proof__number {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
}

.proof__label {
  font-size: 12px;
  color: var(--cream-muted);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ---------- CATALYSTIQ ---------- */
.catalystiq {
  background: var(--bg-darker);
  border-top: 1px solid var(--gold-faint);
}

.catalystiq__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .catalystiq__inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 96px;
  }
}

.catalystiq__badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 24px;
}

.catalystiq h2 { color: var(--cream); }

.catalystiq h2 em {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}

.catalystiq__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-muted);
  margin-bottom: 32px;
}

.catalystiq__terminal {
  background: var(--bg-dark);
  border: 1px solid var(--gold-faint);
  border-radius: 4px;
  padding: 32px;
  position: relative;
}

.catalystiq__terminal::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  width: 36px;
  height: 8px;
  background-image: radial-gradient(circle, var(--gold-faint) 3px, transparent 3px);
  background-size: 12px 8px;
}

.catalystiq__terminal-content {
  margin-top: 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--cream-muted);
  line-height: 1.8;
}

.catalystiq__terminal-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--gold-faint);
}

.catalystiq__terminal-row:last-child { border-bottom: none; }

.catalystiq__terminal-label {
  color: var(--cream-faint);
  letter-spacing: 0.06em;
}

.catalystiq__terminal-value {
  color: var(--gold);
  font-weight: 600;
}

.catalystiq__terminal-value.up { color: #6BCF8F; }
.catalystiq__terminal-value.down { color: #E37C7C; }

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  text-align: center;
  padding: clamp(96px, 14vw, 180px) 0;
}

.philosophy h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  max-width: 1000px;
  margin: 0 auto 48px;
  line-height: 1.15;
}

.philosophy h2 em {
  color: var(--gold);
  font-weight: 300;
}

.philosophy p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream-muted);
}

/* ---------- VALUES PILLARS (About page) ---------- */
.values {
  background: var(--bg-darker);
  border-top: 1px solid var(--gold-faint);
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .values__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
  }
}

.value-pillar {
  position: relative;
  padding-top: 32px;
  border-top: 2px solid var(--gold);
}

.value-pillar h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.value-pillar p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--cream-muted);
}

/* ---------- PRACTICE AREA DETAIL (Practice Areas page) ---------- */
.practice-detail {
  border-top: 1px solid var(--gold-faint);
}

.practice-detail:nth-child(odd) {
  background: var(--bg-dark);
}

.practice-detail:nth-child(even) {
  background: var(--bg-darker);
}

.practice-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .practice-detail__grid {
    grid-template-columns: 1fr 2fr;
    gap: 96px;
    align-items: start;
  }
}

.practice-detail__sticky {
  position: static;
}

@media (min-width: 900px) {
  .practice-detail__sticky {
    position: sticky;
    top: 100px;
  }
}

.practice-detail__number {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 96px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 300;
}

.practice-detail__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
}

.practice-detail__body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--cream-muted);
}

.practice-detail__body p { margin-bottom: 24px; }

.practice-detail__subhead {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 600;
}

.practice-detail__list {
  list-style: none;
  margin-bottom: 32px;
}

.practice-detail__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gold-faint);
  padding-left: 24px;
  position: relative;
  color: var(--cream-muted);
  font-size: 17px;
  line-height: 1.6;
}

.practice-detail__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 14px;
}

/* ---------- INSIGHTS PAGE ---------- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-faint);
}

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

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

.research-card {
  background: var(--bg-dark);
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.research-card:hover {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-darker) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(8, 30, 22, 0.45);
  border-color: var(--gold-faint);
}

.research-card--featured {
  background: var(--bg-darker);
  grid-column: span 1;
}

@media (min-width: 1100px) {
  .research-card--featured {
    grid-column: span 1;
  }
}

.research-card--placeholder {
  background: var(--bg-darker);
  opacity: 0.7;
}

.research-card__category {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.research-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
}

.research-card__meta {
  font-size: 12px;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-faint);
}

.research-card__excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-muted);
  margin-bottom: 24px;
  flex: 1;
}

.research-card__cta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.research-card__cta .arrow { transition: transform 0.25s ease; }
.research-card:hover .research-card__cta .arrow { transform: translateX(4px); }

.research-card--placeholder .research-card__cta {
  color: var(--cream-faint);
}

.disclaimer {
  margin-top: 64px;
  padding: 32px;
  background: var(--bg-darker);
  border-left: 2px solid var(--gold);
  font-size: 13px;
  line-height: 1.7;
  color: var(--cream-faint);
}

/* ---------- CONTACT PAGE ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 96px;
    align-items: start;
  }
}

.contact__channels {
  background: var(--bg-darker);
  border: 1px solid var(--gold-faint);
  padding: 40px;
}

.contact__channels h3 {
  font-size: 20px;
  margin-bottom: 28px;
  color: var(--cream);
}

.contact__channel {
  padding: 18px 0;
  border-bottom: 1px solid var(--gold-faint);
}

.contact__channel:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact__channel-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact__channel a {
  color: var(--cream);
  text-decoration: none;
  font-size: 17px;
  transition: color 0.25s ease;
}

.contact__channel a:hover { color: var(--gold); }

.contact__form {
  background: var(--bg-darker);
  border: 1px solid var(--gold-faint);
  padding: 40px;
}

.contact__form h3 {
  font-size: 22px;
  margin-bottom: 28px;
  color: var(--cream);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--gold-faint);
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A961' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.form-submit:hover {
  background: var(--gold-bright);
}

.contact__note {
  margin-top: 32px;
  padding: 24px;
  border-top: 1px solid var(--gold-faint);
  font-size: 13px;
  line-height: 1.7;
  color: var(--cream-faint);
  font-style: italic;
}

/* ---------- CTA SECTION (used across pages) ---------- */
.cta-section {
  background: var(--bg-darker);
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
  text-align: center;
  padding: clamp(72px, 10vw, 120px) 0;
}

.cta-section h2 { margin-bottom: 24px; }

.cta-section p {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
  }
}

.footer__brand .nav__brand { margin-bottom: 16px; }

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer__meta {
  font-size: 12px;
  color: var(--cream-faint);
  line-height: 1.7;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer__col ul { list-style: none; }

.footer__col li { margin-bottom: 12px; }

.footer__col a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gold-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
}

.footer__bottom a {
  color: var(--cream-faint);
  text-decoration: none;
  margin-right: 24px;
}

.footer__bottom a:hover { color: var(--gold); }

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================================================
   ADDITIONS — v4.1 polish
   =========================================================== */

/* Editorial drop cap — used on the founder bio first paragraph */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 5.6em;
  font-weight: 500;
  float: left;
  line-height: 0.82;
  margin: 0.06em 0.12em 0 -0.04em;
  color: var(--gold);
  letter-spacing: -0.02em;
}

/* Counter target: maintain stable width during animation to prevent layout shift */
.proof__number[data-count] {
  font-variant-numeric: tabular-nums;
}

/* Hero brand on 404 page — small visual touch */
.error-mark {
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 220px);
  line-height: 0.85;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  display: inline-block;
}

.error-mark__sub {
  display: block;
  font-size: 0.18em;
  letter-spacing: 0.34em;
  color: var(--cream-faint);
  margin-top: 8px;
  font-weight: 400;
}

/* ============ GALLERY ============ */
.gallery-grid {
  columns: 3 280px;
  column-gap: 20px;
}
@media (max-width: 700px) {
  .gallery-grid { columns: 1; }
}
.gallery-card {
  break-inside: avoid;
  margin: 0 0 20px;
  background: var(--bg-mid);
  border: 1px solid var(--gold-faint);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gallery-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}
.gallery-card__imgwrap { position: relative; overflow: hidden; }
.gallery-card__imgwrap img {
  width: 100%;
  display: block;
  filter: saturate(0.92);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-card:hover .gallery-card__imgwrap img { transform: scale(1.04); filter: saturate(1); }
.gallery-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-card__tag--done {
  background: rgba(201, 169, 97, 0.92);
  color: var(--bg-darker);
}
.gallery-card__tag--progress {
  background: rgba(10, 44, 31, 0.82);
  color: var(--gold-bright);
  border: 1px solid var(--gold-soft);
}
.gallery-card__cap { padding: 16px 18px 18px; }
.gallery-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.25;
}
.gallery-card__desc {
  display: block;
  font-size: 13px;
  color: var(--cream-muted);
  line-height: 1.5;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 28, 20, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox__inner {
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--gold-faint);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__caption { text-align: center; margin-top: 18px; max-width: 640px; }
.lightbox__title {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 6px;
}
.lightbox__desc { display: block; font-size: 13.5px; color: var(--cream-muted); line-height: 1.6; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(15, 58, 42, 0.7);
  border: 1px solid var(--gold-soft);
  color: var(--cream);
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--gold); color: var(--bg-darker); }
.lightbox__close {
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
@media (max-width: 700px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; }
}
