/* ==========================================================================
   Site styles, v3 (compact). Lora headings, Onest text, cards, photos.
   Light theme on :root, dark via [data-theme="dark"] or the OS setting.
   Text pairs are WCAG AA (ink 15.7:1, ink-2 7.3:1, oxblood 8.8:1 on the page).
   Every page uses the same spacing tokens and components; phones get
   short rows and swipe lists instead of long stacks.
   ========================================================================== */
:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #F2EDE3;
  --ink: #16201D;
  --ink-2: #4B5550;
  --line: #E4DDCF;
  --line-2: #CFC6B4;
  --ox: #7A2E2E;
  --ox-hover: #63231F;
  --on-ox: #FFFFFF;
  --brass: #7D6232;
  --ok: #2F5D46;
  --err: #8E2A1F;
  --footer-bg: #16201D;
  --footer-ink: #E9E4DA;
  --footer-muted: #A9B0A8;
  --shadow: 0 1px 2px rgba(22, 32, 29, .05), 0 10px 30px -16px rgba(22, 32, 29, .22);

  --f-head: "Lora", Georgia, "Times New Roman", serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --t-hero: clamp(2rem, 1.4rem + 2.1vw, 3.05rem);
  --t-h1: clamp(1.75rem, 1.4rem + 1.4vw, 2.45rem);
  --t-h2: clamp(1.45rem, 1.25rem + .85vw, 2rem);
  --t-h3: 1.125rem;
  --t-lead: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-small: .9375rem;
  --t-xs: .8125rem;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  /* distance from the content edge to the screen edge: used by pieces that bleed to the edge */
  --bleed: calc((100vw - min(100vw, var(--wrap))) / 2 + var(--gutter));
  --section: clamp(2.25rem, 1.7rem + 1.6vw, 3.5rem);
  --gap: 20px;
  --r: 10px;
  --r-lg: 16px;
  --header-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111714; --surface: #18201C; --surface-2: #1D2621; --ink: #ECE6D9; --ink-2: #A9B0A8; --line: #2B3530; --line-2: #3A4640;
  --ox: #D9958A; --ox-hover: #E3A89E; --on-ox: #111714; --brass: #C4A56D; --ok: #8FC2A5; --err: #F0A193;
  --footer-bg: #0B100E; --footer-ink: #ECE6D9; --footer-muted: #A9B0A8; --shadow: 0 10px 30px -16px rgba(0, 0, 0, .6); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111714; --surface: #18201C; --surface-2: #1D2621; --ink: #ECE6D9; --ink-2: #A9B0A8; --line: #2B3530; --line-2: #3A4640;
    --ox: #D9958A; --ox-hover: #E3A89E; --on-ox: #111714; --brass: #C4A56D; --ok: #8FC2A5; --err: #F0A193;
    --footer-bg: #0B100E; --footer-ink: #ECE6D9; --footer-muted: #A9B0A8; --shadow: 0 10px 30px -16px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: var(--t-h1); line-height: 1.2; }
