/* =========================================================================
   Michigan Trust & Estate Planning — Design System
   Authority + clarity. Black canvas, vibrant green & blue, restrained motion.
   ========================================================================= */

/* ---------- Tokens --------------------------------------------------- */
:root {
  /* Brand */
  --black: #050608;
  --black-2: #0a0c10;
  --black-3: #11141a;
  --black-4: #181c25;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);

  --green: #1FB867;       /* primary brand green from logo */
  --green-bright: #2EE08A;
  --green-deep: #0E7A43;
  --blue: #2BA4E5;        /* primary brand blue from logo */
  --blue-bright: #5CC1F2;
  --blue-deep: #146FA8;

  --ink: #F5F7FA;          /* primary text */
  --ink-2: #C9CFD9;         /* secondary text */
  --ink-3: #8A93A3;         /* tertiary text */
  --ink-mute: #5A6273;

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale (fluid) */
  --t-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --t-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --t-md: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --t-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --t-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --h6: clamp(1.125rem, 1.0rem + 0.5vw, 1.375rem);
  --h5: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --h4: clamp(1.625rem, 1.35rem + 1vw, 2.25rem);
  --h3: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --h2: clamp(2.5rem, 2rem + 2.4vw, 4.25rem);
  --h1: clamp(3rem, 2.2rem + 3.4vw, 6rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows / glows */
  --glow-green: 0 0 0 1px rgba(31, 184, 103, 0.45), 0 16px 48px -16px rgba(31, 184, 103, 0.55);
  --glow-blue: 0 0 0 1px rgba(43, 164, 229, 0.45), 0 16px 48px -16px rgba(43, 164, 229, 0.55);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --shadow-pop: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255,255,255,0.05) inset;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);

  --container: 1240px;
  --container-narrow: 920px;
}

/* ---------- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: var(--black); }

/* ---------- Base ------------------------------------------------------ */
html { background: var(--black); }
body {
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--black);
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle ambient gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 20% -10%, rgba(43, 164, 229, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 500px at 90% 10%, rgba(31, 184, 103, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}
h1 { font-size: var(--h1); letter-spacing: -0.035em; line-height: 0.96; }
h2 { font-size: var(--h2); letter-spacing: -0.03em; line-height: 1.0; }
h3 { font-size: var(--h3); letter-spacing: -0.025em; line-height: 1.05; }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p { color: var(--ink-2); }
p.lede { font-size: var(--t-lg); color: var(--ink); line-height: 1.55; max-width: 60ch; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
small { color: var(--ink-3); font-size: var(--t-sm); }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s-7) 0; }

/* ---------- Layout ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: clamp(4rem, 5vw, 8rem) 0; position: relative; }
.section.tight { padding: clamp(2.5rem, 4vw, 5rem) 0; }
.section.dark { background: var(--black-2); }
.section.darker { background: var(--black-3); }

.section-head { display: flex; flex-direction: column; gap: var(--s-4); max-width: 64ch; margin-bottom: var(--s-7); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.kicker.green::before { background: var(--green); }
.kicker.blue::before { background: var(--blue); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 12px;
  border: 1px solid rgba(31, 184, 103, 0.35);
  border-radius: var(--r-pill);
  background: rgba(31, 184, 103, 0.06);
}
.eyebrow.blue { color: var(--blue); border-color: rgba(43, 164, 229, 0.35); background: rgba(43, 164, 229, 0.06); }

.grad-text {
  background: linear-gradient(100deg, var(--blue) 5%, var(--green) 60%, var(--blue-bright) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out),
              border-color 220ms var(--ease-out), box-shadow 320ms var(--ease-out),
              color 220ms var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* Paragraphs wrapping multiple buttons → flex+gap so spacing actually
   applies (vertical margins are ignored on inline-level boxes). */
