/* =========================================================
   CONNEXIONS — STYLES
   Architecture: structure / utilities / components / pages / motion / responsive
   ========================================================= */

/* ── Layout primitives ─────────────────────────────────── */
.wrap        { max-width: var(--cx-wrap); margin: 0 auto; padding: 0 var(--cx-7); }
.wrap--tight { max-width: var(--cx-wrap-tight); margin: 0 auto; padding: 0 var(--cx-7); }
.wrap--narrow{ max-width: var(--cx-wrap-narrow); margin: 0 auto; padding: 0 var(--cx-7); }
.section     { padding: var(--cx-10) 0; position: relative; }
.section--sm { padding: var(--cx-9) 0; }

/* ── Typography ────────────────────────────────────────── */
.eyebrow {
  font-family: var(--cx-font-mono);
  font-size: 11px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: var(--cx-stone);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cx-ember);
}
.eyebrow--inverse { color: rgba(244,239,230,0.7); }
.eyebrow--inverse::before { background: var(--cx-ember-soft); }

.display-1 {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: var(--cx-tracking-tighter);
  margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
}
.display-2 {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.96;
  letter-spacing: var(--cx-tracking-tight);
  margin: 0;
  font-variation-settings: 'opsz' 144;
}
.display-3 {
  font-family: var(--cx-font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: var(--cx-tracking-tight);
  margin: 0;
}
.display em, .display-1 em, .display-2 em, .display-3 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--cx-ember);
}

.lede {
  font-family: var(--cx-font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--cx-text-muted);
  max-width: 60ch;
  margin: 0;
}

.body-l { font-size: 18px; line-height: 1.6; color: var(--cx-text); }
.body-s { font-size: 14px; line-height: 1.55; color: var(--cx-text-muted); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--cx-font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: var(--cx-radius-pill);
  transition: all var(--cx-dur-fast) var(--cx-ease-standard);
  position: relative;
  overflow: hidden;
}
.btn .arrow {
  transition: transform var(--cx-dur-fast) var(--cx-ease-standard);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--cx-midnight);
  color: var(--cx-parchment);
}
.btn--primary:hover { background: var(--cx-ember); }

.btn--ghost {
  background: transparent;
  color: var(--cx-midnight);
  border: 1px solid var(--cx-midnight);
}
.btn--ghost:hover { background: var(--cx-midnight); color: var(--cx-parchment); }

.btn--inverse {
  background: var(--cx-parchment);
  color: var(--cx-midnight);
}
.btn--inverse:hover { background: var(--cx-ember); color: var(--cx-parchment); }

.btn--ghost-inverse {
  background: transparent;
  color: var(--cx-parchment);
  border: 1px solid rgba(244,239,230,0.4);
}
.btn--ghost-inverse:hover { background: var(--cx-parchment); color: var(--cx-midnight); border-color: var(--cx-parchment); }

