/* =========================================================
   Meridian Project Partners — Design System
   Palette: deep navy / slate grey with gold accents
   ========================================================= */

:root {
  --navy-900: #071324;
  --navy-800: #0b1e34;
  --navy-700: #0f2946;
  --navy-600: #163a5f;
  --slate-500: #3a4a5e;
  --slate-400: #5a6b80;
  --slate-300: #8896a8;
  --mist-200: #cfd8e3;
  --mist-100: #e9eef4;
  --paper: #f6f8fb;
  --white: #ffffff;

  --gold-600: #a9812f;
  --gold-500: #c8a24a;
  --gold-400: #d8bd77;
  --gold-100: #f3ead2;

  --ok: #2e7d64;

  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(7, 19, 36, .08), 0 1px 2px rgba(7, 19, 36, .06);
  --shadow-md: 0 10px 30px rgba(7, 19, 36, .10);
  --shadow-lg: 0 24px 60px rgba(7, 19, 36, .18);
  --trans: 220ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; }

a { color: var(--navy-600); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-600); }

img { max-width: 100%; display: block; }
svg { max-width: 100%; }
.hero__art svg, .split__media svg, .folio__img svg, .post__img svg { width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.lead { font-size: 1.18rem; color: var(--slate-500); }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700) 60%, var(--navy-600));
  color: var(--mist-100);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .lead { color: var(--mist-200); }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--trans), background var(--trans), border-color var(--trans), color var(--trans);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn--dark { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.btn--dark:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy-700); border-color: var(--mist-200); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--mist-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--navy-800);
  letter-spacing: -.01em;
  line-height: 1;
}
.brand__name span { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 9px 13px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: 7px;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--navy-800); background: var(--mist-100); }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: var(--trans); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 55%, var(--navy-600));
  color: var(--mist-100);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(200,162,74,.16), transparent 42%),
                    radial-gradient(circle at 12% 92%, rgba(22,58,95,.5), transparent 46%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 92px 0;
}
.hero h1 { color: var(--white); }
.hero .lead { color: var(--mist-200); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__art { filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }

.trustbar {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 56px;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 34px 48px;
  align-items: center;
}
.trustbar span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--gold-500); line-height: 1; }
.stat__label { font-size: .92rem; color: var(--mist-200); margin-top: 8px; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--mist-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mist-200); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gold-100);
  color: var(--gold-600);
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-500); font-size: .97rem; margin-bottom: 0; }

.card--link { display: flex; flex-direction: column; }
.card--link .more { margin-top: 16px; font-weight: 600; color: var(--gold-600); font-size: .92rem; }

/* Industry tiles */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  background: var(--white);
  border: 1px solid var(--mist-100);
  border-radius: 9px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.industry:hover { border-color: var(--gold-400); color: var(--gold-600); transform: translateY(-2px); }
.industry .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); flex: none; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 34px; color: var(--slate-500); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9812f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-500);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--slate-500); font-size: .95rem; margin: 0; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--mist-100);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1.05rem; color: var(--navy-700); font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700); color: var(--gold-400); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); flex: none; }
.quote__who b { display: block; color: var(--navy-800); font-size: .96rem; }
.quote__who span { font-size: .85rem; color: var(--slate-400); }

/* ---------- Team ---------- */
.person { text-align: center; }
.person__photo {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-600));
  color: var(--gold-400);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  box-shadow: var(--shadow-md);
}
.person h3 { margin-bottom: 2px; font-size: 1.15rem; }
.person .role { color: var(--gold-600); font-weight: 600; font-size: .9rem; }
.person p { color: var(--slate-500); font-size: .92rem; margin-top: 10px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--white);
  border: 1px solid var(--mist-100);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--gold-500); box-shadow: var(--shadow-md); position: relative; }
