/* ═══════════════════════════════════════════════════════════
   TorvexLabs — Atelier design system
   Adapted from Data-Ethica template, palette C (Atelier)
   ═══════════════════════════════════════════════════════════ */


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #EFE9DD;       /* raw linen */
  --white:  #ffffff;
  --navy:   #1B2A2F;       /* forest ink */
  --accent: #C9A24A;       /* brushed gold */
  --gold:   #C9A24A;
  --text:   #1F2A2F;
  --muted:  #586065;       /* darkened for 4.5:1 contrast on --bg (#EFE9DD) */
  --border: #DDD4C0;
  --r-hero: 22px;
  --r-card: 16px;
  --nav-h:  64px;
  --max:    1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

em { font-style: italic; color: var(--accent); font-weight: 500; }

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 16px;
}
.nav-logo-text { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.nav-logo-text small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 450; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { font-size: 12px; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 4px 6px; }
.lang-switch:hover { color: var(--accent); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn-dark   { background: var(--navy); color: white; padding: 12px 22px; }
.btn-gold   { background: var(--accent); color: var(--navy); padding: 12px 22px; font-weight: 600; }
.btn-white  { background: var(--white); color: var(--navy); padding: 13px 22px; }
.btn-outline { background: transparent; color: var(--navy); padding: 11px 22px; border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

.btn-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.btn-dark .btn-arrow { background: rgba(255,255,255,0.18); color: var(--accent); }
.btn-gold .btn-arrow { background: var(--navy); color: var(--accent); }
.btn-white .btn-arrow { background: var(--navy); color: white; }

/* ── LABEL PILL ──────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
}
.label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── HEADINGS ────────────────────────────────────────────── */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-top: 18px;
}

/* ── HERO (home) ─────────────────────────────────────────── */
.hero-wrap { padding: 12px 24px 0; }
.hero {
  border-radius: var(--r-hero);
  overflow: hidden;
  position: relative;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(15,23,27,0.78) 0%, rgba(15,23,27,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 64px 48px;
}
.hero-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,162,74,0.5);
  border-radius: 50px;
  padding: 5px 14px;
  width: fit-content;
}
.hero-main { max-width: 860px; }
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.4vw, 74px);
  font-weight: 700;
  color: white;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-headline em { color: var(--accent); font-style: italic; font-weight: 500; }
.hero-body {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.7;
  max-width: 580px;
}
.hero-bar {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  flex-wrap: wrap;
  row-gap: 16px;
}
.hero-bar-outcomes { display: flex; flex: 1; align-items: center; flex-wrap: wrap; }
.hero-bar-item {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}
.hero-bar-item:last-child { border-right: none; margin-right: 0; }
.hero-bar-cta { display: flex; gap: 12px; flex-shrink: 0; }

/* ── INNER PAGE HERO ─────────────────────────────────────── */
.page-wrap { padding: 12px 24px 0; }
.page-hero {
  border-radius: var(--r-hero);
  overflow: hidden;
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(145deg, #243741 0%, #142026 60%, #1B2A2F 100%);
}
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(20,32,38,0.55) 0%, rgba(27,42,47,0.78) 60%, rgba(27,42,47,0.92) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 56px 52px;
  max-width: 760px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  color: white;
  line-height: 1.12;
  margin: 14px 0 14px;
}
.page-hero h1 em { color: var(--accent); font-style: italic; font-weight: 500; }
.page-hero p {
  color: rgba(255,255,255,0.74);
  font-size: 15px;
  line-height: 1.75;
  max-width: 540px;
}

/* ── SECTION WRAPPER ─────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}
.section-sm { max-width: var(--max); margin: 0 auto; padding: 0 24px 64px; }
.section-header { margin-bottom: 40px; }
.section-header p.sub { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 12px; max-width: 640px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card-white { background: var(--white); border-radius: var(--r-card); padding: 32px 28px; }
.card-dark  { background: var(--navy); color: white; border-radius: var(--r-card); padding: 32px 28px; }
.card-dark h3 { color: white; }

/* ── STEPS / FEATURE GRID ────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { background: var(--white); border-radius: var(--r-card); padding: 30px 26px; }
.step-number { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 14px; }
.step-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── WORK TILES ──────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work-tile {
  display: block;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text);
  border-left: 4px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(27,42,47,0.08); }
.work-tile .work-sector { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.work-tile h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.25; }
.work-tile p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.work-tile .work-status { font-size: 12px; color: var(--muted); font-style: italic; }

/* ── CASE STUDY ARTICLE ──────────────────────────────────── */
.case-layout { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.case-meta-bar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.case-meta-bar span { background: var(--white); padding: 5px 12px; border-radius: 50px; }
.case-body h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--navy); margin: 40px 0 14px; line-height: 1.25; }
.case-body h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.case-body p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 18px; }
.case-body ul { margin: 0 0 18px 22px; }
.case-body li { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 6px; }
.case-body strong { color: var(--navy); font-weight: 600; }

