/* ==========================================================================
   ONE ENVOY PRESENCE — BASE, LAYOUT & COMPONENTS
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---- Focus ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

/* ---- Typography ---- */
.font-display { font-family: var(--font-display); }
.eyebrow {
  display: inline-block;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-600);
  margin-bottom: var(--space-4);
}
.eyebrow--inverse { color: var(--color-accent); }

.display { font-family: var(--font-display); font-size: var(--text-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h1, .h1 { font-family: var(--font-display); font-size: var(--text-h1); font-weight: 500; line-height: 1.15; }
h2, .h2 { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 500; line-height: 1.2; }
h3, .h3 { font-family: var(--font-body); font-size: var(--text-h3); font-weight: 600; line-height: 1.3; }
.body-lg { font-size: var(--text-body-lg); line-height: 1.6; }
.caption { font-size: var(--text-caption); color: var(--color-text-muted); line-height: 1.5; }
.caption.inverse { color: var(--color-text-muted-inverse); }
.muted { color: var(--color-text-muted); }
.section--dark .muted { color: var(--color-text-muted-inverse); }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--text { max-width: var(--max-text); }
.container--wide { max-width: var(--max-wide); }

.section { padding-block: var(--section-py); scroll-margin-top: 104px; }
.section--lg { padding-block: var(--section-py-lg); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.section--subtle { background: var(--color-bg-subtle); }
.section--default { background: var(--color-bg-default); }

.grid { display: grid; gap: var(--gutter); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: var(--space-3);
  transition: background var(--transition-base), padding var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.site-header,
.site-header a,
.site-header .nav-link { color: var(--color-text-inverse); }

.site-header.is-scrolled {
  background: var(--color-bg-default);
  padding-block: var(--space-3);
  border-bottom-color: var(--color-border-default);
}
.site-header.is-scrolled,
.site-header.is-scrolled a,
.site-header.is-scrolled .nav-link { color: var(--color-text-primary); }
.site-header.is-scrolled .btn--primary { color: var(--color-text-inverse); }

/* Inner pages whose top section is light (not a dark hero like the homepage)
   need a header that's readable from the start, not just after scrolling. */
.site-header--light {
  background: var(--color-bg-default);
  border-bottom-color: var(--color-border-default);
}
.site-header--light,
.site-header--light a,
.site-header--light .nav-link { color: var(--color-text-primary); }
.site-header--light .btn--primary { color: var(--color-text-inverse); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--color-accent); }
.site-logo {
  height: 64px;
  width: 80px;
  object-fit: cover;
  object-position: left center;
  flex-shrink: 0;
  background-color: transparent;
  border: none;
}

@media (max-width: 767px) {
  .site-logo {
    height: 48px;
    width: 60px;
  }
}

.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: var(--space-6); }
.nav-link {
  font-size: var(--text-label);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transition: right var(--transition-fast);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after { right: 0; }

/* ---- Dropdown Navigation ---- */
.nav-item-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-bg-default);
  border: 1px solid var(--color-border-default);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 200;
  padding: var(--space-3) 0;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--color-bg-subtle);
  color: var(--color-accent);
}
.site-header:not(.is-scrolled):not(.site-header--light) .dropdown-menu {
  background: var(--color-bg-dark);
  border-color: var(--color-border-dark);
}
.site-header:not(.is-scrolled):not(.site-header--light) .dropdown-menu a {
  color: var(--color-text-inverse);
}
.site-header:not(.is-scrolled):not(.site-header--light) .dropdown-menu a:hover {
  background: var(--color-bg-dark-subtle);
}

.header-actions { display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none;
  color: inherit;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-9) var(--space-6);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav-list { display: flex; flex-direction: column; gap: var(--space-6); }
.mobile-nav-list a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-decoration: none;
  color: var(--color-text-inverse);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.mobile-nav.is-open .mobile-nav-list a { opacity: 1; transform: translateY(0); }
.mobile-nav-list li:nth-child(1) a { transition-delay: 0ms; }
.mobile-nav-list li:nth-child(2) a { transition-delay: 40ms; }
.mobile-nav-list li:nth-child(3) a { transition-delay: 80ms; }
.mobile-nav-list li:nth-child(4) a { transition-delay: 120ms; }
.mobile-nav-list li:nth-child(5) a { transition-delay: 160ms; }
.mobile-nav-list li:nth-child(6) a { transition-delay: 200ms; }
.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: max-height 0.35s ease, margin-top 0.35s ease;
  margin-top: 0;
}
.mobile-dropdown.is-open {
  max-height: 200px;
  margin-top: var(--space-3);
}
.mobile-dropdown a {
  font-size: 1.125rem !important;
  color: var(--color-text-muted-inverse) !important;
  opacity: 1 !important;
  transform: none !important;
}
.mobile-dropdown a:hover {
  color: var(--color-accent) !important;
}
/* Chevron toggle button next to Services in mobile nav */
.mobile-nav-list .has-dropdown {
  display: flex;
  flex-direction: column;
}
.mobile-nav-list .has-dropdown > .mobile-dropdown-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.mobile-dropdown-toggle {
  background: none;
  border: none;
  padding: 4px;
  color: var(--color-text-muted-inverse);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}
