/* ============================================================
   AMBER MILLER, LPC, design-direction prototype
   Aesthetic: literary-quarterly / small-press field guide
   Single-font system (Newsreader + DM Mono accent)
   No pastel. No blob. No meditation-app softness.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;0,6..72,800;1,6..72,300;1,6..72,400;1,6..72,500;1,6..72,600&family=DM+Mono:wght@400;500&display=swap');

:root {
    /* Surfaces, ink, accent */
    --paper:       #F4EFE6;   /* warm ivory body */
    --paper-deep:  #EAE2D2;   /* slightly deeper for cards/panels */
    --paper-edge:  #DDD3BD;   /* hairline rule */
    --ink:         #1B1815;   /* warm near-black */
    --ink-soft:    #5C544A;   /* secondary text */
    --ink-faint:   #948975;   /* tertiary, dates, marginalia */
    --umber:       #6E3B1A;   /* primary accent, deep warm earth */
    --umber-mid:   #8E5D38;
    --umber-soft:  #C09373;
    --brick:       #A33415;   /* action color, warm + confident */
    --brick-deep:  #862810;
    --rule:        #2A2520;   /* hand-drawn lines */

    /* Spacing, rhythm */
    --gutter:      clamp(20px, 4vw, 56px);
    --column:      72rem;
    --column-prose: 38rem;
    --rad:         3px;        /* almost no rounded corners; this is paper, not glass */
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Newsreader', Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    /* Full OpenType feature set: discretionary + standard ligatures, kerning,
       contextual alternates, and old-style proportional numerals so $125 and
       2026 read like type, not table data. */
    font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1, 'calt' 1, 'onum' 1, 'pnum' 1;
    font-optical-sizing: auto;
    hanging-punctuation: first last;
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
    background-repeat: repeat;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography scale ───────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.012em;
    /* text-wrap: balance gives the browser permission to redistribute words
       across lines so display heads don't end with a lonely orphan. */
    text-wrap: balance;
}

h1 {
    /* Newsreader's variable opsz makes large sizes feel cast, not rendered */
    font-size: clamp(40px, 5.6vw, 80px);
    font-weight: 500;
    font-variation-settings: 'opsz' 80;
    line-height: 1.02;
    letter-spacing: -0.024em;
}

h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 500;
    font-variation-settings: 'opsz' 36;
    line-height: 1.1;
    letter-spacing: -0.016em;
}

h3 {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    font-variation-settings: 'opsz' 24;
    line-height: 1.22;
    letter-spacing: -0.008em;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.005em;
}

p {
    margin: 0 0 1em;
    color: var(--ink);
}

p.lede {
    font-size: clamp(19px, 1.4vw, 22px);
    line-height: 1.5;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 1.4em;
    max-width: 36em;
    letter-spacing: -0.003em;
}

p.subtle {
    color: var(--ink-soft);
}

/* Inline links: a hairline rule under the text that thickens on hover.
   The transition is on text-decoration so it stays attached to the word
   instead of becoming a separate underline element. */
a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--umber-mid);
    text-underline-offset: 0.22em;
    transition: text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease, color 0.2s ease;
}

a:hover {
    color: var(--brick-deep);
    text-decoration-color: var(--brick);
    text-decoration-thickness: 2px;
}

em, .italic {
    font-style: italic;
}

strong {
    font-weight: 600;
}

::selection {
    background: var(--umber);
    color: var(--paper);
}

/* Mono accent for technical bits */
.mono {
    font-family: 'DM Mono', ui-monospace, Menlo, monospace;
    font-size: 0.78em;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

/* ── Layout chassis ─────────────────────────────────────────── */

.wrap {
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.wrap--prose {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.flow > * + * {
    margin-top: 1em;
}

/* ── Section header (eyebrow + h2 with hand-drawn rule) ─────── */

.sec-head {
    margin-bottom: 2em;
    max-width: 48rem;
}

.eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--umber);
    margin: 0 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* Tabular numerals so chapter-style "i." "ii." "iii." sit straight. */
    font-variant-numeric: tabular-nums;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--umber);
    transition: width 0.4s ease;
}

.sec-head:hover .eyebrow::before {
    width: 44px;
}

.sec-rule {
    width: 100%;
    height: 12px;
    margin: 6px 0 22px;
}

/* ── Hand-drawn rule SVG inline-icon helper ─────────────────── */

.rule-drawn {
    display: block;
    width: 100%;
    height: 8px;
    margin: 28px 0;
    color: var(--rule);
    opacity: 0.7;
}

/* ── Colophon mark (the distinctive Amber Miller publisher's-mark) ── */

.mark {
    display: inline-block;
    text-align: center;
    color: var(--umber);
    flex-shrink: 0;
}

