/* ==========================================================================
   Ace California Law — front page (evolution of the current live design)
   Every color below was measured from acecalifornialaw.com on 2026-11-19.
   Type is the site's own pairing: Libre Baskerville + Roboto.
   ========================================================================== */

:root {
  --green: #0B322B;        /* nav bar, panels, headings, copyright bar */
  --green-2: #085446;      /* icon squares, form panel, CTA band */
  --green-ink: #091614;    /* darkest section background */
  --rust: #AD4F32;         /* buttons, links */
  --rust-dark: #7B3824;    /* card borders, footer headings, button hover */
  --rust-text: #98472E;    /* small labels on light backgrounds */
  --khaki: #BAAD8D;        /* labels and rules on dark backgrounds */
  --sand: #D9CFBA;
  --line: #DED7CE;
  --cream: #F8F6F1;
  --cream-2: #F7F4ED;
  --tint: #FBFAF7;         /* sand at 11% on white, as the reviews section uses */
  --text: #343434;
  --muted: #54595F;
  --on-dark: #F8F6F1;
  --on-dark-soft: #D1D8D3;
  --star: #F6BB06;

  --serif: "Libre Baskerville", Baskerville, Georgia, serif;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 8.5vw, 108px);
  --header-h: 104px;       /* contact row 38 + menu row 66 */
  --nav-h: 62px;           /* height once scrolled */
  --focus: var(--rust);
  --dots: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1.4px);
  --art-fill: rgba(173,79,50,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.18; color: var(--green); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--green); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- Shared pieces ---------- */
.kicker { display: flex; align-items: center; gap: 14px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-text); line-height: 1.6; }
.kicker--khaki { color: var(--khaki); }
.kicker--line::after, .kicker--lead::before, .kicker--both::before, .kicker--both::after { content: ""; flex: none; width: 64px; height: 1px; background: currentColor; opacity: .75; }
.kicker--both { justify-content: center; }
.kicker--both::before, .kicker--both::after { width: 40px; }
.kicker + h1, .kicker + h2 { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 22px; border: 1px solid transparent; border-radius: 4px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--lg { padding: 17px 28px; font-size: 0.94rem; }
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-dark); }
.btn--green { background: var(--green-2); color: #fff; }
.btn--green:hover { background: var(--green); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.arrow { flex: none; width: 18px; height: 11px; transition: transform .18s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; color: var(--rust); }
.link-arrow:hover { color: var(--rust-dark); }

.ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--green-2); color: #fff; }
.ico svg { width: 18px; height: 18px; fill: currentColor; }

.section { padding-block: var(--section-y); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head > p:not(.kicker) { margin-top: 16px; color: var(--muted); }
.section-head--light h2 { color: #fff; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 72px; align-items: end; max-width: none; }
.section-head--row > p:not(.kicker) { margin-top: 0; }
.section-foot { margin-top: clamp(32px, 4vw, 48px); }
.section-foot--center { text-align: center; }

/* ---------- Header: locked; white logo + contact row, green menu bar ---------- */
body { padding-top: var(--header-h); }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: #fff; color: #fff; --menu-h: 66px; --focus: #fff; transition: box-shadow .25s ease; }
.site-header { --collapse: .42s cubic-bezier(.3, .7, .2, 1); }   /* one timing for everything that moves when the header tightens */
.site-header.is-stuck { box-shadow: 0 6px 18px rgba(9,22,20,.3); }
.header-grid { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); }

.header-logo { grid-row: 1 / span 2; position: relative; display: flex; align-items: center; padding-right: 62px; margin-right: 14px; --cut: calc(var(--menu-h) * 30 / 66); --focus: var(--rust); transition: padding var(--collapse); }   /* one angle (30px run per 66px of height) in every header state; the hero photo uses the same */
/* The green menu bar: starts at a diagonal beside the logo and runs to the right edge of the screen.
   The logo and the contact row above it stay on the header's white. */
.header-logo::before, .header-logo::after { content: ""; position: absolute; z-index: -1; bottom: 0; height: var(--menu-h); left: calc(100% - var(--cut)); right: -100vw; pointer-events: none; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); transition: height var(--collapse); }
.header-logo::before { margin-left: -7px; background: var(--rust); }   /* thin rust edge along the cut */
.header-logo::after { background: var(--green); }
/* Full logo and small mark share one box so they can crossfade when the header tightens */
/* One logo image. When the header tightens it shrinks toward its top centre while the wordmark
   is wiped away from below, so the house mark is what remains: a single continuous move, no swap. */
.logo-box { position: relative; display: block; width: 139px; height: 84px; transition: height var(--collapse); }
.logo-full { position: absolute; left: 0; top: 0; height: 84px; width: auto; max-width: none; transform-origin: 50% 0; clip-path: inset(0 0 0 0); transition: transform var(--collapse), clip-path var(--collapse); }

.header-util { display: flex; justify-content: flex-end; align-items: center; gap: 30px; height: 38px; overflow: hidden; font-size: 0.84rem; line-height: 1; color: var(--muted); --focus: var(--rust); transition: height var(--collapse), opacity .3s ease; }
.header-util a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.header-util a:hover { color: var(--rust); }
.header-util svg { width: 17px; height: 17px; fill: var(--green-2); }
/* The phone number leads the row */
.header-util-phone { padding-left: 30px; border-left: 1px solid var(--line); }
.header-util-phone a { gap: 9px; }
.header-util-phone span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust-text); margin-right: 5px; }
.header-util-phone strong { font-family: var(--serif); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; color: var(--green); transition: color .15s ease; }
.header-util-phone svg { width: 17px; height: 17px; }
.header-util-phone a:hover strong { color: var(--rust); }
.header-main { display: flex; align-items: center; height: var(--menu-h); transition: height var(--collapse); }

