/* ===================================================================
   EMFORA GROUP — homepage stylesheet
   Institutional professional-services register.
   References: McKinsey, EY, PwC, KPMG, Accenture — dense, confident,
   substance-first. Sans-serif dominant. Serif only for statement lines.
=================================================================== */

:root {
  /* Palette — warm ivory neutrals, deep ink, single bronze accent */
  --bg:        #F6F3EC;    /* page canvas */
  --surface:   #FFFFFF;    /* cards */
  --surface-2: #EEEAE1;    /* section wash */
  --ink:       #14120E;    /* body text, deep and warm-black */
  --ink-2:     #2A2822;    /* headings */
  --muted:     #6E6B63;    /* meta, secondary */
  --muted-2:   #A9A59B;    /* faint */
  --line:      #D6D2C7;    /* dividers */
  --line-2:    #E4E0D6;    /* soft dividers */

  --accent:    #8B6A2C;    /* bronze */
  --accent-2:  #6B5220;    /* bronze hover */
  --dark:      #14120E;    /* dark sections */
  --dark-2:    #1E1B15;    /* dark surface */

  /* Type */
  --f-serif: 'Source Serif 4', 'Georgia', serif;
  --f-sans:  'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Space scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 28px; --s-7: 40px; --s-8: 44px;
  --s-9: 64px; --s-10: 80px;

  /* Layout */
  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Radius (very restrained) */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
}

[data-theme="dark"] {
  --bg:        #0F0E0B;
  --surface:   #1A1814;
  --surface-2: #17150F;
  --ink:       #E9E5DA;
  --ink-2:     #F4F0E4;
  --muted:     #8F8A7E;
  --muted-2:   #575349;
  --line:      #2B2822;
  --line-2:    #23201A;
  --accent:    #C89A47;
  --accent-2:  #E0B058;
  --dark:      #0A0906;
  --dark-2:    #12100B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: var(--s-4);
  top: var(--s-4);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ TYPOGRAPHY UTILITIES ============ */
.eyebrow, .eyebrow-dark, .eyebrow-invert {
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}
.eyebrow .rule, .eyebrow-dark .rule, .eyebrow-invert .rule {
  display: inline-block;
  width: 34px;
  height: 1.5px;
  background: var(--accent);
}
.eyebrow-invert { color: rgba(255,255,255,0.7); }
.eyebrow-invert .rule { background: var(--accent); }

.section-h {
  font-family: var(--f-sans);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin: 0;
}

.section-h-lg {
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 40;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  margin: 0 0 var(--s-5);
  max-width: 22ch;
}

.section-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.section-head { margin-bottom: var(--s-7); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--r-1);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink-2);
  color: var(--bg);
  border-color: var(--ink-2);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--ink-2);
}
.btn-outline:hover { background: var(--ink-2); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: transparent;
  padding: 14px 4px;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 8px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity .2s;
}
.btn-ghost:hover::after { opacity: 1; }

.btn-lg { padding: 18px 32px; font-size: 15px; }

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.ghost-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
[data-theme="dark"] .site-header {
  background: rgba(15, 14, 11, 0.92);
  border-bottom-color: var(--line);
}

