/* ============================================================
   The Sarah Edwin Group — Design System
   Editorial Executive. Cream + Navy + Amber. Fraunces + Plus Jakarta Sans.
   ============================================================ */

/* ----- 1. Design tokens ----- */
:root {
  /* Color */
  --ink: #0A1F3D;
  --ink-deep: #061429;
  --amber: #C8954C;
  --amber-deep: #A37636;
  --cream: #F7F3EC;
  --cream-alt: #EFE9DC;
  --paper: #FFFFFF;
  --graphite: #2A3140;
  --slate: #5B6478;
  --rule: #D9D1BE;
  --rule-dark: #1B2C49;
  --hero-bg: #1A3A2E;
  --moss: #3F6B4E;
  --rust: #A24A2A;

  /* Typography */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Layout */
  --gutter: clamp(20px, 5vw, 80px);
  --max-w: 1280px;
  --max-prose: 720px;
  --section-y: clamp(80px, 10vw, 160px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 480ms;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-pill: 999px;
}

/* ----- 2. Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--amber-deep); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Focus ring */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- 3. Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 350;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}
h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  font-weight: 500;
}
h4 { font-size: 1.25rem; line-height: 1.45; font-weight: 500; }

p { margin: 0 0 1em; }
p.lead { font-size: 1.25rem; line-height: 1.55; color: var(--graphite); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber-deep);
  font-weight: 400;
  display: inline-block;
  margin-bottom: 1.25em;
}
.eyebrow::before { content: "— "; opacity: 0.7; }

.dark-section .eyebrow { color: var(--amber); }
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: var(--cream); }
.dark-section { color: rgba(247, 243, 236, 0.82); }
.dark-section a { color: var(--cream); }

/* ----- 4. Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }

.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4, .split-7-5, .split-5-7 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ----- 5. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--t-med) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--amber);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(200, 149, 76, 0.6);
}
.btn-primary .arrow { transition: transform var(--t-med) var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.dark-section .btn-secondary { color: var(--cream); border-color: rgba(247, 243, 236, 0.4); }
.dark-section .btn-secondary:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--amber);
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease), gap var(--t-med) var(--ease);
}
.btn-link:hover { border-bottom-color: var(--amber-deep); gap: 12px; color: var(--ink); }
.dark-section .btn-link { color: var(--cream); }

/* ----- 6. Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-med) var(--ease);
}
.site-header[data-theme="dark"] {
  background: rgba(6, 20, 41, 0.85);
  border-bottom-color: var(--rule-dark);
}
.site-header[data-theme="dark"] .logo,
.site-header[data-theme="dark"] .nav a,
.site-header[data-theme="dark"] .hamburger span { color: var(--cream); }
.site-header[data-theme="dark"] .hamburger span { background: var(--cream); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 0; /* prevents baseline gap under img */
}
.logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 240px;
}
.site-header .logo img { height: 40px; }
.site-footer .logo img { height: 44px; max-width: 280px; margin-bottom: 4px; }
@media (max-width: 560px) {
  .site-header .logo img { height: 34px; max-width: 200px; }
}
.logo:hover { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--amber);
}
.nav a:hover { color: var(--amber-deep); }
.header-cta { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--cream);
  z-index: 99;
  padding: 32px var(--gutter) 48px;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
}
.mobile-drawer[data-open="true"] { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  letter-spacing: -0.01em;
}
.mobile-drawer .btn { margin-top: 32px; }

/* ----- 7. Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero.dark {
  background: var(--hero-bg);
  color: rgba(247, 243, 236, 0.82);
}
.hero.dark h1 { color: var(--cream); }
.hero.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200, 149, 76, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(200, 149, 76, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.88 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.hero-content { max-width: 880px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 620px; margin-bottom: 40px; opacity: 0.92; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-accent-bar {
  position: absolute;
  left: 0;
  top: clamp(120px, 14vw, 200px);
  width: clamp(40px, 6vw, 80px);
  height: 1px;
  background: var(--amber);
}

/* Trust strip in hero */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  padding-top: 32px;
  border-top: 1px solid rgba(247, 243, 236, 0.15);
}
.trust-strip-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.75);
}
.trust-strip-item::before { content: "✦  "; color: var(--amber); }
.hero:not(.dark) .trust-strip { border-top-color: var(--rule); }
.hero:not(.dark) .trust-strip-item { color: var(--slate); }

