/* Cascade Forensic Psychiatry — shared stylesheet
   Palette: navy (per builder notes). Do not swap to evergreen; do not reuse
   any visual element from Pacific Lifestyle Psychiatry. */

:root {
  --navy: #1b2a41;
  --navy-deep: #131f31;
  --ink: #22303f;
  --body: #4a5568;
  --muted: #8593a3;
  --line: #e2e7ed;
  --paper: #f7f8fa;
  --white: #ffffff;
  --accent: #1b2a41;
  --cream: #f3ede2;
  --header-h: 90px; /* fallback; js/header-scroll.js sets the real measured height */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Source Serif 4', serif; }
img { max-width: 100%; display: block; }

/* ── HEADER: name primary, practice name subtle ──
   --header-fg / --header-fg-muted drive the mark, identity text, and nav
   links together so the header can swap to a light palette over the hero
   (see header.header-overlay below) without duplicating every rule. */
header {
  --header-fg: var(--ink);
  --header-fg-muted: var(--body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  flex-wrap: wrap;
  gap: 1rem;
  transition: background-color 0.35s ease, border-color 0.35s ease;
  /* The header is a stacking context (view-transition-name below traps
     every child z-index, including the nav dropdown's, inside it). Without
     its own positioned z-index the whole context painted in DOM order —
     UNDER the page-head banner that follows it, which clipped the open
     dropdown menu on every page with a banner (found 2026-07-12; Home
     never showed it because .header-overlay is fixed with z-index 50).
     Positioning the header lifts the context above page content. */
  position: relative;
  z-index: 40;
}
.identity-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.identity-name {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--header-fg);
  letter-spacing: 0.01em;
  line-height: 1.15;
  transition: color 0.35s ease;
}
.identity-practice {
  font-size: 11px;
  font-weight: 500;
  color: var(--header-fg-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

/* ── MARK: Chevron Fir (see chevron_fir_flip_cascade.html for the source demo) ── */
.chevron-fir-mark {
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chevron-fir-mark .cf-group {
  stroke: var(--header-fg);
  transition: stroke 0.35s ease;
}
.footer-mark-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.4rem;
}
.footer-mark {
  flex-shrink: 0;
}
.footer-mark .cf-group {
  stroke: #ffffff;
}
nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--header-fg-muted);
  text-decoration: none;
  transition: color 0.35s ease;
}
nav a[aria-current="page"] {
  color: var(--header-fg);
  font-weight: 600;
}
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px; /* pill (Apple-informed, owner-approved 2026-07-11) */
  text-decoration: none;
}
/* Mobile hamburger (owner-directed 2026-07-11): hidden on desktop; below
   720px it replaces the wrapped multi-row nav — see the 720px media block
   and js/nav-toggle.js. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--header-fg);
  transition: color 0.35s ease;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* Home only: header starts transparent/light over the full-bleed hero, then
   solidifies once js/header-scroll.js adds .scrolled past the hero. */
header.header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* Owner-directed 2026-07-11: the Home banner is opaque navy while the
     hero (and portrait) is beneath it, then gently frosts once the photo
     has passed — see .scrolled below and js/header-scroll.js for the
     portrait-based trigger. blur(0) here so backdrop-filter interpolates. */
  background: var(--navy-deep);
  border-bottom-color: transparent;
  --header-fg: #ffffff;
  --header-fg-muted: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1) blur(0px);
  backdrop-filter: saturate(1) blur(0px);
  /* GPU-composite this layer instead of repainting it each frame. Standard
     mitigation for the iOS Safari flicker that shows up on fixed-position
     elements with an animating backdrop-filter during scroll. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: background-color, backdrop-filter;
  transition:
    background-color 0.7s ease,
    border-color 0.7s ease,
    -webkit-backdrop-filter 0.7s ease,
    backdrop-filter 0.7s ease;
}
/* Home only (owner-directed 2026-07-11): larger top-level nav links, to
   scale with the enlarged hero type. :not(.btn) keeps the CTA button at its
   site-wide size; other pages' headers are untouched. */
header.header-overlay nav a:not(.btn) {
  font-size: 15px;
}
header.header-overlay.scrolled,
header.header-overlay.nav-open {
  /* Frosted glass rather than flat white (Apple-informed, owner-approved
     2026-07-11): translucent with backdrop blur so hero/photo content reads
     faintly through the bar. Static styling only — no new motion. Non-Home
     headers are in normal flow (nothing scrolls beneath them), so they keep
     their solid white and are untouched by this. .nav-open gets the same
     treatment so the mobile menu is never white-on-photo over the hero. */
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom-color: var(--line);
  --header-fg: var(--ink);
  --header-fg-muted: var(--body);
}