.mark__box {
    border: 1.4px solid currentColor;
    padding: 7px 11px 6px;
    line-height: 1;
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 600;
    font-variation-settings: 'opsz' 18;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.mark__sub {
    margin-top: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--ink-faint);
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.mark--lg .mark__box {
    font-size: 30px;
    padding: 12px 18px 10px;
    border-width: 1.6px;
    letter-spacing: 0.08em;
}

.mark--lg .mark__sub {
    font-size: 10px;
    margin-top: 10px;
    letter-spacing: 0.26em;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 22px 14px;
    border-radius: var(--rad);
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    /* The button is the only place on the page that should look like
       something you press, so it gets a hairline-shadow signal. */
    box-shadow: 0 1px 0 rgba(27, 24, 21, 0.06);
}

.btn--primary {
    background: var(--brick);
    color: var(--paper);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 1px 1px rgba(27, 24, 21, 0.14),
      0 8px 16px -8px rgba(163, 52, 21, 0.42);
}

.btn--primary:hover {
    background: var(--brick-deep);
    transform: translateY(-1px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 2px 2px rgba(27, 24, 21, 0.16),
      0 12px 22px -8px rgba(163, 52, 21, 0.48);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: none;
}

.btn--ghost:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(27, 24, 21, 0.32);
}

.btn .btn__arrow {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95em;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* Focus visibility for keyboard users; goes around all button types. */
.btn:focus-visible {
    outline: 2px solid var(--umber);
    outline-offset: 3px;
}

/* ── Header (persistent) ────────────────────────────────────── */

.head {
    border-bottom: 1px solid var(--paper-edge);
    background: rgba(244, 239, 230, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    position: sticky;
    top: 0;
    z-index: 60;
}

.head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--gutter);
    max-width: var(--column);
    margin: 0 auto;
    gap: 24px;
}

.head__name {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
    min-width: 0;
}

.head__name .mark {
    transform: translateY(-1px);
    flex-shrink: 0;
}

.head__wordmark-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.head__wordmark {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 17px;
    font-variation-settings: 'opsz' 18;
    letter-spacing: -0.005em;
    line-height: 1.2;
    color: var(--ink);
    white-space: nowrap;
}

.head__wordmark__sub {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 3px;
    white-space: nowrap;
    /* The tagline can disappear at narrow mid-widths to keep the nav balanced. */
}

@media (max-width: 1080px) {
    .head__wordmark__sub {
        display: none;
    }
}

.head__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

/* Base nav-link styling. Excludes .head__cta because that lives as a
   .btn .btn--primary and must inherit the full button treatment
   unmolested (color, padding, font-size, shadow). */
.head__nav > a:not(.head__cta) {
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.005em;
    position: relative;
    transition: color 0.2s ease;
    padding: 6px 0;
    white-space: nowrap;
}

.head__nav > a:not(.head__cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--umber);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.head__nav > a:not(.head__cta):hover {
    color: var(--umber);
}

.head__nav > a:not(.head__cta):hover::after {
    transform: scaleX(1);
}

/* Active-page indicator: NavLink adds the "active" class on the current
   route. The underline stays pinned (no transform) so the user always
   knows where they are. */
.head__nav > a.active:not(.head__cta) {
    color: var(--umber);
}

.head__nav > a.active:not(.head__cta)::after {
    transform: scaleX(1);
}

/* Header CTA: just .btn .btn--primary with a left margin. No custom
   styling, no overrides; inherits the same look as the hero primary
   button so they read as a matched pair. */
.head__cta {
    margin-left: 12px;
}

/* When on /contact/, soften to ink so the button still reads as a button
   but isn't shouting "go here" while you're already here. */
.head__cta.active {
    background: var(--ink);
    border-color: var(--ink);
}

.head__cta.active:hover {
    background: var(--ink);
    transform: none;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
    padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 13vw, 160px);
    position: relative;
}

.hero .wrap {
    max-width: 76rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.hero__pre {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.hero__pre .mono {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.hero__pre__bar {
    height: 1.5px;
    width: 44px;
    background: var(--umber);
}

.hero h1 {
    margin-bottom: 26px;
}

.hero h1 .accent {
    color: var(--umber);
    font-style: italic;
    font-variation-settings: 'opsz' 80;
    font-weight: 500;
    letter-spacing: -0.022em;
}

.hero__lede {
    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.5;
    max-width: 32rem;
    color: var(--ink-soft);
    margin: 0 0 38px;
    letter-spacing: -0.003em;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.hero__legal {
    font-size: 13px;
    color: var(--ink-faint);
    margin: 0;
    font-style: italic;
}

/* Hero right column: portrait + facts card */

.hero__col-2 {
    position: relative;
}

.hero__portrait {
    position: relative;
    border: 1px solid var(--paper-edge);
    padding: 16px 16px 18px;
    background: var(--paper-deep);
    /* A subtle, multi-layered shadow that suggests a framed print sitting on
       the page surface. Two shadows: one tight + dark for definition, one
       wider + warm for depth. */
    box-shadow:
      0 1px 1px rgba(27, 24, 21, 0.06),
      0 18px 36px -22px rgba(110, 59, 26, 0.28),
      0 2px 8px -2px rgba(27, 24, 21, 0.04);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__portrait::before {
    /* A thin internal hairline that reads like a museum mat. */
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--paper-edge);
    pointer-events: none;
    z-index: 1;
}

.hero__portrait__img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background-color: var(--umber-soft);
    filter: saturate(0.95) contrast(1.03);
    z-index: 0;
}

.hero__portrait__caption {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--paper-edge);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

.hero__portrait__caption .mark {
    transform: scale(0.8);
    transform-origin: right center;
}

.hero__facts {
    margin-top: 32px;
    padding: 26px 28px 28px;
    border: 1px solid var(--paper-edge);
    background: var(--paper);
    box-shadow: 0 1px 1px rgba(27, 24, 21, 0.04);
}

.hero__facts__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--paper-edge);
}

.hero__facts__head__label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--umber);
}