p:has(> .btn + .btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (max-width: 600px) {
  p:has(> .btn + .btn) {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
.btn .arrow { transition: transform 240ms var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  --btn-bg: linear-gradient(120deg, var(--green) 0%, #18a258 100%);
  --btn-fg: #04130b;
  box-shadow: 0 0 0 0 rgba(31, 184, 103, 0.0), 0 18px 40px -22px rgba(31, 184, 103, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(31, 184, 103, 0.18), 0 20px 50px -18px rgba(31, 184, 103, 0.7);
}

.btn-secondary {
  --btn-bg: linear-gradient(120deg, var(--blue) 0%, #1d8ac4 100%);
  --btn-fg: #02101a;
  box-shadow: 0 18px 40px -22px rgba(43, 164, 229, 0.55);
}
.btn-secondary:hover {
  box-shadow: 0 0 0 4px rgba(43, 164, 229, 0.18), 0 20px 50px -18px rgba(43, 164, 229, 0.7);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--hairline-2);
}
.btn-ghost:hover { border-color: var(--ink-3); background: rgba(255,255,255,0.03); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  position: relative;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--green);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.btn-link:hover::after { transform: scaleX(1); }
.btn-link.blue { color: var(--blue); }
.btn-link.blue::after { background: var(--blue); }

/* ---------- Top Nav --------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(5, 6, 8, 0.55);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.nav.scrolled { background: rgba(5, 6, 8, 0.85); border-bottom-color: var(--hairline); }
/* iPhone Dynamic Island clearance */
@supports (padding-top: env(safe-area-inset-top)) {
  .nav { padding-top: max(16px, calc(env(safe-area-inset-top) + 6px)); padding-bottom: 14px; }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: var(--t-md);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text .top { font-family: var(--sans); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3); }
.brand-text .bot { font-family: var(--serif); font-size: 17px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: var(--t-sm);
  color: var(--ink-2);
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 8px;
}

/* dropdown */
.has-menu { position: relative; }
.has-menu > a::after { content: "↓"; margin-left: 6px; opacity: 0.5; font-size: 10px; }
.menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 580px;
  background: rgba(10, 12, 16, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.has-menu:hover > .menu, .has-menu:focus-within > .menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.menu a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.menu a:hover { background: rgba(255,255,255,0.04); border-color: var(--hairline-2); }
.menu a .ic { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); }
.menu a:nth-child(2n) .ic { color: var(--blue); }
.menu a .label { display: flex; flex-direction: column; gap: 2px; }
.menu a .label .t { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.menu a .label .d { font-size: var(--t-xs); color: var(--ink-3); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .phone { font-size: var(--t-sm); color: var(--ink-2); font-weight: 500; }
.nav-cta .phone:hover { color: var(--green); }

.nav-toggle { display: none; }
.mobile-menu { display: none; visibility: hidden; pointer-events: none; }

/* Mobile nav */
@media (max-width: 980px) {
  .mobile-menu { display: block; visibility: visible; pointer-events: auto; }
  .nav-links, .nav-cta .phone { display: none; }
  /* On narrow widths the hamburger + sticky bottom CTA both expose the action,
     so the inline green CTA in the navbar would crowd the brand. Hide it. */
  .nav-cta .btn-primary { display: none; }
  .brand-text .top { font-size: 8px; letter-spacing: 0.22em; }
  .brand-text .bot { font-size: 14px; line-height: 1.1; }
  .brand img { width: 32px; height: 32px; }
  .brand { gap: 10px; }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline-2);
    align-items: center;
    justify-content: center;
    color: var(--ink);
  }
  .nav-toggle .bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
  .nav-toggle .bars::before { top: 0; }
  .nav-toggle .bars::after { bottom: 0; }
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5,6,8,0.98);
    backdrop-filter: blur(24px);
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 380ms var(--ease-emphasized);
    padding: 100px 24px 40px;
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-family: var(--serif);
    font-size: 26px;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
  }
  .mobile-menu nav a:hover { color: var(--green); }
  .mobile-menu .mobile-foot { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 14px; }
  .mobile-menu .mobile-foot a { color: var(--ink-2); font-size: var(--t-sm); }
  .mobile-menu .mobile-foot .btn { align-self: flex-start; }
}

/* ---------- Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 1000px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media video, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05) saturate(1.1);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,6,8,0.78) 0%, rgba(5,6,8,0.55) 40%, rgba(5,6,8,0.2) 70%, rgba(5,6,8,0.4) 100%),
    linear-gradient(180deg, rgba(5,6,8,0.6) 0%, rgba(5,6,8,0.25) 35%, rgba(5,6,8,0.85) 100%),
    radial-gradient(ellipse 600px 400px at 30% 60%, rgba(43,164,229,0.18), transparent 70%),
    radial-gradient(ellipse 500px 380px at 80% 40%, rgba(31,184,103,0.14), transparent 70%);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 1080px; }
.hero-inner .eyebrow { margin-bottom: var(--s-5); }
.hero h1 { margin-bottom: var(--s-5); font-weight: 350; }
.hero h1 .accent { font-style: italic; font-weight: 300; }
.hero p.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-2); max-width: 56ch; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  max-width: 720px;
}
.hero-meta .item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .item .v { font-family: var(--serif); font-size: var(--h5); color: var(--ink); }
.hero-meta .item .l { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* small page hero (non-home) */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: saturate(1.2); }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,8,0.55) 0%, rgba(5,6,8,0.95) 100%),
    radial-gradient(ellipse 700px 400px at 20% 100%, rgba(31,184,103,0.18), transparent 70%);
}
.page-hero .eyebrow { margin-bottom: var(--s-5); }
.page-hero h1 { font-size: clamp(2.75rem, 2rem + 3vw, 4.75rem); margin-bottom: var(--s-5); line-height: 1.1; }
.page-hero p.lede { max-width: 64ch; margin-top: var(--s-2); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-bottom: var(--s-5); font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.04em; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { color: var(--ink-mute); }

/* ---------- Service Grid --------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-4);
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms var(--ease-out), border-color 320ms var(--ease-out), background 320ms var(--ease-out);
  min-height: 260px;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(31,184,103,0.6) 50%, rgba(43,164,229,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--hairline-2); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); }
.svc-card:hover::before { opacity: 1; }
.svc-card .ic { width: 42px; height: 42px; border-radius: var(--r-md); background: rgba(31,184,103,0.1); border: 1px solid rgba(31,184,103,0.2); display: grid; place-items: center; color: var(--green); margin-bottom: var(--s-5); }
.svc-card:nth-child(2n) .ic { background: rgba(43,164,229,0.1); border-color: rgba(43,164,229,0.2); color: var(--blue); }
.svc-card h3 { font-size: var(--h5); margin-bottom: var(--s-3); letter-spacing: -0.02em; }
.svc-card p { color: var(--ink-2); font-size: var(--t-sm); flex: 1; margin-bottom: var(--s-5); }
.svc-card .btn-link { font-size: var(--t-xs); }
.svc-card a.full { position: absolute; inset: 0; z-index: 2; }

/* ---------- Feature blocks ------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split .media { position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.split .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,6,8,0.7) 100%);
}
.split .copy h2 { margin-bottom: var(--s-4); }
.split .copy p { font-size: var(--t-lg); color: var(--ink-2); margin-bottom: var(--s-5); }
.split .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin: var(--s-6) 0; padding: var(--s-5) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.split .stats .v { font-family: var(--serif); font-size: var(--h4); color: var(--ink); display: block; }
.split .stats .l { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: var(--s-7); }
  .split.reverse > :first-child { order: 0; }
  /* Cap portrait images so they do not become full-screen-tall on mobile */
  .split .media { max-width: 360px; margin: 0 auto; }
  .split .media img { aspect-ratio: 4/5; max-height: 440px; }
}