.menu > ul { display: flex; align-items: center; }
.menu-link { display: inline-flex; align-items: center; gap: 8px; padding: 13px 15px; background: none; border: 0; color: #fff; font-family: var(--serif); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; line-height: 20px; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .18s ease, padding var(--collapse), font-size var(--collapse); }
.menu-link:hover, .menu-link.is-current, .has-sub.is-open > .menu-link { box-shadow: inset 0 -3px 0 var(--rust); }
.chev { width: 11px; height: 11px; transition: transform .18s ease; }
.has-sub.is-open .chev { transform: rotate(180deg); }

/* Mega menus: floating white panels. One shared backing (.mega-bg) slides and resizes
   between them, the contents crossfade, and everything eases in and out. */
.mega { --focus: var(--rust); color: var(--text); }
.mega-label { margin-bottom: 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; color: var(--rust-text); }
.mega strong { display: block; font-family: var(--serif); font-size: 0.98rem; font-weight: 600; line-height: 1.3; color: var(--green); transition: color .15s ease; }
.mega small { display: block; margin-top: 3px; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
.mega-bg { display: none; }

@media (min-width: 1101px) {
  .site-header { --ease: cubic-bezier(.22, .8, .26, 1); --mega-gap: 12px; }
  .header-grid { position: static; }
  .menu { align-self: stretch; display: flex; }
  .menu > ul > li { display: flex; align-items: center; }

  .mega-bg {
    display: block; position: absolute; top: calc(100% + var(--mega-gap)); left: 0; z-index: 4; width: 0; height: 0;
    background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -18px rgba(9,22,20,.5), 0 0 0 1px rgba(9,22,20,.07);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: var(--arrow-x, 50%) 0;
    transition: left .36s var(--ease), width .36s var(--ease), height .36s var(--ease), opacity .2s ease, transform .3s var(--ease), visibility 0s linear .22s;
  }
  .site-header.mega-open .mega-bg { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mega-bg.no-morph { transition: opacity .2s ease, transform .3s var(--ease), visibility 0s linear .22s; }
  .mega-arrow { position: absolute; top: -6px; left: -7px; width: 14px; height: 14px; background: #fff; border-radius: 3px 0 0 0; box-shadow: -1px -1px 0 rgba(9,22,20,.07); transform: translateX(var(--arrow-x, 0px)) rotate(45deg); transition: transform .36s var(--ease); }
  .mega-bg.no-morph .mega-arrow { transition: none; }

  .mega {
    position: absolute; top: calc(100% + var(--mega-gap)); left: 0; z-index: 5; width: var(--mega-w);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(var(--shift, 0px), var(--lift, -10px));
    transition: opacity .16s ease, transform .3s var(--ease), visibility 0s linear .2s;
  }
  .has-sub.is-open > .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .24s ease .08s, transform .36s var(--ease), visibility 0s; }
  .mega.no-anim { transition: none !important; }
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--mega-gap) * -1 - 4px); height: calc(var(--mega-gap) + 4px); }   /* keeps hover alive across the gap */

  .mega { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w, 250px); gap: 10px; padding: 10px; }
  .mega--practice { --mega-w: 1000px; --side-w: 252px; }
  .mega--about { --mega-w: 760px; --side-w: 220px; }
  .mega--areas { --mega-w: 700px; --side-w: 270px; }
  .mega-main { padding: 16px 8px 8px 10px; }
  .mega-main > .mega-label { padding-inline: 12px; margin-bottom: 8px; }

  /* contents arrive a beat after the panel, one after another */
  .has-sub.is-open .mega-grid > li, .has-sub.is-open .mega-cities > li, .has-sub.is-open .mega-feature, .has-sub.is-open .mega-side { animation: mega-item .46s var(--ease) both; animation-delay: calc(var(--n, 0) * 24ms + 90ms); }
  .mega-grid > li:nth-child(2), .mega-cities > li:nth-child(2), .mega-feature:nth-child(2) { --n: 1; }
  .mega-grid > li:nth-child(3), .mega-cities > li:nth-child(3) { --n: 2; }
  .mega-grid > li:nth-child(4), .mega-cities > li:nth-child(4) { --n: 3; }
  .mega-grid > li:nth-child(5), .mega-cities > li:nth-child(5) { --n: 4; }
  .mega-grid > li:nth-child(6), .mega-cities > li:nth-child(6) { --n: 5; }
  .mega-grid > li:nth-child(7), .mega-cities > li:nth-child(7) { --n: 6; }
  .mega-grid > li:nth-child(8), .mega-cities > li:nth-child(8) { --n: 7; }
  .mega-grid > li:nth-child(9), .mega-cities > li:nth-child(9) { --n: 8; }
  .mega-cities > li:nth-child(10) { --n: 9; }
  .mega-side { --n: 4; }

  /* practice areas */
  .mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .mega-grid a { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 13px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: 10px; transition: background-color .18s ease; }
  .mega-grid svg { width: 32px; height: 32px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .18s ease; }
  .mega-grid strong { white-space: nowrap; }
  .mega-grid a:hover, .mega-cities a:hover { background: var(--cream); }
  .mega-grid a:hover { --art-fill: rgba(173,79,50,.42); }
  .mega-main a:hover strong, .mega-cities a:hover { color: var(--rust-dark); }

  /* green side panel: the same in all three menus */
  .mega-side { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 22px 22px; background: var(--dots) 0 0 / 5px 5px, var(--green); border-radius: 10px; color: var(--on-dark-soft); --focus: #fff; }
  .mega-side .mega-label { color: var(--khaki); margin-bottom: 12px; }
  .mega-side strong { color: #fff; }
  .mega-side small { color: var(--on-dark-soft); }
  .mega-title { font-family: var(--serif); font-size: 1.22rem; line-height: 1.28; letter-spacing: -0.02em; color: #fff; }
  .mega-side > p:not(.mega-label):not(.mega-title) { margin-top: 10px; font-size: 0.9rem; line-height: 1.55; }
  .mega-side .btn { margin-top: auto; padding: 12px 14px; font-size: 0.78rem; letter-spacing: 0.06em; white-space: nowrap; }
  .mega-all { margin: 14px 0 6px 12px; font-size: 0.9rem; font-weight: 600; }
  .mega--practice .mega-side > p:last-of-type { margin-bottom: 20px; }
  .mega-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--serif); font-weight: 600; color: #fff; }
  .mega-phone svg { width: 15px; height: 15px; fill: var(--khaki); }
  .mega-phone:hover { color: var(--khaki); }

  /* about */
  .mega-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; }
  .mega-feature { position: relative; isolation: isolate; display: block; min-height: 250px; border-radius: 10px; overflow: hidden; background: var(--green); }
  .mega-feature-img { position: absolute; inset: 0; z-index: -2; display: block; }
  .mega-feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; transition: transform .7s var(--ease); }
  .mega-feature-img--faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-feature-img--faces img { object-position: 50% 30%; }
  .mega-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,22,20,0) 40%, rgba(9,22,20,.86) 100%); }
  .mega-feature:hover .mega-feature-img img { transform: scale(1.06); }
  .mega-feature-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; }
  .mega-feature-text strong { font-size: 1.12rem; font-weight: 400; letter-spacing: -0.015em; color: #fff; }
  .mega-feature-text small { color: var(--on-dark-soft); }
  .mega-feature:hover strong { color: #fff !important; text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .mega-links { display: grid; width: 100%; }
  .mega-links a { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(232,236,231,.16); font-family: var(--serif); color: #fff; }
  .mega-links li:first-child a { border-top: 0; padding-top: 2px; }
  .mega-links .arrow { color: var(--khaki); }
  .mega-links a:hover { color: var(--khaki); }
  .mega-links a:hover .arrow { transform: translateX(4px); }

  /* areas we serve */
  .mega-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6px; }
  .mega-cities a { display: block; padding: 8px 12px; border-radius: 8px; font-family: var(--serif); font-size: 0.95rem; font-weight: 600; white-space: nowrap; color: var(--green); transition: background-color .15s ease, color .15s ease; }
  .mega-offices { display: grid; gap: 18px; width: 100%; }
  .mega-offices a { display: flex; gap: 12px; }
  .mega-offices svg { flex: none; width: 17px; height: 17px; margin-top: 2px; fill: var(--khaki); }
  .mega-offices a:hover strong { color: var(--khaki); }
}
@keyframes mega-item { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.header-call { display: none; place-items: center; flex: none; width: 40px; height: 40px; margin-left: auto; border-radius: 8px; background: var(--green-2); color: #fff; }
.header-call svg { width: 18px; height: 18px; fill: currentColor; }
.header-call:hover { background: var(--rust); }
.navbar-cta { margin-left: auto; padding: 12px 20px; white-space: nowrap; transition: padding var(--collapse), margin var(--collapse), background-color .18s ease; }
.menu-toggle { display: none; align-items: center; gap: 10px; margin-left: 14px; padding: 10px 0 10px 4px; background: none; border: 0; color: #fff; font-family: var(--serif); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.menu-toggle-bars { display: grid; gap: 5px; width: 24px; }
.menu-toggle-bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scrolled: contact row folds away, logo reduces to the mark, a call button takes the phone's place */
@media (min-width: 1101px) {
  .site-header.is-stuck { --menu-h: 62px; }
  .site-header.is-stuck .header-util { height: 0; opacity: 0; }
  .site-header.is-stuck .header-logo { padding-right: 62px; }
  /* the logo block keeps its width when the header tightens, so the diagonal edge stays put */
  .site-header.is-stuck .logo-box { height: 42px; }
  .site-header.is-stuck .logo-full { transform: scale(.72); clip-path: inset(0 0 32.5% 0); }   /* the house ends at 66% of the image and the wordmark starts at 70%; cut in the gap */
  /* the call button grows into the row instead of popping in */
  .header-call { display: grid; width: 0; opacity: 0; visibility: hidden; overflow: hidden; transition: width var(--collapse), opacity .3s ease, visibility 0s linear .42s, background-color .18s ease; }
  .navbar-cta { margin-left: 0; }
  .site-header.is-stuck .header-call { width: 40px; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-header.is-stuck .navbar-cta { margin-left: 10px; padding-inline: 17px; }
  /* the call button joins the row when scrolled; the menu tightens a little to make room */
  .site-header.is-stuck .menu-link { padding-inline: 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--green); color: #fff; --focus: #fff; overflow: hidden; }
/* Warm light from the atrium photo, glowing behind the picture */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 40% 78% at 79% 52%, rgba(244,167,144,.30) 0%, rgba(244,167,144,.12) 45%, rgba(244,167,144,0) 78%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dots) 0 0 / 5px 5px, linear-gradient(180deg, rgba(9,22,20,0) 55%, rgba(9,22,20,.28) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 6vw, 76px) clamp(48px, 6vw, 76px); }
.hero-eyebrow { font-size: 0.8125rem; gap: 12px; }
.hero-eyebrow::before { width: 28px; }
.eyebrow-lead { color: var(--on-dark-soft); }
.hero-eyebrow .rotator { color: var(--khaki); font-weight: 600; margin-left: -4px; }
.rotator { display: block; height: 1.6em; overflow: hidden; }
.rotator-word { display: block; white-space: nowrap; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease; }
.rotator-word.is-leaving { transform: translateY(-100%); opacity: 0; }
.rotator-word.is-entering { transform: translateY(100%); opacity: 0; transition: none; }
.hero h1 { font-size: clamp(2.1rem, 3.75vw, 3.25rem); line-height: 1.16; color: #F1F1F1; text-wrap: balance; }
.hero-lede { margin-top: 24px; max-width: 34em; font-size: 1.125rem; line-height: 1.55; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.hero-note { max-width: 13em; font-size: 0.95rem; line-height: 1.45; color: var(--on-dark-soft); }
.hero-note strong { display: block; font-weight: 500; color: #fff; }
.hero-langs { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(186,173,141,.32); max-width: 34em; font-size: 0.97rem; line-height: 1.5; color: var(--on-dark-soft); }
.hero-langs svg { flex: none; width: 22px; height: 22px; color: var(--khaki); }
.hero-langs strong { font-weight: 500; color: #fff; }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 50% 92%; border-radius: 8px; box-shadow: 0 18px 44px rgba(4,20,17,.5); }

/* ---------- Hero with right-half slideshow (index.html) ---------- */
/* The photo's diagonal leans the same way as the header's but a little more upright (about 18deg vs 24deg).
   The text blocks narrow as they go down so they follow that diagonal. */
.hero--slides { --wrap-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); --media-left: 47vw; --copy: calc(var(--media-left) - var(--wrap-left)); }
.hero--slides::before { display: none; }
.hero--slides .hero-grid { display: block; }
.hero--slides .hero-copy { max-width: calc(var(--copy) + 90px); }
.hero--slides .hero-lede { max-width: calc(var(--copy) + 40px); }
.hero--slides .hero-actions { max-width: calc(var(--copy) + 14px); }
.hero--slides .hero-langs { max-width: calc(var(--copy) - 16px); }

.hero-media { position: absolute; top: 0; bottom: 0; right: 0; left: var(--media-left); container-type: size; }
/* same diagonal as the header and the consultation card (no rust edge here: the photo meets the green directly) */
.slides { --slant: calc(100cqh * 0.33); position: absolute; inset: 0; overflow: hidden; background: var(--green-ink); clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
/* Parallax: the photo is a little taller than its frame and slides down inside it as the page scrolls,
   so it appears to move more slowly than the text. --p (0 to 1) is set from the scroll position. */
.hero-media { --room: 90px; }
.slide img { width: 100%; height: calc(100% + var(--room)); margin-top: calc(var(--room) * -1); object-fit: cover; object-position: var(--pos, 50% 30%); translate: 0 calc(var(--p, 0) * var(--room)); will-change: translate; }
@media (prefers-reduced-motion: reduce) { .hero-media { --room: 0px; } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,20,.18) 0%, rgba(9,22,20,0) 22%, rgba(9,22,20,0) 58%, rgba(9,22,20,.72) 100%); pointer-events: none; }
.slide figcaption { position: absolute; z-index: 1; left: 64px; right: 150px; bottom: 30px; }
.slide figcaption a { display: inline-block; }
.slide figcaption strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.25; color: #fff; }
.slide figcaption span { display: block; margin-top: 5px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--khaki); }
.slide figcaption a:hover strong { text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active img { animation: slide-drift 8s ease-out both; }
}
@keyframes slide-drift { from { transform: scale(1.06); } to { transform: none; } }

.slide-controls { position: absolute; z-index: 2; right: max(var(--gutter), 28px); bottom: 30px; display: flex; align-items: center; gap: 8px; }
.slide-dot { position: relative; width: 26px; height: 22px; padding: 0; background: none; border: 0; }
.slide-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255,255,255,.4); transition: background-color .2s ease; }
.slide-dot:hover::before { background: #fff; }
.slide-dot.is-active::before { background: var(--khaki); }

/* group photo + result figure in the intro (replaces the three strips on this version) */
.intro-photo { position: relative; margin: 0 22px 26px 0; }
.intro-photo img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 50% 92%; border-radius: 8px; box-shadow: 0 14px 34px rgba(11,50,43,.22); }
.intro-photo figcaption { position: absolute; right: -22px; bottom: -26px; display: grid; gap: 6px; width: 200px; padding: 20px 22px 18px; background: var(--green); border-radius: 8px; border-bottom: 3px solid var(--khaki); color: #fff; box-shadow: 0 10px 24px rgba(9,22,20,.3); }
.intro-photo strong { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.intro-photo figcaption > span { font-size: 0.82rem; line-height: 1.4; color: var(--on-dark-soft); }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; padding-bottom: 44px; }
.triptych img { width: 100%; aspect-ratio: 190 / 500; object-fit: cover; border-radius: 4px; }
.triptych-stat { position: relative; transform: translateY(44px); border-radius: 4px; overflow: hidden; }
.triptych-stat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,20,.2) 30%, rgba(9,22,20,.88) 82%); }
.triptych-stat p { position: absolute; inset: auto 10px 22px; z-index: 1; display: grid; gap: 6px; text-align: center; color: #fff; }
.triptych-stat strong { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.triptych-stat span span, .triptych-stat p > span { font-family: var(--serif); font-size: 0.8rem; line-height: 1.4; }
.intro-copy h2::after { content: ""; display: block; width: 60px; height: 2px; margin-top: 26px; background: var(--rust); }
.intro-copy > p:not(.kicker) { margin-top: 24px; max-width: 38em; }
.intro-copy .link-arrow { margin-top: 18px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; border-block: 1px solid var(--line); }
.quick li + li { border-left: 1px solid var(--line); }
.quick a { display: grid; justify-items: center; gap: 10px; height: 100%; padding: 20px 8px 18px; text-align: center; font-size: 0.82rem; font-weight: 500; line-height: 1.35; color: #103C33; transition: background-color .18s ease; }
.quick a:hover { background: var(--cream); }
.quick svg { width: 30px; height: 30px; color: var(--rust); }

/* Four featured matters in the intro: plain rows, no backgrounds or dividers */
.matters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 36px; margin-top: 26px; }
.matters a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 100%; padding: 11px 2px; }
.matter-art { width: 40px; height: 40px; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.matters strong { display: block; font-family: var(--serif); font-size: 0.98rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--green); transition: color .2s ease; }
.matters small { display: block; margin-top: 2px; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.matters .arrow { color: var(--khaki); transition: transform .2s ease, color .2s ease; }
.matters a:hover { --art-fill: rgba(173,79,50,.42); }
.matters a:hover strong { color: var(--rust-dark); }
.matters a:hover .arrow { color: var(--rust); transform: translateX(4px); }
.intro-links { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 22px !important; }
.intro-copy .intro-links .link-arrow { margin-top: 0; }

/* ---------- Practice areas ---------- */
.practice { background: var(--dots) 0 0 / 5px 5px, var(--green); --focus: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 8px; border-bottom: 3px solid var(--rust-dark); overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,.35); --focus: var(--rust); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.4); }
.card-art { display: grid; place-items: center; height: 136px; background: var(--cream); border-bottom: 1px solid var(--line); }
.card-art svg, .post-art svg { width: 84px; height: 84px; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 26px 26px 22px; text-align: center; }
.card-body h3 { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.25; color: var(--green); }
.card-body h3 a:hover { color: var(--rust-dark); }
.card-body > p { margin-top: 12px; font-size: 0.92rem; line-height: 1.55; }
.card-more { margin-top: auto !important; padding-top: 16px; }
.card-more a { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rust); }
.card-more a:hover { color: var(--rust-dark); }
.card-more a:hover .arrow { transform: translateX(4px); }
.card-read { padding: 14px 22px 16px; border-top: 1px solid var(--line); background: var(--tint); text-align: center; font-size: 0.86rem; line-height: 1.45; }
.card-read span { display: block; margin-bottom: 3px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust-text); }
.card-read a { color: var(--green); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.card-read a:hover { text-decoration-color: var(--rust); }

/* Practice areas, minimal: a grid of cells divided by hairlines, no cards */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(232,236,231,.16); border-block: 1px solid rgba(232,236,231,.16); }
.area { position: relative; display: flex; flex-direction: column; padding: 34px 32px 30px; background: var(--green); color: var(--on-dark-soft); --art-fill: rgba(186,173,141,.2); transition: background-color .25s ease; }
.area:hover, .area:focus-within { background: #0F3D34; }
.area-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.area-art { width: 44px; height: 44px; fill: none; stroke: var(--khaki); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.area-top .arrow { margin-top: 8px; color: rgba(186,173,141,.55); transition: transform .25s ease, color .25s ease; }
.area:hover .arrow { color: #fff; transform: translateX(5px); }
.area h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 400; line-height: 1.28; letter-spacing: -0.02em; color: #fff; }
.area-link::after { content: ""; position: absolute; inset: 0; }   /* whole cell is the link */
.area > p { margin-top: 12px; font-size: 0.93rem; line-height: 1.6; }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.person a { display: block; height: 100%; background: var(--cream); border-radius: 8px; border-bottom: 3px solid var(--khaki); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.person a:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(11,50,43,.16); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person-text { padding: 16px 18px 18px; }
.person h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--green); }
.person p { margin-top: 4px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-text); }

/* Team carousel: photo cards with the name and title over the picture, bio on hover */
.team-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.team-track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .team-track { cursor: grab; user-select: none; -webkit-user-select: none; }
  .team-track.is-dragging { cursor: grabbing; }
}
.team-track.is-dragging, .team-track.is-settling { scroll-snap-type: none; }
.team-track.is-dragging .member a { pointer-events: none; }
.member img { -webkit-user-drag: none; }
.member { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.member a { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--green); color: #fff; --focus: var(--rust); }
.member img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.8,.26,1); }
.member a::before, .member a::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .4s ease; }
.member a::before { background: linear-gradient(180deg, rgba(9,22,20,0) 46%, rgba(9,22,20,.84) 100%); }
.member a::after { background: linear-gradient(180deg, rgba(11,50,43,.3) 0%, rgba(11,50,43,.93) 58%); opacity: 0; }
.member-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 18px; }
.member h3 { font-family: var(--serif); font-size: 1.14rem; font-weight: 400; line-height: 1.25; letter-spacing: -0.015em; }
.member-role { margin-top: 5px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.4; color: var(--khaki); }
.member-extra { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.22,.8,.26,1), opacity .3s ease; }
.member-extra > div { overflow: hidden; }
.member-extra p { margin-top: 12px; font-size: 0.86rem; line-height: 1.5; color: var(--on-dark-soft); }
.member-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.member a:hover img, .member a:focus-visible img { transform: scale(1.05); }
.member a:hover::after, .member a:focus-visible::after { opacity: 1; }
.member a:hover .member-extra, .member a:focus-visible .member-extra { grid-template-rows: 1fr; opacity: 1; }
.member a:hover .arrow { transform: translateX(4px); }
.member--all a { background: var(--dots) 0 0 / 5px 5px, var(--green); }
.member--all a::before, .member--all a::after { display: none; }
.member--all h3 { font-size: 1.5rem; max-width: 7em; }
.member--all .member-more { margin-top: 18px; color: var(--khaki); }
.member--all a:hover .member-more { color: #fff; }

.carousel-foot { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.carousel-progress { position: relative; flex: 1; height: 2px; margin-right: 16px; background: var(--line); border-radius: 2px; overflow: hidden; }
.carousel-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--green); border-radius: 2px; }
.carousel-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--green); border-radius: 50%; color: var(--green); transition: background-color .18s ease, color .18s ease, opacity .18s ease; }
.carousel-btn:hover:not(:disabled) { background: var(--green); color: #fff; }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-btn--prev .arrow { transform: rotate(180deg); }

/* ---------- Reviews: speech bubbles ---------- */
.reviews { background: var(--tint); }
.review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: end; }
.review figure { margin: 0; }
.bubble-slot { position: relative; }
.bubble { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 18px; background: #fff; border: 1px solid #ECE6DA; border-radius: 16px; box-shadow: 0 1px 2px rgba(11,50,43,.05), 0 18px 36px -18px rgba(11,50,43,.22); }
.bubble::after { content: ""; position: absolute; left: 35px; bottom: -9px; width: 16px; height: 16px; background: #fff; border-right: 1px solid #ECE6DA; border-bottom: 1px solid #ECE6DA; border-radius: 0 0 4px 0; transform: rotate(45deg); }
.stars { display: flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; fill: var(--star); }
.stars .off { fill: #DDD8CE; }
.bubble blockquote { flex: 1 1 auto; min-height: 0; overflow: hidden; margin-top: 14px; padding-bottom: 10px; font-family: var(--serif); font-size: 1rem; line-height: 1.72; color: var(--green); }
/* with the script running: every bubble is four lines tall, longer quotes are cut with a Read more button */
.review-list.is-enhanced .bubble blockquote { min-height: calc(4 * 1.72em + 10px); padding-bottom: 0; margin-bottom: 10px; }
.review-list.is-enhanced .review:not(.is-open) blockquote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; min-height: calc(4 * 1.72em); }
.review-more { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; background: none; border: 0; font-size: 0.84rem; font-weight: 600; color: var(--rust); }
.review-more:hover { color: var(--rust-dark); }
.review-more .chev { transform: rotate(180deg); }
.review-more[aria-expanded="true"] .chev { transform: none; }
.review-more.is-idle { visibility: hidden; }
/* open bubble (desktop): floats and grows upward from its tail; everything else steps back */
.review.is-open { position: relative; z-index: 3; }
.bubble.is-floating { position: absolute; left: 0; right: 0; bottom: 0; transition: height .42s cubic-bezier(.22,.8,.26,1), box-shadow .3s ease; }
.review.is-open .bubble.is-floating { box-shadow: 0 2px 4px rgba(11,50,43,.06), 0 30px 60px -20px rgba(11,50,43,.4); }
.reviews .section-head, .reviews .section-foot, .review { transition: opacity .3s ease; }
.reviews.has-open .section-head, .reviews.has-open .section-foot, .reviews.has-open .review:not(.is-open) { opacity: .28; }
.review-by { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-left: 20px; }
.avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--on-dark); font-family: var(--serif); font-size: 1.1rem; }
.review-by strong { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--green); }
.review-by small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }

/* ---------- Why choose: statement beside a wide photo of the place, four reasons in a row below ---------- */
.why { background: var(--dots) 0 0 / 5px 5px, var(--green); color: var(--on-dark-soft); --focus: #fff; }
.why-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 84px); align-items: center; }
.why-body h2 { color: var(--on-dark); }
.why-lede { margin-top: 20px; max-width: 34em; line-height: 1.75; }
.why-body .btn { margin-top: 30px; }
.why-photo { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(4,20,17,.75); }
.why-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.why-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(28px, 3.4vw, 48px); margin-top: clamp(48px, 6vw, 76px); }
.why-points svg { width: 42px; height: 42px; margin-bottom: 18px; fill: none; stroke: var(--khaki); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; --art-fill: rgba(186,173,141,.2); }
.why-points h3 { font-family: var(--serif); font-size: 1.14rem; font-weight: 400; line-height: 1.35; letter-spacing: -0.015em; color: var(--on-dark); }
.why-points p { margin-top: 10px; font-size: 0.92rem; line-height: 1.62; }

/* ---------- Community ---------- */
.community { background: var(--cream-2); }
.community-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.community-lede { margin-top: 22px; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.26rem); line-height: 1.55; letter-spacing: -0.01em; color: var(--green); }
.community-lede + p { margin-top: 16px; max-width: 38em; }
.book { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.book img { width: 100%; border-radius: 3px; box-shadow: 0 12px 24px -10px rgba(11,50,43,.45); }
.book-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust-text); }
.book h3 { margin-top: 6px; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; color: var(--green); }
.book h3 + p { margin-top: 6px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.book .link-arrow { margin-top: 12px; }
.community-photo { margin: 0; }
.community-photo a { position: relative; isolation: isolate; display: block; border-radius: 12px; overflow: hidden; color: #fff; box-shadow: 0 24px 50px -26px rgba(11,50,43,.55); }
.community-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; transition: transform .7s cubic-bezier(.22,.8,.26,1); }
.community-photo a:hover img { transform: scale(1.04); }
.community-photo a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,20,0) 52%, rgba(9,22,20,.86) 100%); }
.community-photo figcaption { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 24px; display: grid; gap: 6px; }
.community-photo span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--khaki); }
.community-photo strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.3; letter-spacing: -0.015em; }
.community-photo em { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-style: normal; font-size: 0.9rem; font-weight: 500; color: var(--khaki); }
.community-photo a:hover em { color: #fff; }
.community-photo a:hover .arrow { transform: translateX(4px); }

/* ---------- Blog: the latest article leads, two more beside it ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.topic { padding: 9px 16px; background: none; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; font-weight: 500; line-height: 1.2; color: var(--green); transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.topic:hover { border-color: var(--green); }
.topic.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.journal { transition: opacity .2s ease, transform .3s cubic-bezier(.22,.8,.26,1); }
.journal.is-switching { opacity: 0; transform: translateY(8px); }
.head-side p { color: var(--muted); }
.head-side .link-arrow { margin-top: 14px; }
.journal { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 60px); }
.journal-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 0.84rem; color: var(--muted); }
.journal-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust-text); }
.journal-tag:hover { text-decoration: underline; text-underline-offset: 4px; }
.journal h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.journal h3 a { transition: color .18s ease; }

.journal-lead { display: flex; flex-direction: column; overflow: hidden; background: var(--dots) 0 0 / 5px 5px, var(--green); border-radius: 12px; color: var(--on-dark-soft); --focus: #fff; }
.journal-figure { display: block; overflow: hidden; }
.journal-figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .7s cubic-bezier(.22,.8,.26,1); }
.journal-lead:hover .journal-figure img { transform: scale(1.04); }
.journal-lead-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.2vw, 40px) clamp(26px, 3vw, 36px); }
.journal-lead .journal-meta { color: var(--on-dark-soft); }
.journal-lead .journal-tag { color: var(--khaki); }
.journal-lead h3 { margin-top: 16px; font-size: clamp(1.3rem, 1.95vw, 1.62rem); line-height: 1.26; color: #fff; }
.journal-lead h3 a:hover { color: var(--khaki); }
.journal-lead-body > p:not(.journal-meta) { margin-top: 12px; font-size: 0.97rem; line-height: 1.62; }
.journal-lead .link-arrow { margin-top: auto; padding-top: 22px; color: var(--khaki); }
.journal-lead .link-arrow:hover { color: #fff; }

.journal-list { display: flex; flex-direction: column; justify-content: center; }
.journal-item { padding-block: 4px 30px; }
.journal-item + .journal-item { padding-block: 30px 4px; border-top: 1px solid var(--line); }
.journal-item h3 { margin-top: 12px; font-size: 1.28rem; line-height: 1.32; color: var(--green); }
.journal-item h3 a:hover { color: var(--rust-dark); }
.journal-item > p:not(.journal-meta) { margin-top: 10px; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.journal-item .link-arrow { margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta { padding-block: clamp(56px, 7.5vw, 96px); background: var(--cream-2); }
.cta-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; background: var(--dots) 0 0 / 5px 5px, var(--green); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(11,50,43,.55); color: var(--on-dark-soft); --focus: #fff; }
.cta-copy { padding: clamp(32px, 4.6vw, 60px) clamp(16px, 2vw, 24px) clamp(34px, 4.6vw, 60px) clamp(28px, 4.6vw, 60px); }
.cta-copy h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); color: #fff; }
.cta-copy > p:not(.kicker) { margin-top: 16px; max-width: 33em; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 30px; }
.cta-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.25; color: #fff; }
.cta-phone svg { width: 20px; height: 20px; fill: var(--khaki); }
.cta-phone small { display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--khaki); }
.cta-phone:hover { color: var(--khaki); }
/* photo behind the same diagonal as the hero */
.cta-photo { position: relative; margin: 0; min-height: 320px; container-type: size; }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 16%; clip-path: polygon(calc(100cqh * 0.33) 0, 100% 0, 100% 100%, 0 100%); }
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,20,0) 55%, rgba(9,22,20,.78) 100%); clip-path: polygon(calc(100cqh * 0.33) 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.cta-photo figcaption { position: absolute; z-index: 1; right: 26px; bottom: 22px; text-align: right; }
.cta-photo strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; color: #fff; }
.cta-photo span { display: block; margin-top: 4px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--khaki); }

