:root {
  --paper: #f7f6f1;
  --white: #fff;
  --ink: #171917;
  --muted: #656a66;
  --line: #d9d9d2;
  --line-dark: #bfc2bb;
  --accent: #0f6b63;
  --accent-dark: #0b504a;
  --accent-soft: #e7f0ed;
  --on-ink: #fff;
  --lead-text: #292d2a;
  --nav-text: #333733;
  --hero-text: #484d49;
  --scope-text: #444945;
  --case-text: #555a56;
  --case-note: #6d726d;
  --photo-bg: #f1f4f3;
  --photo-shadow: rgba(23, 25, 23, .08);
  --now-border: #d5e1de;
  --status-glow: rgba(15, 107, 99, .1);
  --proof-bg: #151815;
  --proof-text: #f5f5f0;
  --proof-eyebrow: #8fc4ba;
  --proof-link: #cbd3cf;
  --proof-link-hover: #fff;
  --proof-line: #3a3f3a;
  --proof-caption: #9aa19b;
  --selection: #cfe1dc;
  --error: #9b2d22;
  --max: 1180px;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

:root { color-scheme: light dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: var(--selection); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, blockquote, summary { overflow-wrap: break-word; }
h1, h2 {
  font-family: var(--serif);
  letter-spacing: -.035em;
  font-weight: 500;
}
h1 { font-size: clamp(3rem, 6.5vw, 6.6rem); line-height: .98; max-width: 950px; margin-bottom: 34px; }
h2 { font-size: clamp(2.3rem, 4.2vw, 4.35rem); line-height: 1.02; margin-bottom: 26px; }
h3 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; }
.lead { font-size: clamp(1.22rem, 2vw, 1.5rem); line-height: 1.5; color: var(--lead-text); }
.quiet { color: var(--muted); }
.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: 10px; transform: translateY(-150%); background: var(--ink); color: var(--on-ink); padding: 10px 14px; z-index: 999; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { text-decoration: none; font-size: .94rem; font-weight: 600; color: var(--nav-text); padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.menu-toggle { display: none; background: transparent; border: 0; width: 42px; height: 42px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 1.5px; width: 100%; background: var(--ink); margin: 7px 0; transition: transform .22s ease; }
.menu-toggle[aria-expanded="true"] span:not(.sr-only):first-of-type { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(2) { transform: translateY(-4.25px) rotate(-45deg); }

.hero { border-top: 0; padding-top: 88px; padding-bottom: 128px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}
.hero-intro { max-width: 730px; font-size: clamp(1.15rem, 1.9vw, 1.45rem); color: var(--hero-text); margin-bottom: 38px; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: var(--on-ink); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-ink); }
.profile-links { display: flex; gap: 20px; flex-wrap: wrap; }
.profile-links a { font-size: .9rem; font-weight: 650; color: var(--muted); }
.portrait-wrap {
  margin: 0;
  width: 100%;
  max-width: 390px;
  justify-self: end;
}
.portrait-wrap picture { display: block; }
.portrait-wrap img {
  width: 100%;
  height: auto;
  /* cutout portrait: no frame, no plate. It sits directly on the page. */
}
.portrait-wrap figcaption {
  padding-top: 12px;
  font-size: .78rem;
  color: var(--muted);
}

.two-col, .now-grid, .faq-grid { display: grid; grid-template-columns: minmax(210px, .62fr) minmax(0, 1.38fr); gap: 96px; align-items: start; }
.section-label { position: sticky; top: 110px; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 24px; }
.prose a { font-weight: 650; }
.prose blockquote {
  margin: 76px 0;
  padding: 36px 0 0;
  border-top: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.1vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  max-width: 11em;
}
.signature { margin: 52px 0 0; max-width: 290px; }
.sig-mark {
  display: block;
  width: 100%;
  aspect-ratio: 2788 / 1395;
  background-color: var(--ink);
  -webkit-mask: url(/assets/signature.svg) center / contain no-repeat;
          mask: url(/assets/signature.svg) center / contain no-repeat;
}
.signature figcaption { margin-top: 14px; font-size: .78rem; letter-spacing: .04em; color: var(--case-note); }

.scope { margin-top: 52px; border-top: 1px solid var(--line-dark); }
.scope > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.scope p { margin: 0; color: var(--scope-text); }
.scope-tiers { display: flex; flex-direction: column; gap: 7px; }
.scope-primary { font-weight: 650; color: var(--ink) !important; }
.scope-secondary { font-size: .88rem; color: var(--case-note) !important; }
.scope-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }

.work { background: var(--white); }
.section-head { max-width: 840px; margin-bottom: 66px; }
.section-head > p:last-child { max-width: 720px; color: var(--muted); }
.case-list { border-top: 1px solid var(--ink); }
.case { display: grid; grid-template-columns: 70px minmax(0, 1fr) 180px; gap: 34px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.case-no { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }
.case-kicker { margin: 0 0 10px; color: var(--accent); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.case-body h3 { max-width: 640px; margin-bottom: 14px; }
.case-body p:last-child { max-width: 690px; color: var(--case-text); margin-bottom: 0; }
.case-result { margin: 0; font-size: .84rem; line-height: 1.4; color: var(--muted); text-align: right; }
.case-result strong { color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.case-note { max-width: 760px; margin: 26px 0 0 104px; font-size: .78rem; color: var(--case-note); }

.now { background: var(--paper); }
.now-card { background: var(--accent-soft); padding: clamp(28px, 5vw, 58px); border: 1px solid var(--now-border); max-width: 800px; }
.now-card h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 28px; }
.now-card p { max-width: 650px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); }
.status span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--status-glow); }