.mobile-dropdown-toggle svg {
  transition: transform 0.3s ease;
}
.mobile-dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.mobile-dropdown-toggle:hover { color: var(--color-accent); }
.mobile-nav-cta { margin-top: var(--space-7); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-label);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 14px 24px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}
.btn--lg { padding: 18px 32px; font-size: 1.0625rem; }
@media (max-width: 767px) {
  .btn { padding: 8px 16px; font-size: var(--text-caption); }
  .btn--lg { padding: 8px 16px; font-size: var(--text-caption); }
}
.btn--wrap { white-space: normal; text-align: center; max-width: 100%; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  box-shadow: inset 0 -2px 0 0 transparent;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
  box-shadow: inset 0 -2px 0 0 var(--color-accent);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.section--dark .btn--secondary { color: var(--color-text-inverse); border-color: var(--color-text-inverse); }
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.section--dark .btn--secondary:hover { background: var(--color-text-inverse); color: var(--color-secondary); border-color: var(--color-text-inverse); }

.btn--text {
  padding: 0;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--color-primary);
  position: relative;
}
.section--dark .btn--text, .inverse .btn--text { color: var(--color-text-inverse); }
.btn--text::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 1px;
  background: var(--color-accent);
  transition: right var(--transition-fast);
}
.btn--text:hover::after, .btn--text:focus-visible::after { right: 0; }
.btn--text .arrow { transition: transform var(--transition-fast); }
.btn--text:hover .arrow { transform: translateX(3px); }

.trust-line { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.trust-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex: none; }

/* ==========================================================================
   CARDS  (one primitive — Solution / Industry / Article variants via content only)
   ========================================================================== */
.card {
  border: 1px solid var(--color-border-default);
  padding: var(--space-6);
  background: var(--color-bg-default);
  transition: border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card:hover { border-color: var(--color-accent); }
.card--accent-top { border-top: 3px solid var(--color-accent); }
.card__title { font-size: 1.0625rem; font-weight: 600; font-family: var(--font-body); }
.card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-accent-600);
  background: var(--color-accent-100);
  padding: 2px 10px;
}