h2 { font-size: var(--t-h2); line-height: 1.25; }
h3 { font-family: var(--f-body); font-size: var(--t-h3); line-height: 1.35; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ox); color: var(--on-ox); }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--surface-2); }
.ph { color: var(--ink-2); border-bottom: 1px dashed var(--brass); }
.eyebrow { display: inline-block; font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-small); }
.inline-link, .prose a { color: var(--ox); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-link:hover, .prose a:hover { text-decoration-thickness: 2px; }
@media (max-width: 999px) { .desktop-only { display: none !important; } }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r); font-size: .9375rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; text-align: center; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { position: relative; isolation: isolate; overflow: hidden; background: var(--ox); color: var(--on-ox); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn--primary:hover::after, a:hover > .btn--primary::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px); }
.btn--primary:hover { background: var(--ox-hover); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ox); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header and mobile menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #146EBC; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-name { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.125rem; line-height: 1.15; white-space: nowrap; }
.brand-sub { display: block; font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; padding: 8px 6px; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--ox); }
.lang { position: relative; }
.lang-list { list-style: none; display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-list a { display: grid; place-items: center; min-width: 38px; height: 36px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.lang-list a:hover { color: var(--ink); }
.lang-list a[aria-current="true"] { background: var(--ox); color: var(--on-ox); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 1140px) { .header-phone { display: none; } }
@media (max-width: 960px) { .nav, .header-cta, .header-tools .lang { display: none; } .menu-btn { display: inline-grid; } }
@media (max-width: 420px) { .brand-sub { display: none; } }
.sheet { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; padding: 12px var(--gutter) 28px; display: flex; flex-direction: column; gap: 20px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.sheet nav ul { list-style: none; display: grid; }
.sheet nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 500; }
.sheet-foot { margin-top: auto; display: grid; gap: 14px; }

/* ---------- Page heads (home hero and inner pages) ---------- */
/* Hero: a dark stage in both themes — fine grid texture, soft oxblood and brass light, big headline,
   tall arched portrait of the lead advocate standing on the bottom edge */
.hero { --gold: #D8B77A; position: relative; isolation: isolate; overflow: clip; background: var(--footer-bg); color: var(--footer-ink); padding-top: clamp(2.5rem, 1rem + 4vw, 4.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(55% 65% at 82% 38%, color-mix(in srgb, #D9958A 30%, transparent), transparent 70%),
  radial-gradient(40% 50% at 8% 95%, rgba(216, 183, 122, .13), transparent 70%),
  linear-gradient(rgba(233, 228, 218, .04) 1px, transparent 1px) 0 0 / 64px 64px,
  linear-gradient(90deg, rgba(233, 228, 218, .04) 1px, transparent 1px) 0 0 / 64px 64px; }
.hero::after { content: ""; position: absolute; z-index: -1; left: -240px; bottom: -380px; width: 760px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(233, 228, 218, .08); outline: 1px solid rgba(233, 228, 218, .05); outline-offset: 70px; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: clamp(2.5rem, 1rem + 4vw, 4.5rem); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: clamp(560px, calc(100svh - var(--header-h) - 60px), 820px); }
  .hero-copy { align-self: center; }
}
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.9rem); line-height: 1.1; margin-top: 14px; max-width: 14ch; color: var(--footer-ink); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { margin-top: 18px; color: var(--footer-muted); }
.hero .actions { margin-top: 26px; }
.hero .btn--primary { background: #D9958A; color: #111714; }
.hero .btn--primary:hover { background: #E3A89E; }
.hero .btn--outline { background: transparent; color: var(--footer-ink); border-color: rgba(233, 228, 218, .3); }
.hero .btn--outline:hover { border-color: var(--footer-ink); }
.scroll-cue { display: none; }
@media (min-width: 900px) {
  .scroll-cue { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: 36px; border-radius: 50%; border: 1px solid rgba(233, 228, 218, .3); color: var(--footer-ink); transition: border-color .3s, background-color .3s; }
  .scroll-cue:hover { border-color: var(--gold); background: rgba(216, 183, 122, .12); }
  .scroll-cue svg { width: 18px; height: 18px; transform: rotate(90deg); }
}
.points { list-style: none; display: grid; gap: 8px; margin-top: 22px; }
.points li, .checks li { display: flex; gap: 10px; align-items: flex-start; }
.points li { font-size: var(--t-small); color: var(--ink-2); }
.hero .points li { color: var(--footer-muted); }
.hero .points svg { color: var(--gold); }
.points svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
@media (max-width: 599px) { .hero .points { display: none; } }
/* Portrait of the lead advocate: tall photo standing on the hero's bottom edge, gold corner brackets
   (top-left, bottom-right) that move apart on hover, a thin gold mat line inside, name on the photo */
.portrait { --gold: #D8B77A; --corner: 56px; --off: -12px; position: relative; isolation: isolate; margin: 0; width: min(100% - 40px, 340px); justify-self: center; align-self: end; }
@media (min-width: 900px) { .portrait { --corner: 84px; --off: -18px; width: min(100% - 40px, clamp(320px, 33vw, 500px)); justify-self: end; margin-right: 20px; } }
.portrait::before, .portrait-corner { content: ""; position: absolute; z-index: 3; width: var(--corner); height: var(--corner); border: 0 solid var(--gold); transition: transform .5s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.portrait::before { left: var(--off); top: var(--off); border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.portrait-corner { right: var(--off); bottom: 44px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
.portrait:hover::before { transform: translate(-6px, -6px); }
.portrait:hover .portrait-corner { transform: translate(6px, 6px); }
.portrait::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 35%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 149, 138, .26), transparent); }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 20px 20px 0 0; overflow: hidden; background: #1D2621; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8); }
.portrait-frame::after { content: ""; position: absolute; z-index: 2; inset: 14px 14px 0 14px; border: 1px solid rgba(216, 183, 122, .45); border-bottom: 0; border-radius: 12px 12px 0 0; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 6s ease-out; }
.portrait:hover .portrait-frame img { transform: scale(1.04); }
.portrait-caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; justify-items: start; padding: 90px 32px 26px; background: linear-gradient(transparent, rgba(8, 11, 10, .88)); color: #fff; }
.portrait-caption::before { content: ""; width: 36px; height: 2px; margin-bottom: 10px; background: var(--gold); }
.portrait-name { font-family: var(--f-head); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.portrait-role { font-size: var(--t-small); font-style: italic; color: rgba(233, 228, 218, .78); }
.sample-tag { position: absolute; z-index: 2; left: 28px; top: 28px; max-width: calc(100% - 56px); padding: 5px 12px; border-radius: 999px; background: rgba(10, 14, 12, .72); color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--ink-2); font-size: var(--t-small);
  background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 60%), linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 70%, var(--line-2))); }