.plan--featured::before {
  content: "Most Chosen";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--navy-900);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
}
.plan h3 { font-size: 1.3rem; }
.plan .price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--navy-800); margin: 6px 0 2px; }
.plan .price small { font-size: .95rem; color: var(--slate-400); font-family: var(--font-body); font-weight: 400; }
.plan .plan__desc { color: var(--slate-500); font-size: .92rem; min-height: 44px; }
.plan ul { list-style: none; margin: 20px 0 26px; padding: 0; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: .94rem; color: var(--slate-500); border-top: 1px solid var(--mist-100); }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 12px; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9812f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* ---------- Portfolio ---------- */
.folio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.folio__item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist-100);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.folio__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.folio__img { aspect-ratio: 16/10; }
.folio__body { padding: 20px 22px; }
.folio__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.folio__body h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.folio__body p { color: var(--slate-500); font-size: .92rem; margin: 0; }
.folio__meta { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mist-100); }
.folio__meta div { font-size: .8rem; color: var(--slate-400); }
.folio__meta b { display: block; color: var(--navy-800); font-family: var(--font-head); font-size: 1.05rem; }

/* ---------- Blog ---------- */
.post {
  background: var(--white);
  border: 1px solid var(--mist-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: var(--trans);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__img { aspect-ratio: 16/9; }
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.post__body h3 { font-size: 1.14rem; margin: 8px 0; }
.post__body p { color: var(--slate-500); font-size: .93rem; flex: 1; }
.post__foot { font-size: .82rem; color: var(--slate-400); margin-top: 12px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--navy-700); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  padding: 12px 14px;
  border: 1px solid var(--mist-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-800);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200,162,74,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--slate-400); }

/* ---------- FAQ / Accordion ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.acc { border-bottom: 1px solid var(--mist-200); }
.acc__q {
  width: 100%;
  text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 22px 40px 22px 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  position: relative;
}
.acc__q::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold-600); transition: var(--trans);
}
.acc.is-open .acc__q::after { transform: translateY(-50%) rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height var(--trans); }
.acc__a p { color: var(--slate-500); padding: 0 40px 4px 0; }
.acc.is-open .acc__a { max-height: 400px; }

/* ---------- Page header ---------- */
.page-head {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--mist-100);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 88% 20%, rgba(200,162,74,.14), transparent 40%);
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: var(--white); }
.page-head p { color: var(--mist-200); max-width: 62ch; margin: 0; }
.crumbs { font-size: .84rem; color: var(--slate-300); margin-bottom: 16px; }
.crumbs a { color: var(--gold-400); }

/* ---------- Article ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; color: var(--slate-500); }
.prose li { margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: var(--white); border-radius: var(--radius-lg); padding: 54px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--mist-200); max-width: 60ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--mist-200); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--mist-200); font-size: .93rem; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand p { color: var(--slate-300); font-size: .93rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .84rem; color: var(--slate-300);
}
.footer-bottom a { color: var(--slate-300); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 64px 0; }
  .hero__art { max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--white);
    padding: 14px 24px 24px;
    gap: 2px;
    border-bottom: 1px solid var(--mist-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform var(--trans);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 12px 10px; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .folio, .price-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* =========================================================
   Dark premium theme for inner pages  (body.theme-dark)
   Matches the immersive homepage without loading immersive.css
   ========================================================= */