.card--flagship {
  padding: var(--space-8);
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-color: var(--color-bg-dark);
  gap: var(--space-4);
}
.card--flagship:hover { border-color: var(--color-accent); }
.card--flagship .card__title { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 500; }
.card--flagship .eyebrow { color: var(--color-accent); }
.card--flagship .btn--text { color: var(--color-text-inverse); }
.card--flagship .btn--text::after { background: var(--color-accent); }
.card--flagship ul { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.card--flagship li { padding-left: var(--space-5); position: relative; color: var(--color-text-muted-inverse); font-size: var(--text-label); }
.card--flagship li::before { content: "\2013"; position: absolute; left: 0; color: var(--color-accent); }

/* Placeholder card (Insights "coming soon") */
.card--placeholder {
  border-style: dashed;
  color: var(--color-text-muted);
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding-block: var(--space-4);
  display: flex;
  flex-direction: column;
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-content {
  display: flex;
  gap: var(--space-4);
  padding-right: var(--space-4);
  flex-shrink: 0;
}
.marquee-track--left .marquee-content {
  animation: scroll-left 35s linear infinite;
}
.marquee-track--right .marquee-content {
  animation: scroll-right 35s linear infinite;
}
.marquee-track:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes scroll-right {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

.marquee-item {
  text-decoration: none;
  padding: 24px 32px;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--color-border-dark);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  cursor: default;
}
.marquee-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}
.marquee-item::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.marquee-item--alt {
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-default);
}
.marquee-item--alt:hover {
  border-color: var(--color-primary);
}
.marquee-item--alt::before {
  background: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track--left .marquee-content,
  .marquee-track--right .marquee-content { animation: none !important; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: 100%; padding: 0 var(--gutter); gap: var(--space-4); }
  .marquee-container { width: 100%; left: auto; right: auto; margin-left: 0; margin-right: 0; overflow: visible; }
  .marquee-content[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   PROCESS DIAGRAM  (signature component — compact variant used on homepage)
   ========================================================================== */
.process { position: relative; margin-top: var(--space-8); }
.process-track {
  display: flex;
  gap: var(--space-4);
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 19px; left: 19px; right: 19px;
  height: 1px;
  background: var(--color-border-dark);
  z-index: 0;
}
.process-connector {
  position: absolute;
  top: 19px; left: 19px;
  height: 2px;
  background: var(--color-accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 900ms ease-out;
  z-index: 1;
  right: 19px;
}
.process.in-view .process-connector { transform: scaleX(1); }

.process-node {
  position: relative;
  z-index: 2;
  isolation: isolate;
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.process-node__index {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  background: var(--color-bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--color-accent);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.process-node[aria-expanded="true"] .process-node__index,
.process-node:hover .process-node__index { border-color: var(--color-accent); }
.process-node__label { font-weight: 600; font-size: var(--text-label); }
.process-node__detail {
  font-size: var(--text-caption);
  color: var(--color-text-muted-inverse);
}

/* ==========================================================================
   TABS  (Who This Is For)
   ========================================================================== */
.tabs { margin-top: var(--space-7); }
.tab-list {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-border-default);
  margin-bottom: var(--space-7);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  background: none;
  border: none;
  padding: var(--space-3) 0;
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  flex: none;
  white-space: nowrap;
}
.tab[aria-selected="true"] {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn var(--transition-fast); }
.tab-panel__pain { font-size: var(--text-body-lg); max-width: 640px; margin-bottom: var(--space-5); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   FORM
   ========================================================================== */
.form-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.form-field label { font-size: var(--text-label); font-weight: 600; }
.form-field input, .form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-dark);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-3) 0;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--color-text-muted-inverse); }

/* Fix webkit autofill styling */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover, 
.form-field input:-webkit-autofill:focus, 
.form-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--color-bg-dark) inset !important;
  -webkit-text-fill-color: var(--color-text-inverse) !important;
  transition: background-color 5000s ease-in-out 0s;
}
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent);
}
.form-field input.invalid, .form-field textarea.invalid, .form-field select.invalid {
  border-bottom-color: #ef4444;
}
.form-field input.invalid:focus-visible, .form-field textarea.invalid:focus-visible, .form-field select.invalid:focus-visible {
  border-bottom-color: #ef4444;
  box-shadow: 0 1px 0 0 #ef4444;
}
.form-note { margin-top: var(--space-3); }
.form-success {
  display: none;
  padding: var(--space-5);
  border: 1px solid var(--color-accent);
  margin-top: var(--space-5);
}
.form-success.is-visible { display: block; }

.form-field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-dark);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-3) var(--space-6) var(--space-3) 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C1A24A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.form-field select:focus-visible { outline: none; border-bottom-color: var(--color-accent); box-shadow: 0 1px 0 0 var(--color-accent); }
.form-field select option { color: var(--color-text-primary); }

/* Custom Select Dropdown */
.custom-select-wrapper { position: relative; }
.custom-select-wrapper select { display: none !important; }

.custom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-dark);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.custom-select:focus-visible,
.custom-select.is-open {
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent);
}
.custom-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-label.is-placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.custom-select-icon {
  display: flex;
  margin-left: 0.5rem;
  transition: transform var(--transition-base);
}
.custom-select.is-open .custom-select-icon {
  transform: rotate(180deg);
}
.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 4px;
  background-color: var(--color-bg-dark-subtle);
  border: 1px solid var(--color-border-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}
.custom-select-options.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--color-text-inverse);
  transition: background-color 0.2s;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.custom-select-option:hover,
.custom-select-option.is-focused {
  background-color: rgba(255, 255, 255, 0.05);
}
.custom-select-option.is-selected {
  color: var(--color-accent);
  font-weight: 500;
  background-color: rgba(193, 162, 74, 0.1);
}

.field-optional { font-weight: 400; color: var(--color-text-muted-inverse); }
.form-row { display: grid; gap: var(--space-5) var(--space-6); }
.form-row > * { min-width: 0; }
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.contact-form-card:hover { border-color: var(--color-bg-dark); }

/* ==========================================================================
   PROOF / STATS PATTERN
   ========================================================================== */
.proof-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; margin-top: var(--space-8); }
.proof-item__figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}
/* Gold only has safe contrast against the dark surface (2.09:1 on
   bg-subtle, fails WCAG AA even for large text). On light/subtle
   backgrounds use the primary teal instead, which clears 5:1. */
