/* Afilmedia LLC — "Orbit" design system (v3 enhanced) */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --night: #0a1a4a;      /* deep cobalt — dark surfaces */
  --night-2: #13286b;
  --night-3: #061030;
  --night-line: rgba(255,255,255,.14);
  --on-night: #ffffff;
  --on-night-2: #b9c4e6;
  --paper: #f2f4fa;
  --paper-2: #e8ecf6;
  --white: #ffffff;
  --ink: #0b1330;
  --ink-2: #2a3458;
  --muted: #5b6482;
  --rule: #dde2ee;

  /* practice colors: bright for dark surfaces, deep for light surfaces */
  --marketing: #5b8cff;  --marketing-d: #2f5fe0;
  --llc: #34d6a3;        --llc-d: #0b8a65;
  --ai: #a68bff;         --ai-d: #6a48e0;
  --sales: #ffae57;      --sales-d: #b8620e;

  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.85rem, 1.45rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.55rem + 3vw, 3.7rem);
  --step-5: clamp(2.75rem, 1.6rem + 4.8vw, 5.4rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm: 12px;
  --r-md: 22px;
  --r-lg: 32px;

  --shadow-sm: 0 4px 14px -4px rgba(11, 19, 48, 0.06), 0 2px 6px -1px rgba(11, 19, 48, 0.04);
  --shadow-md: 0 18px 40px -16px rgba(11, 19, 48, 0.12), 0 4px 12px -2px rgba(11, 19, 48, 0.05);
  --shadow-lg: 0 28px 64px -20px rgba(6, 16, 48, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
svg:not([width]) { width: 24px; height: 24px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, opacity .15s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marketing); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-stretch: 94%; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 16px; top: 16px; }

.dark {
  background-color: var(--night);
  background-image:
    radial-gradient(800px circle at 15% 10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(700px circle at 85% 80%, rgba(166, 139, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%);
  color: var(--on-night);
}
.dot-grid {
  background-image:
    radial-gradient(rgba(255,255,255,.085) 1px, transparent 1.2px),
    radial-gradient(850px circle at 12% 15%, rgba(91, 140, 255, 0.18), transparent 58%),
    radial-gradient(650px circle at 88% 75%, rgba(52, 214, 163, 0.11), transparent 55%),
    linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%);
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
}

/* ---------- section eyebrows & badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cd, var(--marketing-d));
  background: color-mix(in srgb, var(--c, var(--marketing)) 14%, var(--white));
  border: 1px solid color-mix(in srgb, var(--c, var(--marketing)) 30%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cd, var(--marketing-d));
}
.dark .eyebrow {
  color: var(--on-night);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.dark .eyebrow::before {
  background: var(--c, var(--marketing));
  box-shadow: 0 0 8px var(--c, var(--marketing));
}

/* ---------- floating header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; margin-bottom: -82px; pointer-events: none; }
.bar {
  pointer-events: auto;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 16px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(10, 26, 74, .78);
  border: 1px solid var(--night-line);
  color: var(--on-night);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled .bar {
  background: rgba(6, 16, 48, .92);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 16px 36px -12px rgba(6, 16, 48, .45);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; max-width: 30px; max-height: 30px; flex: none; }
.brand small { font-family: var(--text); font-weight: 500; font-size: .72rem; letter-spacing: .02em; opacity: .7; margin-left: 3px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav a, .sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; text-decoration: none; font: inherit; font-weight: 500; font-size: .95rem; color: var(--on-night-2); border-radius: 999px; background: none; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.nav a:hover, .sub-toggle:hover { color: var(--on-night); background: rgba(255,255,255,.09); }
.nav a[aria-current="page"] { color: var(--on-night); background: rgba(255,255,255,.14); }
.nav .nav-cta { background: var(--white); color: var(--night); font-weight: 600; margin-left: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: #dfe6ff; color: var(--night); }
.sub-toggle svg { width: 10px; height: 10px; max-width: 10px; max-height: 10px; transition: transform .2s; flex: none; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: calc(100% + 14px); left: -12px; width: 370px; padding: 10px; border-radius: var(--r-md); background: rgba(10, 26, 74, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px -15px rgba(3,8,30,.65); }
.sub.open { display: block; animation: sub-fade .18s ease-out; }
@keyframes sub-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav .sub ul { display: grid; gap: 4px; }
.nav .sub a { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; border-radius: 14px; padding: 12px 14px; color: var(--on-night); }
.nav .sub a:hover { background: rgba(255,255,255,.08); }
.nav .sub a span { display: block; color: var(--on-night-2); font-size: .85rem; line-height: 1.4; margin-top: 2px; font-weight: 400; }
.pdot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
  margin-left: 6px;
}
.lang-switch a {
  padding: 5px 10px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  border-radius: 999px;
  color: var(--on-night-2);
  text-decoration: none;
  line-height: 1;
}
.lang-switch a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.lang-switch a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.menu-btn { display: none; font: inherit; font-weight: 600; color: var(--on-night); background: rgba(255,255,255,.1); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .bar { flex-wrap: wrap; border-radius: 26px; }
  .nav { display: none; width: 100%; padding: 4px 4px 10px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a, .sub-toggle { width: 100%; justify-content: flex-start; padding: 13px 14px; }
  .sub { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 6px; background: transparent; }
  .nav .nav-cta { justify-content: center; margin: 8px 0 0; }
  .lang-switch { margin: 10px auto 0; width: fit-content; }
  .lang-switch a { width: auto; justify-content: center; padding: 7px 16px !important; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 15px 26px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 6px 20px -6px rgba(11, 19, 48, 0.35); }
.btn-primary:hover { background: var(--night-2); transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(11, 19, 48, 0.45); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.dark .btn-primary { background: var(--white); color: var(--night); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35); }
.dark .btn-primary:hover { background: #dfe6ff; }
.dark .btn-ghost { color: var(--on-night); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.03); }
.dark .btn-ghost:hover { border-color: var(--on-night); background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- home hero with orbit ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 1.4rem + 4.4vw, 5.1rem); }
.hero .lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-night-2); margin: 26px 0 34px; max-width: 42ch; }
.hero-note { margin-top: 36px; display: inline-flex; gap: 12px; align-items: center; font-size: .92rem; color: var(--on-night-2); padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.hero-note .dots { display: flex; }
.hero-note .dots i { width: 12px; height: 12px; border-radius: 50%; margin-right: -3px; border: 2px solid var(--night); }

/* hero stats strip */
.hero-metrics {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--night-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.hero-metric {
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background .2s, border-color .2s;
}
.hero-metric:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}
.hero-metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 4px;
}
.hero-metric span {
  display: block;
  font-size: 0.9rem;
  color: var(--on-night-2);
  line-height: 1.4;
}

@media (max-width: 980px) {
  .hero { padding: 130px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
}
@media (max-width: 540px) {
  .hero-metrics { grid-template-columns: 1fr; }
}

.orbit-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; --R: 43cqw; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--night-line); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring.r1 { width: 86cqw; height: 86cqw; }
.ring.r2 { width: 56cqw; height: 56cqw; border-style: dashed; border-color: rgba(255,255,255,.12); }
.ring.r3 { width: 100cqw; height: 100cqw; border-color: rgba(255,255,255,.06); }
.core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30cqw; height: 30cqw; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 35% 30%, #2a47a8, var(--night-2) 60%); border: 1px solid rgba(255,255,255,.24); box-shadow: 0 0 0 10cqw rgba(91,140,255,.06), 0 30px 80px -20px rgba(0,0,0,.65); z-index: 2; }
.core .brand-mark { width: 9cqw; height: 9cqw; max-width: 56px; max-height: 56px; margin: 0 auto 1.6cqw; }
.core strong { display: block; font-family: var(--display); font-size: clamp(1rem, 3.6cqw, 1.45rem); letter-spacing: -0.02em; line-height: 1.1; }
.core span { display: block; font-size: clamp(.7rem, 2.1cqw, .85rem); color: var(--on-night-2); margin-top: 4px; }

.orbit { position: absolute; inset: 0; z-index: 3; }
.arm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)); }
.spoke { position: absolute; left: -0.5px; bottom: 0; width: 1px; height: var(--R); background: linear-gradient(to top, transparent 40%, color-mix(in srgb, var(--c) 70%, transparent)); }
.node-pos { position: absolute; left: 0; top: calc(-1 * var(--R)); transform: rotate(calc(-1 * var(--a))); }
.node { display: flex; align-items: center; gap: 10px; transform: translate(-50%, -50%); white-space: nowrap; text-decoration: none; color: var(--on-night); font-weight: 600; font-size: clamp(.8rem, 2.5cqw, .98rem); padding: 9px 16px 9px 9px; border-radius: 999px; background: rgba(10, 26, 74, .88); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: background .2s, box-shadow .2s, transform .2s; }
.node i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent); flex: none; }
.node:hover, .node:focus-visible { background: var(--night-2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); transform: translate(-50%, -50%) scale(1.04); }
.node small { display: block; font-weight: 500; font-size: .75em; color: var(--on-night-2); }