/* Light hero variant for inner pages */
.hero.light { background: var(--cream); }
.hero.light .hero-inner { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 112px); }
.hero.light .lead { color: var(--graphite); }

/* ----- 8. Service cards ----- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  position: relative;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 36px; bottom: 36px;
  width: 0;
  background: var(--amber);
  transition: width var(--t-med) var(--ease);
  border-radius: 0 4px 4px 0;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -24px rgba(10, 31, 61, 0.18);
}
.service-card:hover::before { width: 3px; }
.service-card .icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--ink);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.service-card:hover .icon-ring { border-color: var(--amber); background: rgba(200, 149, 76, 0.08); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--slate); margin-bottom: 20px; font-size: 0.97rem; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 0.9rem;
  color: var(--graphite);
}
.service-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  line-height: 1.45;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 1px;
  background: var(--amber);
}
.service-card .btn-link { margin-top: auto; }

/* ----- 9. Stat strip ----- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.dark-section .stat-strip { border-color: var(--rule-dark); }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.dark-section .stat-number { color: var(--cream); }
.stat-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber-deep);
  font-weight: 600;
}
.dark-section .stat-label { color: var(--amber); }
.stat-caption {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.5;
}
.dark-section .stat-caption { color: rgba(247, 243, 236, 0.65); }

/* ----- 10. Pain-point tabs ----- */
.tabs {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--cream-alt);
}
.tab-buttons button {
  flex: 1;
  padding: 24px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  transition: all var(--t-med) var(--ease);
  text-align: left;
  position: relative;
}
.tab-buttons button:hover { color: var(--ink); }
.tab-buttons button[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--amber);
}
.tab-buttons button .tab-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--amber-deep);
  display: block;
  margin-bottom: 6px;
}
.tab-panel {
  padding: clamp(40px, 5vw, 64px);
  display: none;
}
.tab-panel[aria-hidden="false"] { display: block; animation: fadeIn var(--t-slow) var(--ease); }
.tab-panel h3 { margin-bottom: 20px; max-width: 720px; }
.tab-panel-body { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .tab-panel-body { grid-template-columns: 1fr; gap: 24px; } }
.tab-outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.tab-outcomes li {
  padding-left: 24px;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.5;
}
.tab-outcomes li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 12px; height: 1px;
  background: var(--amber);
}
.tab-panel .btn { margin-top: 32px; }
@media (max-width: 700px) {
  .tab-buttons { flex-direction: column; }
  .tab-buttons button { border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; }
  .tab-buttons button[aria-selected="true"] { border-bottom-color: var(--rule); border-left-color: var(--amber); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- 11. Feature block (split layouts) ----- */
.feature-block { padding: clamp(48px, 8vw, 120px) 0; }
.feature-block .eyebrow { margin-bottom: 16px; }
.feature-block h2 { margin-bottom: 24px; max-width: 18ch; }
.feature-block p { color: var(--graphite); max-width: 56ch; }
.feature-block ul { padding-left: 0; list-style: none; margin: 32px 0; }
.feature-block ul li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 14px;
  font-size: 1.02rem;
}
.feature-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 20px; height: 1px;
  background: var(--amber);
}
.feature-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream-alt);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual.editorial {
  background: var(--ink);
  color: var(--cream);
  padding: 48px;
  aspect-ratio: 4/5;
}
.feature-visual .pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.25;
  color: var(--cream);
  font-weight: 350;
}
.feature-visual .pull-quote::before {
  content: "“";
  font-size: 4em;
  line-height: 0.5;
  color: var(--amber);
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-display);
}
.feature-visual .quote-attrib {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.7);
  margin-top: 32px;
  display: block;
}