/* Home-only identity swap (Handoff 5A, Amendment 1): the hero H1 right below
   already carries the doctor's name, so the header shows the practice name
   alone, promoted to the primary line's size/treatment, with a larger mark.
   Every other page keeps the name-first lockup unchanged. Scoped to
   .header-overlay so it never touches non-Home headers. */
header.header-overlay .identity-name {
  display: none;
}
header.header-overlay .identity-practice {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: none;
}
header.header-overlay .chevron-fir-mark {
  width: 46px;
  height: 58px;
}

/* ── NAV DROPDOWN: Areas of Practice ──
   Desktop (>720px): absolute popover, opens on hover (hover-capable devices
   only) or by clicking/tapping the caret button; the "Areas of Practice"
   link itself still navigates normally on click. Panel is always solid
   white/dark-text regardless of header state (reset via the >720px rule
   below), since it's an opaque card, not part of the header chrome.
   Mobile (<=720px): becomes an inline indented accordion in normal flow,
   inheriting the real header colors (transparent vs solid) since it's part
   of the header's own visual field, not a floating panel. */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header-fg-muted);
}
.nav-dropdown-toggle svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 10px 0 0;
  padding: 8px;
  min-width: 250px;
  list-style: none;
  /* --paper, not white: on the white inner pages a white menu read as part
     of the page (owner feedback 2026-07-12 — "slightly darker on white
     pages"); the darker surface + border + heavier shadow make the popover
     read as a layer above everything on light and dark pages alike. */
  background: var(--paper);
  border: 1px solid #d3dbe4;
  border-radius: 8px;
  box-shadow: 0 18px 40px -10px rgba(19, 31, 49, 0.35), 0 2px 8px rgba(19, 31, 49, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
@media (min-width: 721px) {
  .nav-dropdown-menu {
    --header-fg: var(--ink);
    --header-fg-muted: var(--body);
    /* Grace period: keep the menu up for a beat after the cursor leaves,
       so crossing to it (or briefly overshooting) doesn't snap it shut
       (owner feedback 2026-07-12 — menu must hold while the cursor is on
       the trigger or the menu itself). */
    transition-delay: 0.3s;
  }
  /* Hover bridge: the menu hangs 10px below the trigger, and that gap is
     margin — not hoverable — so descending into the menu used to drop
     :hover and start the close. This invisible strip spans the gap (and
     the menu's full width) to keep the pointer inside .nav-dropdown the
     whole way down. Desktop-only: on mobile the menu is an inline
     accordion and a strip here would sit over the first item. */
  .nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    height: 12px;
  }
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
  }
}
.nav-dropdown-menu li + li {
  margin-top: 1px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--header-fg-muted);
  text-decoration: none;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--line); /* one step darker than the --paper menu surface */
  color: var(--header-fg);
  outline: none;
}
@media (max-width: 720px) {
  /* .nav-dropdown is a flex row (link, caret, menu); without forcing the
     menu onto its own line it renders beside the caret instead of below
     it, overlapping the rest of the nav and the content underneath. */
  .nav-dropdown {
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    flex-basis: 100%;
    margin: 4px 0 0 0;
    padding: 0 0 0 16px;
    min-width: 0;
    background: none;
    border: none;
    box-shadow: none;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 260px;
  }
  .nav-dropdown-menu a {
    padding: 6px 4px;
    font-size: 12.5px;
  }
}

/* ── HERO (home page): full-bleed landscape, text + portrait ──
   .hero-bg holds the responsive <picture> (see LICENSES.md for source); the
   gradient below is a load-in/fallback color shown before the image paints
   or if it fails to load, not a placeholder to replace later. */
