/* ═══════════════════════════════════════════════════════════════
   ErrandsChina — Main Stylesheet
   Design: "Trusted Intermediary" — dark cinnabar on near-black.
   Cormorant Garamond for authority, Instrument Sans for clarity.
   Red thread motif: vertical accent running left edge of page.
═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --void:      #0d0d0d;
  --void-2:    #141414;
  --void-3:    #1c1c1c;
  --red:       #c1272d;
  --red-dk:    #8e1b20;
  --red-lt:    #d94f54;
  --cream:     #f0ebe0;
  --cream-2:   #e8e1d0;
  --cream-3:   #d4ccbb;
  --ink:       #1a1108;
  --border:    rgba(240,235,224,0.1);
  --border-2:  rgba(240,235,224,0.06);
  --muted:     rgba(240,235,224,0.45);
  --thread:    3px;
  --max:       1160px;

  --display: 'Cormorant Garamond', Georgia, serif;
  --sans:    'Instrument Sans', system-ui, sans-serif;
  --cn:      'Noto Serif SC', 'STSong', serif;

  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Fixed header: space above/below menu row (increase --ec-nav-pad-y for more air) */
  --ec-nav-pad-y:       1rem;
  --ec-nav-inner-min:   4.5rem;
  --ec-header-offset:   calc(var(--ec-nav-pad-y) + var(--ec-nav-inner-min) + var(--ec-nav-pad-y));
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--ec-header-offset); font-size: 16px; }

body {
  background:  var(--void);
  color:       var(--cream);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x:  hidden;
}

/* Noise overlay */
.ec-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* Red thread */
.ec-thread {
  position: fixed; left: 48px; top: 0; bottom: 0;
  width: var(--thread); background: var(--red);
  opacity: 0.55; pointer-events: none; z-index: 100;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0; }
p  { font-size: 1rem; opacity: 0.7; line-height: 1.8; }
a  { color: inherit; text-decoration: none; }

em { font-style: italic; color: var(--red-lt); }

.ec-label {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red-lt); display: block; margin-bottom: 0.9rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.ec-container { max-width: var(--max); margin: 0 auto; padding: 0 2rem 0 5rem; }
.ec-section { padding: 5.5rem 0; }
.ec-divider  { border: none; border-top: 1px solid var(--border); }

/* ── Buttons ─────────────────────────────────────────────────── */
.ec-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.82rem 1.7rem; cursor: pointer; border: none;
  transition: background 0.16s, transform 0.12s, opacity 0.16s;
  white-space: nowrap; text-decoration: none;
}
.ec-btn-primary  { background: var(--red); color: var(--cream); }
.ec-btn-primary:hover  { background: var(--red-lt); transform: translateY(-1px); }
.ec-btn-outline  { background: transparent; color: var(--cream); border: 1px solid var(--border); opacity: 0.7; }
.ec-btn-outline:hover  { border-color: rgba(240,235,224,0.5); opacity: 1; }
.ec-btn-cream    { background: var(--cream); color: var(--ink); }
.ec-btn-cream:hover    { background: var(--cream-2); transform: translateY(-1px); }
.ec-btn-arrow::after   { content: '→'; font-size: 1rem; font-family: var(--sans); font-weight: 400; }

/* ── Reveal ─────────────────────────────────────────────────── */
.reveal      { opacity: 0; transform: translateY(20px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.visible, .reveal-left.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════ */
.ec-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: var(--ec-nav-pad-y) 0;
  min-height: var(--ec-header-offset);
  height: auto;
  box-sizing: border-box;
  background: rgba(13,13,13,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-2);
}
.ec-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--ec-nav-inner-min);
  height: auto;
  padding: 0 2rem 0 5rem;
  max-width: calc(var(--max) + 3rem); margin: 0 auto;
}
.ec-nav-logo { display: flex; align-items: baseline; gap: 0.1rem; }
.ec-logo-text { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--cream); }
.ec-logo-cn   { font-family: var(--cn); font-size: 0.72rem; color: var(--red-lt); opacity: 0.6; margin-left: 0.5rem; }