.case-callout {
  background: var(--navy);
  color: white;
  border-radius: var(--r-card);
  padding: 26px 30px;
  margin: 28px 0;
}
.case-callout p { color: rgba(255,255,255,0.88); margin: 0; }
.case-callout strong { color: var(--accent); }

.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 28px; }
.stack-tag { background: var(--white); border: 1px solid var(--border); border-radius: 50px; padding: 5px 14px; font-size: 12px; color: var(--muted); }

/* ── SERVICE BLOCKS ──────────────────────────────────────── */
.service-block { background: var(--white); border-radius: var(--r-card); padding: 34px 30px; margin-bottom: 14px; }
.service-block h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.service-block p.lead { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.service-items { display: flex; flex-direction: column; gap: 8px; }
.service-item {
  font-size: 14px;
  color: var(--muted);
  padding: 9px 14px 9px 22px;
  background: var(--bg);
  border-radius: 8px;
  position: relative;
}
.service-item::before { content: '→'; position: absolute; left: 10px; color: var(--accent); font-size: 12px; }

/* ── TEAM ────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-card { background: var(--white); border-radius: var(--r-card); padding: 32px 28px; }
.team-portrait {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 14px rgba(27,42,47,0.08);
}
.team-portrait-lg {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 4px solid var(--bg);
  box-shadow: 0 6px 22px rgba(27,42,47,0.12);
}
.team-name { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.team-role { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.team-bio { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.team-links { display: flex; gap: 14px; font-size: 13px; }
.team-links a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.team-links a:hover { color: var(--accent); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--navy); margin: 14px 0 12px; }
.contact-info p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item:first-of-type { border-top: 1px solid var(--border); }
.contact-item strong { font-size: 13px; font-weight: 600; color: var(--navy); }
.contact-item a, .contact-item span { font-size: 14px; color: var(--muted); text-decoration: none; }
.contact-item a:hover { color: var(--accent); }

.contact-form-card { background: var(--white); border-radius: var(--r-card); padding: 36px; }
.contact-form-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); background: white; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-privacy { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.form-privacy a { color: var(--accent); text-decoration: none; }

/* ── INSIGHTS ────────────────────────────────────────────── */
.article-card {
  display: block;
  background: var(--white);
  border-radius: var(--r-card);
  border-left: 4px solid var(--accent);
  padding: 32px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 14px;
}
.article-card:hover { box-shadow: 0 8px 28px rgba(27,42,47,0.08); transform: translateY(-2px); }
.article-card .article-meta { font-size: 12px; color: var(--muted); margin: 8px 0 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.article-card h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.article-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.article-card .read-more { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ── CTA BLOCK ───────────────────────────────────────────── */
.cta-wrap { padding: 0 24px 0; }
.cta-block { background: var(--navy); border-radius: var(--r-hero) var(--r-hero) 0 0; padding: 76px 64px; text-align: center; }
.cta-block h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; color: white; line-height: 1.2; margin-bottom: 14px; }
.cta-block h2 em { color: var(--accent); font-style: italic; font-weight: 500; }
.cta-block p { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: white;
  padding: 56px 64px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--navy);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 16px;
}
.footer-logo-text { font-size: 14px; font-weight: 600; color: white; line-height: 1.2; }
.footer-logo-text small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.48); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.65; max-width: 280px; }
footer h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; font-family: 'Inter', sans-serif; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer ul a { text-decoration: none; color: rgba(255,255,255,0.72); font-size: 13px; transition: color 0.2s; }
footer ul a:hover { color: var(--accent); }