/* Keep anchor-linked sections clear of the sticky header on jump-to-anchor */
#capabilities, #academy, #industries, #about, #contact, #subscribe {
  scroll-margin-top: 100px;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
  line-height: 0;
  transition: opacity .2s ease;
}
.wordmark:hover { opacity: 0.82; }
.wordmark .brand-logo {
  display: block;
  height: 62px;
  width: auto;
  max-width: 100%;
}
.wordmark .brand-logo--dark { display: none; }
[data-theme="dark"] .wordmark .brand-logo--light { display: none; }
[data-theme="dark"] .wordmark .brand-logo--dark { display: block; }
@media (max-width: 900px) {
  .wordmark .brand-logo { height: 48px; }
}
@media (max-width: 520px) {
  .wordmark .brand-logo { height: 42px; }
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  transition: color .2s;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.primary-nav a:hover { color: var(--ink-2); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-utility {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-utility .btn {
  padding: 9px 16px;
  font-size: 13px;
}

.region-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.region-switch button {
  background: none;
  border: 0;
  padding: 3px 6px;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
}
.region-switch button[aria-pressed="true"] {
  color: var(--ink-2);
  font-weight: 700;
}

.theme-btn {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 15px; height: 15px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--dark);
  color: #F0EBDD;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,9,6,0.88) 0%, rgba(10,9,6,0.72) 40%, rgba(10,9,6,0.15) 78%, rgba(10,9,6,0.05) 100%),
    linear-gradient(180deg, rgba(10,9,6,0.35) 0%, rgba(10,9,6,0) 30%, rgba(10,9,6,0) 60%, rgba(10,9,6,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: var(--s-10) var(--gutter);
  padding-top: 96px;
  padding-bottom: 80px;
}

.hero .eyebrow { color: rgba(240, 235, 221, 0.65); }

.hero-h {
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-6);
  max-width: 18ch;
  color: #F5F1E4;
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(240, 235, 221, 0.82);
  max-width: 52ch;
  margin: 0 0 var(--s-7);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: #F0EBDD;
  color: var(--dark);
  border-color: #F0EBDD;
}
.hero .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero .btn-ghost { color: #F0EBDD; }

/* ============ INSIGHT GRID ============ */
.insight-grid {
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--line-2);
}

.grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-7);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
}

.insight-soon {
  max-width: 640px;
  padding: var(--s-8);
  background: var(--surface);
  border: 1px solid var(--line);
}
.insight-soon .card-h { font-size: 24px; }
.insight-soon .card-dek { margin-bottom: var(--s-5); }

.card {
  background: transparent;
  display: flex;
  flex-direction: column;
}
.card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--s-5);
  position: relative;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-media img { transform: scale(1.04); }

.card-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}
.card-h {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 24;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
  transition: color .2s;
}
.card:hover .card-h { color: var(--accent-2); }
.card-dek {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 var(--s-4);
}
.card-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  margin: 0;
}

/* ============ CAPABILITIES ============ */
.capabilities {
  padding: var(--s-10) 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}
.capabilities .eyebrow-dark { color: var(--muted); }
.capabilities .eyebrow-dark .rule { background: var(--accent); }

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap {
  padding: var(--s-8) var(--s-7);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.cap-head {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-5);
}
.cap-num {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}
.cap-title {
  font-family: var(--f-sans);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  margin: 0 0 var(--s-2);
}
.cap-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-left: 6px;
}
.cap-sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.cap-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 var(--s-6);
}
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-7);
}
.cap-list li {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.cap-list li:last-child { border-bottom: 1px solid var(--line-2); }
.cap-list li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.cap-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  transition: color .2s, border-color .2s, gap .2s;
}
.cap-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 14px;
}

