/* ============================================================
   Opulent Mind — brand stylesheet
   Brand guide: sage #82A567, charcoal #262626, white
   ============================================================ */

:root, [data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.71rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --color-bg: #F8F7F3;
  --color-surface: #FFFFFF;
  --color-surface-offset: #F1EFE8;
  --color-border: #E1DDD3;
  --color-divider: #EAE7DF;

  --color-text: #22221F;
  --color-text-muted: #6C6C64;
  --color-text-faint: #9C9C93;

  --color-charcoal: #262626;
  --color-sage: #82A567;
  --color-sage-pale: #C4DCAC;
  --color-primary: #5C8043;
  --color-primary-hover: #47652F;
  --color-primary-soft: rgba(130,165,103,.16);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-full: 999px;

  --content: 1200px;
  --transition: 220ms cubic-bezier(.16,1,.3,1);

  --font-display: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(34,34,31,.05);
  --shadow-md: 0 10px 30px rgba(34,34,31,.07);
  --shadow-lg: 0 24px 60px rgba(34,34,31,.12);
  --header-h: 82px;
}

[data-theme="dark"] {
  --color-bg: #171716;
  --color-surface: #1F1F1D;
  --color-surface-offset: #212120;
  --color-border: #34342F;
  --color-divider: #2A2A27;
  --color-text: #EDEBE4;
  --color-text-muted: #A0A098;
  --color-text-faint: #6C6C64;
  --color-primary: #9CBF80;
  --color-primary-hover: #B4D19B;
  --color-primary-soft: rgba(130,165,103,.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 12px 34px rgba(0,0,0,.4);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.55);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); text-size-adjust: none;
}
body {
  min-height: 100dvh; font-family: var(--font-body); font-size: var(--text-base);
  line-height: 1.65; color: var(--color-text); background: var(--color-bg);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--color-primary-soft); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--color-charcoal); color: #fff; padding: var(--space-3) var(--space-4); }
.skip:focus { left: var(--space-4); top: var(--space-4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.shell { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* ---------- primitives ---------- */
.eyebrow {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.lead { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--color-text-muted); }
.prose > p + p { margin-top: var(--space-5); }
.prose p { color: var(--color-text-muted); max-width: 72ch; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose ul { margin-top: var(--space-4); display: grid; gap: var(--space-3); padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: var(--space-6); color: var(--color-text-muted); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: 10px; height: 1px; background: var(--color-sage); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  padding: .85rem 1.6rem; border-radius: var(--radius-full);
  border: 1px solid transparent; transition: all var(--transition); white-space: nowrap;
}
.btn-solid { background: var(--color-charcoal); color: #F7F6F1; }
.btn-solid:hover { background: var(--color-primary); color: #fff; }
[data-theme="dark"] .btn-solid { background: var(--color-sage); color: #171716; }
[data-theme="dark"] .btn-solid:hover { background: var(--color-sage-pale); }
.btn-line { border-color: var(--color-border); color: var(--color-text); }
.btn-line:hover { border-color: var(--color-sage); background: var(--color-primary-soft); }
.btn-ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.arrow-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-primary);
}
.arrow-link::after { content: "→"; transition: transform var(--transition); }
.arrow-link:hover::after { transform: translateX(4px); }

.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section-tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section-alt { background: var(--color-surface-offset); }
.section-head { max-width: 70ch; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- progress + header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--color-sage); z-index: 60; transition: width 90ms linear; }

.site-header {
  position: sticky; top: 0; z-index: 55;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--color-divider); }
.header-inner { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); }
.brand-mark { height: 46px; width: auto; }
[data-theme="light"] .dark-only, [data-theme="dark"] .light-only { display: none; }

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: clamp(var(--space-3), 1.6vw, var(--space-6)); list-style: none; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text-muted); padding: var(--space-3) 0;
}
.nav > ul > li > a:hover, .nav > ul > li > a.active { color: var(--color-text); }
.nav > ul > li > a.active { position: relative; }
.nav > ul > li > a.active::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px; background: var(--color-sage); }
.chev { transition: transform var(--transition); }
.has-panel:hover .chev, .has-panel.open .chev { transform: rotate(180deg); }

.panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 360px; padding: var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.has-panel:hover .panel, .has-panel:focus-within .panel, .has-panel.open .panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.panel ul { display: grid; gap: 2px; list-style: none; }
.panel a { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.panel a:hover { background: var(--color-surface-offset); }
.panel span { display: block; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; }
.panel small { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-full); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.icon-btn:hover { color: var(--color-text); border-color: var(--color-sage); }
.menu-btn { display: none; }
.mobile-cta { display: none; }

/* ---------- home hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(90vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,20,19,.7) 0%, rgba(20,20,19,.42) 38%, rgba(20,20,19,.9) 100%),
    linear-gradient(90deg, rgba(38,38,38,.82) 0%, rgba(38,38,38,.12) 72%);
}
.hero-inner { padding-block: clamp(var(--space-20), 12vw, var(--space-32)) var(--space-12); color: #fff; }
.hero-inner .eyebrow { color: var(--color-sage-pale); }
.hero h1 { font-size: var(--text-2xl); max-width: 23ch; color: #fff; margin-bottom: var(--space-6); }
.hero-lead { font-size: var(--text-lg); color: rgba(255,255,255,.84); max-width: 56ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-10); }
.hero .btn-solid { background: var(--color-sage); color: #1A1A18; }
.hero .btn-solid:hover { background: var(--color-sage-pale); }

.hero-strip { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.18); background: rgba(20,20,19,.5); backdrop-filter: blur(6px); list-style: none; }
.hero-strip li { padding: var(--space-4) clamp(1.25rem, 5vw, 3rem); }
.hero-strip a { display: block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.hero-strip a:hover { color: #fff; }
.hero-strip li:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.14); }
.hero-strip li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
@media (min-width: 760px) {
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
  .hero-strip li { text-align: center; border-left: 1px solid rgba(255,255,255,.14); border-bottom: 0 !important; padding-block: var(--space-5); }
  .hero-strip li:first-child { border-left: 0; }
}

/* ---------- inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--color-charcoal); color: #fff; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,24,23,.92) 0%, rgba(24,24,23,.6) 65%, rgba(24,24,23,.35) 100%); }
.page-hero-inner { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.page-hero .eyebrow { color: var(--color-sage-pale); }
.page-hero h1 { font-size: var(--text-2xl); max-width: 24ch; margin-bottom: var(--space-6); }
.page-hero p { font-size: var(--text-lg); color: rgba(255,255,255,.8); max-width: 58ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-xs); color: rgba(255,255,255,.6); margin-bottom: var(--space-6); list-style: none; }
.crumbs li::after { content: "/"; margin-left: var(--space-2); color: rgba(255,255,255,.35); }
.crumbs li:last-child::after { display: none; }
.crumbs a:hover { color: #fff; }

/* ---------- proof band ---------- */
.proof { border-block: 1px solid var(--color-border); background: var(--color-surface); }
.proof-grid { display: grid; gap: 1px; background: var(--color-border); }
@media (min-width: 720px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }
.proof-grid div { background: var(--color-surface); padding: var(--space-8) clamp(1rem, 3vw, 2rem); }
.proof-grid dt { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -.02em; margin-bottom: var(--space-2); }
.proof-grid dd { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- cards grid ---------- */
.cards { display: grid; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 860px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--color-bg); padding: clamp(var(--space-8), 3.5vw, var(--space-12)); display: flex; flex-direction: column; transition: background var(--transition); }
.card:hover { background: var(--color-surface); }
.card-num { display: block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; color: var(--color-sage); margin-bottom: var(--space-6); }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.card > p { color: var(--color-text-muted); font-size: var(--text-sm); }
.card ul { margin-top: var(--space-6); display: grid; gap: var(--space-3); list-style: none; }
.card li { position: relative; padding-left: var(--space-6); font-size: var(--text-sm); }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--color-sage); }
.card .arrow-link { margin-top: var(--space-8); }
.card-foot { margin-top: auto; padding-top: var(--space-8); }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 1px solid var(--color-border); margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); }
.tab {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  padding: var(--space-3) var(--space-5); color: var(--color-text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-sage); }
.tab:hover { color: var(--color-text); }
.tab-panel[hidden] { display: none; }