.section--default .proof-item__figure,
.section--subtle .proof-item__figure { color: var(--color-primary); }

/* ==========================================================================
   STRUCTURE DIAGRAM (client / entity / network)
   ========================================================================== */
.structure { display: flex; flex-direction: column; gap: 0; margin-top: var(--space-8); }
.structure-node {
  border: 1px solid var(--color-border-dark);
  padding: var(--space-5) var(--space-6);
}
.structure-node--emphasis { border-color: var(--color-accent); }
.structure-connector {
  width: 1px; height: var(--space-6);
  background: var(--color-border-dark);
  margin-inline: var(--space-6);
}
.structure-node__label { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted-inverse); margin-bottom: var(--space-2); }
.structure-node__title { font-weight: 600; font-size: var(--text-label); }

/* ==========================================================================
   CHALLENGE (editorial statement)
   ========================================================================== */
.editorial-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.35;
  max-width: 920px;
}
.editorial-statement em {
  font-style: normal;
  color: var(--color-primary);
  background: linear-gradient(transparent 70%, var(--color-accent-100) 70%);
}
.editorial-pivot { margin-top: var(--space-6); font-size: var(--text-body-lg); font-weight: 600; }

/* ==========================================================================
   HERO VISUAL
   ========================================================================== */
.hero { padding-top: calc(var(--section-py-lg) + 72px); }
.hero-grid { display: grid; gap: var(--space-8); }
.hero-copy { max-width: 640px; }

/* ---- Typing Effect ---- */
.typewriter-line {
  border-right: 2px solid transparent;
}
.typing-cursor {
  border-right: 2px solid var(--color-accent);
  animation: blink-cursor 0.75s step-end infinite;
}
@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--color-accent); }
}
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.7;
  transition: transform var(--transition-base);
}

@media (min-width: 1024px) {
  .hero-logo {
    transform: scale(2.2);
  }
}

@media (max-width: 1023px) {
  .hero-logo {
    transform: scale(1);
    max-width: 80%;
  }
  .hero-visual {
    padding-bottom: var(--space-8);
  }
}

@media (max-width: 767px) {
  .hero-visual {
    display: none;
  }
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 640px; margin-bottom: var(--space-5); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--color-bg-dark-subtle); color: var(--color-text-inverse); padding-top: var(--section-py); }
.footer-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; margin-bottom: var(--space-8); }
.footer-col h3 { font-family: var(--font-body); font-size: var(--text-label); font-weight: 600; margin-bottom: var(--space-4); color: var(--color-text-inverse); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { text-decoration: none; color: var(--color-text-muted-inverse); font-size: var(--text-body); }
.footer-col a:hover { color: var(--color-accent); }
.footer-legal {
  border-top: 1px solid var(--color-accent);
  padding-block: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: space-between;
  color: var(--color-text-muted-inverse);
  font-size: var(--text-caption);
}
.footer-legal-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-legal-links a { color: var(--color-text-muted-inverse); text-decoration: none; }
.footer-legal-links a:hover { color: var(--color-accent); }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-7);
}
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { color: #8F8875; }

/* ==========================================================================
   PAGE HERO  (lighter-weight hero for inner pages, distinct from homepage hero)
   ========================================================================== */
.page-hero { padding-top: calc(var(--section-py) + 64px); }
.page-hero__intro { max-width: 640px; margin-top: var(--space-5); }

@media (max-width: 768px) {
  .page-hero {
    padding-bottom: var(--space-8) !important;
  }
}

/* ==========================================================================
   ACCORDION  (generic — distinct semantics from Tabs: independent, stacked disclosure)
   ========================================================================== */
.accordion { border-top: 1px solid var(--color-border-default); margin-top: var(--space-7); }
.section--dark .accordion,
.section--dark .accordion-item { border-color: var(--color-border-dark); }
.accordion-item { border-bottom: 1px solid var(--color-border-default); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-6);
  background: none;
  border: none;
  text-align: left;
  color: inherit;
}
.accordion-trigger__label { font-size: 1.0625rem; font-weight: 600; }
.accordion-trigger__icon { flex: none; transition: transform var(--transition-fast); color: var(--color-accent); }
.accordion-trigger[aria-expanded="true"] .accordion-trigger__icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.accordion-panel__inner { padding-bottom: var(--space-6); max-width: 640px; color: var(--color-text-muted); }
.section--dark .accordion-panel__inner { color: var(--color-text-muted-inverse); }

/* ==========================================================================
   RESPONSIBILITY SPLIT  (two-column ownership comparison — dark / bordered-light)
   ========================================================================== */
