/* ==========================================================================
   COMPONENTS — v3
   Specific, named UI pieces. Prefixed `c-`. This is where color,
   type, and brand personality actually show up.
   ========================================================================== */

/* Serif display — pin the variable font's optical size to the moderate
   cut the reference's static "Newsreader Display" files use (see elements).
   ========================================================================== */
.c-logo,
.c-hero__link,
.c-serif-link,
.c-name-banner__item,
.c-latest__row-link,
.c-latest__row-title,
.c-testimonial__quote,
.c-explore__link-title {
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 32;
}

/* Header + nav
   ========================================================================== */
.c-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--transition-base);
}

.c-header.is-scrolled {
  box-shadow: 0 1px 0 var(--border-faint);
}

.c-header__inner {
  padding-block: var(--space-4);
}

.c-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--text);
  letter-spacing: 0.01em;
}

.c-logo img {
  display: block;
  height: 60px;
  width: auto;
}

.c-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.c-nav__link {
  font-family: var(--font-sub);
  font-weight: 400;
  white-space: nowrap;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.c-nav__link:hover {
  color: var(--color-tan-900);
}

/* Current-page indicator — same underline recipe as .c-serif-link
   ("Learn More") buttons, so the cue doesn't rely on color alone. */
.c-nav__link[aria-current="page"] {
  color: var(--color-tan-900);
  /* border-strong (a translucent ink) computes to only ~2:1 against the
     nav's own backgrounds — below the 3:1 non-text contrast minimum,
     which would defeat the point of adding a non-color cue at all.
     currentColor reuses tan-900, already proven to clear 3:1+ against
     both backgrounds this nav appears on. */
  border-bottom-color: currentColor;
}

/* Contact styled as a quiet chip, like the reference */
.c-nav__link--chip {
  background: var(--color-white);
  border: 1px solid var(--color-ink);
  padding: var(--space-2) var(--space-4);
}

.c-nav__link--chip:hover {
  border-color: var(--color-espresso-800);
  color: var(--text);
}

.c-nav__link--chip[aria-current="page"] {
  border-color: var(--color-espresso-800);
}

/* Language toggle */
.c-lang {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.c-lang a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  padding-inline: var(--space-1);
  padding-bottom: 1px;
}

.c-lang a:hover {
  color: var(--text);
}

.c-lang .is-active {
  color: var(--text);
  border-bottom-color: var(--color-tan-900);
}

.c-lang__sep {
  color: var(--color-ink);
}

/* 1025-1360px: between the hamburger breakpoint (≤1024px) and full desktop
   (≥1361px), the header is a single un-wrapped flex row of logo + nav +
   lang toggle with no shrink budget on the nav's own un-shrinkable
   white-space:nowrap links. On Spanish pages, whose nav labels
   ("ACTUALIZACIONES", "ÁREAS DE PRÁCTICA") run longer than English's, this
   row can overflow — and since .c-logo had no flex-shrink:0 guard, the
   flexbox shrink algorithm was crushing the logo <img> down to 0px width
   (SC 2.4.7 Focus Visible: the first keyboard tab stop on every page had
   no visible content there) rather than touching the nav text. Tighten
   nav spacing in just this band so both fit at full logo size; desktop
   and the hamburger breakpoint are untouched. */
@media (min-width: 1025px) and (max-width: 1360px) {
  .c-nav__list {
    gap: var(--space-3);
  }
  .c-nav__link {
    letter-spacing: 0.05em;
  }
}

/* 1025-1140px specifically: even with the compaction above, the nav row's
   own min-content width (it can't wrap or shrink further) still exceeds
   this narrower band's viewport on Spanish pages (longer labels + the
   EN/ES toggle, itself the last, right-most item in .c-nav__list) —
   confirmed live: the row overflowed .c-header__inner's normal 85vw
   container by a near-fixed amount regardless of viewport, so the
   container's own 7.5vw left inset (half of the 15vw the 85vw cap removes)
   was exactly the slack pushing that overflow past the browser's right
   edge, hiding the EN/ES toggle entirely below ~1140px. Removing the
   container's max-width here (full viewport width) closes most of that
   gap; the last ~10px at the very bottom of the range (1025px) needed the
   container's own edge padding trimmed too — confirmed live this combo
   is enough for everything to fit on-screen across the whole
   1025-1140px band. */
@media (min-width: 1025px) and (max-width: 1140px) {
  .c-header__inner {
    max-width: none;
    padding-inline: var(--space-2);
    /* Full viewport width leaves more leftover space than the nav's own
       (compacted) content needs. o-flex--between's space-between dumps
       ALL of that leftover into the one gap between the 2 flex children
       (logo, nav) — at the wide end of this band that read as a huge,
       lopsided gap between the logo and "INICIO", nothing like desktop's
       normal ~37-50px. flex-start + a fixed gap keeps that distance
       constant instead of proportional to unused space. */
    justify-content: flex-start;
    gap: var(--space-6);
  }
  /* With the logo-nav gap now fixed rather than absorbing the leftover
     space, the nav's own (already-compacted) content width needs to
     shrink a little further so the row still fits at the narrow end of
     this band (1025px) alongside that fixed gap. */
  .c-nav__list {
    gap: var(--space-2);
  }
}

/* Hamburger toggle — hidden on desktop */
.c-nav-toggle {
  display: none;
}

@media (max-width: 1024px) {
  /* Hide desktop nav list; the mobile overlay takes over */
  .c-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 320ms ease, transform 320ms ease;
  }

  .c-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .c-nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
  }

  .c-nav__link {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
  }

  .c-nav__link--chip {
    background: transparent;
    border: none;
    padding: 0;
  }

  /* SC 1.4.1 Use of Color: the desktop chip border already carries the
     current-page cue via a shape+padding difference from other nav
     links; on mobile the border is removed entirely, leaving only a
     color shift, so add back the same underline recipe the other nav
     links use (.c-nav__link[aria-current="page"] above) here too. */
  .c-nav__link--chip[aria-current="page"] {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
  }

  .c-lang {
    font-family: var(--font-sub);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* Hamburger button — 44x44 tap target (WCAG 2.5.5 touch-target
     guidance); padding grown to match so the bars themselves (28px wide)
     render at the same visual size as before, just inside a roomier
     clickable box. */
  .c-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 60;
  }

  .c-nav-toggle__bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 300ms ease, opacity 200ms ease;
  }

  /* Animate to X when open */
  .c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* Mobile phones only (700px and below) — menu overlay was overflowing off
   the top and bottom of the screen on phone-height viewports, clipping the
   first link and the EN/ES toggle. Scoped separately from the 860px
   tablet/mobile toggle breakpoint above so tablet sizing is untouched.
   padding-top is 116px (108px sticky header + focus-outline offset +
   buffer) — SC 2.4.11 Focus Not Obscured (AA): the header sits at a
   higher z-index than this overlay, so the first nav link's focus
   indicator needs the same clearance already given to scroll-padding-top
   in reset.css, or it renders partly behind the header on focus. */
@media (max-width: 700px) {
  .c-nav {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 116px 24px 40px;
    -webkit-overflow-scrolling: touch;
  }

  .c-nav__list {
    width: 100%;
    gap: calc(var(--space-3) * 2 / 3);
  }

  .c-nav__link {
    font-size: var(--fs-md);
    line-height: 2.75; /* 16px font × 2.75 = 44px tap-target height, matching the hamburger button */
  }

  .c-lang {
    margin-top: var(--space-3);
  }
}

/* Tablet (701px–1024px) — same overflow/oversized-label issue as phones
   once the hamburger breakpoint moved up to 1024px to catch iPad Pro
   portrait. Same compaction as the phone fix above. */
@media (min-width: 701px) and (max-width: 1024px) {
  .c-nav {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 116px 24px 40px;
    -webkit-overflow-scrolling: touch;
  }

  .c-nav__list {
    width: 100%;
    gap: calc(var(--space-3) * 2 / 3);
  }

  .c-nav__link {
    font-size: var(--fs-md);
    line-height: 2.75; /* 16px font × 2.75 = 44px tap-target height, matching the hamburger button */
  }

  .c-lang {
    margin-top: var(--space-3);
  }
}

/* Hero — centered editorial statement
   ========================================================================== */
.c-hero {
  text-align: center;
  padding-block: var(--space-8) var(--space-7);
  background-color: var(--color-linen);
}

.c-hero .o-container {
  max-width: 85vw;
}

.c-hero__eyebrow {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-6);
}

.c-hero__title {
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
  font-size: max(1.5rem, 5.56vw);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.c-hero__title em {
  font-style: italic;
}

/* Mobile phones only — the title's max(1.5rem, 5.56vw) formula bottoms out
   at 24px on narrow screens, too close to the eyebrow's 18px to read as the
   dominant headline. Sized up further per explicit request even though it
   now wraps to 3 lines on narrower phones (previously capped at 36px/2
   lines) — the larger size was preferred over staying on 2 lines. */
@media (max-width: 700px) {
  .c-hero__title {
    font-size: 2.625rem;
  }
}

/* Underlined italic serif link, reference-style CTA */
.c-hero__link {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: var(--space-1);
}

.c-hero__link:hover {
  color: var(--color-espresso-800);
  border-bottom-color: currentColor;
}

/* Hero media — large centered image over an offset band
   ========================================================================== */
.c-hero-media {
  position: relative;
  overflow: hidden;
  /* Tall band below the photo, matching the reference's section height */
  padding-bottom: clamp(14rem, 20vw, 18rem);
}

/* Horizontal band that starts partway down and runs full-bleed behind */
.c-hero-media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  bottom: 0;
  background:
    repeating-linear-gradient(135deg, rgba(38, 36, 33, 0.02) 0 1px, transparent 1px 16px),
    linear-gradient(160deg, var(--color-blush-100), var(--color-grey-200));
}