.footer-bottom { background: var(--navy); color: rgba(255,255,255,0.32); font-size: 12px; text-align: center; padding: 14px 24px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; margin: 0 8px; }
.footer-bottom a:hover { color: var(--accent); }

/* ── ACCESSIBILITY: IN-CONTENT LINK UNDERLINES ──────────── */
/* Links inside body text must be distinguishable without color alone       */
main p a,
.case-body p a,
.case-body li a,
.legal-wrap p a,
.legal-wrap li a,
.footer-bottom a,
.form-privacy a { text-decoration: underline; }

/* ── LEGAL ───────────────────────────────────────────────── */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-wrap h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); margin: 36px 0 12px; }
.legal-wrap h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin: 22px 0 8px; }
.legal-wrap p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 14px 18px; }
.legal-wrap ul li { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 6px; }

/* ── HAMBURGER ───────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }

/* ── UTILITIES ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 22px; }
  .steps-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 44px 40px 40px; }
  .page-hero-content { padding: 40px 36px 44px; }
  .cta-block { padding: 60px 36px; }
  footer { padding: 44px 36px 32px; gap: 32px; grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 24px; }
}

@media (max-width: 700px) {
  nav { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-right .lang-switch { font-size: 11px; }

  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    padding: 4px 20px 20px;
    gap: 0;
  }
  nav.open .nav-links li { border-bottom: 1px solid var(--border); }
  nav.open .nav-links li:last-child { border-bottom: none; }
  nav.open .nav-links a { display: block; padding: 13px 2px; font-size: 15px; color: var(--text); }
  nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .btn-dark, .btn-gold, .btn-white, .btn-outline { padding: 10px 16px; font-size: 13px; }

  .steps-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form-card { padding: 26px 22px; }

  footer { grid-template-columns: 1fr; gap: 24px; padding: 36px 22px 28px; }

  .hero-wrap, .page-wrap { padding: 8px 12px 0; }
  .hero { min-height: 52vh; }
  .hero-content { padding: 32px 22px 32px; }
  .hero-headline { font-size: clamp(32px, 9vw, 44px); }
  .hero-body { font-size: 15px; }
  .hero-bar-item { padding-right: 14px; margin-right: 14px; font-size: 13px; }

  .page-hero { min-height: auto; }
  .page-hero-content { padding: 28px 20px 32px; max-width: 100%; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 34px); }

  .section { padding: 44px 16px; }
  .section-sm { padding: 0 16px 44px; }
  .section-heading { font-size: clamp(26px, 6.5vw, 34px); }

  .cta-wrap { padding: 0 12px 0; }
  .cta-block { padding: 40px 22px; }

  .work-tile, .article-card, .card-white, .card-dark, .service-block, .team-card { padding: 24px 20px; }
  .case-layout { padding: 32px 16px 56px; }
  .case-body h2 { font-size: 22px; margin: 28px 0 12px; }
  .case-body h3 { font-size: 18px; }
  .case-body p, .case-body li { font-size: 14px; line-height: 1.7; }
  .case-callout { padding: 22px 24px; }
}

/* ── AUDIENCE FRAMES (image-backed, under "Two audiences") ─ */
.audience-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 52px;
}
.audience-block {
  position: relative;
  padding-top: 28px;
}
.audience-tab {
  position: absolute;
  top: 0;
  left: 36px;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  padding: 4px 18px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  z-index: 2;
}
.audience-block::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-card);
  pointer-events: none;
  z-index: 1;
}
.audience-frame {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--r-card) - 8px);
  margin: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--bg);
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.audience-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,47,0.30) 0%, rgba(27,42,47,0.92) 85%);
  transition: background 0.25s;
}
.audience-frame:hover::before {
  background: linear-gradient(180deg, rgba(27,42,47,0.18) 0%, rgba(27,42,47,0.88) 85%);
}
.audience-frame-content {
  position: relative;
  padding: 30px 28px 26px;
  width: 100%;
}
.audience-frame h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  color: var(--bg);
  margin-bottom: 12px;
}
.audience-frame h3 em { color: var(--accent); font-style: italic; font-weight: 500; }
.audience-frame p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(239,233,221,0.88);
  margin-bottom: 18px;
}
.audience-frame .persona-cta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.audience-frame .persona-cta::after { content: "→"; transition: transform 0.2s; }
.audience-frame:hover .persona-cta::after { transform: translateX(4px); }
@media (max-width: 820px) {
  .audience-frames { grid-template-columns: 1fr; }
  .audience-frame { min-height: 260px; }
  .audience-tab { left: 28px; }
}

