/* ===========================================================
   Erica Schissel, MD — modernized redesign
   Palette carried over (as oklch) from the original site, retuned
   for more contrast, depth, and a lighter dark-mode counterpart.
   =========================================================== */

:root {
  --background: oklch(98.2% .008 95);
  --foreground: oklch(28% .035 175);
  --primary: oklch(52% .075 178);
  --primary-hover: oklch(45% .08 178);
  --primary-foreground: oklch(98.5% .01 95);
  --secondary: oklch(94.5% .021 172);
  --secondary-foreground: oklch(31% .045 178);
  --muted: oklch(95.5% .014 150);
  --muted-foreground: oklch(50% .03 175);
  --accent: oklch(93% .03 170);
  --accent-foreground: oklch(31% .045 178);
  --border: oklch(90% .018 165);
  --card: oklch(99.5% .004 95);
  --card-foreground: oklch(28% .035 175);
  --radius: 1.1rem;

  --shadow-sm: 0 1px 2px oklch(28% .035 175 / 0.05);
  --shadow-md: 0 8px 24px -8px oklch(28% .035 175 / 0.14);
  --shadow-lg: 0 24px 48px -16px oklch(28% .035 175 / 0.20);

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: oklch(19% .022 175);
    --foreground: oklch(94% .012 95);
    --primary: oklch(72% .09 175);
    --primary-hover: oklch(80% .09 175);
    --primary-foreground: oklch(16% .02 175);
    --secondary: oklch(27% .03 175);
    --secondary-foreground: oklch(92% .015 95);
    --muted: oklch(25% .025 175);
    --muted-foreground: oklch(72% .02 120);
    --accent: oklch(30% .04 172);
    --accent-foreground: oklch(92% .015 95);
    --border: oklch(32% .03 172);
    --card: oklch(22% .025 175);
    --card-foreground: oklch(94% .012 95);
    --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3);
    --shadow-md: 0 8px 24px -8px oklch(0% 0 0 / 0.45);
    --shadow-lg: 0 24px 48px -16px oklch(0% 0 0 / 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: oklch(19% .022 175);
  --foreground: oklch(94% .012 95);
  --primary: oklch(72% .09 175);
  --primary-hover: oklch(80% .09 175);
  --primary-foreground: oklch(16% .02 175);
  --secondary: oklch(27% .03 175);
  --secondary-foreground: oklch(92% .015 95);
  --muted: oklch(25% .025 175);
  --muted-foreground: oklch(72% .02 120);
  --accent: oklch(30% .04 172);
  --accent-foreground: oklch(92% .015 95);
  --border: oklch(32% .03 172);
  --card: oklch(22% .025 175);
  --card-foreground: oklch(94% .012 95);
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3);
  --shadow-md: 0 8px 24px -8px oklch(0% 0 0 / 0.45);
  --shadow-lg: 0 24px 48px -16px oklch(0% 0 0 / 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain texture for depth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--background) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--foreground);
}
.brand-comma { color: var(--muted-foreground); }
.brand-md { color: var(--primary); font-style: italic; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.94rem;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--foreground);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--primary);
  transition: right 0.25s ease;
}
.nav-desktop a:not(.nav-cta):hover::after { right: 0; }

.nav-desktop a.nav-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-desktop a.nav-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a {
  text-decoration: none;
  color: var(--foreground);
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 0.98rem;
}
.nav-mobile a:hover { background: var(--secondary); }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-mobile { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 108px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 20px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 20%, transparent);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-accent {
  display: block;
  color: var(--primary);
  font-style: italic;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted-foreground);
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .arrow { transition: transform 0.2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-ghost-light { border-color: color-mix(in oklch, var(--primary-foreground) 35%, transparent); color: var(--primary-foreground); }
.btn-ghost-light:hover { background: color-mix(in oklch, var(--primary-foreground) 12%, transparent); }

/* hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.visual-card {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 4 / 3.4;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.visual-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}
.visual-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, color-mix(in oklch, var(--foreground) 32%, transparent) 100%);
  pointer-events: none;
}

.stat-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.stat-num { font-family: var(--font-serif); font-size: 1.05rem; }
.stat-label { font-size: 0.72rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-chip-1 { top: 6%; left: -6%; animation-delay: 0s; }
.stat-chip-2 { bottom: 14%; right: -8%; animation-delay: 1.2s; }
.stat-chip-3 { bottom: -6%; left: 12%; animation-delay: 2.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 56px 0 72px; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .visual-card { width: min(100%, 300px); }
  .stat-chip { display: none; }
}

/* ---------- shared section styling ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--secondary); }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}
.kicker-light { color: color-mix(in oklch, var(--primary-foreground) 80%, transparent); }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head.center { text-align: center; margin-bottom: 48px; }
.section-head.center h2 { max-width: 32ch; margin-inline: auto; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.about-body p { color: var(--muted-foreground); margin: 0 0 18px; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: -1px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* focus cards */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.focus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--primary) 30%, var(--border));
}
.focus-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.focus-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.focus-card p { font-size: 0.92rem; color: var(--muted-foreground); margin: 0; }

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

/* timeline */
.timeline {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 44px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0; top: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--card);
  border: 2.5px solid var(--primary);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 6px;
}
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline-org { color: var(--primary); font-weight: 600; font-size: 0.94rem; margin: 0 0 12px; }
.timeline-content p:not(.timeline-date):not(.timeline-org) { color: var(--muted-foreground); margin: 0; max-width: 64ch; }

/* contact */
.section-contact { padding: 0 0 96px; }
.contact-card {
  background: linear-gradient(155deg, var(--primary), color-mix(in oklch, var(--primary) 80%, black 15%));
  color: var(--primary-foreground);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { max-width: 30ch; margin: 0 auto 16px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-copy { max-width: 48ch; margin: 0 auto 32px; opacity: 0.9; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-actions .btn-primary { background: var(--primary-foreground); color: var(--primary); }
.contact-actions .btn-primary:hover { background: color-mix(in oklch, var(--primary-foreground) 88%, black); }

@media (max-width: 600px) { .contact-card { padding: 48px 24px; } }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted-foreground);
  flex-wrap: wrap;
  gap: 12px;
}
.back-to-top { text-decoration: none; color: var(--muted-foreground); transition: color 0.2s ease; }
.back-to-top:hover { color: var(--primary); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