/* ----- 12. CTA banner ----- */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(200, 149, 76, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .container { position: relative; text-align: center; }
.cta-banner h2 { color: var(--cream); margin-bottom: 16px; }
.cta-banner p { color: rgba(247, 243, 236, 0.75); max-width: 48ch; margin: 0 auto 40px; }
.cta-banner .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner-light {
  background: var(--cream-alt);
  color: var(--ink);
}
.cta-banner-light h2 { color: var(--ink); }
.cta-banner-light p { color: var(--graphite); }
.cta-banner-light::before { background: radial-gradient(ellipse at 80% 50%, rgba(200, 149, 76, 0.25) 0%, transparent 60%); }

/* ----- 13. FAQ accordion ----- */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 28px 48px 28px 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--ink);
  font-weight: 400;
  position: relative;
  letter-spacing: -0.01em;
  transition: color var(--t-fast) var(--ease);
}
.faq-trigger::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--amber-deep);
  font-family: var(--font-body);
  font-weight: 300;
  transition: transform var(--t-med) var(--ease);
}
.faq-trigger[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-trigger:hover { color: var(--amber-deep); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease);
}
.faq-content-inner {
  padding: 0 0 28px;
  color: var(--graphite);
  max-width: 64ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ----- 14. Case + Insight cards ----- */
.case-card, .insight-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.case-card:hover, .insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  color: var(--ink);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 20px;
  display: block;
}
.case-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.case-card .outcome-metric {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 300;
}
.case-card .outcome-label {
  font-size: 0.85rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insight-card h3 { font-size: 1.2rem; margin: 12px 0 16px; line-height: 1.3; }
.insight-card .meta {
  font-size: 0.82rem;
  color: var(--slate);
  display: flex;
  gap: 12px;
}
.insight-card .meta time { color: var(--slate); }
.insight-card .meta .sep { color: var(--rule); }

/* ----- 15. Approach steps (numbered) ----- */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
@media (max-width: 900px) { .approach-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .approach-steps { grid-template-columns: 1fr; } }
.approach-step {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.dark-section .approach-step { border-top-color: var(--rule-dark); }
.approach-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -10px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  background: var(--cream);
  color: var(--amber-deep);
  padding-right: 12px;
}
.dark-section .approach-step::before { background: var(--ink-deep); }
.approach-step h4 { color: var(--ink); margin-bottom: 12px; }
.dark-section .approach-step h4 { color: var(--cream); }
.approach-step p { color: var(--slate); font-size: 0.95rem; }
.dark-section .approach-step p { color: rgba(247, 243, 236, 0.7); }

/* ----- 16. Forms ----- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row { grid-column: 1 / -1; }
.form-row.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .contact-form, .form-row.cols-2 { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--graphite);
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
  font-family: var(--font-body);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 149, 76, 0.18);
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-help { font-size: 0.82rem; color: var(--slate); }
.field-checkbox { display: flex; gap: 12px; align-items: flex-start; }
.field-checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.field-checkbox label { text-transform: none; font-size: 0.92rem; font-weight: 400; color: var(--graphite); letter-spacing: 0; }
.form-submit { margin-top: 12px; }
.form-microcopy {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 16px;
}

/* ----- 17. Footer ----- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(247, 243, 236, 0.7);
  padding: clamp(64px, 8vw, 112px) 0 32px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand .logo { color: var(--cream); margin-bottom: 24px; }
.footer-brand address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(247, 243, 236, 0.6);
}
.footer-brand a { color: rgba(247, 243, 236, 0.8); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  font-weight: 400;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(247, 243, 236, 0.72);
  font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--amber); }
.footer-amber-rule {
  display: block;
  height: 1px;
  background: var(--amber);
  width: 60px;
  margin: 24px 0 0;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(247, 243, 236, 0.5);
}
.footer-bottom a { color: rgba(247, 243, 236, 0.7); }

/* ----- 18. Breadcrumb ----- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--amber-deep); }
.breadcrumb .sep { color: var(--rule); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ----- 19. Section header (intro to a section) ----- */
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.section-head.left { margin-left: 0; margin-right: auto; text-align: left; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--graphite); font-size: 1.1rem; }