.hero__facts__head__num {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: var(--ink-faint);
    font-variation-settings: 'opsz' 14;
}

.hero__facts__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__facts__list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 12px 0;
    align-items: baseline;
    border-bottom: 1px dotted var(--paper-edge);
}

.hero__facts__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero__facts__list li .k {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

.hero__facts__list li .v {
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
}

.hero__facts__list li .v em {
    color: var(--umber);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 18;
}

/* Marginal note in hero: top-right of the page like a publisher's epigraph */
.hero__margin {
    position: absolute;
    top: clamp(28px, 4vw, 56px);
    right: var(--gutter);
    max-width: 17rem;
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-faint);
    text-align: right;
    letter-spacing: -0.003em;
    /* A short vertical rule at the right margin reinforces "marginalia". */
    padding-right: 12px;
    border-right: 1px solid var(--umber-soft);
}

@media (max-width: 880px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
    .hero__margin {
        display: none;
    }
}

/* ── Section: a "letter" of who she works with ──────────────── */

.section {
    padding: clamp(80px, 10vw, 140px) 0;
    border-top: 1px solid var(--paper-edge);
    position: relative;
}

/* Section seam ornament: a small outlined umber diamond centered on the
   section's top edge, with a paper-colored background ring that breaks
   the rule line cleanly on both sides. The diamond is a CSS-drawn square
   rotated 45 degrees; no SVG, no extra request, perfectly crisp at any
   pixel density. */
.section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 14px;
    height: 14px;
    background: var(--paper);
    border: 1.4px solid var(--umber);
    transform: translateX(-50%) rotate(45deg);
    /* The outer box-shadow paints a paper-colored halo around the diamond,
       erasing the section's top border-line where the diamond crosses it. */
    box-shadow: 0 0 0 5px var(--paper);
    z-index: 2;
}

.section--inverse::before {
    background: var(--ink);
    border-color: var(--umber-soft);
    box-shadow: 0 0 0 5px var(--ink);
}

.section--inverse {
    background: var(--ink);
    color: var(--paper);
    /* A second-layer noise + radial highlight inside the dark band so it
       reads as inked paper, not flat black. Two pseudo-elements: a noise
       overlay and a soft radial gradient from the upper center. */
    position: relative;
    overflow: hidden;
}

.section--inverse::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(244, 239, 230, 0.06) 0%, transparent 65%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='11'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 0;
}

.section--inverse > * {
    position: relative;
    z-index: 1;
}

.section--inverse h1,
.section--inverse h2,
.section--inverse h3 {
    color: var(--paper);
}

.section--inverse .eyebrow {
    color: var(--umber-soft);
}

.section--inverse .eyebrow::before {
    background: var(--umber-soft);
}

.section--inverse a {
    color: var(--paper);
    text-decoration-color: var(--umber-soft);
}

.section--inverse a:hover {
    text-decoration-color: var(--umber-soft);
    color: var(--paper);
}

.section--inverse .mono {
    color: var(--umber-soft);
}

/* Buttons inside the inverse band get adjusted treatment. */
.section--inverse .btn--ghost {
    border-color: var(--umber-soft);
    color: var(--paper);
}

.section--inverse .btn--ghost:hover {
    background: var(--umber-soft);
    color: var(--ink);
    border-color: var(--umber-soft);
}

/* ── Specialty grid (NOT a card grid, typeset like a bibliography) ── */

.specialties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0 64px;
    margin-top: 44px;
    /* A faint top rule across the whole bibliography so the items read as a
       single typeset block, not unrelated cards. */
    border-top: 1px solid var(--rule);
}

.specialty {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    padding: 20px 12px 20px 0;
    border-bottom: 1px solid var(--paper-edge);
    text-decoration: none;
    color: var(--ink);
    transition: color 0.25s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
    align-items: baseline;
}

/* Hover state pulls the row gently to the right and tints the background,
   the same way a finger sliding down a printed table-of-contents would
   highlight the entry. */
.specialty:hover {
    color: var(--umber);
    padding-left: 8px;
    background: linear-gradient(to right, var(--paper-deep), transparent 70%);
}

.specialty:hover .specialty__arrow {
    transform: translateX(6px);
    color: var(--brick);
}

.specialty:hover .specialty__num {
    color: var(--brick);
}

.specialty__num {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 17px;
    color: var(--umber);
    font-variation-settings: 'opsz' 16;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
    text-align: right;
    padding-right: 4px;
}

.specialty__body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.specialty__title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    font-variation-settings: 'opsz' 22;
    letter-spacing: -0.008em;
    display: block;
}