@media (prefers-reduced-motion: no-preference) {
  .orbit { animation: spin 90s linear infinite; }
  .node-spin { animation: spin 90s linear infinite reverse; }
  .orbit-stage:hover .orbit, .orbit-stage:hover .node-spin,
  .orbit-stage:focus-within .orbit, .orbit-stage:focus-within .node-spin { animation-play-state: paused; }
  .orbit-stage { animation: stage-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stage-in { from { opacity: 0; transform: scale(.92) rotate(-12deg); } to { opacity: 1; transform: none; } }

.orbit-legend { display: none; list-style: none; padding: 0; margin: 28px 0 0; gap: 8px; }
.orbit-legend a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); text-decoration: none; font-weight: 600; }
.orbit-legend i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
@media (max-width: 640px) {
  .node { padding: 0; border: 0; background: none; }
  .node span { display: none; }
  .node i { width: 26px; height: 26px; }
  .orbit-legend { display: grid; }
}

/* practice color hooks */
.marketing { --c: var(--marketing); --cd: var(--marketing-d); }
.llc { --c: var(--llc); --cd: var(--llc-d); }
.ai { --c: var(--ai); --cd: var(--ai-d); }
.sales { --c: var(--sales); --cd: var(--sales-d); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kicker { font-size: var(--step-1); color: var(--muted); margin-top: 16px; max-width: 56ch; line-height: 1.55; }
.dark .kicker { color: var(--on-night-2); }
.section h2 { font-size: var(--step-4); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 60ch; }

/* practices: sticky index + scrolling panels */
.practices { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.p-index { position: sticky; top: 120px; }
.p-index ol { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 6px; }
.p-index a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 13px 16px; border-radius: 14px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s, transform .2s; }
.p-index a i { width: 10px; height: 10px; border-radius: 50%; background: var(--cd); transition: transform .25s; flex: none; }
.p-index a:hover { color: var(--ink); background: var(--paper); transform: translateX(3px); }
.p-index a.is-active { color: var(--ink); background: var(--paper); font-weight: 600; box-shadow: inset 0 0 0 1px var(--rule); }
.p-index a.is-active i { transform: scale(1.5); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cd) 20%, transparent); }
.p-panels { display: grid; gap: 24px; }
.p-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(28px, 4.5vw, 52px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 8%, var(--white)), color-mix(in srgb, var(--c) 14%, var(--white)));
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--white));
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 110px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s cubic-bezier(.2,.7,.2,1), border-color .25s;
}
.p-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--cd) 45%, var(--white));
}
.p-panel::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: var(--c); opacity: .88; transition: transform .4s ease; }
.p-panel:hover::after { transform: scale(1.08); }
.p-panel::before { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; top: -130px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cd) 30%, transparent); }
.p-panel > * { position: relative; z-index: 1; }
.p-head-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.p-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--c);
  box-shadow: 0 8px 18px -6px rgba(11, 19, 48, 0.25);
  flex: none;
}
.p-icon svg { width: 24px; height: 24px; max-width: 24px; max-height: 24px; }
.p-panel h3 { font-size: var(--step-3); max-width: 16ch; }
.p-panel .tagline { font-family: var(--display); font-size: var(--step-1); color: var(--cd); font-weight: 600; margin: 12px 0 16px; letter-spacing: -0.01em; max-width: 36ch; line-height: 1.3; }
.p-panel p.body { color: var(--ink-2); max-width: 58ch; }
.chips { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.88); border: 1px solid color-mix(in srgb, var(--cd) 24%, var(--white)); font-size: .91rem; font-weight: 500; color: var(--ink-2); }
.p-panel .btn { background: var(--ink); color: var(--white); }
.p-panel .btn:hover { background: var(--cd); }
.via { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--cd); background: var(--white); border: 1px solid color-mix(in srgb, var(--cd) 25%, transparent); border-radius: 999px; padding: 6px 13px; }
@media (max-width: 900px) {
  .practices { grid-template-columns: 1fr; }
  .p-index { position: static; }
  .p-index ol { display: none; }
  .p-panel::after { width: 140px; height: 140px; right: -50px; top: -50px; }
}