.c-hero-media__frame {
  position: relative;
  z-index: 1;
  max-width: 85vw;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.c-hero-media__img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
}

/* Name banner — giant scrolling wordmark, transparent, overlapping
   the hero media like the reference
   ========================================================================== */
/* Lives inside .c-hero-media, pinned near the band's bottom so the
   wordmark straddles the photo's bottom edge with band space below,
   like the reference. */
.c-name-banner {
  background: transparent;
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(6rem, 9vw, 10rem);
  z-index: 2;
  pointer-events: none;
}

.c-name-banner__track {
  display: flex;
  gap: var(--space-7);
  width: max-content;
  animation: name-banner-scroll 60s linear infinite;
}

.c-name-banner:hover .c-name-banner__track {
  animation-play-state: paused;
}

.c-name-banner__item {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: clamp(4.5rem, 3rem + 9.5vw, 12.5rem);
  line-height: 1;
  color: color-mix(in srgb, var(--color-linen) 50%, transparent);
  white-space: nowrap;
}

@media (max-width: 700px) {
  /* Matches the footer ghost wordmark's mobile size (scaled up 1/3 from
     the same base clamp() formula both used originally). */
  .c-name-banner__item {
    font-size: clamp(6rem, 4rem + 12.67vw, 16.67rem);
  }
}

.c-name-banner__sep {
  font-size: 0.22em;
  color: color-mix(in srgb, var(--color-linen) 50%, transparent);
}

@keyframes name-banner-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .c-name-banner__track {
    animation: none;
  }
}

/* Static-section variant: same scrolling wordmark treatment and type
   scale as the hero marquee, but sitting in normal document flow (not
   absolute over a hero photo) and in solid ink rather than the
   photo-overlay's translucent linen. */
.c-name-banner--static {
  position: relative;
  bottom: auto;
  padding-block: var(--space-6);
  text-transform: uppercase;
}

.c-name-banner--blush .c-name-banner__item,
.c-name-banner--blush .c-name-banner__sep {
  color: color-mix(in srgb, var(--color-blush-100), var(--color-grey-200));
}

/* About — eyebrow, serif statement + body columns, offset image pair
   ========================================================================== */
.c-about-intro {
  padding-top: var(--space-8);
  padding-bottom: var(--space-7);
  text-align: center;
}

.c-about-intro .o-container {
  max-width: 85vw;
  margin-inline: auto;
}

.c-about__statement.c-about__statement--full {
  max-width: none;
  display: block;
  margin-inline: auto;
  font-size: var(--fs-h3);
}

.c-about {
  padding-block: var(--space-7) var(--space-7);
}

.c-about::before {
  content: '';
  display: block;
  width: calc(85vw - 2 * var(--space-4));
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-espresso-800) 30%, var(--color-espresso-800) 70%, transparent);
  margin: 0 auto calc(var(--space-7) * 2);
}

.c-about .o-container {
  max-width: 85vw;
}

.c-about__eyebrow {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem; /* 17px, reference eyebrow size */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-6);
}

.c-about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: start;
}

.c-about__statement {
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h4);
  max-width: 26ch;
  line-height: 1.25;
}

.c-about__statement em {
  font-style: italic;
}

.c-about__body {
  max-width: 46ch;
  padding-top: var(--space-2);
}

.c-about__body p {
  color: var(--text-soft);
  margin-bottom: var(--space-4);
}

/* Underlined italic serif link, shared editorial CTA style */
.c-serif-link {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.c-serif-link:hover {
  color: var(--color-espresso-800);
  border-bottom-color: currentColor;
}

.c-about__media {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 85vw;
  margin-inline: auto;
  margin-top: 8rem;
  padding-inline: var(--space-4);
}

.c-about__media > div:first-child {
  width: 47%;
}

.c-about__img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.c-about__media-item--offset {
  width: 47%;
}


@media (max-width: 860px) {
  .c-about__grid {
    grid-template-columns: 1fr;
  }

  /* Keep the 2-col photo layout on mobile; both photos stay equal size and aligned */
  .c-about__media {
    gap: var(--space-3);
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .c-about {
    padding-block: var(--space-7) var(--space-5);
  }
}

@media (min-width: 701px) and (max-width: 860px) {
  .c-about__statement {
    text-align: center;
    margin-inline: auto;
    max-width: 85vw;
  }

  .c-about__body {
    text-align: center;
    margin-inline: auto;
  }

  .c-about__media {
    margin-top: calc(var(--space-4) * 3);
  }
}

/* What we do — serif heading, pipe-separated list, two-column body
   ========================================================================== */
.c-whatwedo {
  padding-block: var(--space-8);
}

.c-whatwedo .o-container {
  max-width: 85vw;
}

.c-whatwedo__inner {
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.c-whatwedo__title {
  /* Reference "WHAT WE DO": ~60px display serif with generous space below */
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.c-whatwedo__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-sub);
  font-size: 1.125rem; /* 17px, reference list size */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.c-whatwedo__list-sep {
  color: var(--text-dim);
}

@media (max-width: 700px) {
  .c-whatwedo__list {
    font-size: var(--fs-xs);
  }

  /* "Bonds Granted" and "Work Permits Granted" need to wrap independently
     of the list's own item gap, so each is its own tiny flex-wrap group
     with a normal word-space-width gap instead of the list's larger
     inter-item gap — otherwise the list's gap (meant to separate distinct
     items) would render as an oversized gap between these two words. */
  .c-whatwedo__pair {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0 0.3em;
  }
}

.c-whatwedo__cols {
  columns: 1;
  max-width: none;
  margin-bottom: var(--space-6);
}

.c-whatwedo__cols p {
  color: var(--text-soft);
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .c-whatwedo__cols {
    columns: 1;
  }
}

/* Mission CTA — full-bleed photo, centered serif statement + button
   ========================================================================== */
.c-mission-cta {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: var(--color-espresso-900);
}

/* The sitewide focus ring (elements.css) is dark espresso for contrast
   against the site's mostly-light backgrounds — invisible against this
   section's own dark background, so it needs a light ring instead. */
.c-mission-cta :focus-visible {
  outline-color: var(--color-snow-50);
}

.c-mission-cta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.c-mission-cta--blog .c-mission-cta__img {
  object-position: center 0%;
}

.c-mission-cta--practice .c-mission-cta__img {
  object-position: center 0%;
}

/* Soft scrim so white text stays legible over the photo — matches the
   contact hero's scrim strength (rgba(38,36,33,.45)), which was chosen to
   keep white text readable over an arbitrary photo region. */
.c-mission-cta__overlay {
  position: absolute;
  inset: 0;
  /* .45 measured 4.14:1 average (2.87:1 worst-case) for the lede text
     against the real photo — below the 4.5:1 minimum. Same color,
     stronger alpha; matches .c-contact-hero__overlay below, which shares
     this exact photo and had the same measured shortfall. A later
     re-check with real pixel sampling found .62 lands right at the edge
     (4.48:1 at the photo's brightest highlight, a hair under 4.5:1) —
     bumped to .65 for a real safety margin, same color. */
  background: rgba(38, 36, 33, 0.65);
}

.c-mission-cta__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-8);
  max-width: 640px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (max-width: 700px) {
  .c-mission-cta__inner {
    max-width: 94vw;
    padding-inline: var(--space-4);
  }
}

.c-mission-cta__title {
  color: var(--color-white);
  font-weight: var(--fw-display-xlight);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.c-mission-cta__title em {
  font-style: italic;
  font-size: var(--fs-h2);
}

.c-mission-cta__title span {
  letter-spacing: 0.02em;
  font-size: var(--fs-h2);
}

h1.c-mission-cta__title em,
h1.c-mission-cta__title span {
  font-size: var(--fs-h1);
}

.c-mission-cta__lede {
  color: var(--color-white);
  font-size: var(--fs-lg);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.c-mission-cta__btn {
  display: inline-block;
  background: var(--color-white);
  color: var(--text);
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
}

/* Hover fill (ink) is only 1.11:1 against this section's espresso-900
   background — the border gives the button's extent a boundary that
   still reads at 3:1+ once the fill itself blends in. */
.c-mission-cta__btn:hover {
  background: var(--color-ink);
  color: var(--color-snow-50);
  border-color: var(--color-snow-50);
}

/* Testimonial — layered media left, eyebrow + serif quote right
   ========================================================================== */
.c-testimonial {
  padding-block: var(--space-8);
}

.c-testimonial__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
  align-items: center;
}

/* Photo overlapping a solid espresso backdrop panel */
.c-testimonial__media {
  position: relative;
  padding-block: var(--space-7);
}

.c-testimonial__media::before {
  content: "";
  position: absolute;
  inset: 0 22% 0 0;
  background: var(--color-espresso-900);
}

.c-testimonial__img {
  position: relative;
  display: block;
  width: 82%;
  height: auto;
  margin-left: 18%;
  box-shadow: var(--shadow-md);
}

.c-testimonial__eyebrow {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-5);
}

.c-testimonial__quote {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: var(--fs-2xl);
  line-height: 1.25;
  color: var(--text);
  max-width: 24ch;
  margin-bottom: var(--space-6);
}

.c-testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.c-testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-espresso-800);
  color: var(--color-blush-100);
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.c-testimonial__cite {
  font-style: normal;
  color: var(--text-soft);
  font-size: var(--fs-base);
}

@media (max-width: 860px) {
  .c-testimonial__grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials page — slider + voices grid
   ========================================================================== */
.c-tslider {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.c-tslider__slide {
  min-width: 0;
  /* Flex column so height propagates to the footer row */
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease;
}

/* The crossfade (all slides stacked in the same grid cell, only the
   active one visible) is JS's doing — Prev/Next only works via JS. With
   JS off, none of this applies: slides fall into the grid's normal
   auto-generated rows instead (one per slide) and stay visible, so all
   6 testimonials are readable by scrolling rather than 5 of them being
   permanently hidden with no way to reach them. */
.js .c-tslider__slide {
  grid-row-start: 1;
  grid-row-end: 2;
  grid-column-start: 1;
  grid-column-end: 2;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.js .c-tslider__slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .c-tslider__slide {
    transition: none;
  }
}

/* Propagate height down through the container chain */
.c-tslider__slide > .o-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.c-tslider__slide .c-testimonial__grid {
  flex: 1;
  align-items: stretch;
}

/* Right column: quote + footer centred as a group within the row height set
   by the photo column (align-items: stretch, above). The footer sits in
   normal flow after the quote (using the quote's own margin-bottom for
   spacing) instead of being pinned to a fixed-height reserved zone, so a
   longer/taller quote (e.g. under larger text-spacing settings) just pushes
   the footer down rather than overlapping it. */
.c-tslider__slide .c-testimonial__grid > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.c-tslider__slide .c-testimonial__footer {
  justify-content: center;
}

.c-tslider__slide .c-tslider__controls {
  margin-left: 0;
}

/* Left column: vertically centred so Erika is never cut off */
.c-tslider__slide .c-testimonial__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-tslider__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.c-tslider__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-espresso-800);
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-base);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.c-tslider__btn:hover {
  background: var(--color-espresso-800);
  border-color: var(--color-espresso-800);
  color: var(--color-cream-50);
}

.c-tslider__count {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  min-width: 3.5rem;
  text-align: center;
}

/* Voices grid — dark espresso band with short quote cards */
.c-voices {
  padding-block: var(--space-8);
  background: var(--color-blush-100);
}

.c-voices .c-about__eyebrow {
  color: var(--color-espresso-900);
  display: block;
  margin-bottom: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-display-xlight);
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 48;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
}