.hero-fullbleed {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Scrim re-tuned for the centered-name composition (owner-directed,
   2026-07-11): the H1 now spans the middle of the frame, so the old
   left-to-right taper (0.30 floor at 100%) would leave its right half over
   near-raw sky. The gradient keeps the strong left column (one line + CTA +
   note live there) but the floor is raised to 0.55 so the centered serif
   name — large text, AA threshold 3:1 — clears contrast across its full
   width; verified by sampling the photo's brightest name-band pixels and
   compositing at each stop (see LICENSES.md method). The portrait side
   stays lighter than the left so the photo still reads behind the card.
   Lightened again (owner-directed 2026-07-12) so the fog reads more
   clearly through the scrim: re-verified against the actual installed
   2560w photo by sampling every pixel column under the live H1's full
   width (not just one edge) for its brightest (worst-contrast) pixel and
   compositing at each stop — worst case 7.08:1 vs the cream H1, still
   well clear of AA-large (3:1). Re-verify the same way before lightening
   further or swapping in a different photo. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(19, 31, 49, 0.70) 0%,
    rgba(19, 31, 49, 0.60) 55%,
    rgba(19, 31, 49, 0.35) 100%
  );
}
.hero-fullbleed-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* top clearance tracks the header's real height (it can wrap to two rows
     at in-between widths) rather than guessing a fixed value per breakpoint */
  padding: calc(var(--header-h) + 2.5rem) 3rem 4rem;
}
/* Centered name over a two-column row beneath (credential+CTA left,
   portrait right) — Apple-landing-informed structure only; register
   unchanged (the H1 is the name, full stop). */
.hero-columns {
  display: grid;
  grid-template-columns: 55% 40%;
  gap: 5%;
  align-items: center;
}
.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: 'Source Serif 4', serif;
  font-size: 64px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 3rem;
}
.hero-line {
  font-size: 21px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta-note { font-size: 12.5px; color: var(--muted); }
.hero-text .cta-note { color: rgba(255, 255, 255, 0.65); }

.hero-portrait-wrap { display: flex; justify-content: center; }
.hero-portrait {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

/* Statement band between the hero and the practice sections. Full-bleed
   and tinted, with hairline rules top and bottom, so it reads as a border
   dividing the hero above from the services below rather than a narrow
   centered paragraph floating in white (owner-directed, 2026-07-25).
   Type is larger and darker than body copy but stays under the 40px
   section h2 so the heading hierarchy holds. Text runs the full width of
   the band (owner-directed, 2026-07-25) rather than sitting in the 1100px
   content column, so the line spans the screen on a laptop. */
.practice-sections-intro {
  padding: clamp(2.75rem, 5vw, 4.75rem) 3rem;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.practice-sections-intro-inner {
  max-width: none;
  margin: 0;
  font-family: 'Source Serif 4', serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: left;
}

/* ── PAGE HEAD (Areas of Practice / Resources banners) ──
   Thick photo-backed banner right below the header, reusing the Home
   hero's fog-ridgeline photo for a consistent theme across pages (see
   LICENSES.md). Scrim is flat, not a left-to-right gradient like the
   hero's, since this banner's text isn't confined to one side — verified
   via measured luminance to clear WCAG AA against the brightest sampled
   pixels in a representative banner-height crop. */
.page-head {
  position: relative;
  background: var(--navy-deep);
  padding: 3.5rem 3rem 3rem;
  overflow: hidden;
  isolation: isolate;
}
.page-head-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.page-head-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 31, 49, 0.8);
}
.page-head-inner { max-width: 860px; margin: 0 auto; }
.page-head .eyebrow { color: rgba(255, 255, 255, 0.72); }
/* Owner-directed (Join Us): centers this banner's eyebrow/H1 instead of the
   left-aligned default the other page-head banners use. */
.page-head--center .page-head-inner { text-align: center; }
.page-head h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.page-lede {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-top: 0.9rem;
}

/* ── PRACTICE SECTIONS (home page, below hero) ──
   Five full-width alternating half-text/half-photo sections. Odd sections
   (1,3,5) are text-left/photo-right by DOM order; even sections get
   .practice-section--reverse to flip via row-reverse. Mobile shows the
   description first, then the photo, regardless of desktop side — alternation is desktop-only. */
.practice-sections {
  background: var(--white);
}
/* Alternating color bands: sections step between white and navy so each
   reads as a distinct block from its neighbours (the site's own palette,
   not a new colour). Even sections (2, 4) go navy; odd stay white. The
   same nth-of-type rule + light-on-navy overrides drive the Areas of
   Practice items, so both pages share one banding treatment. */
.practice-section {
  /* One idea per screen: generous vertical air (Apple-informed,
     owner-approved 2026-07-11) so each band reads as a single statement. */
  padding: 7rem 3rem;
}
.practice-section:nth-of-type(even) {
  background: var(--navy);
}
.practice-section:nth-of-type(even) .practice-section-text h2 {
  color: var(--cream);
}
.practice-section:nth-of-type(even) .practice-section-text p {
  color: rgba(255, 255, 255, 0.82);
}
.practice-section:nth-of-type(even) .learn-more {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.6);
}
.practice-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.practice-section--reverse .practice-section-inner {
  flex-direction: row-reverse;
}
.practice-section-text,
.practice-section-photo {
  flex: 1 1 50%;
  min-width: 0;
}
.practice-section-text h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.practice-section-text p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 1.4rem;
  max-width: 500px;
}
.learn-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 1px;
}
.section-photo {
  width: 100%;
  /* height must be explicit auto: the width/height HTML attributes (kept
     for layout-shift prevention) otherwise resolve to a definite height,
     leaving no auto dimension for aspect-ratio to compute. */
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  background: var(--paper);
}

