/* Slate & Silver: one shared palette for all five pages. */
:root {
  --paper: #f5f6f5;
  --white: #fdfefe;
  --ink: #293945;
  --muted: #52616c;
  --slate: #3d4d59;
  --slate-dark: #273843;
  --accent: #586c7b;
  --silver: #929da5;
  --silver-wash: #e8ecef;
  --silver-soft: #eef1f3;
  --silver-mid: #dce2e6;
  --line: #cbd3d8;
  --line-strong: #a1aeb8;
  --control-border: #7c8b97;
  --on-slate-muted: #dce4e9;
  --soft-shadow: 0 14px 38px #27384308;
  --shadow-raised: 0 1px 2px #2738430a, 0 16px 40px #27384314;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', 'Trebuchet MS', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 118px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 19px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(52px, 5.65vw, 80px); }
h2 { font-size: clamp(36px, 3.7vw, 51px); }
h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.035em; font-weight: 600; }
strong { font-weight: 600; }
em { font-weight: 400; color: var(--slate); }
a { color: inherit; text-underline-offset: 5px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--silver-mid); color: var(--slate-dark); }
.container { width: min(1160px, calc(100% - 104px)); margin-inline: auto; }
.icon { width: 23px; height: 23px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; background: var(--slate-dark); color: white; padding: 12px 20px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
/* Section labels are quiet sentence-case text, easier to read than small tracked capitals. */
.eyebrow { font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: var(--slate); }
.eyebrow { margin-bottom: 21px; }

/* A quiet, consistent identity and an always-visible way to call. */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(245 246 245 / .96); border-bottom: 1px solid rgb(203 211 216 / .56); transition: box-shadow .25s ease, background .25s ease; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-scrolled { background: rgb(245 246 245 / .99); box-shadow: 0 4px 24px #27384308; }
.header-inner { min-height: 99px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.header-inner nav { display: flex; align-items: center; gap: 29px; }
.header-inner nav a { position: relative; text-decoration: none; font-size: 16px; min-height: 44px; display: flex; align-items: center; }
.header-inner nav a::after { content: ''; position: absolute; left: 0; bottom: 7px; right: 0; height: 1px; background: var(--slate); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.header-inner nav a:hover::after, .header-inner nav a:focus-visible::after { transform: scaleX(1); }
.header-call { display: flex; align-items: center; gap: 11px; padding: 10px 20px; color: var(--slate); border: 1px solid var(--line-strong); border-radius: 40px; text-decoration: none; font-size: 17px; font-weight: 600; line-height: 1.3; white-space: nowrap; transition: background .2s, border-color .2s; }
.header-call:hover { background: var(--silver-wash); border-color: var(--slate); }
.call-label { display: block; font-weight: 400; font-size: 13px; margin-bottom: 3px; color: var(--muted); }

/* The portrait is treated as an editorial photograph, with a soft paper mat. */
.hero { display: grid; grid-template-columns: 1.23fr 1fr; gap: 66px; align-items: center; padding-block: 62px 62px; }
.hero .eyebrow { display: flex; gap: 10px; align-items: center; }
.hero .eyebrow .icon { width: 18px; height: 18px; color: var(--accent); }
.hero h1 { margin-bottom: 25px; }
.hero h1 em { color: var(--accent); }
.hero-intro { font-size: 21px; max-width: 485px; line-height: 1.6; }
.hero-promise { font-size: 18px; max-width: 435px; color: var(--muted); margin-top: 13px; line-height: 1.6; }
.button { min-height: 61px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 15px 23px; border-radius: 40px; text-decoration: none; font-size: 18px; line-height: 1.5; transition: background-color .2s, border-color .2s, box-shadow .2s, transform .12s ease-out; }
.button-primary { color: var(--white); background: var(--slate); border: 1px solid var(--slate); box-shadow: 0 6px 16px #27384312; }
.button-primary:hover { background: var(--slate-dark); box-shadow: 0 8px 22px #27384322; }
.hero-portrait { position: relative; width: 100%; max-width: 440px; justify-self: end; padding: 0 10px 0 6px; }
.portrait-stage { position: relative; padding: 10px; isolation: isolate; }
.portrait-stage::before { content: ''; position: absolute; z-index: -1; inset: 0; border: 1px solid var(--line-strong); border-radius: 220px 220px 22px 22px; }
.portrait-stage::after { content: ''; position: absolute; z-index: -2; inset: 31px -10px -10px 19px; background: var(--silver-mid); border-radius: 220px 220px 19px 19px; transform: rotate(4deg); }
.portrait-frame { height: 459px; overflow: hidden; border-radius: 220px 220px 14px 14px; background: var(--silver-wash); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-portrait figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 9px 0; }
.hero-portrait figcaption > span:first-child { font: italic 400 26px/1.3 var(--serif); letter-spacing: -.025em; white-space: nowrap; }
.hero-portrait figcaption > span:last-child { font-size: 11px; color: var(--muted); text-align: right; max-width: 146px; }

/* Service illustrations share one line weight and a restrained accent color. */
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 44px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { font-size: 43px; }
.section-heading h2 em { color: var(--slate); }
.section-heading > p { font-size: 17px; color: var(--muted); justify-self: end; padding-bottom: 3px; line-height: 1.75; }
.service-art { width: 103px; height: 78px; }
.service-art svg { width: 100%; height: 100%; fill: none; stroke: var(--slate); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.service-art .art-fill { fill: var(--silver-mid); }
.service-art .art-accent { stroke: var(--accent); }
.service-art .art-dot { stroke: none; fill: var(--silver); }

/* Optional detail always has a clear label and a large, native click target. */
.disclosure { border-block: 1px solid var(--line); }
.disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 18px 4px; cursor: pointer; list-style: none; color: var(--slate); font-size: 17px; font-weight: 500; line-height: 1.5; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover .disclosure-label { text-decoration: underline; text-underline-offset: 5px; }
.disclosure-chevron { display: block; position: relative; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; flex-shrink: 0; transition: background .2s; }
.disclosure-chevron::before, .disclosure-chevron::after { content: ''; position: absolute; width: 11px; height: 1px; top: 14px; left: 9px; background: var(--slate); }
.disclosure-chevron::after { transform: rotate(90deg); transition: transform .22s var(--ease); }
.disclosure[open] > summary .disclosure-chevron::after { transform: rotate(0); }
.disclosure summary:hover .disclosure-chevron { background: var(--silver-wash); }
.when-open, .disclosure[open] > summary .when-closed { display: none; }
.disclosure[open] > summary .when-open { display: inline; }
.disclosure-content { padding: 15px 4px 32px; font-size: 18px; }
.disclosure-content h3 { font-size: 22px; margin-bottom: 13px; }
.disclosure-content p { color: var(--muted); margin-bottom: 16px; }
.disclosure-content p:last-child { margin-bottom: 0; }
.disclosure-content ul { padding-left: 21px; margin-block: 18px 0; }
.disclosure-content li { padding-left: 3px; margin-bottom: 11px; }
.disclosure-content li::marker { color: var(--slate); }

/* A compact timeline gives the home visit a clear beginning, middle, and end. */

/* Trust comes from a person and concrete experience, with the complete story close by. */
.credentials { list-style: none; margin: 0; padding: 0; }
.credentials li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 19px; line-height: 1.4; }
.credentials .icon { width: 20px; height: 20px; color: var(--slate); margin-top: 3px; }
.credentials strong { display: block; font-size: 18px; font-weight: 600; }
.credentials li > span > span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.references { font-size: 14px; color: var(--muted); margin-left: 34px; }
.biography-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.tech-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; margin-top: 28px; }
.tech-gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: 11px; }
.tech-gallery figcaption { color: var(--muted); font-size: 15px; padding-top: 11px; }

/* A substantial closing invitation, with the number and email legible at a glance. */
.contact-section { padding-block: 49px 25px; }
.contact-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: 59px; align-items: center; padding: 42px 45px; border-radius: 19px; background: var(--slate-dark); color: var(--white); }
.contact-decoration { position: absolute; z-index: -1; right: -46px; top: -55px; width: 500px; height: 500px; stroke: var(--silver); stroke-width: .7; fill: none; opacity: .15; transform: rotate(10deg); pointer-events: none; }
.contact-copy .eyebrow { color: var(--on-slate-muted); margin-bottom: 14px; }
.contact-copy h2 { font-size: 41px; margin-bottom: 20px; line-height: 1.14; }
.contact-copy > p:not(.eyebrow) { font-size: 17px; color: var(--on-slate-muted); line-height: 1.65; }
.contact-methods { position: relative; }
.contact-methods a { display: flex; align-items: center; gap: 17px; padding: 22px 25px; border-radius: 10px; text-decoration: none; transition: background-color .2s; }
.contact-methods a:focus-visible { outline-color: var(--on-slate-muted); }
.contact-methods a > span > span { display: block; font-size: 14px; line-height: 1.4; margin-bottom: 5px; }
.contact-phone { background: var(--silver-soft); color: var(--slate-dark); box-shadow: 0 5px 14px #27384326; }
.contact-phone:hover { background: white; }
.contact-phone strong { font-size: 28px; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; line-height: 1.3; }
.contact-methods .contact-email { border: 1px solid var(--line-strong); margin-top: 14px; padding-block: 17px; background: rgb(39 56 67 / .53); }
.contact-email:hover { background: var(--slate-dark); }
.contact-email strong { font-size: 18px; font-weight: 400; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); }

@media (max-width: 1120px) {
  .container { width: calc(100% - 72px); }
  .header-inner { gap: 20px; }
  .header-inner nav { gap: 22px; }
  .hero { gap: 47px; grid-template-columns: 1.18fr 1fr; }
  .hero h1 { font-size: 61px; }
  .portrait-frame { height: 428px; }
  .hero-intro { font-size: 20px; }
  .hero-portrait figcaption { padding-inline: 2px; }
  .hero-portrait figcaption > span:last-child { max-width: 111px; }
  .section-heading h2 { font-size: 39px; }
  .section-heading > p { font-size: 16px; }
  .contact-card { gap: 35px; padding: 38px 35px; }
  .contact-copy h2 { font-size: 37px; }
  .contact-methods a { padding-inline: 21px; gap: 13px; }
  .contact-phone strong { font-size: 25px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 142px; }
  .header-inner { min-height: 122px; display: grid; grid-template-columns: 1fr auto; gap: 0 20px; padding-top: 12px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 42px; }
  .header-call { grid-row: 1; grid-column: 2; }
  .hero { gap: 27px; padding-block: 43px; }
  .hero h1 { font-size: 51px; }
  .hero-intro { font-size: 19px; }
  .hero-promise { font-size: 17px; }
  .portrait-frame { height: 365px; }
  .hero-portrait figcaption { display: block; }
  .hero-portrait figcaption > span:last-child { display: block; max-width: none; text-align: left; margin-top: 4px; font-size: 11px; }
  .hero-portrait figcaption > span:first-child { font-size: 24px; }
  .section-heading { gap: 12px 30px; grid-template-columns: 1.2fr 1fr; }
  .section-heading h2 { font-size: 36px; }
  .section-heading > p { font-size: 15px; }
  .service-art { width: 83px; height: 69px; }
  .credentials strong { font-size: 17px; }
  .credentials li { gap: 10px; }
  .credentials li > span > span { font-size: 13px; }
  .contact-card { grid-template-columns: 1fr 1fr; padding: 30px 27px; gap: 25px; }
  .contact-copy h2 { font-size: 33px; }
  .contact-methods a { padding-inline: 17px; gap: 10px; }
  .contact-phone strong { font-size: 23px; }
  .contact-email strong { font-size: 16px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 132px; }
  .container { width: calc(100% - 44px); }
  .header-inner { min-height: 113px; padding-top: 10px; gap: 0 13px; }
  .brand { gap: 9px; }
  .header-call { padding: 8px 12px; gap: 8px; font-size: 15px; }
  .header-call > .icon { width: 17px; height: 17px; }
  .call-label { font-size: 10px; margin-bottom: 2px; }
  .header-inner nav { justify-content: space-between; gap: 18px; }
  .header-inner nav a { font-size: 15px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 31px 39px; }
  .hero .eyebrow { margin-bottom: 19px; }
  .hero h1 { font-size: clamp(46px, 9.5vw, 65px); letter-spacing: -.055em; margin-bottom: 22px; }
  .hero-intro { font-size: 21px; max-width: none; }
  .hero-promise { font-size: 18px; max-width: none; margin-top: 12px; }
  .hero-portrait { width: 95%; max-width: 405px; justify-self: center; padding-inline: 7px; }
  .portrait-stage { padding: 8px; }
  .portrait-frame { height: 350px; }
  .portrait-stage::after { inset: 20px -6px -7px 15px; }
  .portrait-frame img { object-position: 50% 18%; }
  .hero-portrait figcaption { display: flex; padding: 21px 4px 0; }
  .hero-portrait figcaption > span:first-child { font-size: 25px; }
  .hero-portrait figcaption > span:last-child { text-align: right; max-width: 145px; margin: 0; font-size: 11px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 35px; }
  .section-heading > p { margin-top: 16px; font-size: 17px; line-height: 1.6; }
  .section-heading > p br { display: none; }
  .service-art { width: 66px; height: 56px; }
  .disclosure summary { font-size: 17px; min-height: 70px; }
  .disclosure-content { font-size: 18px; }
  .disclosure-chevron { width: 29px; height: 29px; }
  .disclosure-chevron::before, .disclosure-chevron::after { top: 13px; left: 8px; }
  .credentials li { gap: 12px; }
  .credentials strong { font-size: 18px; }
  .credentials li > span > span { font-size: 15px; }
  .references { font-size: 15px; margin-left: 32px; }
  .biography-grid { grid-template-columns: 1fr; gap: 26px; }
  .tech-gallery { grid-template-columns: 1fr; gap: 24px; }
  .tech-gallery img { height: auto; aspect-ratio: 1.5; }
  .contact-section { padding-block: 31px 19px; }
  .contact-card { grid-template-columns: 1fr; gap: 26px; padding: 30px 25px; border-radius: 15px; }
  .contact-copy h2 { font-size: 36px; }
  .contact-copy > p:not(.eyebrow) { font-size: 18px; }
  .contact-decoration { top: auto; bottom: -140px; right: -155px; width: 450px; }
  .contact-methods a { padding: 20px 16px; gap: 13px; }
  .contact-methods a > .icon { width: 20px; height: 20px; }
  .contact-methods a > span > span { font-size: 14px; }
  .contact-phone strong { font-size: 26px; }
  .contact-email strong { font-size: 16px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .header-call { padding-inline: 12px; font-size: 15px; }
  .hero h1 { font-size: 43px; }
  .portrait-frame { height: 315px; }
  .hero-portrait figcaption > span:first-child { font-size: 23px; }
  .hero-portrait figcaption > span:last-child { max-width: 109px; font-size: 10px; }
  .service-art { width: 51px; height: 49px; }
  .contact-card { padding-inline: 21px; }
  .contact-copy h2 { font-size: 33px; }
  .contact-methods a { padding-inline: 13px; gap: 10px; }
  .contact-phone strong { font-size: 23px; }
  .contact-email strong { font-size: 15px; }
}
/* Disclosures open and close smoothly where the browser can animate to their natural height. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details:not(.nav-explore)::details-content { block-size: 0; overflow-y: clip; transition: block-size 280ms var(--ease), content-visibility 280ms var(--ease) allow-discrete; }
  details:not(.nav-explore)[open]::details-content { block-size: auto; }
}

/* Moving between pages is a short cross-fade, with the header held in place. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::details-content { transition: none !important; }
  @view-transition { navigation: none; }
}
html[data-motion='reduced'] ::details-content { transition: none !important; }
@media print {
  body { background: white; color: black; font-size: 12pt; }
  .container { width: 100%; }
  .site-header { position: static; backdrop-filter: none; }
  .header-inner { display: block; min-height: 65px; }
  .site-header nav, .header-call, .disclosure-chevron, .contact-decoration { display: none; }
  .hero { padding-block: 20px; gap: 30px; }
  .hero h1 { font-size: 34pt; }
  .hero-intro { font-size: 14pt; }
  .portrait-frame { height: 270px; }
  .contact-section { background: white; padding-block: 20px; }
  .biography-grid, .contact-card { display: block; }
  .disclosure-content > div { break-inside: avoid; margin-bottom: 15px; }
  .disclosure-content { display: block !important; }
  .contact-card { background: white; color: black; border: 1px solid #aaa; padding: 20px; }
  .contact-copy > p:not(.eyebrow), .contact-copy .eyebrow, .contact-phone, .contact-email { color: black; }
  .contact-methods a { background: white !important; box-shadow: none; }
  ::details-content { block-size: auto !important; content-visibility: visible !important; }
}
