/* Self-hosted fonts (SIL Open Font License), subset to Latin + Latin-1 (~18 KB each).
   Playfair uses font-display: optional so headings never visibly swap; Inter swaps
   because body text must show at once. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/playfair-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/playfair-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

:root {
  /* Midnight navy base with one accent: Cyberpunk "Kiroshi" yellow. Yellow is the
     colour of action (primary buttons) and of small marks (labels, numerals, rules);
     it only ever sits on the dark surfaces, where it has ample contrast. */
  --color-bg:          #0b0f17;
  --color-surface:     #0f1520;
  --color-raised:      #151c29;
  --color-deep:        #070a10;
  --color-line:        rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.16);
  --color-heading:     #f1f3f6;
  --color-text:        #d0d5dd;
  --color-muted:       #a7afbc;
  --color-accent:      #f3e600;
  --color-accent-hi:   #fff23d;
  --color-accent-dim:  rgba(243, 230, 0, 0.42);
  --color-accent-soft: rgba(243, 230, 0, 0.08);

  /* Hairline that catches light: brighter at the top-left, warming to yellow at the
     bottom-right. Used as a border-box background behind a padding-box fill. */
  --edge: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 45%, rgba(243, 230, 0, 0.16));
  --shadow-soft: 0 30px 60px -30px rgba(0, 0, 0, 0.75);

  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   clamp(0.8rem,  1.6vw, 0.86rem);
  --text-sm:   clamp(0.95rem, 1.9vw, 1.02rem);
  --text-base: clamp(1rem,    2.1vw, 1.0625rem);
  --text-lg:   clamp(1.15rem, 2.6vw, 1.3rem);
  --text-xl:   clamp(1.75rem, 4vw,   2.5rem);
  --text-hero: clamp(2.3rem,  5.6vw, 3.9rem);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: clamp(3.5rem, 7vw, 5.5rem);

  --container-max: 1120px;
  --container-pad: clamp(1rem, 5vw, 3rem);
  --header-h:      4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* dark native UI: scrollbars, overscroll, form controls */
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* matches the page so iOS/Android overscroll never flashes white */
  background: var(--color-bg);
  scroll-behavior: smooth;
  /* anchor targets land below the sticky header */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--color-accent); color: var(--color-deep); }

/* avoids single-word last lines in paragraphs on narrow screens */
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; touch-action: manipulation; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  /* keeps content clear of the notch when a phone is held sideways */
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 100;
  background: var(--color-accent);
  color: var(--color-deep);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.skip-link:focus { top: var(--space-sm); }

/* ---------- Shared type ---------- */

/* Small-caps label with a short accent rule in front of it */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--light { color: var(--color-accent); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-heading);
}

.section-head { max-width: 40rem; margin-bottom: var(--space-lg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out),
              border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 150ms;
}
.btn svg { width: 1.15em; height: 1.15em; margin-right: 0.55em; flex-shrink: 0; }

/* Primary: the one place yellow is a fill. Soft glow beneath, faint highlight on top. */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-deep);
  box-shadow: 0 12px 32px -14px rgba(243, 230, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
/* Secondary: frosted glass */
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--color-line-strong);
  color: var(--color-heading);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--color-accent-hi);
    box-shadow: 0 16px 40px -12px rgba(243, 230, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.32); }
}

/* press feedback for touch, where there is no hover */
.btn:active { transform: scale(0.98); }
.btn--primary:active { background: var(--color-accent-hi); }
.btn--ghost:active { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms;
}
/* 2px accent line along the top edge, fading out at both ends */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 18%, var(--color-accent) 82%, transparent);
}
.site-header--scrolled { border-bottom-color: var(--color-line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-h);
}

.wordmark { display: flex; flex-direction: column; justify-content: center; min-height: 44px; line-height: 1.2; }
.wordmark__name {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  color: var(--color-heading);
}
.wordmark__sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.site-nav { display: flex; align-items: center; gap: var(--space-md); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.2rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  transition: color 300ms, border-color 300ms, background-color 300ms;
}
/* Contact is a small glass pill */
.site-nav .site-nav__cta {
  padding-inline: 1.1rem;
  color: var(--color-heading);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
}
.site-nav .site-nav__cta:active { border-color: var(--color-accent); }

@media (hover: hover) {
  .site-nav a:hover { color: var(--color-heading); }
  .site-nav .site-nav__cta:hover { border-color: var(--color-accent-dim); background: var(--color-accent-soft); }
}