.split { display: grid; gap: var(--space-5); margin-top: var(--space-8); }
.split-col {
  padding: var(--space-7);
}
.split-col--dark { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.split-col--outline { border: 1px solid var(--color-border-default); }
.split-col__label { font-size: var(--text-eyebrow); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent); margin-bottom: var(--space-5); display: block; }
.split-col--outline .split-col__label { color: var(--color-accent-600); }
.split-col ul { display: flex; flex-direction: column; gap: var(--space-4); }
.split-col li { padding-left: var(--space-5); position: relative; }
.split-col li::before { content: "\2013"; position: absolute; left: 0; color: var(--color-accent); }

/* ==========================================================================
   DEFINITION LIST  (editorial capabilities list — term + description, no boxes)
   ========================================================================== */
.def-list { margin-top: var(--space-8); border-top: 1px solid var(--color-border-default); }
.def-item {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border-default);
}
.def-item dt { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }
.def-item dd { margin: 0; color: var(--color-text-muted); max-width: 60ch; }

/* ==========================================================================
   JOURNEY TIMELINE  (editorial horizontal/vertical stages — softer than the process diagram)
   ========================================================================== */
.journey { display: flex; flex-direction: column; gap: var(--space-7); margin-top: var(--space-8); }
.journey-stage { padding-left: var(--space-6); border-left: 2px solid var(--color-accent-100); }
.journey-stage__label { font-size: var(--text-eyebrow); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent-600); margin-bottom: var(--space-2); display: block; }
.journey-stage p { max-width: 56ch; }

/* ==========================================================================
   MAPPING LIST  (function ↔ industry pairing, editorial rows)
   ========================================================================== */
.mapping { margin-top: var(--space-8); }
.mapping-row {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border-default);
}
.mapping-row:last-child { border-bottom: 1px solid var(--color-border-default); }
.mapping-row__fn { font-weight: 600; }
.mapping-row__industry { color: var(--color-accent-600); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.04em; }
.mapping-row p { color: var(--color-text-muted); margin: 0; }

/* ==========================================================================
   INLINE STEP LIST  (compact numbered list — lighter than the homepage process diagram)
   ========================================================================== */
.steps { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); counter-reset: step; }
.steps--row { flex-direction: row; flex-wrap: wrap; }
.steps--row .step { flex: 1 1 220px; }
.step { display: flex; gap: var(--space-5); }
.step__index {
  counter-increment: step;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-default);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--color-accent-600);
}
.step__index::before { content: counter(step); }
.section--dark .step__index { border-color: var(--color-border-dark); color: var(--color-accent); }
.step__body h3 { margin-bottom: var(--space-2); }
.step__body p { color: var(--color-text-muted); margin: 0; }
.section--dark .step__body p { color: var(--color-text-muted-inverse); }

/* ==========================================================================
   OTHER SOLUTIONS (compact cross-links, not a card grid)
   ========================================================================== */
.other-links { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--color-border-default); }
.other-links__title { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: var(--space-5); display: block; }
.other-links__list { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); }
.other-links__list a { text-decoration: none; font-weight: 600; color: var(--color-primary); border-bottom: 1px solid transparent; }
.other-links__list a:hover { border-bottom-color: var(--color-accent); }
.section--dark .other-links { border-top-color: var(--color-border-dark); }
.section--dark .other-links__title { color: var(--color-text-muted-inverse); }
.section--dark .other-links__list a { color: var(--color-accent); }
.section--dark .other-links__list a:hover { border-bottom-color: var(--color-text-inverse); }

/* ==========================================================================
   INDUSTRY NAVIGATION  (sticky quick-nav with scrollspy, for the Who We Serve hub)
   ========================================================================== */
.industry-nav {
  position: sticky;
  top: 72px; /* sits just below the fixed site header, which isn't in normal flow */
  z-index: 20;
  background: var(--color-bg-default);
  border-bottom: 1px solid var(--color-border-default);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.industry-nav__list { display: flex; justify-content: center; gap: var(--space-7); padding: var(--space-4) var(--gutter); min-width: max-content; }
.industry-nav__link {
  font-size: var(--text-label);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition-fast), border-bottom-color var(--transition-fast);
}
.industry-nav__link.is-active { color: var(--color-text-primary); border-bottom-color: var(--color-accent); font-weight: 600; }

/* ==========================================================================
   INDUSTRY SECTION  (alternating editorial row: graphic + content)
   ========================================================================== */
