/* =====================================================================
   SKYLINE HORIZON · Corporate minimalist visual system
   ===================================================================== */

:root {
  /* Surfaces */
  --paper:      #f8f7f2;
  --bone:       #eeece4;
  --mist:       #e8edf0;
  --ink:        #111314;
  --graphite:   #202426;
  --night:      #0e1112;

  /* Type colors */
  --muted:      #70767b;
  --soft:       #303638;

  /* Lines */
  --rule:       #d7d9d5;
  --rule-soft:  #e8e8e2;
  --rule-dark:  rgba(255,255,255,0.10);

  /* Accents */
  --steel:      #37566a;
  --sage:       #697b61;
  --copper:     #9b6844;
  --steel-soft: #8ba4b3;

  /* Layout */
  --max:        1320px;
  --pad:        clamp(10px, 2vw, 28px);
  --nav-h:      55px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --shadow-soft: 0 24px 60px -44px rgba(17, 19, 20, 0.45);

  /* Type */
  --sans:       "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand-sans: "Satoshi", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:       ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============== Reset =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern";
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

/* =============== Helpers =============== */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(48px, 6vw, 90px) 0; }

/* Eyebrow / labels / indices */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 400;
}
.section-head {
  margin-bottom: clamp(56px, 6vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.section-head--split {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 48px;
  align-items: start;
}
.section-head__left { display: flex; flex-direction: column; gap: 14px; }
.section-head__right { display: flex; flex-direction: column; gap: 24px; max-width: 64ch; }

.section-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 32ch;
}
.section-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--steel);
}
.section-desc {
  color: var(--soft);
  font-size: clamp(15px, 1.1vw, 17px);
  max-width: 56ch;
}

.display {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 32ch;
}

/* =============== NAV =============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(247, 245, 239, 0.95);
}
@media (max-width: 768px) {
  .nav.is-hidden-for-change-cost {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
  }
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav__brand { display: flex; align-items: center; gap: 12px; margin-left: calc(var(--pad) * -0.4); }
.nav__logo {
  width: 44px; height: 32px;
  object-fit: contain;
  filter: saturate(1.05);
}
.nav__name {
  font-family: var(--brand-sans);
  font-size: 19px;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
}
.nav__word--skyline { font-weight: 500; color: var(--ink); }
.nav__word--horizon { font-weight: 400; color: var(--steel); }

.nav__links {
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px);
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__links a.nav__item--active {
  color: var(--ink);
  font-weight: 500;
}
.nav__links a.nav__item--active::after {
  width: 100%;
  background: var(--steel);
}
.drawer-only { display: none; }
.nav__backdrop {
  display: none;
}
.nav__item-icon svg,
.nav__cta-icon svg {
  display: none;
}

.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--soft);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); background: var(--bone); }
.flag {
  width: 18px; height: 12px; display: inline-block; border-radius: 1px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  position: relative; overflow: hidden;
}
.flag.es { background: linear-gradient(to bottom, #FCD116 0 50%, #003893 50% 75%, #CE1126 75% 100%); }
.flag.en {
  background: #012169;
}
.flag.en::before, .flag.en::after { content:""; position:absolute; inset:0; }
.flag.en::before {
  background:
    linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%);
}
.flag.en::after {
  background:
    linear-gradient(to bottom, transparent 40%, #C8102E 40% 60%, transparent 60%),
    linear-gradient(to right, transparent 40%, #C8102E 40% 60%, transparent 60%);
}

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 10px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav__toggle span {
  width: 18px; height: 1px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* =============== HERO =============== */
/* Hero — Editorial light banner (no video) */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(139, 164, 179, 0.18) 0%, rgba(139, 164, 179, 0) 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(105, 123, 97, 0.12) 0%, rgba(105, 123, 97, 0) 70%),
    var(--paper);
  color: var(--ink);
}

/* Subtle grid backdrop for editorial rhythm */
.hero__grid {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17, 19, 20, 0.05) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
}

/* Content layer (3-row editorial grid: head | body | metrics) */
.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 5vh, 64px);
  padding-top: var(--nav-h);
  padding-bottom: clamp(48px, 6vw, 90px);
}

/* Head row — masthead */
.hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero__head-left {
  display: flex; align-items: center; gap: 18px;
  min-width: 0;
}
.hero__head-right {
  display: flex; align-items: center; gap: 10px;
}
.hero__idx { color: var(--muted); }
.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
}
.hero__coord {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__signal {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 0 0 rgba(55, 86, 106, 0.55);
  animation: heroSignal 2.6s ease-in-out infinite;
}
@keyframes heroSignal {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 0 0 rgba(55, 86, 106, 0.45); }
  50%      { opacity: 1;    box-shadow: 0 0 0 6px rgba(55, 86, 106, 0); }
}

/* Main two-column row: text/CTA left + KPIs right */
.hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "body metrics"
    "cta  .";
  gap: clamp(28px, 4vw, 64px);
  row-gap: clamp(20px, 2.4vw, 32px);
  align-items: center;
}
.hero__body    { grid-area: body; }
.hero__metrics { grid-area: metrics; }
.hero__cta     { grid-area: cta; align-self: start; }

/* Body — title block */
.hero__body {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vh, 36px);
  align-self: center;
  max-width: 920px;
}

.hero__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 6.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__title .line { display: block; padding-bottom: 0.08em; }
.hero__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--steel);
}
.hero__title .line--2 { padding-left: clamp(0px, 5vw, 80px); }

.hero__lead {
  max-width: 56ch;
  font-weight: 400;
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--soft);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
}

/* Hero CTAs — light theme, preserve random logo-color hover */
.hero .btn--primary {
  background: #202426;
  color: var(--paper);
  border: 1px solid #202426;
  padding: 16px 26px;
}
.hero .btn--primary:hover,
.hero .btn--primary:focus-visible {
  background: var(--hero-hover-color, var(--ink));
  border-color: var(--hero-hover-color, var(--ink));
  color: var(--ink);
}
.hero .btn--quiet {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 16px 22px;
}
.hero .btn--quiet:hover,
.hero .btn--quiet:focus-visible {
  color: var(--ink);
  background: var(--hero-hover-color, var(--bone));
  border-color: var(--hero-hover-color, var(--ink));
}