.ec-nav-links, .ec-nav-menu { display: flex; align-items: center; gap: 0; list-style: none; }
.ec-nav-menu li a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); opacity: 0.4; padding: 0.5rem 0.85rem;
  transition: opacity 0.14s; display: block;
}
.ec-nav-menu li a:hover, .ec-nav-menu li.current-menu-item a { opacity: 1; }
.ec-nav-cta { margin-left: 0.75rem; }

.ec-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.ec-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: all 0.2s; }

.ec-mobile-nav {
  display: none; position: fixed; top: var(--ec-header-offset); left: 0; right: 0;
  background: var(--void-2); border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem; flex-direction: column; gap: 0.85rem; z-index: 499;
}
.ec-mobile-nav.is-open { display: flex; }
.ec-mobile-menu { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.ec-mobile-menu li a { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; }
.ec-mobile-nav .ec-btn { margin-top: 0.5rem; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.ec-hero {
  display: grid; grid-template-columns: 1fr 400px;
  min-height: 100vh; padding-top: var(--ec-header-offset); overflow: hidden;
}
.ec-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 3.5rem 5rem 5rem; position: relative;
}
.ec-hero-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red-lt);
}
.ec-eyebrow-line { display: block; width: 2rem; height: 1px; background: var(--red); flex-shrink: 0; }
.ec-hero-title   { margin-bottom: 1.75rem; max-width: 640px; }
.ec-hero-subtitle { font-size: 1.05rem; opacity: 0.58; max-width: 500px; line-height: 1.85; margin-bottom: 2.25rem; }
.ec-hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.ec-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); max-width: 460px; }
.ec-stat { background: var(--void); padding: 1.2rem 1rem; }
.ec-stat-num { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; }
.ec-stat-label { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.3; margin-top: 0.25rem; display: block; }

/* Hero right panel */
.ec-hero-right {
  background: var(--void-2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem; position: relative; overflow: hidden;
}
.ec-hero-bg-char {
  position: absolute; bottom: -2rem; right: -1rem;
  font-family: var(--cn); font-size: 26rem; font-weight: 600;
  color: var(--red); opacity: 0.04; line-height: 1;
  pointer-events: none; user-select: none;
}
.ec-hero-panel-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-lt); opacity: 0.7; margin-bottom: 1rem; }
.ec-audience-pills { display: flex; flex-direction: column; gap: 1px; margin-bottom: 1.75rem; }
.ec-audience-pill {
  background: rgba(240,235,224,0.04); border: 1px solid var(--border);
  padding: 0.9rem 1.1rem; display: grid; grid-template-columns: 28px 1fr; gap: 0.7rem;
  align-items: start; transition: background 0.14s;
}
.ec-audience-pill:hover { background: rgba(240,235,224,0.07); }
.ec-pill-icon { font-size: 1rem; margin-top: 0.1rem; }
.ec-audience-pill strong { display: block; font-size: 0.85rem; font-weight: 600; opacity: 1; }
.ec-audience-pill span { font-size: 0.8rem; opacity: 0.5; line-height: 1.45; }
.ec-panel-cta {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream);
  display: flex; align-items: center; gap: 0.5rem; opacity: 0.35;
  transition: opacity 0.14s;
}
.ec-panel-cta::after { content: '→'; }
.ec-panel-cta:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════════════════ */
.ec-trust-bar { background: var(--red); padding: 0.85rem 0; overflow: hidden; }
.ec-trust-scroll { display: flex; gap: 2.5rem; padding: 0 5rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; animation: ec-scroll-trust 40s linear infinite; }
.ec-trust-scroll::-webkit-scrollbar { display: none; }
@keyframes ec-scroll-trust { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ec-trust-scroll:hover { animation-play-state: paused; }
.ec-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240,235,224,0.8); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════════════════ */
.ec-section-header { margin-bottom: 3rem; }
.ec-section-header h2 { margin-top: 0.25rem; }
.ec-section-lead {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.62;
  max-width: 40rem;
  margin-top: 1.15rem;
}
.ec-section-lead strong { font-weight: 600; opacity: 0.95; color: var(--cream); }
.ec-section-lead a { color: var(--red-lt); text-decoration: underline; text-decoration-color: rgba(217,79,84,0.35); }

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════════ */
.ec-how-home { background: var(--void-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ec-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 1rem; }
.ec-how-steps { display: flex; flex-direction: column; }
.ec-how-step { display: grid; grid-template-columns: 52px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.ec-how-step:last-child { border-bottom: none; }
.ec-step-num { font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--red); opacity: 0.45; line-height: 1; padding-top: 0.2rem; }
.ec-how-step h4 { margin-bottom: 0.35rem; }
.ec-how-step p { font-size: 0.88rem; margin: 0; }
.ec-how-cta-wrap { margin-top: 2rem; }

.ec-promise-box {
  background: var(--void-3); border: 1px solid var(--border);
  border-left: var(--thread) solid var(--red); padding: 2.25rem;
}
.ec-promise-box h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: 1.25rem; }
.ec-promise-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.ec-promise-box li { font-size: 0.88rem; opacity: 0.65; padding-left: 1.1rem; position: relative; line-height: 1.6; }
.ec-promise-box li::before { content: '—'; position: absolute; left: 0; color: var(--red); opacity: 0.7; }