/* ============ INDUSTRIES ============ */
.industries {
  padding: var(--s-10) 0;
  border-bottom: 1px solid var(--line-2);
}
.industry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.industry-list li { border-bottom: 1px solid var(--line); }
.industry-list a {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  align-items: baseline;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  transition: color .2s, padding .3s;
  position: relative;
}
.industry-list a:hover {
  color: var(--accent-2);
  padding-left: var(--s-4);
}
.industry-list a::before {
  content: '→';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0;
  transition: opacity .2s, left .3s;
}
.industry-list a:hover::before { opacity: 1; left: -4px; }
.ind-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.ind-name {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 32;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ind-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============ PRINCIPLES ============ */
.principles {
  padding: var(--s-10) 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}
.p-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.p-card {
  padding: var(--s-6) var(--s-5);
  background: var(--bg);
}
.p-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 0 0 var(--s-4);
}
.p-h {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 24;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
  line-height: 1.2;
}
.p-card p:last-child {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ============ STATS ============ */
.stats {
  padding: var(--s-9) 0;
  border-bottom: 1px solid var(--line-2);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  padding: var(--s-7) var(--s-6);
  background: var(--bg);
}
.stat-n {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 60;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 var(--s-4);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.stat-l {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}
.stat-l span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
}

/* ============ CLOSER ============ */
.closer {
  background: var(--dark);
  color: #F0EBDD;
  padding: var(--s-10) 0;
}
.closer-inner { max-width: 1000px; }
.closer-h {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 60;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #F5F1E4;
  margin: 0 0 var(--s-5);
  max-width: 20ch;
}
.closer-sub {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(240, 235, 221, 0.8);
  max-width: 60ch;
  margin: 0 0 var(--s-8);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240, 235, 221, 0.12);
  border: 1px solid rgba(240, 235, 221, 0.12);
  margin-bottom: var(--s-8);
}
.office {
  padding: var(--s-6) var(--s-5);
  background: var(--dark);
}
.office-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
  font-weight: 600;
}
.office-city {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 32;
  font-size: 28px;
  font-weight: 400;
  color: #F5F1E4;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
.office-addr {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(240, 235, 221, 0.7);
  margin: 0;
}
.office-addr a { color: var(--accent-2); border-bottom: 1px solid rgba(200,154,71,0.35); }
.office-addr a:hover { color: #fff; border-bottom-color: currentColor; }

.closer .btn-primary {
  background: #F0EBDD;
  color: var(--dark);
  border-color: #F0EBDD;
}
.closer .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #0A0906;
  color: rgba(240, 235, 221, 0.7);
  padding: var(--s-9) 0 var(--s-6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(240, 235, 221, 0.1);
  margin-bottom: var(--s-6);
}
.footer-brand .mark { width: 32px; height: 32px; color: rgba(240, 235, 221, 0.85); margin-bottom: var(--s-4); }
.footer-tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(240, 235, 221, 0.75);
  max-width: 28ch;
  margin: 0;
}
.footer-note {
  font-size: 12.5px;
  color: rgba(240, 235, 221, 0.55);
  margin: var(--s-3) 0 0;
}
.footer-note a { color: inherit; }
.footer-note a:hover { color: var(--accent-2); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.footer-nav > div { display: flex; flex-direction: column; gap: var(--s-2); }
.fn-head {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 235, 221, 0.55);
  margin: 0 0 var(--s-3);
  font-weight: 700;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(240, 235, 221, 0.85);
  padding: 2px 0;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(240, 235, 221, 0.55);
}
.footer-legal { display: flex; gap: var(--s-5); }
.footer-legal a { transition: color .2s; }
.footer-legal a:hover { color: var(--accent-2); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .primary-nav { gap: 20px; }
  .primary-nav a { font-size: 13px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .cards .card:last-child .card-media { aspect-ratio: 16 / 8; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; gap: var(--s-4); }
  .header-utility > .region-switch,
  .header-utility > .theme-btn { display: none; }
  .header-utility .menu-btn { display: inline-flex; }
  .hero { min-height: 620px; }
  .hero-content { padding-top: 100px; padding-bottom: 80px; }
  .hero-media img { object-position: right center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(10,9,6,0.75) 0%, rgba(10,9,6,0.65) 40%, rgba(10,9,6,0.85) 100%);
  }
  .cards { grid-template-columns: 1fr; gap: var(--s-8); }
  .cards .card:last-child { grid-column: 1; }
  .cards .card:last-child .card-media { aspect-ratio: 4/3; }
  .cap-grid { grid-template-columns: 1fr; }
  .industry-list a { grid-template-columns: 40px 1fr; gap: var(--s-4); }
  .industry-list .ind-desc { grid-column: 2; grid-row: 2; margin-top: var(--s-2); }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); text-align: center; }
}

@media (max-width: 520px) {
  .p-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================
   INSIGHTS INDEX PAGE
   ============================================ */

/* Page head */
.ix-head {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--border);
}
.ix-title {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 60;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  max-width: 22ch;
}
.ix-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