.proof { background: var(--proof-bg); color: var(--proof-text); }
.proof .eyebrow { color: var(--proof-eyebrow); }
.proof-top { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.proof-top h2 { max-width: 700px; margin-bottom: 0; }
.text-link { color: var(--proof-link); font-size: .85rem; white-space: nowrap; }
.text-link:hover { color: var(--proof-link-hover); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--proof-line); border: 1px solid var(--proof-line); }
.quote { margin: 0; background: var(--proof-bg); padding: 46px; }
.quote blockquote { margin: 0 0 42px; font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.45rem); line-height: 1.25; letter-spacing: -.02em; }
.quote figcaption { font-size: .85rem; font-weight: 700; }
.quote figcaption span { color: var(--proof-caption); font-weight: 500; }

.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 4px 22px 0; font-weight: 650; font-size: 1.04rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.05; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 40px 26px 0; color: var(--muted); max-width: 760px; }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.contact-copy p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.contact-form { display: grid; gap: 10px; }
.contact-form label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; border-radius: 0; padding: 12px 0 14px; color: var(--ink); outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.form-foot { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.form-status { margin: 0; font-size: .86rem; color: var(--muted); }
.form-status.success { color: var(--accent-dark); }
.form-status.error { color: var(--error); }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner p { margin: 0; font-size: .8rem; color: var(--muted); }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a { font-size: .8rem; color: var(--muted); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .portrait-wrap {
    justify-self: center;
    width: min(100%, 340px);
    max-width: 340px;
  }
  .two-col, .now-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section-label { position: static; }
  .case { grid-template-columns: 50px 1fr; }
  .case-result { grid-column: 2; text-align: left; }
  .case-note { margin-left: 84px; }
  .proof-top { align-items: start; flex-direction: column; }
  .text-link { white-space: normal; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 44px), var(--max)); }
  .section { padding: 72px 0; }
  .nav-wrap { min-height: 56px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 14px 0; font-size: 1rem; }
  h1 { font-size: clamp(2.35rem, 9.6vw, 3.2rem); }
  h2 { font-size: clamp(1.95rem, 8.2vw, 2.7rem); }
  .hero { padding-top: 44px; padding-bottom: 86px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .portrait-wrap {
    width: min(100%, 320px);
    max-width: 320px;
    justify-self: center;
  }
  .scope > div { grid-template-columns: 1fr; gap: 8px; }
  .case { grid-template-columns: 36px 1fr; gap: 16px; padding: 30px 0; }
  .case-note { margin-left: 52px; }
  .quotes { grid-template-columns: 1fr; }
  .quote { padding: 32px 26px; }
  .contact-grid { gap: 30px; }
  .form-foot { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: center; flex-direction: column; gap: 14px; text-align: center; }
  .footer-inner nav { justify-content: center; }
  .profile-links { gap: 4px 22px; }
  .profile-links a { display: inline-block; padding: 9px 0; }
  .footer-inner nav { flex-wrap: wrap; gap: 2px 22px; }
  .footer-inner a { display: inline-block; padding: 8px 0; }
  .text-link { display: inline-block; padding: 8px 0; }
  summary { padding: 20px 4px 20px 0; min-height: 44px; }
  [id] { scroll-margin-top: 74px; }
}

