/* Dentive concept. Tokens from dentive.com's own stylesheet variables (see NOTES.md).
   Anchor DESIGN.md: claude (warm canvas, one dark surface, editorial display, quiet sans). */
:root {
  --paper: #F6F3EF;      /* their --color-sand */
  --tan: #E3DCD4;        /* their --color-tan */
  --line: #CFC4B7;       /* their --color-tan-deep */
  --ink: #2F2F2F;        /* their --color-charcoal */
  --deep: #232323;       /* their --color-charcoal-deep */
  --muted: #5E5E5E;      /* their --color-graphite */
  --gold: #AF8D65;       /* their --color-gold */
  --gold-lt: #D9C3A5;    /* gold on charcoal, light */
  --accent: #7A5C39;     /* gold darkened, white text passes 6.1:1 */
  --accent-dk: #634A2D;
  --gold-dk: #8E6E4B;    /* gold for large numerals on sand, 3.4:1 */

  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --text: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  --max: 1760px;
  --gut: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2vw, 32px);
  --padt: clamp(88px, 11vh, 140px);
  --padb: clamp(72px, 9vh, 120px);
  --nav-h: 96px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --h1: clamp(56px, min(7.4vw, 13.2vh), 184px);
  --h2: clamp(52px, 6vw, 112px);
  --h3: clamp(30px, 2.6vw, 46px);
  --lead: clamp(18px, 1.35vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
p, blockquote p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }
input, textarea { caret-color: var(--accent); }
html { scrollbar-color: var(--gold) var(--paper); accent-color: var(--accent); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
.h2 { font-family: var(--display); font-weight: 400; font-size: var(--h2); line-height: .9; letter-spacing: .005em; text-transform: uppercase; }
.lead { font-size: var(--lead); line-height: 1.6; color: var(--ink); max-width: 34ch; }
.hl { font-style: normal; color: var(--accent); }
h3 { font-family: var(--display); font-weight: 400; font-size: var(--h3); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px; border-radius: var(--r); border: 0; cursor: pointer;
  font-family: var(--text); font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { font-size: 16px; }
.btn--fill { background: var(--accent); color: #fff; }
.btn--fill:hover { background: var(--accent-dk); box-shadow: 0 10px 24px -14px rgba(60, 40, 20, .7); }
.btn--solid { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--solid:hover { background: #fff; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent); text-decoration: none; min-height: 44px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.link:hover { background-size: 100% 1.5px; }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link--light { color: #fff; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
.nav::before { content: ''; position: absolute; inset: 0 0 auto; height: var(--nav-h); z-index: -1; background: rgba(246, 243, 239, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.nav.is-scrolled::before, .nav.menu-open::before { border-bottom-color: var(--line); background: rgba(246, 243, 239, .97); }
.nav__in { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav__logo { justify-self: start; display: inline-flex; min-height: 44px; align-items: center; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px); }
.nav__a, .dd__btn { font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 calc(100% - 4px); transition: background-size .3s var(--ease), color .2s; }
.nav__a:hover, .dd__btn:hover, .dd.is-open .dd__btn { color: var(--accent); background-size: 100% 1.5px; }
.dd__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.dd { position: relative; }
.dd.is-open .dd__btn svg { transform: rotate(180deg); }
.dd__panel { position: absolute; top: calc(100% + 14px); left: -20px; min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: 0 24px 40px -24px rgba(35, 35, 35, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s; }
.dd__panel::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s var(--ease); }
.dd__panel a { display: block; padding: 12px 14px; border-radius: 4px; text-decoration: none; font-size: 16px; font-weight: 500; }
.dd__panel a:hover { background: var(--tan); color: var(--accent); }
.nav__cta { justify-self: end; }
.nav__menu { display: none; justify-self: end; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px 0 14px; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; }
.burger { width: 26px; height: 14px; position: relative; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger i:first-child { top: 0; } .burger i:last-child { top: 12px; }
.nav.menu-open .burger i:first-child { top: 6px; transform: rotate(45deg); }
.nav.menu-open .burger i:last-child { top: 6px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--nav-h) 0 0; background: var(--paper); overflow-y: auto; border-top: 1px solid var(--line); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .35s var(--ease); }
.menu.is-open { opacity: 1; transform: none; }
.menu__in { padding-block: 16px 40px; display: flex; flex-direction: column; }
.menu__a, .menu__group summary { display: flex; align-items: center; justify-content: space-between; min-height: 64px; font-family: var(--display); font-size: 40px; line-height: 1; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.menu__group summary::-webkit-details-marker { display: none; }
.menu__group summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }
.menu__group[open] summary svg { transform: rotate(180deg); }
.menu__group a { display: flex; align-items: center; min-height: 52px; padding-left: 4px; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__cta { margin-top: 28px; min-height: 56px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; padding-top: var(--nav-h); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; justify-content: center; }
.hero__shader { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 70% at 18% 30%, #efe5d8 0%, transparent 70%),
  radial-gradient(50% 60% at 60% 85%, #e6d6c0 0%, transparent 70%), var(--paper); }
.hero__shader canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); height: 100%; max-height: 1180px; padding-block: clamp(24px, 4vh, 48px) clamp(24px, 4vh, 44px); }
.hero__copy { grid-column: 1 / span 7; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, 3vh, 40px); min-height: 0; }
.hero__h1 { font-family: var(--display); font-weight: 400; font-size: var(--h1); line-height: .86; letter-spacing: .002em; text-transform: uppercase; color: var(--ink); }
.hero__h1 .ln { display: block; text-wrap: nowrap; }
.hero__lower { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.hero__sub { font-size: clamp(17px, 1.25vw, 21px); line-height: 1.55; max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.awards { display: flex; gap: clamp(20px, 3vw, 48px); flex-wrap: nowrap; }
.awards a { display: block; font-size: 14px; line-height: 1.45; text-decoration: none; color: var(--muted); min-height: 44px; transition: color .2s; }
.awards a strong { display: block; color: var(--ink); font-weight: 600; }
.awards a:hover, .awards a:hover strong { color: var(--accent); }
.hero__fact { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hero__photo { grid-column: 8 / -1; position: relative; overflow: hidden; border-radius: 2px; min-height: 0; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 30%; }

/* ---------- section shell ---------- */
main > section:not(.hero) { position: relative; padding-block: var(--padt) var(--padb); }

/* ---------- network ---------- */
.network { background: var(--paper); padding-top: 0 !important; }
.network__stage { min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 32px) 48px; border-top: 1px solid var(--line); }
.network__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.network__intro { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 28px; }
.network__intro .lead { font-size: clamp(17px, 1.2vw, 20px); }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 12px 0 0; border-top: 1px solid var(--line); }
.figure { padding-top: 18px; }
.figure dt { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.figure dd { margin: 14px 0 0; padding-top: .06em; font-family: var(--display); font-size: clamp(96px, 9.5vw, 184px); line-height: .82; color: var(--accent); font-variant-numeric: tabular-nums; }
.network__map { grid-column: 5 / -1; position: relative; }
.map { width: 100%; height: auto; overflow: visible; }
.map__state { fill: none; stroke: var(--line); stroke-width: 6.4; stroke-linecap: round; stroke-dasharray: 0 10; }
.map__state.is-lit { stroke: var(--gold); }
.map__pt { transition: opacity .3s; }
.map__dot { fill: var(--deep); stroke: var(--paper); stroke-width: 2.5; }
.map__halo { fill: var(--accent); opacity: .22; }
.map__pt.is-dim { opacity: .14; }
.map__state.is-dim { stroke: var(--line); }

.network__find { padding-top: clamp(24px, 4vh, 48px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vh, 44px); }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.practices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--line); }
.practice { border-bottom: 1px solid var(--line); }
.practice[hidden], .practice.is-cut { display: none; }
.more { margin-top: 24px; width: 100%; }
.more[hidden] { display: none; }
.practice a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; padding: 13px 0 11px; text-decoration: none; min-height: 64px; }
.practice__name { font-family: var(--display); font-size: 24px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; transition: color .2s, transform .3s var(--ease); }
.practice__place { grid-row: 2; font-size: 14px; color: var(--muted); }
.practice__arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 22px; height: 22px; fill: none; stroke: var(--gold-dk); stroke-width: 1.8; transition: transform .3s var(--ease), stroke .2s; }
.practice a:hover .practice__name { color: var(--accent); }
.practice a:hover .practice__arrow { transform: translate(3px, -3px); stroke: var(--accent); }

/* ---------- film + community ---------- */
.community { padding-top: 0 !important; background: var(--paper); }
.film { position: relative; height: clamp(300px, 26vw, 520px); overflow: hidden; background: var(--deep); }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.film__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 22, 18, .72) 0%, rgba(25, 22, 18, .35) 55%, rgba(25, 22, 18, .1) 100%); }
.film__in { position: relative; height: 100%; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-block: clamp(28px, 4vw, 56px); }
.film__line { font-family: var(--display); font-size: clamp(40px, 4.6vw, 92px); line-height: .92; text-transform: uppercase; color: #fff; }
.film__toggle { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.film__toggle:hover { background: rgba(0, 0, 0, .5); transform: scale(1.05); }
.film__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.film__toggle .i-play { display: none; fill: currentColor; stroke: none; }
.film__toggle[aria-pressed="true"] .i-play { display: block; }
.film__toggle[aria-pressed="true"] .i-pause { display: none; }

.community__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-top: var(--padt); }
.community__photos { grid-column: 1 / span 7; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.knot { display: block; background: var(--tan); -webkit-mask: url(../media/knot.svg) center / contain no-repeat; mask: url(../media/knot.svg) center / contain no-repeat; aspect-ratio: 568.95 / 276.35; }
.knot-bg { position: absolute; left: -2%; top: 50%; width: 104%; transform: translateY(-50%); z-index: 0; }
.ph { position: relative; z-index: 1; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph:hover img { transform: scale(1.03); }
.ph--a { grid-column: 1 / span 4; aspect-ratio: 4 / 4.4; }
.ph--a img { object-position: 50% 40%; }
.ph--b { grid-column: 5 / span 3; aspect-ratio: 3 / 4; margin-top: clamp(80px, 14vw, 240px); }
.ph--b img { object-position: 50% 35%; }
.community__copy { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 20px; }
.community__copy .h2 { margin-bottom: 8px; }
.community__copy p:not(.lead) { color: var(--muted); max-width: 46ch; }

/* ---------- difference ---------- */
.difference { background: var(--paper); border-top: 1px solid var(--line); }
.difference__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.difference__head { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.difference__photo { width: 100%; aspect-ratio: 1434 / 1100; overflow: hidden; margin-top: 16px; }
.difference__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.difference__photo:hover img { transform: scale(1.03); }
.parts { grid-column: 7 / -1; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.part { display: grid; grid-template-columns: clamp(72px, 7vw, 132px) 1fr; column-gap: var(--gap); padding: clamp(28px, 4vh, 44px) 0; border-bottom: 1px solid var(--line); }
.part__n { grid-row: 1 / span 2; font-family: var(--display); font-size: clamp(56px, 5.2vw, 96px); line-height: .8; color: var(--gold-dk); font-variant-numeric: tabular-nums; }
.part__t { font-size: clamp(34px, 3vw, 54px); margin-bottom: 14px; }
.part p { color: var(--muted); max-width: 52ch; }

/* ---------- services (the one dark band) ---------- */
.services { background: var(--deep); color: var(--paper); overflow: hidden; }
.services__knot { position: absolute; right: calc(var(--gut) * -1); bottom: -6%; width: min(64vw, 1100px); background: #2c2b29; z-index: 0; }
.services__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.services__head { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 24px; }
.services .h2 { color: var(--paper); }
.services .lead { color: #cfc8bf; }
.svc { grid-column: 6 / -1; border-top: 1px solid rgba(175, 141, 101, .55); }
.svc li { display: grid; grid-template-columns: 1fr; align-items: baseline; padding: clamp(18px, 2.6vh, 28px) 0; border-bottom: 1px solid rgba(175, 141, 101, .55); }
.svc h3 { font-size: clamp(34px, 3.6vw, 68px); line-height: .95; color: var(--paper); transition: color .25s, transform .35s var(--ease); }
.svc li:hover h3 { color: var(--gold-lt); transform: translateX(8px); }

/* ---------- values ---------- */
.values { background: var(--tan); }
.values__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
.values__head .h2 { grid-column: 1 / span 6; }
.values__head .lead { grid-column: 8 / -1; max-width: 40ch; }
.vals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.val { padding: 28px clamp(16px, 1.6vw, 28px) 8px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.val:first-child { border-left: 0; padding-left: 0; }
.val h3 { font-size: clamp(34px, 3.1vw, 56px); transition: color .25s; }
.val p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.val:hover h3 { color: var(--accent); }

/* ---------- doctors ---------- */
.doctors { background: var(--paper); }
.doctors .h2 { margin-bottom: clamp(40px, 7vh, 80px); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.quote { display: grid; grid-template-columns: clamp(120px, 11vw, 200px) 1fr; column-gap: clamp(20px, 2.4vw, 40px); align-items: start; border-top: 1px solid var(--line); padding-top: 32px; }
.quote__img { grid-row: 1 / span 2; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(18px, 1.4vw, 23px); line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: 24px; color: var(--muted); font-size: 15px; }
.quote figcaption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }

/* ---------- blog ---------- */
.blog { background: var(--paper); border-top: 1px solid var(--line); }
.blog__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 6vh, 64px); }
.posts { border-top: 1px solid var(--ink); }
.post { border-bottom: 1px solid var(--line); }
.post a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: clamp(22px, 3vh, 32px) 0; text-decoration: none; }
.post__meta { grid-column: 1 / span 2; font-size: 14px; font-weight: 600; color: var(--accent); }
.post__meta span { display: block; font-weight: 400; color: var(--muted); }
.post__t { grid-column: 3 / span 5; font-size: clamp(28px, 2.4vw, 42px); transition: color .25s; }
.post__d { grid-column: 8 / span 3; font-size: 15px; color: var(--muted); }
.post__img { grid-column: 11 / -1; aspect-ratio: 4 / 3; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post a:hover .post__t { color: var(--accent); }
.post a:hover .post__img img { transform: scale(1.04); }

/* ---------- partner form ---------- */
.partner { background: var(--accent); color: #fff; }
.partner__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.partner__copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 22px; }
.partner .h2 { color: #fff; }
.partner .lead { color: #fff; }
.partner__other { margin-top: 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .3); }
.partner__other p { color: #f1e9df; }
.form { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 18px; }
.form__req, .form__note { font-size: 14px; color: #f1e9df; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--r); border: 1px solid transparent; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--gold-lt); }
.field.is-bad input { box-shadow: 0 0 0 3px #f3c4b4; }
.field .err { color: #ffe1d6; font-size: 13px; font-weight: 500; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 13px; line-height: 1.55; color: #f1e9df; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.form .btn { align-self: flex-start; }
.form__done { padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, .14); font-weight: 500; }

/* ---------- footer ---------- */
.foot { background: var(--tan); padding-top: clamp(72px, 10vh, 120px); }
.foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.foot__brand { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.foot__brand p { font-size: 18px; line-height: 1.6; max-width: 34ch; }
.foot__col { grid-column: span 2; display: flex; flex-direction: column; gap: 4px; }
.foot__col:nth-of-type(1) { grid-column: 7 / span 2; }
.foot__col:last-child { grid-column: 11 / -1; }
.foot__col h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.foot__col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 500; transition: color .2s; }
.foot__col a:hover { color: var(--accent); }
.foot__col p { color: var(--ink); }
.foot__mark { display: block; width: 100%; aspect-ratio: 1500 / 243; margin-top: clamp(56px, 9vh, 110px); background: var(--gold); -webkit-mask: url(../media/logo.svg) center / contain no-repeat; mask: url(../media/logo.svg) center / contain no-repeat; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 32px; margin-top: clamp(24px, 4vh, 48px); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__base a { color: var(--ink); }

/* ---------- motion prep (JS only, never under reduced motion) ---------- */
.split-line-mask { padding-block: .12em .06em; margin-block: -.12em -.06em; }

/* ---------- responsive ---------- */
@media (max-width: 1599px) { .practices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1279px) {
  .nav__links { gap: 22px; }
  .nav__a, .dd__btn { font-size: 16px; }
  .hero__lower { grid-template-columns: 1fr; }
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1079px) {
  :root { --nav-h: 80px; }
  .nav__in { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; grid-column: 3; }
  .nav__logo img { height: 40px; }
  :root { --h1: clamp(56px, 9vw, 96px); }
  .hero__copy { grid-column: 1 / span 7; }
  .hero__photo { grid-column: 8 / -1; }
  .awards { flex-wrap: wrap; gap: 12px 24px; }
  .network__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .network__intro, .network__map { grid-column: 1 / -1; }
  .network__intro .lead { max-width: 52ch; }
  .community__grid, .difference__grid, .services__grid, .partner__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .community__photos, .community__copy, .difference__head, .parts, .services__head, .svc, .partner__copy, .form { grid-column: 1 / -1; }
  .community__copy { order: -1; }
  .difference__photo { aspect-ratio: 16 / 9; }
  .values__head { grid-template-columns: 1fr; row-gap: 20px; }
  .values__head .h2, .values__head .lead { grid-column: 1 / -1; }
  .vals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .val { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .val:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
  .quotes { grid-template-columns: 1fr; }
  .post a { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 12px; }
  .post__meta { grid-column: 1 / span 4; }
  .post__t { grid-column: 1 / span 4; }
  .post__d { grid-column: 1 / span 4; }
  .post__img { grid-column: 5 / -1; grid-row: 1 / span 3; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__col, .foot__col:nth-of-type(1), .foot__col:last-child { grid-column: span 4; }
}
@media (max-width: 767px) {
  .hero { height: auto; min-height: 0; display: block; }
  .hero__in { grid-template-columns: 1fr; row-gap: 32px; height: auto; }
  .hero__copy, .hero__photo { grid-column: 1 / -1; }
  .hero__photo { min-height: 0; aspect-ratio: 16 / 10; order: 2; }
  .hero__lower { grid-template-columns: 1fr; }
  .practices { grid-template-columns: 1fr; }
  .film { height: 62vw; min-height: 280px; }
  .film__shade { background: linear-gradient(0deg, rgba(25, 22, 18, .8) 0%, rgba(25, 22, 18, .2) 70%); }
  .film__in { align-items: end; }
  .foot__col, .foot__col:nth-of-type(1), .foot__col:last-child { grid-column: span 6; }
  .foot__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  :root { --h1: clamp(52px, 15.2vw, 72px); --h2: clamp(44px, 12.6vw, 64px); --padt: 80px; --padb: 72px; --nav-h: 72px; }
  .nav__logo img { height: 34px; }
  .hero__in { padding-block: 24px 28px; row-gap: 28px; }
  .hero__copy { gap: 24px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__photo { aspect-ratio: 4 / 3.4; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .awards { flex-direction: column; gap: 12px; }
  .hero__fact { white-space: normal; }
  .figure dd { font-size: 108px; }
  .network__stage { min-height: 0; padding-block: calc(var(--nav-h) + 40px) 24px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .practice__name { font-size: 24px; }
  .community__photos { grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 12px; }
  .ph--b { margin-top: 72px; }
  .part { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .part__n { font-size: 48px; }
  .svc h3 { font-size: 34px; }
  .services__knot { width: 140vw; bottom: -2%; }
  .vals { grid-template-columns: 1fr; }
  .val, .val:nth-child(even) { border-left: 0; padding-left: 0; padding-bottom: 24px; gap: 12px; }
  .quote { grid-template-columns: 96px 1fr; }
  .quote__img { grid-row: auto; }
  .quote blockquote { grid-column: 1 / -1; margin-top: 20px; grid-row: 2; }
  .quote figcaption { grid-column: 2; grid-row: 1; margin-top: 0; align-self: center; }
  .blog__head { flex-direction: column; align-items: flex-start; }
  .post a { grid-template-columns: 1fr 104px; column-gap: 16px; }
  .post__meta, .post__t, .post__d { grid-column: 1; }
  .post__img { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .post__t { font-size: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { align-self: stretch; }
  .foot__base { flex-direction: column; }
}

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