/* ── Link arrow inline ─────────────────────────────────── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cx-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--cx-midnight);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--cx-dur-fast), gap var(--cx-dur-fast);
}
.link-arrow:hover { color: var(--cx-ember); gap: 12px; }
.link-arrow--inverse { color: var(--cx-parchment); }
.link-arrow--inverse:hover { color: var(--cx-ember-soft); }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(244,239,230,0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--cx-dur-base), border-color var(--cx-dur-base), color var(--cx-dur-base);
}
.site-header.is-scrolled {
  background: rgba(244,239,230,0.92);
  border-bottom-color: rgba(15,30,58,0.08);
}
.site-header.is-inverted {
  background: rgba(15,30,58,0.78);
  color: var(--cx-parchment);
  border-bottom-color: transparent;
}
.site-header__inner {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 18px var(--cx-7);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--cx-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cx-midnight);
  transition: color var(--cx-dur-base);
}
.is-inverted .brand { color: var(--cx-parchment); }
.brand__logo { height: 52px; width: auto; display: block; }

.nav-primary {
  display: flex;
  justify-content: center;
  gap: var(--cx-6);
}
.nav-link {
  font-family: var(--cx-font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--cx-midnight);
  position: relative;
  padding: 6px 0;
  transition: color var(--cx-dur-fast);
}
.is-inverted .nav-link { color: var(--cx-parchment); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--cx-ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--cx-dur-base) var(--cx-ease-standard);
}
.nav-link:hover { color: var(--cx-ember); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Dropdown for "Our Businesses" */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-link--has-sub::after {
  /* override default underline; we'll show caret */
  display: none;
}
.nav-link--has-sub .caret {
  margin-left: 6px;
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--cx-dur-base) var(--cx-ease-standard);
}
.nav-dropdown:hover .caret,
.nav-dropdown:focus-within .caret { transform: translateY(2px) rotate(225deg); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--cx-parchment);
  border: 1px solid var(--cx-mist);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--cx-dur-base) var(--cx-ease-standard);
  z-index: 60;
  box-shadow: var(--cx-shadow-mid);
}
.nav-dropdown__menu::before {
  content: "";
  position: absolute;
  inset: -16px 0 100% 0;
  /* invisible bridge */
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__menu a {
  font-family: var(--cx-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--cx-midnight);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background var(--cx-dur-fast), color var(--cx-dur-fast);
  border-left: 2px solid transparent;
}
.nav-dropdown__menu a:hover {
  background: rgba(196,96,46,0.06);
  color: var(--cx-ember);
  border-left-color: var(--cx-ember);
}
.nav-dropdown__menu .nav-sub-meta {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  color: var(--cx-stone);
  text-transform: uppercase;
}
.is-inverted .nav-dropdown__menu {
  background: var(--cx-midnight-2);
  border-color: rgba(244,239,230,0.15);
}
.is-inverted .nav-dropdown__menu a { color: var(--cx-parchment); }

/* Right cluster */
.nav-aux { display: flex; align-items: center; gap: var(--cx-5); justify-content: flex-end; }
.nav-aux .phone {
  font-family: var(--cx-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav-toggle {
  display: none;
  width: 28px; height: 24px;
  position: relative;
  color: var(--cx-midnight);
}
.is-inverted .nav-toggle { color: var(--cx-parchment); }
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: all var(--cx-dur-base) var(--cx-ease-standard);
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 4px; }
.nav-toggle.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 80px var(--cx-7);
  transform: translateX(100%);
  transition: transform var(--cx-dur-base) var(--cx-ease-standard);
  z-index: 45;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--cx-font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: var(--cx-tracking-tight);
  color: var(--cx-parchment);
  padding: 8px 0;
}
.mobile-menu a.mobile-sub {
  font-family: var(--cx-font-body);
  font-weight: 500;
  font-size: 16px;
  color: rgba(244,239,230,0.6);
  padding-left: 16px;
}
.mobile-menu a:hover { color: var(--cx-ember-soft); }
.mobile-menu__phone {
  margin-top: var(--cx-6);
  font-family: var(--cx-font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(244,239,230,0.7);
}

/* ── Hero with constellation ───────────────────────────── */
.hero {
  position: relative;
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  min-height: 100vh;
  padding: 120px 0 var(--cx-9);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero__constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.85;
}
.hero__noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(196,96,46,0.18) 0%, transparent 35%),
                    radial-gradient(circle at 80% 80%, rgba(143,168,139,0.10) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
}
.hero__inner {
  position: relative;
  z-index: 5;
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--cx-9);
  align-items: end;
  width: 100%;
}
.hero__copy { display: flex; flex-direction: column; gap: var(--cx-5); }
.hero__title {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 132px);
  line-height: 0.94;
  letter-spacing: var(--cx-tracking-tighter);
  margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: var(--cx-parchment);
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cx-ember);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero__sub {
  font-family: var(--cx-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: rgba(244,239,230,0.78);
  max-width: 52ch;
  margin: 0;
}
.hero__ctas { display: flex; gap: var(--cx-3); flex-wrap: wrap; margin-top: var(--cx-3); }
.hero__meta {
  display: flex;
  gap: var(--cx-6);
  flex-wrap: wrap;
  padding-top: var(--cx-5);
  border-top: 1px solid rgba(244,239,230,0.15);
  margin-top: var(--cx-6);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-num {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  color: var(--cx-parchment);
  font-variation-settings: 'opsz' 144;
}
.hero__meta-label {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
}

/* Right column — constellation focal display */
.hero__visual {
  position: relative;
  height: 480px;
  width: 100%;
}
.hero__node-card {
  position: absolute;
  background: var(--cx-midnight-2);
  border: 1px solid rgba(244,239,230,0.12);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--cx-dur-base) var(--cx-ease-standard);
  will-change: transform;
}
.hero__node-card:nth-child(1) { top: 8%; left: 0; min-width: 200px; }
.hero__node-card:nth-child(2) { top: 38%; right: 0; min-width: 220px; }
.hero__node-card:nth-child(3) { bottom: 8%; left: 18%; min-width: 200px; }
.hero__node-card .label {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: var(--cx-ember-soft);
}
.hero__node-card .value {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--cx-parchment);
}
.hero__node-card .meta {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(244,239,230,0.55);
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  bottom: var(--cx-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
}
.hero__cue::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(244,239,230,0.5), transparent);
  animation: cue-flow 2.4s linear infinite;
}
@keyframes cue-flow {
  0%   { transform: translateY(-12px); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── Promise / values strip ────────────────────────────── */
.values {
  background: var(--cx-parchment);
  border-top: 1px solid var(--cx-parchment-2);
  border-bottom: 1px solid var(--cx-parchment-2);
  padding: var(--cx-9) 0;
}
.values__head {
  max-width: var(--cx-wrap-narrow);
  margin: 0 auto var(--cx-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--cx-4);
  align-items: center;
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cx-5);
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
}
.value-card {
  background: var(--cx-halo);
  padding: var(--cx-7) var(--cx-6);
  border: 1px solid var(--cx-parchment-2);
  display: flex;
  flex-direction: column;
  gap: var(--cx-5);
  position: relative;
  transition: transform var(--cx-dur-base) var(--cx-ease-out),
              box-shadow var(--cx-dur-base) var(--cx-ease-out),
              border-color var(--cx-dur-base);
  will-change: transform;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cx-shadow-mid);
  border-color: var(--cx-ember);
}
.value-card__num {
  font-family: var(--cx-font-mono);
  font-size: 11px;
  letter-spacing: var(--cx-tracking-widest);
  color: var(--cx-ember);
  font-weight: 500;
}
.value-card__icon {
  width: 56px;
  height: 56px;
  color: var(--cx-midnight);
}
.value-card h3 {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: var(--cx-tracking-tight);
  margin: 0;
  color: var(--cx-midnight);
}
.value-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cx-stone);
}

/* ── Editorial intro section ───────────────────────────── */
.editorial {
  padding: var(--cx-10) 0;
  background: var(--cx-parchment);
  position: relative;
  overflow: hidden;
}
.editorial__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--cx-9);
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  align-items: start;
}
.editorial__sticky { position: sticky; top: 120px; }
.editorial__copy p {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--cx-text);
  margin: 0 0 var(--cx-5);
  font-variation-settings: 'opsz' 72;
}
.editorial__copy p:first-of-type::first-letter {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: 80px;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--cx-ember);
  font-variation-settings: 'opsz' 144;
}
.editorial__signature {
  margin-top: var(--cx-7);
  font-family: var(--cx-font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--cx-stone);
}

/* ── Businesses showcase ───────────────────────────────── */
.businesses {
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  padding: var(--cx-10) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.businesses::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern-hatch.svg");
  background-size: 40px 40px;
  background-repeat: repeat;
  opacity: 0.04;
  z-index: 0;
  color: var(--cx-parchment);
  will-change: transform;
}
.businesses__head {
  max-width: var(--cx-wrap);
  margin: 0 auto var(--cx-9);
  padding: 0 var(--cx-7);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cx-7);
  align-items: end;
}
.businesses__head .display-2 { color: var(--cx-parchment); }
.businesses__head p {
  color: rgba(244,239,230,0.7);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 50ch;
}
.businesses__grid {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cx-5);
  position: relative;
  z-index: 2;
}