.specialty__sub {
    font-size: 13px;
    color: var(--ink-faint);
    margin-top: 4px;
    line-height: 1.5;
    display: block;
}

.specialty__arrow {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 19px;
    color: var(--ink-faint);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Approach: numbered like footnotes ──────────────────────── */

.approach {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid var(--rule);
}

.approach__item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 32px 0 36px;
    border-bottom: 1px solid var(--paper-edge);
    transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.approach__item:hover {
    padding-left: 8px;
}

.approach__num {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 40px;
    font-weight: 400;
    color: var(--umber);
    font-variation-settings: 'opsz' 36;
    line-height: 1;
    padding-top: 6px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.approach__title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    font-variation-settings: 'opsz' 22;
    margin-bottom: 10px;
    color: var(--ink);
    letter-spacing: -0.008em;
}

.approach__body {
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 36rem;
    font-size: 16px;
}

/* ── Insurance band ─────────────────────────────────────────── */

.insurers {
    margin-top: 44px;
    border: 1px solid var(--paper-edge);
    padding: 32px clamp(24px, 3vw, 40px);
    background: var(--paper);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 44px;
    box-shadow: 0 1px 1px rgba(27, 24, 21, 0.04);
}

.insurers__head {
    border-right: 1px solid var(--paper-edge);
    padding-right: 34px;
}

.insurers__head h3 {
    margin-bottom: 10px;
    font-size: 22px;
    letter-spacing: -0.008em;
}

.insurers__head p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
    font-style: italic;
}

.insurers__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.insurer {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 13px 7px;
    border: 1px solid var(--paper-edge);
    color: var(--ink-soft);
    background: var(--paper);
    border-radius: var(--rad);
    transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.insurer:hover {
    border-color: var(--umber-soft);
    color: var(--umber);
    background: var(--paper);
}

@media (max-width: 760px) {
    .insurers {
        grid-template-columns: 1fr;
    }
    .insurers__head {
        border-right: none;
        border-bottom: 1px solid var(--paper-edge);
        padding-right: 0;
        padding-bottom: 24px;
    }
}

/* ── Final CTA ──────────────────────────────────────────────── */

.cta {
    text-align: center;
    padding: clamp(90px, 12vw, 150px) 0 clamp(80px, 11vw, 140px);
}

.cta__inner {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.cta__mark {
    display: inline-block;
    margin-bottom: 32px;
    /* A whisper of glow around the colophon in the inverse band, so the
       mark reads as the silver-stamped publisher's mark on a dark cover. */
    filter: drop-shadow(0 0 12px rgba(192, 147, 115, 0.18));
}

.cta h2 {
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    line-height: 1.1;
}

.cta p {
    color: var(--ink-soft);
    font-size: 17px;
    margin-bottom: 34px;
    line-height: 1.55;
}

.section--inverse .cta p {
    color: var(--umber-soft);
}

.cta__row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────── */

.foot {
    border-top: 1px solid var(--rule);
    padding: 72px 0 40px;
    background: var(--paper-deep);
    position: relative;
}

/* Echo of the section ornament at the seam with the footer, so it reads
   as a deliberate threshold rather than an underline. Matched dimensions
   to .section::before so the rhythm carries through. */
.foot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 14px;
    height: 14px;
    background: var(--paper-deep);
    border: 1.4px solid var(--umber);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 5px var(--paper-deep);
}

.foot__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
}

.foot__mark {
    margin-bottom: 18px;
}

.foot__addr {
    font-style: italic;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
    max-width: 18rem;
    margin-top: 0;
}

.foot__col h4 {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--umber);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--paper-edge);
    font-weight: 500;
}

.foot__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foot__col li {
    margin-bottom: 10px;
}

.foot__col a {
    font-size: 14px;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.22s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.foot__col a:hover {
    color: var(--umber);
    padding-left: 4px;
}

.foot__legal {
    margin-top: 52px;
    padding-top: 26px;
    border-top: 1px solid var(--paper-edge);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 880px) {
    .foot__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .foot__inner {
        grid-template-columns: 1fr;
    }
}

/* ── SERVICE DETAIL page-specific (literary single-column with margin notes) ── */

.svc-head {
    padding: clamp(80px, 11vw, 140px) 0 clamp(48px, 7vw, 88px);
}

.svc-head__crumb {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 26px;
    font-variant-numeric: tabular-nums;
}

.svc-head__crumb a {
    text-decoration: none;
    color: var(--umber);
    transition: color 0.2s ease;
}

.svc-head__crumb a:hover {
    color: var(--brick);
}

.svc-head h1 {
    max-width: 22ch;
    margin-bottom: 28px;
    letter-spacing: -0.024em;
}

.svc-head__lede {
    max-width: 36rem;
    font-size: clamp(20px, 1.6vw, 23px);
    line-height: 1.5;
    color: var(--ink-soft);
    letter-spacing: -0.003em;
}

/* the literary-column reading area */

.svc-body {
    padding: 0 0 clamp(80px, 10vw, 140px);
}

.svc-body__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 16rem);
    gap: clamp(40px, 6vw, 80px);
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.svc-prose {
    max-width: 36rem;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
    font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1, 'calt' 1, 'onum' 1;
}