/* On phones the name needs the room; only the Contact pill stays. */
@media (max-width: 640px) {
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  /* less room above than below, so the headline sits close under the header */
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5.5rem);
}
/* faint pools of light behind the portrait: cool navy, with a trace of the accent */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 55% at 82% 35%, rgba(64, 104, 180, 0.16), transparent 70%),
    radial-gradient(30% 35% at 70% 80%, rgba(243, 230, 0, 0.05), transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--color-heading);
  margin-bottom: var(--space-md);
}
/* soft silver sheen on the italic line; plain muted colour where clipping isn't supported */
.hero__title em {
  display: block;
  font-style: italic;
  color: var(--color-muted);
  background: linear-gradient(90deg, #e2e6ec, #b0b8c4 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text);
  max-width: 34rem;
  margin-bottom: var(--space-lg);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.hero__portrait {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  /* index.html sets a tiny blurred copy of the photo as an inline background-image,
     so the frame is filled the instant the page paints, before the real photo arrives */
  background: var(--color-surface) center top / cover no-repeat;
}
/* object-fit lets any photo crop into the 4:5 frame without distortion */
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  /* hides the alt text browsers draw while an image is loading; screen readers still get it */
  color: transparent;
}
/* accent hairline offset behind the photo, like a mounted print */
.hero__portrait::before {
  content: '';
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  border: 1px solid var(--color-accent-dim);
  border-radius: var(--radius-lg);
  z-index: -1;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* single column: the headshot leads, in a shorter 4:3 crop on his face so the
     headline still shows above the fold */
  .hero__portrait { order: -1; aspect-ratio: 4 / 3; max-width: 30rem; margin-right: 0.9rem; }
}
/* Phones held sideways: too short for photo-above-text, so keep the desktop
   side-by-side layout with the photo capped to the visible height. */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .hero__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-lg); }
  .hero__portrait {
    order: 0;
    aspect-ratio: 4 / 5;
    max-width: none;
    max-height: calc(100svh - var(--header-h) - 2.5rem);
  }
}
/* Phones: full-width photo and buttons, the latter as easy thumb targets. */
@media (max-width: 560px) {
  :root { --header-h: 4rem; }
  .hero { padding-block: 1.75rem var(--space-xl); }
  .hero__inner { gap: var(--space-lg); }
  .hero__portrait { max-width: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: var(--space-md); }
}

/* ---------- Practice areas ---------- */

.practice {
  padding-block: var(--space-2xl);
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}

.practice__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

/* Each area is a card with a light-catching edge (see --edge) */
.practice__item {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--color-raised), var(--color-surface)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--shadow-soft);
}

.practice__num {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}
.practice__item h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}
.practice__item p { font-size: var(--text-sm); line-height: 1.65; color: var(--color-muted); }

/* Sixth card: a prompt instead of a service, tinted with the accent */
.practice__item--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* the tint is translucent, so an opaque layer under it stops the edge gradient showing through */
  background:
    linear-gradient(160deg, rgba(243, 230, 0, 0.07), rgba(243, 230, 0, 0.015)) padding-box,
    linear-gradient(var(--color-raised), var(--color-raised)) padding-box,
    linear-gradient(150deg, var(--color-accent-dim), rgba(243, 230, 0, 0.08)) border-box;
}
.practice__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: var(--space-xs);
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
}

@media (hover: hover) {
  /* `translate` rather than `transform`, which the scroll reveal already owns */
  .practice__item:hover {
    translate: 0 -3px;
    box-shadow: 0 36px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(243, 230, 0, 0.14);
  }
  .practice__link:hover { text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 860px) {
  .practice__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .practice__list { grid-template-columns: 1fr; gap: 0.75rem; }
  .practice__item { padding: var(--space-md); }
}

/* ---------- About (bio + credentials | how the practice works) ---------- */

.about {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-2xl);
  background: var(--color-deep);
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 70% at 10% 0%, rgba(64, 104, 180, 0.14), transparent 70%),
    radial-gradient(30% 50% at 95% 100%, rgba(243, 230, 0, 0.04), transparent 70%);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.about__text { margin-top: var(--space-xs); color: var(--color-muted); }

/* Credentials as a register: title left, institution and year right, hairline rows */
.about__creds {
  margin-top: var(--space-md);
  padding: 0.35rem var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--color-raised), var(--color-surface)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--shadow-soft);
}
.about__creds li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem var(--space-sm);
  padding-block: 0.85rem;
}
.about__creds li + li { border-top: 1px solid var(--color-line); }
.cred__title { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--color-heading); }
.cred__meta { font-size: var(--text-sm); color: var(--color-muted); }