@media (max-width: 480px) {
  .shell { width: min(calc(100% - 40px), var(--max)); }
  .section { padding: 48px 0; }
  .hero { padding-top: 34px; padding-bottom: 68px; }
  h1 { font-size: clamp(2rem, 9.2vw, 2.5rem); line-height: 1.06; margin-bottom: 22px; }
  h2 { font-size: clamp(1.75rem, 7.7vw, 2.15rem); }
  .eyebrow { font-size: .72rem; letter-spacing: .1em; margin-bottom: 16px; }
  .hero-intro { font-size: 1.08rem; margin-bottom: 30px; }
  .hero-grid { gap: 40px; }
  .hero-actions { gap: 22px; }
  .profile-links { gap: 16px; justify-content: center; width: 100%; }
  .button { width: 100%; }
  .portrait-wrap { width: min(100%, 290px); max-width: 290px; justify-self: center; }
  .portrait-wrap figcaption { font-size: .74rem; }
  .two-col, .now-grid, .faq-grid, .contact-grid { gap: 32px; }
  .prose blockquote { margin: 46px 0; padding: 24px 0 0; font-size: 1.75rem; max-width: none; }
  .scope { margin-top: 40px; }
  .case { grid-template-columns: 28px 1fr; gap: 12px; padding: 26px 0; }
  .case-no { font-size: .98rem; }
  .case-body h3 { font-size: 1.22rem; }
  .case-result { grid-column: 2; margin-top: 4px; }
  .case-note { margin-left: 40px; font-size: .84rem; }
  .now-card { padding: 26px 22px; }
  .quote { padding: 28px 22px; }
  .quote blockquote { font-size: 1.65rem; margin-bottom: 30px; }
  details p { padding-right: 8px; }
  .contact-form textarea { min-height: 130px; }
  [id] { scroll-margin-top: 68px; }
}

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


/* ============================================================
   Dark theme. Same brand, inverted. Only variables change,
   so every component follows automatically.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101210;
    --white: #181b18;
    --ink: #ecebe4;
    --muted: #9ba09a;
    --line: #2a2e2a;
    --line-dark: #3a3f3a;
    --accent: #58bdaf;
    --accent-dark: #7fd3c7;
    --accent-soft: #16221f;

    --on-ink: #101210;
    --lead-text: #dcdbd4;
    --nav-text: #c9cdc7;
    --hero-text: #c2c7c1;
    --scope-text: #b6bbb5;
    --case-text: #adb2ac;
    --case-note: #8f948e;
    --photo-bg: #ecebe4;
    --photo-shadow: rgba(0, 0, 0, .55);
    --now-border: #24352f;
    --status-glow: rgba(88, 189, 175, .16);

    /* the proof band sits ABOVE the page in dark mode so it stays a distinct band */
    --proof-bg: #1c201c;
    --proof-text: #ecebe4;
    --proof-eyebrow: #7fd3c7;
    --proof-link: #c2c7c1;
    --proof-link-hover: #ffffff;
    --proof-line: #343934;
    --proof-caption: #9ba09a;

    --selection: #2b4a44;
    --error: #f0938a;
  }

  /* header blur tint has to follow the dark page */
  .site-header.scrolled { border-bottom-color: var(--line); }

}

@media (max-width: 680px) {
  .signature { max-width: 232px; margin-top: 40px; }
}