/* Metrics column — 2x2 grid of square KPI tiles */
.hero__metrics {
  align-self: center;
}
.hero__kpis {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  gap: clamp(8px, 0.95vw, 14px);
  align-items: stretch;
  justify-content: center;
}
.kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: clamp(10px, 1vw, 16px);
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--kpi-bg, var(--bone));
  color: var(--ink);
  height: clamp(130px, 11vw, 150px);
  aspect-ratio: auto;
  transition: opacity 0.8s var(--ease), background-color 0.8s var(--ease), width 0.8s var(--ease), min-width 0.8s var(--ease), max-width 0.8s var(--ease);
}
.kpi.is-transitioning {
  opacity: 0;
}
.hero__kpis .kpi,
.hero__kpis .kpi:nth-child(1),
.hero__kpis .kpi:nth-child(2),
.hero__kpis .kpi:nth-child(3),
.hero__kpis .kpi:nth-child(4) {
  justify-self: stretch;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.kpi__value,
.kpi__label {
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (prefers-reduced-motion: reduce) {
  .kpi {
    transition: none !important;
  }
  .kpi.is-transitioning {
    opacity: 1 !important;
  }
}
.kpi__value {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: none;
  max-width: 100%;
}
.kpi__label {
  font-family: var(--sans);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

/* =============== Buttons =============== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 22px; height: 11px;
  transition: transform 0.4s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--primary:hover { background: var(--steel); border-color: var(--steel); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 16px 22px;
}
.btn--quiet:hover { border-color: var(--ink); background: var(--bone); }

.btn:focus-visible,
.nav__links a:focus-visible,
.lang-switch:focus-visible,
.nav__toggle:focus-visible,
.nav__drawer-close:focus-visible,
.contact__form input:focus-visible,
.contact__form textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

/* =============== MARQUEE =============== */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  padding: 22px 0;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  gap: 32px;
  align-items: center;
}
.marquee__track span {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0;
  color: var(--ink);
}
.marquee__track i {
  color: var(--steel);
  font-style: normal;
  opacity: 0.5;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =============== VALUE PROP REDESIGN =============== */
.value-prop__shell {
  background: #FAF9F5;
  border: 1px solid rgba(17, 19, 20, 0.06);
  border-radius: var(--radius-md);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 16px 48px -36px rgba(17, 19, 20, 0.3);
  position: relative;
  overflow: hidden;
}

/* Encabezado editorial */
.value-prop__intro {
  margin-bottom: 48px;
  max-width: 900px;
}
.value-prop__intro-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.value-prop__intro .idx {
  font-family: var(--mono);
  font-size: clamp(12px, 0.9vw, 14px);
  color: var(--sage);
  font-weight: 500;
}
.value-prop__intro .section-label {
  margin-bottom: 0;
}
.value-prop__intro h2.display {
  font-family: var(--brand-sans);
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.value-prop__lead {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--soft);
  line-height: 1.7;
  max-width: 80ch;
}

/* Micro-KPIs */
.value-prop__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(17, 19, 20, 0.06);
  border-bottom: 1px solid rgba(17, 19, 20, 0.06);
  padding: 32px 0;
  margin-bottom: 48px;
}
.value-kpi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value-kpi__val {
  font-family: var(--brand-sans);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  color: var(--sage);
  letter-spacing: -0.01em;
}
.value-kpi__lbl {
  font-size: clamp(12px, 0.9vw, 13.5px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 28ch;
}

/* Main Grid */
.value-prop__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
  margin-bottom: 0;
}
.value-prop__left-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

/* Left column: 2x2 grid of Cards */
.value-prop__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.value-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #FFFFFF;
  border: 0.7px solid rgba(17, 19, 20, 0.07);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px -2px rgba(17, 19, 20, 0.04);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value-card:hover, .value-card:focus-within {
  border-color: color-mix(in srgb, var(--value-card-neon, var(--sage)) 50%, transparent);
  background: color-mix(in srgb, var(--value-card-neon, var(--sage)) 20%, #FFFFFF);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--value-card-neon, var(--sage)) 50%, transparent),
              0 0 24px 6px color-mix(in srgb, var(--value-card-neon, var(--sage)) 50%, transparent);
}
.value-card.is-neon-active {
  border-color: color-mix(in srgb, var(--value-card-neon, var(--sage)) 50%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--value-card-neon, var(--sage)) 50%, transparent),
              0 0 20px 4px color-mix(in srgb, var(--value-card-neon, var(--sage)) 50%, transparent),
              inset 0 0 12px rgba(255, 255, 255, 0.8);
}
@media (prefers-reduced-motion: reduce) {
  .value-card.is-neon-active {
    transition-duration: 0.01ms;
  }
}
.value-card__icon {
  color: var(--sage);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card__title {
  font-family: var(--brand-sans);
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.value-card__desc {
  font-size: clamp(13px, 0.9vw, 14.5px);
  color: var(--soft);
  line-height: 1.6;
}


/* Right column: Modulo Skyline BI (.value-command) */
.value-command {
  background: #111314;
  border: 1px solid rgba(139, 164, 179, 0.18);
  border-radius: var(--radius-md);
  padding: 32px;
  color: #e8edf0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.value-command[data-active-stage] {
  border-color: rgba(105, 123, 97, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.value-command__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(139, 164, 179, 0.15);
  padding-bottom: 16px;
}
.value-command__title {
  font-family: var(--brand-sans);
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 17px);
  letter-spacing: -0.01em;
  color: #e8edf0;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--mono);
  color: #8ba4b3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px 4px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Timeline/fases */
.value-command__phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
.value-phase {
  /* button reset */
  appearance: none;
  background: none;
  border: none;
  padding: 9px 8px 15px;
  margin: 0;
  font: inherit;
  cursor: pointer;
  /* layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
  min-width: 0;
  min-height: 62px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-radius: 6px;
  border: 1px solid transparent;
}
.value-phase:hover {
  background: rgba(105, 123, 97, 0.12);
  border-color: rgba(105, 123, 97, 0.34);
  box-shadow: inset 0 0 18px rgba(105, 123, 97, 0.1);
}
.value-phase:focus-visible {
  outline: 2px solid rgba(139, 164, 179, 0.6);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(105, 123, 97, 0.25);
}
.value-phase__label {
  font-size: 11px;
  color: #8ba4b3;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
  white-space: normal;
}
.value-phase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 164, 179, 0.2);
  border: 1px solid rgba(139, 164, 179, 0.3);
  transition: all 0.3s;
  z-index: 2;
  flex-shrink: 0;
}
.value-phase.complete .value-phase__label {
  color: #8ba4b3;
}
.value-phase.complete .value-phase__dot {
  background: #8ba4b3;
  border-color: #8ba4b3;
}
.value-phase.active .value-phase__label {
  color: #e8edf0;
  font-weight: 600;
}
.value-phase.active,
.value-phase[aria-pressed="true"] {
  background: rgba(105, 123, 97, 0.15);
  border-color: rgba(105, 123, 97, 0.48);
  box-shadow: inset 0 0 22px rgba(105, 123, 97, 0.12);
}
.value-phase.active .value-phase__dot {
  background: #e8edf0;
  border: 2px solid var(--sage);
  box-shadow: 0 0 10px rgba(105, 123, 97, 0.5);
  transform: scale(1.3);
}
.value-phase.pending .value-phase__label {
  color: rgba(139, 164, 179, 0.4);
}
.value-command__phases::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  bottom: 5px;
  height: 2px;
  background: rgba(139, 164, 179, 0.12);
  z-index: 1;
}
.value-command__phases::after {
  content: "";
  position: absolute;
  left: 12.5%;
  bottom: 5px;
  height: 2px;
  z-index: 1;
  background: var(--steel-soft);
  transition: width 0.4s var(--ease);
}
/* Track progress based on active stage */
[data-active-stage="planning"] .value-command__phases::after { width: 0%; }
[data-active-stage="contracting"] .value-command__phases::after { width: 25%; }
[data-active-stage="execution"] .value-command__phases::after { width: 50%; }
[data-active-stage="delivery"] .value-command__phases::after { width: 75%; }

/* Microvisualizacion chart/progress */
.value-command__visual {
  background: rgba(139, 164, 179, 0.06);
  border: 1px solid rgba(139, 164, 179, 0.12);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.value-command__visual:hover, .value-command__visual:focus-within {
  border-color: rgba(105, 123, 97, 0.4);
  background: rgba(105, 123, 97, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: saturate(1.15);
}
.value-command__visual:focus-visible {
  outline: 2px solid rgba(139, 164, 179, 0.6);
  outline-offset: 2px;
}
.value-command__chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #8ba4b3;
}
.value-command__chart-percentage {
  font-family: var(--mono);
  color: #e8edf0;
  font-weight: 600;
}
.value-command__progress-rail {
  height: 4px;
  background: rgba(139, 164, 179, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.value-command__progress-fill {
  height: 100%;
  background: #70cccb;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(112, 204, 203, 0.5);
}
.value-command__sparkline-container {
  margin-top: 4px;
  border-top: 1px dashed rgba(139, 164, 179, 0.1);
  padding-top: 12px;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
}
.value-command__sparkline {
  display: block;
  width: 100%;
  height: 80px;
}

/* Metrics */
.value-command__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.value-metric {
  background: rgba(139, 164, 179, 0.06);
  border: 1px solid rgba(139, 164, 179, 0.12);
  border-left: 3px solid var(--steel-soft);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.value-metric:focus-visible {
  outline: 2px solid rgba(139, 164, 179, 0.6);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(105, 123, 97, 0.25);
}
.value-metric__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8ba4b3;
}
.value-metric__value {
  font-family: var(--brand-sans);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  color: #e8edf0;
}

/* Specific KPI Metrics Colors */
.value-metric--milestones {
  border-left-color: var(--sage);
}
.value-metric--risks {
  border-left-color: var(--copper);
}
.value-metric--commitments {
  border-left-color: var(--steel-soft);
}
.value-metric--evidence {
  border-left-color: var(--steel);
}

/* KPI Card Hovers */
.value-metric--milestones:hover, .value-metric--milestones:focus-within {
  background: rgba(105, 123, 97, 0.12);
  border-color: rgba(105, 123, 97, 0.42) rgba(105, 123, 97, 0.42) rgba(105, 123, 97, 0.42) var(--sage);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: saturate(1.16);
}
.value-metric--risks:hover, .value-metric--risks:focus-within {
  background: rgba(155, 104, 68, 0.12);
  border-color: rgba(155, 104, 68, 0.42) rgba(155, 104, 68, 0.42) rgba(155, 104, 68, 0.42) var(--copper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: saturate(1.16);
}
.value-metric--commitments:hover, .value-metric--commitments:focus-within {
  background: rgba(139, 164, 179, 0.12);
  border-color: rgba(139, 164, 179, 0.42) rgba(139, 164, 179, 0.42) rgba(139, 164, 179, 0.42) var(--steel-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: saturate(1.16);
}
.value-metric--evidence:hover, .value-metric--evidence:focus-within {
  background: rgba(55, 86, 106, 0.14);
  border-color: rgba(55, 86, 106, 0.48) rgba(55, 86, 106, 0.48) rgba(55, 86, 106, 0.48) var(--steel);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: saturate(1.16);
}

.value-metric--risks .value-metric__value {
  color: var(--copper);
}

/* Insight */
.value-command__insight {
  display: flex;
  gap: 12px;
  background: rgba(105, 123, 97, 0.08);
  border: 1px solid rgba(105, 123, 97, 0.2);
  border-left: 3px solid var(--sage);
  padding: 14px 18px;
  border-radius: 6px;
}
.value-command__insight-icon {
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}
.value-command__insight-text {
  font-size: 12.5px;
  color: #8ba4b3;
  line-height: 1.5;
}

/* CTA Skyline BI row */
.value-prop__cta-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  grid-row: 3;
}
.value-prop__cta-container {
  max-width: 100%;
}
.value-prop__skyline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bi-blue-soft, #DCECF2);
  color: var(--bi-steel, #245B73);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  margin-bottom: auto;
  width: fit-content;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.change-cost-bi__insight-cta:focus-visible,
.value-prop__skyline-cta:hover,
.value-prop__skyline-cta:focus-visible {
  background-color: var(--bi-steel, #245B73);
  color: var(--bi-white, #FFFFFF);
  transform: translateY(-1px);
}
.value-prop__skyline-cta .arrow {
  font-size: 1.1em;
  transition: transform 0.2s var(--ease);
}
.value-prop__skyline-cta:hover .arrow {
  transform: translateX(3px);
}

/* Footer / Cierre */
.value-prop__footer {
  border-top: 1px solid rgba(17, 19, 20, 0.06);
  padding-top: 28px;
  margin-top: 48px;
  text-align: center;
}
.value-prop__footer p {
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  color: var(--soft);
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Media query overrides */
@media (max-width: 1024px) {
  .value-prop__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .value-prop__kpis {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .value-prop__cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .value-prop__shell {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .value-command {
    padding: 20px;
    gap: 20px;
  }
  .value-command__phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .value-command__phases::before,
  .value-command__phases::after {
    display: none;
  }
  .value-phase {
    min-height: 58px;
    padding: 8px 6px 10px;
  }
  .value-phase__label {
    font-size: 10.5px;
    line-height: 1.25;
  }
  .value-command__metrics {
    grid-template-columns: 1fr;
  }
}

/* =============== INTRO =============== */

/* =============== SERVICES =============== */
.services { background: var(--paper); }

.services__intro {
  max-width: 72ch;
  margin-bottom: 40px;
}
.services__intro p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--soft);
  line-height: 1.7;
}

/* Services Cards */
.services__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .services__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services__cards {
    grid-template-columns: 1fr;
  }
}

/* Service Card */
.service-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    background: color-mix(in srgb, var(--service-hover-neon, var(--service-neon)) 20%, #FFFFFF);
    border-color: color-mix(in srgb, var(--service-hover-neon, var(--service-neon)) 50%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--service-hover-neon, var(--service-neon)) 50%, transparent),
                0 0 12px 3px color-mix(in srgb, var(--service-hover-neon, var(--service-neon)) 50%, transparent);
  }
  .service-card:hover .service-card__bi-cta {
    background-color: var(--service-hover-neon, var(--service-neon));
    color: #fff;
    border-color: var(--service-hover-neon, var(--service-neon));
  }
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.service-card__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.service-card__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.service-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: clamp(13.5px, 0.95vw, 14.5px);
  color: var(--soft);
  line-height: 1.6;
}

/* Entregables — details/summary (cards colapsables) */
.service-card__deliverables {
  border-top: 1px solid var(--rule-soft);
  padding-top: 16px;
}
.service-card__deliverables summary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.service-card__deliverables summary::-webkit-details-marker { display: none; }
.service-card__deliverables summary::before {
  content: "+";
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.service-card__deliverables[open] summary::before {
  transform: rotate(45deg);
}
.service-card__deliverables summary:hover {
  color: var(--ink);
}
.service-card__deliverables ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}
.service-card__deliverables li {
  font-size: clamp(12.5px, 0.9vw, 13.5px);
  color: var(--soft);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.service-card__deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--service-neon, var(--sage));
}

/* Frase de valor */
.service-card__value {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--sage);
  border-left: 2px solid var(--sage);
  padding-left: 10px;
}
.service-card__bi-cta {
  align-self: flex-end;
  margin-top: auto;
  background-color: #d0fdd7;
  color: #1a5c2a;
  border-color: rgba(26, 92, 42, 0.15);
}
.service-card__bi-cta:hover,
.service-card__bi-cta:focus-visible {
  background-color: #1a5c2a;
  color: #d0fdd7;
}

/* Tone Rotation Modifiers */
.service-card--tone-1 {
  --service-neon: rgb(46, 184, 205);
  background: color-mix(in srgb, var(--service-neon) 6%, #FFFFFF);
  border-color: color-mix(in srgb, var(--service-neon) 25%, var(--rule));
}
.service-card--tone-2 {
  --service-neon: #f0634a;
  background: color-mix(in srgb, var(--service-neon) 6%, #FFFFFF);
  border-color: color-mix(in srgb, var(--service-neon) 25%, var(--rule));
}
.service-card--tone-3 {
  --service-neon: rgb(253, 196, 102);
  background: color-mix(in srgb, var(--service-neon) 6%, #FFFFFF);
  border-color: color-mix(in srgb, var(--service-neon) 25%, var(--rule));
}
.service-card--tone-4 {
  --service-neon: rgb(88, 195, 196);
  background: color-mix(in srgb, var(--service-neon) 6%, #FFFFFF);
  border-color: color-mix(in srgb, var(--service-neon) 25%, var(--rule));
}




/* =============== APPROACH =============== */
.approach { background: var(--bone); }

.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.approach__steps li {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 32px) clamp(40px, 5vw, 64px);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 24px;
  transition: background 0.4s var(--ease);
  position: relative;
}
.approach__steps li:last-child { border-right: none; }
.approach__steps li:hover { background: rgba(255,255,255,0.55); }

.step__num {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1;
  color: var(--steel);
  letter-spacing: 0;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}
.step__content { display: flex; flex-direction: column; gap: 12px; }
.step__content h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}
.step__content p {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

/* =============== SECTORS =============== */
.sectors { background: var(--paper); }

.sectors__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
}
.sectors__list li {
  display: flex; align-items: center; gap: 32px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: 0;
  color: var(--ink);
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
  cursor: default;
}
.sectors__list li:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--rule); }
.sectors__list li:nth-child(even) { padding-left: 32px; }
.sector__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 400;
}
.sector__name { transition: color 0.4s var(--ease); }
.sectors__list li:hover { background: rgba(232, 237, 240, 0.42); }
.sectors__list li:hover .sector__name { color: var(--steel); }

/* =============== ABOUT =============== */
.about { background: var(--ink); color: var(--paper); }
.about .section-head { border-top-color: var(--rule-dark); }
.about .section-label { color: rgba(247,245,239,0.55); }
.about .idx { color: rgba(247,245,239,0.45); }
.about .section-title { color: var(--paper); }
.about .section-title em { color: var(--steel-soft); }

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.about__col { display: flex; flex-direction: column; gap: 28px; }
.about__col p {
  color: #F9F9FB;
  font-weight: 400;
  font-size: clamp(14px, 1.05vw, 16px);
  max-width: 52ch;
  line-height: 1.7;
}

.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.value {
  background: var(--ink);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: background 0.4s var(--ease);
}
.value:hover { background: var(--graphite); }
.value__num {
  font-family: var(--sans);
  font-style: italic;
  font-size: 14px;
  color: var(--steel-soft);
  letter-spacing: 0.04em;
}
.value h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  color: #FFFFFF;
  margin-top: 24px;
}
.value p {
  font-size: 14px;
  color: #F9F9FB;
  line-height: 1.6;
}

/* =============== CONTACT =============== */
.contact { background: var(--paper); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.contact__intro { display: flex; flex-direction: column; gap: 28px; }
.contact__intro > p {
  color: var(--soft);
  font-size: clamp(15px, 1.1vw, 17px);
  max-width: 48ch;
  line-height: 1.7;
}
.contact__info {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--rule);
}
.contact__info li {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.contact__info li > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.contact__info a, .contact__info p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.contact__info a:hover { color: var(--steel); }

.contact__form {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bone);
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.field {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.field:last-of-type { border-bottom: none; padding-bottom: 8px; }
.field span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.contact__form input,
.contact__form textarea {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 19px);
  padding: 4px 0;
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus { outline: none; }
.contact__form .field:focus-within { border-bottom-color: var(--ink); }

.contact__form .btn--primary {
  align-self: flex-start;
  margin-top: 24px;
}
.form__status {
  font-size: 13px;
  color: var(--steel);
  min-height: 1.4em;
  margin-top: 12px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

/* =============== FOOTER =============== */
.footer {
  background: var(--night);
  color: rgba(247,245,239,0.65);
  padding: clamp(64px, 8vw, 96px) 0 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(48px, 8vw, 96px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.footer__brand img {
  width: 56px; height: 40px;
  object-fit: contain;
}
.footer__brand p {
  font-family: var(--brand-sans);
  font-weight: 400;
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 0px;
  letter-spacing: 0;
}
.footer__brand small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,239,0.5);
}
.footer__brand .nav__word--skyline { color: var(--paper); }
.footer__brand .nav__word--horizon { color: var(--paper); }
.footer__brand .nav__word--skyline { font-weight: 400; }
.footer__brand .nav__word--horizon { font-weight: 100; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 500;
  margin-bottom: 8px;
}
.footer__col a, .footer__col p {
  font-size: 13.5px;
  color: rgba(247,245,239,0.6);
  line-height: 1.5;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--steel-soft); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom small {
  font-size: 11.5px;
  color: rgba(247,245,239,0.4);
  letter-spacing: 0.03em;
}
.footer__mono {
  font-family: var(--mono);
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

/* =============== Reveal animations =============== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .nav__links,
  .nav__backdrop {
    transition: none;
  }
}

/* =============== Responsive =============== */
@media (max-width: 1100px) {
  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .hero {
    min-height: clamp(520px, 72vh, 680px);
  }
  .hero__title {
    font-size: clamp(36px, 6vw, 64px);
  }
  .service { grid-template-columns: 50px 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 50px; }
  .hero__main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "body"
      "metrics"
      "cta";
    gap: clamp(28px, 5vh, 48px);
  }
  .hero__kpis .kpi {
    cursor: pointer;
  }

  body.nav-lock {
    overflow: hidden;
  }
  .drawer-only {
    display: flex;
  }
  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 110;
    background: rgba(10, 15, 18, 0.22);
    backdrop-filter: blur(4px) saturate(0.9);
    -webkit-backdrop-filter: blur(4px) saturate(0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .nav.is-open .nav__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s var(--ease), visibility 0s;
  }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(250, 250, 247, 0.98);
    border: 1px solid rgba(215, 217, 213, 0.92);
    border-right: 0;
    border-radius: 26px 0 0 26px;
    margin-right: 0;
    padding: 0 14px 10px;
    width: min(82vw, 420px);
    min-width: min(82vw, 295px);
    max-width: calc(100vw - 24px);
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s var(--ease), opacity 0.2s var(--ease), visibility 0s linear 0.24s;
    box-shadow: -28px 28px 80px -42px rgba(17, 19, 20, 0.5);
    text-align: left;
  }
  .nav.is-open .nav__links {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.24s var(--ease), opacity 0.2s var(--ease), visibility 0s;
  }
  .nav__drawer-head {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--nav-h);
    padding: 0 0 0 2px;
    border-bottom: 1px solid var(--rule-soft);
    margin-bottom: 10px;
  }
  .nav__drawer-lang {
    height: 44px;
    min-width: 98px;
    justify-content: center;
    border-color: rgba(55, 86, 106, 0.2);
    background: #fffdf8;
    border-radius: 999px;
    padding: 8px 13px;
  }
  .nav__drawer-lang .flag {
    width: 20px;
    height: 14px;
  }
  .nav__lang-chevron {
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.55;
  }
  .nav__drawer-close {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: #fffdf8;
  }
  .nav__drawer-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: var(--ink);
    transform-origin: center;
  }
  .nav__drawer-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
  .nav__drawer-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
  .nav__links .nav__item:first-of-type {
    background: rgba(55, 86, 106, 0.09);
    color: var(--steel);
    border-color: rgba(55, 86, 106, 0.16);
  }
  .nav__links a {
    display: grid;
    grid-template-columns: 42px 1fr 16px;
    align-items: center;
    justify-content: stretch;
    gap: 13px;
    width: 100%;
    min-height: 64px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--rule-soft);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--sans);
    font-weight: 500;
    text-align: left;
    color: var(--soft);
  }
  .nav__links a::after { display: none; }
  .nav__item-icon,
  .nav__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(215, 217, 213, 0.95);
    border-radius: 50%;
    background: #fffdf8;
    color: var(--graphite);
  }
  .nav__item-icon svg,
  .nav__cta-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .nav__links .nav__item:first-of-type .nav__item-icon {
    border-color: rgba(55, 86, 106, 0.22);
    background: rgba(255, 253, 248, 0.95);
    color: var(--steel);
  }
  .nav__item-chevron {
    width: 9px;
    height: 9px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    justify-self: center;
    opacity: 0.55;
  }
  .nav__drawer-cta {
    margin-top: auto;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid rgba(55, 86, 106, 0.18);
    background: rgba(55, 86, 106, 0.07);
  }
  .nav__drawer-cta span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .nav__drawer-cta strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
  }
  .nav__drawer-cta small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.3;
  }
  .nav__cta-icon {
    color: var(--steel);
  }
  .nav__toggle { display: flex; }

  .hero {
    min-height: clamp(480px, 64vh, 600px);
  }
  .hero__inner {
    gap: clamp(22px, 4vh, 40px);
    padding-top: var(--nav-h);
    padding-bottom: clamp(48px, 6vw, 90px);
  }
  .hero__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero__head-right { width: 100%; justify-content: flex-start; }
  .hero__title {
    font-size: clamp(34px, 9vw, 56px);
  }
  .hero__title .line--2 { padding-left: 0; }
  .hero__lead {
    max-width: 100%;
    font-size: clamp(14px, 3.5vw, 16px);
  }
  .hero__shade {
    background:
      linear-gradient(180deg,
        rgba(8, 11, 14, 0.92) 0%,
        rgba(8, 11, 14, 0.55) 60%,
        rgba(8, 11, 14, 0.30) 100%);
  }

  .value-prop__grid,
  .intro__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .approach__steps { grid-template-columns: 1fr 1fr; }
  .approach__steps li:nth-child(2) { border-right: none; }
  .approach__steps li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }

  .sectors__list { grid-template-columns: 1fr; }
  .sectors__list li,
  .sectors__list li:nth-child(odd),
  .sectors__list li:nth-child(even) {
    padding: 24px 0;
    padding-left: 0;
    border-right: none;
  }

  .about__values { grid-template-columns: 1fr; }

  .diff-list { grid-template-columns: 1fr; gap: 16px; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .hero {
    min-height: clamp(440px, 60vh, 560px);
  }
  .hero__inner {
    gap: 20px;
    padding-top: var(--nav-h);
    padding-bottom: clamp(48px, 6vw, 48px);
  }
  .hero__body {
    gap: 18px;
  }
  .hero__head {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .hero__head-left { display: none; }
  .hero__title { font-size: clamp(28px, 9vw, 39px); }
  .hero__title .line { white-space: nowrap; }
  .hero__cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: clamp(6px, 2vw, 10px);
    width: 100%;
  }
  .hero .btn--primary,
  .hero .btn--quiet {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 11px clamp(8px, 2.4vw, 14px);
    font-size: clamp(9px, 2.65vw, 11px);
    letter-spacing: 0.04em;
  }
  .hero .btn--primary svg {
    display: none;
  }
  .kpi__value {
    font-size: clamp(16px, 5vw, 24px);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .kpi__label {
    font-size: clamp(9px, 2.5vw, 11px);
  }
  .hero__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 10px);
    width: 100%;
  }
  .hero__kpis .kpi,
  .hero__kpis .kpi:nth-child(1),
  .hero__kpis .kpi:nth-child(2),
  .hero__kpis .kpi:nth-child(3),
  .hero__kpis .kpi:nth-child(4) {
    justify-self: stretch;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto;
    min-height: 120px;
    padding: clamp(8px, 2.5vw, 12px);
    box-sizing: border-box;
  }
  .hero__shade {
    background:
      linear-gradient(180deg,
        rgba(8, 11, 14, 0.96) 0%,
        rgba(8, 11, 14, 0.66) 55%,
        rgba(8, 11, 14, 0.40) 100%);
  }
  .kpis { grid-template-columns: 1fr; gap: 20px; }
  .approach__steps { grid-template-columns: 1fr; }
  .approach__steps li { border-right: none; border-bottom: 1px solid var(--rule); }
  .approach__steps li:last-child { border-bottom: none; }
  .footer__cols { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service__num { padding-top: 0; }
  .contact__info li { grid-template-columns: 1fr; gap: 4px; }
  .nav__brand { gap: 9px; min-width: 0; }
  .nav__logo { width: 38px; height: 28px; flex: 0 0 auto; }
  .nav__name {
    display: inline-flex;
    max-width: none;
    font-size: 16px;
    line-height: 1;
  }
}

/* =============== Skyline Insights (editorial carousel: 3 + peek) =============== */
.insights {
  --insight-card-bg: #f7f6f3;
  --insight-card-alt-bg: #f7f6f3;
  --insight-card-border: #d6cec0;
  --insight-card-ink: #101820;
  --insight-card-muted: #46545a;
  --insight-card-radius: 8px;
  --insight-gap: 20px;
  --insight-card-width: calc((100% - (3.15 * var(--insight-gap))) / 3.15);
  background: #f8f7f2;
  padding: 20px 0 clamp(32px, 4vw, 60px);
  overflow-x: clip;
}

.insights__head {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.insights__carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

.insights__track {
  display: flex;
  gap: var(--insight-gap);
  list-style: none;
  margin: 0;
  width: 100%;
  padding-top: 12px;
  padding-bottom: 24px;
  padding-left: 0;
  padding-right: 0;
  scroll-padding-left: 0;
  scroll-padding-right: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x pan-y;
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  cursor: grab;
}
.insights__track::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari */
}
.insights__track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.insights__track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.insights__all-link-container {
  margin-top: 16px;
}
.insights__all-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--insight-card-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(49, 91, 115, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.insights__all-link:hover {
  color: rgba(49, 91, 115, 0.85);
  border-bottom-color: rgba(49, 91, 115, 0.85);
  transform: translateX(2px);
}

.insight-card {
  --card-tint: 49, 91, 115;
  position: relative;
  flex: 0 0 var(--insight-card-width);
  scroll-snap-align: start;
  border-radius: var(--insight-card-radius);
  background: var(--insight-card-bg);
  isolation: isolate;
  transition: transform 0.4s var(--ease);
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--insight-card-radius) + 1px);
  background: linear-gradient(135deg, rgba(var(--card-tint), 0.18), rgba(214, 206, 192, 0.18));
  box-shadow:
    0 18px 38px rgba(16, 24, 32, 0.14),
    0 0 0 1px rgba(214, 206, 192, 0.7);
  opacity: 0.82;
  z-index: -1;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .insight-card:hover,
  .insight-card:focus-within {
    transform: translateY(-4px);
  }
  .insight-card:hover::before,
  .insight-card:focus-within::before {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow:
      0 24px 52px rgba(var(--card-tint), 0.18),
      0 0 0 1.5px rgba(var(--card-tint), 0.45);
  }
}

.insight-card__link {
  display: flex;
  flex-direction: column;
  aspect-ratio: 20 / 29;
  border-radius: var(--insight-card-radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--insight-card-bg) 0%, var(--insight-card-bg) 38%, var(--insight-card-alt-bg) 38%, var(--insight-card-alt-bg) 100%),
    var(--insight-card-bg);
  cursor: pointer;
  color: var(--insight-card-ink);
  position: relative;
  z-index: 1;
  border: 1px solid var(--insight-card-border);
  box-shadow:
    inset 0 4px 0 rgba(var(--card-tint), 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
  .insight-card:hover .insight-card__link,
  .insight-card:focus-within .insight-card__link {
    border-color: var(--steel-soft);
  }
}

.insight-card__media {
  flex: 0 0 38%;
  overflow: hidden;
  position: relative;
}
.insight-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.02), rgba(233, 227, 216, 0.34)),
    rgba(var(--card-tint), 0.1);
  mix-blend-mode: multiply;
}
.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(1.01);
  transition: transform 0.5s var(--ease), translate 0.5s var(--ease);
}
@media (hover: hover) {
  .insight-card:hover .insight-card__media img,
  .insight-card:focus-within .insight-card__media img {
    transform: scale(1.03);
  }
}