/* ── HERO BODY EMPHASIS ─────────────────────────────────── */
.hero-emphasis {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--accent);
  line-height: 1.3;
  margin-top: 6px;
}

/* ── PERSONA SPLIT (TOP OF HOMEPAGE) ─────────────────────── */
.persona-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--navy);
}
.persona-card {
  padding: 56px 48px;
  color: var(--bg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 280px;
  position: relative;
  transition: background 0.25s;
}
.persona-card + .persona-card { border-left: 1px solid rgba(201,162,74,0.18); }
.persona-card:hover { background: #243639; }
.persona-card .persona-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.persona-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  color: var(--bg);
  margin-top: 14px;
  margin-bottom: 14px;
}
.persona-card h2 em { color: var(--accent); font-style: italic; font-weight: 500; }
.persona-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(239,233,221,0.78);
}
.persona-card .persona-cta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.persona-card .persona-cta::after { content: "→"; transition: transform 0.2s; }
.persona-card:hover .persona-cta::after { transform: translateX(4px); }
@media (max-width: 820px) {
  .persona-split { grid-template-columns: 1fr; }
  .persona-card { padding: 40px 28px; min-height: 0; }
  .persona-card + .persona-card { border-left: none; border-top: 1px solid rgba(201,162,74,0.18); }
}

/* ── HOMEPAGE SERVICES SPLIT (SMB / PE) ──────────────────── */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.services-track {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.services-track-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.services-track-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
}
.services-track-header .label { margin: 0; }
.services-track > p.lead-sm {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.services-track ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.services-track ul a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 4px 0;
}
.services-track ul a strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 600;
}
.services-track ul a span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.services-track ul a:hover strong { color: var(--accent); }
.services-track-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
@media (max-width: 820px) {
  .services-split { grid-template-columns: 1fr; }
}

/* ── PRIVATE EQUITY BANNER STRIP ────────────────────────── */
.pe-banner {
  background: var(--navy);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(201,162,74,0.25);
}
.pe-banner-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding: 3px 9px;
  border: 1px solid rgba(201,162,74,0.45);
  border-radius: 999px;
}
.pe-banner-text { color: rgba(239,233,221,0.85); }
.pe-banner-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pe-banner-link:hover { color: var(--bg); }
.pe-banner-link::after {
  content: "→";
  transition: transform 0.2s;
}
.pe-banner-link:hover::after { transform: translateX(3px); }
@media (max-width: 720px) {
  .pe-banner { flex-direction: column; gap: 8px; padding: 12px 18px; text-align: center; }
  .pe-banner-text { font-size: 12px; }
}

/* ── PE LANDING PAGE ────────────────────────────────────── */
.pe-hero {
  background: linear-gradient(140deg, var(--navy) 0%, #243639 100%);
  color: var(--bg);
  border-radius: var(--r-hero);
  padding: 84px 60px 76px;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}
.pe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,162,74,0.18), transparent 55%);
  pointer-events: none;
}
.pe-hero-content { position: relative; max-width: 760px; }
.pe-hero .label {
  color: var(--accent);
  background: rgba(201,162,74,0.1);
  border: 1px solid rgba(201,162,74,0.35);
  display: inline-block;
  margin-bottom: 22px;
}
.pe-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 24px;
}
.pe-hero h1 em { color: var(--accent); font-style: italic; font-weight: 500; }
.pe-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(239,233,221,0.82);
  max-width: 620px;
  margin-bottom: 32px;
}
.pe-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.pe-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.pe-pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px 28px;
}
.pe-pillar-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.pe-pillar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}
.pe-pillar p { font-size: 14px; color: var(--muted); line-height: 1.65; }
@media (max-width: 860px) {
  .pe-pillars { grid-template-columns: 1fr; }
  .pe-hero { padding: 56px 28px 52px; margin: 0 12px; }
}

.pe-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.pe-insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.pe-insight-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pe-insight-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.pe-insight-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 10px;
}
.pe-insight-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex-grow: 1; }
.pe-insight-readmore {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 16px;
}
@media (max-width: 860px) {
  .pe-insight-grid { grid-template-columns: 1fr; }
}