/* Featured (flagship) */
.ix-featured {
  padding: var(--s-8) 0 var(--s-7);
}
.feat {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-8);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.feat-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.feat-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.feat:hover .feat-media img { transform: scale(1.02); }
.feat-kicker {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-5);
}
.feat-h {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 40;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
.feat-dek {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 var(--s-4);
  max-width: 58ch;
}
.feat-cta {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.feat:hover .feat-cta { color: var(--accent); border-bottom-color: var(--accent); }

/* Grid of cards */
.ix-grid {
  padding: var(--s-8) 0 var(--s-9);
}
.ix-grid-lede {
  font-size: 15px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.ix-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8) var(--s-7);
}
.ix-card {
  display: flex;
  flex-direction: column;
}
.ix-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--s-4);
}
.ix-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.ix-card:hover .ix-media img { transform: scale(1.03); }
.ix-kicker {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}
.ix-h {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 24;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.ix-dek {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 var(--s-4);
}

/* Subscribe band */
.ix-subscribe {
  background: var(--dark);
  color: #F0EBDD;
  padding: var(--s-9) 0;
}
.sub-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.sub-copy .eyebrow { color: rgba(240, 235, 221, 0.7); }
.sub-copy .eyebrow .rule { background: var(--accent); }
.sub-h {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 40;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #F6F3EC;
  margin: 0 0 var(--s-4);
  max-width: 20ch;
}
.sub-dek {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(240, 235, 221, 0.75);
  margin: 0;
  max-width: 46ch;
}
.sub-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.sub-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  background: transparent;
  color: #F6F3EC;
  border: 1px solid rgba(240, 235, 221, 0.35);
  border-radius: 0;
  padding: 14px 16px;
  font-family: var(--f-sans);
  font-size: 15px;
  transition: border-color .2s;
}
.sub-form input[type="email"]::placeholder { color: rgba(240, 235, 221, 0.45); }
.sub-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.sub-form .btn-primary {
  background: #F6F3EC;
  color: var(--dark);
  border-color: #F6F3EC;
}
.sub-form .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sub-msg {
  flex-basis: 100%;
  font-size: 13.5px;
  color: var(--accent);
  margin: var(--s-2) 0 0;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================
   LEGAL / POLICY PAGES
   ============================================ */
.legal { padding: var(--s-8) 0 var(--s-9); }
.legal .wrap { max-width: 780px; }
.legal-updated {
  font-size: 13px;
  color: var(--muted-2);
  margin: 0 0 var(--s-7);
}
.legal h2 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-2);
  margin: var(--s-8) 0 var(--s-3);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
.legal ul {
  margin: 0 0 var(--s-4);
  padding-left: 1.25em;
}
.legal li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-2); }

/* Responsive */
@media (max-width: 1000px) {
  .ix-cards { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; gap: var(--s-5); }
  .sub-inner { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 620px) {
  .ix-cards { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ══════════════════════════════════════════════════════════
   MOBILE MENU — hamburger + slide-in panel
   ══════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop, shown at ≤860px via media query above */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn:hover { background: var(--surface-2); border-color: var(--muted-2); }
.menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.menu-btn__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.menu-btn__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform .28s ease, opacity .18s ease;
  transform-origin: center;
}
/* Open state — morph to X */
body.menu-open .menu-btn__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
body.menu-open .menu-btn__bars span:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-btn__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Panel wrapper */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 6, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .28s ease;
}
body.menu-open .mobile-menu__scrim { opacity: 1; }

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: var(--s-6) var(--s-7) var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.menu-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu__eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s ease;
}
.mobile-menu__close:hover { background: var(--surface-2); }
.mobile-menu__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--s-2);
}
.mobile-menu__nav a {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink-2);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  transition: color .18s ease, padding-left .22s ease;
}
.mobile-menu__nav a:last-child { border-bottom: none; }
.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: var(--accent);
  padding-left: 6px;
  outline: none;
}
.mobile-menu__nav a[aria-current="page"] { color: var(--accent); }

.mobile-menu__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-top: auto;
}
.mobile-menu__region,
.mobile-menu__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.mobile-menu__label {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Reset region-switch look inside the panel so it doesn't inherit the header pill */
.mobile-menu .region-switch {
  padding: 0;
  border: none;
  background: transparent;
}
.mobile-menu .region-switch button {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
}
.mobile-menu .region-switch button[aria-pressed="true"] { color: var(--ink-2); font-weight: 600; }
.mobile-menu .region-switch span { color: var(--muted-2); margin: 0 4px; }
.mobile-menu .theme-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-menu .theme-btn svg { width: 18px; height: 18px; }

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 16px 20px;
  background: var(--ink-2);
  color: var(--bg);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-2);
  transition: background .18s ease, transform .18s ease;
}
.mobile-menu__cta:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
[data-theme="dark"] .mobile-menu__cta {
  background: var(--ink-2);
  color: var(--dark);
}

.mobile-menu__foot {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--f-sans);
  font-size: 12px;
  line-height: 1.5;
}
.mobile-menu__foot p { margin: 0; }
.mobile-menu__foot p + p { margin-top: 4px; }

/* Body-scroll lock when menu open */
body.menu-open { overflow: hidden; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__scrim,
  .mobile-menu__panel,
  .menu-btn__bars span {
    transition-duration: 0.01ms;
  }
}