.insight-card__body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1 1 auto;
  min-height: 0;
}

.insight-card__category {
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(var(--card-tint), 0.28);
  border-radius: 999px;
  background: rgba(var(--card-tint), 0.12);
  color: rgb(var(--card-tint));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.insight-card__eyebrow {
  margin: 8px 0 0;
  color: var(--insight-card-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.insight-card__title {
  font-family: var(--sans);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--insight-card-ink);
  margin: 0;
}

.insight-card__desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--insight-card-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--insight-card-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 0.3s ease, color 0.3s ease;
}
@media (hover: hover) {
  .insight-card:hover .insight-card__cta {
    transform: translateX(4px);
  }
}

.insights__controls {
  display: inline-flex !important;
  gap: 12px;
  align-self: flex-start;
  margin-top: 4px;
}
.insights__nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.insights__nav:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: scale(1.04);
}
.insights__nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.insights__nav[disabled],
.insights__nav[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

/* Responsive — adjust visible card count via card width */
@media (max-width: 1100px) {
  .insights { --insight-card-width: calc((100% - (2.4 * var(--insight-gap))) / 2.4); }
}
@media (max-width: 760px) {
  .insights { --insight-card-width: 88vw; }
  .insights__carousel {
    max-width: none;
    overflow: visible;
  }
  .insights__track {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--pad);
    padding-right: var(--pad);
    scroll-padding-left: var(--pad);
    scroll-padding-right: var(--pad);
  }
}
@media (max-width: 480px) {
  .insights { --insight-card-width: 88vw; }
  .insight-card__link { aspect-ratio: auto; min-height: 520px; }
  .insight-card__title { font-size: 20px; }
}