/* engagement timeline — a real sequence */
.timeline { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--marketing), var(--llc), var(--ai), var(--sales)); opacity: .75; }
.timeline li {
  counter-increment: s;
  position: relative;
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background .2s, transform .2s, border-color .2s;
}
.timeline li:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}
.timeline li::before { content: counter(s); position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--night); border: 2px solid rgba(255,255,255,.4); font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: 22px; box-shadow: 0 0 0 6px rgba(10, 26, 74, 0.85); }
.timeline h3 { font-size: var(--step-2); margin-bottom: 10px; }
.timeline p { color: var(--on-night-2); max-width: 30ch; margin: 0; font-size: .98rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { display: none; }
  .timeline li { padding: 24px 24px 24px 92px; min-height: 56px; }
  .timeline li::before { position: absolute; left: 22px; top: 22px; margin: 0; box-shadow: none; }
}

/* statement & split headers aligned cleanly at top */
.statement { font-family: var(--display); font-size: var(--step-5); font-weight: 720; font-stretch: 88%; letter-spacing: -0.022em; line-height: 1; max-width: 16ch; }
.statement span { display: block; }
.statement span:nth-child(2) { color: var(--muted); }
.statement span:nth-child(3) { color: #8c96b5; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .prose p { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: clamp(48px, 6vw, 76px) 0 0; }
.facts div {
  padding: 30px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.facts div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c5cde0;
}
.facts dt { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.02em; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Case Studies (Problem -> What we built -> Result) & Testimonials ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.case-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.case-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--cd, var(--marketing-d));
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cd, var(--ink));
  background: color-mix(in srgb, var(--c, var(--marketing)) 15%, var(--white));
  padding: 5px 12px;
  border-radius: 999px;
}
.case-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cd, var(--marketing-d));
}
.case-client {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}
.case-metric {
  margin: 4px 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c, var(--marketing)) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--c, var(--marketing)) 25%, var(--white));
}
.case-metric strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cd, var(--ink));
  line-height: 1.05;
}
.case-metric span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 4px;
}
.case-steps {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}
.case-step {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.case-step strong {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}
.case-quote {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.case-quote blockquote {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.55;
}
.case-quote figcaption {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.case-quote figcaption span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Standalone Testimonials Grid */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.testi-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.dark .testi-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.testi-card blockquote {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.dark .testi-card blockquote {
  color: var(--on-night);
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.dark .testi-author {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.testi-author strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink);
}
.dark .testi-author strong {
  color: var(--white);
}
.testi-author span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.dark .testi-author span {
  color: var(--on-night-2);
}

@media (max-width: 980px) {
  .case-grid, .case-grid.two-col, .testi-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: #b8c4e0;
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--text);
  font-size: 1.25rem;
  font-weight: 500;
  flex: none;
  transition: transform .2s, background .2s, color .2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--white);
}
.faq-body {
  padding: 0 26px 24px;
  color: var(--ink-2);
  max-width: 64ch;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* CTA panel */
.cta-wrap { padding: 0 0 clamp(64px, 8vw, 110px); }
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(40px, 6.5vw, 88px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.cta h2 { font-size: var(--step-4); max-width: 16ch; position: relative; z-index: 1; }
.cta p { color: var(--on-night-2); margin-top: 18px; max-width: 46ch; position: relative; z-index: 1; }
.cta .btn-row { position: relative; z-index: 1; }
.cta .rings { position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; pointer-events: none; }
.cta .rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--night-line); }
.cta .rings span:nth-child(2) { inset: 80px; }
.cta .rings span:nth-child(3) { inset: 160px; background: radial-gradient(circle at 40% 40%, #2a47a8, var(--night-2)); border-color: rgba(255,255,255,.2); }
.cta .rings i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } .cta .rings { right: -260px; top: -260px; opacity: .6; } }

/* ---------- inner page heads (dark) ---------- */
.page-head { position: relative; overflow: hidden; padding: 156px 0 clamp(64px, 8vw, 104px); }
.page-head h1 { font-size: var(--step-5); max-width: 15ch; position: relative; z-index: 1; }
.page-head .lede { font-size: var(--step-1); color: var(--on-night-2); margin-top: 24px; max-width: 54ch; line-height: 1.55; position: relative; z-index: 1; }
.page-head .btn-row { margin-top: 34px; position: relative; z-index: 1; }
.crumbs { font-size: .9rem; color: var(--on-night-2); margin-bottom: 24px; position: relative; z-index: 1; }
.crumbs a { color: var(--on-night-2); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs .sep { margin: 0 8px; opacity: .6; }
.page-head .planet { position: absolute; width: clamp(280px, 38vw, 560px); aspect-ratio: 1; right: clamp(-220px, -10vw, -80px); top: 50%; transform: translateY(-46%); border-radius: 50%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 100%, white 25%), var(--c) 45%, var(--cd) 100%); box-shadow: 0 0 120px -10px color-mix(in srgb, var(--c) 55%, transparent); }
.page-head .planet::before, .page-head .planet::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 1px solid var(--night-line); }
.page-head .planet::after { inset: -32%; border-style: dashed; }
.page-head .label { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--night-line); margin-bottom: 22px; position: relative; z-index: 1; }
.page-head .label i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
@media (max-width: 900px) { .page-head .planet { width: 260px; right: -150px; top: 120px; transform: none; opacity: .55; } }
.updated { font-size: .95rem; color: var(--on-night-2); margin-top: 22px; position: relative; z-index: 1; }