.c-voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 860px) {
  .c-voices__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .c-voices__grid {
    grid-template-columns: 1fr;
  }
}

.c-voices__card {
  border-top: 1px solid rgba(91, 55, 42, 0.18);
  padding-top: var(--space-5);
  padding-bottom: var(--space-3);
}

/* Now a <blockquote> (was <h4> until the fake-heading accessibility fix
   on 2026-08-27 — h4 elements mid-document with no real heading role
   confused screen-reader heading navigation). font-weight/
   font-variation-settings are still reset here as defensive normalization
   in case this class is ever reused on a heading element elsewhere. */
.c-voices__quote {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: normal;
  font-variation-settings: normal;
  font-optical-sizing: auto;
  font-size: var(--fs-xl);
  line-height: 1.45;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}
@media (max-width: 700px) {
  .c-voices__quote {
    font-size: 1.25rem;
  }
}

.c-voices__attr {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
}

/* Solid button — filled pill CTA */
.c-btn {
  display: inline-block;
  background: var(--color-espresso-800);
  color: var(--color-snow-50);
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
}

.c-btn:hover {
  background: var(--color-espresso-900);
  color: var(--color-snow-50);
}

/* The Latest — hairline list of blog articles
   ========================================================================== */
.c-latest {
  padding-block: var(--space-8);
}

.c-latest .o-container {
  max-width: 85vw;
}

.c-latest__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.c-latest__title {
  line-height: 1;
}

.c-latest__title em {
  font-style: italic;
  font-size: var(--fs-h2);
}

.c-latest__title span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-h2);
}

.c-latest__label {
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
}

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

.c-latest__row {
  display: grid;
  grid-template-columns: 1.4fr auto 160px;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-5);
  padding-inline: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  color: var(--text);
  transition: background 0.3s ease;
}

.c-latest__row:hover {
  background: linear-gradient(to right, transparent, rgba(237, 220, 220, 0.22) 18%, rgba(237, 220, 220, 0.22) 82%, transparent);
}

.c-latest__list li:last-child .c-latest__row {
  border-bottom: 1px solid var(--border-subtle);
}

.c-latest__row-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-latest__row-date {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.c-latest__row-excerpt {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.c-latest__row-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  line-height: 1.15;
  font-size: var(--fs-xl);
  transition: color var(--transition-base);
}

.c-latest__row:hover .c-latest__row-title,
.c-latest__row:hover .c-latest__row-date,
.c-latest__row:hover .c-latest__row-excerpt,
.c-latest__row:hover .c-latest__row-link {
  color: var(--color-espresso-800);
}

.c-latest__row-link {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  white-space: nowrap;
  justify-self: end;
}

.c-latest__row:hover .c-latest__row-link {
  border-bottom-color: currentColor;
}

.c-latest__thumb {
  width: 160px;
  height: 160px;
  object-fit: cover;
  justify-self: end;
  transition: transform 0.35s ease;
}

.c-latest__row:hover .c-latest__thumb {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  /* "Quick Links" was crowding the header row, forcing "Stay Informed"
     to wrap onto two lines. Hidden on mobile so the heading fits on one. */
  .c-latest__label {
    display: none;
  }

  .c-latest__row {
    grid-template-columns: 1fr 90px;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: var(--space-4);
    row-gap: var(--space-2);
    padding-inline: 0;
  }

  .c-latest__row-body {
    grid-column: 1;
    grid-row: 1;
  }

  .c-latest__row-title {
    font-size: var(--fs-base);
    max-width: none;
  }

  .c-latest__row-excerpt {
    display: none;
  }

  .c-latest__row-link {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    font-size: var(--fs-sm);
  }

  .c-latest__thumb {
    display: block;
    width: 90px;
    height: 90px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Blog index + article pages (rendered by Pages Functions from D1)
   ========================================================================== */
.c-blog-index .c-latest__title {
  margin-bottom: var(--space-6);
}

.c-post {
  padding-block: var(--space-7) var(--space-8);
}

.c-post__meta {
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* SC 1.4.3 Contrast (Minimum), AA: --text-dim computes to 3.53:1 against
     this page's default linen background, below the 4.5:1 minimum for
     this 14px text (not large text). --text-soft is the same replacement
     token already used to fix the identical failure on the contact-form
     placeholder; recomputed here at ~8.55:1 against this section's own
     background. */
  color: var(--text-soft);
  margin-bottom: var(--space-3);
}

.c-post__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-5);
}

/* Contact CTA — overlapping photo collage + uppercase serif closer
   ========================================================================== */
.c-contact-cta {
  padding-block: var(--space-8);
}

.c-contact-cta .o-container {
  max-width: 85vw;
}


.c-contact-cta__media {
  display: grid;
  grid-template-columns: 70% 30%;
  width: 85vw;
  margin-inline: auto;
  margin-bottom: calc(var(--space-8) + var(--space-6));
}

.c-contact-cta__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.c-contact-cta__overlay-photo {
  display: block;
  width: 119%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 0%;
  margin-top: 38%;
  margin-left: -19%;
  border: 15px solid var(--color-taupe-500);
  box-shadow: var(--shadow-md), 14px 0 28px rgba(38, 36, 33, 0.12);
}

@media (min-width: 1920px) {
  .c-contact-cta__overlay-photo {
    border-width: 20px;
  }
}

.c-contact-cta__inner {
  width: 100%;
}

.c-contact-cta__title {
  font-size: var(--fs-h2);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-block: var(--space-3) var(--space-4);
}

.c-contact-cta__title em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.c-contact-cta__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.c-contact-cta__row p {
  max-width: 44ch;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .c-contact-cta {
    padding-block: var(--space-5);
  }

  /* The blog thumbnail above sits at the padded content edge (inside
     .o-container's default padding), not the raw 94vw outer edge — so
     that's the actual line to match. width:100% here fills that same
     padded content box, keeping the photos' left edge flush with the
     blog date/title text and thumbnail above, and with the "READY to
     WIN YOUR CASE?" text below. */
  .c-contact-cta__media {
    grid-template-columns: 62% 38%;
    width: 100%;
    margin-bottom: var(--space-6);
  }

  .c-contact-cta__overlay-photo {
    width: 100%;
    margin-top: 30%;
    margin-left: -15%;
    border-width: 5px;
  }

  .c-contact-cta__inner {
    width: 100%;
    text-align: center;
  }

  .c-contact-cta__row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .c-contact-cta__row p {
    margin-inline: auto;
  }
}

/* Follow — Instagram-style photo strip + infinite scrolling marquee
   ========================================================================== */
.c-follow {
  padding-block: var(--space-6) var(--space-4);
  overflow: hidden;
}

.c-follow__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  padding-inline: 0;
}

