/* style.css */
/* BrandingBrandz Premium Design System - Extends preview.html for interactive portals */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --red: #e31b2d; 
  --red2: #a80f1c; 
  --ink: #0d0f12; 
  --muted: #6b7078; 
  --cream: #f7f3ee; 
  --line: #e8e2dc;
  --green: #15a274; 
  --shadow: 0 28px 90px rgba(11,13,16,.14); 
  --r: 28px;
  
  /* Vibrant Logo Gradient Theme Tokens */
  --brand-grad: linear-gradient(135deg, #1a6efc, #9c27b0, #e8102e, #ff7043);
  --brand-grad-hover: linear-gradient(135deg, #0b5edd, #821c96, #c70e24, #e65100);
  
  /* Additional tokens for Admin and Portal elements */
  --bg-dark: #0c0e11;
  --bg-card: #ffffff;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

.wrap { width: min(1240px, calc(100% - 40px)); margin: auto; }
.section { padding: 96px 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--bg-dark); color: #fff; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 14px;
}

h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(52px, 6.7vw, 100px); line-height: .9; letter-spacing: -.06em; margin-bottom: 24px; }
h2 { font-size: clamp(36px, 4.5vw, 66px); line-height: .98; letter-spacing: -.045em; margin-bottom: 17px; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.7; }
.lead { font-size: 19px; max-width: 770px; }
.dark p { color: #aab1bb; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s;
}
.btn.red {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(156,39,176,.24);
  border: none;
}
.btn.red:hover {
  background: var(--brand-grad-hover);
  transform: translateY(-1px);
}
.btn.white { background: #fff; color: #111; }
.btn.outline { border-color: #d8d3ce; background: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Sticky Header & Nav */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: .25s;
}
header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 22px; font-weight: 950; text-decoration: none; }
header.scrolled .brand { color: #111; }
.brand img { height: 38px; width: auto; display: block; object-fit: contain; transition: all 0.25s ease-in-out; }
header:not(.scrolled) .brand img {
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  height: 48px;
}
header.scrolled .brand img {
  background: transparent;
  padding: 0;
  box-shadow: none;
  height: 38px;
}
.mark { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-grad); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 20px; }