/* ── ABOUT PAGE ── */
.about-page {
  padding: 3rem 3rem 4.5rem;
  background: var(--white);
}
.about-page-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.headshot {
  width: 220px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}
.about-name {
  font-family: 'Source Serif 4', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.about-page p { font-size: 14.5px; margin-bottom: 0.9rem; max-width: 560px; }
.cv-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 1px;
}

/* ── AREAS OF PRACTICE PAGE ──
   Full-width alternating white/navy bands, same treatment as the Home
   practice sections: the list no longer constrains width itself; each item
   is an edge-to-edge band and its inner wrapper centres the content. */
.practice-list {
  background: var(--white);
}
.practice-list-inner {
  display: flex;
  flex-direction: column;
}
.practice-item {
  /* Same generous vertical air as the Home bands (see .practice-section). */
  padding: 6rem 3rem;
}
.practice-item:nth-of-type(even) {
  background: var(--navy);
}
.practice-item-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.practice-item--reverse .practice-item-inner {
  flex-direction: row-reverse;
}
.practice-item-text,
.practice-item-photo {
  flex: 1 1 50%;
  min-width: 0;
}
.practice-item-text h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 29px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}
.practice-item-text p { font-size: 15px; line-height: 1.65; margin-bottom: 0.8rem; max-width: 480px; }
.practice-item-text p:last-child { margin-bottom: 0; }
.practice-item:nth-of-type(even) .practice-item-text h2 { color: var(--cream); }
.practice-item:nth-of-type(even) .practice-item-text p { color: rgba(255, 255, 255, 0.82); }

/* ── RESOURCES PAGE ── */
.resources-list {
  padding: 3.5rem 3rem 4.5rem;
  background: var(--white);
}
/* Tile grid (owner-directed 2026-07-12): on laptop and up, two columns —
   "For Attorneys New…" and CLE as the top pair, the featured-article card
   full-width between, Testimony and Publications as the bottom pair.
   Placement comes from DOM order + auto-flow; only the featured card is
   pinned (full row). Below 900px everything stacks in DOM order. */
.resources-list-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.resources-section {
  padding: 1.6rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
@media (min-width: 900px) {
  .resources-list-inner { grid-template-columns: 1fr 1fr; }
  .featured-article { grid-column: 1 / -1; }
  .faq-section { grid-column: 1 / -1; }
}

/* FAQ for attorneys (owner-approved set, 2026-08-06). Native
   <details>/<summary> — no JS needed, content is in the DOM either way. */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.faq-item:first-of-type { margin-top: 0.2rem; }
.faq-item summary {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: var(--navy);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  font-size: 14px;
  max-width: 680px;
  margin-top: 0.7rem;
  color: var(--body);
}
.resources-section h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.resources-section > p { font-size: 14.5px; margin-bottom: 1.4rem; max-width: 640px; }
.resources-section > p:last-child { margin-bottom: 0; }

.cle-item { margin-bottom: 1.6rem; }
.cle-item:last-of-type { margin-bottom: 0; }
.cle-item h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.cle-item p { font-size: 14px; max-width: 620px; margin-bottom: 0.5rem; }
.cle-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 1px;
}

/* Featured articles — rotating slot on Resources (owner-directed
   2026-07-12). Multiple .featured-article-item entries; with 2+ items,
   js/featured-rotator.js fades between them (the site's one autoplay/loop
   exception — see CLAUDE.md "Motion"). Reduced-motion and no-JS users get
   all items stacked. Not an archive — see CLAUDE.md. */
