/* ==========================================================================
   Affiliated New Thought Network — design tokens & styles
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #0a0c0f;
  --surface-1: #0f1216;
  --surface-2: #14181d;
  --surface-3: #1a1f25;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.045);
  --line-control: rgba(255, 255, 255, 0.36); /* ≥ 3:1 against --bg */

  /* Text */
  --text: #eceef1;
  --text-2: #a3a9b1;
  --text-3: #7a818a;

  /* Accent (single) */
  --accent: #f0b45a;
  --accent-hover: #f5c57c;
  --on-accent: #1b1306;

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.25rem;     /* 20 */
  --fs-lg: 1.5625rem;   /* 25 */
  --fs-xl: 1.953rem;    /* 31 */
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.05rem);
  --fs-3xl: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);

  /* Space (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;

  /* Motion */
  --dur: 150ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(240, 180, 90, 0.28); }

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

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(10, 12, 15, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.brand-name span { display: block; color: var(--text-3); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  font-size: var(--fs-sm); color: var(--text-2);
  padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); position: relative;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: 0 var(--s-5);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.005em;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line-control); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--text); font-weight: 500; font-size: var(--fs-sm);
  border-bottom: 1px solid var(--line-control); padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

@media (hover: hover) {
  .nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
  .nav-toggle:hover { border-color: var(--line-control); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.03); }
  .btn:hover svg { transform: translateX(2px); }
  .link-arrow:hover { border-color: var(--accent); color: var(--accent); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.h-display { font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.h-section { font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: -0.028em; font-weight: 600; }
.h-card { font-size: var(--fs-md); line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--text-2); letter-spacing: -0.01em; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

/* ---------- Sections ---------- */
.section { padding: var(--s-10) 0; border-top: 1px solid var(--line); position: relative; }
.section-head { display: grid; grid-template-columns: 1fr; gap: var(--s-5); margin-bottom: var(--s-8); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: var(--s-8); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + var(--s-9)) 0 var(--s-9);
  overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.35) 0%, rgba(10, 12, 15, 0) 30%, rgba(10, 12, 15, 0.6) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 12, 15, 0.85) 0%, rgba(10, 12, 15, 0.2) 60%, rgba(10, 12, 15, 0) 100%);
}
.hero-inner { display: grid; gap: var(--s-6); max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--text-3); }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

.hero-meta {
  margin-top: var(--s-8);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero-meta > div { padding: var(--s-5) var(--s-5) 0 0; }
.hero-meta > div + div { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.hero-meta dt { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.04em; margin-bottom: var(--s-1); }
.hero-meta dd { margin: 0; font-size: var(--fs-sm); color: var(--text); font-weight: 500; }

/* ---------- Practices ---------- */
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.practice { padding: var(--s-7); background: var(--surface-1); display: flex; flex-direction: column; gap: var(--s-5); min-height: 100%; }
.practice + .practice { border-left: 1px solid var(--line); }
.practice-index { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.08em; }
.practice h3 { font-size: var(--fs-xl); letter-spacing: -0.025em; line-height: 1.15; font-weight: 600; }
.practice p { color: var(--text-2); }
.practice ul { margin-top: auto; border-top: 1px solid var(--line); }
.practice li {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
.practice li:last-child { border-bottom: 0; padding-bottom: 0; }
.practice li span:last-child { color: var(--text-3); text-align: right; }

/* ---------- Service rows ---------- */
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-6);
  padding: var(--s-7) 0; border-bottom: 1px solid var(--line);
}
.service-no { font-size: var(--fs-sm); color: var(--text-3); padding-top: 4px; }
.service h3 { font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.service h3 small { display: block; margin-top: var(--s-2); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.service-body { display: grid; gap: var(--s-5); }
.service-body p { color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  font-size: var(--fs-xs); color: var(--text-2);
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.channel { background: var(--surface-1); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.channel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.channel h3 { font-size: var(--fs-lg); letter-spacing: -0.02em; font-weight: 600; }
.channel-head span { font-size: var(--fs-xs); color: var(--text-3); }
.channel p { color: var(--text-2); font-size: var(--fs-sm); }
.channel dl { margin: auto 0 0; padding-top: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.channel dl div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.channel dl div:last-child { border-bottom: 0; }
.channel dt { color: var(--text-3); }
.channel dd { margin: 0; text-align: right; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); counter-reset: step; }
.step { position: relative; padding-top: var(--s-6); border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--accent);
}
.step-no { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.08em; margin-bottom: var(--s-4); display: block; }
.step h3 { margin-bottom: var(--s-3); }
.step p { color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- Engagements ---------- */
.engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.engagement {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.engagement-kicker { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.engagement p { color: var(--text-2); font-size: var(--fs-sm); }
.engagement ul { display: grid; gap: var(--s-2); margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.engagement li { font-size: var(--fs-sm); padding-left: var(--s-5); position: relative; }
.engagement li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--text-3); }
.engagement-foot { margin-top: auto; padding-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-3); }
@media (hover: hover) {
  .engagement:hover { border-color: rgba(255, 255, 255, 0.14); background: var(--surface-2); }
}

/* ---------- About / principles ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); align-items: start; }
.statement { font-size: var(--fs-xl); line-height: 1.35; letter-spacing: -0.022em; font-weight: 500; }
.statement span { color: var(--text-3); }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.principle span { font-size: var(--fs-xs); color: var(--text-3); padding-top: 4px; }
.principle h3 { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--s-1); }
.principle p { color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-9); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-5) 0; min-height: 44px;
  font-weight: 500; letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: var(--text-2);
  transition: transform var(--dur) var(--ease);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq details p { color: var(--text-2); padding: 0 var(--s-8) var(--s-5) 0; font-size: var(--fs-sm); }
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: var(--s-6); }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.contact-list dd { margin: 0; }
.contact-list a { border-bottom: 1px solid var(--line-control); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
@media (hover: hover) { .contact-list a:hover { color: var(--accent); border-color: var(--accent); } }
.copy-btn {
  margin-left: var(--s-3); font-size: var(--fs-xs); color: var(--text-2);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-control);
  min-height: 28px; vertical-align: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.copy-btn:active { transform: scale(0.98); }
@media (hover: hover) { .copy-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.6); } }

.map {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); min-height: 420px;
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.35) contrast(1.02);
}
.map-caption {
  position: absolute; left: var(--s-4); bottom: var(--s-4); right: var(--s-4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  pointer-events: none;
}
.map-caption a {
  pointer-events: auto; font-size: var(--fs-xs); font-weight: 500;
  background: rgba(10, 12, 15, 0.88); color: var(--text);
  border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color var(--dur) var(--ease);
}
@media (hover: hover) { .map-caption a:hover { border-color: rgba(255, 255, 255, 0.7); } }

/* ---------- CTA band ---------- */
.cta-band { padding: var(--s-9) 0; border-top: 1px solid var(--line); }
.cta-band .container { display: flex; align-items: end; justify-content: space-between; gap: var(--s-7); flex-wrap: wrap; }
.cta-band h2 { max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); background: var(--surface-1); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); padding-bottom: var(--s-7); }
.footer-top p { color: var(--text-2); font-size: var(--fs-sm); margin-top: var(--s-4); max-width: 340px; }
.footer-col h4 { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: var(--s-4); }
.footer-col ul { display: grid; gap: var(--s-1); }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: var(--text-2); }
.footer-col a { display: inline-block; padding: 4px 0; transition: color var(--dur) var(--ease); }
@media (hover: hover) { .footer-col a:hover { color: var(--text); } }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: var(--s-5);
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--text-3);
}

