/* The Legal Nurse Consulting Group: editorial redesign (Nov 2026).
   A legal-journal feel: warm paper, Newsreader serif for reading and display, Inter for
   labels and controls, numbered sections (§) like a brief, thin rules, one accent (Jan's orange).
   Tokens first; change colours and type here. */

@font-face {
  font-family: Inter;
  src: url(../fonts/inter-var.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f6f3ec;
  --paper-2: #ede8dc;
  --ink: #1c1a17;
  --soft: #3d3933;
  --muted: #6b655c;
  --line: #d9d2c3;
  --orange: #e18145;     /* fills only */
  --orange-ink: #a24f1a; /* small orange text on paper: 5.2:1 */
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 76px;
  --section: clamp(80px, 11vw, 160px);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
*, *::before, *::after { text-decoration-style: dotted; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 14px; }
.skip-link:focus { top: 12px; }

/* Reveals: opacity only. Hidden only once the head script added .js. */
.js [data-reveal] { opacity: 0; transition: opacity .6s ease; }
.js [data-reveal].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transition: none; }
}
@media print { .js [data-reveal] { opacity: 1 !important; } }

/* Type ------------------------------------------------------------------ */
.kicker, .sec-no, .step-n, .svc-n, .creds dt, .cred-line, .contact-line span, figcaption, cite {
  font-family: var(--sans);
}
.kicker { margin-bottom: 28px; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--orange-ink); }
h1 { font-size: clamp(46px, 7.2vw, 108px); font-weight: 300; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 72px); font-weight: 300; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
h3 { font-size: 26px; font-weight: 400; letter-spacing: -.015em; line-height: 1.15; }
.lead { max-width: 38ch; margin-top: 32px; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.4; color: var(--soft); text-wrap: pretty; }

/* Buttons and links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3d3933; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 6px; }
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; max-width: var(--max); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); }
.logo img { width: 210px; mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; font-family: var(--sans); }
.main-nav ul { display: flex; gap: 30px; }
.main-nav ul a { font-size: 15px; color: var(--soft); text-decoration: none; }
.main-nav ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--muted); }
.main-nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; margin-right: -10px; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero { padding-top: clamp(56px, 8vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px clamp(32px, 6vw, 112px); align-items: end; }
.hero h1 { max-width: 13ch; }
.epigraph { padding-left: 28px; border-left: 1px solid var(--line); }
.epigraph blockquote { font-size: clamp(24px, 2.2vw, 32px); font-style: italic; font-weight: 300; letter-spacing: -.015em; line-height: 1.2; }
.epigraph figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }
.epigraph figcaption::before { content: ""; display: inline-block; width: 20px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--orange); }
.cred-line { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cred-line li { flex: 1 1 auto; padding: 16px 0; text-align: center; }
.cred-line li + li { border-left: 1px solid var(--line); }

/* Section heads --------------------------------------------------------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 12px clamp(24px, 4vw, 64px); align-items: baseline; padding-top: 22px; border-top: 1px solid var(--ink); }
.sec-no { font-size: 14px; font-weight: 500; color: var(--orange-ink); }
.sec-lead { grid-column: 2; max-width: 52ch; margin-top: 16px; font-size: 20px; line-height: 1.45; color: var(--soft); }

/* § 1 Cases ------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.cases li { padding: 28px 24px 36px 0; border-bottom: 1px solid var(--line); }
.cases li:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.cases h3 { font-size: clamp(24px, 2vw, 30px); font-weight: 400; }
.cases p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* § 2 Process ----------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.5vw, 40px); margin-top: clamp(48px, 6vw, 80px); counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 2px; background: var(--orange); }
.step-n { display: block; font-size: clamp(56px, 6vw, 88px); font-family: var(--serif); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.steps h3 { margin-top: 24px; }
.steps p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--soft); }

/* § 3 About ------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 32px clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.about-body { grid-column: 2; }
.about-body p { max-width: 60ch; margin-bottom: 1em; font-size: 20px; line-height: 1.6; color: var(--soft); }
.dropcap::first-letter { float: left; margin: .08em .1em 0 0; font-size: 4.4em; font-weight: 300; line-height: .8; color: var(--ink); }
.about-body .link-arrow { margin-top: 12px; }
.jury { padding-top: 20px; border-top: 2px solid var(--orange); }
.jury p { font-size: 24px; font-style: italic; font-weight: 300; line-height: 1.3; letter-spacing: -.01em; }
.jury cite { display: block; margin-top: 16px; font-size: 13px; font-style: normal; line-height: 1.5; color: var(--muted); }

.creds { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.creds > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px clamp(24px, 4vw, 64px); padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.creds dt { padding-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.creds dd { max-width: 70ch; font-size: 18px; line-height: 1.55; color: var(--soft); }

/* Pull quote ------------------------------------------------------------ */
.pull { padding-top: var(--section); }
.pull figure { max-width: 1100px; margin: 0 auto; text-align: center; }
.pull blockquote { font-size: clamp(32px, 4.4vw, 64px); font-style: italic; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.pull figcaption { margin-top: 32px; font-size: 14px; font-weight: 600; }
.pull figcaption span { margin-left: 12px; font-weight: 400; color: var(--muted); }

/* § 4 Services ---------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); }
.services li { padding-top: 24px; border-top: 1px solid var(--line); }
.svc-n { font-size: 14px; color: var(--orange-ink); }
.services h3 { margin-top: 28px; font-size: clamp(28px, 2.4vw, 36px); font-weight: 300; letter-spacing: -.025em; }
.services p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--soft); }

/* Contact --------------------------------------------------------------- */
.contact-wrap { padding-top: var(--section); }
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 96px); padding: clamp(36px, 5.5vw, 88px); background: var(--ink); color: var(--paper); }
.contact .kicker { color: var(--orange); }
.contact h2 { font-size: clamp(44px, 6vw, 92px); letter-spacing: -.035em; line-height: .98; }
.contact h2 em { color: var(--orange); }
.contact-copy > p:last-child { max-width: 46ch; margin-top: 28px; font-size: 20px; line-height: 1.5; color: #c9c2b4; }
.contact-lines { align-self: end; border-top: 1px solid #4a453e; }
.contact-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 22px 0 24px; border-bottom: 1px solid #4a453e; font-size: clamp(20px, 2vw, 28px); font-weight: 400; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.contact-line span { font-size: 13px; color: #a39c8e; }
.contact-line:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--orange); }