.ec-promise-contact { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.35rem; }
.ec-contact-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-lt); opacity: 0.7; }
.ec-contact-link { font-size: 0.9rem; opacity: 0.7; transition: opacity 0.14s; }
.ec-contact-link:hover { opacity: 1; }
.ec-contact-cn { font-family: var(--cn); font-size: 0.78rem; opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════
   SERVICES PREVIEW (homepage)
═══════════════════════════════════════════════════════════════ */
.ec-services-preview-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.5px; background: var(--border); border: 1px solid var(--border);
}
.ec-svc-preview-card {
  background: var(--void); padding: 2rem 1.5rem;
  display: flex; flex-direction: column;
  transition: background 0.14s; position: relative; overflow: hidden;
}
.ec-svc-preview-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform 0.2s; transform-origin: left;
}
.ec-svc-preview-card:hover { background: var(--void-2); }
.ec-svc-preview-card:hover::after { transform: scaleX(1); }
.ec-svc-icon { font-size: 1.5rem; margin-bottom: 1.1rem; display: block; }
.ec-svc-preview-card h3 { font-family: var(--sans); font-size: 0.92rem; font-weight: 600; margin-bottom: 0.6rem; line-height: 1.3; }
.ec-svc-preview-card p { font-size: 0.8rem; flex: 1; line-height: 1.6; }
.ec-svc-more { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; color: var(--red-lt); margin-top: 1.25rem; opacity: 0.7; }

.ec-svc-request-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.ec-svc-request-grid.reveal { margin-top: 0.5rem; }
.ec-svc-request-section-h {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  padding: 1.35rem 1.5rem 0.65rem;
  background: var(--void-2);
  border-bottom: 1px solid var(--border);
}
.ec-svc-request-section-h:first-child { padding-top: 1rem; }
.ec-svc-request-card {
  text-decoration: none;
  color: inherit;
}
.ec-svc-request-card .ec-svc-request-group {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-lt);
  opacity: 0.8;
  margin: -0.35rem 0 0.5rem;
  display: block;
}
.ec-svc-request-card .ec-svc-icon { margin-bottom: 0.85rem; }
.ec-home-svc-foot { margin-top: 2rem; text-align: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.ec-home-pillars .ec-section-header { margin-bottom: 0.25rem; }

.ec-home-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.ec-home-pillar-card {
  background: var(--void);
  padding: 1.85rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.ec-home-pillar-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform 0.2s; transform-origin: left;
}
.ec-home-pillar-card:hover { background: var(--void-2); }
.ec-home-pillar-card:hover::after { transform: scaleX(1); }
.ec-home-pillar-card h3 {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}
.ec-home-pillar-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex-shrink: 0;
}
.ec-home-pillar-examples-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-lt);
  opacity: 0.75;
  margin: 0 0 0.45rem;
}
.ec-home-pillar-card ul {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.74rem;
  line-height: 1.45;
  opacity: 0.82;
}
.ec-home-pillar-card li { padding-left: 0.85rem; position: relative; }
.ec-home-pillar-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--red-lt);
  opacity: 0.85;
}
.ec-home-pillar-more {
  margin-top: auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red-lt);
  opacity: 0.85;
  align-self: flex-start;
  text-decoration: none;
  transition: opacity 0.14s;
}
.ec-home-pillar-more:hover { opacity: 1; }

