:root{
  --accent:#f98e06;
  --dark:#282015;
  --light:#f7f6f5;
  --font:'Arvo',system-ui,sans-serif;
  --radius:2px;
  --heading-transform:none;
  --heading-spacing:normal;
}
/* pipeline typographic safety */
img,svg,video,canvas{max-width:100%;height:auto;}
h1,h2,h3,h4,h5,h6,.footer-mark,.footer-wordmark,.footer-brand{text-wrap:balance;overflow-wrap:break-word;}
p,li,blockquote,figcaption,dd,dt{text-wrap:pretty;}
body{overflow-wrap:break-word;}
a,cite,code,.label{overflow-wrap:anywhere;}
main :where(section,article,div,ul,ol,li){min-width:0;}
/* Classic Professional — a dignified, trust-first serif system for insurance,
   funeral homes, established medical/dental, finance, notaries and family law.
   Palette, font and corner radius are injected as CSS custom properties at
   render time (:root block prepended above). Everything here is static and
   palette-agnostic. Character comes from a confident serif display scale, a
   letter-spaced small-caps label role, hairline rules doing the structural
   work (no flashy cards, no big numerals), a centered light hero, a signature
   reviews moment, and one deliberate dark bookend. Restraint is the point. */

:root {
  --hairline: color-mix(in srgb, var(--dark) 16%, transparent);
  --hairline-soft: color-mix(in srgb, var(--dark) 10%, transparent);
  --hairline-strong: color-mix(in srgb, var(--dark) 30%, transparent);
  --tint: color-mix(in srgb, var(--dark) 3.5%, var(--light));
  --tint-2: color-mix(in srgb, var(--dark) 6%, var(--light));
  --ink-soft: color-mix(in srgb, var(--dark) 60%, var(--light));
  --ink-mute: color-mix(in srgb, var(--dark) 44%, var(--light));
  --on-dark: color-mix(in srgb, var(--light) 74%, var(--dark));
  --on-dark-soft: color-mix(in srgb, var(--light) 52%, var(--dark));
  --accent-ink: color-mix(in srgb, var(--accent) 62%, var(--dark));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Whisper-soft paper grain — texture through restraint, never a flat surface. */
body::after { content: ""; position: fixed; inset: 0; background-image: var(--grain); opacity: .02; mix-blend-mode: multiply; pointer-events: none; z-index: 9999; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 44px); }

/* ── Type ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, .wordmark, .footer-mark {
  font-weight: 600;
  line-height: 1.14;
  text-transform: var(--heading-transform);
  letter-spacing: var(--heading-spacing);
  margin: 0;
}

/* Label role — letter-spaced small-caps in the serif, everywhere micro-text
   appears. This is the consistent characterful treatment (never a pill). */
.eyebrow, .nav-links a, .trust-ticker, .stat-label, .review-cite,
.about-badge, .footer-col h4, .footer-legal, .team-role {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 600;
  font-feature-settings: "smcp" 1;
}

.section-head { text-align: center; margin-bottom: clamp(38px, 5vw, 60px); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.14; }
/* A quiet centered fleuron rule above every section title — classic ornament. */
.section-head::before {
  content: ""; display: block; width: 38px; height: 2px; margin: 0 auto 22px;
  background: var(--accent);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-lg { min-height: 56px; padding: 16px 38px; font-size: 1.02rem; }
.btn-accent { background: var(--accent); color: var(--light); border-color: var(--accent); }
.btn-accent:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 86%, black); }
.btn-ghost { background: transparent; color: currentColor; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.btn-ghost:hover { transform: translateY(-2px); border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Header / nav (a restrained masthead) ─────────────────────────── */
.site-header {
  position: sticky;
  top: 42px; /* the publisher pins a 42px banner above the page */
  z-index: 900;
  background: color-mix(in srgb, var(--light) 88%, transparent);
  backdrop-filter: saturate(130%) blur(8px);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.wordmark { font-size: 1.28rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; color: var(--dark); }
.nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; text-decoration: none; font-size: .74rem; padding: 6px 0; transition: color 160ms ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 260ms cubic-bezier(.2,.7,.2,1); }
.nav-links a:hover { color: var(--accent-ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta-li a { color: var(--light); letter-spacing: .01em; text-transform: none; font-size: .9rem; }
.nav-cta-li a::after { display: none; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--dark); transition: transform 200ms ease, opacity 200ms ease; }

section { scroll-margin-top: 130px; } /* banner + sticky header */

/* ── Hero (conservative, centered, light — an oversized serif statement) ── */
.hero {
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--light);
  text-align: center;
  padding: clamp(72px, 10vw, 128px) 0 clamp(60px, 8vw, 96px);
  border-bottom: 1px solid var(--hairline-soft);
}
.hero-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: .74rem; color: var(--accent); margin-bottom: 26px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: clamp(24px, 6vw, 58px); height: 1px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.05rem); line-height: 1.06; max-width: 16ch; }
.hero-subline { font-size: clamp(1.05rem, 1.7vw, 1.24rem); max-width: 52ch; margin: 24px 0 0; color: var(--ink-soft); line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
/* Framed photograph beneath the copy — a matted, dignified plate, never split. */
.hero-media {
  margin: clamp(52px, 7vw, 76px) 0 0; width: 100%; max-width: 660px;
  padding: 12px; background: var(--light);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: 0 30px 60px -44px color-mix(in srgb, var(--dark) 80%, transparent);
}
.hero-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--hairline-soft);
}