.business-card {
  background: var(--cx-midnight-2);
  border: 1px solid rgba(244,239,230,0.10);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--cx-dur-base) var(--cx-ease-out),
              border-color var(--cx-dur-base);
  transform-style: preserve-3d;
  perspective: 1200px;
}
.business-card:hover {
  border-color: var(--cx-ember);
}
.business-card__visual {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--cx-midnight-2) 0%, #243559 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(244,239,230,0.10);
}
.business-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern-hatch.svg");
  background-size: 32px 32px;
  opacity: 0.06;
  color: var(--cx-parchment);
}
.business-card__pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cx-font-display);
  font-size: clamp(120px, 16vw, 220px);
  font-style: italic;
  font-weight: 300;
  color: rgba(244,239,230,0.06);
  letter-spacing: -0.04em;
  user-select: none;
  font-variation-settings: 'opsz' 144;
}
.business-card__num {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: var(--cx-ember-soft);
}
.business-card__cat {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: rgba(244,239,230,0.45);
}
.business-card__body {
  padding: var(--cx-6);
  display: flex;
  flex-direction: column;
  gap: var(--cx-4);
  flex: 1;
}
.business-card__brand img {
  height: 48px;
  width: auto;
  color: var(--cx-parchment);
}
.business-card h3 {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: var(--cx-tracking-tight);
  margin: 0;
  color: var(--cx-parchment);
}
.business-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244,239,230,0.65);
  flex: 1;
}
.business-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--cx-4);
  border-top: 1px solid rgba(244,239,230,0.1);
}
.business-card__locator {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
}

/* ── Timeline (history) ────────────────────────────────── */
.timeline {
  padding: var(--cx-10) 0;
  background: var(--cx-parchment);
  position: relative;
  overflow: hidden;
}
.timeline__head {
  max-width: var(--cx-wrap);
  margin: 0 auto var(--cx-9);
  padding: 0 var(--cx-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cx-7);
  align-items: end;
}
.timeline__track {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  position: relative;
}
.timeline__rail {
  position: absolute;
  top: 32px;
  left: var(--cx-7);
  right: var(--cx-7);
  height: 1px;
  background: var(--cx-parchment-2);
  z-index: 0;
}
.timeline__rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cx-ember), var(--cx-ember));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1500ms var(--cx-ease-standard);
}
.timeline__track.is-rail-in .timeline__rail::before { transform: scaleX(1); }
.timeline__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cx-5);
  position: relative;
  z-index: 1;
}
.timeline-item {
  display: flex;
  flex-direction: column;
  gap: var(--cx-4);
  position: relative;
  padding-top: 56px;
}
.timeline-item__dot {
  position: absolute;
  top: 24px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cx-parchment);
  border: 2px solid var(--cx-midnight);
  transition: all var(--cx-dur-base) var(--cx-ease-standard);
}
.timeline-item.is-active .timeline-item__dot {
  background: var(--cx-ember);
  border-color: var(--cx-ember);
  transform: scale(1.25);
}
.timeline-item__year {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--cx-midnight);
  letter-spacing: var(--cx-tracking-tight);
  font-variation-settings: 'opsz' 144;
}
.timeline-item__year em {
  font-style: italic;
  color: var(--cx-ember);
  font-weight: 300;
}
.timeline-item__title {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0;
  color: var(--cx-midnight);
}
.timeline-item__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cx-stone);
  margin: 0;
}

/* ── Stats / counters ──────────────────────────────────── */
.stats {
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  padding: var(--cx-9) 0;
  position: relative;
  overflow: hidden;
}
.stats__inner {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cx-7);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid rgba(244,239,230,0.15);
  padding-left: var(--cx-5);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
  color: var(--cx-parchment);
  letter-spacing: var(--cx-tracking-tighter);
  font-variation-settings: 'opsz' 144;
}
.stat__num em {
  font-style: italic;
  color: var(--cx-ember);
  font-weight: 300;
}
.stat__label {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: rgba(244,239,230,0.6);
}

/* ── Leadership ────────────────────────────────────────── */
.leadership {
  padding: var(--cx-10) 0;
  background: var(--cx-parchment);
}
.leadership__head {
  max-width: var(--cx-wrap-narrow);
  margin: 0 auto var(--cx-9);
  padding: 0 var(--cx-7);
  text-align: center;
}
.leadership__head .display-2 { margin: var(--cx-4) auto var(--cx-4); }
.leadership__head p { color: var(--cx-stone); font-size: 18px; max-width: 56ch; margin: 0 auto; }
.leadership__grid {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cx-5);
}
.leader {
  display: flex;
  flex-direction: column;
  gap: var(--cx-4);
}
.leader__avatar {
  aspect-ratio: 3/4;
  background: var(--cx-midnight);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cx-parchment-2);
  transition: transform var(--cx-dur-base) var(--cx-ease-out);
}
.leader:hover .leader__avatar { transform: translateY(-4px); }
.leader__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern-hatch.svg");
  background-size: 36px 36px;
  opacity: 0.08;
  color: var(--cx-parchment);
  pointer-events: none;
}
.leader__initial {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(80px, 9vw, 140px);
  line-height: 1;
  color: rgba(244,239,230,0.6);
  font-variation-settings: 'opsz' 144;
}
.leader__num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  color: var(--cx-ember-soft);
  z-index: 2;
}
.leader__corner {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--cx-font-mono);
  font-size: 9px;
  letter-spacing: var(--cx-tracking-widest);
  color: rgba(244,239,230,0.45);
  z-index: 2;
}
.leader__name {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: var(--cx-tracking-tight);
  margin: 0;
  color: var(--cx-midnight);
}
.leader__role {
  font-family: var(--cx-font-mono);
  font-size: 11px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: var(--cx-stone);
}