/* ---------- expertise lists ---------- */
.expertise-grid { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .expertise-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .expertise-grid { grid-template-columns: repeat(3, 1fr); } }
.exp-card { padding: var(--space-6) 0 var(--space-8); border-top: 1px solid var(--color-border); }
.exp-card h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); letter-spacing: -.01em; }
.exp-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.exp-card span { display: block; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-sage); margin-bottom: var(--space-4); font-family: var(--font-display); font-weight: 600; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1px; background: var(--color-divider); list-style: none; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--color-bg); padding: var(--space-8) var(--space-6) var(--space-10) 0; }
@media (min-width: 700px) { .steps li { padding-inline: var(--space-8); } .steps li:nth-child(2n+1) { padding-left: 0; } }
@media (min-width: 1040px) { .steps li:nth-child(2n+1) { padding-left: var(--space-8); } .steps li:nth-child(3n+1) { padding-left: 0; } }
.steps span { display: block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; color: var(--color-primary); margin-bottom: var(--space-4); }
.steps h3 { font-size: var(--text-base); margin-bottom: var(--space-2); letter-spacing: -.01em; }
.steps p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--color-border); }
.acc-item { border-bottom: 1px solid var(--color-border); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-6) 0; text-align: left;
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; letter-spacing: -.01em;
}
.acc-btn:hover { color: var(--color-primary); }
.acc-btn i { flex: 0 0 auto; width: 18px; height: 18px; position: relative; }
.acc-btn i::before, .acc-btn i::after { content: ""; position: absolute; background: var(--color-sage); transition: transform var(--transition); }
.acc-btn i::before { left: 0; top: 8px; width: 18px; height: 1.5px; }
.acc-btn i::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.acc-btn[aria-expanded="true"] i::after { transform: scaleY(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { font-size: var(--text-sm); color: var(--color-text-muted); padding-bottom: var(--space-6); max-width: 78ch; }

/* ---------- case studies ---------- */
.cases { display: grid; gap: var(--space-6); }
@media (min-width: 860px) { .cases { grid-template-columns: 1fr 1fr; } }
.case {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: clamp(var(--space-6), 3vw, var(--space-10)); transition: box-shadow var(--transition), transform var(--transition);
}
.case:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-tag { display: inline-block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary); background: var(--color-primary-soft); padding: 4px 10px; border-radius: var(--radius-full); margin-bottom: var(--space-5); }
.case h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.case p { font-size: var(--text-sm); color: var(--color-text-muted); }
.case dl { margin-top: var(--space-6); display: grid; gap: var(--space-4); border-top: 1px solid var(--color-divider); padding-top: var(--space-6); }
.case dt { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 2px; }
.case dd { font-size: var(--text-sm); color: var(--color-text); }

/* ---------- insights ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); }
.chip {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em;
  padding: .5rem 1rem; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
}
.chip[aria-pressed="true"] { background: var(--color-charcoal); border-color: var(--color-charcoal); color: #F7F6F1; }
[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--color-sage); border-color: var(--color-sage); color: #171716; }
.chip:hover { border-color: var(--color-sage); }

.posts { display: grid; gap: var(--space-8); }
@media (min-width: 760px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; border-top: 1px solid var(--color-border); padding-top: var(--space-6); }
.post-meta { display: flex; gap: var(--space-3); font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-4); letter-spacing: .04em; }
.post-meta strong { color: var(--color-primary); font-weight: 600; }
.post h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.post h3 a:hover { color: var(--color-primary); }
.post p { font-size: var(--text-sm); color: var(--color-text-muted); }
.post .arrow-link { margin-top: var(--space-6); }
.post.feature { grid-column: 1 / -1; border-top-width: 2px; }
@media (min-width: 760px) { .post.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; } .post.feature h3 { font-size: var(--text-xl); } }
.post[hidden] { display: none; }

/* ---------- article ---------- */
.article { display: grid; gap: clamp(var(--space-10), 5vw, var(--space-16)); }
@media (min-width: 1000px) { .article { grid-template-columns: 220px minmax(0, 1fr); } }
.article aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: var(--text-sm); }
.article aside h2 { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.article aside ul { display: grid; gap: var(--space-3); list-style: none; }
.article aside a { color: var(--color-text-muted); }
.article aside a:hover { color: var(--color-primary); }
.article-body { max-width: 70ch; }
.article-body h2 { font-size: var(--text-xl); margin-top: var(--space-12); margin-bottom: var(--space-5); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: var(--space-5); color: var(--color-text-muted); }
.article-body p strong { color: var(--color-text); font-weight: 600; }
.article-body blockquote { margin: var(--space-10) 0; padding-left: var(--space-6); border-left: 2px solid var(--color-sage); }
.article-body blockquote p { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); font-weight: 500; margin: 0; }
.article-body ol, .article-body ul { margin: 0 0 var(--space-5) var(--space-5); display: grid; gap: var(--space-3); }
.article-body li { color: var(--color-text-muted); }