.media-ph svg { width: 44px; height: 54px; color: var(--ox); opacity: .85; }
.portrait .media-ph { background: radial-gradient(90% 60% at 50% 30%, rgba(217, 149, 138, .16), transparent 70%), linear-gradient(160deg, #26322C, #141B18); color: rgba(233, 228, 218, .72); padding-bottom: 120px; }
.portrait .media-ph svg { color: #D9958A; }

.page-head { background: var(--surface-2); padding-block: clamp(1.25rem, .9rem + 1.4vw, 2.25rem); }
.page-head h1 { margin-top: 10px; max-width: 26ch; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 2px; background: var(--ox); transform-origin: left; }
.page-head .lead { margin-top: 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--t-xs); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a:hover { color: var(--ink); }

.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: clamp(18px, 2vw, 28px); }
.sec-head > div { max-width: 640px; }
.sec-head .lead { margin-top: 6px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--videos { list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 599px) { .grid--team, .grid--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); --gap: 16px 12px; } }

/* Round arrow used by list rows: tilted at rest, straightens and fills on hover */
.go { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ox); transform: rotate(-45deg); transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s, color .3s, border-color .3s; }
.go svg { width: 14px; height: 14px; }
a:hover > .go, a:focus-visible > .go { transform: rotate(0); background: var(--ox); border-color: var(--ox); color: var(--on-ox); }