/* ── CTA wide band ─────────────────────────────────────── */
.cta-band {
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  padding: var(--cx-9) 0;
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--cx-7);
  align-items: center;
}
.cta-band h2 {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: var(--cx-tracking-tight);
  margin: 0;
  color: var(--cx-parchment);
  font-variation-settings: 'opsz' 144;
}
.cta-band h2 em { color: var(--cx-ember); font-style: italic; font-weight: 300; }
.cta-band__cta { display: flex; gap: var(--cx-3); justify-content: flex-end; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  padding: var(--cx-9) 0 var(--cx-6);
  border-top: 1px solid rgba(244,239,230,0.08);
}
.site-footer__inner {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: var(--cx-7);
  padding-bottom: var(--cx-7);
  border-bottom: 1px solid rgba(244,239,230,0.1);
}
.footer-brand img { height: 36px; width: auto; color: var(--cx-parchment); margin-bottom: var(--cx-4); }
.footer-brand p {
  font-family: var(--cx-font-display);
  font-style: italic;
  font-size: 16px;
  color: rgba(244,239,230,0.65);
  margin: 0;
  max-width: 30ch;
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: var(--cx-ember-soft);
  margin: 0 0 var(--cx-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(244,239,230,0.75);
  transition: color var(--cx-dur-fast);
}
.footer-col a:hover { color: var(--cx-ember-soft); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact .addr {
  font-family: var(--cx-font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--cx-parchment);
  line-height: 1.5;
  max-width: 28ch;
}
.footer-contact .row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cx-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244,239,230,0.7);
}
.footer-contact .row a { color: inherit; transition: color var(--cx-dur-fast); }
.footer-contact .row a:hover { color: var(--cx-ember-soft); }
.site-footer__bot {
  padding-top: var(--cx-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--cx-4);
}
.site-footer__bot span {
  font-family: var(--cx-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244,239,230,0.45);
}

/* ── Page hero (about / businesses / contact) ──────────── */
.page-hero {
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  padding: clamp(140px, 22vh, 240px) 0 var(--cx-9);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern-hatch.svg");
  background-size: 44px 44px;
  background-repeat: repeat;
  opacity: 0.05;
  color: var(--cx-parchment);
  z-index: 0;
  will-change: transform;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: 0 var(--cx-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--cx-9);
  align-items: end;
}
.page-hero h1 {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: var(--cx-tracking-tighter);
  margin: var(--cx-5) 0 0;
  color: var(--cx-parchment);
  font-variation-settings: 'opsz' 144;
}
.page-hero h1 em { font-style: italic; color: var(--cx-ember); font-weight: 300; }
.page-hero p {
  margin: 0;
  font-family: var(--cx-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: rgba(244,239,230,0.78);
}

/* ── Long-form prose (about / privacy etc.) ────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--cx-9) var(--cx-7);
}
.prose h2 {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: var(--cx-tracking-tight);
  margin: var(--cx-7) 0 var(--cx-4);
  color: var(--cx-midnight);
}
.prose h2 em { font-style: italic; color: var(--cx-ember); font-weight: 300; }
.prose p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cx-text);
  margin: 0 0 var(--cx-4);
}
.prose p strong { color: var(--cx-midnight); font-weight: 600; }

/* ── Contact page ──────────────────────────────────────── */
.contact-grid {
  max-width: var(--cx-wrap);
  margin: 0 auto;
  padding: var(--cx-9) var(--cx-7);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--cx-9);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--cx-6); }
.contact-card {
  background: var(--cx-halo);
  padding: var(--cx-6);
  border: 1px solid var(--cx-parchment-2);
  display: flex;
  flex-direction: column;
  gap: var(--cx-3);
}
.contact-card h3 {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  color: var(--cx-midnight);
}
.contact-card p { margin: 0; color: var(--cx-stone); font-size: 14px; line-height: 1.6; }
.contact-card a { color: var(--cx-midnight); border-bottom: 1px solid var(--cx-mist); transition: border-color var(--cx-dur-fast); }
.contact-card a:hover { border-bottom-color: var(--cx-ember); }

.contact-form {
  background: var(--cx-halo);
  padding: var(--cx-7);
  border: 1px solid var(--cx-parchment-2);
  display: flex;
  flex-direction: column;
  gap: var(--cx-5);
}
.contact-form h2 {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 var(--cx-2);
  color: var(--cx-midnight);
  letter-spacing: var(--cx-tracking-tight);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cx-4); }
.field label {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-widest);
  text-transform: uppercase;
  color: var(--cx-stone);
}
.field input, .field select, .field textarea {
  font-family: var(--cx-font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--cx-mist);
  background: var(--cx-parchment);
  color: var(--cx-midnight);
  border-radius: 0;
  transition: border-color var(--cx-dur-fast);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cx-midnight);
}