/* Dots, hint and nudge styles */
.insights__swipe-hint {
  display: none;
}
.insights__dots {
  display: none;
}

@media (max-width: 760px) {
  .insights__swipe-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-family: var(--mono);
    margin-bottom: 2px;
    padding-right: var(--pad);
    opacity: 0.85;
  }
  .insights__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .insights__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rule);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease);
  }
  .insights__dot--active {
    background: var(--ink);
    transform: scale(1.25);
  }
  .insights__controls {
    display: none !important;
  }
}

@keyframes insightNudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-15px); }
  60% { transform: translateX(5px); }
}
.insights__track.nudge-active {
  animation: insightNudge 1s var(--ease) 1;
}

/* =============== UI Nomenclature Labels (local/dev only) =============== */
body.ui-nomenclature-on [data-ui-id]:not(.nav):not(.nav__links) {
  position: relative;
}

body.ui-nomenclature-on [data-ui-id]::before {
  content: attr(data-ui-id);
  position: absolute;
  top: 2px;
  left: 2px;
  right: auto;
  bottom: auto;
  z-index: 2147483647;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #ff00ff;
  background: rgba(0, 0, 0, 0.72);
  padding: 2px 5px;
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.ui-nomenclature-on [data-ui-id][data-ui-label]::before {
  content: attr(data-ui-label);
}

/* =====================================================================
   SKYLINE INSIGHTS · Hub & Article Styles
   ===================================================================== */

.insights-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .insights-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .insights-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insights-hub-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  position: relative;
  border: 1px solid #D8D2C7;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  height: 100%;
}

