/* Executive Medical Associates — executive brand site
   Navy / charcoal / off-white. Institutional, not clinical-template. */

:root {
  --navy: #0b1c2e;
  --navy-deep: #07131f;
  --navy-mid: #16324a;
  --navy-soft: #1e3d5c;
  --charcoal: #1c2127;
  --ink: #1a1f24;
  --muted: #5a636c;
  --muted-on-dark: #c5c0b6;
  --rule: #d4cbbd;
  --rule-dark: rgba(212, 188, 138, 0.28);
  --paper: #f5f1e9;
  --paper-2: #ebe4d8;
  --white: #fbfaf6;
  --brass: #b08a4f;
  --brass-strong: #c9a15a;
  --danger-skip: #0b1c2e;
  --max: 72rem;
  --header-h: 4.25rem;
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-mid);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 28, 46, 0.94);
  color: var(--white);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(212, 188, 138, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}

.wordmark:hover {
  color: var(--white);
}

.wordmark-mark {
  display: grid;
  place-items: center;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--brass-strong);
  color: var(--brass-strong);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wordmark-cred {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 1px;
  margin: 0 auto;
  background: var(--white);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-gold {
  background: var(--brass);
  color: var(--navy-deep);
  border-color: var(--brass);
}

.btn-gold:hover {
  background: var(--brass-strong);
  color: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--brass-strong);
  color: var(--brass-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--brass);
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
}

.btn-ghost:hover {
  background: var(--brass);
  color: var(--navy-deep);
}

/* Hero */

.hero {
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.25), rgba(7, 19, 31, 0.55)),
    linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 48%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem 4.75rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.8fr);
  gap: 3.5rem;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--brass-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 .thin {
  font-weight: 500;
  font-style: italic;
  color: var(--muted-on-dark);
}

.hero-role {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--white);
}

.hero-subrole {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--muted-on-dark);
  font-size: 0.98rem;
  line-height: 1.5;
}

.page-hero .hero-role {
  margin-bottom: 1.5rem;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: #e8e2d6;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-problems {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.hero-problems li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.15rem;
  color: #e8e2d6;
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-problems li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.5rem;
  height: 1px;
  background: var(--brass-strong);
}

.seeking {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--muted-on-dark);
  font-size: 0.98rem;
}