/* ---------- Contact: details on the green, the form on a light panel ---------- */
.contact { background: var(--dots) 0 0 / 5px 5px, var(--green); color: var(--on-dark-soft); --focus: #fff; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.contact-info h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); color: #fff; }
.contact-lede { margin-top: 18px; max-width: 26em; font-size: 1.05rem; line-height: 1.7; }
/* one aligned list: icon, label, value. Every row starts on the same three edges. */
.contact-list { display: grid; gap: 20px; margin-top: 40px; }
.contact-list a { display: grid; grid-template-columns: 18px 138px minmax(0, 1fr); column-gap: 14px; align-items: baseline; font-family: var(--serif); font-size: 0.98rem; line-height: 1.5; color: #fff; overflow-wrap: anywhere; transition: color .15s ease; }
.contact-list svg { align-self: start; width: 17px; height: 17px; margin-top: 4px; fill: var(--khaki); }
.contact-list small { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--khaki); }
.contact-list a:hover { color: var(--khaki); }

.form { display: grid; gap: 20px; padding: clamp(26px, 3.6vw, 44px); background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -28px rgba(4,20,17,.7); color: var(--text); --focus: var(--green-2); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--green); }
.field label span { color: var(--rust); }
.field input, .field textarea { width: 100%; padding: 13px 15px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 1rem; line-height: 1.4; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; min-height: 7.5em; }
.field input:hover, .field textarea:hover { border-color: var(--khaki); }
.field input:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(8,84,70,.16); }
.field [aria-invalid="true"] { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(173,79,50,.14); }
.error { font-size: 0.84rem; font-weight: 500; color: #A1321B; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-2); }
.check a { color: var(--green); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.check a:hover { text-decoration-color: var(--rust); }
.form .btn { width: 100%; }
.form-done { padding: 13px 16px; background: #E9F1EC; border-radius: 8px; font-size: 0.95rem; color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: #fff; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1.25fr); gap: 40px 48px; padding-block: 64px 52px; }
.footer-brand img { width: 190px; }
.footer-brand > p { margin-top: 18px; font-weight: 500; line-height: 1.5; }
.footer-contact { display: grid; gap: 8px; margin-top: 16px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--green-2); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; transition: background-color .18s ease; }
.social a:hover { background: var(--rust); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer h2 { margin-bottom: 18px; font-family: var(--sans); font-size: 0.94rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; color: var(--rust-dark); }
.footer h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; line-height: 1.3; color: var(--green); }
.footer h3 + p { margin-top: 4px; line-height: 1.5; }
.footer p + h3 { margin-top: 20px; }
.footer nav li + li { margin-top: 6px; }
.footer nav a { line-height: 1.45; }
.footer a:hover { color: var(--rust); }
.copyright { background: var(--green); color: #fff; font-size: 0.92rem; --focus: #fff; }
.copyright .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-block: 12px; }
.copyright ul { display: flex; gap: 24px; }
.copyright a { color: var(--khaki); font-weight: 500; }
.copyright a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 39; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; background: var(--green); border: 0; border-radius: 10px; box-shadow: 0 14px 30px -10px rgba(9,22,20,.6), 0 2px 6px rgba(9,22,20,.18); color: #fff; overflow: hidden; --focus: var(--rust); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transition: opacity .3s ease, transform .35s cubic-bezier(.22,.8,.26,1), visibility 0s linear .3s, background-color .2s ease; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 3; }
.to-top-track { stroke: rgba(255,255,255,.16); }
.to-top-bar { stroke: var(--khaki); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); transition: stroke .2s ease; }
.to-top-arrow { width: 14px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--green-2); }
.to-top:hover .to-top-bar { stroke: #fff; }
@media (prefers-reduced-motion: no-preference) {
  /* on hover the arrow leaves through the top and comes back in from below */
  .to-top:hover .to-top-arrow { animation: to-top-go .55s cubic-bezier(.22,.8,.26,1); }
}
@keyframes to-top-go { 0% { transform: none; } 45% { transform: translateY(-26px); } 46% { transform: translateY(26px); } 100% { transform: none; } }

.action-bar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .menu > ul > li:first-child { display: none; }   /* "Home": the logo already does this */
  .menu-link { padding-inline: 12px; font-size: 0.82rem; }
  .header-util { gap: 22px; }
  .site-header.is-stuck .menu-link { padding-inline: 7px; font-size: 0.8rem; }
  .site-header.is-stuck .navbar-cta { margin-left: 8px; padding-inline: 13px; font-size: 0.8rem; }
}