/* ── Trust (a quiet credential band — visually distinct from the proof) ── */
.trust {
  padding: clamp(24px, 3vw, 34px) 0;
  background: var(--tint);
  border-bottom: 1px solid var(--hairline);
}
.trust-ticker {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  margin: 0; font-size: .76rem; color: var(--ink-soft);
}
.trust-ticker span { position: relative; padding: 4px 26px; }
.trust-ticker span:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 13px; background: var(--hairline-strong); transform: translateY(-50%); }
.trust-stats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 52px; text-align: center; }
.trust-stat { position: relative; font-size: clamp(1.02rem, 1.8vw, 1.28rem); font-weight: 600; padding: 0 6px; }
.trust-proof { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-style: italic; font-weight: 500; text-align: center; max-width: 44ch; line-height: 1.4; margin: 0 auto; color: var(--accent-ink); }
.trust-checklist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
}
.trust-checklist li { position: relative; padding-left: 26px; font-weight: 600; font-size: .9rem; }
.trust-checklist li::before { content: ""; position: absolute; left: 0; top: .34em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ── Services (an orderly list, hairline dividers, no cards, no numerals) ── */
.services { padding: clamp(72px, 10vw, 120px) 0; background: var(--light); }
.service-list { list-style: none; margin: 0 auto; padding: 0; max-width: 940px; border-top: 1px solid var(--hairline); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr);
  column-gap: clamp(24px, 5vw, 72px); align-items: baseline;
  padding: clamp(24px, 3.2vw, 38px) 0;
  border-bottom: 1px solid var(--hairline);
  transition: color 220ms ease;
}
.service-name { font-size: clamp(1.22rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.2; }
.service-desc { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; max-width: 52ch; }
.service-row:hover .service-name { color: var(--accent-ink); }

/* ── Team (dignified matte-framed partner cards, matching the hero plate) ── */
.team { padding: clamp(72px, 10vw, 116px) 0; background: var(--tint); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(34px, 5vw, 68px); max-width: 880px; margin: 0 auto; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Matted portrait plate — the same framing language as .hero-media / .photo-frame. */
.team-frame { margin: 0 0 26px; width: 100%; max-width: 300px; padding: 11px; background: var(--light); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: 0 24px 46px -40px color-mix(in srgb, var(--dark) 80%, transparent); }
.team-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--hairline-soft); }
/* Fallback when no clean headshot lands — an engraved serif nameplate, not a raw box. */
.team-plate { margin: 0 0 26px; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--tint-2); border: 1px solid var(--hairline); border-radius: var(--radius); }
.team-plate span { font-family: var(--font); font-size: clamp(3.4rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: .04em; line-height: 1; color: var(--accent-ink); }
.team-name { font-size: clamp(1.3rem, 2.1vw, 1.62rem); font-weight: 600; line-height: 1.18; }
.team-role { margin: 9px 0 0; font-size: .72rem; color: var(--accent-ink); }
.team-bio { margin: 18px 0 0; max-width: 40ch; color: var(--ink-soft); font-size: 1rem; line-height: 1.66; }

/* ── Steps (a restrained numbered flow — a brass tick and numeral per step) ── */
.steps { padding: clamp(72px, 10vw, 116px) 0; background: var(--light); }
.steps-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(28px, 3.4vw, 52px); }
.step { padding-top: 22px; border-top: 2px solid var(--accent); }
.step-index { display: block; font-size: clamp(1.16rem, 1.9vw, 1.42rem); font-weight: 600; line-height: 1; letter-spacing: .02em; color: var(--accent-ink); margin-bottom: 15px; }
.step-title { font-size: clamp(1.12rem, 1.7vw, 1.34rem); font-weight: 600; line-height: 1.24; }
.step-body { margin: 12px 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; max-width: 34ch; }