/* Genuine drop cap on the first paragraph of every prose article.
   The ::first-letter selector + initial-letter rule does this without
   markup. Browsers without initial-letter fall back to the float. */
.svc-prose > p:first-of-type::first-letter {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-variation-settings: 'opsz' 72;
    color: var(--umber);
    -webkit-initial-letter: 3;
    initial-letter: 3;
    float: left;
    font-size: 4.4em;
    line-height: 0.86;
    padding: 0.06em 0.12em 0 0;
    margin: 0.04em 0 0 0;
}

/* Legacy .drop class kept for opt-out cases or pages that want an
   explicit drop without the auto-first-paragraph behavior. */
.svc-prose .drop {
    float: left;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 72px;
    font-weight: 500;
    font-variation-settings: 'opsz' 72;
    color: var(--umber);
    line-height: 0.86;
    padding: 8px 12px 0 0;
    font-style: normal;
}

.svc-prose h2 {
    margin-top: 64px;
    margin-bottom: 22px;
    font-size: 30px;
    font-weight: 600;
    font-variation-settings: 'opsz' 30;
    letter-spacing: -0.012em;
    /* A short umber rule above each h2 so the prose has visible rhythm
       even at low scroll velocities, the way a printed book leads the eye. */
    position: relative;
}

.svc-prose h2::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 0;
    width: 32px;
    height: 1.5px;
    background: var(--umber);
}

.svc-prose h3 {
    margin-top: 40px;
    margin-bottom: 14px;
    font-size: 22px;
    letter-spacing: -0.008em;
}

.svc-prose p {
    margin-bottom: 1.1em;
}

.svc-prose ul {
    padding-left: 4px;
    margin: 0 0 1.6em;
    list-style: none;
}

.svc-prose ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.svc-prose ul li::before {
    /* Small filled umber square as deliberate typographic mark. */
    content: "";
    position: absolute;
    left: 4px;
    top: 0.7em;
    width: 7px;
    height: 7px;
    background: var(--umber);
    transform: rotate(45deg);
}

/* Blockquote: pulled left into the margin with a heavier umber rule,
   hanging punctuation handled by the global body rule. The optical mass
   of the quote should feel like the page editor pulled a line for
   emphasis, not like a UI component. */
.svc-prose blockquote {
    margin: 48px 0 48px -28px;
    padding: 4px 0 4px 28px;
    border-left: 3px solid var(--umber);
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: clamp(20px, 1.8vw, 24px);
    font-variation-settings: 'opsz' 24;
    line-height: 1.42;
    color: var(--ink);
    letter-spacing: -0.005em;
    quotes: "\201C" "\201D" "\2018" "\2019";
}

.svc-prose blockquote::before {
    content: open-quote;
    font-style: italic;
    color: var(--umber);
    font-size: 1.4em;
    line-height: 0;
    position: relative;
    top: 0.18em;
    margin-right: 0.04em;
    vertical-align: baseline;
}

.svc-prose blockquote::after {
    content: close-quote;
    font-style: italic;
    color: var(--umber);
    font-size: 1.4em;
    line-height: 0;
    position: relative;
    top: 0.18em;
    margin-left: 0.04em;
}

/* Sidebar: marginalia (what to expect, fee, insurance, contact card) */

.svc-side {
    position: sticky;
    top: 96px;
    align-self: start;
}

.svc-side__card {
    border: 1px solid var(--paper-edge);
    background: var(--paper-deep);
    padding: 26px 26px 24px;
    margin-bottom: 20px;
    /* The cards are static-paper-like, not glass. A single hairline shadow
       gives them just enough lift to feel like paper sitting on paper. */
    box-shadow: 0 1px 1px rgba(27, 24, 21, 0.04);
}

.svc-side__card h4 {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--umber);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--paper-edge);
    font-weight: 500;
}

.svc-side__card .row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--paper-edge);
    font-size: 14px;
    align-items: baseline;
    line-height: 1.45;
}

.svc-side__card .row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.svc-side__card .row .k {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

.svc-side__card .row .v {
    color: var(--ink);
}

.svc-side__card .row .v em {
    color: var(--umber);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 18;
}

.svc-side__cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 16px;
}

/* Margin note: an inline aside inside the prose flow, styled to feel like
   marginalia (italic, left rule, faintly colored). The earlier float-right
   variant was designed for a 3-column layout with a wide outer gutter; in
   the 2-column prose + sticky-sidebar layout the float collided with the
   sidebar card, so it now renders inline at every width. */