@media (max-width: 1100px) {
  :root { --header-h: 70px; --nav-h: 70px; }
  .header-util { display: none; }
  .header-logo { padding-right: 58px; }
  .logo-box { width: 90px; height: 54px; }
  .logo-full { height: 54px; }
  .site-header { --menu-h: 70px; }
  .header-call { display: grid; }
  .navbar-cta { margin-left: 12px; padding: 11px 14px; font-size: 0.76rem; letter-spacing: 0.06em; }
  .menu-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 70px); height: calc(100dvh - 70px); overflow-y: auto; padding: 6px var(--gutter) 22px; background: var(--green); border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 30px rgba(9,22,20,.4); }
  .menu.is-open { display: block; }
  .menu > ul { display: block; }
  .menu > ul > li:first-child { display: block; }
  .menu > ul > li { border-bottom: 1px solid rgba(255,255,255,.14); }
  .menu-link { width: 100%; justify-content: space-between; padding: 16px 2px; font-size: 0.875rem; box-shadow: none !important; }
  .menu-link.is-current { color: var(--khaki); }
  /* Mega menus collapse to simple accordions: names only */
  .mega { display: none; padding: 0 0 12px; --focus: #fff; }
  .has-sub.is-open > .mega { display: block; }
  .mega svg, .mega small, .mega-label, .mega-title, .mega-feature-img, .mega-side > p, .mega-side .btn, .mega .mega-phone, .mega .mega-all { display: none; }
  .mega a { display: block; padding: 8px 2px 8px 14px; }
  .mega a, .mega strong { font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.4; color: rgba(255,255,255,.88); }
  .mega a:hover, .mega a:hover strong { color: var(--khaki); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 48px 56px; }
  .hero--slides { display: flex; flex-direction: column; }
  .hero--slides .hero-copy, .hero--slides .hero-actions { max-width: none; }
  .hero--slides .hero-lede, .hero--slides .hero-langs { max-width: 34em; }
  .hero--slides .hero-grid { padding-block: 40px 56px; }
  .hero-media { position: relative; order: -1; left: 0; height: min(96vw, 520px); }
  .slides { --slant: 0px; }
  .slide figcaption { left: var(--gutter); right: 170px; bottom: 22px; }
  .slide-controls { bottom: 22px; right: var(--gutter); }
  .intro-photo { max-width: 520px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 3 / 2; object-position: 50% 54%; }
  .hero::before { background: radial-gradient(ellipse 85% 42% at 50% 24%, rgba(244,167,144,.28) 0%, rgba(244,167,144,.1) 50%, rgba(244,167,144,0) 80%); }
  .intro-grid, .section-head--row { grid-template-columns: minmax(0, 1fr); }
  .triptych { max-width: 520px; }
  .cards, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member { flex-basis: calc((100% - 40px) / 2.4); }
  .review-list { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 640px; }
  .why-top, .journal, .community-layout { grid-template-columns: minmax(0, 1fr); }
  .community-photo { max-width: 520px; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-photo { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .cta-photo img, .cta-photo::after { clip-path: none; }
  .cta-photo img { object-position: 50% 22%; }
  .why-photo img { aspect-ratio: 3 / 2; }
  .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .cards, .posts { grid-template-columns: minmax(0, 1fr); }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .area { padding: 26px 4px 24px; }
  .area-top { margin-bottom: 16px; }
  .card-art { height: 112px; }
  .people { gap: 14px; }
  .team-track { gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .member { flex-basis: 74%; }
  .person-text { padding: 12px 12px 14px; }
  .person h3 { font-size: 0.98rem; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick li:nth-child(3) { border-left: 0; }
  .quick li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .why-points { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .why-points svg { margin-bottom: 12px; }
  .cta-copy { padding: 30px 24px 34px; }
  .cta-actions .btn { width: 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list { margin-top: 30px; }
  .contact-list a { grid-template-columns: 18px minmax(0, 1fr); row-gap: 2px; }
  .contact-list span { grid-column: 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); padding-block: 48px 40px; }
  .hero-actions .btn { width: 100%; }
  .hero-eyebrow::before { width: 20px; }
  .matters { grid-template-columns: minmax(0, 1fr); }
  .topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .topics::-webkit-scrollbar { display: none; }
  .topic { flex: none; }
  .book { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; }
  .intro-photo { margin-right: 12px; }
  .intro-photo figcaption { right: -12px; width: 172px; padding: 16px 16px 14px; }
  .intro-photo strong { font-size: 2rem; }
  .hero-eyebrow { flex-wrap: wrap; row-gap: 0; }
  .hero-eyebrow .rotator { flex-basis: 100%; margin-left: 0; }
  .hero-note { max-width: none; }
  .hero-note strong { display: inline; }
  .btn { white-space: normal; text-align: center; }
  .navbar-cta { display: none; }

  .action-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--green); box-shadow: 0 -1px 0 rgba(255,255,255,.14); --focus: #fff; transform: translateY(110%); transition: transform .25s ease; }
  .action-bar.is-visible { transform: none; }
  .action-bar svg { width: 16px; height: 16px; fill: currentColor; }
  .copyright { padding-bottom: 70px; }
  .to-top { right: var(--gutter); bottom: calc(88px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