.industry-section__grid { display: grid; gap: var(--space-8); align-items: center; }
.industry-section__graphic { display: flex; justify-content: center; }
.industry-section__graphic svg { width: 100%; max-width: 260px; }
.industry-section__content { max-width: 560px; }
.industry-section__solutions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-5); }
.industry-section__solutions a { font-weight: 600; text-decoration: none; color: var(--color-primary); border-bottom: 1px solid transparent; }
.section--dark .industry-section__solutions a { color: var(--color-text-inverse); }
.industry-section__solutions a:hover { border-bottom-color: var(--color-accent); }
.industry-section__usecase {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-left: 2px solid var(--color-accent);
  background: var(--color-bg-subtle);
}
.section--dark .industry-section__usecase { background: var(--color-bg-dark-subtle); }
.industry-section__usecase p { margin: 0; }
.industry-section__usecase span { display: block; font-size: var(--text-eyebrow); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent-600); margin-bottom: var(--space-2); }
.section--dark .industry-section__usecase span { color: var(--color-accent); }

/* ==========================================================================
   JOURNEY SPINE  (spatial-journey layout for How It Works — a connected
   path, not a horizontal icon timeline)
   ========================================================================== */
.journey-spine { position: relative; margin-top: var(--space-9); padding-left: var(--space-8); }
.journey-spine__track {
  position: absolute;
  left: 19px; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border-default);
}
.journey-spine__fill {
  position: absolute;
  left: 19px; top: 0;
  width: 2px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
}
.journey-step { position: relative; padding-bottom: var(--space-10); }
.journey-step:last-child { padding-bottom: 0; }
.journey-step__marker {
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: 2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-bg-default);
  border: 2px solid var(--color-border-default);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: border-color var(--transition-base), color var(--transition-base);
}
.journey-step.is-active .journey-step__marker { border-color: var(--color-accent); color: var(--color-accent-600); }
.journey-step__content { max-width: 620px; }
.journey-step__label { font-size: var(--text-eyebrow); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent-600); display: block; margin-bottom: var(--space-2); }

@media (min-width: 1024px) {
  .journey-spine { padding-left: 0; }
  .journey-spine__track, .journey-spine__fill { left: 50%; margin-left: -1px; }
  .journey-step { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: start; padding-bottom: var(--space-11); }
  .journey-step__marker { position: static; grid-column: 2; justify-self: center; }
  .journey-step__content { grid-column: 1; justify-self: end; text-align: right; }
  .journey-step:nth-child(even) .journey-step__content { grid-column: 3; justify-self: start; text-align: left; }
  .journey-step:nth-child(even) .journey-step__marker { grid-column: 2; }
  .journey-step .industry-section__usecase { text-align: left; }
}

/* ==========================================================================
   BELIEF LIST  (About page — large stacked statements, not cards or icons)
   ========================================================================== */
.belief-list { margin-top: var(--space-9); border-top: 1px solid var(--color-border-dark); }
.belief-item {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border-dark);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 820px;
}

/* ==========================================================================
   COMPARISON TABLE  (Why One Envoy Presence — real structured comparison,
   not three equal cards. Div-based grid with table ARIA roles.)
   ========================================================================== */
.compare-scroll { overflow-x: auto; margin-top: var(--space-8); -webkit-overflow-scrolling: touch; }
.compare-hint { display: none; margin-top: var(--space-3); }
.compare-table { display: grid; grid-template-columns: 160px repeat(3, minmax(200px, 1fr)); min-width: 760px; }
.compare-cell { padding: var(--space-5); border-bottom: 1px solid var(--color-border-default); }
.compare-row-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  position: sticky;
  left: 0;
  background: var(--color-bg-subtle);
  box-shadow: 1px 0 0 0 var(--color-border-default);
}
.compare-head:first-child { position: sticky; left: 0; background: var(--color-bg-subtle); box-shadow: 1px 0 0 0 var(--color-border-default); }
.compare-head { font-weight: 600; color: var(--color-text-muted); border-bottom: 2px solid var(--color-border-default); }
.compare-head--us { color: var(--color-primary); }
.compare-cell--us { background: var(--color-primary-50); border-bottom-color: var(--color-primary-100); font-weight: 500; }
.compare-cell p { margin: 0; font-size: var(--text-caption); color: var(--color-text-muted); }
.compare-cell--us p { color: var(--color-text-primary); }

/* ==========================================================================
   PRESENCE MARK  (the recurring anchor-point visual — used exactly twice:
   hero and closing bookend. Not decorative, tied to explicit meaning.)
   ========================================================================== */