.svc-prose .margin-note {
    margin: 18px 0;
    padding: 12px 16px;
    background: var(--paper-deep);
    border-left: 2px solid var(--umber);
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

@media (max-width: 880px) {
    .svc-body__inner {
        grid-template-columns: 1fr;
    }
    .svc-side {
        position: static;
    }
}

/* ── Page-load orchestration (subtle, not show-offy) ────────── */

@keyframes rise {
    0%   { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.hero__margin,
.hero__pre,
.hero h1,
.hero__lede,
.hero__ctas,
.hero__legal,
.hero__col-2 {
    animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__margin { animation-delay: 0.0s; animation-name: fade-in; animation-duration: 1.2s; }
.hero__pre    { animation-delay: 0.08s; }
.hero h1      { animation-delay: 0.18s; }
.hero__lede   { animation-delay: 0.30s; }
.hero__ctas   { animation-delay: 0.42s; }
.hero__legal  { animation-delay: 0.54s; }
.hero__col-2  { animation-delay: 0.34s; }

/* The service-detail head also fades in subtly when the URL lands. */
.svc-head__crumb,
.svc-head h1,
.svc-head__lede {
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.svc-head__crumb { animation-delay: 0.04s; }
.svc-head h1     { animation-delay: 0.14s; }
.svc-head__lede  { animation-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Mobile nav drawer + hamburger (not in the design-prototype) ── */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    z-index: 100;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* ── Hamburger button (animates to X via aria-expanded state) ──
   The three bars are absolutely positioned inside a fixed-size button,
   so they animate from the same origin (button center). Closed state
   translates each bar to its row position; open state collapses + rotates
   the outer two into an X and fades the middle. */

.head__hamburger {
    display: none;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--rad);
    padding: 0;
    cursor: pointer;
    color: var(--ink);
    width: 42px;
    height: 42px;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.head__hamburger:hover {
    border-color: var(--paper-edge);
}

.head__hamburger:focus-visible {
    outline: 2px solid var(--umber);
    outline-offset: 2px;
}

.head__hamburger__bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 1.6px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center center;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

/* Closed state: each bar translates to its stacked position from the
   shared center. translateX(-50%) keeps horizontal centering; the Y
   offset places the top bar 7px above center, middle on center, bottom
   bar 7px below. */
.head__hamburger__bar:nth-child(1) { transform: translate(-50%, calc(-50% - 7px)); }
.head__hamburger__bar:nth-child(2) { transform: translate(-50%, -50%); }
.head__hamburger__bar:nth-child(3) { transform: translate(-50%, calc(-50% + 7px)); }

/* Open state: outer two bars collapse to center and rotate into an X;
   the middle bar shrinks and fades out. */
.head__hamburger[aria-expanded="true"] .head__hamburger__bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.head__hamburger[aria-expanded="true"] .head__hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.3);
}

.head__hamburger[aria-expanded="true"] .head__hamburger__bar:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ── Scrim behind the drawer ── */

.head__scrim {
    position: fixed;
    inset: 0;
    background: rgba(27, 24, 21, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 55;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.head__scrim[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
}

/* ── Drawer (slides down from header, fades in) ── */

.head__drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--paper-edge);
    box-shadow: 0 12px 24px -16px rgba(27, 24, 21, 0.22);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0s linear 0.32s;
    z-index: 58;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.head__drawer[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0s linear 0s;
}

.head__drawer[hidden] {
    /* When the JS hasn't run yet (no-JS fallback), hide the drawer entirely. */
    display: none;
}

.head__drawer__inner {
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 24px;
    max-width: var(--column);
    margin: 0 auto;
}

.head__drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    text-decoration: none;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 19px;
    font-variation-settings: 'opsz' 20;
    letter-spacing: -0.006em;
    color: var(--ink);
    border-bottom: 1px solid var(--paper-edge);
    transition: color 0.22s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.head__drawer__link:hover {
    color: var(--umber);
    padding-left: 6px;
}

.head__drawer__link.active {
    color: var(--umber);
}

.head__drawer__link.active::after {
    content: "\2022";
    color: var(--umber);
    font-size: 14px;
    margin-left: 6px;
}

.head__drawer__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
    padding-top: 0;
}

.head__drawer__cta .btn {
    justify-content: center;
    width: 100%;
}

.head__drawer__phone {
    text-align: center;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 6px;
}

.head__drawer__phone:hover {
    color: var(--umber);
}

/* ── Body scroll lock while drawer is open ── */

body.body--nav-open {
    overflow: hidden;
}

/* ── Mobile breakpoint: swap nav for hamburger + drawer ── */

@media (max-width: 920px) {
    .head__nav {
        display: none;
    }
    .head__hamburger {
        display: block;
    }
}

/* ── Very small viewports: tighten the head + hide wordmark ── */

@media (max-width: 480px) {
    .head__inner {
        padding: 14px var(--gutter);
        gap: 16px;
    }
    .head__wordmark {
        font-size: 16px;
    }
    .head__drawer__link {
        font-size: 18px;
        padding: 14px 0;
    }
}

/* ── Lead inquiry form ───────────────────────────────────────── */

.leadform {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--paper-deep);
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--paper-edge);
    border-radius: var(--rad);
}

.leadform__row {
    display: flex;
    flex-direction: column;
}

.leadform__row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 640px) {
    .leadform__row--split {
        grid-template-columns: 1fr;
    }
}

.leadform__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leadform__label__k {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.leadform__label__hint {
    font-family: 'Newsreader', Georgia, serif;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-faint);
    font-style: italic;
    font-size: 12px;
}

.leadform__input {
    background: var(--paper);
    border: 1px solid var(--paper-edge);
    border-bottom: 1.5px solid var(--ink-soft);
    border-radius: var(--rad);
    padding: 12px 14px;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.18s ease;
}

.leadform__input:focus {
    outline: none;
    border-bottom-color: var(--brick);
}

.leadform__textarea {
    resize: vertical;
    min-height: 90px;
    font-family: 'Newsreader', Georgia, serif;
}

.leadform__honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.leadform__submit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-top: 6px;
}