.c-follow__item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.c-follow__item img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-follow__marquee {
  overflow: hidden;
  margin-top: var(--space-4);
}

.c-follow__track {
  display: flex;
  width: max-content;
  animation: follow-marquee-scroll 40s linear infinite;
}


.c-follow__set {
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  padding-inline-end: var(--space-3);
}

.c-follow__sep {
  font-size: 0.6em;
  vertical-align: middle;
}

@keyframes follow-marquee-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .c-follow__track {
    animation: none;
  }
}

@media (max-width: 700px) {
  .c-follow__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding-inline: var(--space-3);
    justify-content: stretch;
  }

  /* Show only the first 4 photos in a clean 2×2 grid */
  .c-follow__item:nth-child(n+5) {
    display: none;
  }
}

/* Footer — newsletter, link columns, giant ghost wordmark
   ========================================================================== */
.c-footer {
  background: var(--color-blush-100);
  padding-top: var(--space-8);
  padding-bottom: var(--space-5);
  overflow: hidden;
}

.c-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.55fr 0.9fr;
  gap: var(--space-6);
  align-items: start;
}

.c-footer__brand-wrap {
  margin-inline: auto;
}

.c-footer__logo {
  display: block;
  height: 144px;
  width: auto;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

.c-footer__tagline {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-xl);
  line-height: 1.4;
  text-align: left;
}

.c-footer__label {
  display: block;
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 var(--space-4);
}

.c-footer__list {
  padding-left: 0;
}

.c-footer__list li {
  margin-bottom: var(--space-2);
}

.c-footer__list a {
  color: var(--text-soft);
  font-size: var(--fs-sm);
}

.c-footer__list a:hover {
  color: var(--text);
}

.c-footer__contact p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-3);
}

.c-footer__contact p a {
  color: var(--text);
}

.c-footer__contact p a:hover {
  color: var(--color-espresso-800);
}

.c-footer__social {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-2);
}

.c-footer__social svg {
  display: block;
}

/* Giant ghost wordmark clipped at the page bottom, like the reference */
.c-footer__ghost {
  position: relative;
  margin-top: var(--space-7);
  overflow-x: clip;
  overflow-y: visible;
}

.c-footer__ghost-track {
  display: flex;
  width: max-content;
  animation: footer-ghost-scroll 150s linear infinite;
}

@keyframes footer-ghost-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .c-footer__ghost-track {
    animation: none;
  }
}

.c-footer__ghost-text {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-variation-settings: 'opsz' 72;
  font-size: clamp(4.5rem, 3rem + 9.5vw, 12.5rem);
  line-height: 0.72;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: color-mix(in srgb, var(--color-linen) 50%, transparent);
  pointer-events: none;
  user-select: none;
  padding-inline-end: 0.3em;
}

.c-footer__ghost-sep {
  font-size: 0.22em;
  vertical-align: middle;
}

.c-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  margin-top: var(--space-4);
  padding-inline: var(--space-4);
}

.c-footer__copyright {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.c-footer__privacy {
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--transition-base);
}
.c-footer__privacy:hover { color: var(--text); }
.c-footer__links { display: flex; gap: var(--space-5); }

@media (max-width: 700px) {
  /* Copyright + the Privacy/Accessibility/Cookie Settings links were
     sharing one row via space-between, with too little combined width on
     narrow phones — both wrapped and collided. Stack the copyright above
     the links row instead; the links row itself stays horizontal. */
  .c-footer__bar {
    max-width: 94vw;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .c-footer__links {
    flex-wrap: nowrap;
    gap: var(--space-4);
  }
}

@media (max-width: 860px) {
  .c-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .c-footer {
    padding-top: var(--space-6);
  }

  /* Scrolling ghost wordmark, sized up 1/3 from the base
     clamp(4.5rem, 3rem + 9.5vw, 12.5rem) formula. */
  .c-footer__ghost-text {
    font-size: clamp(6rem, 4rem + 12.67vw, 16.67rem);
  }

  .c-footer__ghost {
    margin-top: var(--space-5);
  }

  .c-footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-4);
  }

  /* Newsletter + Contact span both columns */
  .c-footer__grid > :first-child {
    grid-column: 1 / -1;
  }

  .c-footer__contact {
    grid-column: 1 / -1;
  }

  .c-footer__label {
    margin-bottom: calc(var(--space-4) / 2);
  }

  .c-footer__list li {
    margin-bottom: calc(var(--space-2) / 2);
  }
}

/* Bio rows — alternating photo + text blocks
   (reference: Karla ~14px/0.12em uppercase label, regular-size body copy —
   no large serif statement in this section) */
.c-bio {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.c-bio .o-container {
  max-width: 85vw;
}

/* align-items MUST NOT be stretch: js/main.js's makeHeightSync() measures
   .c-bio__content's natural (unstretched) rendered height on load and sets
   it as an inline height on .c-bio__media, so the photo's column matches
   the text column exactly (cropped via .c-bio__img's object-fit: cover
   below) — align-items: stretch would pre-inflate the text column before
   that measurement happens, making the sync measure the wrong (already
   matched) value. */
.c-bio__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-7);
}

.c-bio__row + .c-bio__row {
  margin-top: calc(var(--space-7) * 2);
}

/* No flex-direction override needed: this row's <div>s are already
   authored content-then-media in the HTML (the opposite of the normal
   row's media-then-content), so the default row direction alone already
   places the photo on the right — row-reverse here would double-flip it
   back to the left. */

.c-bio__media {
  flex: 0 1 375px;
  min-width: 275px;
  max-width: 375px;
  overflow: hidden;
}

/* Same fix as .c-post-consult__img picture elsewhere in this file: once
   js/main.js sets an explicit inline height on .c-bio__media (see
   .c-bio__row above), that height needs a <picture> with its own
   definite height to pass through to the <img>'s height:100% below —
   otherwise the percentage falls back to the image's natural aspect
   ratio and leaves empty space under a shorter photo. */
.c-bio__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.c-bio__content {
  flex: 1 1 0%;
  min-width: 0;
}

.c-bio__img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 861px) {
  .c-bio__img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

.c-bio__content p {
  font-size: var(--fs-base);
  margin-bottom: var(--space-4);
}

@media (max-width: 860px) {
  /* Top matches the hero content's own bottom padding (--space-7, 64px)
     plus the hero body text's own margin (16px) below it, rounded up to
     the nearest spacing token so the gap above this section's image
     equals the gap below the hero text. */
  .c-bio {
    padding-top: var(--space-8);
    padding-bottom: var(--space-6);
  }

  /* Gap between "Why We Do This Work" and "Our Promise" rows, reduced
     by half from calc(--space-7 * 2) = 128px down to --space-7 (64px). */
  .c-bio__row + .c-bio__row {
    margin-top: var(--space-7);
  }

  .c-bio__row,
  .c-bio__row--reverse {
    flex-direction: column;
    gap: calc(var(--space-5) * 3);
  }

  /* Stacked on mobile, the photo goes on top for both rows regardless of
     desktop left/right order — the reverse row's content-then-media HTML
     order would otherwise put its text above the photo here. */
  .c-bio__row--reverse .c-bio__media {
    order: -1;
  }

  .c-bio__media {
    flex-basis: auto;
    max-width: 100%;
  }
}

/* At a Glance — centered serif title, 3x3 label/answer grid
   (reference: title ~64px/0.05em; label Karla 13px/0.12em uppercase;
   answer Newsreader Display Light Italic ~22px)
   ========================================================================== */
.c-glance {
  padding-block: var(--space-7) var(--space-8);
  text-align: center;
}

.c-glance .o-container {
  max-width: 85vw;
}

.c-glance__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 72;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-h2);
  line-height: 1.1;
  margin-bottom: var(--space-7);
}

.c-glance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: var(--space-7);
  column-gap: var(--space-5);
}

.c-glance__label {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem; /* 17px */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-3);
}

.c-glance__answer {
  display: block;
  font-family: var(--font-heading);
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 32;
  font-style: italic;
  font-weight: var(--fw-display);
  font-size: var(--fs-h4);
  line-height: 1.15;
  color: var(--text);
}

@media (max-width: 700px) {
  /* Reduced by half from the homepage-matching --space-8 (96px). */
  .c-glance {
    padding-block: var(--space-6);
  }

  .c-glance__grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-5);
  }
}

/* Shared line-icon treatment — sprite symbols are drawn as strokes, not
   fills, so they read as thin editorial marks instead of solid blobs. */
.c-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Explore — two photo + caption columns; column b is pushed down and
   overlaps column a slightly, but each caption is an in-flow sibling of
   its own photo so it always sits directly beneath it, never the other's.
   ========================================================================== */