/* sibling practice switcher */
.switcher { background: var(--night-3); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.switcher ul { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.switcher a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--on-night-2); border: 1px solid var(--night-line); font-size: .93rem; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.switcher a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.switcher a:hover { color: var(--on-night); border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.switcher a[aria-current="page"] { background: var(--white); color: var(--night); border-color: var(--white); font-weight: 600; }

/* service: expanded included tiles with detail lists */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.tile {
  padding: 32px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cd);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tile:first-child, .tile:last-child { grid-column: span 2; }
.tile:first-child { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 10%, var(--white)), color-mix(in srgb, var(--c) 16%, var(--white))); border-color: color-mix(in srgb, var(--c) 30%, var(--white)); border-top: 4px solid var(--cd); }
.tile h3 { font-size: var(--step-2); margin-bottom: 12px; }
.tile:first-child h3 { font-size: var(--step-3); }
.tile p { color: var(--ink-2); margin: 0 0 16px; }
.tile p:last-child { margin-bottom: 0; }
.tile-list {
  list-style: none;
  padding: 16px 0 0;
  margin: auto 0 0;
  border-top: 1px solid color-mix(in srgb, var(--cd) 18%, var(--rule));
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.tile-list li {
  position: relative;
  padding-left: 20px;
}
.tile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cd);
}
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } .tile:last-child { grid-column: auto; } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } .tile:first-child, .tile:last-child { grid-column: auto; } }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit > div { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); }
.fit h3 { font-size: var(--step-2); margin-bottom: 20px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit li { position: relative; padding-left: 30px; color: var(--ink-2); }
.fit li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--cd); background: color-mix(in srgb, var(--c) 25%, var(--white)); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