/* ── 404 ────────────────────────────────────────────── */
.four-oh-four {
  background: var(--cx-midnight);
  color: var(--cx-parchment);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--cx-9) var(--cx-7);
  text-align: center;
  gap: var(--cx-5);
  position: relative;
  overflow: hidden;
}
.four-oh-four::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/pattern-hatch.svg");
  background-size: 40px 40px;
  opacity: 0.05;
  color: var(--cx-parchment);
}
.four-oh-four__num {
  font-family: var(--cx-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 22vw, 280px);
  line-height: 1;
  color: var(--cx-ember);
  letter-spacing: var(--cx-tracking-tighter);
  font-variation-settings: 'opsz' 144;
  margin: 0;
  position: relative;
  z-index: 1;
}
.four-oh-four h1 {
  font-family: var(--cx-font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
  color: var(--cx-parchment);
  position: relative;
  z-index: 1;
}
.four-oh-four p {
  font-family: var(--cx-font-display);
  font-style: italic;
  font-size: 20px;
  color: rgba(244,239,230,0.7);
  max-width: 48ch;
  position: relative;
  z-index: 1;
  margin: 0;
}
.four-oh-four__cta { display: flex; gap: var(--cx-3); margin-top: var(--cx-4); position: relative; z-index: 1; }

/* ── Reveal helpers ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--cx-dur-rise) var(--cx-ease-out),
              transform var(--cx-dur-rise) var(--cx-ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--cx-dur-rise) var(--cx-ease-out),
              transform var(--cx-dur-rise) var(--cx-ease-out);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 80ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 160ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 320ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 480ms; }

/* ── Focus states ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cx-ember);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE — 1024 / 768 / 480
   ========================================================= */
@media (max-width: 1024px) {
  /* Header → mobile menu */
  .nav-primary, .nav-aux .phone, .nav-aux .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header__inner { grid-template-columns: auto 1fr auto; padding: 14px var(--cx-5); }

  .wrap, .wrap--tight, .wrap--narrow { padding: 0 var(--cx-5); }

  /* Hero stacks */
  .hero__inner { grid-template-columns: 1fr; gap: var(--cx-7); }
  .hero__visual { height: 360px; margin-top: var(--cx-5); }

  /* Values 4 → 2 */
  .values__grid { grid-template-columns: repeat(2, 1fr); padding: 0 var(--cx-5); }

  /* Editorial */
  .editorial__inner { grid-template-columns: 1fr; gap: var(--cx-6); padding: 0 var(--cx-5); }
  .editorial__sticky { position: relative; top: auto; }

  /* Businesses 3 → 1+2 */
  .businesses__head { grid-template-columns: 1fr; gap: var(--cx-5); padding: 0 var(--cx-5); }
  .businesses__grid { grid-template-columns: 1fr; padding: 0 var(--cx-5); }

  /* Timeline 4 → 2 */
  .timeline__head { grid-template-columns: 1fr; gap: var(--cx-5); padding: 0 var(--cx-5); }
  .timeline__items { grid-template-columns: repeat(2, 1fr); gap: var(--cx-7); }
  .timeline__rail { display: none; }
  .timeline__track { padding: 0 var(--cx-5); }

  /* Stats 4 → 2 */
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: var(--cx-6); padding: 0 var(--cx-5); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }

  /* Leadership 4 → 2 */
  .leadership__grid { grid-template-columns: repeat(2, 1fr); padding: 0 var(--cx-5); }
  .leadership__head { padding: 0 var(--cx-5); }

  /* CTA band */
  .cta-band__inner { grid-template-columns: 1fr; gap: var(--cx-5); padding: 0 var(--cx-5); }
  .cta-band__cta { justify-content: flex-start; }

  /* Footer 5 → 2 */
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--cx-6); padding: 0 0 var(--cx-6); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .site-footer__inner { padding: 0 var(--cx-5); }

  /* Page hero */
  .page-hero__inner { grid-template-columns: 1fr; gap: var(--cx-5); padding: 0 var(--cx-5); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: var(--cx-6); padding: var(--cx-7) var(--cx-5); }
}

@media (max-width: 768px) {
  /* Section padding tighter */
  .section { padding: var(--cx-9) 0; }
  .editorial { padding: var(--cx-9) 0; }
  .businesses, .timeline, .leadership { padding: var(--cx-9) 0; }

  /* Values 2 → 1 */
  .values__grid { grid-template-columns: 1fr; gap: var(--cx-4); }

  /* Hero meta wraps tighter */
  .hero__meta { gap: var(--cx-5); }

  /* Hero visual smaller */
  .hero__visual {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--cx-3);
  }
  .hero__node-card {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    min-width: 0 !important;
    width: 100%;
    padding: 14px 18px;
  }
  .hero__node-card .value { font-size: 18px; }

  /* Hero CTAs stack */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }

  /* Timeline 2 → 1 */
  .timeline__items { grid-template-columns: 1fr; }

  /* Stats 2 → 1 */
  .stats__inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; padding-top: var(--cx-4); border-top: 1px solid rgba(244,239,230,0.15); }
  .stat:first-child { border-top: 0; padding-top: 0; }

  /* Leadership 2 → 1 */
  .leadership__grid { grid-template-columns: 1fr; }

  /* Contact form tighter */
  .field--row { grid-template-columns: 1fr; }
  .contact-form { padding: var(--cx-5); }

  /* Footer 2 → 1 */
  .site-footer__top { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .site-footer__bot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* Type scaling */
  body { font-size: 15px; }
  .hero__title { font-size: clamp(44px, 12vw, 72px); }
  .display-1 { font-size: clamp(48px, 13vw, 72px); }
  .display-2 { font-size: clamp(36px, 10vw, 56px); }

  /* Hero padding */
  .hero { padding: 100px 0 var(--cx-7); }
  .hero__inner { gap: var(--cx-5); }

  /* Section padding */
  .section { padding: var(--cx-8) 0; }
  .editorial, .businesses, .timeline, .leadership, .stats { padding: var(--cx-8) 0; }

  /* Wrap padding */
  .wrap, .wrap--tight, .wrap--narrow { padding: 0 var(--cx-4); }
  .values__grid, .businesses__grid, .leadership__grid, .stats__inner,
  .editorial__inner, .timeline__head, .businesses__head, .leadership__head,
  .timeline__track, .cta-band__inner, .page-hero__inner, .site-footer__inner,
  .contact-grid {
    padding-left: var(--cx-4);
    padding-right: var(--cx-4);
  }

  /* Buttons full width on small */
  .btn { padding: 14px 20px; font-size: 14px; width: 100%; justify-content: center; }
  .hero__ctas .btn { width: 100%; }
  .cta-band__cta .btn { width: 100%; }

  /* Inputs prevent iOS zoom */
  .field input, .field select, .field textarea { font-size: 16px; padding: 12px 14px; }

  /* Mobile menu */
  .mobile-menu a { font-size: 26px; }

  /* Editorial drop cap smaller */
  .editorial__copy p:first-of-type::first-letter { font-size: 56px; margin: 4px 8px 0 0; }

  /* 404 num */
  .four-oh-four__num { font-size: clamp(96px, 30vw, 200px); }

  /* Page hero h1 tighter on tiny screens */
  .page-hero h1 { font-size: clamp(40px, 11vw, 64px); }
}

/* ── Touch device — disable mouse-tilt 3D ──────────────── */
@media (hover: none) and (pointer: coarse) {
  .business-card:hover { transform: none; }
  .value-card:hover { transform: none; }
  .nav-link, .btn { min-height: 44px; }
}