.ec-svc-capabilities-intro { padding-bottom: 0; }
.ec-svc-capabilities-intro + .ec-svc-category { padding-top: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   AUDIENCE
═══════════════════════════════════════════════════════════════ */
.ec-audience-section { background: var(--void-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ec-audience-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); margin-top: 2.5rem; }
.ec-audience-card { background: var(--void-2); padding: 2.25rem 1.6rem; position: relative; }
.ec-audience-card::before { content: ''; position: absolute; top: 0; left: 0; width: var(--thread); height: 100%; background: var(--red); opacity: 0; transition: opacity 0.2s; }
.ec-audience-card:hover::before { opacity: 1; }
.ec-audience-num { font-family: var(--display); font-size: 2.8rem; font-weight: 600; color: var(--red); opacity: 0.12; line-height: 1; margin-bottom: 1.1rem; }
.ec-audience-card h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.ec-audience-card p { font-size: 0.84rem; line-height: 1.65; }
.ec-audience-examples { font-size: 0.75rem; opacity: 0.35; font-style: italic; margin-top: 1rem !important; }

/* ═══════════════════════════════════════════════════════════════
   ABOUT TEASER / ABOUT PAGE
═══════════════════════════════════════════════════════════════ */
.ec-about-teaser-grid { display: grid; grid-template-columns: 360px 1fr; gap: 5rem; align-items: center; }
.ec-portrait-placeholder {
  background: var(--void-3); border: 1px solid var(--border);
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ec-portrait-placeholder > span { font-family: var(--cn); font-size: 8rem; opacity: 0.06; color: var(--red); }
.ec-founder-portrait--has-photo > span[aria-hidden="true"] { display: none; }
.ec-founder-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ec-portrait-large { max-height: 520px; }
.ec-portrait-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(13,13,13,0.92)); padding: 2rem 1.5rem 1.5rem; }
.ec-portrait-caption strong { font-family: var(--display); font-size: 1.3rem; display: block; }
.ec-portrait-caption span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-lt); opacity: 0.75; display: block; margin-top: 0.2rem; }

.ec-about-teaser-right h2 { margin: 0.5rem 0 1.25rem; }
.ec-about-teaser-right p  { margin-bottom: 1rem; }

.ec-about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 5rem; align-items: start; }
.ec-credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--border); border: 1px solid var(--border); margin-top: 0.75rem; }
.ec-cred { background: var(--void); padding: 1rem 1.1rem; }
.ec-cred-val { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--red-lt); line-height: 1; }
.ec-cred-label { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.3; display: block; margin-top: 0.2rem; }