.about__subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  /* lines up with the name opposite, below the eyebrow */
  margin-top: calc(var(--text-xs) * 1.75 + var(--space-sm));
}

.about__points { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
/* short rounded accent bar beside each point */
.about__points li { position: relative; padding-left: 1.75rem; }
.about__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.9rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.about__points h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-heading);
  margin-bottom: 0.15rem;
}
.about__points p { font-size: var(--text-sm); line-height: 1.65; }

@media (max-width: 760px) {
  .about__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about__subtitle { margin-top: 0; font-size: var(--text-lg); }
  .about__points { margin-top: var(--space-md); }
}

/* ---------- Contact ---------- */

.contact { padding-block: var(--space-2xl); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-xl);
  align-items: center;
}
.contact__lede { margin-top: var(--space-sm); color: var(--color-muted); max-width: 28rem; }

.contact__details {
  padding: 0.35rem var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--color-raised), var(--color-surface)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--shadow-soft);
}
/* compact details table: label left, value right, hairline between rows */
.contact__details div {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  align-items: baseline;
  gap: 0.1rem var(--space-sm);
  padding-block: 0.6rem;
}
.contact__details div + div { border-top: 1px solid var(--color-line); }
.contact__details dt {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.contact__details dd { color: var(--color-heading); overflow-wrap: anywhere; }
.contact__details dd .sep { color: var(--color-muted); margin-inline: 0.6rem; }
.contact__details a {
  /* 44px rows so phone and email are easy to hit with a thumb */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--color-line-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color 300ms;
}
.contact__details a:active { text-decoration-color: var(--color-accent); }
@media (hover: hover) { .contact__details a:hover { text-decoration-color: var(--color-accent); } }

@media (max-width: 760px) {
  .contact__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact__details { padding: 0.35rem var(--space-md); }
}
@media (max-width: 560px) {
  /* label above value on phones */
  .contact__details div { grid-template-columns: 1fr; padding-block: 0.75rem; }
}

/* ---------- Mobile action bar ---------- */

/* Phones only: a floating glass dock with WhatsApp + Call, shown once the hero
   buttons scroll away. main.js toggles .is-shown; hidden while contact/footer are visible. */
.action-bar { display: none; }

@media (max-width: 760px) {
  .action-bar {
    position: fixed;
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(15, 21, 32, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
    transform: translateY(calc(100% + 2rem));
    visibility: hidden;
    transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
  }
  .action-bar.is-shown {
    transform: none;
    visibility: visible;
    transition: transform 420ms var(--ease-out), visibility 0s;
  }
  .action-bar .btn { min-height: 3rem; padding-inline: 0.75rem; border-radius: var(--radius-md); }
}

@media (prefers-reduced-motion: reduce) {
  .action-bar, .action-bar.is-shown { transition: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-deep);
  color: var(--color-text);
  border-top: 1px solid var(--color-line);
  padding-block: var(--space-lg);
  /* clears the iPhone home indicator */
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
  font-size: var(--text-sm);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}
.site-footer__brand { font-family: var(--font-serif); font-size: var(--text-base); color: var(--color-heading); }
.site-footer__brand span { color: var(--color-accent); }
.site-footer__legal { max-width: 38rem; line-height: 1.7; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  width: 100%;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line);
}
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text); transition: color 300ms; }
@media (hover: hover) { .site-footer__links a:hover { color: var(--color-accent); } }

/* ---------- Legal text page (privacy.html) ---------- */

.legal { padding-block: var(--space-xl) var(--space-2xl); max-width: 46rem; }
.legal h1 { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-xl); color: var(--color-heading); line-height: 1.2; margin-bottom: var(--space-xs); }
.legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-lg); color: var(--color-heading); margin: var(--space-lg) 0 var(--space-xs); }
.legal p, .legal li { margin-bottom: var(--space-xs); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li::marker { color: var(--color-accent); }
.legal a { color: var(--color-heading); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 4px; }
.legal__meta { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- 404 page ---------- */

.notfound {
  min-height: calc(100vh - var(--header-h));
  /* svh ignores the mobile address bar, so the page doesn't jump as it hides */
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  padding-block: var(--space-2xl);
}
.notfound .hero__lede { margin-top: var(--space-sm); }

/* ---------- Scroll reveal (main.js adds .is-visible) ---------- */

/* Hidden only once JS confirms it's running, so no-JS visitors still see everything.
   translate and box-shadow are listed so the practice-card hover still animates. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out),
              translate 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.js [data-reveal-delay="1"] { transition-delay: 120ms; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