.seeking strong {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-dossier {
  border: 1px solid var(--rule-dark);
  background: rgba(7, 19, 31, 0.45);
  padding: 1.6rem 1.5rem 1.4rem;
  backdrop-filter: blur(6px);
}

.dossier-kicker {
  margin: 0 0 1.1rem;
  color: var(--brass-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-dossier dl {
  margin: 0;
}

.hero-dossier dl > div {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dossier dt {
  margin: 0 0 0.2rem;
  color: var(--muted-on-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-dossier dd {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
}

.dossier-note {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--muted-on-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Shared sections */

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: start;
  margin-bottom: 2.75rem;
  max-width: 48rem;
}

.section-index {
  margin: 0.35rem 0 0;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-head h2,
.credentials h3,
.pillar h3,
.timeline h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  color: var(--navy);
}

.section-head.light h2 {
  color: var(--white);
}

.section-deck {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head.light .section-deck {
  color: var(--muted-on-dark);
}

.section-head.light .section-index {
  color: var(--brass-strong);
}

/* Metrics */

.metrics {
  background: var(--navy);
  color: var(--white);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-grid li {
  background: #0e2236;
  padding: 1.6rem 1.35rem 1.45rem;
}

.metric-value {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.metric-arrow {
  color: var(--brass-strong);
  font-weight: 500;
}

.metric-value.topic {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  letter-spacing: -0.015em;
  font-variant-numeric: normal;
}

.metric-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-strong);
}

.metric-note {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.92rem;
  line-height: 1.45;
}


.metric-splash {
  margin: 0 0 1.35rem;
  padding: 1.7rem 1.5rem 1.5rem;
  background: #0e2236;
  border: 1px solid rgba(212, 175, 106, 0.28);
}

.metric-splash .metric-value {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
}

.metric-splash .metric-note {
  max-width: 42rem;
}

/* Expertise */

.expertise {
  background: var(--paper);
}

.pillar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem 1.45rem;
}

.pillar:nth-child(5) {
  grid-column: 1 / -1;
}

.pillar-num {
  margin: 0 0 0.85rem;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.pillar h3 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--navy);
}

.pillar p {
  margin: 0;
  color: #3b434b;
  font-size: 1rem;
}

.pillar-secondary {
  background: var(--paper-2);
}

.pillar-tag {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--brass);
  color: var(--navy-mid);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Experience */

.experience {
  background: var(--white);
  border-top: 1px solid var(--rule);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline > li {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.when {
  margin: 0.35rem 0 0;
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0;
  grid-column: 2;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--navy);
}

.org {
  margin: 0.2rem 0 0.55rem;
  grid-column: 2;
  color: var(--muted);
  font-size: 0.98rem;
}

.role-note {
  margin: 0 0 0.7rem;
  grid-column: 2;
  color: #3b434b;
}

.timeline ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  grid-column: 2;
}

.timeline li li {
  margin: 0 0 0.4rem;
  color: #3b434b;
}

.timeline ul.compact li {
  margin-bottom: 0.55rem;
}

/* Credentials */

.credentials {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.cred-grid h3 {
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.35rem;
  color: var(--navy);
}

.cred-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cred-list li {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 1.15rem;
}

.cred-year {
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cred-title {
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
}

.cred-org {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.fine-print {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Contact */

.contact {
  background: var(--navy-deep);
  color: var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-intro p {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--muted-on-dark);
  font-size: 1.08rem;
}

.contact-card {
  margin: 0;
  font-style: normal;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule-dark);
  padding: 1.6rem 1.5rem;
}

.contact-name {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.contact-principal {
  margin: 0 0 1.1rem;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}

.contact-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card li span:first-child {
  color: var(--muted-on-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.25rem;
}

.contact-card a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--brass-strong);
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background: #050d16;
  color: #9aa3ab;
  border-top: 1px solid rgba(176, 138, 79, 0.2);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 1.8rem;
}

.footer-name {
  margin: 0 0 0.2rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-entity {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-legal {
  margin: 0;
  max-width: 46rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #7d868e;
}

/* Mobile nav */

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wordmark-cred {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--rule-dark);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li a,
  .site-nav .btn-cv {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav .btn-cv {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero-grid,
  .metric-grid,
  .pillar-list,
  .timeline > li,
  .cred-grid,
  .contact-panel,
  .contact-card li {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .timeline h3,
  .org,
  .role-note,
  .timeline ul {
    grid-column: 1;
  }

  .when {
    margin-bottom: 0.35rem;
  }

  .pillar:nth-child(5) {
    grid-column: auto;
  }

  .section-inner {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 1rem;
  }

  .wordmark-text {
    display: none;
  }

  .hero-actions .btn,
  .contact-intro .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .skip-link {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero,
  .metrics,
  .contact,
  .site-footer {
    background: white;
    color: black;
  }

  a {
    text-decoration: none;
  }
}


/* Quiet in-page pointers and inner-page nav (operational medicine) */

.quiet-aside {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quiet-aside a,
.fine-print a {
  color: var(--navy);
}

.quiet-aside a:hover,
.fine-print a:hover {
  color: var(--brass);
}

.seeking a,
.contact-intro a:not(.btn) {
  color: var(--brass-strong);
}

.seeking a:hover,
.contact-intro a:not(.btn):hover {
  color: var(--white);
}

.footer-nav {
  margin: 0 0 0.85rem;
}

.footer-link {
  color: #c5c0b6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-link:hover,
.footer-link[aria-current="page"] {
  color: var(--brass-strong);
}

.footer-sep {
  margin: 0 0.65rem;
  color: #5a636c;
}

.hero.page-hero {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero.page-hero .hero-grid {
  grid-template-columns: minmax(0, 42rem);
}

.hero.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.site-nav a[aria-current="page"] {
  color: var(--white);
}

.credentials .cred-list.pub {
  max-width: 36rem;
}