/* Practice areas: a numbered index (two columns on wide screens), a tint sweeps in on hover */
.ix { list-style: none; display: grid; column-gap: 40px; border-top: 1px solid var(--line-2); }
@media (min-width: 800px) { .ix:not(.ix--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ix-row, .pr { position: relative; isolation: isolate; }
.ix-row::before, .pr::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px; background: color-mix(in srgb, var(--ox) 7%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.ix-row:hover::before, .ix-row:focus-visible::before, .pr:hover::before, .pr:focus-visible::before { transform: scaleX(1); }
.ix-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.ix-n { font-family: var(--f-head); font-size: 1.6rem; line-height: 1; color: var(--brass); transition: color .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.ix-row:hover .ix-n { color: var(--ox); transform: translateX(4px); }
.ix-title { font-size: 1.0625rem; }
.ix-text { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
/* dark panels (CTA strip, featured article, contacts) stay dark in both themes */
.ix-cta, .pl--split > .pr:first-child, .contact-panel { background: var(--footer-bg); color: var(--footer-ink); border: 1px solid color-mix(in srgb, var(--footer-ink) 10%, transparent); }
.ix-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; padding: 18px 22px; border-radius: var(--r-lg); }
.ix-cta::before { content: ""; position: absolute; z-index: -1; left: -10%; top: -120%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ox) 40%, transparent), transparent); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ix-cta:hover::before { transform: translateX(30%) scale(1.15); }
.ix-cta > span:first-child { display: grid; gap: 2px; }
.ix-cta strong { font-size: 1.0625rem; }
.ix-cta > span > span { color: var(--footer-muted); font-size: var(--t-small); }
@media (max-width: 599px) {
  .ix-row { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 13px 4px; }
  .ix-n { font-size: 1.2rem; }
  .ix-text { display: none; }
  .ix-cta { padding: 16px; }
}

/* Process: a timeline. Horizontal on wide screens, vertical on phones and in side columns; the line draws itself */
.tl { --dot: 40px; --dot-bg: var(--bg); list-style: none; position: relative; display: grid; gap: 16px; }
.tl::before { content: ""; position: absolute; left: calc(var(--dot) / 2 - 1px); top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--ox), var(--line-2)); transform-origin: top; transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .1s; }
.tl > li { display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 16px; align-items: start; }
.tl-dot { position: relative; z-index: 1; grid-row: span 2; display: grid; place-items: center; width: var(--dot); height: var(--dot); border-radius: 50%; border: 2px solid var(--ox); background: var(--dot-bg); color: var(--ox); font-weight: 700; font-size: .9375rem; transition: background-color .3s, color .3s, transform .3s; }
.tl > li:hover .tl-dot { background: var(--ox); color: var(--on-ox); transform: scale(1.08); }
.tl h3 { font-size: 1.0625rem; margin-top: 8px; }
.tl p { color: var(--ink-2); font-size: var(--t-small); margin-top: 2px; }
.tl--sm { --dot: 32px; --dot-bg: var(--surface); gap: 12px; }
.tl--sm p { color: var(--ink); margin-top: 5px; }
@media (min-width: 900px) {
  .tl:not(.tl--v) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .tl:not(.tl--v)::before { left: 20px; right: 20px; top: calc(var(--dot) / 2 - 1px); bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--ox), var(--line-2)); transform-origin: left; }
  .tl:not(.tl--v) > li { display: block; }
  .tl:not(.tl--v) h3 { margin-top: 14px; }
}
.motion .tl[data-reveal]:not(.is-in)::before { transform: scaleY(0); }
/* dark full-width band: same look in both themes */
.band-dark { background: var(--footer-bg); color: var(--footer-ink); }
.band-dark h2, .band-dark h3 { color: var(--footer-ink); }
.band-dark .lead, .band-dark .tl p { color: var(--footer-muted); }
.band-dark .tl { --dot-bg: var(--footer-bg); }
.band-dark .tl-dot { border-color: #D9958A; color: #D9958A; }
.band-dark .tl > li:hover .tl-dot { background: #D9958A; color: #111714; }
.band-dark .tl::before { background: linear-gradient(var(--dir, 180deg), #D9958A, color-mix(in srgb, var(--footer-muted) 35%, transparent)); }
@media (min-width: 900px) { .band-dark .tl:not(.tl--v) { --dir: 90deg; } }
@media (min-width: 900px) { .motion .tl:not(.tl--v)[data-reveal]:not(.is-in)::before { transform: scaleX(0); } }

/* Team */
.person { display: flex; flex-direction: column; gap: 2px; }
.person .photo { aspect-ratio: 1 / 1; margin-bottom: 10px; }
.person .photo img { object-position: 50% 20%; }
.person .photo img, .person .photo-ph { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.person:hover .photo img, a.person:hover .photo-ph { transform: scale(1.06); }
.person-more { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 32px 16px 14px; color: #fff; font-weight: 600; font-size: var(--t-small); background: linear-gradient(transparent, rgba(10, 14, 12, .72)); transform: translateY(101%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.person-more svg { width: 16px; height: 16px; }
a.person:hover .person-more, a.person:focus-visible .person-more { transform: none; }
.person-name { display: block; font-family: var(--f-head); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.person-role { color: var(--ink-2); font-size: var(--t-small); }
.person-areas { color: var(--ink-2); font-size: var(--t-xs); }
a.person:hover .person-name { color: var(--ox); }
@media (max-width: 599px) { .grid--team .person-name { font-size: 1rem; } .grid--team .person-areas { display: none; } }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--ink-2); font-size: var(--t-xs); text-align: center; padding: 12px; }
.photo-ph svg { width: 48px; height: 48px; color: var(--line-2); }
.photo--sm { width: 64px; flex: none; border-radius: 10px; }
.photo--sm .photo-ph svg { width: 28px; height: 28px; }
.member-aside { display: grid; gap: 16px; }
@media (max-width: 999px) {
  .member-aside { order: -1; grid-template-columns: 96px minmax(0, 1fr); align-items: end; }
  .member-aside .photo-ph span { display: none; }
}

/* Carousel (home team): 3 per view on desktop, 2 on tablets, 1 and a peek on phones.
   Arrows sit beside the square photos: outside the cards on wide screens, over the photo edges otherwise. */
.carousel-wrap { --per: 3; --cgap: 20px; position: relative; container-type: inline-size; }
@media (max-width: 959px) { .carousel-wrap { --per: 2; } }
@media (max-width: 599px) { .carousel-wrap { --per: 1.2; --cgap: 14px; } }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--cgap)) / var(--per)); gap: var(--cgap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; scroll-padding-inline: 4px; justify-content: safe center; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-item { min-width: 0; scroll-snap-align: start; }
.carousel-nav { position: absolute; left: 0; right: 0; top: 40%; top: calc((100cqw - (var(--per) - 1) * var(--cgap)) / var(--per) / 2); height: 0; pointer-events: none; }
.carousel-btn { pointer-events: auto; position: absolute; top: 0; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { border-color: var(--ink-2); }
.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }
@media (min-width: 1440px) { .carousel-btn--prev { left: -64px; } .carousel-btn--next { right: -64px; } }
.carousel-btn[aria-disabled="true"] { cursor: default; color: var(--ink-2); box-shadow: none; }
.carousel-btn[aria-disabled="true"] svg { opacity: .45; }

/* Articles: list rows; on the home page the first one is a large dark feature */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--t-xs); color: var(--ink-2); }
.post-meta--head { margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--brass); font-weight: 600; font-size: var(--t-xs); }
.pl { display: grid; border-top: 1px solid var(--line-2); }
.pr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.pr > :not(.go) { grid-column: 1; }
.pr > .go { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.pr h3 { font-size: 1.0625rem; transition: color .3s; }
.pr:hover h3 { color: var(--ox); }
.pr p { color: var(--ink-2); font-size: var(--t-small); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
  .pl--wide .pr { grid-template-columns: 180px minmax(0, 1fr) auto; column-gap: 24px; padding-block: 20px; }
  .pl--wide .pr > .post-meta { grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; }
  .pl--wide .pr > h3, .pl--wide .pr > p { grid-column: 2; }
  .pl--wide .pr > .go { grid-column: 3; }
  .pl--wide .pr h3 { font-size: 1.1875rem; }
  .pl--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; border-top: 0; }
  .pl--split > .pr:first-child { grid-row: span 3; }
  .pl--split > .pr:nth-child(2) { border-top: 1px solid var(--line-2); }
}
.pl--split > .pr:first-child { align-content: end; min-height: 260px; padding: 28px; border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .3s; }
.pl--split > .pr:first-child::before { inset: auto -10% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ox) 55%, transparent), transparent); transform: scale(.8); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pl--split > .pr:first-child:hover::before { transform: scale(1.15); }
.pl--split > .pr:first-child:hover { box-shadow: var(--shadow); }
.pl--split > .pr:first-child h3 { font-family: var(--f-head); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); line-height: 1.25; color: var(--footer-ink); }
.pl--split > .pr:first-child p { color: var(--footer-muted); -webkit-line-clamp: 4; }
.pl--split > .pr:first-child .post-meta { color: var(--footer-muted); }
.pl--split > .pr:first-child .badge { background: color-mix(in srgb, var(--footer-ink) 14%, transparent); color: var(--footer-ink); }
.pl--split > .pr:first-child .go { border-color: color-mix(in srgb, var(--footer-ink) 40%, transparent); color: var(--footer-ink); align-self: end; }
@media (max-width: 599px) {
  .pl--split > .pr:first-child { min-height: 0; padding: 20px; margin-bottom: 4px; }
  .pl:not(.pl--wide) .pr:not(:first-child) p { display: none; }
}

