/* ==========================================================================
   Robert J. Lee, P.A. — design system
   Dark-first, editorial, gold accent. No framework, no build step.
   Layers: reset → tokens → base → layout → components → pages → motion
   ========================================================================== */
@layer reset, tokens, base, layout, components, pages, motion, utilities;

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, svg, video { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
}

/* ---------- Tokens ---------- */
@layer tokens {
  :root, .is-dark {
    color-scheme: dark;
    --ink-950: #06090e;
    --ink-900: #0b1119;
    --ink-850: #0f1620;
    --ink-800: #141c28;
    --ink-700: #1d2736;
    --ink-600: #2b374a;
    --ink-500: #48566b;
    --cream-50: #fbf8f1;
    --cream-100: #f3ede0;
    --cream-200: #e7decb;
    --gold-300: #ffd978;
    --gold-400: #f7c64f;
    --gold-500: #f2b632;
    --gold-600: #d59b1f;
    --gold-700: #a8761a;

    --bg: var(--ink-950);
    --bg-2: var(--ink-900);
    --bg-3: var(--ink-850);
    --surface: color-mix(in oklab, var(--ink-800) 72%, transparent);
    --surface-solid: var(--ink-850);
    --text: var(--cream-50);
    --text-2: color-mix(in oklab, var(--cream-50) 70%, transparent);
    --text-3: color-mix(in oklab, var(--cream-50) 48%, transparent);
    --line: color-mix(in oklab, var(--cream-50) 11%, transparent);
    --line-2: color-mix(in oklab, var(--cream-50) 22%, transparent);
    --accent: var(--gold-500);
    --accent-strong: var(--gold-400);
    --accent-ink: var(--ink-950);
    --accent-soft: color-mix(in oklab, var(--gold-500) 14%, transparent);
    --glass: color-mix(in oklab, var(--ink-950) 64%, transparent);
    --shadow: 0 30px 80px -24px rgb(0 0 0 / .65);
    --glow: 0 0 0 1px color-mix(in oklab, var(--gold-500) 30%, transparent), 0 20px 60px -20px color-mix(in oklab, var(--gold-500) 45%, transparent);
    --map-filter: grayscale(1) invert(.92) hue-rotate(185deg) brightness(.9) contrast(1.05);
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: var(--cream-50);
    --bg-2: var(--cream-100);
    --bg-3: #fff;
    --surface: color-mix(in oklab, #fff 62%, transparent);
    --surface-solid: #fff;
    --text: var(--ink-900);
    --text-2: color-mix(in oklab, var(--ink-900) 70%, transparent);
    --text-3: color-mix(in oklab, var(--ink-900) 50%, transparent);
    --line: color-mix(in oklab, var(--ink-900) 11%, transparent);
    --line-2: color-mix(in oklab, var(--ink-900) 24%, transparent);
    --accent: var(--gold-600);
    --accent-strong: var(--gold-700);
    --accent-ink: var(--ink-950);
    --accent-soft: color-mix(in oklab, var(--gold-500) 20%, transparent);
    --glass: color-mix(in oklab, var(--cream-50) 72%, transparent);
    --shadow: 0 30px 80px -34px rgb(20 30 50 / .3);
    --glow: 0 0 0 1px color-mix(in oklab, var(--gold-600) 30%, transparent), 0 20px 60px -24px color-mix(in oklab, var(--gold-600) 40%, transparent);
    --map-filter: none;
  }
  :root {
    --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
    --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1360px;
    --gutter: clamp(1rem, 4vw, 3rem);
    --section: clamp(5rem, 10vw, 8.5rem);
    --radius: 22px;
    --radius-sm: 14px;
    --radius-xs: 8px;
    --nav-h: 80px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --dur: .6s;
    interpolate-size: allow-keywords;
  }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
  body {
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100svh;
    transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
  }
  /* film grain */
  body::before {
    content: "";
    position: fixed; inset: 0; z-index: 9000; pointer-events: none;
    opacity: .055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
  }
  :root[data-theme="light"] body::before { opacity: .09; mix-blend-mode: multiply; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.015em;
    text-wrap: balance;
  }
  h4, h5 { font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
  p { text-wrap: pretty; }
  a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
  strong { font-weight: 600; }
  em { font-style: italic; }
  hr { border: 0; border-top: 1px solid var(--line); }
  html { scrollbar-color: var(--ink-600) transparent; }
  :root[data-theme="light"] html { scrollbar-color: var(--cream-200) transparent; }
}

/* ---------- Layout ---------- */
@layer layout {
  .container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
  .container--narrow { width: min(100% - var(--gutter) * 2, 920px); margin-inline: auto; }
  .section { padding-block: var(--section); position: relative; }
  .section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
  .section--alt { background: var(--bg-2); }
  .section__head {
    display: grid; gap: 1.5rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
  }
  @media (min-width: 900px) {
    .section__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; }
    .section__head > .lead { justify-self: end; max-width: 46ch; }
  }
  .stack > * + * { margin-top: var(--stack, 1rem); }
  .grid { display: grid; gap: var(--gap, 1.25rem); }
  .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  main { display: block; }
}

/* ---------- Components ---------- */
@layer components {
  /* Type scale */
  .h-xxl { font-size: clamp(3.1rem, 9vw, 8.25rem); line-height: .94; letter-spacing: -.03em; }
  .h-xl  { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.025em; }
  .h-lg  { font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: 1.04; }
  .h-md  { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.12; }
  .h-sm  { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
  .accent, .h-xxl em, .h-xl em, .h-lg em, .h-md em { font-style: italic; color: var(--accent); }
  .eyebrow {
    display: inline-flex; align-items: center; gap: .75em;
    font: 600 .72rem/1 var(--font-body);
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent);
  }
  .eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .8; }
  .eyebrow--plain::before { display: none; }
  .lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--text-2); max-width: 62ch; }
  .muted { color: var(--text-2); }
  .faint { color: var(--text-3); }
  .num { font-family: var(--font-display); font-style: italic; color: var(--text-3); font-size: 1.1em; }
  .prose > * + * { margin-top: 1.1em; }
  .prose p { color: var(--text-2); font-size: 1.08rem; line-height: 1.7; max-width: 70ch; }
  .prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
  .prose h3 { margin-top: 1.8em; font-size: 1.35rem; line-height: 1.2; }
  .prose ul, .prose ol { padding-left: 1.3em; color: var(--text-2); }
  .prose li + li { margin-top: .4em; }
  .prose a { color: var(--accent); }
  .dropcap > p:first-of-type::first-letter {
    font-family: var(--font-display); font-size: 3.6em; line-height: .78;
    float: left; margin: .08em .14em 0 0; color: var(--accent);
  }

  /* Buttons */
  .btn {
    --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-border: transparent;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .65em;
    padding: 1.05em 1.65em; border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    border: 1px solid var(--btn-border);
    font-weight: 600; font-size: .95rem; letter-spacing: .005em; line-height: 1;
    text-decoration: none; white-space: nowrap;
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), background-color .3s, color .3s, border-color .3s;
    will-change: transform;
  }
  .btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .38), transparent 62%);
    opacity: 0; transition: opacity .35s;
  }
  .btn:hover::after, .btn:focus-visible::after { opacity: 1; }
  .btn:hover { box-shadow: 0 14px 34px -14px color-mix(in oklab, var(--accent) 70%, transparent); }
  .btn .ico { width: 1.05em; height: 1.05em; flex: none; transition: translate .4s var(--ease-out); }
  .btn:hover .ico--arrow { translate: 4px 0; }
  .btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--line-2); }
  .btn--ghost:hover { --btn-border: var(--text); box-shadow: none; }
  .btn--ghost::after { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--text) 12%, transparent), transparent 62%); }
  .btn--light { --btn-bg: var(--cream-50); --btn-fg: var(--ink-950); }
  .btn--sm { padding: .85em 1.3em; font-size: .88rem; }
  .btn--lg { padding: 1.2em 2em; font-size: 1.02rem; }
  .btn--block { width: 100%; }
  .link-arrow {
    display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--text);
  }
  .link-arrow .ico { width: 1em; height: 1em; transition: translate .4s var(--ease-out); }
  .link-arrow:hover .ico { translate: 4px 0; }
  .link-arrow:hover { color: var(--accent); }
  .icon-btn {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line); color: var(--text); background: transparent;
    transition: border-color .3s, background-color .3s, transform .4s var(--ease-out);
  }
  .icon-btn:hover { border-color: var(--text); }
  .icon-btn svg { width: 18px; height: 18px; }

  /* Skip link + progress */
  .skip-link {
    position: fixed; top: .75rem; left: .75rem; z-index: 10000;
    padding: .75rem 1rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
    font-weight: 600; text-decoration: none; translate: 0 -200%; transition: translate .3s;
  }
  .skip-link:focus { translate: 0 0; }
  .progress {
    position: fixed; top: 0; left: 0; z-index: 1001; height: 2px; width: 100%;
    background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  }

  /* Navigation */
  .nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 1000;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: height .45s var(--ease-out);
    view-transition-name: site-nav;
  }
  .nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--line);
    opacity: 0; transition: opacity .45s;
  }
  .nav.is-scrolled { --nav-h: 66px; }
  .nav.is-scrolled::before { opacity: 1; }
  /* over a dark hero, the transparent nav always reads light, even in the light theme */
  body:has(main > .is-dark:first-child) .nav:not(.is-scrolled) {
    --text: var(--cream-50);
    --text-2: color-mix(in oklab, var(--cream-50) 74%, transparent);
    --text-3: color-mix(in oklab, var(--cream-50) 50%, transparent);
    --line: color-mix(in oklab, var(--cream-50) 16%, transparent);
    --accent: var(--gold-500);
    color: var(--text);
  }
  .nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
  .brand__mark { width: 34px; height: 44px; color: var(--accent); flex: none; }
  .brand__text { display: flex; flex-direction: column; line-height: 1.05; }
  .brand__name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.01em; white-space: nowrap; }
  .brand__sub { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); margin-top: .25rem; }
  .nav__links { display: none; align-items: center; gap: .25rem; }
  .nav__links a {
    position: relative; padding: .55rem .9rem; border-radius: 999px;
    font-size: .93rem; font-weight: 500; color: var(--text-2); text-decoration: none;
    transition: color .3s, background-color .3s;
  }
  .nav__links a:hover { color: var(--text); background: color-mix(in oklab, var(--text) 7%, transparent); }
  .nav__links a[aria-current="page"] { color: var(--text); }
  .nav__links a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: .15rem; width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent); translate: -50% 0;
  }
  .nav__actions { display: flex; align-items: center; gap: .6rem; }
  .nav__phone { display: none; font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--text); padding: .5rem .75rem; }
  .nav__phone:hover { color: var(--accent); }
  .nav .btn--sm { display: none; }
  .theme-btn .sun, .theme-btn .moon { position: absolute; transition: opacity .3s, rotate .5s var(--ease-out), scale .4s; }
  .theme-btn { position: relative; }
  .theme-btn .moon { opacity: 1; }
  .theme-btn .sun { opacity: 0; rotate: -90deg; scale: .6; }
  :root[data-theme="light"] .theme-btn .moon { opacity: 0; rotate: 90deg; scale: .6; }
  :root[data-theme="light"] .theme-btn .sun { opacity: 1; rotate: 0deg; scale: 1; }
  .burger .ico-close { display: none; }
  body.menu-open .burger .ico-menu { display: none; }
  body.menu-open .burger .ico-close { display: block; }
  @media (min-width: 1024px) {
    .nav__links { display: flex; }
    .nav__phone { display: inline-block; }
    .nav .btn--sm { display: inline-flex; }
    .burger { display: none; }
  }

  /* Full-screen menu */
  .menu {
    position: fixed; inset: 0; z-index: 999;
    display: grid; grid-template-rows: var(--nav-h) 1fr auto;
    background: var(--bg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s var(--ease-out), visibility 0s .45s;
  }
  .menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s var(--ease-out); }
  .menu__links { display: grid; align-content: center; gap: .25rem; padding-block: 2rem; }
  .menu__links a {
    font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 4.5rem); line-height: 1.05; letter-spacing: -.02em;
    text-decoration: none; color: var(--text); display: flex; align-items: baseline; gap: 1rem;
    opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out), color .3s;
    transition-delay: calc(var(--i) * 60ms + 120ms);
  }
  .menu.is-open .menu__links a { opacity: 1; translate: 0 0; }
  .menu__links a .num { font-size: .9rem; font-style: italic; color: var(--text-3); }
  .menu__links a:hover { color: var(--accent); }
  .menu__foot { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; font-size: .95rem; color: var(--text-2); }
  .menu__foot a { color: var(--text); text-decoration: none; }
  body.menu-open { overflow: hidden; }

  /* Hero */
  .hero {
    position: relative; isolation: isolate; overflow: clip;
    min-height: min(100svh, 960px);
    display: grid; align-items: end;
    padding-block: calc(var(--nav-h) + 5rem) clamp(2.5rem, 5vw, 4rem);
  }
  .hero__media { position: absolute; inset: -12% 0 0; z-index: -3; }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform-origin: 50% 60%; }
  .hero__scrim { position: absolute; inset: 0; z-index: -2;
    background:
      linear-gradient(to top, var(--ink-950) 0%, color-mix(in oklab, var(--ink-950) 78%, transparent) 32%, color-mix(in oklab, var(--ink-950) 35%, transparent) 70%, color-mix(in oklab, var(--ink-950) 55%, transparent) 100%),
      linear-gradient(100deg, color-mix(in oklab, var(--ink-950) 70%, transparent) 0%, transparent 60%);
  }
  .hero__glow { position: absolute; z-index: -1; left: -10%; bottom: -20%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in oklab, var(--gold-500) 22%, transparent), transparent 70%);
    filter: blur(40px);
  }
  .hero__inner { display: grid; gap: 2.5rem; align-items: end; }
  @media (min-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 4rem; } }
  .hero__eyebrow { margin-bottom: 1.5rem; }
  .hero h1 { max-width: 12ch; }
  .hero .lead { margin-top: 1.75rem; max-width: 52ch; color: color-mix(in oklab, var(--cream-50) 78%, transparent); }
  .hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
  .hero__panel {
    border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem);
    background: color-mix(in oklab, var(--ink-900) 55%, transparent);
    border: 1px solid color-mix(in oklab, var(--cream-50) 14%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    display: grid; gap: 1.1rem;
  }
  .hero__panel .eyebrow { color: var(--gold-400); }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .stat__n { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; color: var(--cream-50); letter-spacing: -.02em; }
  .stat__n small { font-size: .55em; color: var(--gold-400); font-style: italic; }
  .stat__l { font-size: .78rem; color: color-mix(in oklab, var(--cream-50) 62%, transparent); margin-top: .35rem; letter-spacing: .02em; }
  .hero__scroll {
    position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0;
    display: none; align-items: center; gap: .6rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3);
  }
  .hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); display: block; animation: scrollcue 2.2s var(--ease-in-out) infinite; }
  @media (min-width: 1024px) { .hero__scroll { display: flex; flex-direction: column; } }
  .hero .w { display: inline-block; }

  /* Trust bar */
  .trust { border-block: 1px solid var(--line); background: var(--bg); }
  .trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 2.5rem; padding: 1.1rem 0; }
  .trust__item { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--text-2); letter-spacing: .02em; white-space: nowrap; }
  .trust__item svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
  .trust__item b { color: var(--text); font-weight: 600; }
  @media (max-width: 760px) {
    .trust__row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 2rem; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
    .trust__row::-webkit-scrollbar { display: none; }
  }

  /* Cards + spotlight */
  .card {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--surface);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding: clamp(1.4rem, 2.4vw, 2rem);
    transition: transform .6s var(--ease-out), border-color .35s, box-shadow .6s var(--ease-out);
  }
  .card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 16%, transparent), transparent 46%);
    opacity: 0; transition: opacity .4s;
  }
  .card:hover::before { opacity: 1; }
  .card:hover { border-color: var(--line-2); transform: translateY(-3px); }
  .card--solid { background: var(--surface-solid); }
  .card__big { font-family: var(--font-display); font-size: clamp(3rem, 5.5vw, 4.75rem); line-height: .95; letter-spacing: -.03em; color: var(--accent); }
  .card__big small { font-size: .5em; font-style: italic; }
  .card__title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; margin-top: .9rem; }
  .card__text { color: var(--text-2); font-size: .95rem; margin-top: .6rem; }
  .card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
  .card__icon svg { width: 22px; height: 22px; }

  /* Bento */
  .bento { display: grid; gap: 1rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento > * { grid-column: span 12; }
  @media (min-width: 700px) {
    .bento .sp-6 { grid-column: span 6; }
    .bento .sp-4 { grid-column: span 6; }
    .bento .sp-8 { grid-column: span 12; }
  }
  @media (min-width: 1024px) {
    .bento .sp-4 { grid-column: span 4; }
    .bento .sp-8 { grid-column: span 8; }
    .bento .sp-6 { grid-column: span 6; }
    .bento .sp-3 { grid-column: span 3; }
  }
  .bento .card { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
  .bento .card--media { padding: 0; min-height: 320px; }
  .bento .card--media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
  .bento .card--media:hover img { transform: scale(1.04); }
  .bento .card--media .scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(6 9 14 / .92), rgb(6 9 14 / .25) 60%, transparent); }
  .bento .card--media .card__body { padding: clamp(1.4rem, 2.4vw, 2rem); margin-top: auto; color: var(--cream-50); }
  .bento .card--media .card__text { color: color-mix(in oklab, var(--cream-50) 72%, transparent); }
  .bento .card--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
  .bento .card--accent .card__text, .bento .card--accent .eyebrow { color: color-mix(in oklab, var(--ink-950) 70%, transparent); }
  .bento .card--accent::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .35), transparent 46%); }
  .pill-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
  .pill { padding: .4em .8em; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; color: var(--text-2); }
  .card--accent .pill { border-color: color-mix(in oklab, var(--ink-950) 25%, transparent); color: var(--ink-950); }

  /* Practice filter + grid */
  .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
  .chip {
    padding: .6em 1.15em; border-radius: 999px; border: 1px solid var(--line);
    font-size: .88rem; font-weight: 500; color: var(--text-2); background: transparent;
    transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
  }
  .chip:hover { border-color: var(--text); color: var(--text); }
  .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .pgrid {
    --line-solid: color-mix(in oklab, var(--text) 11%, var(--bg));
    display: grid; gap: 1px; background: transparent;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  }
  .pcard {
    position: relative; display: flex; flex-direction: column; gap: 1rem;
    min-height: 250px; padding: 1.75rem; background: var(--bg);
    text-decoration: none; color: inherit;
    outline: 1px solid var(--line-solid);
    transition: background-color .4s var(--ease-out);
  }
  .pcard:hover { background: var(--bg-3); }
  .pcard:focus-visible { background: var(--bg-3); outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; }
  .pcard--cta { background: var(--accent); color: var(--accent-ink); justify-content: center; }
  .pcard--cta:hover { background: var(--accent-strong); }
  .pcard--cta .pcard__sum { color: color-mix(in oklab, var(--ink-950) 72%, transparent); margin-top: 0; }
  .pcard--cta .pcard__arrow { border-color: color-mix(in oklab, var(--ink-950) 30%, transparent); color: var(--ink-950); }
  .pcard--cta:hover .pcard__arrow { background: var(--ink-950); color: var(--accent); border-color: var(--ink-950); }
  .pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
  .pcard__idx { font-family: var(--font-display); font-style: italic; color: var(--text-3); font-size: 1rem; }
  .pcard__cat { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
  .pcard__title { font-family: var(--font-display); font-size: clamp(1.55rem, 2vw, 1.9rem); line-height: 1.08; letter-spacing: -.01em; }
  .pcard__sum { color: var(--text-2); font-size: .93rem; line-height: 1.55; margin-top: auto; }
  .pcard__arrow {
    width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--text);
    transition: background-color .4s, color .4s, rotate .5s var(--ease-out), border-color .4s;
  }
  .pcard__arrow svg { width: 16px; height: 16px; }
  .pcard:hover .pcard__arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); rotate: -45deg; }
  .pcard[hidden] { display: none; }
  .pcard { animation: fade-in .5s var(--ease-out) both; }
  @starting-style { .pcard { opacity: 0; } }

  /* Process */
  .process { display: grid; gap: 3rem; }
  @media (min-width: 960px) { .process { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; } .process__sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); align-self: start; } }
  .steps { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); padding-left: 4rem; }
  .steps::before { content: ""; position: absolute; left: 1.35rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--line); }
  .steps::after { content: ""; position: absolute; left: 1.35rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--accent); transform-origin: 50% 0; transform: scaleY(1); }
  .step { position: relative; }
  .step__n {
    position: absolute; left: -4rem; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center;
    font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--accent);
  }
  .step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
  .step p { margin-top: .6rem; color: var(--text-2); max-width: 52ch; }

  /* Team */
  .team { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
  @media (max-width: 720px) {
    .team { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; padding-bottom: .75rem; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
    .team::-webkit-scrollbar { display: none; }
    .team > * { flex: 0 0 74%; scroll-snap-align: start; }
  }
  .member {
    position: relative; isolation: isolate; overflow: hidden; display: block;
    aspect-ratio: 3 / 4; border-radius: var(--radius); text-decoration: none; color: var(--cream-50);
    background: var(--bg-3);
  }
  .member img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.1s var(--ease-out), filter .6s; filter: saturate(.92); }
  .member:hover img { transform: scale(1.06); filter: saturate(1); }
  .member::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(6 9 14 / .9) 0%, rgb(6 9 14 / .35) 40%, transparent 65%); z-index: 1; }
  .member__meta { position: absolute; z-index: 2; inset-inline: 1.2rem; bottom: 1.2rem; }
  .member__name { font-family: var(--font-display); font-size: clamp(1.4rem, 1.8vw, 1.75rem); line-height: 1.05; }
  .member__role { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-top: .4rem; }
  .member__go { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in oklab, var(--ink-950) 50%, transparent); border: 1px solid color-mix(in oklab, var(--cream-50) 25%, transparent);
    opacity: 0; translate: 0 -6px; transition: opacity .4s, translate .5s var(--ease-out); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .member__go svg { width: 16px; height: 16px; }
  .member:hover .member__go { opacity: 1; translate: 0 0; }

  /* Quotes */
  .quotes { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  @media (max-width: 720px) {
    .quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: .5rem; }
    .quotes::-webkit-scrollbar { display: none; }
    .quotes > * { flex: 0 0 86%; scroll-snap-align: center; }
  }
  .quote { display: flex; flex-direction: column; }
  .quote__mark { font-family: var(--font-display); font-size: 4rem; line-height: .5; color: var(--accent); margin-bottom: 1.25rem; }
  .quote__text { font-family: var(--font-display); font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.32; letter-spacing: -.005em; text-wrap: pretty; }
  .quote__by { margin-top: auto; padding-top: 1.75rem; display: flex; align-items: center; gap: .9rem; }
  .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; flex: none; }
  .quote__name { font-weight: 600; font-size: .95rem; }
  .stars { display: flex; gap: 2px; color: var(--accent); margin-top: .15rem; }
  .stars svg { width: 12px; height: 12px; }

  /* FAQ */
  .faq { border-top: 1px solid var(--line); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary {
    list-style: none; cursor: pointer; padding: 1.35rem 0;
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    font-family: var(--font-display); font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.25;
    transition: color .3s;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary:hover { color: var(--accent); }
  .faq__plus { position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line-2); transition: rotate .5s var(--ease-out), background-color .3s, border-color .3s; }
  .faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: currentColor; translate: -50% -50%; }
  .faq__plus::before { width: 12px; height: 1.5px; }
  .faq__plus::after { width: 1.5px; height: 12px; }
  .faq details[open] .faq__plus { rotate: 45deg; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .faq__body { padding: 0 0 1.5rem; color: var(--text-2); max-width: 72ch; line-height: 1.65; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }

  /* Contact */
  .contact { display: grid; gap: 2rem; }
  @media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: start; } }
  .form { display: grid; gap: 1rem; }
  .form__row { display: grid; gap: 1rem; }
  @media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
  .field { display: grid; gap: .45rem; }
  .field label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
  .field input, .field select, .field textarea {
    width: 100%; padding: .95rem 1.05rem; border-radius: var(--radius-sm);
    background: color-mix(in oklab, var(--text) 4%, transparent); border: 1px solid var(--line);
    color: var(--text); transition: border-color .3s, box-shadow .3s, background-color .3s;
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
  .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
  .field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .field textarea { min-height: 150px; resize: vertical; }
  .form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
  .form__note { font-size: .8rem; color: var(--text-3); max-width: 44ch; }
  .form__status { font-size: .95rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); display: none; }
  .form__status.is-ok { display: block; border-color: color-mix(in oklab, var(--accent) 50%, transparent); background: var(--accent-soft); }
  .form__status.is-err { display: block; border-color: #e5484d; color: #ffb4b6; }
  .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
  .info { display: grid; }
  .info__item { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
  .info__item:first-child { padding-top: 0; }
  .info__ico { width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
  .info__ico svg { width: 20px; height: 20px; }
  .info__label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
  .info__value { font-size: 1.1rem; margin-top: .2rem; }
  .info__value a { text-decoration: none; }
  .info__value a:hover { color: var(--accent); }
  .info__sub { font-size: .85rem; color: var(--text-3); margin-top: .15rem; }
  .map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-3); }
  .map iframe { width: 100%; height: 100%; border: 0; filter: var(--map-filter); }

  /* CTA band */
  .cta { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(5rem, 12vw, 10rem); text-align: center; }
  .cta__media { position: absolute; inset: -10% 0; z-index: -2; }
  .cta__media img { width: 100%; height: 100%; object-fit: cover; }
  .cta__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--ink-950), color-mix(in oklab, var(--ink-950) 55%, transparent) 50%, var(--ink-950)); }
  .cta h2 { margin-inline: auto; max-width: 16ch; }
  .cta .lead { margin: 1.5rem auto 0; text-align: center; }
  .cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
  .cta__phone { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); text-decoration: none; display: inline-block; margin-top: 2rem; letter-spacing: -.01em; }
  .cta__phone:hover { color: var(--accent); }

  /* Page hero (inner pages) */
  .phero { position: relative; isolation: isolate; overflow: clip;
    padding-top: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
  .phero--media { padding-top: calc(var(--nav-h) + clamp(5rem, 12vw, 9rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
  .phero__media { position: absolute; inset: -15% 0 0; z-index: -2; }
  .phero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
  .phero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--ink-950) 0%, color-mix(in oklab, var(--ink-950) 72%, transparent) 50%, color-mix(in oklab, var(--ink-950) 60%, transparent) 100%); }
  .phero h1 { margin-top: 1.25rem; max-width: 14ch; }
  .phero .lead { margin-top: 1.5rem; }
  .crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--text-3); }
  .crumbs a { color: var(--text-3); text-decoration: none; }
  .crumbs a:hover { color: var(--text); }
  .crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

  /* Two-column article layouts */
  .split { display: grid; gap: 3rem; }
  @media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; } .split__aside { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; } }
  .split--rev { }
  @media (min-width: 1000px) { .split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
  .checks { list-style: none; padding: 0; display: grid; gap: .8rem; }
  .checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; align-items: start; color: var(--text-2); }
  .checks li::before { content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b632' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; margin-top: .1rem; }
  .aside-card { display: grid; gap: 1rem; }
  .aside-card .btn { width: 100%; }
  .aside-card__phone { font-family: var(--font-display); font-size: 2rem; text-decoration: none; letter-spacing: -.01em; }
  .aside-card__phone:hover { color: var(--accent); }
  .aside-list { list-style: none; padding: 0; margin: 0; }
  .aside-list li { border-top: 1px solid var(--line); }
  .aside-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; text-decoration: none; color: var(--text-2); font-size: .95rem; transition: color .3s, padding-left .3s; }
  .aside-list a:hover { color: var(--text); padding-left: .35rem; }
  .aside-list svg { width: 14px; height: 14px; flex: none; opacity: .6; }
  .mini-team { display: grid; gap: .75rem; }
  .mini-team a { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
  .mini-team img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
  .mini-team b { display: block; font-weight: 600; font-size: .95rem; }
  .mini-team span { font-size: .78rem; color: var(--text-3); }
  .mini-team a:hover b { color: var(--accent); }

  /* Attorney bio */
  .portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-3); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
  .facts { display: grid; gap: 1.25rem; }
  .facts h4 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: .5rem; }
  .facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; color: var(--text-2); font-size: .95rem; }
  .facts li { padding-left: 1rem; position: relative; }
  .facts li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; rotate: 45deg; background: var(--accent); }
  .bio-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.25; color: var(--text); padding-left: 1.5rem; border-left: 2px solid var(--accent); margin-block: 2rem; }

  /* Values list */
  .values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .value { background: var(--bg); padding: 2rem 1.75rem; }
  .value .num { display: block; margin-bottom: 1.25rem; }
  .value h3 { font-size: 1.6rem; line-height: 1.1; }
  .value p { color: var(--text-2); font-size: .95rem; margin-top: .6rem; }

  /* Footer */
  .footer { position: relative; overflow: clip; border-top: 1px solid var(--line); padding-top: clamp(4rem, 8vw, 6rem); }
  .footer__top { display: grid; gap: 3rem; }
  @media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 4rem; } }
  .footer__brand { display: grid; gap: 1.25rem; align-content: start; }
  .footer__brand .brand__mark { width: 44px; height: 58px; }
  .footer__brand address { font-style: normal; color: var(--text-2); line-height: 1.7; font-size: .95rem; }
  .footer__brand a { text-decoration: none; }
  .footer__brand a:hover { color: var(--accent); }
  .footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
  .footer__cols h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
  .footer__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
  .footer__cols a { font-size: .93rem; color: var(--text-2); text-decoration: none; transition: color .3s; }
  .footer__cols a:hover { color: var(--text); }
  .footer__cols .cols-2 { columns: 2; column-gap: 1.5rem; display: block; }
  .footer__cols .cols-2 li { break-inside: avoid; margin-bottom: .5rem; }
  .disclaimer { font-size: .78rem; line-height: 1.6; color: var(--text-3); max-width: 100ch; margin-top: 3rem; }
  .footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding: 1.5rem 0; margin-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-3); }
  .footer__bottom a { color: var(--text-3); text-decoration: none; }
  .footer__bottom a:hover { color: var(--text); }
  .footer__bottom ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
  .footer__wordmark {
    font-family: var(--font-display); font-size: clamp(7rem, 26vw, 24rem); line-height: .72; letter-spacing: -.05em;
    text-align: center; user-select: none; pointer-events: none;
    color: color-mix(in oklab, var(--text) 6%, transparent);
    translate: 0 18%;
    -webkit-mask: linear-gradient(#000 20%, transparent 95%); mask: linear-gradient(#000 20%, transparent 95%);
  }

  /* Mobile call bar */
  .callbar {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 900;
    display: none; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .callbar .btn { width: 100%; }
  @media (max-width: 760px) { .callbar { display: grid; } body { padding-bottom: 4.6rem; } .menu-open .callbar { display: none; } }

  /* Back to top */
  .totop { position: fixed; right: 1rem; bottom: 1rem; z-index: 800; opacity: 0; translate: 0 10px; pointer-events: none; transition: opacity .3s, translate .4s var(--ease-out); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .totop.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
  @media (max-width: 760px) { .totop { bottom: 5.2rem; } }

  /* Tables / misc */
  .kv { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: .25rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .kv dt { color: var(--text-3); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .15rem; }
  .kv dd { margin: 0; color: var(--text-2); }
  .kv-wrap { margin: 1rem 0 1.5rem; border-top: 1px solid var(--line); }
  .sitemap-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .sitemap-grid h2 { font-size: 1.5rem; margin-bottom: .75rem; }
  .sitemap-grid ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
  .sitemap-grid a { color: var(--text-2); text-decoration: none; }
  .sitemap-grid a:hover { color: var(--accent); }
  .badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5em .9em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
  .badge svg { width: 14px; height: 14px; }
  .lang-row { display: flex; flex-wrap: wrap; gap: .5rem; }
}

/* ---------- Pages ---------- */
@layer pages {
  .intro { display: grid; gap: 2.5rem; }
  @media (min-width: 960px) { .intro { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 5rem; align-items: start; } }
  .intro__statement { font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 3.1rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: pretty; }
  .intro__statement em { font-style: italic; color: var(--accent); }
  .intro__aside { display: grid; gap: 1.25rem; color: var(--text-2); }
  .intro__aside p { max-width: 48ch; }

  .cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .cat { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); min-height: 300px; display: flex; align-items: flex-end; padding: 1.5rem; text-decoration: none; color: var(--cream-50); background: var(--bg-3); }
  .cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
  .cat:hover img { transform: scale(1.05); }
  .cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(6 9 14 / .94), rgb(6 9 14 / .3) 55%, rgb(6 9 14 / .15)); }
  .cat h3 { font-size: 1.9rem; line-height: 1.05; }
  .cat p { font-size: .88rem; color: color-mix(in oklab, var(--cream-50) 70%, transparent); margin-top: .5rem; }
  .cat .count { position: absolute; top: 1.25rem; right: 1.25rem; font-family: var(--font-display); font-style: italic; color: var(--gold-400); }

  .office { display: grid; gap: 2rem; }
  @media (min-width: 960px) { .office { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; } }
  .office__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
  .office__media img { width: 100%; height: 100%; object-fit: cover; }
  .hours { display: grid; gap: .5rem; margin-top: 1rem; }
  .hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .hours span:last-child { color: var(--text-2); }

  .not-found { min-height: 70svh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
  .not-found .h-xxl { color: color-mix(in oklab, var(--text) 12%, transparent); }
}

/* ---------- Motion ---------- */
@layer motion {
  @keyframes rise { from { opacity: 0; translate: 0 .5em; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
  @keyframes parallax { to { translate: 0 22%; } }
  @keyframes parallax-sm { to { translate: 0 12%; } }
  @keyframes grow-x { to { transform: scaleX(1); } }
  @keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
  @keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 14px; } }

  /* Entrance (JS adds .in via IntersectionObserver) */
  [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); transition-delay: var(--d, 0ms); }
  [data-reveal].in { opacity: 1; translate: 0 0; }
  [data-reveal="fade"] { translate: 0 0; }
  [data-reveal="scale"] { translate: 0 0; scale: .96; transition: opacity .9s var(--ease-out), scale 1s var(--ease-out); }
  [data-reveal="scale"].in { scale: 1; }
  html.no-js [data-reveal] { opacity: 1; translate: 0 0; scale: 1; }

  /* Hero entrance */
  .hero h1 .w { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
  .hero__eyebrow, .hero .lead, .hero__actions, .hero__panel { animation: rise 1s var(--ease-out) both; }
  .hero__eyebrow { animation-delay: .05s; }
  .hero .lead { animation-delay: .55s; }
  .hero__actions { animation-delay: .7s; }
  .hero__panel { animation-delay: .85s; }
  .hero__media img { animation: hero-zoom 2.2s var(--ease-out) both; }

  /* Scroll-driven (progressive enhancement) */
  @supports (animation-timeline: scroll()) {
    .progress { animation: grow-x linear both; animation-timeline: scroll(root); }
    .hero__media { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .phero__media, .cta__media { animation: parallax-sm linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .steps::after { animation: grow-y linear both; animation-timeline: view(); animation-range: entry 35% exit 65%; }
    .footer__wordmark { animation: wordmark-up linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
  @keyframes wordmark-up { from { translate: 0 45%; opacity: 0; } to { translate: 0 18%; opacity: 1; } }

  /* Cross-document view transitions */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .25s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
  ::view-transition-old(site-nav), ::view-transition-new(site-nav) { animation: none; mix-blend-mode: normal; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; translate: 0 0; scale: 1; }
    .hero__media img, .hero h1 .w, .hero__eyebrow, .hero .lead, .hero__actions, .hero__panel { animation: none; opacity: 1; }
  }
}

/* ---------- Utilities ---------- */
@layer utilities {
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; } .mt-8 { margin-top: 4rem; }
  .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
  .center { text-align: center; }
  .mx-auto { margin-inline: auto; }
  .row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
  .max-60 { max-width: 60ch; }
  .is-dark { background: var(--bg); color: var(--text); }
}