body.theme-dark { background: #050d1a; color: var(--mist-200); }
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4 { color: #fff; }
.theme-dark p { color: var(--mist-200); }
.theme-dark .lead { color: var(--mist-200); }
.theme-dark a { color: var(--gold-400); }
.theme-dark a:hover { color: var(--gold-500); }

/* header */
.theme-dark .site-header { background: rgba(5,13,26,.82); border-bottom: 1px solid rgba(255,255,255,.06); }
.theme-dark .brand__name { color: #fff; }
.theme-dark .nav__links a { color: var(--mist-200); }
.theme-dark .nav__links a:hover, .theme-dark .nav__links a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.theme-dark .nav__toggle span { background: #fff; }
@media (max-width:760px){ .theme-dark .nav__links { background: #0a1526; border-bottom-color: rgba(255,255,255,.08); } }

/* section tones */
.theme-dark .section { background: #050d1a; }
.theme-dark .section--paper { background: #0a1526; }
.theme-dark .section--navy { background: linear-gradient(160deg, #0b1e34, #0f2946 60%, #163a5f); }

/* cards & surfaces → glass */
.theme-dark .card,
.theme-dark .quote,
.theme-dark .plan,
.theme-dark .folio__item,
.theme-dark .post {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
.theme-dark .card p, .theme-dark .folio__body p, .theme-dark .post__body p,
.theme-dark .plan .plan__desc, .theme-dark .step p, .theme-dark .checklist li { color: var(--mist-200); }
.theme-dark .card h3, .theme-dark .folio__body h3, .theme-dark .post__body h3, .theme-dark .plan h3 { color: #fff; }
.theme-dark .quote p { color: #eef2f7; }
.theme-dark .quote__who b { color: #fff; }
.theme-dark .folio__meta, .theme-dark .plan li, .theme-dark .post__foot { border-color: rgba(255,255,255,.1); }
.theme-dark .plan li { color: var(--mist-200); }
.theme-dark .plan .price { color: #fff; }
.theme-dark .folio__meta b { color: #fff; }

/* subtle 3D hover lift for cards */
.theme-dark .card, .theme-dark .folio__item, .theme-dark .post, .theme-dark .plan { transform-style: preserve-3d; }
.theme-dark .card:hover, .theme-dark .folio__item:hover, .theme-dark .post:hover {
  transform: translateY(-6px) rotateX(3deg);
  border-color: rgba(200,162,74,.45);
  box-shadow: 0 30px 66px rgba(0,0,0,.5), 0 0 34px rgba(200,162,74,.12);
}

/* industry tiles */
.theme-dark .industry { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }

/* forms */
.theme-dark .field label { color: var(--mist-100); }
.theme-dark .field input, .theme-dark .field select, .theme-dark .field textarea {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: #fff;
}
.theme-dark .field input::placeholder, .theme-dark .field textarea::placeholder { color: var(--slate-400); }
.theme-dark .field select option { color: #0b1e34; }
.theme-dark .form__note { color: var(--slate-300); }

/* accordion */
.theme-dark .acc { border-color: rgba(255,255,255,.12); }
.theme-dark .acc__q { color: #fff; }
.theme-dark .acc__a p { color: var(--mist-200); }

/* prose (terms/legal) */
.theme-dark .prose ul, .theme-dark .prose li { color: var(--mist-200); }

/* buttons on dark */
.theme-dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.theme-dark .btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.theme-dark .btn--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }

/* person avatar keeps its gradient; ensure text readable */
.theme-dark .person .role { color: var(--gold-400); }
.theme-dark .person p { color: var(--mist-200); }

/* ---------- Safe JS-driven scroll reveal (inner pages) ---------- */
.reveal-ready .rv {
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg) translateY(42px);
  transform-origin: 50% 100%;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.reveal-ready .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Isometric 3D infographics ---------- */
.infographic { position: relative; }
.infographic svg { display: block; width: 100%; height: auto; }
.panel3d {
  border-radius: 18px;
  padding: 18px;
  background: radial-gradient(120% 120% at 30% 10%, rgba(200,162,74,.06), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.iso-float { transform-origin: 50% 60%; }
@media (prefers-reduced-motion: no-preference) {
  .iso-float { animation: isoFloat 7s ease-in-out infinite; }
}
@keyframes isoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* isometric illustration inside a service split card */
.theme-dark .split__media .card .iso-float { padding: 6px 0; }

/* ---------- Ring gauges (case-study metrics) ---------- */
.gauges {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 40px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.gauge { text-align: center; width: 132px; }
.gauge__ring { position: relative; width: 118px; height: 118px; margin: 0 auto; }
.gauge__ring svg { width: 118px; height: 118px; transform: rotate(-90deg); display: block; }
.gauge__track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 9; }
.gauge__fill {
  fill: none; stroke: #d8bd77; stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 5px rgba(200,162,74,.4));
  transition: stroke-dashoffset 1.35s cubic-bezier(.2,.7,.2,1);
}
.gauge__val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: #fff;
}
.gauge__label { margin-top: 12px; font-size: .84rem; color: var(--mist-200); line-height: 1.3; }
/* light-theme fallback (if used outside theme-dark) */
body:not(.theme-dark) .gauge__val { color: var(--navy-800); }
body:not(.theme-dark) .gauge__label { color: var(--slate-500); }
body:not(.theme-dark) .gauge__track { stroke: var(--mist-200); }
@media (prefers-reduced-motion: reduce) { .gauge__fill { transition: none; } }