/* FAQ: divider list; the round plus turns into a cross when open */
.faq-grid { display: grid; gap: 24px 56px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.faq-intro .lead { margin-top: 8px; }
.faq-intro .actions { margin-top: 18px; }
.faq { display: grid; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 4px; font-weight: 600; line-height: 1.45; transition: color .25s; }
.faq summary:hover { color: var(--ox); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ox); transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s, color .3s, border-color .3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 1px; }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(135deg); background: var(--ox); border-color: var(--ox); color: var(--on-ox); }
.faq .answer { padding: 0 46px 16px 4px; color: var(--ink-2); overflow: hidden; }

/* Contacts and map (home and contact page): the map takes the height of the contact card */
.contact-grid { display: grid; gap: var(--gap); }
.details { margin: 0; display: grid; }
.details > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
.details svg { width: 20px; height: 20px; color: var(--ox); grid-row: span 2; margin-top: 2px; }
.details dt { font-size: var(--t-xs); color: var(--ink-2); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.details a:hover { color: var(--ox); }
.details + .btn { margin-top: 16px; }
.contact-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(18px, 2.5vw, 28px); border-radius: var(--r-lg); }
.contact-panel::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ox) 40%, transparent), transparent); }
.contact-panel .details > div { border-color: color-mix(in srgb, var(--footer-muted) 22%, transparent); }
.contact-panel .details dt { color: var(--footer-muted); }
.contact-panel .details dd, .contact-panel .ph { color: var(--footer-ink); }
.contact-panel .ph { border-color: var(--footer-muted); }
.contact-panel .details svg { color: #C4A56D; }
.contact-panel .btn--primary { background: var(--footer-ink); color: var(--footer-bg); }
.contact-panel .btn--primary:hover { background: #fff; }
.map { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .contact-grid > :last-child { display: flex; flex-direction: column; }
  .contact-grid .map { flex: 1; aspect-ratio: auto; min-height: 260px; border-radius: var(--r-lg) 0 0 var(--r-lg); border-right: 0; }
  .contact-grid > :last-child { margin-right: calc(-1 * var(--bleed)); }
  .contact-grid .map-actions { padding-right: var(--bleed); }
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-face { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--ink-2); font-size: var(--t-small); }
.map-face svg { width: 40px; height: 40px; color: var(--ox); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--footer-bg); color: var(--footer-ink); }
.cta-band::before { content: ""; position: absolute; z-index: -1; inset: -50% -10%; background:
  radial-gradient(closest-side, color-mix(in srgb, var(--ox) 50%, transparent), transparent) 15% 50% / 40% 80% no-repeat,
  radial-gradient(closest-side, rgba(196, 165, 109, .22), transparent) 85% 40% / 35% 70% no-repeat; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; padding-block: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.cta-band h2 { color: var(--footer-ink); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); }
.cta-band p { color: var(--footer-muted); margin-top: 6px; max-width: 56ch; }
:root[data-theme="dark"] .cta-band .btn--primary { background: #D9958A; color: #111714; }

/* ---------- Inner page layout: content and a side column ---------- */
.layout { display: grid; gap: 32px; }
.layout > * { min-width: 0; } /* swipe lists inside must not widen the column */
.aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.block + .block { margin-top: clamp(24px, 3vw, 36px); }
.block h2 { font-size: clamp(1.3rem, 1.15rem + .55vw, 1.6rem); margin-bottom: 12px; }
.checks { list-style: none; display: grid; gap: 8px; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--ox); margin-top: 3px; }
.checks--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 24px; }
.note { font-size: var(--t-small); color: var(--ink-2); margin-top: 10px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; }
.aside-card h2 { font-size: 1.25rem; }
.aside-list { list-style: none; display: grid; }
.aside-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.aside-list a:hover { color: var(--ox); }
.aside-list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ox); }