.insights-hub-card:hover {
  transform: translateY(-4px);
  background: #F5F1E8;
  border-color: #D6CEC0;
  box-shadow: 0 12px 30px -15px rgba(17, 19, 20, 0.15);
}

.insights-hub-card__category {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.insights-hub-card__title {
  font-family: var(--brand-sans);
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--ink);
}

.insights-hub-card__title a {
  text-decoration: none;
  color: inherit;
}

.insights-hub-card__desc {
  font-size: 14px;
  color: #46545A;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.insights-hub-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
  text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.insights-hub-card__cta svg {
  transition: transform 0.3s var(--ease);
}

.insights-hub-card:hover .insights-hub-card__cta {
  color: var(--ink);
  gap: 12px;
}

.insights-hub-card:hover .insights-hub-card__cta svg {
  transform: translateX(3px);
}

/* Featured Card */
.insights-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #D8D2C7;
  overflow: hidden;
  margin-bottom: 48px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.insights-featured-card:hover {
  transform: translateY(-4px);
  background: #F5F1E8;
  border-color: #D6CEC0;
  box-shadow: 0 12px 30px -15px rgba(17, 19, 20, 0.15);
}

.insights-featured-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.insights-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.insights-featured-card:hover .insights-featured-card__media img {
  transform: scale(1.02);
}

.insights-featured-card__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.insights-featured-card__category {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.insights-featured-card__title {
  font-family: var(--brand-sans);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ink);
}

.insights-featured-card__title a {
  text-decoration: none;
  color: inherit;
}

.insights-featured-card__desc {
  font-size: clamp(14px, 1.1vw, 16px);
  color: #46545A;
  line-height: 1.6;
  margin-bottom: 28px;
}

.insights-featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
  text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.insights-featured-card__cta svg {
  transition: transform 0.3s var(--ease);
}

.insights-featured-card:hover .insights-featured-card__cta {
  color: var(--ink);
  gap: 12px;
}

.insights-featured-card:hover .insights-featured-card__cta svg {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .insights-featured-card {
    grid-template-columns: 1.2fr 1fr;
  }
  .insights-featured-card__media {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* Normal Cards with Image */
.insights-hub-card--with-image {
  padding: 0 !important;
  overflow: hidden;
}

.insights-hub-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-soft);
}

.insights-hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.insights-hub-card--with-image:hover .insights-hub-card__media img {
  transform: scale(1.03);
}

.insights-hub-card--with-image .insights-hub-card__content {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 16 / 10);
  flex-grow: 1;
}

/* Post page styling */
.insights-post {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.insights-post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s var(--ease);
  align-self: center;
  width: 100%;
  max-width: 928px; /* 7% inset from each side of the 1080px main image */
  margin-bottom: 48px;
}


.insights-post__back svg {
  transition: transform 0.3s var(--ease);
}

.insights-post__back:hover {
  color: var(--ink);
}

.insights-post__back:hover svg {
  transform: translateX(-4px);
}

.insights-post__header {
  align-self: center;
  width: 100%;
  max-width: 928px; /* 7% inset from each side of the 1080px main image */
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 36px;
}

.insights-post__meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.insights-post__title {
  font-family: var(--brand-sans);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.insights-post__media {
  align-self: center;
  width: 100%;
  max-width: 1080px;
  margin-bottom: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}

.insights-post__body {
  align-self: center;
  width: 100%;
  max-width: 928px; /* 7% inset from each side of the 1080px main image */
}

.insights-post__body p {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.8;
  color: var(--soft);
  margin-bottom: 28px;
}

.insights-post__body h2 {
  font-family: var(--brand-sans);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}


.insights-post__body blockquote {
  margin: 44px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--steel);
  font-family: var(--brand-sans);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--steel);
  font-style: italic;
}

/* CTA Block at the end of articles */
.insights-post__cta-block {
  align-self: center;
  width: 100%;
  max-width: 960px;
  margin-top: 60px;
  margin-bottom: 60px;
  background: #f48f89;
  border-radius: var(--radius-md);
  padding: 48px;
  border: none;
  text-align: left;
}

@media (max-width: 768px) {
  .insights-post__cta-block {
    padding: 24px;
  }
}

.insights-post__cta-title {
  font-family: var(--brand-sans);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: #000000;
  margin-bottom: 12px;
}

.insights-post__cta-desc {
  font-size: clamp(14px, 1vw, 15px);
  color: #000000;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 28px;
}

.insights-post__cta-block .btn {
  background: #FFFFFF;
  color: #101820;
  border: none;
}

.insights-post__cta-block .btn:hover {
  background: #101820;
  color: #FFFFFF;
  border-color: #101820;
}

/* Related articles section */
.insights-post__related {
  align-self: center;
  width: 100%;
  max-width: 1080px;
  margin-top: 60px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
  text-align: left;
}

.insights-post__related-heading {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.insights-post__related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .insights-post__related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insights-related-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #D8D2C7;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  height: 100%;
}

.insights-related-card:hover {
  transform: translateY(-4px);
  background: #F5F1E8;
  border-color: #D6CEC0;
  box-shadow: 0 12px 30px -15px rgba(17, 19, 20, 0.15);
}

.insights-related-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-soft);
}

.insights-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.insights-related-card:hover .insights-related-card__media img {
  transform: scale(1.03);
}

.insights-related-card__accent {
  height: 4px;
  background: var(--steel);
  width: 100%;
}

.insights-related-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insights-related-card__meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.insights-related-card__title {
  font-family: var(--brand-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #101820;
}

.insights-related-card__title a {
  text-decoration: none;
  color: inherit;
}

.insights-related-card__desc {
  font-size: 13px;
  color: #46545A;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.insights-related-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.insights-related-card__cta .arrow {
  transition: transform 0.2s var(--ease);
}

.insights-related-card:hover .insights-related-card__cta {
  color: var(--ink);
  gap: 10px;
}

.insights-related-card:hover .insights-related-card__cta .arrow {
  transform: translateX(2px);
}

/* Post Top Carousel */
.insights-post__carousel {
  align-self: center;
  width: 100%;
  max-width: 1080px;
  position: relative;
  margin-bottom: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  aspect-ratio: 16 / 10;
}

.insights-post__carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.25s var(--ease);
}

.insights-post__carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.insights-post__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insights-post__carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(17, 19, 20, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.insights-post__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.insights-post__carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.insights-post__carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Post Body Images */
.insights-post__body-image {
  margin: 40px auto;
  width: 100%;
  max-width: 780px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}

.insights-post__body-image img {
  width: 100%;
  height: auto;
  display: block;
}

.insights-post__body-image .caption {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
  text-align: left;
}

/* Post Body Figures */
.insights-post__figure {
  margin: 45px auto;
  width: 100%;
  max-width: 900px;
  background-color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}

.insights-post__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.insights-post__figure figcaption {
  display: block;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
  text-align: left;
  background-color: #fcfbf9;
}

/* Zoom Button */
.insights-post__zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(248, 247, 242, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule-soft);
  color: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(17, 19, 20, 0.08);
}

.insights-post__zoom-btn:hover {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(17, 19, 20, 0.16);
}

.insights-post__zoom-btn svg {
  display: block;
  transition: transform 0.3s var(--ease);
}

.insights-post__zoom-btn:hover svg {
  transform: scale(1.1);
}