.leadform__legal {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0;
    max-width: 38rem;
}

/* PHI-safeguard note above the form. Visible to the visitor so the design
   intent ("don't put clinical detail in here") is obvious. Plain prose, no
   warning chrome -- the goal is to nudge, not alarm. */
.leadform__note {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
    padding-left: 0.75rem;
    border-left: 2px solid var(--rule-strong, #C9C6BC);
    max-width: 38rem;
}

/* ── Google Maps embed ───────────────────────────────────────── */

.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 18px 0 8px;
    border: 1px solid var(--paper-edge);
    border-radius: var(--rad);
    overflow: hidden;
    background: var(--paper-deep);
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-embed__link {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 1em;
}

.map-embed__link a {
    color: var(--umber);
    text-decoration-color: var(--umber-soft);
}

.foot__hours {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--paper-edge);
    font-size: 13px;
    color: var(--ink-faint);
    font-style: italic;
    line-height: 1.55;
    list-style: none;
    max-width: 18rem;
}

/* ── Signature block on About page (script-font name + caption) ── */

.signature {
    margin: 56px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Pinyon Script is a refined formal cursive that pairs well with
   Newsreader's editorial register. The name is set in ink with a
   subtle umber slant so it reads as ink-on-paper, not as a generated
   font sample. */
.signature__name {
    font-family: 'Pinyon Script', 'Snell Roundhand', cursive;
    font-size: 56px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: 0;
    padding: 4px 0 8px;
    /* A very faint fade-in on page load so it lands gently rather than
       appearing all at once with the rest of the prose. */
    animation: fade-in 0.9s 0.3s ease-out both;
    opacity: 0.92;
}

@media (max-width: 640px) {
    .signature__name {
        font-size: 48px;
    }
}

.signature__caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: var(--ink-soft);
    letter-spacing: -0.005em;
}

.signature__caption .mono {
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
}

/* ── Sidebar card subtle lift on hover ── */

.svc-side__card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.svc-side__card:hover {
    border-color: var(--umber-soft);
    box-shadow:
      0 1px 1px rgba(27, 24, 21, 0.06),
      0 8px 16px -10px rgba(110, 59, 26, 0.22);
}

/* ── Insurer chip subtle press feel ── */

.insurer {
    user-select: none;
}

/* ── Mark colophon, refined letterpress feel via subtle inset shadow ── */

.mark__box {
    transition: color 0.25s ease, border-color 0.25s ease;
    text-shadow: 0 0 1px rgba(27, 24, 21, 0.02);
}

.head__name:hover .mark__box,
.foot__mark:hover .mark__box {
    color: var(--brick);
}

/* ── Drop cap optical alignment refinement ── */

.svc-prose > p:first-of-type::first-letter {
    /* Pull the cap slightly into the left margin so it optically aligns
       with the block edge, not just the box edge. Subtle but expensive
       to notice in print. */
    margin-left: -0.04em;
}

/* ── Focus-visible ring on all interactive elements for keyboard nav ── */

a:focus-visible {
    outline: 2px solid var(--umber);
    outline-offset: 3px;
    border-radius: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--umber);
    outline-offset: 2px;
}

/* Programmatically-focused non-interactive elements: don't paint a
   focus ring. This covers two cases:
   1. Blazor's <FocusOnNavigate Selector="h1" /> adds tabindex="-1" to
      the page's h1 and focuses it after every navigation so screen
      readers hear the new page title. Sighted users don't need a ring
      around the h1, only the announcement.
   2. The mobile drawer container has tabindex="-1" so the JS can move
      focus there when the drawer opens (for keyboard users to Tab into
      links from). The container itself doesn't need a visible ring.
   Interactive elements (a, button, input, etc.) still get focus rings
   via the :focus-visible rules above. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible,
h1:focus,
h1:focus-visible {
    outline: none;
}

/* ── Smooth scroll for anchor links on long specialty pages ── */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ── Specialty bibliography numeral, refined for readability + character ── */

.specialty__num {
    /* A whisper of weight differential under hover so the numeral feels
       hand-set rather than digital. */
    transition: color 0.25s ease, font-variation-settings 0.25s ease;
}

.specialty:hover .specialty__num {
    font-variation-settings: 'opsz' 24;
}

/* ── Compact "also serving" Tier-2 city index on specialty pages.
   Tier 1 cities live in the .specialties bibliography grid above; this
   index lists the remaining 42 cities as small text links so every
   Specialty x City combination is one click from the specialty page,
   without crowding the Tier 1 cards. */

.city-index {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--paper-edge);
}