.c-explore {
  padding-block: var(--space-7) var(--space-8);
}

.c-explore .o-container {
  max-width: 85vw;
}

.c-explore__grid {
  display: grid;
  grid-template-columns: 70% 30%;
}

.c-explore__link {
  display: block;
}

.c-explore__img-a {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: var(--space-5);
}

.c-explore__link--b {
  margin-top: 38%;
  margin-left: -19%;
  width: 119%;
}

.c-explore__img-b {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-lg);
}

.c-explore__img-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.c-explore__overlay {
  position: absolute;
  inset: 0;
  /* Measured against the real photos: a two-line-wrapped caption's top
     line (e.g. "Explore Our / Practice Areas" on narrow phones) sits
     where the old ramp (.4 at 30%, fading to 0 by 65%) had already faded
     too far, measuring 2.50-3.01:1 — below the 3:1 large-text minimum.
     Same color, stronger/wider ramp; the one-line "Client Results"
     caption was already safe and stays so. */
  background: linear-gradient(0deg, rgba(63, 38, 29, 0.8) 0%, rgba(63, 38, 29, 0.55) 40%, rgba(63, 38, 29, 0) 85%);
}

.c-explore__link-title--overlay {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  margin-bottom: 0;
  color: var(--color-white);
}

.c-explore__img-a,
.c-explore__img-b {
  margin-bottom: 0;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-explore__link:hover .c-explore__img-a,
.c-explore__link:hover .c-explore__img-b {
  transform: scale(1.05);
}

.c-explore__link-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: calc(var(--fs-xl) * 1.5);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-2);
  transition: color 0.35s ease;
}

.c-explore__link-title--overlay {
  font-size: var(--fs-h3);
}

.c-explore__link:hover .c-explore__link-title {
  color: var(--color-espresso-800);
}

.c-explore__link:hover .c-explore__link-title--overlay {
  color: var(--color-white);
}


@media (max-width: 700px) {
  /* Reduced by half from the homepage-matching --space-8 (96px). */
  .c-explore {
    padding-block: var(--space-6);
  }

  /* Same overlay-on-photo caption treatment as desktop, just stacked
     instead of side-by-side-with-overlap — each link renders as a
     normal, self-contained block, so no display:contents/grid-placement
     trick is needed here. (The previous version's grid-row targeting on
     .c-explore__img-a/b never actually worked: those rules targeted the
     <img>, but its <picture> wrapper — not display:contents — was the
     real grid item, so the images silently fell back to plain
     one-per-row auto-placement instead of the intended overlap.) */
  .c-explore__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    max-width: 100%;
  }

  .c-explore__img-wrap {
    margin-bottom: 0;
  }

  .c-explore__link--b {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
  }

  .c-explore__img-a,
  .c-explore__img-b {
    width: 100%;
    aspect-ratio: 4 / 3;
    box-shadow: none;
  }

  /* Source photo is a tall portrait crop with her face in the top third;
     the default center object-position crops it out once this image is
     forced into a landscape frame on mobile. */
  .c-explore__img-b {
    object-position: center 20%;
  }
}

/* Practice Areas page — editorial numbered rows
   ========================================================================== */
.c-areas {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.c-areas .o-container {
  max-width: 85vw;
}

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

.c-areas__item {
  display: grid;
  grid-template-columns: 3rem 1fr 1fr;
  gap: 0 var(--space-8);
  padding-block: var(--space-8);
  align-items: start;
}

.c-areas__item:nth-child(even) {
  position: relative;
}

.c-areas__item:nth-child(even)::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vw;
  right: -100vw;
  background: var(--color-blush-100);
  z-index: -1;
}

.c-areas__num {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.3em;
}

.c-areas__item-title {
  font-family: var(--font-heading);
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 24;
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h4);
  line-height: 1.15;
  color: var(--text);
  transition: color var(--transition-base);
}

.c-areas__title-wrap {
  display: block;
}

@media (max-width: 700px) {
  .c-areas__title-wrap { display: inline; }
  .c-areas__title-br { display: none; }
}


.c-areas__item-body {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.75;
}

.c-areas__item-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-base);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

/* tan-900 (used for hover on the other two "Read More" patterns) was
   only validated against the nav's linen background — it computes to
   3.84:1 against this component's blush-100 background on even items,
   failing 4.5:1. espresso-800 clears that comfortably (~7.8:1). */
.c-areas__item-link:hover { color: var(--color-espresso-800); }

@media (max-width: 700px) {
  .c-areas__item {
    grid-template-columns: 2.5rem 1fr;
  }
  .c-areas__item-body {
    grid-column: 1 / -1;
    padding-top: var(--space-3);
  }
}

@media (max-width: 700px) {
  .c-areas__item {
    grid-template-columns: 1fr;
  }
  .c-areas__num { margin-bottom: var(--space-2); }
}

/* Contact hero — full-bleed photo, uppercase serif "Get in Touch"
   statement + contact form laid over a dark scrim
   ========================================================================== */
.c-contact-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-8);
  background-color: var(--color-espresso-900);
}

/* Scoped to the whole section, not just the lede: the submit button
   (.c-contact-form__submit) has `background:none` and sits directly on
   the dark photo/scrim too, so it needs the same light ring. Inputs/
   textareas are unaffected — they use `outline:none` plus border-color/
   box-shadow for focus, never this rule. */
.c-contact-hero :focus-visible {
  outline-color: var(--color-snow-50);
}

.c-contact-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-contact-hero__overlay {
  position: absolute;
  inset: 0;
  /* See .c-mission-cta__overlay above — same photo, same measured
     shortfall (4.14:1 avg / 2.87:1 worst-case for the lede text, below
     the 4.5:1 minimum), same fix, same later .65 safety-margin bump. */
  background: rgba(38, 36, 33, 0.65);
}

.c-contact-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 700px) {
  /* clamp()'s 600px floor is wider than most phones, forcing this to
     overflow its already-94vw .o-container parent. Just fill the parent
     instead, matching the pattern used elsewhere on mobile. */
  .c-contact-hero__inner {
    max-width: 100%;
  }
}

.c-contact-hero__title {
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: 0.02em;
  width: fit-content;
  margin-inline: auto;
}

.c-contact-hero__title em {
  font-style: italic;
}

.c-contact-hero__lede {
  color: var(--color-snow-50);
  margin-inline: auto;
  margin-top: var(--space-4);
  font-size: var(--fs-base);
}

/* SC 1.4.1 Use of Color (A): matches the same non-color-alone treatment
   already used for .c-post__body a / .c-policy__body a — this inline
   mailto link was the one place that pattern got missed. currentColor
   (not a fixed token) so the underline automatically follows whichever
   text color is active at rest vs. hover below, instead of needing a
   separate override for each.
   SC 1.4.3 Contrast (Minimum) (AA), Round 55: blush-100 on this hero
   photo's scrim measured 4.36-4.38:1 live (composited-screenshot pixel
   sampling) — just under the 4.5:1 minimum for this 20px/400-weight
   text. Changed to snow-50, which already passed at 5.45:1 in the
   :hover rule below and matches the surrounding paragraph's own color,
   so this removes an incidental rest/hover two-tone rather than adding
   one. */
.c-contact-hero__lede a {
  color: var(--color-snow-50);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* Without this, the sitewide a:hover rule (elements.css) would swap in
   a dark espresso hover color here — nearly invisible against this
   section's own dark photo background. Dimmed via opacity instead of a
   color swap, matching .c-contact-form__submit:hover's technique in this
   same photo section, but NOT its exact 0.75 value: that button's text
   is --fs-xl (24px), WCAG's "large text" threshold (3:1 minimum), while
   this link is --fs-base (20px) regular weight — normal text, needing
   4.5:1. Verified live via composited-screenshot pixel sampling (not
   just computed style, since opacity's actual contrast only exists post-
   compositing): 0.75 measured 3.97:1 here, failing; 0.85 measured
   4.69:1, passing with a comfortable margin. */
.c-contact-hero__lede a:hover {
  opacity: 0.85;
}

.c-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-inline: auto;
  max-width: 900px;
  text-align: left;
}

.c-contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.c-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.c-contact-form__message {
  height: 100%;
}

.c-contact-form__message textarea {
  flex: 1;
}

.c-contact-form__label {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-snow-50);
}

.c-contact-form input,
.c-contact-form textarea {
  display: block;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--color-white);
  padding: calc(var(--space-3) - 2px);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}

/* SC 2.4.7 Focus Visible: the transparent border above ties in cascade
   specificity with elements.css's global `input:focus` rule, and this
   stylesheet loads later — so without this, focus produces no visible
   change at all. Restores the site's normal focus-border color here. */
.c-contact-form input:focus,
.c-contact-form textarea:focus {
  /* tan-500 measured 2.99:1 against white — below the 3:1 non-text
     minimum. tan-900 is what the chat widget's own focus state actually
     uses (`#elr-chat-form input:focus` in chat-widget.ts). */
  border-color: var(--color-tan-900);
}

/* Invalid fields need their own visible cue — previously the only signal
   was one shared message at the form's edge, so a field with an error
   looked identical to a valid one. */