/* ---------- Testimonial ---------------------------------------------- */
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s-4); }
.t-card {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
}
.t-card .stars { display: flex; gap: 2px; color: var(--green); }
.t-card blockquote { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.t-card .who { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--hairline); }
.t-card .who .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); color: var(--black); display: grid; place-items: center; font-weight: 700; font-size: var(--t-sm); }
.t-card .who .n { font-size: var(--t-sm); color: var(--ink); font-weight: 600; }
.t-card .who .r { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- Process / Steps ------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline), var(--green-deep), var(--blue-deep), var(--hairline));
  opacity: 0.5;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding: var(--s-5);
  background: var(--black-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.step .num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--black-3);
  border: 1px solid var(--hairline-2);
  color: var(--green);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: var(--h6);
  margin-bottom: var(--s-4);
}
.step:nth-child(2n) .num { color: var(--blue); }
.step h4 { font-size: var(--h6); margin-bottom: var(--s-2); letter-spacing: -0.015em; }
.step p { font-size: var(--t-sm); color: var(--ink-2); }

@media (max-width: 880px) { .steps::before { display: none; } }

/* ---------- FAQ / Accordion ------------------------------------------ */
.faq { display: flex; flex-direction: column; gap: 4px; max-width: 780px; }
.faq details {
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-md);
  padding: 18px var(--s-5);
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}
.faq details[open] { border-color: rgba(31,184,103,0.35); background: rgba(31,184,103,0.04); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: var(--t-xl);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline-2);
  font-size: 22px;
  font-family: var(--sans);
  color: var(--green);
  flex: 0 0 auto;
  transition: transform 240ms var(--ease-out);
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq .answer { padding-top: 14px; color: var(--ink-2); font-size: var(--t-md); line-height: 1.65; }
.faq .answer p + p { margin-top: 12px; }