/* ════════════════════════════════════════════════════════
   BUSINESS-SECTION — full-width brand showcase (businesses page)
   ════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════
   CINEMATIC 3D ENHANCEMENTS
   Scroll progress · cursor follower · depth scene · magnetic
   ════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ─────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cx-ember) 0%, var(--cx-ember-soft) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 80ms linear;
  box-shadow: 0 0 12px rgba(245, 149, 58, 0.5);
}

/* ── Cursor follower (only shows on dark sections) ───── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 176, 94, 0.12) 0%, rgba(245, 149, 58, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 280ms var(--cx-ease-out);
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ── Hero: vignette to keep copy readable over canvas ── */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 25% 50%, rgba(122, 22, 44, 0.55) 0%, rgba(122, 22, 44, 0) 60%),
    linear-gradient(180deg, rgba(122, 22, 44, 0) 0%, rgba(122, 22, 44, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__constellation { z-index: 0; }
.hero__inner { position: relative; z-index: 2; }
.hero__cue { z-index: 3; }

/* ── Depth scene utilities ───────────────────────────── */
.scene-3d {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.depth-layer {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Cinematic section entry ─────────────────────────── */
[data-cinematic] {
  opacity: 0;
  transform: translate3d(0, 60px, 0) scale(0.97);
  transition: opacity 1100ms var(--cx-ease-out), transform 1100ms var(--cx-ease-out);
}
[data-cinematic].is-cinematic-on {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ── Enhanced reveal — adds depth ────────────────────── */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 900ms var(--cx-ease-out), transform 900ms var(--cx-ease-out);
}
.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 800ms var(--cx-ease-out), transform 800ms var(--cx-ease-out);
}
.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ── Business card 3D — base preserves perspective ───── */
.business-card,
.value-card,
.leader,
.contact-card {
  transform-style: preserve-3d;
  transition: transform 320ms var(--cx-ease-out), box-shadow 320ms var(--cx-ease-out);
  will-change: transform;
}

/* ── Magnetic button base ───────────────────────────── */
[data-magnetic] {
  transition: transform 220ms var(--cx-ease-out);
  will-change: transform;
}

/* ── Floating hero node-cards smoother transitions ──── */
.hero__node-card {
  transition: transform 280ms var(--cx-ease-out), opacity 800ms var(--cx-ease-out);
  will-change: transform;
}

/* ── Section transitions — smooth curtain between dark/light ── */
section {
  position: relative;
}

/* ── Reduced motion: kill all the moving parts ──────── */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .scroll-progress__bar { transition: none; }
  [data-cinematic], .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .business-card, .value-card, .leader, .contact-card,
  .hero__node-card, [data-magnetic] {
    transform: none !important;
    transition: none !important;
  }
}

/* ── Touch device — disable cursor follower & magnetic ── */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ── Tablet refinements (768–1024px) ────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--cx-7);
  }
  .hero__visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cx-3);
  }
  .hero__node-card {
    position: static;
    transform: none !important;
  }
  .businesses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .businesses__grid .business-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--cx-6);
  }
}

/* ── Phone refinements (under 768px) — hero canvas dimmer for readability ── */
@media (max-width: 768px) {
  .hero::before {
    background:
      radial-gradient(ellipse 90% 70% at 50% 40%, rgba(122, 22, 44, 0.65) 0%, rgba(122, 22, 44, 0.2) 70%),
      linear-gradient(180deg, rgba(122, 22, 44, 0.2) 0%, rgba(122, 22, 44, 0.7) 100%);
  }
  .hero__visual {
    display: none; /* node-cards hidden on phone — meta strip carries the info */
  }
  .hero__cue { display: none; }
  .scroll-progress { height: 1.5px; }
}

/* ════════════════════════════════════════════════════════
   BRAND-ELITE FINISHING TOUCHES
   Wine + cream + orange · Fraunces 300 · lowercase · pill
   ════════════════════════════════════════════════════════ */

/* ── Subtle warm grain overlay on cream surfaces ─────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 20, 22, 0.025) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}
[data-dark-section] { isolation: isolate; }

/* ── Selection — already in brand tokens, reinforce ──── */
::selection { background: var(--cx-color-orange); color: var(--cx-color-wine-deep); }

