/* ============================================================
   Practice areas — animated motifs, placard grid, page template
   Motifs are hand-built looping SVG/CSS animations: one per
   practice area. No external video assets, no buffering.
   ============================================================ */

/* ---------- Motif viewport (reads like a small video frame) ---------- */
.motif-frame {
  position: relative;
  background: radial-gradient(120% 120% at 30% 10%, #0a3b52 0%, #031521 70%);
  border: 1px solid rgba(157, 212, 245, 0.18);
  border-radius: 12px;
  overflow: hidden;
}
.motif-frame::before,
.motif-frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid rgba(157, 212, 245, 0.5);
  pointer-events: none;
}
.motif-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.motif-frame::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.motif {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.motif .dim { stroke: rgba(255, 255, 255, 0.16); }
.motif .bright { stroke: var(--cyan-bright); }
.motif .fill-bright { fill: var(--cyan-bright); stroke: none; }
.motif .fill-cyan { fill: var(--cyan); stroke: none; }

/* ============================================================
   1. INTERNATIONAL LAW — rotating globe + signal crossing an arc
   ============================================================ */
.mg-mer { transform-box: fill-box; transform-origin: center; }
.mg-mer-1 { animation: mgSpin 6s ease-in-out infinite; }
.mg-mer-2 { animation: mgSpin 6s ease-in-out infinite; animation-delay: -3s; }
@keyframes mgSpin {
  0%, 100% { transform: scaleX(1); opacity: .75; }
  50% { transform: scaleX(0.06); opacity: .35; }
}
.mg-arc { stroke-dasharray: 18 120; animation: mgTravel 4s linear infinite; }
@keyframes mgTravel { from { stroke-dashoffset: 138; } to { stroke-dashoffset: 0; } }
.mg-dot-a { animation: mgPulse 4s ease-in-out infinite; }
.mg-dot-b { animation: mgPulse 4s ease-in-out infinite; animation-delay: 2s; }
@keyframes mgPulse {
  0%, 60%, 100% { opacity: .35; transform: scale(1); }
  20% { opacity: 1; transform: scale(1.5); }
}
.mg-dot-a, .mg-dot-b { transform-box: fill-box; transform-origin: center; }

/* ============================================================
   2. FAMILY & SUCCESSION — a family line drawing itself
   ============================================================ */
.mt-branch { stroke-dasharray: 90; stroke-dashoffset: 90; animation: mtDraw 6s ease-in-out infinite; }
.mt-b1 { animation-delay: .5s; }
.mt-b2 { animation-delay: .9s; }
.mt-b3 { animation-delay: 1.3s; }
@keyframes mtDraw {
  0%, 8% { stroke-dashoffset: 90; }
  35%, 82% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 90; }
}
.mt-node { transform-box: fill-box; transform-origin: center; animation: mtPop 6s ease-in-out infinite; }
.mt-n0 { animation-delay: 0s; }
.mt-n1 { animation-delay: 1.5s; }
.mt-n2 { animation-delay: 1.8s; }
.mt-n3 { animation-delay: 2.1s; }
@keyframes mtPop {
  0%, 5% { transform: scale(.2); opacity: 0; }
  20%, 82% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.2); opacity: 0; }
}

/* ============================================================
   3. WEALTH PLANNING — value compounding upward
   ============================================================ */
.mw-bar { transform-box: fill-box; transform-origin: bottom; animation: mwGrow 5s ease-in-out infinite; }
.mw-b1 { animation-delay: .1s; }
.mw-b2 { animation-delay: .3s; }
.mw-b3 { animation-delay: .5s; }
.mw-b4 { animation-delay: .7s; }
.mw-b5 { animation-delay: .9s; }
@keyframes mwGrow {
  0%, 6% { transform: scaleY(0); opacity: 0; }
  30%, 80% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}
.mw-curve { stroke-dasharray: 160; stroke-dashoffset: 160; animation: mwDraw 5s ease-in-out infinite; animation-delay: 1s; }
@keyframes mwDraw {
  0%, 10% { stroke-dashoffset: 160; }
  45%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 160; }
}
.mw-tip { transform-box: fill-box; transform-origin: center; animation: mwTip 5s ease-in-out infinite; animation-delay: 1s; }
@keyframes mwTip {
  0%, 44% { opacity: 0; transform: scale(.3); }
  55% { opacity: 1; transform: scale(1.6); }
  62%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.3); }
}