/* Footer ---------------------------------------------------------------- */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--ink); font-family: var(--sans); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer-logo { width: 200px; mix-blend-mode: multiply; }
.footer-note { max-width: 40ch; margin-top: 20px; color: var(--muted); line-height: 1.5; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.footer-legal p { padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Profile page ---------------------------------------------------------- */
.profile-head { padding-top: clamp(56px, 8vw, 120px); }
.profile-head h1 { max-width: 16ch; font-size: clamp(42px, 6vw, 88px); }
.profile-head h1 em { color: var(--muted); }
.profile-head .lead { max-width: 60ch; font-size: 19px; }
.prose { max-width: calc(760px + 2 * var(--gutter)); margin-top: clamp(48px, 6vw, 88px); }
.prose h2 { margin: 64px 0 20px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: clamp(28px, 3vw, 40px); }
.prose p { margin-bottom: 1em; font-size: 19px; line-height: 1.65; color: var(--soft); }
.prose ul { margin: 8px 0 1em; border-top: 1px solid var(--line); }
.prose ul li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--soft); }
.prose blockquote { margin: 8px 0 28px; padding-left: 24px; border-left: 2px solid var(--orange); }
.prose blockquote p { font-style: italic; color: var(--ink); }
.prose cite { display: block; font-size: 13px; font-style: normal; color: var(--muted); }
.expert-logo { width: 150px; margin-bottom: 20px; mix-blend-mode: multiply; }
.back { margin-top: 48px; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .main-nav ul { gap: 22px; }
  .logo img { width: 180px; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .cases li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(20px, 3vw, 40px); }
  .about { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .about-body { grid-column: 1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 8px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .main-nav.open { visibility: visible; opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--ink); }
  .main-nav .btn { min-height: 50px; font-size: 15px; }

  .hero-grid { grid-template-columns: 1fr; }
  .cred-line li { flex: 1 1 25%; }
  .cred-line li:nth-child(5) { border-left: 0; }
  .cred-line li:nth-child(n+5) { border-top: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; }
  .sec-lead { grid-column: 1; }
  .about { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; }
  .creds > div { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 18px; }
  .logo img { width: 160px; }
  .cases { grid-template-columns: 1fr; }
  .cases li, .cases li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .cred-line li { flex: 1 1 33%; font-size: 12px; letter-spacing: .1em; }
  .cred-line li:nth-child(n) { border-left: 1px solid var(--line); border-top: 0; }
  .cred-line li:nth-child(3n+1) { border-left: 0; }
  .cred-line li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .actions .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; }
}