/* ---------- Stat strip ----------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--black-2);
  overflow: hidden;
}
.stat-strip .item {
  padding: var(--s-6);
  border-right: 1px solid var(--hairline);
  text-align: center;
}
.stat-strip .item:last-child { border-right: 0; }
.stat-strip .v { font-family: var(--serif); font-size: var(--h3); color: var(--ink); display: block; line-height: 1; }
.stat-strip .v .accent { color: var(--green); }
.stat-strip .item:nth-child(2n) .v .accent { color: var(--blue); }
.stat-strip .l { display: block; margin-top: 8px; font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- CTA panel ------------------------------------------------ */
.cta-panel {
  position: relative;
  padding: clamp(2.5rem, 4vw, 5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 400px 200px at 80% 0%, rgba(43,164,229,0.18), transparent 70%),
    radial-gradient(ellipse 500px 250px at 0% 100%, rgba(31,184,103,0.15), transparent 70%),
    linear-gradient(180deg, var(--black-3), var(--black-2));
  border: 1px solid var(--hairline-2);
  overflow: hidden;
  isolation: isolate;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(31,184,103,0.4), transparent 30%, transparent 70%, rgba(43,164,229,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cta-panel h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); margin-bottom: var(--s-4); max-width: 22ch; }
.cta-panel p { font-size: var(--t-lg); color: var(--ink-2); max-width: 60ch; margin-bottom: var(--s-5); }
.cta-panel .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Form ----------------------------------------------------- */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.form .full { grid-column: 1 / -1; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--t-md);
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.form-row textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(31,184,103,0.04);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--ink-mute); }
.form-row select { appearance: none; -webkit-appearance: none; background-color: #0a0c10; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 38px; color-scheme: dark; color: #f5f7fb; }
.form-row select option { background-color: #0a0c10; color: #f5f7fb; }
.form-row select option:checked { background-color: #1f2128; color: #ffffff; }
.form-row select option:hover { background-color: #1fb867; color: #0a0c10; }
.form-disclaimer { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.6; }
.form-status { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); font-size: var(--t-sm); line-height: 1.55; border: 1px solid var(--hairline); }
.form-status[data-state="pending"] { color: var(--ink-2); background: rgba(43, 164, 229, 0.06); border-color: rgba(43, 164, 229, 0.25); }
.form-status[data-state="success"] { color: var(--green); background: rgba(31, 184, 103, 0.08); border-color: rgba(31, 184, 103, 0.35); }
.form-status[data-state="error"] { color: #ff8a8a; background: rgba(255, 90, 90, 0.06); border-color: rgba(255, 90, 90, 0.3); }

@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer --------------------------------------------------- */
.footer { padding: var(--s-9) 0 var(--s-6); border-top: 1px solid var(--hairline); position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-deep), var(--blue-deep), transparent);
  opacity: 0.6;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7); margin-bottom: var(--s-7); }
.footer-grid h6 { font-family: var(--sans); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-4); font-weight: 500; }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.footer-grid ul a { font-size: var(--t-sm); color: var(--ink-2); }
.footer-grid ul a:hover { color: var(--green); }
.footer-brand .summary { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; max-width: 36ch; margin: var(--s-4) 0; }
.footer-brand .contact { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .contact a, .footer-brand .contact span { font-size: var(--t-sm); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.footer-brand .contact a:hover { color: var(--green); }
.footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom small { color: var(--ink-3); font-size: var(--t-xs); letter-spacing: 0.04em; }
.footer-bottom .legal { display: flex; gap: var(--s-4); }
.footer-bottom .legal a { font-size: var(--t-xs); color: var(--ink-3); }
.footer-bottom .legal a:hover { color: var(--ink); }
.footer-credit { flex-basis: 100%; text-align: center; padding-top: var(--s-4); margin-top: var(--s-3); border-top: 1px solid var(--hairline); }
.footer-credit a { color: var(--ink-2); border-bottom: 1px solid transparent; transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.footer-credit a:hover { color: var(--green); border-bottom-color: var(--green); }
.disclaimer-block { background: var(--black-2); border: 1px solid var(--hairline); padding: var(--s-5); border-radius: var(--r-md); margin-top: var(--s-6); }
.disclaimer-block small { color: var(--ink-3); font-size: var(--t-xs); line-height: 1.6; display: block; }
.disclaimer-block strong { color: var(--ink-2); display: block; margin-bottom: 4px; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Article / Long-form -------------------------------------- */
article {
  display: grid;
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
  gap: 0 var(--s-5);
}
article > * { grid-column: 2; }
article > .wide { grid-column: 1 / -1; }
/* Body type — generous line-height + decisive rhythm between blocks. The
   serif headings are large and need real breathing room above and below. */
article p {
  font-size: var(--t-lg);
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: var(--s-5);
}
article p.lede {
  font-size: var(--t-xl);
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--s-6);
}

/* Heading rhythm — clear separation without leaving the reader stranded */
article h2 {
  font-size: var(--h3);
  margin: var(--s-7) 0 var(--s-4);
  line-height: 1.15;
}
article > h2:first-of-type,
article > div:first-of-type + h2 {
  margin-top: var(--s-6);
}
article h3 {
  font-size: var(--h5);
  margin: var(--s-6) 0 var(--s-3);
  line-height: 1.25;
}

/* Lists — items breathe even when their content wraps to multiple lines */
article ul,
article ol {
  padding-left: 1.5rem;
  margin-bottom: var(--s-5);
  color: var(--ink-2);
  font-size: var(--t-lg);
  line-height: 1.75;
}
article ul li,
article ol li {
  margin-bottom: 14px;
  padding-left: 10px;
}
article ul li:last-child,
article ol li:last-child { margin-bottom: 0; }
article ul li > strong:first-child,
article ol li > strong:first-child { color: var(--ink); }

/* Figures — more breathing room above + below, and a small breath after the
   figcaption before the next heading or paragraph */
article .figure-inline { margin: var(--s-6) 0; }
article .figure-inline + p,
article .figure-inline + ul,
article .figure-inline + ol { margin-top: var(--s-2); }

/* Paragraph immediately after a heading should not feel sucked up to it */
article h2 + p,
article h3 + p { margin-top: 0; }

/* Lists that follow an introductory paragraph keep the natural breathing
   room of the paragraph's bottom margin — lists read as their own block */
article ul li::marker { color: var(--green); }
article blockquote { border-left: 2px solid var(--green); padding: 4px 0 4px var(--s-5); margin: var(--s-6) 0; font-family: var(--serif); font-size: var(--h5); letter-spacing: -0.01em; color: var(--ink); line-height: 1.4; }
article blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: var(--t-sm); color: var(--ink-3); margin-top: var(--s-3); }

.callout {
  padding: var(--s-6) var(--s-6);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(31,184,103,0.08), rgba(43,164,229,0.06));
  border: 1px solid rgba(31,184,103,0.2);
  margin: var(--s-7) 0;
  border-left-width: 3px;
}
/* Only style the heading-strong as a direct child label.
   Do NOT block-style strong tags nested inside paragraph content. */
.callout > strong:first-child {
  color: var(--green-bright);
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.callout p { font-size: var(--t-md); color: var(--ink); margin-bottom: 0; line-height: 1.65; }
.callout p strong { color: var(--green-bright); font-weight: 600; }

/* ---------- Sticky aside (service pages) ----------------------------- */
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-9);
  align-items: flex-start;
}
.svc-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.svc-aside .panel {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--hairline);
}
.svc-aside .panel h6 { font-family: var(--sans); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3); font-weight: 500; }
.svc-aside .panel ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-aside .panel ul a { color: var(--ink-2); font-size: var(--t-sm); display: flex; gap: 8px; align-items: center; }
.svc-aside .panel ul a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--green); opacity: 0.5; flex: 0 0 auto; }
.svc-aside .panel ul a:hover { color: var(--ink); }
.svc-aside .panel ul a:hover::before { opacity: 1; }
.svc-aside .panel.cta { background: linear-gradient(135deg, rgba(31,184,103,0.12), rgba(43,164,229,0.06)); border-color: rgba(31,184,103,0.25); }
.svc-aside .panel.cta h5 { font-size: var(--h6); margin-bottom: var(--s-3); letter-spacing: -0.02em; }
.svc-aside .panel.cta p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: var(--s-4); }
.svc-aside .panel.cta .btn { width: 100%; }