/* ----- 20. Capabilities grid (service pages) ----- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 700px) { .capabilities { grid-template-columns: 1fr; } }
.capability {
  background: var(--cream-alt);
  border-radius: var(--r-md);
  padding: 32px;
  border-left: 2px solid var(--amber);
}
.capability h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.capability p { color: var(--slate); margin: 0; font-size: 0.95rem; }

/* ----- 21. Right-rail "What you'll get" box (service hero) ----- */
.what-youll-get {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px;
}
.what-youll-get h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 400;
  margin-bottom: 20px;
}
.what-youll-get ul { list-style: none; padding: 0; margin: 0; }
.what-youll-get li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
  line-height: 1.45;
}
.what-youll-get li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ----- 22. Animations (intersection-observer-driven) ----- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ----- 23. Misc ----- */
hr.amber {
  border: 0;
  height: 1px;
  background: var(--amber);
  width: 60px;
  margin: 24px 0;
}
.text-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.muted { color: var(--slate); }
.center { text-align: center; }
.no-wrap { white-space: nowrap; }

/* ============================================================
   24. EXTENSIONS — supports services.html, contact.html, and
   the service-detail page template (it-staff-augmentation.html)
   ============================================================ */

/* ----- 24.1 Section alt (cream-alt background) ----- */
.section-alt { background: var(--cream-alt); }

/* ----- 24.2 What you'll get — right-rail box (about + service detail) ----- */
.what-youll-get {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  padding: 32px 32px 28px;
}
.what-youll-get h3,
.what-youll-get h4,
.what-youll-get .wyg-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 400;
  margin-bottom: 20px;
  display: block;
}
.what-youll-get ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.what-youll-get li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--graphite);
  font-size: 0.97rem;
  line-height: 1.5;
}
.what-youll-get li:last-child { margin-bottom: 0; }
.what-youll-get li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 1px;
  background: var(--amber);
}

/* ----- 24.3 Outcomes list (services overview + service detail) ----- */
.outcomes {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.outcomes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--graphite);
  font-size: 1.02rem;
  line-height: 1.55;
}
.outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background: var(--amber);
}

/* ----- 24.4 Pull-quote eyebrow inside .feature-visual.editorial ----- */
.feature-visual.editorial .pull-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 28px;
}

/* ----- 24.5 Standalone .btn-group (outside .cta-banner) ----- */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

/* ----- 24.6 Contact grid (form + channels) ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ----- 24.7 Contact channels (right column) ----- */
.contact-channels {
  background: var(--cream-alt);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
  position: sticky;
  top: 100px;
}
.contact-channels .channels-title {
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.channel {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.channel:first-of-type { border-top: none; padding-top: 0; }
.channel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.channel-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  border: none;
}
a.channel-value:hover { color: var(--amber-deep); }
.channel-address {
  font-style: normal;
  font-size: 1.1rem;
}
.channel-note {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
}

/* ----- 24.8 Honeypot (visually hidden, accessible to bots only) ----- */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ----- 24.9 Form status message (success / error) ----- */
.form-status {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--slate);
  min-height: 1.4em;
}
.form-status[data-state="success"] {
  color: var(--ink);
  padding: 16px 20px;
  background: rgba(200, 149, 76, 0.1);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
}
.form-status[data-state="error"] {
  color: #8a2a2a;
  padding: 16px 20px;
  background: rgba(138, 42, 42, 0.06);
  border-left: 3px solid #8a2a2a;
  border-radius: var(--r-sm);
}

/* ----- 24.10 Form submit alignment ----- */
.contact-form .form-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

/* ----- 24.11 Service detail — capabilities grid (4 up) ----- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 900px) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .capabilities { grid-template-columns: 1fr; } }
.capability {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px 24px;
}
.capability h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.capability p {
  color: var(--slate);
  font-size: 0.93rem;
  margin: 0;
}

/* ----- 24.12 Service detail — outcomes mini-blocks (3 up) ----- */
.outcome-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 32px;
}
@media (max-width: 800px) { .outcome-blocks { grid-template-columns: 1fr; } }
.outcome-block {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.outcome-block .metric {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 350;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}
.outcome-block .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 14px;
}
.outcome-block p {
  color: var(--graphite);
  font-size: 0.97rem;
  margin: 0;
}

/* ----- 24.13 Cross-sell card row (3 up) ----- */
.cross-sell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 800px) { .cross-sell { grid-template-columns: 1fr; } }
.cross-sell .service-card { min-height: 0; padding: 28px 28px 24px; }
