/* ═══════════════════════════════════════════════════════════════════════════
   Dr L.C. Makola — public site design system
   "Quiet authority": editorial serif on warm paper, deep teal + bronze,
   thin rules, generous whitespace. No frameworks, no tracking, no cookies.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #17233a;          /* headings */
  --body: #3a465e;         /* body text */
  --muted: #6b7690;        /* secondary text */
  --paper: #f7f5f0;        /* warm ivory background */
  --card: #fffdf9;         /* card surface */
  --line: #e5e0d4;         /* hairlines */
  --accent: #14555e;       /* deep teal */
  --accent-soft: #eef4f3;  /* teal tint fill */
  --bronze: #a97e3f;       /* kickers, fine details */
  --navy: #101b2e;         /* footer band */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(23, 35, 58, .05), 0 8px 24px rgba(23, 35, 58, .06);
  --shadow-lg: 0 2px 6px rgba(23, 35, 58, .07), 0 24px 64px rgba(16, 27, 46, .14);
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(20, 85, 94, .16); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ── typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 560; letter-spacing: -.012em; line-height: 1.12; }
.kicker {
  font-size: 12px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze); display: flex; align-items: center; gap: 12px;
}
.kicker::after { content: ""; height: 1px; width: 44px; background: linear-gradient(90deg, var(--bronze), transparent); }
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 14px; }
.section-head .lede { margin-top: 12px; max-width: 46em; color: var(--muted); font-size: 17px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(247, 245, 240, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(23, 35, 58, .05); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand .name small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--body); font-size: 14.5px; font-weight: 500; padding: 8px 13px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--ink); background: rgba(20, 85, 94, .07); text-decoration: none; }
.site-nav a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.nav-cta {
  margin-left: 10px; padding: 9px 18px !important; border-radius: 999px !important;
  background: var(--accent); color: #fff !important; font-weight: 600;
  box-shadow: 0 6px 18px rgba(20, 85, 94, .28); transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { background: #0f434b; transform: translateY(-1px); }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav a { font-family: var(--serif); font-size: 26px; color: var(--ink); padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav a:hover { text-decoration: none; color: var(--accent); }
.mobile-nav .close { border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(150px, 18vw, 210px) 0 clamp(60px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52% 42% at 82% 12%, rgba(20, 85, 94, .075), transparent 70%),
    radial-gradient(40% 34% at 8% 88%, rgba(169, 126, 63, .08), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.hero .kicker { color: var(--accent); }
.hero .kicker::after { background: linear-gradient(90deg, var(--accent), transparent); }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); margin-top: 20px; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .credentials {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center;
  color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero .credentials span + span::before { content: "·"; margin: 0 10px; color: var(--line); }
.hero .headline { margin-top: 30px; font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--body); max-width: 34em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(20, 85, 94, .3); }
.btn-primary:hover { background: #0f434b; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc8b8; font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.btn svg { width: 16px; height: 16px; }

/* portrait in an arch */
.portrait-frame { position: relative; justify-self: center; }
.portrait-frame::before {
  content: ""; position: absolute; inset: -16px -16px 22px -16px;
  border: 1px solid var(--line); border-radius: 999px 999px 18px 18px;
}
.portrait-frame::after {
  content: ""; position: absolute; inset: -28px -28px 34px -28px;
  border: 1px dashed rgba(169, 126, 63, .5); border-radius: 999px 999px 24px 24px;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.022); opacity: .95; } }
.portrait {
  width: min(340px, 72vw); aspect-ratio: 4 / 4.7; object-fit: cover;
  border-radius: 999px 999px 20px 20px; border: 6px solid var(--card);
  box-shadow: var(--shadow-lg); position: relative;
}
.portrait-caption {
  margin-top: 26px; text-align: center; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* ── fact strip ─────────────────────────────────────────────────────────── */
.fact-strip { border-block: 1px solid var(--line); background: var(--card); }
.fact-strip .wrap { display: flex; flex-wrap: wrap; }
.fact {
  flex: 1 1 220px; padding: 26px 28px; display: flex; gap: 14px; align-items: flex-start;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: none; }
.fact svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 3px; }
.fact b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 700; }
.fact span { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }

/* ── about ──────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); }
.about-side { position: sticky; top: 110px; align-self: start; }
.about-side .kicker { margin-bottom: 14px; }
.about-body p { max-width: 44em; font-size: 17.5px; }
.about-body p + p { margin-top: 18px; }
.pull-quote {
  margin-top: 34px; padding: 26px 30px; border-left: 3px solid var(--bronze);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-size: 19.5px; font-style: italic; color: var(--ink);
  box-shadow: var(--shadow-sm); max-width: 36em; line-height: 1.5;
}

/* ── practice cards ─────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }  /* a lone trailing card becomes a feature row, not an orphan */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(20, 85, 94, .25); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(20, 85, 94, 0));
  opacity: 0; transition: opacity .2s;
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ── timeline ───────────────────────────────────────────────────────────── */
.timeline { position: relative; margin-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(20, 85, 94, .12)); border-radius: 2px; }
.t-item { position: relative; padding: 0 0 34px 34px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: -5px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 2.5px solid var(--accent);
}
.t-item.current::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(20, 85, 94, .14); }
.t-item .period {
  display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px;
}
.t-item.current .period { background: var(--accent); color: #fff; }
.t-item h3 { font-size: 20px; margin-top: 10px; }
.t-item .org { color: var(--muted); font-size: 15px; margin-top: 2px; font-weight: 500; }
.t-item .detail { margin-top: 8px; max-width: 40em; font-size: 15px; color: var(--body); }

/* ── qualifications ─────────────────────────────────────────────────────── */
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qual {
  background: var(--navy); color: #e9edf4; border-radius: var(--radius); padding: 28px 26px;
  position: relative; overflow: hidden;
}
.qual::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%;
}
.qual .year {
  font-family: var(--serif); font-size: 15px; color: #d9c9a8; letter-spacing: .04em;
}
.qual h3 { color: #fff; font-size: 20px; margin-top: 10px; }
.qual .org { color: #a7b2c6; font-size: 14px; margin-top: 6px; }

/* ── publications ───────────────────────────────────────────────────────── */
.pub-list { border-top: 1px solid var(--line); }
.pub { padding: 22px 4px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.pub .year { font-family: var(--serif); font-size: 20px; color: var(--bronze); }
.pub .title { font-weight: 600; color: var(--ink); font-size: 16.5px; }
.pub .meta { margin-top: 5px; color: var(--muted); font-size: 14px; }
.pub .meta i { color: var(--body); }

/* ── contact ────────────────────────────────────────────────────────────── */
.contact-card {
  display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card);
}
.contact-main { padding: clamp(30px, 4vw, 52px); }
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-row:last-of-type { border-bottom: none; }
.contact-row .icon { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-row .icon svg { width: 19px; height: 19px; }
.contact-row b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.contact-row .val { font-size: 16.5px; color: var(--ink); font-weight: 500; margin-top: 3px; word-break: break-word; }
.contact-note { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin-top: 18px; font-size: 14px; color: #2c4a4e; line-height: 1.6; }
.contact-note b { color: var(--accent); }
.crisis {
  background: var(--navy); color: #dfe6f2; padding: clamp(30px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center;
}
.crisis h3 { color: #fff; font-size: 22px; }
.crisis p { margin-top: 12px; font-size: 15px; color: #b6c1d4; line-height: 1.65; }
.crisis .lines { margin-top: 22px; display: grid; gap: 12px; }
.crisis .line { border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 14px 16px; }
.crisis .line b { display: block; color: #fff; font-size: 15.5px; }
.crisis .line span { font-size: 13.5px; color: #9fabc2; }
.crisis .line .tel { font-family: var(--serif); font-size: 25px; color: #f0e3c6; letter-spacing: .04em; display: inline-block; margin-top: 2px; }
.crisis .line:first-child { border-color: rgba(232, 217, 184, .45); background: rgba(232, 217, 184, .06); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #9fabc2; margin-top: clamp(60px, 8vw, 100px); }
.footer-inner { padding: clamp(44px, 6vw, 72px) 0 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.site-footer .brand .name { color: #fff; }
.site-footer .brand .name small { color: #8b97af; }
.site-footer .privacy-line { margin-top: 18px; max-width: 34em; font-size: 13.5px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-links a { color: #c6cfe0; }
.footer-links a:hover { color: #fff; }
.footer-base {
  margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: #7f8ca6;
}

/* ── states + reveal ────────────────────────────────────────────────────── */
.state { padding: 140px 20px; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 19px; }
.state .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 10px; animation: pulse 1.6s infinite; vertical-align: 2px; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .65, .3, 1), transform .7s cubic-bezier(.2, .65, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { justify-self: start; margin-top: 8px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .cards, .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-btn { display: flex; }
  .cards, .qual-grid { grid-template-columns: 1fr; }
  .fact { flex: 1 1 46%; border-right: none; border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
}

/* ── print ──────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .hero-actions, .menu-btn, .crisis, .site-footer, .scroll-cue { display: none !important; }
  body { background: #fff; color: #111; font-size: 12.5px; }
  .hero { padding: 20px 0; }
  .section { padding: 18px 0; }
  .card, .qual, .contact-card { box-shadow: none; }
}