@media (max-width: 980px) { .svc-layout { grid-template-columns: 1fr; gap: var(--s-7); } .svc-aside { position: static; } }

/* ---------- Practice list (3x3 card grid on home + service-area index) ------ */
.practice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.practice-list a {
  position: relative;
  isolation: isolate;
  padding: var(--s-6);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 200px;
  overflow: hidden;
  transition: transform 320ms var(--ease-out), border-color 320ms var(--ease-out), background 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.practice-list a::before {
  /* Gradient hairline that animates in on hover */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(31,184,103,0.5) 0%, transparent 40%, transparent 60%, rgba(43,164,229,0.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
}
.practice-list a::after {
  /* Tiny serial number in top-right */
  content: counter(practice, decimal-leading-zero);
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  z-index: 0;
}
.practice-list { counter-reset: practice; }
.practice-list a { counter-increment: practice; }

.practice-list a:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow: var(--shadow-card);
}
.practice-list a:hover::before { opacity: 1; }

.practice-list a .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(31, 184, 103, 0.08);
  border: 1px solid rgba(31, 184, 103, 0.18);
  color: var(--green);
  flex: 0 0 auto;
  transition: transform 320ms var(--ease-out), background 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.practice-list a:nth-child(2n) .ic {
  background: rgba(43, 164, 229, 0.08);
  border-color: rgba(43, 164, 229, 0.18);
  color: var(--blue);
}
.practice-list a:hover .ic { transform: scale(1.04); background: rgba(31, 184, 103, 0.14); border-color: rgba(31, 184, 103, 0.32); }
.practice-list a:nth-child(2n):hover .ic { background: rgba(43, 164, 229, 0.14); border-color: rgba(43, 164, 229, 0.32); }

.practice-list a .t {
  font-family: var(--serif);
  font-size: var(--h5);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.practice-list a .d {
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}
.practice-list a .d .arrow { transition: transform 240ms var(--ease-out); color: var(--green); flex: 0 0 auto; }
.practice-list a:nth-child(2n) .d .arrow { color: var(--blue); }
.practice-list a:hover .arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .practice-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
  .practice-list { grid-template-columns: 1fr; gap: 10px; }
  .practice-list a { min-height: auto; }
}

/* ---------- Reveal Animations ---------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }

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

/* ---------- Marquee / logo bar --------------------------------------- */
.affil {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-7);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  opacity: 0.85;
}
.affil .item { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; }
.affil .item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.affil .item:nth-child(2n) .dot { background: var(--blue); }