/* Mega Menu Dropdowns */
nav { display: flex; gap: 24px; align-items: center; }
.nav-item { position: relative; padding: 10px 0; }
.nav-link { color: rgba(255, 255, 255, 0.8); font-size: 14px; font-weight: 700; transition: color 0.2s ease-in-out; text-decoration: none; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-link:after { content: "▾"; font-size: 10px; opacity: 0.7; }
.nav-link:hover { color: #fff; }

header.scrolled .nav-link { color: #4a5568; }
header.scrolled .nav-link:hover { color: var(--red); }

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-radius: 20px;
  padding: 24px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  min-width: 260px;
  z-index: 1000;
}
.nav-item:hover .mega-dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
header:not(.scrolled) .mega-dropdown {
  background: #0b0f19;
  border-color: #1c2026;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.mega-col { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mega-col.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  min-width: 480px;
}
.mega-col b { font-size: 12px; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.mega-col .sub-hdr { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 12px; margin-bottom: 4px; display: block; font-weight: 700; grid-column: span 2; }
.mega-col a { color: #202226; font-size: 13px; font-weight: 600; text-decoration: none; transition: color 0.15s; padding: 2px 0; }
header:not(.scrolled) .mega-col a { color: #9ea5ae; }
.mega-col a:hover { color: var(--red) !important; }

.menu { display: none; background: transparent; border: none; color: inherit; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { min-height: 100vh; position: relative; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(7,8,10,.93) 0%, rgba(7,8,10,.76) 37%, rgba(7,8,10,.32) 68%, rgba(7,8,10,.08) 100%),
    linear-gradient(0deg, rgba(5,7,9,.72), transparent 50%),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=2400&q=88') center/cover no-repeat;
}
.hero .wrap { position: relative; z-index: 2; padding: 160px 0 62px; }
.heroGrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.hero .eyebrow { color: #ffb7bf; }
.hero h1 span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 20px; color: #e5e8ec; max-width: 720px; }
.heroActions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.heroStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; margin-top: 42px; }
.heroStats b { display: block; font-size: 20px; }
.heroStats small { color: #c5cbd3; }

/* Hero Dashboard Widget */
.heroDash {
  background: rgba(255, 255, 255, .93);
  color: #111;
  padding: 20px;
  border-radius: 26px;
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.dashTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 700; }
.tag { font-size: 10px; font-weight: 900; background: #e9fbf3; color: #08744f; padding: 7px 9px; border-radius: 999px; }
.dashGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashBox { background: #f5f3f1; border-radius: 16px; padding: 15px; }
.dashBox small { color: #7a7f86; }
.dashBox strong { display: block; font-size: 27px; margin-top: 4px; }
.spark {
  height: 85px;
  border-radius: 14px;
  margin-top: 12px;
  background: 
    linear-gradient(180deg, rgba(227,27,45,.14), transparent),
    linear-gradient(135deg, transparent 0 11%, #e31b2d 12% 13%, transparent 14% 28%, #e31b2d 29% 30%, transparent 31% 44%, #e31b2d 45% 46%, transparent 47% 61%, #e31b2d 62% 63%, transparent 64% 78%, #e31b2d 79% 80%, transparent 81%);
}

/* Verticals / Industries Grid */
.verticalGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.vertical { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; cursor: pointer; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out; }
.vertical:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red); }
.verticalImg { height: 180px; }
.verticalBody { padding: 20px; }
.verticalBody p { font-size: 14px; margin-bottom: 0; }
.metric { font-size: 13px; font-weight: 900; color: var(--red); margin-bottom: 8px; }

/* Growth System */
.systemGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.photoTall { height: 620px; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.photoTall .caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(8,9,11,.75);
  color: #fff;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.steps { display: grid; gap: 13px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; border: 1px solid var(--line); padding: 17px; border-radius: 18px; background: #fff; text-decoration: none; color: inherit; transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.step-link:hover { transform: translateX(6px); border-color: var(--red); box-shadow: var(--shadow); }
.num { width: 40px; height: 40px; border-radius: 12px; background: #111; color: #fff; display: grid; place-items: center; font-weight: 900; transition: all 0.2s ease-in-out; }
.num.blue { background: #0066ff; }
.num.purple { background: #8a2be2; }
.num.pink { background: #ff007f; }
.num.orange { background: #ff6600; }

.step:hover .num.blue { box-shadow: 0 0 15px rgba(0, 102, 255, 0.4); transform: scale(1.05); }
.step:hover .num.purple { box-shadow: 0 0 15px rgba(138, 43, 226, 0.4); transform: scale(1.05); }
.step:hover .num.pink { box-shadow: 0 0 15px rgba(255, 0, 127, 0.4); transform: scale(1.05); }
.step:hover .num.orange { box-shadow: 0 0 15px rgba(255, 102, 0, 0.4); transform: scale(1.05); }

/* Channels */
.channelGrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 34px; }
.channel { border: 1px solid #272b32; background: #15181c; border-radius: 20px; padding: 22px; }
.channel b { font-size: 19px; color: #fff; }
.channel small { display: block; color: #8f97a2; margin-top: 8px; }

/* Funnel */
.funnelWrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 25px; margin-top: 42px; }
.funnelPanel { background: #15181d; border: 1px solid #292e35; border-radius: 28px; padding: 25px; color: #fff; }
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 20px; }
.fnode { background: #1f2329; border-radius: 16px; padding: 18px 10px; text-align: center; }
.fnode small { color: #8f97a3; }
.fnode strong { display: block; font-size: 20px; margin-top: 4px; color: #fff; }
.roas { border-top: 1px solid #30343c; margin-top: 22px; padding-top: 20px; display: flex; justify-content: space-between; align-items: end; }
.roas strong { font-size: 48px; color: #66d7a6; }
.funnelImg { border-radius: 28px; overflow: hidden; min-height: 420px; }

/* Case Studies Grid */
.caseGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.caseCard { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; transition: var(--shadow); }
.caseCard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.caseImg { height: 210px; }
.caseBody { padding: 20px; }
.resultRow { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #eee; font-size: 14px; }
.resultRow span { color: var(--muted); }
.resultRow b { color: var(--ink); }

/* Hospitality Specialized Section */
.hosp { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hospCard { background: #111318; color: #fff; border-radius: 30px; padding: 28px; }
.hospCard p { color: #adb4be; }
.hospMetrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.hm { background: #1d2025; border-radius: 16px; padding: 16px; }
.hm small { color: #9299a4; }
.hm strong { display: block; font-size: 28px; margin-top: 3px; color: #fff; }

/* Contact CTA Block */
.final {
  border-radius: 34px;
  padding: 58px;
  background: 
    linear-gradient(90deg, rgba(156,10,24,.96), rgba(227,27,45,.88)),
    url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=88') center/cover;
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}
.final p { color: #ffe1e5; font-size: 17px; }
.form { background: #fff; border-radius: 22px; padding: 24px; color: #111; }
input, select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d8d3ce;
  border-radius: 13px;
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus {
  border-color: var(--red);
}

/* Tools Page Directory Layout */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.tool-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: var(--shadow);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.tool-card h3 {
  margin-bottom: 12px;
}
.tool-card p {
  font-size: 15px;
  margin-bottom: 24px;
}

/* Calculator Views styling */
.calc-container {
  max-width: 900px;
  margin: 120px auto 60px;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}
.calc-head {
  background: var(--ink);
  color: #fff;
  padding: 40px;
  border-bottom: 1px solid #222;
}
.calc-head h1 {
  font-size: 38px;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.03em;
}
.calc-head p {
  color: #a0a6b0;
  margin: 0;
}
.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}
.calc-fields {
  padding: 40px;
  border-right: 1px solid var(--line);
}
.calc-output {
  padding: 40px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-out-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.calc-out-item:last-of-type {
  border-bottom: none;
}
.calc-out-item strong {
  display: block;
  font-size: 28px;
  margin-top: 4px;
  font-family: var(--font-heading);
}
.calc-out-item strong.highlight {
  color: var(--red);
  font-size: 36px;
}

/* Wizard / Score Page */
.wizard-box {
  padding: 40px;
}
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}
.wizard-progress {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  margin-bottom: 30px;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--brand-grad);
  width: 25%;
  transition: width 0.3s;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Native Dialog Style */
dialog {
  border: none;
  border-radius: 24px;
  padding: 40px;
  width: min(500px, 100% - 32px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
  margin: auto;
}
dialog h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
dialog p {
  font-size: 15px;
  margin-bottom: 24px;
}
dialog::backdrop {
  background: rgba(12, 14, 17, 0.8);
  backdrop-filter: blur(8px);
}

/* Admin Styling */
.admin-login {
  max-width: 420px;
  margin: 120px auto;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-md);
  padding: 40px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-top: 100px;
  min-height: calc(100vh - 180px);
}
.admin-nav {
  background: var(--cream);
  border-radius: 20px;
  padding: 20px;
  align-self: start;
}
.admin-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.admin-nav a:hover, .admin-nav a.active {
  background: var(--red);
  color: #fff;
}
.admin-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}
.admin-h1 {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.leads-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
}
.leads-table th {
  background: var(--cream);
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}
.leads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.badge.hot { background: #ffe3e3; color: var(--red); }
.badge.warm { background: #fff3bf; color: #d06d00; }
.badge.smb { background: #e3faf2; color: #0c8558; }

.settings-group {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.settings-group:last-child {
  border-bottom: none;
}

/* Footer */
footer { background: #0a0b0d; color: #fff; padding: 80px 0 46px; }
.footerGrid { display: grid; grid-template-columns: 1.3fr repeat(3, .8fr); gap: 30px; }
footer p, footer a { font-size: 14px; color: #9ea5ae; }
footer a { display: block; margin: 9px 0; }
footer a:hover { color: var(--red); }

@media(max-width:1050px){
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 30px 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  nav.active {
    display: flex;
  }
  nav a {
    color: var(--ink) !important;
    font-size: 16px;
    font-weight: 700;
  }
  .menu {
    display: block;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    z-index: 101;
  }
  header.scrolled .menu {
    color: var(--ink);
  }
  .heroGrid, .systemGrid, .funnelWrap, .hosp, .final, .calc-layout, .admin-layout { grid-template-columns: 1fr; }
  .verticalGrid { grid-template-columns: 1fr 1fr; }
  .channelGrid { grid-template-columns: 1fr 1fr 1fr; }
  .caseGrid, .tools-grid { grid-template-columns: 1fr 1fr; }
  .footerGrid { grid-template-columns: 1fr 1fr; }
  .calc-fields { border-right: none; border-bottom: 1px solid var(--line); }
  .admin-layout { margin-top: 110px; }
}
@media(max-width:680px) {
  .wrap { width: min(100% - 26px, 1240px); }
  .section { padding: 70px 0; }
  .hero .wrap { padding-top: 130px; }
  .hero h1 { font-size: 56px; }
  .heroStats { grid-template-columns: 1fr 1fr; }
  .verticalGrid, .caseGrid, .channelGrid, .tools-grid { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .photoTall { height: 470px; }
  .footerGrid { grid-template-columns: 1fr; }
  dialog { padding: 24px; }
  .calc-fields, .calc-output { padding: 24px; }
  .admin-content { padding: 24px; }
  
  /* Mobile Header Scale Adjustments */
  .brand { font-size: 18px; }
  .mark { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }
  .nav-cta .btn { padding: 10px 14px; font-size: 12px; }
}

/* ==========================================================================
   BBZ ADVISORY DESIGN SYSTEM v2
   Editorial layout primitives, data presentation, imagery treatments.
   ========================================================================== */

:root {
  --ink-2:      #16191f;
  --ink-3:      #1f242c;
  --paper:      #ffffff;
  --sand:       #fbf9f6;
  --line-2:     #d9d2ca;
  --amber:      #c8891a;
  --navy:       #10233f;
  --r-sm:       10px;
  --r-md:       18px;
  --r-lg:       26px;
  --shadow-sm:  0 2px 8px rgba(13,15,18,.05), 0 8px 24px rgba(13,15,18,.05);
  --shadow-md:  0 4px 14px rgba(13,15,18,.07), 0 18px 50px rgba(13,15,18,.08);
  --shadow-lg:  0 10px 30px rgba(13,15,18,.10), 0 40px 90px rgba(13,15,18,.13);
  --ease:       cubic-bezier(.22,.61,.36,1);
}

.section-tight { padding: 56px 0; }
.section-slim  { padding: 64px 0; }
.dark-panel    { background: var(--ink); color: #fff; }
.dark-panel .secTitle { color: #fff; }

/* ---------- Shared section typography ---------- */
.secTitle {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 14px;
}
.secTitle-lg { font-size: clamp(34px, 4.2vw, 54px); }
.secLede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 780px;
  margin: 0 0 44px;
}
.secNote { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.proseHead {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  color: var(--red);
  margin: 34px 0 12px;
}
.proseHead:first-child { margin-top: 0; }
.prose {
  font-size: 17px;
  line-height: 1.85;
  color: #33383f;
  margin: 0 0 22px;
}

/* ---------- Editorial two-column with sticky rail ---------- */
.editorialGrid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 64px;
  align-items: start;
}
.editorialSticky { position: sticky; top: 110px; }
.editorialBody { max-width: 760px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.pill-red   { background: var(--red); border-color: var(--red); }
.pill-ghost { background: transparent; color: rgba(255,255,255,.7); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

/* ---------- Case study hero ---------- */
.cs-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.cs-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,13,.72) 0%, rgba(8,10,13,.30) 42%, rgba(8,10,13,.92) 100%),
    linear-gradient(90deg, rgba(8,10,13,.60) 0%, rgba(8,10,13,0) 65%);
}
.cs-hero-inner { position: relative; z-index: 2; padding: 150px 0 64px; }
.cs-back {
  display: inline-block; color: rgba(255,255,255,.72); font-size: 13px;
  font-weight: 800; letter-spacing: .04em; margin-bottom: 26px; transition: color .2s var(--ease);
}
.cs-back:hover { color: #fff; }
.cs-hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.cs-hero-title {
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: .96; letter-spacing: -.05em; font-weight: 900;
  color: #fff; margin: 0 0 16px; max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.cs-hero-sub { color: rgba(255,255,255,.8); font-size: 17px; font-weight: 600; margin: 0; letter-spacing: .01em; }

/* ---------- Stat strip ---------- */
.statStrip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.statBox { background: #fff; padding: 30px 26px; }
.statBox small {
  display: block; font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 900; color: var(--muted); margin-bottom: 12px;
}
.statBox strong { display: block; font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.statBox span { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.statBox strong.up  { color: var(--green); }
.statBox strong.red { color: var(--red); }

/* ---------- Fact panel ---------- */
.factGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 44px; }
.factHead {
  font-size: 11px; text-transform: uppercase; letter-spacing: .17em; font-weight: 900;
  color: var(--red); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.factRow { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.factRow span { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.factRow b { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }

/* ---------- Pull quote ---------- */
.pullQuote { position: relative; margin: 42px 0 0; padding: 32px 34px 30px; background: var(--cream); border-left: 4px solid var(--red); border-radius: 0 var(--r-md) var(--r-md) 0; }
.pullMark { position: absolute; top: 10px; left: 24px; font-size: 58px; color: var(--red); opacity: .22; line-height: 1; font-family: Georgia, serif; }
.pullQuote p { position: relative; font-size: 17px; line-height: 1.7; font-style: italic; color: var(--ink); margin: 0 0 14px; }
.pullQuote cite { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---------- Diagnostic findings ---------- */
.findingList { display: flex; flex-direction: column; gap: 14px; }
.findingCard {
  display: grid; grid-template-columns: 60px 1fr 240px; gap: 26px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.findingCard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.findingNo { font-size: 30px; font-weight: 900; color: var(--red); letter-spacing: -.04em; line-height: 1; opacity: .3; }
.findingMain h4 { font-size: 18.5px; font-weight: 800; color: var(--ink); margin: 0 0 12px; letter-spacing: -.02em; line-height: 1.3; }
.findingEvidence { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0; }
.findingEvidence span {
  display: inline-block; font-size: 9.5px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink); background: var(--cream); padding: 3px 8px; border-radius: 4px; margin-right: 10px; vertical-align: 1px;
}
.findingImpact { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.findingImpact small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: var(--muted); margin-bottom: 8px; }
.findingImpact strong { font-size: 17px; font-weight: 900; color: var(--red); letter-spacing: -.02em; line-height: 1.3; }

/* ---------- Gallery ---------- */
.galleryGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.galleryItem { margin: 0; }
.galleryItem img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.galleryItem figcaption { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--red); }

/* ---------- Workstreams ---------- */
.wsGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(370px, 1fr)); gap: 22px; }
.wsCard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wsCard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wsHead { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.wsNo {
  flex: none; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900;
  letter-spacing: .06em; padding: 8px 12px; border-radius: 8px;
}
.wsHead h3 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 5px; line-height: 1.25; }
.wsWeeks { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.wsObjective { font-size: 15px; line-height: 1.65; color: #3b414a; margin: 0 0 20px; font-weight: 500; }
.wsActions { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.wsActions li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  font-size: 14px; line-height: 1.6; color: var(--muted);
}
.wsActions li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); opacity: .55;
}
.wsFoot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.wsFoot small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: var(--muted); margin-bottom: 5px; }
.wsFoot b { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.45; }

/* ---------- Timeline ---------- */
.timelineWrap { border-top: 1px solid rgba(255,255,255,.12); }
.tlRow {
  display: grid; grid-template-columns: 44px 220px 1fr 260px; gap: 26px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.10);
}
.tlMarker { display: flex; justify-content: center; padding-top: 5px; }
.tlMarker span { width: 13px; height: 13px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(227,27,45,.18); }
.tlPhase strong { display: block; font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 5px; letter-spacing: -.01em; }
.tlPhase span { font-size: 12.5px; font-weight: 700; color: #ff9aa4; letter-spacing: .04em; }
.tlMilestones { font-size: 14.5px; line-height: 1.7; color: #a8afba; }
.tlGate { border-left: 1px solid rgba(255,255,255,.14); padding-left: 22px; }
.tlGate small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: #6f7783; margin-bottom: 7px; }
.tlGate b { font-size: 13.5px; font-weight: 700; color: #66d7a6; line-height: 1.5; }

/* ---------- Data table ---------- */
.tableCard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; box-shadow: var(--shadow-md); }
.dataTable { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.dataTable thead tr { background: var(--ink); }
.dataTable th {
  padding: 17px 24px; text-align: left; color: #fff; font-size: 10.5px;
  font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.dataTable th.figs, .dataTable td.figs { text-align: right; font-variant-numeric: tabular-nums; }
.dataTable td { padding: 16px 24px; border-bottom: 1px solid var(--line); color: #3b414a; }
.dataTable tbody tr:last-child td { border-bottom: none; }
.dataTable tbody tr:nth-child(even) { background: #fcfaf8; }
.dataTable tbody tr:hover { background: var(--cream); }
.dataTable td.lineName { font-weight: 700; color: var(--ink); }
.dataTable td.strong { font-weight: 800; color: var(--ink); }
.dataTable td.up { color: var(--green); font-weight: 800; }
.dataTable td.down-good { color: var(--green); font-weight: 800; }

.commentaryBox {
  margin-top: 30px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--ink); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 30px 34px;
}
.commentaryBox h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; color: var(--red); margin: 0 0 14px; }
.commentaryBox p { font-size: 16px; line-height: 1.8; color: #33383f; margin: 0; }

/* ---------- Channel mix bars ---------- */
.mixBlock { margin-bottom: 30px; }
.mixLabel { font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.mixBar { display: flex; height: 62px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mixSeg { display: flex; align-items: center; justify-content: center; transition: width 1s var(--ease); min-width: 0; }
.mixSeg span { font-size: 13px; font-weight: 900; color: #fff; white-space: nowrap; letter-spacing: .02em; padding: 0 8px; }
.mix-ota { background: linear-gradient(135deg, #4a5361, #2b323c); }
.mix-direct { background: linear-gradient(135deg, var(--red), var(--red2)); }
.resultsNote { margin-top: 34px; padding: 28px 30px; background: var(--cream); border-radius: var(--r-md); }
.resultsNote h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; color: var(--red); margin: 0 0 12px; }
.resultsNote p { font-size: 15.5px; line-height: 1.78; color: #33383f; margin: 0; }

/* ---------- Risk register ---------- */
.riskGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; }
.riskCard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.riskTop { padding: 24px 26px 20px; border-bottom: 1px dashed var(--line); }
.riskBottom { padding: 22px 26px 24px; background: #fcfaf8; }
.riskBadge, .mitBadge {
  display: inline-block; font-size: 9.5px; font-weight: 900; letter-spacing: .15em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 4px; margin-bottom: 12px;
}
.riskBadge { background: #fde8ea; color: var(--red2); }
.mitBadge  { background: #e3faf2; color: #0c8558; }
.riskTop h4 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.4; letter-spacing: -.015em; }
.riskBottom p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- Interventions ---------- */
.interventionGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.interventionCard {
  display: flex; align-items: center; gap: 18px; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.interventionCard:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ivNo { font-size: 22px; font-weight: 900; color: var(--red); opacity: .4; letter-spacing: -.03em; }
.interventionCard strong { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* ---------- Testimonial ---------- */
.testimonialBlock { max-width: 900px; margin: 0 auto; text-align: center; }
.testMark { display: block; font-size: 80px; color: var(--red); line-height: .8; font-family: Georgia, serif; margin-bottom: 8px; }
.testimonialBlock blockquote {
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1.5; color: #fff;
  font-weight: 500; letter-spacing: -.02em; margin: 0 0 36px; font-style: italic;
}
.testAuthor { display: inline-flex; align-items: center; gap: 16px; }
.testAuthor img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.25); }
.testAuthor div { text-align: left; }
.testAuthor strong { display: block; font-size: 15px; font-weight: 800; color: #fff; }
.testAuthor span { font-size: 13px; color: #9299a4; }

/* ---------- Lessons ---------- */
.lessonGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; }
.lessonCard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.lessonCard span { display: block; font-size: 26px; font-weight: 900; color: var(--red); opacity: .32; letter-spacing: -.04em; margin-bottom: 14px; }
.lessonCard p { font-size: 15.5px; line-height: 1.7; color: #33383f; margin: 0; font-weight: 500; }

/* ---------- CTA panel ---------- */
.ctaPanel {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 0;
  background: var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.ctaPanelBody { padding: 58px 52px; }
.ctaPanelBody h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 18px; }
.ctaPanelBody p { font-size: 16px; line-height: 1.75; color: #9299a4; margin: 0 0 32px; }
.ctaActions { display: flex; gap: 14px; flex-wrap: wrap; }
.ctaPanelArt { position: relative; min-height: 300px; }
.ctaPanelArt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn.outline-light { color: #fff; border: 1px solid rgba(255,255,255,.28); background: transparent; }
.btn.outline-light:hover { background: rgba(255,255,255,.10); }

.disclaimerNote {
  margin: 40px auto 0; max-width: 900px; text-align: center;
  font-size: 11.5px; line-height: 1.7; color: var(--muted);
}

/* ==========================================================================
   RESOURCE / EDITORIAL PAGE PRIMITIVES
   ========================================================================== */

/* ---------- Page hero (non case-study) ---------- */
.pageHero { position: relative; overflow: hidden; background: var(--ink); }
.pageHero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .40; }
.pageHero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,.86) 0%, rgba(10,12,15,.62) 45%, rgba(10,12,15,.94) 100%);
}
.pageHero-inner { position: relative; z-index: 2; padding: 165px 0 78px; max-width: 900px; }
.pageHero h1 {
  font-size: clamp(38px, 5.6vw, 70px); line-height: 1.0; letter-spacing: -.05em;
  font-weight: 900; color: #fff; margin: 0 0 22px;
}
.pageHero p.lede { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; color: #b6bcc5; margin: 0; max-width: 720px; }
.pageHero .eyebrow { color: #ff9aa4; }
.heroMeta { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.heroMeta div small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; color: #6f7783; margin-bottom: 7px; }
.heroMeta div b { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.03em; }

/* ---------- Card grid ---------- */
.cardGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.cardGrid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.cardGrid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.eCard {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.eCard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.eCardImg { position: relative; height: 210px; overflow: hidden; flex: none; }
.eCardImg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.eCard:hover .eCardImg img { transform: scale(1.05); }
.eCardTag {
  position: absolute; left: 16px; top: 16px; background: var(--red); color: #fff;
  font-size: 9.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 5px;
}
.eCardTag.dark  { background: rgba(13,15,18,.86); backdrop-filter: blur(6px); }
.eCardTag.green { background: var(--green); }
.eCardBody { padding: 26px 26px 22px; flex: 1; display: flex; flex-direction: column; }
.eCardMeta { font-size: 10.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.eCardBody h3 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; line-height: 1.28; margin: 0 0 12px; color: var(--ink); }
.eCardBody p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0 0 20px; flex: 1; }
.eCardFoot { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.eCardFoot .readMore { font-size: 12.5px; font-weight: 900; color: var(--red); letter-spacing: .04em; }
.eCardFoot .metaSmall { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Author row ---------- */
.authorRow { display: flex; align-items: center; gap: 12px; }
.authorRow img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.authorRow strong { display: block; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.authorRow span { font-size: 11.5px; color: var(--muted); }

/* ---------- Feature / split blocks ---------- */
.splitBlock { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.splitBlock.reverse .splitArt { order: -1; }
.splitArt { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.splitArt img { width: 100%; height: 460px; object-fit: cover; display: block; }
.splitArt .artCaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 26px 20px;
  background: linear-gradient(180deg, transparent, rgba(8,10,13,.88));
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
}

/* ---------- Numbered method steps ---------- */
.methodList { counter-reset: mstep; display: flex; flex-direction: column; gap: 16px; }
.methodItem {
  counter-increment: mstep; position: relative; display: grid;
  grid-template-columns: 74px 1fr; gap: 24px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.methodItem:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.methodItem::before {
  content: counter(mstep, decimal-leading-zero);
  font-size: 34px; font-weight: 900; color: var(--red); opacity: .28; letter-spacing: -.05em; line-height: 1;
}
.methodItem h4 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 10px; letter-spacing: -.02em; }
.methodItem p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- Logo / chip wall ---------- */
.chipWall { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 19px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { border-color: var(--red); transform: translateY(-2px); }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- Accordion (FAQ / glossary) ---------- */
.acc { border-top: 1px solid var(--line); }
.accItem { border-bottom: 1px solid var(--line); }
.accHead {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 24px 4px; font-family: inherit;
  font-size: 17.5px; font-weight: 700; color: var(--ink); letter-spacing: -.015em;
  transition: color .2s var(--ease);
}
.accHead:hover { color: var(--red); }
.accIcon { flex: none; width: 24px; height: 24px; position: relative; }
.accIcon::before, .accIcon::after {
  content: ''; position: absolute; background: var(--red); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.accIcon::before { left: 0; top: 11px; width: 24px; height: 2px; }
.accIcon::after  { left: 11px; top: 0; width: 2px; height: 24px; }
.accItem.open .accIcon::after { transform: rotate(90deg); opacity: 0; }
.accBody { display: none; padding: 0 4px 28px; }
.accItem.open .accBody { display: block; }
.accBody p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 0 0 14px; }
.accBody p:last-child { margin-bottom: 0; }

/* ---------- Filter bar ---------- */
.filterBar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 40px; }
.filterBtn {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 19px; font-family: inherit; font-size: 12.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  cursor: pointer; transition: all .22s var(--ease);
}
.filterBtn:hover { border-color: var(--ink); color: var(--ink); }
.filterBtn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Stat band ---------- */
.statBand { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px; }
.statBandItem small { display: block; font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; font-weight: 900; color: var(--muted); margin-bottom: 10px; }
.statBandItem strong { display: block; font-size: clamp(34px, 4vw, 50px); font-weight: 900; letter-spacing: -.045em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.statBandItem p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.dark-panel .statBandItem strong { color: #fff; }
.dark-panel .statBandItem p, .dark-panel .statBandItem small { color: #8f97a2; }

/* ---------- Article body ---------- */
.articleBody { max-width: 740px; }
.articleBody h2 {
  font-size: clamp(25px, 2.9vw, 34px); font-weight: 900; letter-spacing: -.035em;
  color: var(--ink); margin: 52px 0 18px; line-height: 1.18;
}
.articleBody h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 36px 0 14px; }
.articleBody p { font-size: 17.5px; line-height: 1.85; color: #33383f; margin: 0 0 24px; }
.articleBody ul, .articleBody ol { margin: 0 0 26px; padding-left: 22px; }
.articleBody li { font-size: 17px; line-height: 1.8; color: #33383f; margin-bottom: 12px; }
.articleBody strong { color: var(--ink); font-weight: 700; }
.articleBody figure { margin: 40px 0; }
.articleBody figure img { width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.articleBody figcaption { font-size: 12.5px; color: var(--muted); margin-top: 13px; padding-left: 14px; border-left: 2px solid var(--red); line-height: 1.6; }
.keyTakeaway {
  background: var(--cream); border-left: 4px solid var(--red);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 28px 32px; margin: 40px 0;
}
.keyTakeaway h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; color: var(--red); margin: 0 0 14px; }
.keyTakeaway ul { margin: 0; padding-left: 20px; }
.keyTakeaway li { font-size: 15.5px; line-height: 1.72; color: #33383f; margin-bottom: 10px; }
.keyTakeaway li:last-child { margin-bottom: 0; }

/* ---------- TOC rail ---------- */
.tocRail { position: sticky; top: 110px; }
.tocRail h5 { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; color: var(--muted); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tocRail a { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); padding: 9px 0 9px 14px; border-left: 2px solid var(--line); transition: all .2s var(--ease); }
.tocRail a:hover { color: var(--ink); border-left-color: var(--red); }

/* ---------- Person cards ---------- */
.personGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.personCard { text-align: left; }
.personCard img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--r-md); margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.personCard strong { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 5px; }
.personCard span { display: block; font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 10px; }
.personCard p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Job listing ---------- */
.jobList { display: flex; flex-direction: column; gap: 14px; }
.jobRow {
  display: grid; grid-template-columns: 1fr 180px 160px 130px; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.jobRow:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.jobRow h4 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -.02em; }
.jobRow .jobDesc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.jobCell small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: var(--muted); margin-bottom: 5px; }
.jobCell b { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ---------- Glossary ---------- */
.glossaryNav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.glossaryNav a {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-weight: 900; color: var(--ink); transition: all .2s var(--ease);
}
.glossaryNav a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.glossaryNav a.empty { opacity: .3; pointer-events: none; }
.glossaryGroup { margin-bottom: 48px; scroll-margin-top: 110px; }
.glossaryLetter {
  font-size: 46px; font-weight: 900; color: var(--red); opacity: .28;
  letter-spacing: -.05em; margin: 0 0 18px; line-height: 1;
}
.glossaryItem { padding: 24px 0; border-bottom: 1px solid var(--line); }
.glossaryItem dt { font-size: 18.5px; font-weight: 800; color: var(--ink); margin-bottom: 5px; letter-spacing: -.02em; }
.glossaryItem .gTerm-abbr { font-size: 13px; font-weight: 700; color: var(--red); margin-left: 10px; }
.glossaryItem dd { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.glossaryItem .gFormula {
  display: inline-block; margin-top: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; background: var(--ink); color: #66d7a6; padding: 9px 15px; border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .editorialGrid { grid-template-columns: 1fr; gap: 34px; }
  .editorialSticky { position: static; }
  .findingCard { grid-template-columns: 44px 1fr; }
  .findingImpact { grid-column: 1 / -1; text-align: left; border-left: none; padding-left: 0; padding-top: 18px; border-top: 1px solid var(--line); }
  .tlRow { grid-template-columns: 34px 1fr; gap: 18px; }
  .tlMilestones, .tlGate { grid-column: 2; }
  .tlGate { border-left: none; padding-left: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
  .ctaPanel { grid-template-columns: 1fr; }
  .ctaPanelArt { min-height: 240px; order: -1; }
  .splitBlock { grid-template-columns: 1fr; gap: 34px; }
  .splitBlock.reverse .splitArt { order: 0; }
  .jobRow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 62px 0; }
  .cs-hero-inner { padding: 130px 0 46px; }
  .cs-hero { min-height: 440px; }
  .factRow { grid-template-columns: 1fr; gap: 5px; }
  .wsFoot { grid-template-columns: 1fr; gap: 14px; }
  .ctaPanelBody { padding: 40px 28px; }
  .statBox { padding: 24px 20px; }
  .statBox strong { font-size: 32px; }
  .jobRow { grid-template-columns: 1fr; gap: 16px; }
  .heroMeta { gap: 22px; }
  .galleryItem img { height: 200px; }
  .splitArt img { height: 300px; }
}

/* --------------------------------------------------------------------------
   Scope guard: the site chrome uses bare `header` / `footer` selectors
   (fixed positioning, dark ground). Any header/footer nested inside page
   content must not inherit that, or it detaches to the top of the viewport.
   -------------------------------------------------------------------------- */
main header, main footer,
article header, article footer,
section header, section footer {
  position: static;
  inset: auto;
  z-index: auto;
  padding: 0;
  background: none;
  color: inherit;
}
main footer a, article footer a, section footer a {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: inherit;
}

/* Editorial grid with the sticky rail on the right */
.editorialGrid.rev { grid-template-columns: 1fr minmax(260px, 360px); }
@media (max-width: 1080px) { .editorialGrid.rev { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   The global `input` rule sets width:100%, which is right for text fields and
   wrong for checkboxes and radios — it stretches the control and pushes its
   label away. Reset the ones that are not text entry.
   -------------------------------------------------------------------------- */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--red);
  cursor: pointer;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--red);
  cursor: pointer;
}

/* Calculator field spacing — direct-child selector so nested checkbox labels
   keep their own inline-flex layout. */
.calc-fields .form-group { margin-bottom: 26px; }
.calc-fields .form-group:last-child { margin-bottom: 0; }
.calc-fields .form-group > label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.calc-fields .form-group input[type="number"],
.calc-fields .form-group input[type="text"] { margin-bottom: 0; }