.ec-about-body h2 { margin: 2rem 0 0.9rem; font-size: 1.5rem; }
.ec-about-body h2:first-child { margin-top: 0; }
.ec-about-body p { margin-bottom: 0.9rem; }
.ec-about-skills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.75rem; }
.ec-skill-tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.35rem 0.8rem; border: 1px solid var(--border); opacity: 0.45; }
.ec-about-cta-row { margin-top: 2rem; max-width: 100%; }
.ec-about-cta-row .ec-cta-actions { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   SERVICES PAGE
═══════════════════════════════════════════════════════════════ */
.ec-svc-category { }
.ec-svc-alt { background: var(--void-2); }
.ec-svc-cat-header { display: grid; grid-template-columns: 64px 1fr; gap: 1.5rem; align-items: start; margin-bottom: 2.5rem; }
.ec-svc-cat-icon { font-size: 2rem; padding-top: 0.5rem; }
.ec-svc-cat-header h2 { font-size: 2rem; margin-bottom: 0.6rem; }
.ec-svc-cat-header p { font-size: 0.92rem; max-width: 540px; }
.ec-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); }
.ec-svc-card { background: var(--void); padding: 1.75rem; position: relative; transition: background 0.14s; }
.ec-svc-alt .ec-svc-card { background: var(--void-2); }
.ec-svc-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.2s; transform-origin: left; }
.ec-svc-card:hover { background: var(--void-3); }
.ec-svc-card:hover::after { transform: scaleX(1); }
.ec-svc-card-icon { font-size: 1.4rem; display: block; margin-bottom: 1rem; }
.ec-svc-card h4 { margin-bottom: 0.45rem; }
.ec-svc-card p { font-size: 0.84rem; line-height: 1.65; }
.ec-svc-cat-cta { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════
   REQUEST FORM
═══════════════════════════════════════════════════════════════ */
.ec-request-grid { display: grid; grid-template-columns: 1fr 480px; gap: 5rem; align-items: start; }
.ec-request-intro { font-size: 1.05rem; opacity: 0.65; margin-bottom: 2rem; line-height: 1.8; }
.ec-promises { display: flex; flex-direction: column; gap: 0; }
.ec-promise { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.ec-promise:last-child { border-bottom: none; }
.ec-promise-icon { font-size: 1.1rem; min-width: 1.5rem; }
.ec-promise strong { display: block; font-size: 0.88rem; margin-bottom: 0.2rem; opacity: 1; }
.ec-promise span { font-size: 0.8rem; opacity: 0.45; }
.ec-direct-channels { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; }
.ec-direct-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-lt); opacity: 0.7; }
.ec-direct-link { font-size: 0.88rem; opacity: 0.55; transition: opacity 0.14s; }
.ec-direct-link:hover { opacity: 1; }

.ec-request-form-wrap { background: var(--void-3); border: 1px solid var(--border); border-left: var(--thread) solid var(--red); padding: 2.5rem; }
.ec-form-header { margin-bottom: 2rem; }
.ec-form-header h2 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.ec-form-cn { font-family: var(--cn); font-size: 0.78rem; opacity: 0.28; display: block; }

.ec-field { margin-bottom: 1.1rem; }
.ec-field-label { font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.38; display: block; margin-bottom: 0.4rem; }
.ec-req { color: var(--red-lt); }
.ec-input, .ec-select, .ec-textarea {
  width: 100%; background: rgba(240,235,224,0.05); border: 1px solid var(--border);
  color: var(--cream); font-family: var(--sans); font-size: 0.9rem; padding: 0.68rem 0.9rem;
  outline: none; transition: border-color 0.14s; -webkit-appearance: none; border-radius: 0;
}
.ec-input:focus, .ec-select:focus, .ec-textarea:focus { border-color: rgba(193,39,45,0.6); }
.ec-input::placeholder { opacity: 0.22; }
.ec-select { cursor: pointer; }
.ec-select option { background: var(--void-2); }
.ec-textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.ec-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.1rem; }
.ec-form-row-2 .ec-field { margin-bottom: 0; }