.featured-article {
  background: var(--cream);
  border-radius: 10px;
  padding: 1.8rem 2rem;
}
/* Stacked fallback (no JS / reduced motion / single item) */
.featured-article-item + .featured-article-item {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(27,42,65,0.15);
}
/* Rotating mode: items share one grid cell (card sizes to the tallest),
   cross-fading via opacity */
.featured-article-track.is-rotating { display: grid; }
.featured-article-track.is-rotating .featured-article-item {
  grid-area: 1 / 1;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.featured-article-track.is-rotating .featured-article-item.is-active {
  opacity: 1;
  pointer-events: auto;
}
.featured-article-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.featured-article h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.featured-article-citation {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.featured-article p { font-size: 14.5px; max-width: 640px; margin-bottom: 0.8rem; }
.featured-article a {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 1px;
}

.publication-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.publication-list li { margin: 0 0 1rem; padding-left: 1.25em; text-indent: -1.25em; line-height: 1.55; font-size: 14.5px; }
.publication-list li:last-child { margin-bottom: 0; }

/* ── CV PAGE ── */
.cv-page {
  padding: 3rem 3rem 4.5rem;
  background: var(--white);
}
.cv-page-inner { max-width: 860px; margin: 0 auto; }
.cv-card {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 3rem 2rem;
  text-align: center;
  background: repeating-linear-gradient(45deg, #f2f4f7, #f2f4f7 8px, #f7f8fa 8px, #f7f8fa 16px);
}
.cv-card p.cv-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cv-meta { font-size: 12px; color: var(--muted); margin-top: 1.5rem; }

/* ── CONTACT / INQUIRY ── */
.contact {
  padding: 3rem 3rem 4.5rem;
  background: var(--white);
}
.contact-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
}
.contact h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}
.contact p { font-size: 14.5px; margin-bottom: 0.9rem; }
.email-block {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}
.email-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.email-value { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.privacy-note { font-size: 12px; color: var(--muted); margin-top: 0.9rem; }

.form-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  background: var(--paper);
}
.field { margin-bottom: 0.95rem; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
}
.field textarea { min-height: 64px; resize: vertical; }
.helper { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.3rem;
}
.submit:disabled { opacity: 0.6; cursor: default; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field-checkbox { margin-bottom: 1.1rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

.form-error {
  font-size: 12.5px;
  color: #a33;
  background: #fbeaea;
  border: 1px solid #e6b8b8;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 1rem;
}
.form-error a { color: inherit; font-weight: 600; }

.form-success {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
}

/* ── FOOTER: where the practice name carries full weight ── */
footer {
  background: var(--navy-deep);
  padding: 2.5rem 3rem 2rem;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-practice {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
}
.footer-desc { font-size: 12.5px; color: #93a1b5; max-width: 280px; }
.footer-col-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #6d7d94;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 12.5px;
  color: #b6c1d0;
  text-decoration: none;
  margin-bottom: 0.35rem;
}
.footer-bottom {
  padding-top: 1.2rem;
  font-size: 11.5px;
  color: #6d7d94;
}
/* Footer social — LinkedIn only (owner-directed 2026-07-12). */
.footer-social {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
}
.footer-social svg { width: 18px; height: 18px; fill: #b6c1d0; transition: fill 0.2s ease; }
.footer-social:hover svg { fill: #ffffff; }

/* ── MOTION (Handoff 5A, Amendment 2) ──
   Motion on this site is limited to: the header mark's hover animation, one-
   time scroll-reveals on below-hero sections (fade + slight rise, ease-out,
   no parallax, no re-trigger), smooth anchor scrolling, and a brief content
   fade between pages. Nothing autoplays, nothing loops, nothing moves faster
   than the eye's resting pace. All motion respects prefers-reduced-motion:
   users with that setting get instant reveals, instant page changes, and
   instant anchor jumps. Do not add motion beyond this list without explicit
   direction. */

html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Scroll-reveal: js/scroll-reveal.js adds .is-visible via IntersectionObserver
   (~20% visible, once only). .reveal-text is for an element paired with a
   .reveal-photo sibling so text follows the photo by ~120ms; solo elements
   use .reveal alone. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease-out, transform 650ms ease-out;
}
.reveal.reveal-text {
  transition-delay: 120ms;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page-content fade: js/page-transitions.js adds/removes .page-leaving on
   same-origin link clicks in browsers without native view transitions
   (detected via document.startViewTransition). Browsers with native support
   skip this JS path entirely and use @view-transition below instead, so the
   two never layer on the same navigation. */
#page-content {
  animation: page-fade-in 250ms ease-out;
}
#page-content.page-leaving {
  opacity: 0;
  transition: opacity 150ms ease-in;
}
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Same-page "gentle refresh" (owner-directed 2026-08-06): plays only when
   the header mark is tapped while already on the landing page — see
   js/chevron-fir.js. Deliberately separate from .page-leaving/page-fade-in
   above, which drive real cross-page navigation and every page's initial
   load; slowing this one down can't touch those. First attempt (reusing
   .page-leaving's fast 150ms-out/250ms-in) read as a quick, jerky flash
   rather than a gentle reappearance — this eases in and out over a longer
   span, with a slight rise, so the page settles back in rather than
   snapping. */
#page-content.page-refresh-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease-in, transform 420ms ease-in;
}
@keyframes page-refresh-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
#page-content.page-refresh-in {
  animation: page-refresh-in 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Native cross-document View Transitions (Chrome/Edge): the header is given
   a stable name with no morph animation so it reads as persisting through
   the navigation rather than fading with the rest of the page. */
@view-transition {
  navigation: auto;
}
header {
  view-transition-name: site-header;
}
::view-transition-group(site-header) {
  animation-duration: 0s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #page-content {
    animation: none;
  }
  #page-content.page-leaving {
    opacity: 1;
    transition: none;
  }
  #page-content.page-refresh-out {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #page-content.page-refresh-in {
    animation: none;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-name { font-size: 44px; }
  .hero-portrait-wrap { justify-content: flex-start; }
  .hero-portrait { max-width: 70vw; }

  /* Description leads (text stacks above photo); alternation is desktop-only. */
  .practice-section-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .practice-section--reverse .practice-section-inner {
    flex-direction: column;
  }
  .practice-section-photo { order: 0; }
  .practice-section-text p { max-width: none; }

  .practice-item-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .practice-item--reverse .practice-item-inner {
    flex-direction: column;
  }
  .practice-item-photo { order: -1; }
  .practice-item-text p { max-width: none; }
}

@media (max-width: 720px) {
  header { padding: 1rem 1.25rem; }

  /* Hamburger nav (owner-directed 2026-07-11): the header collapses to a
     single row (identity + ☰); the nav becomes a hidden full-width column
     panel toggled by js/nav-toggle.js. Instant show/hide — no animation.
     The button is pinned top-right so it never wraps below the identity
     (header stays `fixed` on Home via the more specific .header-overlay
     rule; inner pages get `relative` purely as the button's anchor). */
  header { position: relative; }
  .nav-toggle {
    display: flex;
    position: absolute;
    top: 1.6rem;
    right: 1.1rem;
  }
  /* Reserve the button's corner so the name lockup wraps clear of it. */
  .identity-link { padding-right: 56px; }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1rem 0 0.5rem;
  }
  header.nav-open nav { display: flex; }
  .about-page, .resources-list, .cv-page, .contact, .page-head {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .practice-sections-intro, .practice-section, .practice-item {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  /* Desktop's one-idea-per-screen air scales down on small viewports. */
  .practice-section { padding-top: 4rem; padding-bottom: 4rem; }
  .practice-item { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .practice-section-text h2 { font-size: 30px; }
  .hero-fullbleed-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-name { font-size: 36px; }
  .hero-portrait { max-width: 75vw; }
  .about-page-inner { grid-template-columns: 1fr; }
  .headshot { width: 160px; }
  .contact-inner { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  footer { padding: 2rem 1.25rem 1.5rem; }
}


/* Footer disclaimer (Handoff 8) */
.footer-disclaimer {
  max-width: 70ch;
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(237, 228, 208, 0.15);
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.72;
}


/* === Handoff 9 — professional image treatment ===
   Mute + cool the nature photography so it reads as brand atmosphere.
   Portrait/headshot (.hero-portrait, .headshot) intentionally excluded. */
.hero-bg-img,
.page-head-bg-img,
.section-photo {
  filter: saturate(0.55) brightness(0.94) contrast(1.04);
}
.section-photo { display: block; } /* remove inline descender gap under the photo */
.practice-section-photo,
.practice-item-photo { position: relative; }
.practice-section-photo::after,
.practice-item-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(19, 31, 49, 0.22);
  pointer-events: none;
}