/* ── Refined hero — wine bg, cream copy, orange dots ── */
.hero {
  background: var(--cx-color-wine);
  color: var(--cx-color-cream);
}
.hero::before {
  background:
    radial-gradient(ellipse 70% 60% at 25% 50%, rgba(92, 15, 31, 0.55) 0%, rgba(92, 15, 31, 0) 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(245, 149, 58, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(122, 22, 44, 0) 0%, rgba(92, 15, 31, 0.6) 100%);
}

.hero__title {
  color: var(--cx-color-cream);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  letter-spacing: var(--cx-tracking-tightest);
}
.hero__title em {
  color: var(--cx-color-orange);
  font-style: italic;
  font-weight: 300;
}
.hero__sub { color: rgba(251, 247, 242, 0.78); }
.hero__meta-num em { color: var(--cx-color-orange); }
.hero__cue { color: rgba(251, 247, 242, 0.55); }

/* Hero node-cards — refined glass over wine */
.hero__node-card {
  background: rgba(251, 247, 242, 0.06);
  border: 1px solid rgba(251, 247, 242, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__node-card .label { color: var(--cx-color-orange-warm); }
.hero__node-card .value { color: var(--cx-color-cream); }
.hero__node-card .meta { color: rgba(251, 247, 242, 0.6); }

/* ── Buttons: brand-styled pill primary/inverse ─────── */
.btn {
  font-family: var(--cx-font-sans);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: var(--cx-radius-pill);
  transition: all var(--cx-duration-base) var(--cx-ease-standard);
}
.btn--primary {
  background: var(--cx-color-wine);
  color: var(--cx-color-cream);
  border: 1px solid var(--cx-color-wine);
}
.btn--primary:hover {
  background: var(--cx-color-wine-deep);
  border-color: var(--cx-color-wine-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(122, 22, 44, 0.45);
}
.btn--inverse {
  background: var(--cx-color-cream);
  color: var(--cx-color-wine);
  border: 1px solid var(--cx-color-cream);
}
.btn--inverse:hover {
  background: var(--cx-color-orange);
  color: var(--cx-color-wine-deep);
  border-color: var(--cx-color-orange);
}
.btn--ghost-inverse {
  background: transparent;
  color: var(--cx-color-cream);
  border: 1px solid rgba(251, 247, 242, 0.30);
}
.btn--ghost-inverse:hover {
  border-color: var(--cx-color-orange);
  color: var(--cx-color-orange);
}
.btn--ghost {
  background: transparent;
  color: var(--cx-text-brand);
  border: 1px solid var(--cx-border);
}
.btn--ghost:hover {
  background: var(--cx-text-brand);
  color: var(--cx-color-cream);
  border-color: var(--cx-text-brand);
}

/* ── Header: cream-bg, blur on scroll ────────────────── */
.site-header {
  background: rgba(251, 247, 242, 0);
  transition: background 320ms var(--cx-ease-standard), backdrop-filter 320ms;
}
.site-header.is-scrolled {
  background: rgba(251, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cx-border-soft);
}
.site-header.is-inverted {
  background: rgba(122, 22, 44, 0);
}
.site-header.is-inverted.is-scrolled {
  background: rgba(122, 22, 44, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(251, 247, 242, 0.10);
}
.site-header.is-inverted .nav-link,
.site-header.is-inverted .phone,
.site-header.is-inverted .brand { color: var(--cx-color-cream); }
.site-header.is-inverted .btn--primary {
  background: var(--cx-color-cream);
  color: var(--cx-color-wine);
  border-color: var(--cx-color-cream);
}
.site-header.is-inverted .btn--primary:hover {
  background: var(--cx-color-orange);
  color: var(--cx-color-wine-deep);
}
.site-header.is-inverted .nav-toggle span { background: var(--cx-color-cream); }

/* Nav links lowercase */
.nav-link, .nav-aux a, .mobile-menu a, .footer-col a, .site-footer__bot {
  text-transform: lowercase;
  letter-spacing: 0;
}
.nav-link { font-size: 14px; font-weight: 500; }

/* ── Cards: refined warm shadows ─────────────────────── */
.value-card,
.business-card,
.leader,
.contact-card {
  border-radius: var(--cx-radius-md);
}
.value-card {
  background: var(--cx-bg-elevated);
  border: 1px solid var(--cx-border-soft);
  box-shadow: 0 1px 0 rgba(31, 20, 22, 0.02);
}
.value-card:hover {
  box-shadow: 0 30px 60px -30px rgba(122, 22, 44, 0.20);
  border-color: rgba(122, 22, 44, 0.15);
}
.value-card__num {
  color: var(--cx-color-orange-deep);
  font-family: var(--cx-font-mono);
  font-size: 11px;
  letter-spacing: var(--cx-tracking-widest);
}
.value-card__icon { color: var(--cx-color-wine); }
.value-card h3 {
  font-family: var(--cx-font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 80;
  color: var(--cx-color-wine);
  letter-spacing: var(--cx-tracking-snug);
}

/* Business card on dark wine */
.business-card {
  background: var(--cx-color-wine-deep);
  color: var(--cx-color-cream);
  border: 1px solid rgba(251, 247, 242, 0.06);
  border-radius: var(--cx-radius-md);
}
.business-card:hover {
  border-color: rgba(245, 149, 58, 0.30);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35);
}
.business-card__num,
.business-card__cat { color: var(--cx-color-orange-warm); }
.business-card__pattern { color: rgba(245, 149, 58, 0.12); }
.business-card h3 {
  font-family: var(--cx-font-display);
  font-weight: 300;
  color: var(--cx-color-cream);
  font-variation-settings: 'opsz' 80;
}
.business-card p { color: rgba(251, 247, 242, 0.72); }
.business-card__locator { color: rgba(251, 247, 242, 0.5); }

/* ── Editorial section drop cap in Fraunces ──────────── */
.editorial__copy p:first-of-type::first-letter {
  font-family: var(--cx-font-display);
  font-weight: 300;
  color: var(--cx-color-wine);
  font-style: normal;
  font-variation-settings: 'opsz' 144;
}
.editorial__sticky h2,
.editorial__sticky h2 em { color: var(--cx-color-wine); }
.editorial__sticky h2 em { color: var(--cx-color-orange-deep); }

/* ── Stats: orange numbers on wine ──────────────────── */
.stat__num {
  color: var(--cx-color-cream);
  font-family: var(--cx-font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  letter-spacing: var(--cx-tracking-tighter);
}
.stat__num em { color: var(--cx-color-orange); font-style: italic; }
.stat__label { color: rgba(251, 247, 242, 0.58); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--cx-color-wine-deep);
  color: var(--cx-color-cream);
}
.footer-col h4 { color: var(--cx-color-orange-warm); text-transform: lowercase; font-weight: 500; font-size: 12px; letter-spacing: var(--cx-tracking-wider); font-family: var(--cx-font-mono); }
.footer-col ul a:hover { color: var(--cx-color-orange); }
.footer-contact .row a:hover { color: var(--cx-color-orange); }
.site-footer__bot { color: rgba(251, 247, 242, 0.45); border-top-color: rgba(251, 247, 242, 0.10); }

/* ── CTA band: wine bg with orange accent dots ──────── */
.cta-band {
  background: var(--cx-color-wine);
  color: var(--cx-color-cream);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(245, 149, 58, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band__inner h2 { color: var(--cx-color-cream); font-weight: 300; }
.cta-band__inner h2 em { color: var(--cx-color-orange); }

/* ── Page hero (about/contact/businesses) ───────────── */
.page-hero {
  background: var(--cx-color-wine);
  color: var(--cx-color-cream);
}
.page-hero h1 {
  color: var(--cx-color-cream);
  font-family: var(--cx-font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  letter-spacing: var(--cx-tracking-tightest);
}
.page-hero h1 em { color: var(--cx-color-orange); }
.page-hero__sub, .page-hero p { color: rgba(251, 247, 242, 0.78); }

/* ── Prose typography ────────────────────────────────── */
.prose h2, .prose h3 {
  font-family: var(--cx-font-display);
  font-weight: 300;
  color: var(--cx-color-wine);
  font-variation-settings: 'opsz' 80;
}
.prose strong { color: var(--cx-color-wine); font-weight: 600; }
.prose a { color: var(--cx-color-orange-deep); border-bottom: 1px solid var(--cx-color-orange-deep); }
.prose a:hover { color: var(--cx-color-wine); border-color: var(--cx-color-wine); }

/* ── Timeline ────────────────────────────────────────── */
.timeline { color: var(--cx-color-cream); }
.timeline__step h3 { font-family: var(--cx-font-display); font-weight: 300; color: var(--cx-color-cream); }
.timeline__step .year { color: var(--cx-color-orange); font-family: var(--cx-font-display); font-weight: 300; font-style: italic; }

/* ── Leader card ────────────────────────────────────── */
.leader {
  background: var(--cx-bg-elevated);
  border: 1px solid var(--cx-border-soft);
}
.leader__avatar {
  background: var(--cx-color-wine);
  color: var(--cx-color-cream);
  font-family: var(--cx-font-display);
  font-style: italic;
  font-weight: 300;
}
.leader h4 { font-family: var(--cx-font-display); color: var(--cx-color-wine); font-weight: 300; }
.leader__role { color: var(--cx-color-warm-gray); font-family: var(--cx-font-mono); text-transform: lowercase; font-size: 11px; letter-spacing: var(--cx-tracking-widest); }

/* ── Contact form: brand inputs ─────────────────────── */
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  font-family: var(--cx-font-sans);
  background: var(--cx-bg-elevated);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-sm);
  color: var(--cx-text-primary);
  padding: 14px 16px;
  width: 100%;
  transition: border-color var(--cx-duration-base) var(--cx-ease-standard), box-shadow var(--cx-duration-base);
}
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
  outline: none;
  border-color: var(--cx-color-wine);
  box-shadow: var(--cx-shadow-focus);
}
.contact-form .field label {
  font-family: var(--cx-font-mono);
  font-size: 10px;
  letter-spacing: var(--cx-tracking-wider);
  text-transform: lowercase;
  color: var(--cx-text-muted);
}
.contact-card {
  background: var(--cx-bg-elevated);
  border: 1px solid var(--cx-border-soft);
}
.contact-card h4 { font-family: var(--cx-font-display); color: var(--cx-color-wine); font-weight: 300; text-transform: lowercase; }
.contact-card a { color: var(--cx-color-orange-deep); }
.contact-card a:hover { color: var(--cx-color-wine); }

/* ── 404 ─────────────────────────────────────────────── */
.four-oh-four__num {
  color: var(--cx-color-orange-deep);
  font-family: var(--cx-font-display);
  font-style: italic;
  font-weight: 300;
}
.four-oh-four h1 { color: var(--cx-color-wine); font-family: var(--cx-font-display); font-weight: 300; }
.four-oh-four p { color: var(--cx-color-warm-gray); }

/* ── Brand decorative arc divider ───────────────────── */
.brand-arcs-divider {
  width: 64px;
  height: 48px;
  margin: 0 auto;
  display: block;
  color: var(--cx-color-orange);
}
.brand-arcs-divider path { stroke: currentColor; stroke-width: 4; fill: none; stroke-linecap: round; }

/* ── Link arrow ─────────────────────────────────────── */
.link-arrow {
  color: var(--cx-color-orange-deep);
  font-family: var(--cx-font-mono);
  text-transform: lowercase;
  font-size: 12px;
  letter-spacing: var(--cx-tracking-wider);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--cx-duration-base) var(--cx-ease-standard);
}
.link-arrow:hover { gap: 14px; color: var(--cx-color-wine); }
.link-arrow--inverse { color: var(--cx-color-orange-warm); }
.link-arrow--inverse:hover { color: var(--cx-color-orange); }

/* ── Brand-section (businesses page) recolor ────────── */
.brand-section h2 { color: var(--cx-color-wine); font-weight: 300; font-family: var(--cx-font-display); }
.brand-section h2 em { color: var(--cx-color-orange-deep); font-style: italic; font-weight: 300; }
.brand-section__lede { color: var(--cx-color-wine-deep); font-family: var(--cx-font-display); font-style: italic; font-weight: 300; }
.brand-section__bigletter { color: rgba(122, 22, 44, 0.06); }
.brand-section__bigletter--accent { color: rgba(245, 149, 58, 0.18); }
.brand-section__tag { color: var(--cx-color-orange-deep); }
.brand-fact__num { color: var(--cx-color-wine); font-family: var(--cx-font-display); font-weight: 300; }
.brand-fact__num em { color: var(--cx-color-orange-deep); font-style: italic; }
.brand-fact__label { color: var(--cx-color-warm-gray); }

/* ── Mobile menu cream styling ──────────────────────── */
.mobile-menu {
  background: var(--cx-color-wine);
  color: var(--cx-color-cream);
}
.mobile-menu a {
  font-family: var(--cx-font-display);
  font-weight: 300;
  text-transform: lowercase;
  color: var(--cx-color-cream);
}
.mobile-menu a:hover { color: var(--cx-color-orange); }
.mobile-menu .mobile-sub { color: rgba(251, 247, 242, 0.6); font-family: var(--cx-font-sans); font-size: 16px; }

/* ── Reveal animations refined ──────────────────────── */
.reveal { transform: translate3d(0, 24px, 0); }

/* ── Logo swap on inverted header ───────────────────── */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 52px; width: auto; display: block; }
.brand__logo--inverse { display: none; }
.site-header.is-inverted .brand__logo--default { display: none; }
.site-header.is-inverted .brand__logo--inverse { display: block; }

/* ── Hero arcs (brand signature motif) ──────────────── */
.hero__arcs {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 0 var(--cx-4);
  color: var(--cx-color-orange);
}
@media (max-width: 768px) {
  .hero__arcs { width: 60px; margin: 0 auto var(--cx-3); }
}

/* ════════════════════════════════════════════════════════
   v1.3 — Logo size (brand-kit min 140px wide for wordmark+arcs)
   ════════════════════════════════════════════════════════ */
.brand__logo { height: 52px; }                              /* desktop: ~156px wide */
@media (max-width: 1024px) { .brand__logo { height: 44px; } } /* tablet: ~132px wide */
@media (max-width: 768px)  { .brand__logo { height: 40px; } } /* mobile: ~120px wide */
@media (max-width: 480px)  { .brand__logo { height: 36px; } } /* small phone: ~108px */

/* Header gets a touch more breathing room to accommodate the larger logo */
.site-header__inner { min-height: 80px; }
@media (max-width: 768px) { .site-header__inner { min-height: 68px; } }

/* Nav-aux gap consistency on the right cluster */
.nav-aux { gap: var(--cx-3); align-items: center; }