/* ============================================
   ARTICLE PAGE (Insights detail)
   ============================================ */

.art-head {
  padding: var(--s-9) 0 var(--s-6);
}
.art-head .eyebrow { margin-bottom: var(--s-5); }
.art-back { border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.art-back:hover { color: var(--accent); border-bottom-color: var(--accent); }

.art-title {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 60;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  max-width: 24ch;
}
.art-standfirst {
  font-family: var(--f-sans);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 var(--s-7);
}

.art-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.art-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}
.art-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.art-date {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* Hero image */
.art-hero { padding: var(--s-6) 0 0; }
.art-figure { margin: 0; }
.art-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--surface);
}

/* Body */
.art-body { padding: var(--s-8) 0 var(--s-9); }
.art-wrap { max-width: 820px; }

.art-body p {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 var(--s-6);
}
.art-lede {
  font-size: 19.5px !important;
  line-height: 1.62 !important;
  color: var(--ink-2) !important;
}
.art-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(139, 106, 44, 0.32);
  transition: border-color .2s ease, color .2s ease;
}
.art-body a:hover { color: var(--accent-2); border-bottom-color: var(--accent); }
[data-theme="dark"] .art-body a { border-bottom-color: rgba(200, 154, 71, 0.38); }

.art-h2 {
  font-family: var(--f-serif);
  font-variation-settings: 'opsz' 40;
  font-size: clamp(25px, 2.4vw, 33px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: var(--s-9) 0 var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-2);
}

.art-list {
  margin: 0 0 var(--s-6);
  padding-left: var(--s-5);
}
.art-list li {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: var(--s-3);
  padding-left: var(--s-2);
}
.art-list li::marker { color: var(--accent); }

/* Pull quote */
.art-flow {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
[data-theme="dark"] .art-flow { background: var(--dark-2); border-color: var(--line); }

.art-pull {
  margin: var(--s-8) 0;
  padding: 0 0 0 var(--s-6);
  border-left: 2px solid var(--accent);
}
.art-pull p {
  font-family: var(--f-serif) !important;
  font-variation-settings: 'opsz' 40;
  font-size: clamp(21px, 2vw, 27px) !important;
  line-height: 1.36 !important;
  letter-spacing: -0.01em;
  color: var(--ink-2) !important;
  margin: 0 !important;
}

/* Table */
.art-table-wrap { margin: var(--s-7) 0 var(--s-8); }
.art-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-sans);
  background: var(--surface);
}
.art-table caption {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--s-3);
}
.art-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1.5px solid var(--ink-2);
}
.art-table td {
  font-size: 16.5px;
  color: var(--ink);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-2);
}
.art-table tbody tr:last-child td {
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.art-source {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  margin: var(--s-4) 0 var(--s-6) !important;
}

/* References */
.art-refs {
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.art-refs-h {
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-5);
}
.art-refs-list {
  margin: 0;
  padding-left: var(--s-5);
}
.art-refs-list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.art-refs-list li::marker { color: var(--muted-2); }
.art-refs-list a { color: var(--accent); }

/* Author card */
.art-author-card {
  margin-top: var(--s-9);
  padding: var(--s-7);
  background: var(--surface);
  border: 1px solid var(--line);
}
.art-author-kicker {
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin: 0 0 var(--s-4) !important;
}
.art-author-name {
  font-family: var(--f-serif) !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
  margin: 0 0 var(--s-3) !important;
}
.art-author-bio {
  font-size: 16px !important;
  line-height: 1.62 !important;
  color: var(--muted) !important;
  margin: 0 0 var(--s-5) !important;
  max-width: 62ch;
}
.art-author-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  padding-bottom: 2px;
}
.art-author-cta:hover { color: var(--accent) !important; border-bottom-color: var(--accent) !important; }

@media (max-width: 620px) {
  .art-head { padding-top: var(--s-7); }
  .art-figure img { aspect-ratio: 3 / 2; }
  .art-body p, .art-list li { font-size: 16.5px; }
  .art-lede { font-size: 18px !important; }
  .art-author-card { padding: var(--s-6) var(--s-5); }
  .art-table th, .art-table td { padding: var(--s-3) var(--s-4); }
  .art-table td { font-size: 15.5px; }
}