.c-contact-form input[aria-invalid="true"],
.c-contact-form textarea[aria-invalid="true"] {
  border-color: var(--color-espresso-800);
  background: var(--color-blush-100);
}

/* A field is focused AND marked invalid on every single validation
   failure — not a rare edge case — and the two rules above/below both
   set border-color at equal specificity, so the invalid rule (later in
   source) always wins and the focus indicator silently disappears right
   when it's needed most. An outline doesn't touch border-color, so it
   can't lose that fight. */
.c-contact-form input:focus[aria-invalid="true"],
.c-contact-form textarea:focus[aria-invalid="true"] {
  outline: 2px solid var(--color-snow-50);
  outline-offset: 2px;
}

.c-contact-form input::placeholder,
.c-contact-form textarea::placeholder {
  color: var(--text-soft);
}

.c-contact-form textarea {
  height: 100%;
  min-height: 220px;
  resize: vertical;
}

/* Explains the placeholder asterisks used as the visual required-field
   cue elsewhere in this form (WCAG 3.3.2 — an unexplained "*" isn't
   sufficient on its own). */
.c-contact-form__legend {
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-snow-50);
  margin: 0;
}

.c-contact-form__submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: var(--space-2);
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-white);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--color-white);
  padding-bottom: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* blush-100 measured as low as ~2.17:1 against this photo+scrim
   background — a lighter color reads as "safer" but is actually a
   smaller contrast improvement over white than it looks. Dimming the
   already-passing white via opacity avoids the question entirely. */
.c-contact-form__submit:hover {
  opacity: 0.75;
}

.c-contact-form__submit[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 860px) {
  .c-contact-form {
    grid-template-columns: 1fr;
  }
}

.c-form-status {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--fs-sm);
  margin-top: var(--space-2);
}

.c-form-status.is-visible {
  display: block;
}

.c-form-status--ok {
  color: var(--color-white);
  font-size: var(--fs-xl);
}

.c-form-status--err {
  color: var(--color-white);
}

/* Elsewhere — blog + social link list paired with a photo
   ========================================================================== */
.c-elsewhere {
  padding-block: var(--space-8);
}

@media (min-width: 2075px) {
  .c-elsewhere {
    padding-bottom: calc(var(--space-8) + 3rem);
  }
}

.c-elsewhere .o-container {
  max-width: 85vw;
}

.c-elsewhere__grid {
  display: grid;
  /* auto, not a second 1fr: the media column should hug the photo's own
     width (capped at 460px below) instead of splitting the row 50/50
     and leaving leftover space to center the photo within. */
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: start;
}

.c-elsewhere__list {
  max-width: 40vw;
}

/* Caps the column at the same 460px the <img>'s own `sizes` attribute
   already declares as its intended desktop width. Without this, the
   column (and the image inside it) scales with the grid track's width —
   which itself scales with `.c-elsewhere .o-container`'s vw-based
   max-width — growing unbounded on wide viewports, since the image's
   height is aspect-ratio-driven off its own (unbounded) width. */
.c-elsewhere__media {
  width: 100%;
  max-width: 460px;
}

/* js/main.js's makeHeightSync() sets an inline height on .c-elsewhere__media
   to match .c-elsewhere__list's rendered height (see .c-erika__layout/
   .c-bio__row for the same pattern) — <picture> needs its own explicit
   height for that to reach the <img> below via height:100%, or the photo
   stays at its natural aspect-ratio height and leaves a gap. */
.c-elsewhere__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.c-elsewhere__item {
  display: block;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

/* SC 1.3.1: items are now <li>-wrapped (see .c-elsewhere__items), so
   :first-of-type on .c-elsewhere__item itself would match every item
   (each is alone within its own <li>) — target the first <li> instead. */
.c-elsewhere__items li:first-child .c-elsewhere__item {
  padding-top: 0;
}

.c-elsewhere__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-3xl);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-2);
  transition: color var(--transition-base);
}

.c-elsewhere__item:hover .c-elsewhere__title {
  color: var(--color-espresso-800);
}

.c-elsewhere__copy {
  color: var(--text-soft);
  margin-bottom: 0;
}

.c-elsewhere__media img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 861px) {
  .c-elsewhere__media img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

@media (max-width: 860px) {
  .c-elsewhere__grid {
    grid-template-columns: 1fr;
  }

  .c-elsewhere__list {
    max-width: 100%;
  }

  .c-elsewhere__media {
    max-width: 100%;
  }
}

/* Blog post — full-width hero band + 65vw article body
   ========================================================================== */
.c-post-hero__band {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  overflow: hidden;
  background: var(--color-espresso-900);
}

/* Height stays at the 1440px value (520px) below that width, then scales proportionally with viewport width above it instead of capping */
@media (min-width: 1440px) {
  .c-post-hero__band {
    height: clamp(520px, 36.11vw, 760px);
  }
}

/* At the 280px floor, the band's aspect ratio (~1.41 at typical phone
   widths) is SHORTER than most source photos' own aspect ratio (~1.5),
   so object-fit:cover was actually width-constrained with no top/bottom
   crop room at all — the entire photo height got squeezed in, including
   any plain-toned area (table, floor, wall), which then reads as a flat
   band once compressed. Lowering the floor flips this: the band becomes
   wider than the source photo's aspect, giving real vertical crop room
   so object-position can actually exclude unwanted areas. */
@media (max-width: 700px) {
  .c-post-hero__band {
    height: clamp(220px, 42vw, 520px);
  }
}


/* The <img>'s height:100% needs a parent with a DEFINITE height to resolve
   against. Its immediate parent is <picture>, which has no height of its
   own, so the percentage was falling back to auto — letting the image
   render at its full natural "cover" size (overflowing the band by
   hundreds of px) and get flush-clipped from the top by overflow:hidden,
   which made object-position have zero visible effect. */
.c-post-hero__band picture {
  display: block;
  width: 100%;
  height: 100%;
}

.c-post-hero__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  opacity: 0.65;
}

.c-post {
  padding-block: var(--space-7) var(--space-8);
}

.c-post .o-container {
  max-width: 85vw;
}

.c-post__breadcrumb {
  margin-bottom: var(--space-6);
}
.c-post__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.c-post__breadcrumb li {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}
.c-post__breadcrumb li + li::before {
  content: '/';
  padding-inline: 0.5em;
  color: var(--text-muted);
}
.c-post__breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--transition-base);
}
.c-post__breadcrumb a:hover { color: var(--text); }
/* Current-page indicator — same color + underline recipe as
   .c-nav__link[aria-current="page"] (tan-900, 4.72:1 against this same
   linen page background — the exact pairing that token is calibrated
   for), so the cue doesn't rely on color alone and matches the nav's
   active/hover treatment exactly. */
.c-post__breadcrumb [aria-current="page"] {
  color: var(--color-tan-900);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.c-post__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (max-width: 700px) {
  /* Category, date, and read time were competing for the same row on
     narrow phones, wrapping mid-word. Category + date stay side by side;
     read time wraps to its own row below via flex-basis. */
  .c-post__meta {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: var(--space-2);
  }

  .c-post__read-time {
    flex-basis: 100%;
  }
}

.c-post__cat {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.c-post__date {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

.c-post__read-time {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  color: var(--text-soft);
}
.c-post__read-time::before {
  content: '·';
  padding-inline-end: 0.5em;
}

.c-post__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

.c-post__byline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin-top: calc(var(--space-3) * -1);
  margin-bottom: var(--space-6);
}

.c-post__body p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: var(--space-4);
}

.c-post__body ul,
.c-post__body ol {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.c-post__body ol {
  list-style: decimal;
}

.c-post__body li {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: var(--space-2);
}

.c-post__body h2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--text);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.c-post__body a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.c-post__body a:hover {
  color: var(--color-espresso-800);
  border-bottom-color: currentColor;
}

.c-post__body strong {
  font-weight: 500;
  color: var(--text);
}

/* Blog consultation CTA — photo left, text right, contained
   ========================================================================== */
.c-post-consult {
  display: grid;
  grid-template-columns: 45fr 55fr;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-block: var(--space-8);
  padding-inline: calc((100vw - 85vw) / 2 + var(--space-4));
  background: var(--color-blush-100);
}

.c-post-consult__img {
  overflow: hidden;
}

/* The grid row stretches this column to match the text column's height
   (default align-items: stretch), but <picture> is a block box with no
   explicit height — height:auto on a block resolves against its content,
   not the grid-stretched parent, so the <img>'s height:100% below had
   nothing definite to resolve against and fell back to its natural
   aspect ratio instead of matching the text column. Giving <picture> an
   explicit 100% height closes that gap. */
.c-post-consult__img picture {
  width: 100%;
  height: 100%;
}

@media (min-width: 1620px) {
  .c-post-consult__img {
    max-height: 700px;
    align-self: center;
  }
}

@media (min-width: 2000px) {
  .c-post-consult__img {
    max-height: 900px;
  }
}

.c-post-consult__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.c-post-consult__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-7);
  background: transparent;
}

.c-post-consult__eyebrow {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-4);
}

.c-post-consult__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h3);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.c-post-consult__text {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 34ch;
  margin-bottom: var(--space-5);
}