.ec-urgency-group { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.ec-urgency-btn {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.42rem 0.9rem; border: 1px solid var(--border); background: none; color: var(--cream);
  opacity: 0.38; cursor: pointer; transition: all 0.14s;
}
.ec-urgency-btn.selected, .ec-urgency-btn:hover { background: var(--red); border-color: var(--red); opacity: 1; }

.ec-submit-btn { width: 100%; justify-content: center; margin-top: 0.75rem; }
.ec-spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: ec-spin 0.7s linear infinite; }
@keyframes ec-spin { to { transform: rotate(360deg); } }
.ec-form-footnote { font-size: 0.68rem; opacity: 0.28; text-align: center; margin-top: 0.6rem; display: block; }

.ec-form-success { text-align: center; padding: 3rem 2rem; }
.ec-success-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: var(--red-lt); }
.ec-form-success h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.ec-form-success p { font-size: 0.9rem; opacity: 0.6; margin-bottom: 0.5rem; }
.ec-success-direct { font-size: 0.82rem !important; }
.ec-success-direct a { color: var(--red-lt); }

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS PAGE
═══════════════════════════════════════════════════════════════ */
.ec-hiw-grid { display: grid; grid-template-columns: 1fr 480px; gap: 5rem; }
.ec-hiw-steps { display: flex; flex-direction: column; }
.ec-hiw-step { display: grid; grid-template-columns: 60px 1fr; gap: 1.5rem; padding: 2.25rem 0; border-bottom: 1px solid var(--border); }
.ec-hiw-step:last-child { border-bottom: none; }
.ec-hiw-step-num { font-family: var(--display); font-size: 2.5rem; font-weight: 600; color: var(--red); opacity: 0.4; line-height: 1; padding-top: 0.25rem; }
.ec-hiw-step-body h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 0.6rem; }
.ec-hiw-step-body p { font-size: 0.9rem; }

.ec-hiw-aside { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 96px; }
.ec-hiw-faq { background: var(--void-3); border: 1px solid var(--border); padding: 2rem; }
.ec-hiw-faq h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 1.25rem; }
.ec-faq-item { border-bottom: 1px solid var(--border); }
.ec-faq-item:last-child { border-bottom: none; }
.ec-faq-item summary { font-size: 0.88rem; font-weight: 600; padding: 0.9rem 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; opacity: 0.8; }
.ec-faq-item summary::after { content: '+'; color: var(--red-lt); flex-shrink: 0; }
.ec-faq-item[open] summary::after { content: '−'; }
.ec-faq-item p { font-size: 0.84rem; opacity: 0.55; padding-bottom: 0.9rem; line-height: 1.65; }
.ec-hiw-cta-box { display: flex; flex-direction: column; gap: 0.65rem; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.ec-contact-channels { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); }
.ec-channel-card { background: var(--void); padding: 2rem; display: flex; align-items: flex-start; gap: 1.25rem; transition: background 0.14s; color: var(--cream); text-decoration: none; }
.ec-channel-card:hover { background: var(--void-2); }
.ec-channel-icon { font-size: 1.4rem; min-width: 2rem; }
.ec-channel-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-lt); opacity: 0.75; display: block; margin-bottom: 0.25rem; }
.ec-channel-val { font-size: 0.95rem; opacity: 0.8; display: block; }
.ec-channel-note { font-size: 0.72rem; opacity: 0.3; display: block; margin-top: 0.2rem; }
.ec-contact-cta-wrap { margin-top: 3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.ec-contact-cta-wrap p { font-size: 1rem; opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO
═══════════════════════════════════════════════════════════════ */
.ec-page-hero {
  padding: 5.5rem 0 2.75rem;
  margin-top: var(--ec-header-offset);
}
.ec-page-hero-dark { background: var(--void-2); border-bottom: 1px solid var(--border); }
/* Tighter than global h1 — page heroes felt oversized and visually empty */
.ec-page-hero h1 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 16em;
}
.ec-hero-sub {
  font-size: 0.95rem;
  opacity: 0.55;
  max-width: 36rem;
  margin-top: 0.85rem;
  line-height: 1.75;
}
.ec-hero-sub a { color: var(--red-lt); text-decoration: underline; text-decoration-color: rgba(217,79,84,0.35); }

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════════ */
.ec-cta-banner { background: var(--void-2); border-top: 1px solid var(--border); padding: 4rem 0; }
.ec-cta-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; flex-wrap: wrap; }
.ec-cta-banner-inner h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: 0.5rem; }
.ec-cta-banner-inner p { font-size: 0.92rem; opacity: 0.55; }
.ec-cta-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
/* Equal-width actions: grid is more reliable than flex when mixing <a> and <button> (inline-flex). */
.ec-cta-actions:not(.ec-cta-actions--stack) {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  overflow-x: visible;
}
.ec-cta-actions .ec-btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.58rem 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  gap: 0.35rem;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}
.ec-cta-actions:not(.ec-cta-actions--stack) .ec-btn {
  flex: unset;
  min-height: 2.85rem;
  align-items: center;
}
.ec-cta-actions .ec-btn-arrow::after {
  font-size: 0.85rem;
}