.city-index__head {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--umber);
    margin-bottom: 22px;
    font-weight: 500;
}

.city-index__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    columns: 4;
    column-gap: 32px;
    font-size: 13.5px;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .city-index__list { columns: 3; }
}
@media (max-width: 680px) {
    .city-index__list { columns: 2; column-gap: 24px; }
}
@media (max-width: 420px) {
    .city-index__list { columns: 1; }
}

.city-index__list li {
    break-inside: avoid;
    padding: 3px 0;
}

.city-index__list a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.18s ease;
}

.city-index__list a:hover {
    color: var(--umber);
    text-decoration: underline;
    text-decoration-color: var(--umber-soft);
    text-underline-offset: 3px;
}

.city-index__note {
    font-size: 14px;
    color: var(--ink-faint);
    font-style: italic;
    margin: 0;
}

.city-index__note a {
    color: var(--umber);
}

/* ── On-this-page (sidebar TOC) for long specialty articles ── */

.svc-side__toc {
    border: 1px solid var(--paper-edge);
    background: var(--paper);
    padding: 22px 24px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(27, 24, 21, 0.04);
}

.svc-side__toc__label {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--umber);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--paper-edge);
}

.svc-side__toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-side__toc li {
    margin: 0;
    padding: 0;
}

.svc-side__toc a {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 7px 0;
    text-decoration: none;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.35;
    transition: color 0.22s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px dotted var(--paper-edge);
}

.svc-side__toc li:last-child a {
    border-bottom: none;
}

.svc-side__toc a:hover {
    color: var(--umber);
    padding-left: 4px;
}

.svc-side__toc__num {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: var(--umber);
    font-variation-settings: 'opsz' 14;
    text-align: right;
}

.svc-side__toc__title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.003em;
}

/* ── Office gallery (Contact + Duluth pages) ─────────────────────
   Framed-print aesthetic, mirrors hero__portrait: paper-deep mat with a
   subtle warm gradient, inner hairline rule, umber-tinted drop shadow,
   small hover lift. Captions echo the eyebrow pattern (umber accent bar
   + DM Mono label) with a FIG. roman-numeral marker on the right. One
   wide lead image followed by a two-up row. */

.office-gallery {
    margin: 18px 0 28px;
    display: grid;
    gap: 18px;
    /* min-width: 0 prevents grid blowout when this lives inside another
       grid track (svc-body__inner). Without it, the intrinsic min-width
       of figure children exceeds the prose column on small screens. */
    min-width: 0;
}

.office-gallery__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    min-width: 0;
}

.office-gallery__frame {
    position: relative;
    border: 1px solid var(--paper-edge);
    padding: 14px 14px 14px;
    /* Warm paper-grain gradient: ivory at top, slightly deeper toward the
       bottom edge, the way a real museum mat catches light. */
    background:
      linear-gradient(180deg,
        var(--paper-deep) 0%,
        #E2D6BE 100%);
    box-shadow:
      0 1px 1px rgba(27, 24, 21, 0.06),
      0 18px 36px -22px rgba(110, 59, 26, 0.28),
      0 2px 8px -2px rgba(27, 24, 21, 0.04);
    margin: 0;
    box-sizing: border-box;
    min-width: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.office-gallery__frame:hover {
    transform: translateY(-3px);
    box-shadow:
      0 1px 1px rgba(27, 24, 21, 0.06),
      0 28px 52px -26px rgba(110, 59, 26, 0.36),
      0 4px 12px -2px rgba(27, 24, 21, 0.06);
}

.office-gallery__frame::before {
    /* Inner mat hairline, like the hero portrait. */
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid var(--paper-edge);
    pointer-events: none;
    z-index: 1;
}

.office-gallery__frame__img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    background-color: var(--umber-soft);
    filter: saturate(0.96) contrast(1.02);
    z-index: 0;
}

.office-gallery__frame--lead .office-gallery__frame__img {
    aspect-ratio: 4 / 3;
}

.office-gallery__row .office-gallery__frame__img {
    aspect-ratio: 4 / 3;
}

.office-gallery__frame__caption {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--paper-edge);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.office-gallery__frame__caption__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.office-gallery__frame__caption__label::before {
    /* Umber accent bar, echoes the .eyebrow pattern. Widens on hover. */
    content: "";
    width: 20px;
    height: 2px;
    background: var(--umber);
    flex-shrink: 0;
    transition: width 0.4s ease;
}

.office-gallery__frame:hover .office-gallery__frame__caption__label::before {
    width: 30px;
}

.office-gallery__frame__caption__fig {
    color: var(--ink-faint);
    font-size: 9px;
    letter-spacing: 0.22em;
    flex-shrink: 0;
}

.office-gallery__note {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 1em;
}

@media (max-width: 640px) {
    .office-gallery {
        gap: 14px;
    }
    .office-gallery__row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .office-gallery__frame {
        padding: 10px 10px 12px;
    }
    .office-gallery__frame::before {
        inset: 5px;
    }
    .office-gallery__frame__caption {
        font-size: 9.5px;
        letter-spacing: 0.14em;
    }
}