.partner { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: linear-gradient(145deg, color-mix(in srgb, var(--llc) 10%, var(--white)), color-mix(in srgb, var(--llc) 18%, var(--white))); border: 1px solid color-mix(in srgb, var(--llc) 35%, var(--white)); box-shadow: var(--shadow-sm); }
.partner .badge { width: 88px; height: 88px; border-radius: 50%; background: var(--llc); display: grid; place-items: center; color: var(--night); font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; box-shadow: 0 10px 24px -6px rgba(11, 138, 101, 0.4); }
.partner h2 { font-size: var(--step-3); margin-bottom: 12px; }
.partner p { color: var(--ink-2); max-width: 64ch; }
.partner .btn-row { margin-top: 20px; }
@media (max-width: 640px) { .partner { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.values div {
  padding: 32px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.values div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.values dt { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ink); }
.values dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------- contact form & contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
  margin-bottom: 48px;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.form-card h2 {
  font-size: var(--step-3);
  margin-bottom: 8px;
}
.form-card > p {
  color: var(--ink-2);
  margin-bottom: 28px;
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 8px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .86rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #c9d0e0;
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--marketing-d);
  box-shadow: 0 0 0 4px rgba(91,140,255,.2);
}
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip-select legend { font-weight: 600; font-size: .94rem; margin-bottom: 10px; padding: 0; color: var(--ink); }
.chip-select label { cursor: pointer; }
.chip-select input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-select span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--white); border: 1.5px solid #c9d0e0; font-size: .91rem; font-weight: 500; transition: border-color .15s, background .15s, color .15s; }
.chip-select span i { width: 10px; height: 10px; border-radius: 50%; background: var(--cd, var(--muted)); }
.chip-select input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip-select input:checked + span i { background: var(--c, var(--white)); }
.chip-select input:focus-visible + span { outline: 3px solid var(--marketing); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; font-weight: 500; display: none; margin: 0; }
.form-status.ok { display: block; background: #e2f7ef; color: #0b5c43; border: 1px solid #a8e6cf; }
.form-status.err { display: block; background: #fdeaea; color: #8a1f1f; border: 1px solid #f5bcbc; }

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-stack { display: grid; gap: 16px; }
.c-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 8%, var(--white)), color-mix(in srgb, var(--c) 15%, var(--white)));
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--white));
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
}
a.c-card:hover { border-color: var(--cd); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.c-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%; background: var(--c); opacity: .82; pointer-events: none; transition: transform .3s ease; }
a.c-card:hover::after { transform: scale(1.08); }
.c-card > * { position: relative; z-index: 1; }
.c-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  margin-bottom: 12px;
  box-shadow: 0 8px 18px -6px rgba(11, 19, 48, 0.3);
  flex: none;
}
.c-icon svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex: none;
}
.c-label { font-size: .88rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cd); }
.c-value { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1rem + .9vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; word-break: break-word; font-style: normal; }
.c-value.small { font-family: var(--text); font-weight: 500; font-size: 1rem; letter-spacing: 0; line-height: 1.55; color: var(--ink-2); }
.c-action { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .93rem; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.c-action svg { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; transition: transform .18s; }
a.c-card:hover .c-action svg { transform: translateX(4px); }

.contact-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.contact-notes > div { padding: clamp(26px, 3.2vw, 38px); border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--rule); }
.contact-notes h2 { font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 10px; }
.contact-notes p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; } .contact-notes { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-nav { position: sticky; top: 110px; align-self: start; padding: 24px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--rule); font-size: .93rem; }
.legal-nav h2 { font-family: var(--text); font-size: .93rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; color: var(--muted); }
.legal-nav ol { margin: 0; padding-left: 20px; color: var(--muted); }
.legal-nav li { margin-bottom: 7px; }
.legal-nav a { color: var(--ink-2); text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
.legal-body { font-size: 1.08rem; line-height: 1.75; max-width: 70ch; color: var(--ink-2); }
.legal-body h2 { font-size: var(--step-2); color: var(--ink); margin: 56px 0 16px; scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: var(--step-1); color: var(--ink); margin: 28px 0 10px; letter-spacing: -0.01em; }
.legal-body ul { padding-left: 22px; margin: 0 0 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 8px 0 20px; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-body th { color: var(--ink); background: var(--paper); }
.legal-body address { font-style: normal; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-nav { position: static; } .table-scroll { overflow-x: auto; } }

/* ---------- footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 96px) 0 36px; overflow: hidden; border-top: 1px solid var(--night-line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { font-family: var(--text); font-size: .86rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-night-2); margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-grid a { text-decoration: none; color: var(--on-night); opacity: .9; }
.foot-grid a:hover { text-decoration: underline; opacity: 1; }
.foot-grid p, .foot-grid address { color: var(--on-night-2); font-style: normal; line-height: 1.7; font-size: .96rem; }
.foot-grid p { max-width: 36ch; margin: 16px 0; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--on-night-2); font-size: .9rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* 404 */
.notfound h1 { font-size: var(--step-5); }

@media print {
  .site-header, .site-footer, .cta-wrap, .legal-nav, .planet, .switcher { display: none !important; }
  .dark { background: none; color: #000; }
  .legal { display: block; }
}