.ec-contact-dialog { padding: 0; border: none; border-radius: 2px; max-width: min(26rem, calc(100vw - 2rem)); background: transparent; }
.ec-contact-dialog::backdrop { background: rgba(8, 8, 10, 0.72); }
.ec-contact-dialog-box {
  position: relative;
  background: var(--void-3);
  border: 1px solid var(--border);
  border-left: var(--thread) solid var(--red);
  padding: 2rem 2.25rem 1.75rem;
  color: var(--cream);
}
.ec-contact-dialog-title { font-family: var(--display); font-size: 1.35rem; font-weight: 600; margin: 0 0 1rem; }
.ec-contact-dialog-lead { font-size: 0.92rem; line-height: 1.65; opacity: 0.88; margin: 0 0 1.1rem; }
.ec-contact-dialog-id { margin: 0 0 1rem; line-height: 1.5; }
.ec-contact-dialog-id strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; margin-top: 0.35rem; color: var(--cream); }
.ec-contact-dialog-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-lt);
  opacity: 0.9;
}
.ec-contact-dialog-hint { font-size: 0.78rem; line-height: 1.55; opacity: 0.5; margin: 0; }
.ec-contact-dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--cream);
  opacity: 0.45;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-contact-dialog-close::before { content: '×'; }
.ec-contact-dialog-close:hover { opacity: 0.9; }