/* ============================================================
   4. LEGAL CONSULTING — a question crossing, an answer returning
   ============================================================ */
.md-wave { transform-box: fill-box; transform-origin: center; }
.md-out-1, .md-out-2, .md-out-3 { animation: mdOut 4s ease-out infinite; }
.md-out-2 { animation-delay: .25s; }
.md-out-3 { animation-delay: .5s; }
@keyframes mdOut {
  0% { opacity: 0; transform: translateX(0) scale(.6); }
  15% { opacity: .9; }
  45% { opacity: 0; transform: translateX(26px) scale(1.1); }
  100% { opacity: 0; transform: translateX(26px) scale(1.1); }
}
.md-back-1, .md-back-2, .md-back-3 { animation: mdBack 4s ease-out infinite; animation-delay: 2s; }
.md-back-2 { animation-delay: 2.25s; }
.md-back-3 { animation-delay: 2.5s; }
@keyframes mdBack {
  0% { opacity: 0; transform: translateX(0) scale(.6); }
  15% { opacity: .9; }
  45% { opacity: 0; transform: translateX(-26px) scale(1.1); }
  100% { opacity: 0; transform: translateX(-26px) scale(1.1); }
}
.md-node { transform-box: fill-box; transform-origin: center; animation: mdBreathe 4s ease-in-out infinite; }
.md-node-r { animation-delay: 2s; }
@keyframes mdBreathe {
  0%, 40%, 100% { opacity: .55; }
  12% { opacity: 1; }
}

/* ============================================================
   5. CONTRACTS — terms set down, then signed
   ============================================================ */
.mc-line { transform-box: fill-box; transform-origin: left; animation: mcType 6s ease-in-out infinite; }
.mc-l1 { animation-delay: .2s; }
.mc-l2 { animation-delay: .5s; }
.mc-l3 { animation-delay: .8s; }
@keyframes mcType {
  0%, 4% { transform: scaleX(0); opacity: 0; }
  18%, 85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}
.mc-sign { stroke-dasharray: 80; stroke-dashoffset: 80; animation: mcSign 6s ease-in-out infinite; animation-delay: 1.4s; }
@keyframes mcSign {
  0%, 8% { stroke-dashoffset: 80; }
  38%, 78% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 80; }
}
.mc-seal { transform-box: fill-box; transform-origin: center; animation: mcSeal 6s ease-in-out infinite; animation-delay: 2.6s; }
@keyframes mcSeal {
  0%, 10% { opacity: 0; transform: scale(.4) rotate(-25deg); }
  22% { opacity: 1; transform: scale(1.25) rotate(0deg); }
  30%, 62% { opacity: .95; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(.4) rotate(-25deg); }
}

/* ============================================================
   6. REAL ESTATE — a title built from the ground up
   ============================================================ */
.mb-ground { transform-box: fill-box; transform-origin: center; animation: mbGround 6s ease-in-out infinite; }
@keyframes mbGround {
  0%, 4% { transform: scaleX(0); opacity: 0; }
  16%, 86% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}
.mb-wall { transform-box: fill-box; transform-origin: bottom; animation: mbRise 6s ease-in-out infinite; animation-delay: .5s; }
@keyframes mbRise {
  0%, 6% { transform: scaleY(0); opacity: 0; }
  26%, 84% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}