/* ── Proof (signature moment — reviews carry the emotional weight) ─── */
.proof { padding: clamp(64px, 9vw, 108px) 0; background: var(--tint-2); }
.proof--reviews { background: var(--dark); color: var(--light); }
.section-head--light .section-title { color: inherit; }
.proof--reviews .section-head::before { background: var(--accent); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; max-width: 960px; margin: 0 auto; border-top: 1px solid var(--hairline-strong); }
.stat { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: clamp(26px, 3.4vw, 40px) 20px; border-right: 1px solid var(--hairline); }
.stat:last-child { border-right: none; }
.stat-value { font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 600; line-height: 1; color: var(--accent-ink); }
.stat-label { font-size: .72rem; color: var(--ink-mute); }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(36px, 5vw, 64px); max-width: 1000px; margin: 0 auto; }
.review { position: relative; margin: 0; padding-top: 44px; }
/* An odd review count leaves the last card alone in a 2-column row; center it instead of an empty gap. */
.review-grid .review:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 468px; margin-left: auto; margin-right: auto; }
/* An oversized serif quotation mark — the bespoke, editorial signature. */
.review::before {
  content: "\201C"; position: absolute; top: -.18em; left: -.02em;
  font-size: 4.6rem; line-height: 1; font-weight: 600; font-style: italic;
  color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.review-quote { margin: 0 0 22px; font-size: clamp(1.16rem, 1.7vw, 1.42rem); font-style: italic; line-height: 1.5; }
.proof--reviews .review-quote { color: color-mix(in srgb, var(--light) 92%, var(--dark)); }
.review-cite { display: block; position: relative; padding-top: 16px; font-size: .74rem; color: var(--on-dark); }
.review-cite::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 1px; background: var(--accent); }
.proof:not(.proof--reviews) .review::before { color: color-mix(in srgb, var(--accent) 55%, transparent); }
.proof:not(.proof--reviews) .review-cite { color: var(--ink-mute); }

/* Framed photographs — matted plates, consistent with the hero frame. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.4vw, 26px); max-width: 1040px; margin: 0 auto; }
.photo-frame { margin: 0; padding: 10px; background: var(--light); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: 0 22px 44px -40px color-mix(in srgb, var(--dark) 80%, transparent); }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 3px); border: 1px solid var(--hairline-soft); }

/* ── About (centered, restrained) ─────────────────────────────────── */
.about { padding: clamp(66px, 9vw, 112px) 0; background: var(--light); text-align: center; }
.about-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.about .section-head { margin-bottom: clamp(26px, 3.5vw, 38px); }
.about-body { margin: 0; font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }
/* A refined credential line — small-caps with a leading tick, not a pill. */
.about-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px; font-size: .74rem; color: var(--accent-ink);
}
.about-badge::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

/* ── Final CTA (the deliberate dark bookend) ──────────────────────── */
.final-cta {
  background: var(--dark); color: var(--light);
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center; position: relative; overflow: hidden;
  border-top: 2px solid var(--accent);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 120% at 50% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.final-inner { position: relative; z-index: 1; }
.final-title { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 22ch; margin: 0 auto; line-height: 1.12; }
.final-sentence { font-size: 1.12rem; max-width: 48ch; margin: 20px auto 0; color: var(--on-dark); line-height: 1.6; }
.final-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.final-cta .btn-ghost { color: var(--light); border-color: color-mix(in srgb, var(--light) 34%, transparent); }
.final-cta .btn-ghost:hover { border-color: var(--light); background: color-mix(in srgb, var(--light) 10%, transparent); }

/* ── Footer (a tasteful big-type serif wordmark bookends the hero) ── */
.site-footer { background: color-mix(in srgb, var(--dark) 94%, black); color: var(--light); padding: clamp(58px, 8vw, 88px) 0 30px; overflow: hidden; }
.footer-mark { font-size: clamp(2.3rem, 8vw, 5rem); font-weight: 500; line-height: .96; letter-spacing: -.01em; color: color-mix(in srgb, var(--light) 92%, var(--dark)); }
.footer-tagline { margin: 20px 0 clamp(38px, 5vw, 58px); max-width: 42ch; color: var(--on-dark); font-size: 1rem; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: clamp(30px, 4vw, 46px); border-top: 1px solid color-mix(in srgb, var(--light) 16%, transparent); }
.footer-col h4 { font-size: .72rem; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--on-dark); font-size: .95rem; transition: color 180ms ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col li { color: var(--on-dark); font-size: .95rem; }
.footer-legal { margin-top: clamp(34px, 4vw, 50px); font-size: .72rem; color: var(--on-dark-soft); }

/* ── Scroll reveal (hidden state added by JS, never at rest) ───────── */
.reveal-init { opacity: 0; transform: translateY(16px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }

/* ── Orchestrated hero load (polish only; complete without JS) ─────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > *:nth-child(1) { animation-delay: .05s; }
  .hero-inner > *:nth-child(2) { animation-delay: .14s; }
  .hero-inner > *:nth-child(3) { animation-delay: .23s; }
  .hero-inner > *:nth-child(4) { animation-delay: .32s; }
  .hero-inner > *:nth-child(5) { animation-delay: .42s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; row-gap: 10px; }
  .service-desc { max-width: none; }
  .stat { border-right: none; border-bottom: 1px solid var(--hairline); }
  .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--light);
    border-bottom: 1px solid var(--hairline);
    padding: 8px clamp(22px, 4vw, 44px) 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 6px 0; }
  .nav-links a { display: block; padding: 11px 0; min-height: 44px; }
  .nav-links a::after { display: none; }
  .nav-cta-li a { display: inline-flex; margin-top: 10px; }
  .header-inner { position: relative; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn, .final-buttons .btn { width: 100%; }
  .trust-ticker span { padding: 4px 14px; }
  .trust-stats { gap: 12px 30px; }
}