/* Article body */
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: .9em; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .55vw, 1.6rem); margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ox); font-family: var(--f-head); font-style: italic; font-size: 1.2rem; }
.narrow { max-width: 760px; }
.narrow--center, .page-head--narrow .wrap > * { margin-inline: auto; }
.page-head--narrow .wrap > * { max-width: 760px; }
.post-author { font-weight: 600; color: var(--ink); }
a.post-author:hover { color: var(--ox); }
.pl--split > .pr:first-child .post-author { color: var(--footer-ink); }
.back-link { margin-top: 24px; }
.back-link svg { transform: rotate(180deg); }
.back-link:hover svg { transform: rotate(180deg) translateX(3px); }
.author { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); }

/* Filters (articles, videos) */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: var(--t-small); font-weight: 500; }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--ox); border-color: var(--ox); color: var(--on-ox); }
.empty { padding: 28px 0; color: var(--ink-2); }

/* Videos (YouTube Shorts, 9:16) */
.video { display: grid; gap: 8px; align-content: start; }
.video-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.video:hover .video-frame { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play .disc { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #7A2E2E; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.video-play .disc::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); opacity: 0; }
.video-play .disc svg { width: 22px; height: 22px; margin-left: 3px; }
.video-play:focus-visible { outline: 3px solid var(--ox); outline-offset: -3px; }
.video-pending { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; background: var(--surface-2); color: var(--ink-2); font-size: var(--t-xs); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.video h2 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
@media (max-width: 599px) { .video h2 { font-size: .9375rem; } }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.5vw, 28px); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.label { font-size: .875rem; font-weight: 600; }
.req { color: var(--ox); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ox); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ox) 18%, transparent); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.textarea--tall { min-height: 180px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.hint { font-size: var(--t-xs); color: var(--ink-2); }
.error { font-size: .875rem; color: var(--err); font-weight: 500; }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--err); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--t-small); }
.radio input:checked + span { background: var(--ox); border-color: var(--ox); color: var(--on-ox); }
.radio input:focus-visible + span { outline: 2px solid var(--ox); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-small); line-height: 1.5; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ox); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--t-small); }
.form-status.is-error { color: var(--err); }
.form-success { display: grid; gap: 10px; justify-items: start; }
.form-success .tick { width: 44px; height: 44px; color: var(--ok); }
.form-success h2 { font-size: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-top: clamp(2rem, 1.6rem + 1.5vw, 3rem); padding-bottom: 20px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-about p { margin-top: 10px; }
.site-footer .brand-name { color: var(--footer-ink); }
.site-footer p { color: var(--footer-muted); }
.footer-col h2 { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 6px; }
.footer-col a { font-size: var(--t-small); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .ph { color: var(--footer-muted); border-color: var(--footer-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--footer-muted) 30%, transparent); font-size: var(--t-xs); color: var(--footer-muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--footer-muted) 40%, transparent); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 599px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}