.c-post-consult__btn {
  display: inline-block;
  background: var(--color-white);
  /* SC 1.4.11 Non-text Contrast (AA): white fill has no other boundary
     cue and computes to ~1.3:1 against this section's blush-100
     background (worse, ~1.1:1, on the 404 pages that reuse this class
     against the plain page background) — well under the 3:1 minimum.
     A 1px ink border restores a perceivable edge at rest without
     changing the requested white/black fill; it's invisible (by design,
     not a bug) once the background itself becomes ink on hover. */
  border: 1px solid var(--color-ink);
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.c-post-consult__btn:hover {
  background: var(--color-ink);
  color: var(--color-snow-50);
}

@media (max-width: 700px) {
  .c-post-consult {
    grid-template-columns: 1fr;
    /* Base rule's padding-inline formula targets 85vw and isn't scoped
       to mobile, so it was compounding with the body's own padding
       below. The blog article text sits in .o-container, which is 94vw
       but ALSO keeps its own 24px side padding — an actual inset of
       3vw + 24px, not a flat 3vw (confirmed by pixel-measuring both:
       article text at ~37px, this section at ~13px). Match that exact
       inset instead of a flat 3vw, same fix as the About page hero. */
    padding-inline: calc(3vw + var(--space-4));
  }
  .c-post-consult__img {
    max-height: 380px;
  }
  .c-post-consult__body {
    padding-block: var(--space-7);
    padding-inline: 0;
  }

  .c-post-consult__text {
    max-width: none;
  }
}

/* Blog related posts */
.c-post-related {
  background: var(--color-linen);
  padding-block: var(--space-8);
}

.c-post-related .o-container {
  max-width: 85vw;
}

.c-post-related__heading {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--text);
  margin-bottom: var(--space-6);
  /* h3 is block-level by default and would otherwise stretch to fill
     the container — shrink to the text's own width so JS can measure
     its actual rendered size, not the full container width. */
  width: fit-content;
}

.c-post-related__heading em { font-style: italic; }

.c-post-related__heading span {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.c-post-related__list {
  border-top: 1px solid var(--border-subtle);
}

.c-post-related__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
  padding-inline: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.c-post-related__row:hover {
  background: linear-gradient(to right, transparent, rgba(237, 220, 220, 0.22) 18%, rgba(237, 220, 220, 0.22) 82%, transparent);
}

.c-post-related__row:hover .c-post-related__title a,
.c-post-related__row:hover .c-post-related__date,
.c-post-related__row:hover .c-post-related__excerpt,
.c-post-related__row:hover .c-post-related__readmore {
  color: var(--color-espresso-800);
  opacity: 1;
}

.c-post-related__row:hover .c-post-related__img-wrap img {
  transform: scale(1.05);
}

.c-post-related__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.c-post-related__date {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.c-post-related__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: 1.65;
  transition: color 0.3s ease;
}

.c-post-related__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-xl);
  color: var(--text);
  line-height: 1.25;
}

.c-post-related__title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.2s;
}

.c-post-related__title a:hover { opacity: 0.65; }

.c-post-related__readmore {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-base);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.3s ease, opacity 0.2s;
}

.c-post-related__readmore:hover { opacity: 0.55; }

.c-post-related__img-wrap {
  width: 150px;
  aspect-ratio: 1;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-espresso-900);
}

/* Same fix as .c-post-consult__img picture: the thumbnail's height:100%
   needs a <picture> with a definite height to resolve against. */
.c-post-related__img-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.c-post-related__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.65;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.c-post-related__row:hover .c-post-related__img-wrap img {
  opacity: 0.45;
}

@media (max-width: 700px) {
  /* Matches the homepage's "Stay Informed" list (.c-latest): edge-to-edge
     rows (no side padding, relying on the 94vw container instead) and
     the same reduced title size. */
  .c-post-related__row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-3);
    padding-inline: 0;
  }
  .c-post-related__img-wrap { grid-column: 2; grid-row: 1 / 3; width: 90px; }
  .c-post-related__readmore { grid-column: 1; justify-self: start; }
  .c-post-related__excerpt { display: none; }
  .c-post-related__title { font-size: var(--fs-base); }
}

/* Blog index page */
.c-blog-index {
  padding-block: var(--space-7) var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.c-blog-index .o-container {
  max-width: 85vw;
}

/* Blog card grid (3-up below blog rows)
   ========================================================================== */
.c-blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.c-blog-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.c-blog-card__title a:hover { opacity: 1; }

.c-blog-card:hover .c-blog-card__title a { opacity: 0.65; }

.c-blog-card__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--color-espresso-900);
}

/* Same fix as .c-post-consult__img picture above: the thumbnail's
   height:100% needs a <picture> with a definite height to resolve
   against, or it falls back to the image's natural aspect ratio. */
.c-blog-card__img-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.c-blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.c-blog-card:hover .c-blog-card__img-wrap img {
  opacity: 0.45;
}

.c-blog-card__date {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: var(--space-2);
}

.c-blog-card__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h4);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.c-blog-card__title a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.c-blog-card__excerpt {
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.c-blog-card__readmore {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity 0.2s;
  margin-top: auto;
}

.c-blog-card__readmore:hover { color: var(--color-tan-900); }

@media (min-width: 1025px) and (max-width: 1919px) {
  .c-blog-card__title {
    font-size: 2rem;
  }
}

/* Tablet only — 3 narrower columns instead of 2 big ones; text/thumbnails
   scaled down to match. Scoped above 700px so phones (full-width single
   column, plenty of room) keep the larger sizes below. */
@media (min-width: 701px) and (max-width: 860px) {
  .c-blog-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  .c-blog-card__img-wrap {
    margin-bottom: var(--space-3);
  }
  .c-blog-card__title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-2);
  }
  .c-blog-card__excerpt {
    font-size: var(--fs-sm);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .c-blog-card__readmore {
    font-size: var(--fs-xs);
  }
}
@media (max-width: 700px) {
  .c-blog-card-grid { grid-template-columns: 1fr; }
}

/* Blog archive pagination */
.c-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.c-pagination__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.c-pagination__link,
.c-pagination__current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-espresso-800);
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.c-pagination__link {
  color: var(--text);
}

.c-pagination__link:hover {
  background: var(--color-espresso-800);
  color: var(--color-snow-50);
}

.c-pagination__current {
  background: var(--color-espresso-800);
  color: var(--color-snow-50);
}

.c-pagination__prev,
.c-pagination__next {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.c-pagination__prev:hover,
.c-pagination__next:hover {
  color: var(--color-tan-900);
}

/* Privacy / legal policy page
   ========================================================================== */
.c-policy {
  padding-block-start: var(--space-8);
  padding-block-end: var(--space-8);
}

.c-policy__header {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.c-policy__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.c-policy__meta {
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.c-policy__body h2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h4);
  color: var(--text);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}

.c-policy__body p,
.c-policy__body ul {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: var(--space-4);
}

.c-policy__body strong {
  font-weight: 500;
  color: var(--text);
}

.c-policy__body ul {
  list-style: disc;
  padding-inline-start: 1.5em;
}

.c-policy__body li {
  margin-bottom: var(--space-2);
}

.c-policy__body a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.c-policy__disclaimer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-xs) !important;
  letter-spacing: 0.05em;
  color: var(--text) !important;
}

/* Used standalone between two sections (homepage, testimonials, media,
   blog listing) rather than at the end of a text block — the preceding
   section already contributes its own padding-block, so the base
   margin-top/padding-top would double up into a very large gap. */
.c-policy__disclaimer--tight {
  margin-top: 0;
  padding-top: var(--space-4);
}

/* ── FAQ Accordion ────────────────────────────────────────────── */
.c-faq {
  padding-top: var(--space-8);
  /* No padding-bottom: the last .c-faq__section's own margin-bottom
     (also --space-8) is the sole source of bottom whitespace, matching
     the 96px top padding exactly. A separate padding-bottom here would
     stack on top of that margin instead of collapsing with it. */
  background: var(--bg);
}

.c-faq .o-container {
  max-width: 85vw;
}

.c-faq__section {
  margin-bottom: var(--space-8);
}

.c-faq__section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--text);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-espresso-800);
  margin: 0;
}

details.c-faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

details.c-faq__item:first-of-type {
  border-top: 1px solid var(--border-subtle);
}

.c-faq__item summary {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-xl);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-5);
  transition: color .2s ease;
}

.c-faq__item summary::-webkit-details-marker { display: none; }

/* Question text is a real <h3> for screen-reader heading navigation
   (45 items under 10 category h2s otherwise has no per-item landmark) —
   fully inherit the summary's own styling so it renders identically to
   plain text, since elements.css's h3 rule sets its own line-height and
   font-variation-settings that would otherwise shift it. Avoiding
   `display: contents` here on purpose — some browser/AT combinations
   have historically dropped elements from the accessibility tree when
   using it, which would defeat the point of adding the heading. */
.c-faq__item summary h3 {
  font: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-variation-settings: normal;
  margin: 0;
}

.c-faq__item summary .c-faq__icon {
  font-family: var(--font-sub);
  font-style: normal;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-espresso-800);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .25s ease;
}

.c-faq__item[open] > summary .c-faq__icon {
  transform: rotate(45deg);
}