/* ---------- clients ---------- */
.section-dark { background: var(--color-charcoal); color: #F1EFE8; }
.section-dark .eyebrow { color: #A9C78E; }
.section-dark .lead, .section-dark p { color: rgba(241,239,232,.7); }
.section-dark h2, .section-dark h3 { color: #F5F3EE; }
/* anonymised client profiles */
.anon-meta {
  display: grid; gap: 1px; background: rgba(241,239,232,.14);
  border: 1px solid rgba(241,239,232,.14); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); list-style: none;
}
@media (min-width: 720px) { .anon-meta { grid-template-columns: repeat(3, 1fr); } }
.anon-meta li { background: rgba(241,239,232,.03); padding: var(--space-6) var(--space-8); }
.anon-meta strong {
  display: block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #A9C78E; margin-bottom: var(--space-2);
}
.anon-meta span { font-size: var(--text-sm); color: rgba(241,239,232,.82); }

.anon-grid { display: grid; gap: 1px; background: rgba(241,239,232,.14); border: 1px solid rgba(241,239,232,.14); border-radius: var(--radius-md); overflow: hidden; list-style: none; }
@media (min-width: 640px) { .anon-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .anon-grid { grid-template-columns: repeat(3, 1fr); } }
.anon-grid li { background: var(--color-charcoal); padding: var(--space-6) var(--space-6) var(--space-8); transition: background var(--transition); }
.anon-grid li:hover { background: #2E2E2D; }
.anon-grid dfn {
  display: block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  font-style: normal; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(241,239,232,.38); margin-bottom: var(--space-4);
}
.anon-grid h3 { font-size: var(--text-base); line-height: 1.25; color: #F5F3EE; margin-bottom: var(--space-3); }
.anon-grid p { font-size: var(--text-sm); color: rgba(241,239,232,.62) !important; }
.anon-note { margin-top: var(--space-6); font-size: var(--text-xs); color: rgba(241,239,232,.45) !important; }

.marquee { overflow: hidden; border-block: 1px solid var(--color-border); padding-block: var(--space-6); background: var(--color-surface); }
.marquee-track { display: flex; gap: var(--space-16); width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-faint); white-space: nowrap; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- testimonial ribbon ---------- */
.quote-ribbon { overflow: hidden; padding-block: var(--space-2); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.quote-track { display: flex; gap: var(--space-6); width: max-content; animation: slide 72s linear infinite; }
.quote-ribbon:hover .quote-track, .quote-ribbon:focus-within .quote-track { animation-play-state: paused; }
.quote-card {
  flex: 0 0 auto; width: min(380px, 78vw); display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-8);
}
.quote-card p {
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 500;
  line-height: 1.45; letter-spacing: -.01em; color: var(--color-text);
}
.quote-card cite {
  margin-top: auto; padding-top: var(--space-6); font-style: normal;
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary);
}
.quote-mark { display: block; width: 22px; height: 1px; background: var(--color-sage); margin-bottom: var(--space-6); }
@media (max-width: 700px) {
  .quote-ribbon { mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent); }
  .quote-track { gap: var(--space-4); animation-duration: 58s; }
  .quote-card { width: min(290px, 74vw); padding: var(--space-6); }
  .quote-card p { font-size: var(--text-sm); }
  .quote-card cite { padding-top: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  .quote-track { flex-wrap: wrap; width: auto; }
  .quote-card { width: min(380px, 100%); }
}

.pull { max-width: 32ch; margin-inline: auto; text-align: center; }
.pull p { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: inherit; max-width: none; }
.pull cite { display: block; margin-top: var(--space-5); font-size: var(--text-xs); font-style: normal; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

/* ---------- split feature ---------- */
.split { display: grid; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1.05fr .95fr; } .split.reverse > figure { order: -1; } }
.split figure img { border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.split figcaption { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-faint); }
[data-theme="dark"] .split figure img.tint { filter: invert(1) hue-rotate(180deg) saturate(1.15) brightness(.92); }
.pillars { display: grid; gap: var(--space-8); margin-top: clamp(var(--space-10), 5vw, var(--space-16)); }
@media (min-width: 620px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.pillar h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.pillar p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- founder ---------- */
.founder { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
@media (min-width: 860px) { .founder { grid-template-columns: 300px minmax(0,1fr); align-items: start; } }
.founder-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-8); text-align: center; }
.founder-card img { width: 96px; margin: 0 auto var(--space-6); }
.founder-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.founder-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.founder-card ul { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); display: grid; gap: var(--space-2); list-style: none; font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .04em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(var(--space-10), 6vw, var(--space-20)); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.contact-meta { margin-top: clamp(var(--space-8), 4vw, var(--space-12)); display: grid; gap: var(--space-5); }
.contact-meta dt { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-1); }
.contact-meta a { color: var(--color-primary); border-bottom: 1px solid var(--color-primary-soft); }
.contact-meta a:hover { border-bottom-color: var(--color-primary); }

.form { display: grid; gap: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: clamp(var(--space-6), 4vw, var(--space-10)); box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field-wide, .form > button, .form-note { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: var(--text-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-sage); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.form > button { justify-self: start; }
.form-note { font-size: var(--text-sm); color: var(--color-primary); min-height: 1.4em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--color-charcoal); color: #F5F3EE; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,24,23,.9), rgba(24,24,23,.55)); }
.cta-inner { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.2fr auto; } }
.cta-inner h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.cta-inner p { color: rgba(245,243,238,.76); max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.cta-band .btn-solid { background: var(--color-sage); color: #1A1A18; }
.cta-band .btn-solid:hover { background: var(--color-sage-pale); }

/* ---------- newsletter ---------- */
.newsletter { background: var(--color-surface-offset); border-top: 1px solid var(--color-border); }
.newsletter-inner { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 900px) { .newsletter-inner { grid-template-columns: 1.1fr .9fr; } }
.newsletter h2 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.newsletter p { font-size: var(--text-sm); color: var(--color-text-muted); }
.signup { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.signup input { flex: 1 1 220px; padding: .8rem 1rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--text-sm); }
.signup input:focus { outline: none; border-color: var(--color-sage); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.signup .form-note { flex: 1 1 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--color-charcoal); color: rgba(241,239,232,.7); border-top: 1px solid rgba(241,239,232,.12); padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8); }
.footer-top { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.1fr 1.4fr; } }
.footer-brand img { height: 44px; width: auto; margin-bottom: var(--space-5); }
.footer-brand p { font-size: var(--text-sm); max-width: 44ch; }
.footer-mail { display: inline-block; margin-top: var(--space-5); font-size: var(--text-sm); color: #A9C78E; border-bottom: 1px solid rgba(169,199,142,.35); }
.footer-mail:hover { border-bottom-color: #A9C78E; }
.footer-cols { display: grid; gap: var(--space-8); }
@media (min-width: 560px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h3 { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,239,232,.45); margin-bottom: var(--space-5); }
.footer-cols ul { display: grid; gap: var(--space-3); list-style: none; }
.footer-cols a { font-size: var(--text-sm); color: rgba(241,239,232,.75); }
.footer-cols a:hover { color: #A9C78E; }
.footer-legal { margin-top: clamp(var(--space-10), 5vw, var(--space-16)); padding-top: var(--space-6); border-top: 1px solid rgba(241,239,232,.14); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); justify-content: space-between; font-size: var(--text-xs); color: rgba(241,239,232,.5); }

.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 40;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-full);
  background: var(--color-charcoal); color: #F5F3EE; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
[data-theme="dark"] .to-top { background: var(--color-sage); color: #171716; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal:nth-child(2).in { transition-delay: .07s; }
.reveal:nth-child(3).in { transition-delay: .14s; }
.reveal:nth-child(4).in { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 1000px) {
  .menu-btn { display: grid; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) clamp(1.25rem, 5vw, 3rem) var(--space-8);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--color-divider); }
  .nav > ul > li > a { justify-content: space-between; padding-block: var(--space-4); font-size: var(--text-base); }
  .nav > ul > li > a.active::after { display: none; }
  .mobile-cta { display: block; border-bottom: 0 !important; padding-top: var(--space-6); }
  .mobile-cta .btn { width: 100%; }
  .panel {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 var(--space-4);
    display: none;
  }
  .has-panel.open .panel { display: block; transform: none; }
  .panel a { padding: var(--space-3) 0 var(--space-3) var(--space-4); border-left: 1px solid var(--color-border); border-radius: 0; }
  .panel a:hover { background: transparent; color: var(--color-primary); }
  .article aside { position: static; }
  .split figure { order: 2; }
}