/* Carousel Navigation Arrows */
.insights-post__carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(17, 19, 20, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.insights-post__carousel-arrow:hover {
  background: rgba(17, 19, 20, 0.7);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.insights-post__carousel-arrow--left {
  left: 20px;
}

.insights-post__carousel-arrow--right {
  right: 20px;
}

.insights-post__carousel-arrow svg {
  display: block;
}

/* Change Cost Business Intelligence Component */
/* Change Cost Business Intelligence Component */
.change-cost-bi {
  --bi-navy: #0B1F33;
  --bi-steel: #245B73;
  --bi-blue: #2F7E9A;
  --bi-blue-soft: #DCECF2;
  --bi-copper: #C87941;
  --bi-copper-soft: #F4E4D8;
  --bi-surface: #F7FAFC;
  --bi-line: #D7E1E8;
  --bi-muted: #5F7180;
  --bi-white: #FFFFFF;

  margin: 0 auto 48px;
  width: 100%;
  max-width: 1080px;
  background: var(--bi-white);
  border-radius: 24px;
  border: 1px solid var(--bi-line);
  box-shadow: 0 24px 70px rgba(11, 31, 51, 0.12), 0 4px 16px rgba(11, 31, 51, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 1100px) {
  .change-cost-bi {
    margin-left: -76px;
    margin-right: -76px;
    width: calc(100% + 152px);
    max-width: 1080px;
  }
}

@media (max-width: 768px) {
  .change-cost-bi {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.change-cost-bi__header {
  padding: 24px 32px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  height: 125px;
  min-height: 125px;
  box-sizing: border-box;
}

@media (max-width: 1099px) and (min-width: 769px) {
  .change-cost-bi__header {
    height: 135px;
    min-height: 135px;
  }
}

@media (max-width: 768px) {
  .change-cost-bi__header {
    padding: 16px 20px 12px;
    flex-direction: column;
    gap: 12px;
    height: 250px;
    min-height: 250px;
  }
}

.change-cost-bi__header-left {
  flex-grow: 1;
}

.change-cost-bi__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--bi-steel);
  background-color: var(--bi-blue-soft);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.change-cost-bi__title {
  font-family: var(--brand-sans);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--bi-navy);
  margin: 0 0 8px;
}

.change-cost-bi__subtitle {
  font-size: calc(clamp(13px, 1.1vw, 15px) - 2px);
  color: var(--bi-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
  font-style: italic;
}

.change-cost-bi__subtitle-mobile {
  display: none;
}

.change-cost-bi__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .change-cost-bi__subtitle-desktop {
    display: none;
  }
  .change-cost-bi__subtitle-mobile {
    display: inline;
  }
  .change-cost-bi__header-right {
    align-items: flex-start;
    text-align: left;
  }
}

.change-cost-bi__model-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bi-muted);
  margin-bottom: 4px;
}

.change-cost-bi__model-stages {
  font-size: 13px;
  font-weight: 600;
  color: var(--bi-navy);
}

.change-cost-bi__workspace {
  display: none;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 32px 28px;
}

.change-cost-bi__mobile-summary {
  display: none;
}
.change-cost-bi__axis-ticks--mobile {
  display: none;
}

.change-cost-bi.is-enhanced .change-cost-bi__workspace {
  display: grid;
}

@media (min-width: 1100px) {
  .change-cost-bi__workspace {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  }
}

@media (max-width: 768px) {
  .change-cost-bi__workspace {
    padding: 18px;
  }
}

.change-cost-bi__svg-container {
  width: 100%;
  background-color: var(--bi-surface);
  border-radius: 18px;
  border: 1px solid var(--bi-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

@media (max-width: 1099px) and (min-width: 769px) {
  .change-cost-bi__svg-container {
    min-height: 470px;
  }
}

@media (max-width: 768px) {
  .change-cost-bi__svg-container {
    min-height: 370px;
    padding: 8px;
  }
}

.change-cost-bi__svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  touch-action: none;
}

.change-cost-bi__mobile-chart-title,
.change-cost-bi__mobile-y-axis-title {
  display: none;
}

.change-cost-bi__card {
  background-color: var(--bi-navy);
  color: var(--bi-white);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  box-shadow: 0 18px 38px rgba(11, 31, 51, 0.18);
  box-sizing: border-box;
}

.change-cost-bi__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.change-cost-bi__card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.change-cost-bi__card-counter {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.change-cost-bi__card-stage {
  font-family: var(--brand-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--bi-white);
  margin: 0 0 10px;
}

.change-cost-bi__kpi {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.change-cost-bi__kpi-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 4px;
}

.change-cost-bi__kpi-value-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.change-cost-bi__kpi-value {
  font-family: var(--brand-sans);
  font-size: clamp(39px, 4.2vw, 45px);
  font-weight: 700;
  line-height: 1;
}

.change-cost-bi__kpi-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.change-cost-bi__card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 10px;
  padding-top: 12px;
}

.change-cost-bi__section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
}

.change-cost-bi__section:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.change-cost-bi__section-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.change-cost-bi__card-desc,
.change-cost-bi__card-risk,
.change-cost-bi__card-rec {
  font-family: var(--sans);
  font-size: 12px !important;
  line-height: 1.5;
  color: #d2d5d9 !important;
  margin: 0;
}

.change-cost-bi__insight {
  border: 1px solid var(--bi-line);
  border-left: 4px solid #0b1f33;
  border-radius: 12px;
  background-color: var(--bi-surface);
  padding: 12px 32px;
  margin: 0 32px 32px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .change-cost-bi__insight {
    padding: 12px 20px;
  }
}

/* Stable Heights across Viewports */
@media (min-width: 1100px) {
  .change-cost-bi__svg-container {
    height: 500px;
    min-height: 500px;
  }
  .change-cost-bi__card {
    padding: 8px 12px 8px 12px;
  }
  .change-cost-bi__card-stage {
    font-size: 16px;
    margin: 0 0 2px;
  }
  .change-cost-bi__kpi {
    padding-bottom: 2px;
    margin-bottom: 2px;
  }
  .change-cost-bi__kpi-value {
    font-size: 34px;
  }
  .change-cost-bi__card-body {
    gap: 4px;
  }
  .change-cost-bi__section:not(:last-child) {
    padding-bottom: 4px;
  }
  .change-cost-bi__card-desc,
  .change-cost-bi__card-risk,
  .change-cost-bi__card-rec {
    font-size: 12px !important;
    line-height: 1.4;
  }
  .change-cost-bi__insight {
    height: 140px;
    min-height: 140px;
  }
}

@media (max-width: 1099px) and (min-width: 769px) {
  .change-cost-bi__svg-container {
    height: 520px;
    min-height: 520px;
  }
  .change-cost-bi__card {
    padding: 24px;
  }
  .change-cost-bi__insight {
    height: 150px;
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  .change-cost-bi__workspace {
    height: auto !important;
    min-height: 0 !important;
    padding: 16px !important;
    gap: 16px !important;
    grid-template-columns: 1fr !important;
  }
  .change-cost-bi__svg-container {
    width: calc(100% + 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1200 / 675 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
  }
  .change-cost-bi__mobile-chart-title,
  .change-cost-bi__mobile-y-axis-title {
    display: block;
    position: absolute;
    z-index: 2;
    color: var(--bi-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    pointer-events: none;
  }
  .change-cost-bi__mobile-chart-title {
    top: 2px;
    left: 4.4%;
    max-width: 82%;
    text-align: left;
  }
  .change-cost-bi__mobile-y-axis-title {
    left: 3.9%;
    top: 50%;
    width: max-content;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
  }
  .change-cost-bi__svg > g {
    transform: translate(-75px, 0) scale(1.12, 1) !important;
    transform-origin: 0 0;
  }
  #change-cost-curve {
    stroke-width: 6px !important;
  }
  .change-cost-bi__svg path[stroke-width="14"] {
    stroke-width: 14px !important;
  }
  #change-cost-handle-outer {
    r: 14px !important;
  }
  #change-cost-handle-inner {
    r: 8px !important;
  }
  #change-cost-handle-halo {
    r: 24px !important;
  }
  #change-cost-floating-label {
    display: none !important;
  }
  .change-cost-bi__card {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 16px !important;
  }
  .change-cost-bi__insight {
    height: auto !important;
    min-height: 0 !important;
    padding: 16px 20px !important;
    margin: 0 16px 16px 16px !important;
    border-radius: 12px !important;
  }
  /* Mobile Summary Styles */
  .change-cost-bi__mobile-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: transparent;
    color: var(--bi-navy);
    border-radius: 0;
    padding: 12px 0;
    border-top: 1px solid var(--bi-line);
    border-bottom: 1px solid var(--bi-line);
    margin-bottom: 4px;
    box-sizing: border-box;
  }
  .change-cost-bi__mobile-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bi-line);
    padding-bottom: 8px;
  }
  .change-cost-bi__mobile-summary-counter {
    font-size: 12px;
    font-weight: 700;
    color: var(--bi-blue);
  }
  .change-cost-bi__mobile-summary-stage {
    font-family: var(--brand-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--bi-navy);
    margin: 0;
  }
  .change-cost-bi__mobile-summary-kpi {
    padding-top: 4px;
  }
  .change-cost-bi__mobile-summary-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .change-cost-bi__mobile-summary-value {
    font-family: var(--brand-sans);
    font-size: 20px;
    font-weight: 700;
    color: var(--bi-steel);
  }
  .change-cost-bi__mobile-summary-pill {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
  }

  /* Axis Ticks Overrides */
  .change-cost-bi__axis-ticks--desktop,
  .change-cost-bi__axis-ticks--mobile,
  .change-cost-bi__stage-labels {
    display: none !important;
  }
  .change-cost-bi__card-header,
  .change-cost-bi__card-stage,
  .change-cost-bi__kpi {
    display: none !important;
  }

  /* Text Sizes in SVG space to achieve >= 12px / >= 16px actual size */
  .change-cost-bi__axis-title {
    display: none !important;
  }
  .change-cost-bi__axis-tick {
    font-size: 40px !important;
  }
  .change-cost-bi__stage-label {
    font-size: 40px !important;
  }
  .change-cost-bi__floating-text {
    font-size: 54px !important;
  }
}