.c-faq__item[open] > summary {
  color: var(--color-espresso-800);
}

/* Answer: always rendered as block; JS controls height for smooth animation */
.c-faq__item > .c-faq__answer {
  display: block;
  overflow: hidden;
  transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.28s ease;
}

.c-faq__answer {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.75;
  padding-bottom: var(--space-6);
}

@media (prefers-reduced-motion: reduce) {
  .c-faq__item > .c-faq__answer {
    transition: none;
  }
}

@media (max-width: 700px) {
  .c-faq__item summary {
    /* 24px, matching the desktop base rule's --fs-xl exactly. */
    padding-block: var(--space-4);
  }
}

/* ==========================================================================
   c-team-hero
   ========================================================================== */
.c-team-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  border-bottom: 1px solid var(--border-subtle);
}
.c-team-hero__img-wrap {
  position: relative;
  overflow: hidden;
}
.c-team-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* About and Testimonials source photos have Erika's face roughly a
   quarter of the way down the frame, with empty wall space above her
   head. Now that the hero crops to the (much shorter) text-column
   height instead of a tall min-height:100vh box, "center top" shows
   mostly that empty wall. Shift the crop window down so she's centered
   in frame instead. */
.c-team-hero__img--center-face {
  object-position: center 0%;
}
.c-team-hero--about .c-team-hero__img--center-face {
  object-position: center top;
}
/* Testimonials hero photo (casual-bench-close) is a close crop with
   Erika's face high in frame — shift down from the shared 0% so more
   of her crossed legs/lower body shows instead of empty space above
   her head. */
.c-team-hero--testimonials .c-team-hero__img--center-face {
  object-position: center 35%;
}
.c-team-hero__content {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 7rem) clamp(2rem, 5vw, 6rem);
}
.c-team-hero__eyebrow {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-5);
}
.c-team-hero__title {
  font-family: var(--font-heading);
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 48;
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.c-team-hero__title em { font-style: italic; }
.c-team-hero__body {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  color: var(--text-soft);
  line-height: 1.65;
}
@media (max-width: 700px) {
  .c-team-hero__body {
    font-size: 1.25rem;
  }
}
/* 861px and up (tablet through desktop), sitewide for every c-team-hero
   instance (About, Team, Practice Areas, Testimonials, FAQ, Media): the
   hero sizes to the text column's rendered height + a fixed 10rem
   top/bottom pad instead of stretching to min-height:100vh — otherwise
   the photo stretches to fill the whole screen on tall desktop monitors.
   Pure CSS, no JS: the photo column's only child is absolutely positioned
   (base rule above), so it has no intrinsic height of its own — the grid
   row's auto height comes from the text column alone, and the default
   align-items:stretch fills the photo column to match. This avoids any
   JS-driven layout pass, so there's no flash of the uncropped image
   before the crop settles. */
@media (min-width: 861px) {
  .c-team-hero {
    min-height: auto;
  }
  .c-team-hero__content {
    padding-block: 10rem;
  }
}

/* Very wide desktop (2000px+): the fixed 10rem hero pad reads a little
   tight at this scale, so give it more room. */
@media (min-width: 2000px) {
  .c-team-hero__content {
    padding-block: 15rem;
  }
}

@media (max-width: 860px) {
  .c-team-hero { grid-template-columns: 1fr; min-height: auto; }
  .c-team-hero__img-wrap { height: 115vw; min-height: 520px; }
  .c-team-hero__content {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
    padding-left: calc(7.5vw + var(--space-4));
    padding-right: calc(7.5vw + var(--space-4));
  }
}

@media (max-width: 700px) {
  /* 60vw/280px min renders landscape (wider than tall) on phones.
     Taller, portrait-oriented crop instead. */
  .c-team-hero__img-wrap { height: 125vw; min-height: 380px; }

  /* .c-team-hero__content isn't an .o-container, so the sitewide 94vw fix
     never reached it. Other sections on this page (e.g. "Why We Do This
     Work" below) use .o-container, which is 94vw but ALSO keeps its own
     24px side padding on top of that — an actual text inset of
     3vw + 24px per side, not a flat 94vw. Match that exact inset here
     instead of just 3vw, or this reads narrower/closer to the edge than
     the section right below it. Physical properties (not padding-inline)
     so this unambiguously overrides the 860px block's `padding:`
     shorthand above regardless of browser handling of mixed
     logical/physical cascades. */
  .c-team-hero__content {
    padding-left: calc(3vw + var(--space-4));
    padding-right: calc(3vw + var(--space-4));
  }
}

/* ==========================================================================
   c-team-intro
   ========================================================================== */
.c-team-intro {
  padding-block: var(--space-8);
  text-align: center;
}
.c-team-intro .o-container {
  max-width: 85vw;
}
.c-team-intro__eyebrow {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-4);
}
.c-team-intro__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.c-team-intro__title em { font-style: italic; }
.c-team-intro__body {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 55ch;
  margin-inline: auto;
}
@media (max-width: 700px) {
  .c-team-intro__body {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   c-erika (lead attorney feature)
   ========================================================================== */
.c-erika {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  background: var(--color-blush-100);
}
.c-erika--page-bg {
  background: var(--bg);
}
.c-erika .o-container {
  max-width: 85vw;
}
.c-erika__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  /* start, not stretch: the text column must render at its own natural
     content height so the JS height-sync below can actually measure it.
     With stretch, both columns get pre-inflated to match the taller
     photo before that measurement ever runs, making the sync a no-op. */
  align-items: start;
}
.c-erika__media {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.c-erika__eyebrow {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-3);
}
.c-erika__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-7);
}
.c-erika__img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Two-person portrait crop: show it uncropped at its natural ratio instead of
   the height-synced portrait frame (the JS sync's inline height is overridden). */
.c-erika__media--duo { height: auto !important; align-self: center; }
.c-erika__img--duo { height: auto; aspect-ratio: 4 / 5; flex: none; object-position: center; }
.c-erika__intro p,
.c-erika__extended p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.75;
}
.c-erika__intro p + p,
.c-erika__extended p + p { margin-top: var(--space-5); }
.c-erika__intro .c-serif-link {
  display: inline-block;
  margin-top: var(--space-5);
}
.c-erika__extended {
  margin-top: var(--space-7);
}
.c-erika__highlight {
  font-family: var(--font-body);
  font-size: var(--fs-xl);
  color: var(--color-espresso-800);
  line-height: 1.6;
  border-left: 3px solid var(--color-tan-500);
  padding-left: var(--space-5);
  margin-block: var(--space-6);
}
@media (max-width: 700px) {
  .c-erika__highlight {
    font-size: 1.25rem;
  }
}
@media (max-width: 860px) {
  .c-erika__layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   c-team-members (Irving, Maleha)
   ========================================================================== */
.c-team-members {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}
.c-team-members .o-container {
  max-width: 85vw;
}
.c-team-members__heading {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h2);
  color: var(--text);
  margin-bottom: var(--space-8);
}
.c-team-members__heading em { font-style: italic; }
.c-team-members__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-team-card {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-5);
}
.c-team-card__role {
  display: block;
  font-family: var(--font-sub);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-espresso-900);
  margin-bottom: var(--space-3);
}
.c-team-card__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-display-xlight);
  font-size: var(--fs-h3);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.c-team-card__name em { font-style: italic; }
.c-team-card__bio {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-soft);
  line-height: 1.75;
}
@media (max-width: 700px) {
  .c-team-members__grid { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* Mobile phones only — homepage sections and photos widened from 85vw.
   Placed last in the file so it wins the cascade over every base 85vw
   rule above at equal specificity, regardless of where each one lives. */
@media (max-width: 700px) {
  .c-hero .o-container,
  .c-about-intro .o-container,
  .c-about .o-container,
  .c-whatwedo .o-container,
  .c-latest .o-container,
  .c-contact-cta .o-container,
  .c-testimonial .o-container,
  .c-footer .o-container,
  .c-hero-media__frame {
    max-width: 94vw;
  }

  .c-about__media {
    width: 94vw;
  }

  /* On narrow phones, avatar + citation + controls don't fit in one row —
     force the controls onto their own row below the avatar/citation row
     instead of letting them wrap awkwardly mid-line. The footer sits in
     normal flow below the quote (see base rule above), so no fixed-height
     reservation is needed here. */
  .c-tslider__slide .c-testimonial__footer {
    flex-wrap: wrap;
    row-gap: var(--space-3);
  }

  .c-tslider__slide .c-tslider__controls {
    flex-basis: 100%;
    justify-content: center;
  }

  /* Quote set at --fs-2xl (36px) was too large to read comfortably on
     phones — drop to --fs-xl (24px), the token settings.css already
     designates for blockquotes. */
  .c-testimonial__quote {
    font-size: var(--fs-xl);
  }

  /* Homepage body paragraphs at --fs-base/--fs-lg (20px) felt too big.
     Scoped to these specific paragraphs rather than the tokens themselves,
     since --fs-base/--fs-lg are used sitewide, including desktop. */
  .c-about__body p,
  .c-whatwedo__cols p,
  .c-contact-cta__row p,
  .c-mission-cta__lede {
    font-size: 1.125rem;
  }
}