.presence-mark { width: 100%; max-width: 240px; margin-inline: auto; }
.presence-mark .ring { stroke: var(--color-border-dark); fill: none; }
.presence-mark .anchor { fill: #C1A24A; }
.presence-mark .anchor-pulse {
  transform-origin: center;
  animation: pulse 3.6s ease-in-out infinite;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .process-connector { transition: none; transform: scaleX(1); }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-mark .pulse, .presence-mark .anchor-pulse { animation: none; opacity: 0.8; }
  .mobile-nav, .mobile-nav-list a, .tab-panel.is-active { transition: none; animation: none; }
  .accordion-panel, .accordion-trigger__icon { transition: none; }
  .process-node__detail, .process-node__index { transition: none; }
  .industry-nav__link { transition: none; }
}

/* ==========================================================================
   SCROLL REVEAL (progressive enhancement — JS adds .is-visible)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--transition-base), transform var(--transition-base); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 768px) {
  .grid-2-md { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .structure { flex-direction: row; align-items: stretch; }
  .structure-connector { width: var(--space-6); height: 1px; margin-block: var(--space-6); align-self: center; }
  .structure-node { flex: 1; }
  .split { grid-template-columns: repeat(2, 1fr); }
  .def-item { grid-template-columns: 240px 1fr; align-items: baseline; }
  .mapping-row { grid-template-columns: 200px 1fr; align-items: baseline; }
}

@media (max-width: 1023px) {
  /* The mobile overlay carries its own large CTA — the header stays
     uncluttered with just the wordmark and the menu toggle. */
  .header-actions .btn--primary { display: none; }
}

/* ==========================================================================
   INSIGHTS / EDITORIAL
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: var(--space-7) 0 var(--space-5); }
.filter-chip {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.filter-chip:hover { border-color: var(--color-accent); }
.filter-chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
.filter-status { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.insights-card[hidden] { display: none; }

.insights-featured { align-items: stretch; }
.insights-featured__panel {
  background: var(--color-bg-dark-subtle);
  color: var(--color-text-inverse);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.insights-featured__panel .eyebrow { color: var(--color-accent); }
.insights-featured__panel-graphic { position: relative; flex: 1; margin-top: var(--space-5); min-height: 100px; }
.insights-featured__panel-mark { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.insights-featured__content { display: flex; flex-direction: column; justify-content: center; }
.insights-featured__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); color: var(--color-text-muted); margin: var(--space-4) 0 var(--space-5); }
.insights-featured__meta span:not(:last-child)::after { content: '\00b7'; margin-left: var(--space-3); color: var(--color-text-muted); }

.article-hero {
  background: var(--color-bg-dark-subtle);
  color: var(--color-text-inverse);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.article-hero .eyebrow { color: var(--color-accent); }
.article-hero-graphic { position: relative; flex: 1; margin-top: var(--space-5); min-height: 100px; }
.article-hero-mark { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-label);
  margin: var(--space-5) 0 var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-default);
}
.article-meta span:not(:last-child)::after { content: '\00b7'; margin-left: var(--space-3); color: var(--color-border-dark); }
.article-notice {
  border: 1px solid var(--color-accent-600);
  background: var(--color-accent-100);
  color: var(--color-text-primary);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
  font-size: var(--text-label);
}
.article-notice strong { display: block; margin-bottom: var(--space-2); }
.article-body { font-size: var(--text-body-lg); line-height: 1.75; color: var(--color-text-primary); }
.article-body h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); font-size: var(--text-h3); }
.article-body p { margin-bottom: var(--space-5); max-width: 68ch; }
.article-body p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .insights-featured__panel, .article-hero { padding: var(--space-9); }
  .grid-2-md { grid-template-columns: repeat(2, 1fr); }
  .grid-3-md { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .industry-nav { top: 86px; } /* desktop header is taller (79px) once scrolled, vs. 65px on mobile/tablet */
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .solutions-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-3-lg { grid-template-columns: repeat(3, 1fr); }
  .grid-2-lg { grid-template-columns: repeat(2, 1fr); }
  .industry-section__grid { grid-template-columns: 280px 1fr; }
  .industry-section__grid.industry-section--reverse { grid-template-columns: 1fr 280px; }
  .industry-section--reverse .industry-section__graphic { order: 2; }
  .industry-section--reverse .industry-section__content { order: 1; }
}