/* SVG Typography Classes (increased by 60%) */
.change-cost-bi__axis-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: #5F7180;
}

.change-cost-bi__axis-tick {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: #5F7180;
}

.change-cost-bi__stage-label {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  fill: #5F7180;
}

@media (max-width: 768px) {
  .change-cost-bi__axis-title {
    font-size: 22px;
  }
  .change-cost-bi__axis-tick {
    font-size: 21px;
  }
  .change-cost-bi__stage-label {
    font-size: 26px !important;
    writing-mode: vertical-rl;
    text-anchor: start;
    transform: rotate(180deg) translate(10px, -45px);
  }
}

.change-cost-bi__insight-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bi-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.change-cost-bi__insight-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--bi-navy);
  font-weight: 400;
  margin: 0;
}

.change-cost-bi__insight-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bi-blue-soft);
  color: var(--bi-steel);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  margin-bottom: auto;
  transition: all 0.2s ease;
  width: fit-content;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.change-cost-bi__insight-cta:hover {
  background-color: var(--bi-steel);
  color: var(--bi-white);
  transform: translateY(-1px);
}

.change-cost-bi__insight-cta .arrow {
  transition: transform 0.2s ease;
  font-weight: bold;
}

.change-cost-bi__insight-cta:hover .arrow {
  transform: translateX(3px);
}

.change-cost-bi__floating-text {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .change-cost-bi__floating-text {
    font-size: 21px;
  }
}

.change-cost-bi__mobile-controls {
  display: none;
  margin: 16px 32px 24px;
  flex-direction: column;
}

@media (max-width: 768px) {
  .change-cost-bi__mobile-controls {
    width: calc(100% + 32px);
    margin: -11% -16px 16px !important;
    display: flex !important;
    box-sizing: border-box;
    padding-left: calc(8.15% - 11px) !important;
    padding-right: calc(3.19% - 11px) !important;
    position: relative;
    z-index: 10;
  }
  .change-cost-bi__range {
    height: 12px !important;
    margin: 16px 0 !important;
    background: linear-gradient(
      to right,
      var(--bi-line) 0 calc(100% - 11px),
      transparent calc(100% - 11px)
    ) !important;
  }
  .change-cost-bi__range-label {
    align-self: center;
    color: var(--bi-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
  }
  .change-cost-bi__range::-webkit-slider-thumb {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
  }
  .change-cost-bi__range::-moz-range-thumb {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
  }
  .change-cost-bi__range-ticks {
    position: relative;
    display: block;
    height: 28px;
    min-height: 28px;
    margin: 0 11px;
    font-size: 9px !important;
    line-height: 1.15;
  }
  .change-cost-bi__range-ticks span {
    position: absolute;
    top: 0;
    width: 20%;
    min-width: 0;
    text-align: center;
    hyphens: auto;
    overflow-wrap: break-word;
    transform: translateX(-50%);
  }
  .change-cost-bi__range-ticks span:nth-child(1) {
    left: 0;
  }
  .change-cost-bi__range-ticks span:nth-child(2) {
    left: 25%;
  }
  .change-cost-bi__range-ticks span:nth-child(3) {
    left: 50%;
  }
  .change-cost-bi__range-ticks span:nth-child(4) {
    left: 75%;
  }
  .change-cost-bi__range-ticks span:nth-child(5) {
    left: 100%;
  }
  .change-cost-bi__range-ticks span:first-child {
    width: 15%;
    text-align: left;
    transform: none;
  }
  .change-cost-bi__range-ticks span:last-child {
    width: 15%;
    text-align: right;
    transform: translateX(-100%);
  }
}

.change-cost-bi.is-enhanced .change-cost-bi__mobile-controls {
  display: flex;
}

@media (min-width: 769px) {
  .change-cost-bi__mobile-controls {
    display: none !important;
  }
}

.change-cost-bi__range-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bi-navy);
  margin-bottom: 8px;
}

.change-cost-bi__range {
  width: 100%;
  height: 6px;
  background: var(--bi-line);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  margin: 8px 0;
}

.change-cost-bi__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bi-steel);
  cursor: pointer;
  border: 2px solid var(--bi-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.change-cost-bi__range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--bi-muted);
  margin-top: 4px;
}

.change-cost-bi__table-container {
  width: 100%;
  padding: 0 32px 28px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .change-cost-bi__table-container {
    padding: 0 20px 20px;
  }
}

.change-cost-bi.is-enhanced .change-cost-bi__table-container {
  display: none;
}

.change-cost-bi__fallback {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--bi-white);
  border-radius: 12px;
  overflow: hidden;
}

.change-cost-bi__fallback caption {
  font-size: 12px;
  color: var(--bi-muted);
  padding: 12px;
  caption-side: bottom;
  text-align: center;
}

.change-cost-bi__fallback th,
.change-cost-bi__fallback td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bi-line);
  font-size: 13.5px;
}

.change-cost-bi__fallback th {
  background-color: var(--bi-surface);
  font-weight: 700;
  color: var(--bi-navy);
}

.change-cost-bi__fallback tr:last-child td {
  border-bottom: none;
}

/* Skyline BI article charts */
.skyline-bi-chart {
  --bi-navy: #0B1F33;
  --bi-steel: #245B73;
  --bi-blue: #2F7E9A;
  --bi-green: #4C9A61;
  --bi-amber: #E6A23C;
  --bi-copper: #C87941;
  --bi-surface: #FFFDF8;
  --bi-panel: #F5F8FA;
  --bi-line: #D7E1E8;
  --bi-muted: #5F7180;
  --bi-white: #FFFFFF;
  --bi-gray: #A7ADB3;

  width: 100%;
  max-width: 928px;
  margin: 45px auto;
  padding: 30px 32px 32px;
  background: var(--bi-surface);
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(11, 31, 51, 0.12), 0 10px 24px rgba(11, 31, 51, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  box-sizing: border-box;
  overflow: hidden;
}

.skyline-bi-chart__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(215, 225, 232, 0.86);
}

.skyline-bi-chart__badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(36, 91, 115, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--bi-steel);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(11, 31, 51, 0.04);
}

.skyline-bi-chart__title {
  margin: 0 0 6px;
  color: var(--bi-navy);
  font-family: var(--brand-sans);
  font-size: 25px;
  font-weight: 750;
  line-height: 1.16;
}

.skyline-bi-chart__subtitle {
  margin: 0;
  color: #33485A;
  font-size: 14px;
  line-height: 1.45;
}

.skyline-bi-chart__instruction {
  margin: 6px 0 0;
  color: #5A6D7C;
  font-style: italic;
  font-size: 13px;
  line-height: 1.45;
}

.skyline-bi-chart__detail {
  padding: 18px;
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(11, 31, 51, 0.07);
}

.skyline-bi-chart__detail-label {
  display: block;
  margin-bottom: 6px;
  color: var(--bi-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.skyline-bi-chart__detail-value {
  display: block;
  color: var(--bi-navy);
  font-family: var(--brand-sans);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.25;
}

.skyline-bi-chart__detail-reading {
  margin: 8px 0 0;
  color: #33485A;
  font-size: 14px;
  line-height: 1.5;
}

.skyline-bi-chart__tooltip {
  position: absolute;
  z-index: 4;
  min-width: 178px;
  max-width: 238px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(11, 31, 51, 0.96);
  color: var(--bi-white);
  box-shadow: 0 18px 36px rgba(11, 31, 51, 0.24);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.skyline-bi-chart__tooltip::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(11, 31, 51, 0.96);
  transform: rotate(45deg);
}

.skyline-bi-chart__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skyline-bi-chart__tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: #FFFFFF;
  font-family: var(--brand-sans);
  font-size: 13px;
}

.milestone-donut__workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(310px, 1.06fr);
  gap: 30px;
  align-items: start;
}

#skyline-bi-milestone-donut .milestone-donut__panel .skyline-bi-chart__detail {
  height: 124px;
  box-sizing: border-box;
  padding: 12px 14px;
}

#skyline-bi-milestone-donut .milestone-donut__panel .skyline-bi-chart__detail .skyline-bi-chart__detail-reading {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
}

.milestone-donut__graphic {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px solid rgba(11, 31, 51, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FA 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 42px rgba(11, 31, 51, 0.08);
}

.milestone-donut__svg {
  width: min(100%, 338px);
  height: auto;
  overflow: visible;
}

.milestone-donut__segment {
  cursor: pointer;
  outline: none;
  transition: opacity 180ms ease, stroke-width 180ms ease, filter 180ms ease, stroke 180ms ease;
}

.milestone-donut__segment:not(.is-active):not(.is-dimmed) {
  opacity: 0.9;
}

.milestone-donut__segment.is-dimmed {
  opacity: 0.32;
  filter: saturate(0.68);
}

.milestone-donut__segment.is-active,
.milestone-donut__segment:focus-visible {
  opacity: 1;
  stroke-width: 36;
  filter: drop-shadow(0 7px 12px rgba(11, 31, 51, 0.24));
}

.milestone-donut__center {
  position: absolute;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(11, 31, 51, 0.1);
  border-radius: 50%;
  background: var(--bi-white);
  color: var(--active-color, var(--bi-navy));
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(11, 31, 51, 0.1), inset 0 0 0 8px rgba(215, 225, 232, 0.22);
  transition: color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.milestone-donut__center:hover,
.milestone-donut__center:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(11, 31, 51, 0.14), 0 0 0 3px rgba(47, 126, 154, 0.16), inset 0 0 0 8px rgba(215, 225, 232, 0.22);
}

.milestone-donut__center-value {
  font-family: var(--brand-sans);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.milestone-donut__center-label {
  color: var(--bi-muted);
  font-size: 12px;
  font-weight: 700;
}

.milestone-donut__panel {
  display: grid;
  gap: 16px;
}

.milestone-donut__legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.milestone-donut__legend-item {
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 12px;
  min-height: 108px;
  padding: 14px 13px 13px;
  border: 1px solid rgba(11, 31, 51, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--bi-navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease, transform 180ms ease;
}

.milestone-donut__legend-item:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 126, 154, 0.34);
  box-shadow: 0 14px 30px rgba(11, 31, 51, 0.08);
}

.milestone-donut__legend-item.is-active,
.milestone-donut__legend-item:focus-visible {
  border-color: var(--bi-blue);
  box-shadow: 0 15px 34px rgba(47, 126, 154, 0.16), 0 0 0 3px rgba(47, 126, 154, 0.16);
  outline: none;
}

.milestone-donut__legend-item.is-dimmed {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.58);
}