/* ---------- Contact-page two-column grid (responsive) -------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-9);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ---------- Map embed ----------------------------------------------- */
.map-embed { aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); filter: invert(0.92) hue-rotate(180deg) saturate(0.5) contrast(0.9); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================================
   v2 — Richer content components
   ========================================================================= */

/* ---------- Article enhancements ------------------------------------- */
article p.lede.dropcap::first-letter,
article p.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.85;
  float: left;
  padding: 0.05em 0.12em 0 0;
  margin: 0.05em 0.06em 0 0;
  font-weight: 400;
  background: linear-gradient(140deg, var(--green), var(--blue) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: "ss01";
}

/* ---------- Inline figure (image with caption in flow) --------------- */
article .figure-inline {
  margin: var(--s-8) 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--hairline);
}
article .figure-inline img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; transition: transform 1200ms var(--ease-out); }
article .figure-inline:hover img { transform: scale(1.03); }
article .figure-inline figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-7) var(--s-5) var(--s-4);
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
article .figure-inline.tall img { aspect-ratio: 4/5; }
article .figure-inline.split-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--black-2);
}
article .figure-inline.split-quote img { aspect-ratio: auto; height: 100%; min-height: 320px; }
article .figure-inline.split-quote .body { padding: var(--s-6); display: flex; flex-direction: column; justify-content: center; }
article .figure-inline.split-quote .body p { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.4; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
article .figure-inline.split-quote .body cite { display: block; margin-top: var(--s-4); font-style: normal; font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 720px) { article .figure-inline.split-quote { grid-template-columns: 1fr; } article .figure-inline.split-quote img { min-height: 240px; } }

/* ---------- Pull quote -------------------------------------------- */
article .pull-quote {
  margin: var(--s-8) 0;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  text-align: center;
}
article .pull-quote::before {
  content: """;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  padding: 0 14px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--green);
}
article .pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 400;
  max-width: 28ch;
  margin: 0 auto;
}
article .pull-quote p .accent { color: var(--green); font-style: italic; font-weight: 300; }
article .pull-quote cite { display: block; margin-top: var(--s-4); font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; font-style: normal; }

/* ---------- Compare table (vs table) -------------------------------- */
.compare {
  margin: var(--s-7) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--black-2);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare thead th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: var(--s-5);
  text-align: left;
  background: var(--black-3);
  border-bottom: 1px solid var(--hairline);
}
.compare thead th:first-child { color: var(--ink-3); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.compare thead th.green { color: var(--green-bright); }
.compare thead th.blue { color: var(--blue-bright); }
.compare tbody td {
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.55;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare tbody td:first-child { font-family: var(--serif); font-size: var(--t-md); color: var(--ink); letter-spacing: -0.01em; min-width: 160px; padding-right: var(--s-5); }
.compare tbody td .yes { color: var(--green-bright); font-weight: 500; }
.compare tbody td .no { color: #FF6F6F; font-weight: 500; }
.compare tbody td .partial { color: var(--blue-bright); font-weight: 500; }
.compare tbody td .ic { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; margin-right: 6px; vertical-align: -3px; border-radius: 50%; font-weight: 700; font-size: 11px; }
.compare tbody td .ic.yes { background: rgba(46, 224, 138, 0.14); color: var(--green-bright); }
.compare tbody td .ic.no { background: rgba(255, 111, 111, 0.14); color: #FF6F6F; }
.compare tbody td .ic.partial { background: rgba(92, 193, 242, 0.14); color: var(--blue-bright); }
@media (max-width: 720px) {
  .compare table, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody td { padding: var(--s-3) var(--s-4); border-bottom: 0; }
  .compare tbody tr { border-bottom: 1px solid var(--hairline); padding: var(--s-4) 0; }
  .compare tbody td:first-child { padding-top: 0; padding-bottom: var(--s-2); font-size: var(--t-md); }
  .compare tbody td::before { content: attr(data-label); display: block; font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
  .compare tbody td:first-child::before { display: none; }
}

/* ---------- Vertical Timeline -------------------------------------- */
.timeline {
  position: relative;
  margin: var(--s-7) 0;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--green) 0%, var(--blue) 100%);
  opacity: 0.4;
}
.timeline-item { position: relative; padding-bottom: var(--s-6); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--black-2);
  border: 1px solid var(--hairline-2);
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: -28px;
  top: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(31, 184, 103, 0.5);
}
.timeline-item:nth-child(2n)::after { background: var(--blue); box-shadow: 0 0 12px rgba(43, 164, 229, 0.5); }
.timeline-item .when {
  display: inline-block;
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
  font-weight: 500;
}
.timeline-item:nth-child(2n) .when { color: var(--blue); }
.timeline-item h4 { font-family: var(--serif); font-size: var(--h6); margin-bottom: 6px; letter-spacing: -0.015em; line-height: 1.25; }
.timeline-item p { font-size: var(--t-md); color: var(--ink-2); line-height: 1.6; margin: 0; }

/* ---------- Numbered factor cards (e.g. best-interest factors) ------ */
.factors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
  margin: var(--s-6) 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--black-2);
}
.factor {
  position: relative;
  padding: var(--s-5);
  background: var(--black-2);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 240ms var(--ease-out);
}
.factor:hover { background: var(--black-3); }
.factor .num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--green);
  font-weight: 500;
}
.factor:nth-child(2n) .num { color: var(--blue); }
.factor h5 { font-family: var(--serif); font-size: var(--t-lg); letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); margin: 0; }
.factor p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; margin: 0; }

/* ---------- Service nav (prev / next at footer of service page) ----- */
.svc-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.svc-nav a {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 280ms var(--ease-out), transform 280ms var(--ease-out), background 280ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-nav a:hover { border-color: var(--hairline-2); transform: translateY(-2px); background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent); }
.svc-nav a .lbl { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.svc-nav a .lbl .ar { transition: transform 240ms var(--ease-out); color: var(--green); }
.svc-nav a:nth-child(2n) .lbl .ar { color: var(--blue); }
.svc-nav a.next { text-align: right; }
.svc-nav a.next .lbl { justify-content: flex-end; }
.svc-nav a.prev:hover .lbl .ar { transform: translateX(-3px); }
.svc-nav a.next:hover .lbl .ar { transform: translateX(3px); }
.svc-nav a .t { font-family: var(--serif); font-size: var(--h6); letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 720px) { .svc-nav { grid-template-columns: 1fr; } .svc-nav a.next { text-align: left; } .svc-nav a.next .lbl { justify-content: flex-start; flex-direction: row-reverse; } }

/* ---------- Sticky mobile CTA bar ----------------------------------- */
.mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  padding: 10px 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(5, 6, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--hairline-2);
  gap: 10px;
}
.mobile-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
}
.mobile-cta a.call { color: var(--ink); border: 1px solid var(--hairline-2); }
.mobile-cta a.book { background: linear-gradient(120deg, var(--green) 0%, #18a258 100%); color: #04130b; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }
  .footer { margin-bottom: 0; }
  /* Generous touch targets and breathing room for body content on phones */
  .section { padding: clamp(3rem, 8vw, 5rem) 0; }
  .section.tight { padding: clamp(2rem, 5vw, 3rem) 0; }
  .hero { min-height: 88vh; padding: 110px 0 60px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.75rem); }
  .hero p.lede { font-size: 1.0625rem; line-height: 1.6; }
  .hero-meta { gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-4); }
  .hero-meta .item .v { font-size: 1.5rem; }
  .page-hero { padding: 140px 0 64px; }
  .page-hero .eyebrow { margin-bottom: var(--s-5); padding: 7px 14px; font-size: 0.6875rem; letter-spacing: 0.14em; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.12; margin-bottom: var(--s-5); }
  .page-hero p.lede { font-size: 1.0625rem; line-height: 1.6; margin-top: var(--s-3); }
  .breadcrumbs { margin-bottom: var(--s-5); }
  .svc-card { min-height: 220px; padding: var(--s-5); }
  article { grid-template-columns: 1fr; }
  article > * { grid-column: 1; }
  /* Body type stays generous on phones so multi-line paragraphs and
     wrapped bullets do not crowd. */
  article p, article ul, article ol {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--s-5);
  }
  article p.lede {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--s-6);
  }
  article h2 {
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    font-size: clamp(1.625rem, 6vw, 2rem);
    line-height: 1.15;
  }
  article > h2:first-of-type,
  article > div:first-of-type + h2 {
    margin-top: var(--s-6);
  }
  article h3 {
    margin-top: var(--s-6);
    margin-bottom: var(--s-3);
  }
  article ul li, article ol li { margin-bottom: 12px; padding-left: 8px; }
  article .figure-inline { margin: var(--s-6) 0; }
  .callout { padding: var(--s-5); margin: var(--s-6) 0; }
}

/* ---------- TOC scroll-spy active --------------------------------- */
.svc-aside .panel ul a { transition: color 200ms var(--ease-out); position: relative; }
.svc-aside .panel ul a.active { color: var(--ink); }
.svc-aside .panel ul a.active::before { background: var(--green); opacity: 1; box-shadow: 0 0 8px rgba(31,184,103,0.6); }

/* ---------- Refined reveal animations ------------------------------- */
[data-reveal] { transition: opacity 800ms var(--ease-emphasized), transform 800ms var(--ease-emphasized); }
[data-reveal].in { opacity: 1; transform: none; }

/* image-specific reveal: subtle scale up */
[data-reveal-image] { opacity: 0; transform: scale(1.03); transition: opacity 1100ms var(--ease-out), transform 1500ms var(--ease-out); }
[data-reveal-image].in { opacity: 1; transform: scale(1); }

/* Hairline draw-in animation for dividers */
.divider-grad { transform-origin: center; transform: scaleX(0); transition: transform 1200ms var(--ease-out); }
.divider-grad.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal-image] { opacity: 1; transform: none; }
  .divider-grad { transform: none; }
}
@media (scripting: none) {
  [data-reveal-image] { opacity: 1; transform: none; }
  .divider-grad { transform: none; }
}

/* ---------- Section divider with gradient -------------------------- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-deep) 30%, var(--blue-deep) 70%, transparent);
  opacity: 0.5;
  margin: 0;
}

/* ---------- Hero parallax helper ---------------------------------- */
.parallax { will-change: transform; }

/* ---------- Hero subtle floating particles (decorative) ---------- */
.particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.particles::before, .particles::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floaty 14s var(--ease-out) infinite alternate;
}
.particles::before { width: 360px; height: 360px; left: 10%; top: 30%; background: rgba(31, 184, 103, 0.5); }
.particles::after { width: 320px; height: 320px; right: 12%; top: 12%; background: rgba(43, 164, 229, 0.4); animation-duration: 18s; animation-delay: -5s; }
@keyframes floaty { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.1); } }

/* ---------- Utility -------------------------------------------------- */
.center { text-align: center; }
.muted { color: var(--ink-3); }
.divider-grad { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent); opacity: 0.6; }
.flex { display: flex; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.mt-7 { margin-top: var(--s-7); }
.mb-7 { margin-bottom: var(--s-7); }
.hidden { display: none !important; }
.visually-hidden { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