/* ---------- Legal pages ---------- */
.legal-hero { padding: calc(var(--header-h) + var(--s-9)) 0 var(--s-8); border-bottom: 1px solid var(--line); }
.legal-hero .h-section { margin: var(--s-5) 0 var(--s-4); font-size: var(--fs-3xl); letter-spacing: -0.035em; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-9); padding: var(--s-8) 0 var(--s-10); }
.legal-toc { position: sticky; top: calc(var(--header-h) + var(--s-6)); align-self: start; }
.legal-toc h2 { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: var(--s-4); }
.legal-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a {
  display: block; font-size: var(--fs-sm); color: var(--text-2); padding: 6px 0 6px var(--s-4);
  margin-left: -1px; border-left: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.legal-toc a.is-active { color: var(--text); border-left-color: var(--accent); }
@media (hover: hover) { .legal-toc a:hover { color: var(--text); } }
.prose { max-width: 720px; }
.prose section { padding-bottom: var(--s-7); margin-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-size: var(--fs-lg); letter-spacing: -0.02em; font-weight: 600; line-height: 1.25; margin-bottom: var(--s-4); }
.prose h3 { font-size: var(--fs-base); font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: var(--s-4); }
.prose ul { margin: var(--s-4) 0; display: grid; gap: var(--s-2); }
.prose ul li { padding-left: var(--s-5); position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.82em; width: 10px; height: 1px; background: var(--text-3); }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-control); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
@media (hover: hover) { .prose a:hover { color: var(--accent); border-color: var(--accent); } }
.prose strong { color: var(--text); font-weight: 600; }
.prose address { font-style: normal; color: var(--text); margin-top: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); line-height: 1.7; }
.prose .caps { text-transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: left; padding: var(--header-h) 0; }
.notfound .container { display: grid; gap: var(--s-5); max-width: 720px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .engagements { grid-template-columns: 1fr; }
  .about-grid, .faq-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .legal-toc { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-3) var(--gutter) var(--s-6);
    background: var(--bg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .site-header.is-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { padding: var(--s-4) 0; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-base); min-height: 44px; }
  .nav .btn { margin-top: var(--s-4); border-bottom: 0; }

  .section { padding: var(--s-9) 0; }
  .section-head.split { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .practices { grid-template-columns: 1fr; }
  .practice + .practice { border-left: 0; border-top: 1px solid var(--line); }
  .practice { padding: var(--s-6); }
  .service { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-6) 0; }
  .channels { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
}

@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-list > div { grid-template-columns: 1fr; gap: var(--s-1); }
  .footer-top { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
}

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

/* ---------- Utilities ---------- */
.mt { margin-top: var(--s-5); }
.mt-sm { margin-top: var(--s-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-bottom a { color: var(--text-2); transition: color var(--dur) var(--ease); }
@media (hover: hover) { .footer-bottom a:hover { color: var(--text); } }
@media (max-width: 860px) { .site-header.is-open { background: var(--bg); } }