@media (max-width: 767px) {
  .compare-hint { display: block; font-size: var(--text-caption); color: var(--color-text-muted); }
  .process-track { flex-direction: column; gap: var(--space-6); }
  .process-track::before { top: 0; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; }
  .process-connector { top: 0; left: 19px; right: auto; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .process.in-view .process-connector { transform: scaleY(1); }
  .process-node { flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-left: var(--space-8); }
  .process-node__index { position: absolute; left: 0; }
}

/* Custom Modal Popup */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-content {
  background: var(--color-bg-default);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.custom-modal.is-active .custom-modal-content {
  transform: translateY(0);
}

.custom-modal-content h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.custom-modal-content p {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   PREMIUM CARDS (For Offerings)
   ========================================================================== */
.card--premium {
  position: relative;
  background: linear-gradient(145deg, var(--color-bg-dark), var(--color-bg-dark-subtle));
  border: 1px solid rgba(193, 162, 74, 0.2);
  border-radius: 12px;
  padding: var(--space-8);
  color: var(--color-text-inverse);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  z-index: 1;
}

.card--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(193, 162, 74, 0.15), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card--premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-accent);
}

.card--premium:hover::before {
  opacity: 1;
}

.card--premium .card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
  font-weight: 500;
}

.card--premium ul {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}

.card--premium li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-inverse);
  font-size: 1.05rem;
  line-height: 1.5;
}

.card--premium li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1A24A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.card--premium .btn--text {
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 4px;
}
.card--premium .btn--text::after {
  background: var(--color-accent);
  height: 2px;
}

/* ==========================================================================
   PROFILE CARDS (About Page)
   ========================================================================== */

/* ==========================================================================
   Expandable Cards (Ombre Effect & Smooth Expansion)
   ========================================================================== */


/* Service cards (Solutions page) */
.service-details {
  position: relative;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
}
.service-details::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(247, 244, 238, 0), rgba(247, 244, 238, 1));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.service-details.is-expanded {
  max-height: 800px;
  margin-top: var(--space-4);
  opacity: 1;
}
.service-details.is-expanded::after {
  opacity: 0;
}

/* Elevated shadow effect for expanded cards */
.card {
  transition: border-color var(--transition-fast), box-shadow 0.4s ease, transform 0.4s ease;
}
.card:has(.service-details.is-expanded) {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

/* Allow address text to wrap on small screens */
.footer-col:last-child li {
  white-space: normal;
  word-break: break-word;
}
@media (min-width: 900px) {
  .footer-col:last-child li {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Team Member Cards & Drawer (Redesign)
   ========================================================================== */

.team-card {
  cursor: pointer;
  text-align: center;
  border-radius: 8px !important;
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent) !important;
  background: var(--color-bg-default);
  padding: 0 0 var(--space-4) 0 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.team-card img {
  border-radius: 0 !important;
  margin-bottom: var(--space-4);
}
.team-name {
  margin-bottom: var(--space-2);
  padding: 0 var(--space-4);
  font-size: 1.25rem;
}
.team-title {
  display: block;
  font-size: 0.75rem;
  padding: 0 var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Team Drawer Overlay */
.team-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.team-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Team Drawer */
.team-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 640px;
  height: 100vh;
  background: var(--color-bg-default);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  overflow-y: auto;
  padding: var(--space-7) var(--space-6);
}
.team-drawer.is-open {
  transform: translateX(0);
}
.team-drawer-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  padding: var(--space-2);
  transition: opacity 0.2s;
}
.team-drawer-close:hover {
  opacity: 0.7;
}
.team-drawer-content {
  margin-top: var(--space-6);
  text-align: left;
}
.team-drawer-content img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-5);
  border: 4px solid var(--color-accent);
}





/* ==========================================================================
   Clients Marquee
   ========================================================================== */
.client-logo-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  background: #ffffff;
  border-radius: 12px;
  height: 140px;
  width: 260px;
  margin: 0 var(--space-2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.client-logo-large img {
  max-width: 240px;
  max-height: 120px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.client-logo-large:hover img {
  opacity: 1;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-default);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  padding: var(--space-4);
  z-index: 9999;
  border-top: 1px solid var(--color-border-default);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-content {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-banner {
    padding: var(--space-4) var(--space-6);
  }
  .cookie-banner-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cookie-banner-content p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-text-primary);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
  width: 100%;
}

.cookie-banner-actions .button {
  flex: 1;
}

@media (min-width: 768px) {
  .cookie-banner-actions {
    width: auto;
    flex-shrink: 0;
  }
  .cookie-banner-actions .button {
    flex: none;
  }
}

/* Spinner for loading state */
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2em;
  height: 1.2em;
  margin-top: -0.6em;
  margin-left: -0.6em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spinner 0.6s linear infinite;
}
@keyframes button-spinner {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   WIDTH OVERRIDES
   ========================================================================== */
.page-hero h1,
.page-hero .page-hero__intro,
.section--default .body-lg.reveal,
.section--default .editorial-statement {
  max-width: 1000px !important;
}