/* Mobile action bar and cookie notice */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: .75rem; font-weight: 600; }
.action-bar svg { width: 20px; height: 20px; }
.action-bar .is-primary { background: var(--ox); color: var(--on-ox); }
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 480px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.cookie p { font-size: var(--t-small); }
@media (max-width: 899px) {
  .action-bar { display: grid; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .cookie { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

/* Ticker under the hero: practice area names drift slowly; pauses on hover */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 13px; }
.ticker-track { display: flex; width: max-content; }
.ticker span { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--f-head); font-style: italic; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: var(--ink-2); }
.ticker span::after { content: ""; width: 7px; height: 7px; margin-inline: 26px; border-radius: 50%; background: var(--ox); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Motion (only with .motion: JavaScript on and no reduced-motion preference) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: translate(6%, -8%) rotate(6deg); } }
@keyframes ping { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.5); } }
.motion .hero-copy > *, .motion .page-head .wrap > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.motion .hero-copy > :nth-child(2), .motion .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
.motion .hero-copy > :nth-child(3), .motion .page-head .wrap > :nth-child(3) { animation-delay: .16s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .24s; }
.motion .hero-copy > :nth-child(5) { animation-delay: .32s; }
.motion .hero-copy > :nth-child(6) { animation-delay: .45s; }
@keyframes nudge { 50% { transform: rotate(90deg) translateX(5px); } }
.motion .scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }
.motion .hero .portrait { animation: settle 1s cubic-bezier(.2,.7,.2,1) .15s backwards; }
.motion .media-ph svg { animation: float 6s ease-in-out infinite; }
.motion .page-head h1::after { animation: grow .8s cubic-bezier(.2,.7,.2,1) .35s backwards; }
.motion .ticker-track { animation: ticker 45s linear infinite; }
.motion .cta-band::before { animation: drift 14s ease-in-out infinite alternate; }
.motion .video-play .disc::after { animation: ping 2.4s ease-out infinite; }
/* scroll reveal: [data-reveal] fades up once; [data-reveal="stagger"] does it child by child */
.motion [data-reveal]:not([data-reveal="stagger"]):not(.is-in), .motion [data-reveal="stagger"]:not(.is-in) > * { opacity: 0; }
.motion [data-reveal].is-in:not([data-reveal="stagger"]), .motion [data-reveal="stagger"].is-in > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

/* Touch screens: standalone links get a comfortable tap area (footer lists 36px, the rest 44px) */
@media (pointer: coarse) {
  .brand, .link-arrow, .footer-bottom nav a { min-height: 44px; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 36px; }
  .site-footer .brand { min-height: 44px; }
  .footer-col ul { gap: 0; }
  .footer-bottom nav { gap: 0 20px; }
  .socials a { display: grid; width: 44px; height: 44px; }
  .lang-list a { min-width: 44px; height: 44px; }
}

/* 404 */
.nf { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: var(--section); }
.nf .code { font-family: var(--f-head); font-size: clamp(4rem, 3rem + 5vw, 7rem); line-height: 1; color: var(--ox); font-weight: 600; }
.nf .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  [data-reveal], [data-reveal] > * { opacity: 1 !important; animation: none !important; }
  .site-header, .action-bar, .cookie, .cta-band, .site-footer, .aside { display: none !important; }
}