.ec-cta-aside-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.45rem; line-height: 1.3; }
.ec-cta-aside-intro { font-size: 0.82rem; opacity: 0.55; line-height: 1.55; margin: 0 0 1rem; }
.ec-cta-actions--stack {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: visible;
}
.ec-cta-actions--stack .ec-btn { width: 100%; justify-content: center; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.ec-footer { background: var(--void-2); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.ec-footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; max-width: calc(var(--max) + 3rem); margin: 0 auto; padding: 0 2rem 2.5rem 5rem; }
.ec-footer-logo { font-family: var(--display); font-size: 1.2rem; font-weight: 600; display: block; margin-bottom: 0.25rem; }
.ec-footer-cn { font-family: var(--cn); font-size: 0.75rem; opacity: 0.25; display: block; margin-bottom: 0.75rem; }
.ec-footer-tagline { font-size: 0.82rem; opacity: 0.3; line-height: 1.65; max-width: 220px; }
.ec-footer-contact-quick { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.ec-footer-contact-item { display: flex; flex-direction: column; gap: 0.1rem; text-decoration: none; color: var(--cream); }
.ec-footer-contact-label { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-lt); opacity: 0.6; }
.ec-footer-contact-item span:last-child { font-size: 0.82rem; opacity: 0.45; }
.ec-footer-col-title { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.28; margin-bottom: 0.9rem; display: block; }
.ec-footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.ec-footer-links a { font-size: 0.82rem; opacity: 0.38; transition: opacity 0.14s; }
.ec-footer-links a:hover { opacity: 0.75; }
.ec-footer-badge { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1.25rem; }
.ec-footer-badge span { font-size: 0.72rem; opacity: 0.28; }
.ec-footer-bottom { border-top: 1px solid var(--border-2); padding: 1.5rem 2rem 0 5rem; display: flex; justify-content: space-between; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.18; flex-wrap: wrap; gap: 0.5rem; max-width: calc(var(--max) + 3rem); margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════
   BLOG / PROSE
═══════════════════════════════════════════════════════════════ */
.ec-page-wrap { padding: 7rem 0 5rem; }
.ec-page-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.ec-page-header h1 { margin-top: 0.5rem; }
.ec-prose h2, .ec-prose h3 { margin: 2rem 0 0.75rem; }
.ec-prose p { margin-bottom: 1rem; }
.ec-prose a { color: var(--red-lt); text-decoration: underline; text-decoration-color: rgba(217,79,84,0.35); }
.ec-prose ul, .ec-prose ol { padding-left: 1.5rem; margin-bottom: 1rem; opacity: 0.7; }
.ec-prose li { margin-bottom: 0.4rem; font-size: 1rem; line-height: 1.75; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  body > .ec-thread { left: 24px; }
  .ec-container { padding: 0 2rem 0 3.5rem; }
  .ec-nav-inner { padding: 0 2rem 0 3.5rem; }
  .ec-footer-inner, .ec-footer-bottom { padding-left: 3.5rem; }
  .ec-hero { grid-template-columns: 1fr; }
  .ec-hero-right { display: none; }
  .ec-hero-left { padding: 4.5rem 2rem 3.5rem 3.5rem; }
  .ec-services-preview-grid { grid-template-columns: repeat(3,1fr); }
  .ec-svc-request-grid { grid-template-columns: repeat(3, 1fr); }
  .ec-home-pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .ec-audience-grid { grid-template-columns: 1fr 1fr; }
  .ec-about-teaser-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ec-about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ec-request-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .ec-thread { display: none; }
  .ec-container { padding: 0 1.25rem; }
  .ec-nav-inner { padding: 0 1.25rem; }
  .ec-nav-links { display: none; }
  .ec-nav-cta { display: none; }
  .ec-hamburger { display: flex; }
  .ec-trust-scroll { padding: 0 1.25rem; }
  .ec-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 0 1.25rem 2rem; }
  .ec-footer-bottom { padding: 1.5rem 1.25rem 0; }
  .ec-section { padding: 3.5rem 0; }
  .ec-page-hero { padding: 3.75rem 0 2rem; }
  .ec-hero-left { padding: 3rem 1.25rem 2.5rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }
  .ec-how-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ec-hiw-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ec-hiw-aside { position: static; }
  .ec-services-preview-grid { grid-template-columns: 1fr 1fr; }
  .ec-svc-request-grid { grid-template-columns: 1fr 1fr; }
  .ec-home-pillars-grid { grid-template-columns: 1fr 1fr; }
  .ec-audience-grid { grid-template-columns: 1fr; }
  .ec-request-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ec-contact-channels { grid-template-columns: 1fr; }
  .ec-cta-banner-inner { flex-direction: column; gap: 2rem; }
  .ec-cta-actions:not(.ec-cta-actions--stack) {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .ec-form-row-2 { grid-template-columns: 1fr; }
  .ec-svc-cat-header { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ec-services-preview-grid { grid-template-columns: 1fr; }
  .ec-svc-request-grid { grid-template-columns: 1fr; }
  .ec-home-pillars-grid { grid-template-columns: 1fr; }
  .ec-svc-grid { grid-template-columns: 1fr; }
  .ec-hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .ec-footer-inner { grid-template-columns: 1fr; }
}

/* ── CMS / block editor output on marketing pages ─────────────────────────── */
.ec-cms-content .alignwide {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.ec-cms-content .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.ec-providers-page .ec-pi-form-wrap {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem 4rem 5rem;
}
@media (max-width: 768px) {
  .ec-providers-page .ec-pi-form-wrap {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