.mb-roof { stroke-dasharray: 80; stroke-dashoffset: 80; animation: mbRoof 6s ease-in-out infinite; animation-delay: 1.5s; }
@keyframes mbRoof {
  0%, 8% { stroke-dashoffset: 80; }
  30%, 76% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 80; }
}
.mb-win { transform-box: fill-box; transform-origin: center; animation: mbLight 6s ease-in-out infinite; }
.mb-v1 { animation-delay: 2.6s; }
.mb-v2 { animation-delay: 2.9s; }
.mb-door { transform-box: fill-box; transform-origin: bottom; animation: mbLight 6s ease-in-out infinite; animation-delay: 3.2s; }
@keyframes mbLight {
  0%, 12% { opacity: 0; }
  24%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================================
   7. CORPORATE — a structure connecting outward
   ============================================================ */
.mn-link { stroke-dasharray: 60; stroke-dashoffset: 60; animation: mnLink 5s ease-in-out infinite; }
.mn-k1 { animation-delay: .4s; }
.mn-k2 { animation-delay: .6s; }
.mn-k3 { animation-delay: .8s; }
.mn-k4 { animation-delay: 1s; }
@keyframes mnLink {
  0%, 8% { stroke-dashoffset: 60; }
  32%, 82% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 60; }
}
.mn-sat { transform-box: fill-box; transform-origin: center; animation: mnPop 5s ease-in-out infinite; }
.mn-s1 { animation-delay: 1.1s; }
.mn-s2 { animation-delay: 1.3s; }
.mn-s3 { animation-delay: 1.5s; }
.mn-s4 { animation-delay: 1.7s; }
@keyframes mnPop {
  0%, 10% { transform: scale(0); opacity: 0; }
  26%, 82% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
.mn-core { transform-box: fill-box; transform-origin: center; animation: mnCore 5s ease-in-out infinite; }
@keyframes mnCore {
  0%, 100% { opacity: .6; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ============================================================
   8. CIVIL LAW — the balance finding its level
   ============================================================ */
.ms-beam { transform-box: fill-box; transform-origin: 50% 0%; animation: msTip 5s ease-in-out infinite; }
@keyframes msTip {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}
.ms-pan { transform-box: fill-box; transform-origin: center top; animation: msLevel 5s ease-in-out infinite; }
@keyframes msLevel {
  0%, 100% { transform: rotate(7deg); }
  50% { transform: rotate(-7deg); }
}

/* ============================================================
   PLACARD GRID (homepage)
   ============================================================ */
.placards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.placard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.placard:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 168, 224, 0.5);
  box-shadow: 0 36px 60px -28px rgba(3, 21, 33, 0.55);
}
.placard .motif-frame {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(157, 212, 245, 0.16);
  height: 132px;
}
.placard-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.placard-num {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--cyan-ink); letter-spacing: .04em; margin-bottom: 6px;
}
.placard-title { font-size: 18px; font-style: italic; margin-bottom: 8px; }
.placard-hook { font-size: 14px; color: var(--ink-soft); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.placard-more { font-size: 13.5px; font-weight: 600; color: var(--ocean); }
.placard:hover .placard-more { color: var(--cyan); }

@media (max-width: 1050px) { .placards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .placards { grid-template-columns: 1fr; } }

/* ============================================================
   PRACTICE PAGE TEMPLATE
   ============================================================ */
.pp-hero { background: radial-gradient(120% 110% at 12% 0%, #0a3b52 0%, var(--deep) 62%); padding: 54px 0 72px; }
.pp-back { color: var(--cyan-bright); font-weight: 600; font-size: 14px; display: inline-block; margin-bottom: 26px; }
.pp-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.pp-hero .eyebrow { color: var(--cyan-bright); }
.pp-hero h1 { color: #fff; font-style: italic; font-size: clamp(30px, 4.2vw, 46px); }
.pp-lede { color: #b7d3db; font-size: 17px; max-width: 540px; }
.pp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.pp-hero .motif-frame { height: 260px; }

.pp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; margin-top: 44px; }
.pp-fact { background: rgba(3, 21, 33, 0.72); padding: 18px 20px; }
.pp-fact strong { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-bright); margin-bottom: 5px; }
.pp-fact span { color: #cfe7ec; font-size: 14.5px; }

.pp-section { padding: 76px 0; }
.pp-section-alt { background: #dce7f0; }
.pp-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.pp-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-deep); }
.pp-item h3 { font-size: 17.5px; font-style: italic; margin-bottom: 8px; }
.pp-item p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 0; line-height: 1.7; }

.pp-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 46px; }
.pp-steps::before { content: ""; position: absolute; top: 21px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(79,168,224,.2)); }
.pp-step { position: relative; }
.pp-step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(155deg, var(--ocean-mid), var(--deep));
  color: var(--cyan-bright); font-family: var(--serif); font-style: italic; font-size: 18px;
  box-shadow: var(--depth); margin-bottom: 14px;
}
.pp-step h3 { font-size: 16.5px; font-style: italic; margin-bottom: 6px; }
.pp-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 0; }

.pp-faq { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }

.pp-related { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.pp-related a {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 600; color: var(--ocean);
  transition: border-color .2s ease, color .2s ease;
}
.pp-related a:hover { border-color: var(--cyan); color: var(--cyan); }

.pp-cta { background: var(--deep); padding: 66px 0; text-align: center; }
.pp-cta h2 { color: #fff; font-style: italic; }
.pp-cta p { color: #b7d3db; max-width: 480px; margin: 0 auto 26px; }
.pp-cta .pp-ctas { justify-content: center; }
.pp-cta .btn-ghost { border-color: rgba(255,255,255,0.32); color: #fff; }

@media (max-width: 900px) {
  .pp-hero-inner { grid-template-columns: 1fr; }
  .pp-items { grid-template-columns: 1fr; }
  .pp-steps { grid-template-columns: 1fr 1fr; }
  .pp-steps::before { display: none; }
}
@media (max-width: 560px) {
  .pp-steps { grid-template-columns: 1fr; }
  .pp-facts { grid-template-columns: 1fr; }
}

/* Anyone who asked their system for less motion gets a still frame. */
@media (prefers-reduced-motion: reduce) {
  .motif * { animation: none !important; }
  .mt-branch, .mw-curve, .mc-sign, .mb-roof, .mn-link { stroke-dashoffset: 0 !important; }
  .placard { transition: none; }
}

/* ============================================================
   LEAD MAGNETS — one interactive tool per practice area
   ============================================================ */
.lm-band { background: linear-gradient(180deg, #dce7f0 0%, #d3e1ec 100%); padding: 80px 0; }
.lm-sub { text-align: center; max-width: 560px; margin: 0 auto 40px; font-size: 15.5px; }
.lm-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px 34px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow-deep);
}

.lm-progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 26px; }
.lm-progress-bar { height: 100%; background: linear-gradient(90deg, var(--ocean-mid), var(--cyan)); transition: width .3s ease; }
.lm-step { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); font-weight: 700; margin-bottom: 10px; }
.lm-q { font-family: var(--serif); font-style: italic; font-size: 23px; color: var(--deep); margin-bottom: 22px; line-height: 1.25; }

.lm-options { display: flex; flex-direction: column; gap: 10px; }
.lm-option {
  text-align: left; padding: 15px 18px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fbfeff; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lm-option:hover { border-color: var(--cyan); transform: translateX(4px); box-shadow: var(--depth); }
.lm-nav { margin-top: 20px; }
.lm-back { background: none; border: 0; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.lm-back:hover { color: var(--deep); }

.lm-checks { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.lm-check {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px;
  cursor: pointer; transition: background .15s ease;
}
.lm-check:hover { background: #f0fafb; }
.lm-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--cyan); flex-shrink: 0; cursor: pointer; }
.lm-check span { font-size: 14.5px; color: var(--ink); line-height: 1.5; }

.lm-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.lm-field { display: flex; flex-direction: column; gap: 7px; }
.lm-field span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.lm-field input, .lm-field select {
  font-family: var(--sans); font-size: 15px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfeff; color: var(--ink);
}
.lm-field input:focus, .lm-field select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

.lm-result { text-align: center; }
.lm-badge {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(155deg, var(--ocean-mid), var(--deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; color: var(--cyan-bright);
  box-shadow: var(--depth);
}
.lm-ring { width: 108px; height: 108px; display: block; margin: 0 auto 16px; }
.lm-ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.lm-ring-fg {
  fill: none; stroke: var(--cyan); stroke-width: 7; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset .8s cubic-bezier(.16,.9,.3,1);
}
.lm-ring-text { font-family: var(--serif); font-style: italic; font-size: 19px; fill: var(--deep); stroke: none; }
.lm-result-title { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--deep); margin-bottom: 8px; line-height: 1.25; }
.lm-figure { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ocean); margin-bottom: 10px; }
.lm-result-body { font-size: 15px; color: var(--ink-soft); max-width: 460px; margin: 0 auto 22px; line-height: 1.7; }

.lm-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; }
.lm-form input {
  font-family: var(--sans); font-size: 15px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfeff; color: var(--ink);
}
.lm-form input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.lm-fine { font-size: 12px; color: var(--ink-soft); margin-top: 14px; }

.lm-plan { text-align: left; background: #f0fafb; border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; margin-top: 8px; }
.lm-plan h4 { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--deep); margin-bottom: 14px; }
.lm-plan ul { display: flex; flex-direction: column; gap: 10px; }
.lm-plan li { font-size: 14.5px; color: var(--ink); padding-left: 24px; position: relative; line-height: 1.6; }
.lm-plan li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
}
.lm-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; line-height: 1.6; font-style: italic; }
.lm-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.lm-actions .btn { flex: 1; min-width: 180px; }

@media (max-width: 560px) {
  .lm-card { padding: 28px 22px; }
  .lm-q { font-size: 20px; }
  .lm-actions { flex-direction: column; }
}
