:root {
  --ink: #17313a;
  --ink-soft: #43575d;
  --paper: #f8f6f2;
  --paper-warm: #f0ebe4;
  --white: #ffffff;
  --sage: #6f8378;
  --sage-deep: #4f675c;
  --clay: #b58a6e;
  --line: rgba(23, 49, 58, 0.14);
  --shadow: 0 28px 70px rgba(26, 47, 52, 0.14);
  --radius: 24px;
  --container: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: var(--container); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 10px 14px;
  background: var(--ink); color: var(--white); border-radius: 8px; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 246, 242, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 12px 30px rgba(23,49,58,.05); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: "Newsreader", Georgia, serif; font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }
.brand-subtitle { margin-top: 6px; font-size: .67rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-size: .94rem; font-weight: 600; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px;
  background: var(--clay); transition: right .2s ease;
}
.site-nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--white); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); }
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: .2s ease; }

.hero { position: relative; overflow: hidden; padding: 76px 0 94px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23,49,58,.18), transparent);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.hero-glow-one { width: 520px; height: 520px; right: -140px; top: -100px; background: rgba(111,131,120,.13); }
.hero-glow-two { width: 400px; height: 400px; left: -260px; bottom: -140px; background: rgba(181,138,110,.12); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 14px; color: var(--sage-deep); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; line-height: 1.06; font-weight: 500; letter-spacing: -.025em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3.3rem, 6vw, 5.9rem); }
.hero-lede { max-width: 680px; margin: 26px 0 0; color: var(--ink-soft); font-size: 1.17rem; line-height: 1.75; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 14px 30px rgba(23,49,58,.18); }
.button-primary:hover { box-shadow: 0 18px 38px rgba(23,49,58,.25); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.64); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: var(--ink-soft); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }
.hero-portrait-wrap { position: relative; max-width: 300px; justify-self: end; align-self: start; }
.portrait-frame { position: relative; overflow: hidden; border-radius: 50%; aspect-ratio: 1 / 1; background: #e6e8e8; box-shadow: var(--shadow); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.65); border-radius: inherit; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; }
.credential-chip {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); width: max-content; max-width: 240px; padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(23,49,58,.14); backdrop-filter: blur(14px); text-align: center;
}
.credential-chip strong, .credential-chip span { display: block; }
.credential-chip strong { font-size: .96rem; }
.credential-chip span { margin-top: 4px; color: var(--ink-soft); font-size: .82rem; }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 27px 24px; border-left: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 1px solid var(--line); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-family: "Newsreader", Georgia, serif; font-size: 1.17rem; font-weight: 600; }
.trust-grid span { margin-top: 3px; color: var(--ink-soft); font-size: .82rem; }

.section { padding: 116px 0; }
.section h2 { margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.2rem); }
.split-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.prose { border-left: 1px solid var(--line); padding-left: 46px; }
.prose p { margin: 0; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.85; }
.prose p + p { margin-top: 18px; }

.services { background: var(--white); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 50px; }
.section-heading > p { max-width: 430px; margin: 0 0 8px; color: var(--ink-soft); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { position: relative; min-height: 510px; padding: 48px; overflow: hidden; border-radius: var(--radius); }
.service-card-clinical { background: var(--paper-warm); }
.service-card-forensic { color: var(--white); background: var(--ink); }
.service-card-forensic .eyebrow, .service-card-forensic p { color: rgba(255,255,255,.72); }
.service-card .service-number { position: absolute; right: 32px; top: 24px; font-family: "Newsreader", Georgia, serif; font-size: 5.2rem; line-height: 1; color: rgba(23,49,58,.08); }
.service-card-forensic .service-number { color: rgba(255,255,255,.08); }
.service-icon { width: 62px; height: 62px; margin-bottom: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.66); }
.service-card-forensic .service-icon { background: rgba(255,255,255,.1); }
.service-icon svg { width: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 8px 0 16px; font-size: clamp(2.1rem, 3vw, 3rem); }
.service-card p { max-width: 560px; margin: 0; color: var(--ink-soft); }
.text-link { position: absolute; left: 48px; bottom: 44px; text-underline-offset: 5px; font-weight: 700; }

.credentials { background: var(--paper-warm); }
.credentials-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.credentials-intro { position: sticky; top: 130px; align-self: start; }
.credentials-intro > p:last-child { margin-top: 24px; max-width: 470px; color: var(--ink-soft); font-size: 1.05rem; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 16px; width: 1px; background: rgba(23,49,58,.2); }
.timeline-item { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 0 0 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: relative; z-index: 1; width: 21px; height: 21px; margin-top: 4px; border: 6px solid var(--paper-warm); border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 1px rgba(23,49,58,.12); }
.timeline-label { margin: 0 0 4px; color: var(--sage-deep); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.timeline h3 { margin: 0; font-size: 1.75rem; }
.timeline-item p:last-child { margin: 5px 0 0; color: var(--ink-soft); }

.contact { padding-top: 90px; }
.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; padding: 66px; border-radius: 32px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.contact-panel .eyebrow { color: #c7d6cd; }
.contact-panel h2 { max-width: 680px; }
.contact-copy > p:not(.eyebrow) { max-width: 620px; margin: 24px 0 0; color: rgba(255,255,255,.72); }
.button-light { background: var(--white); color: var(--ink); }
.button-outline-light { border-color: rgba(255,255,255,.38); color: var(--white); }
.contact-details { display: grid; gap: 20px; align-content: center; }
.contact-detail { padding: 0 0 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-detail:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-detail > span { display: block; margin-bottom: 5px; color: #c7d6cd; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-detail address, .contact-detail p { margin: 0; font-style: normal; color: rgba(255,255,255,.88); }
.contact-detail a { text-underline-offset: 5px; }

.site-footer { padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.4fr auto; gap: 36px; align-items: end; }
.footer-grid p { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.footer-brand { font-family: "Newsreader", Georgia, serif; color: var(--ink) !important; font-size: 1.35rem !important; font-weight: 600; }
.footer-disclaimer { max-width: 620px; }
.footer-copy { text-align: right; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 780px; }
  .hero-portrait-wrap { justify-self: center; width: min(260px, 55%); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(3) { border-top: 1px solid var(--line); }
  .trust-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
  .split-grid, .credentials-grid { grid-template-columns: 1fr; gap: 48px; }
  .prose { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .credentials-intro { position: static; }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { text-align: left; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1160px); }
  .nav-wrap { min-height: 74px; }
  .brand-name { font-size: 1.45rem; }
  .brand-subtitle { font-size: .55rem; letter-spacing: .13em; }
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 101; display: flex; flex-direction: column; justify-content: center;
    gap: 28px; padding: 90px 28px; background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .2s ease;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { font-family: "Newsreader", Georgia, serif; font-size: 2.2rem; font-weight: 500; }
  .nav-cta { padding: 12px 26px; font-family: "DM Sans", sans-serif !important; font-size: 1rem !important; }
  .hero { padding: 48px 0 74px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-lede { font-size: 1.02rem; }
  .hero-actions .button { width: 100%; }
  .hero-portrait-wrap { width: min(220px, 60%); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding: 84px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 500px; padding: 34px; }
  .service-icon { margin-bottom: 40px; }
  .text-link { left: 34px; bottom: 32px; right: 34px; }
  .contact { padding-top: 54px; }
  .contact-panel { padding: 38px 26px; border-radius: 24px; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