.milestone-donut__swatch {
  flex: 0 0 auto;
  width: 5px;
  height: 100%;
  min-height: 70px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(11, 31, 51, 0.08);
}

.milestone-donut__legend-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}

.milestone-donut__legend-copy strong {
  color: var(--bi-navy);
  font-family: var(--brand-sans);
  font-size: 14px;
  line-height: 1.15;
}

.milestone-donut__legend-metric {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--bi-steel);
  font-weight: 750;
}

.milestone-donut__legend-reading {
  color: #33485A;
  font-size: 12px;
  line-height: 1.35;
}

.milestone-donut__legend-copy span {
  color: var(--bi-muted);
}

.milestone-donut__insight {
  border-left: 4px solid #0b1f33;
  margin-top: 14px;
}

.budget-bars__insight {
  border-left: 4px solid #0b1f33;
  margin-top: 24px;
}

.budget-bars__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -10px 0 20px;
  color: var(--bi-navy);
  font-size: 13px;
  font-weight: 700;
}

.budget-bars__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(11, 31, 51, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.budget-bars__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.budget-bars__swatch--budget {
  background: #D7E1E8;
  border: 1px solid #A7ADB3;
}

.budget-bars__swatch--actual {
  background: var(--bi-blue);
}

.budget-bars__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(290px, 0.74fr);
  gap: 28px;
  align-items: start;
}

.budget-bars__chart-wrap {
  position: relative;
  min-width: 0;
}

.budget-bars__svg {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 380px;
  border: 1px solid rgba(11, 31, 51, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FA 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 42px rgba(11, 31, 51, 0.08);
}

.budget-bars__grid line {
  stroke: var(--bi-line);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.budget-bars__grid text {
  fill: var(--bi-muted);
  font-family: var(--sans);
  font-size: 10.5px;
}

.budget-bars__month {
  fill: var(--bi-muted);
  font-family: var(--sans);
  font-size: 10.5px;
}

.budget-bars__y-label {
  dominant-baseline: middle;
  font-size: 10.5px;
}

.budget-bars__axis {
  stroke: #8AA0AE;
  stroke-width: 1.25;
}

.budget-bars__group {
  cursor: pointer;
  outline: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

.budget-bars__hit {
  fill: transparent;
  pointer-events: none;
}

.budget-bars__bar {
  transition: opacity 180ms ease, filter 180ms ease, fill 180ms ease, width 180ms ease;
}

.budget-bars__bar--budget {
  fill: #D7E1E8;
  stroke: rgba(36, 91, 115, 0.3);
  stroke-width: 0.65;
}

.budget-bars__bar--actual {
  fill: var(--bi-blue);
}

.budget-bars__group.is-active .budget-bars__bar,
.budget-bars__group.is-current .budget-bars__bar,
.budget-bars__group:hover .budget-bars__bar,
.budget-bars__group:focus-visible .budget-bars__bar {
  filter: drop-shadow(0 7px 10px rgba(11, 31, 51, 0.22));
  opacity: 1;
}

.budget-bars__group.is-active .budget-bars__bar--actual,
.budget-bars__group.is-current .budget-bars__bar--actual,
.budget-bars__group:hover .budget-bars__bar--actual,
.budget-bars__group:focus-visible .budget-bars__bar--actual {
  stroke: #ffffff;
  stroke-width: 1.5;
}

.budget-bars__group.is-active .budget-bars__bar--budget,
.budget-bars__group.is-current .budget-bars__bar--budget,
.budget-bars__group:hover .budget-bars__bar--budget,
.budget-bars__group:focus-visible .budget-bars__bar--budget {
  stroke: #ffffff;
  stroke-width: 1.5;
}

.budget-bars__group:not(.is-active) .budget-bars__bar {
  opacity: 0.88;
}

.budget-bars__group.is-dimmed .budget-bars__bar {
  opacity: 0.32;
  filter: saturate(0.6);
}

.budget-bars__group.is-dimmed .budget-bars__month {
  opacity: 0.58;
}

.budget-bars__group.is-active .budget-bars__month,
.budget-bars__group.is-current .budget-bars__month,
.budget-bars__group:hover .budget-bars__month,
.budget-bars__group:focus-visible .budget-bars__month {
  fill: var(--bi-navy);
  font-weight: 700;
}

.budget-bars__detail {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.budget-bars__finance-head {
  display: grid;
  gap: 4px;
}

.budget-bars__finance-label {
  color: var(--bi-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}

.budget-bars__finance-period {
  color: var(--bi-navy);
  font-family: var(--brand-sans);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.budget-bars__managerial-reading {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(215, 225, 232, 0.95);
  color: #33485A;
  font-size: 13.5px;
  line-height: 1.45;
}

.budget-bars__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.budget-bars__kpi {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(11, 31, 51, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(11, 31, 51, 0.05);
}

.budget-bars__kpi-label {
  display: block;
  margin-bottom: 4px;
  color: var(--bi-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.budget-bars__kpi-value {
  display: block;
  color: var(--bi-navy);
  font-family: var(--brand-sans);
  font-size: 19px;
  font-weight: 760;
  line-height: 1.2;
}

.skyline-bi-chart__table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.skyline-bi-chart.is-enhanced .skyline-bi-chart__table-wrap {
  display: none;
}

.skyline-bi-chart__fallback {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.skyline-bi-chart__fallback caption {
  caption-side: bottom;
  padding: 10px;
  color: var(--bi-muted);
  font-size: 12px;
}

.skyline-bi-chart__fallback th,
.skyline-bi-chart__fallback td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--bi-line);
  font-size: 13px;
}

.skyline-bi-chart__fallback th {
  background: var(--bi-surface);
  color: var(--bi-navy);
}

@media (max-width: 899.98px) {
  .milestone-donut__workspace,
  .budget-bars__workspace {
    grid-template-columns: 1fr;
  }

  #skyline-bi-milestone-donut .milestone-donut__panel .skyline-bi-chart__detail {
    display: none !important;
  }

  .budget-bars__svg {
    min-height: 240px;
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .skyline-bi-chart {
    width: 100%;
    max-width: 928px;
    padding: 20px 18px 22px;
    border-radius: 8px;
  }

  .budget-bars__month {
    font-size: 9.5px;
  }

  .skyline-bi-chart__header {
    flex-direction: column;
    gap: 10px;
  }

  .skyline-bi-chart__title {
    font-size: 20px;
  }

  .skyline-bi-chart__subtitle,
  .skyline-bi-chart__detail-reading,
  .budget-bars__legend,
  .budget-bars__kpi-label,
  .milestone-donut__legend-copy,
  .skyline-bi-chart__fallback th,
  .skyline-bi-chart__fallback td {
    font-size: 12px;
  }

  .milestone-donut__graphic,
  .budget-bars__svg {
    width: 100%;
    min-width: 0;
  }

  .milestone-donut__graphic {
    min-height: 286px;
  }

  .milestone-donut__svg {
    width: min(100%, 252px);
  }

  .milestone-donut__center {
    width: 106px;
    height: 106px;
  }

  .milestone-donut__center-value {
    font-size: 34px;
  }

  .milestone-donut__legend {
    grid-template-columns: 1fr;
  }

  .milestone-donut__legend-item,
  .milestone-donut__center,
  .budget-bars__group {
    min-width: 44px;
    min-height: 44px;
  }

  .budget-bars__svg {
    min-height: 240px;
    max-height: 320px;
  }

  .budget-bars__kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .budget-bars__kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .milestone-donut__segment,
  .milestone-donut__legend-item,
  .milestone-donut__center,
  .budget-bars__bar,
  .budget-bars__group,
  .skyline-bi-chart__tooltip {
    transition: none !important;
    animation: none !important;
  }
}

/* Animations and transitions */
.change-cost-bi__anchor-dot,
#change-cost-handle-halo,
#change-cost-handle-outer,
#change-cost-handle-inner,
#change-cost-floating-label,
.change-cost-bi__card-stage,
.change-cost-bi__kpi-value,
.change-cost-bi__kpi-pill,
.change-cost-bi__card-desc,
.change-cost-bi__card-risk,
.change-cost-bi__card-rec,
.change-cost-bi__insight-text,
.change-cost-bi__mobile-summary-counter,
.change-cost-bi__mobile-summary-stage,
.change-cost-bi__mobile-summary-value,
.change-cost-bi__mobile-summary-pill {
  transition: all 220ms ease;
}

/* prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  .change-cost-bi__anchor-dot,
  #change-cost-handle-halo,
  #change-cost-handle-outer,
  #change-cost-handle-inner,
  #change-cost-floating-label,
  .change-cost-bi__card-stage,
  .change-cost-bi__kpi-value,
  .change-cost-bi__kpi-pill,
  .change-cost-bi__card-desc,
  .change-cost-bi__card-risk,
  .change-cost-bi__card-rec,
  .change-cost-bi__insight-text,
  .change-cost-bi__mobile-summary-counter,
  .change-cost-bi__mobile-summary-stage,
  .change-cost-bi__mobile-summary-value,
  .change-cost-bi__mobile-summary-pill {
    transition: none !important;
    animation: none !important;
  }
}

@media (min-width: 1200px) {
  .budget-bars__workspace {
    gap: 32px;
  }
}
