/* ============================================================
   GLOBAL STYLES — Avon Protection Web Proposal
   ============================================================
   Brand register. Design IS the product.
   No identical card grids. No side-stripe callouts.
   No glassmorphism. Asymmetric layouts. Varied rhythm.
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text-secondary);
  background: var(--color-surface-0);
  overflow-x: hidden;
}

/* ─── Base element typography ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
}

p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}


a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-text-primary);
}

.inline-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.inline-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

::selection {
  background: oklch(0.45 0.08 240 / 0.4);
  color: var(--color-text-primary);
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: var(--z-progress);
  pointer-events: none;
}

.scroll-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 80ms linear;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg) var(--space-md);
  background: var(--color-surface-0);
  border-right: 1px solid var(--color-border-subtle);
  z-index: var(--z-sidebar);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.sidebar__brand {
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar__brand-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.sidebar__collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #ffffff;
  opacity: 0.7;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.sidebar__collapse:hover {
  opacity: 1;
  background: var(--color-surface-2);
}

.sidebar__collapse svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-out);
}

/* Collapsed sidebar */
.sidebar.collapsed {
  width: 56px;
  padding: var(--space-md) var(--space-xs) var(--space-md);
  align-items: center;
}

.sidebar.collapsed .sidebar__brand {
  justify-content: center;
}

.sidebar.collapsed .sidebar__brand-logo {
  display: none;
}

.sidebar.collapsed .sidebar__collapse svg {
  transform: rotate(180deg);
}

.sidebar.collapsed .sidebar__link {
  justify-content: center;
  padding: 8px;
  font-size: 0;
  gap: 0;
}

.sidebar.collapsed .sidebar__link-num {
  min-width: auto;
  font-size: 0.7rem;
}

.sidebar.collapsed .sidebar__footer {
  justify-content: center;
}

.sidebar.collapsed .sidebar__lock {
  display: none;
}

.sidebar.collapsed+.main,
.sidebar.collapsed~.main {
  margin-left: 56px;
}

/* Smooth transition on main */
.main {
  transition: margin-left var(--duration-slow) var(--ease-out-expo);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.sidebar__nav::-webkit-scrollbar {
  width: 0;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 10px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  text-decoration: none;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__link:hover {
  color: var(--color-text-secondary);
  background: var(--color-surface-2);
}

.sidebar__link:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: -2px;
}

.sidebar__link.active {
  color: var(--color-text-primary);
  background: var(--color-surface-2);
}

.sidebar__link-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  min-width: 18px;
  letter-spacing: 0.02em;
}

.sidebar__link.active .sidebar__link-num {
  color: var(--color-accent);
}

.sidebar__footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar__footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.8;
}

.sidebar__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #ffffff;
  opacity: 0.7;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.sidebar__lock:hover {
  opacity: 1;
  color: var(--color-text-primary);
  background: var(--color-surface-2);
}

/* Mobile toggle */
.sidebar__toggle {
  display: none;
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: calc(var(--z-sidebar) + 1);
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface-1);
  color: var(--color-text-tertiary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.sidebar__toggle:hover {
  border-color: var(--color-border-default);
  color: var(--color-text-primary);
}

.sidebar__toggle svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  margin-left: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  counter-reset: page;
}

/* ============================================================
   HERO — asymmetric, left-aligned, no centred stack
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4xl) clamp(var(--space-2xl), 7vw, var(--space-5xl));
  overflow: clip;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.3;
  filter: grayscale(100%) contrast(1.1);
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      var(--color-surface-0) 0%,
      oklch(0.13 0.012 240 / 0.85) 40%,
      oklch(0.13 0.012 240 / 0.6) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 60ch;
}

.hero__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-success);
}

.hero__logo {
  height: clamp(36px, 5vw, 56px);
  width: auto;
  margin-bottom: var(--space-xl);
  opacity: 0.85;
}

.hero__divider {
  border: none;
  height: 1px;
  width: clamp(180px, 25vw, 280px);
  background: linear-gradient(to right, var(--color-text-tertiary), transparent);
  margin: var(--space-lg) 0 var(--space-xl);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: 0.95;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.hero__subtitle {
  font-size: var(--fs-body-lg);
  max-width: 65ch;
  margin-bottom: var(--space-3xl);
}

.hero__meta {
  position: absolute;
  bottom: var(--space-5xl);
  left: clamp(var(--space-2xl), 7vw, var(--space-5xl));
  display: flex;
  align-items: flex-start;
  gap: var(--space-3xl);
}

.hero__meta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero__meta-label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.hero__meta-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.hero__meta-logo {
  height: 18px;
  width: auto;
  opacity: 0.8;
  margin-top: 2px;
}

.hero__meta-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border-subtle);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__scroll-hint svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  animation: scrollHintBob 2.5s ease-in-out infinite;
}

@keyframes scrollHintBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ============================================================
   SECTIONS — no mechanical numbering
   ============================================================ */
.proposal-section {
  padding: var(--space-5xl) clamp(var(--space-2xl), 7vw, var(--space-5xl)) var(--space-5xl);
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: clip;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  counter-increment: page;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proposal-section::after {
  content: counter(page, decimal-leading-zero);
  position: absolute;
  bottom: var(--space-2xl);
  right: clamp(var(--space-2xl), 7vw, var(--space-5xl));
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.parent-label {
  position: absolute;
  top: var(--space-2xl);
  right: clamp(var(--space-2xl), 7vw, var(--space-5xl));
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  z-index: 2;
}

/* Alternate sections get subtle background shift */
.proposal-section:nth-child(even) {
  background: var(--color-surface-1);
}

.proposal-section__inner {
  width: 100%;
}

.section-content {
  width: 100%;
}

.proposal-section__inner--wide {
  width: 100%;
}

/* Section header — no repeated badge pattern */
.section-header {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

/* Timeline/table sections: compact to fit */
.proposal-section:has(.proposal-table-wrapper) {
  justify-content: flex-start;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.proposal-section:has(.proposal-table-wrapper)::after {
  display: none;
}

.proposal-section:has(.proposal-table-wrapper) .proposal-section__inner {
  max-width: none;
}

.proposal-section:has(.proposal-table-wrapper) .section-header {
  margin-bottom: var(--space-xs);
}

.proposal-section:has(.proposal-table-wrapper) .section-header__rule {
  margin-bottom: 0;
}

.proposal-section:has(.proposal-table-wrapper) .section-header__title {
  font-size: var(--fs-h2);
}

.section-header__kicker {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  opacity: 0.15;
  order: 1;
  align-self: baseline;
  margin-left: auto;
  white-space: nowrap;
}

.kicker-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: var(--space-sm);
  vertical-align: middle;
}

.kicker-tag--recommended {
  background: rgba(149, 191, 71, 0.12);
  color: var(--color-solution-2);
  border: 1px solid rgba(149, 191, 71, 0.25);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}

.section-header__title-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
}

.section-header__desc {
  width: 100%;
  order: 3;
}

.section-header__prefix {
  opacity: 0.4;
  font-weight: var(--fw-medium);
}

.section-header__rule {
  border: none;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--color-accent) 30%, transparent);
  margin: var(--space-lg) 0;
  order: 2;
}

/* Solution-colored rules */
.proposal-section--sol-a .section-header__rule {
  background: linear-gradient(to right, var(--color-solution-1) 30%, transparent);
}

.proposal-section--sol-b .section-header__rule {
  background: linear-gradient(to right, var(--color-solution-2) 30%, transparent);
}

/* Solution page variant — kicker above title */
.section-header--solution .section-header__kicker {
  order: -1;
  width: 100%;
  margin-left: 0;
  font-size: var(--fs-small);
  opacity: 0.85;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kicker-recommendation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-solution-2, #5a9e7c);
  box-shadow: 0 0 12px rgba(90, 158, 124, 0.3);
  white-space: nowrap;
}

.kicker-recommendation::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
  flex-shrink: 0;
}

.kicker-solution {
  background: var(--color-surface-3);
  padding: 0.35em 0.9em;
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.65rem;
  white-space: nowrap;
  color: var(--color-text-secondary);
}

/* Solution A detail pages */
.proposal-section--sol-a .kicker-solution {
  background: rgba(91, 141, 239, 0.12);
  color: var(--color-solution-1);
}

/* Solution B detail pages */
.proposal-section--sol-b .kicker-solution {
  background: rgba(149, 191, 71, 0.12);
  color: var(--color-solution-2);
}

.kicker-sep {
  opacity: 0.25;
  font-weight: var(--fw-light);
}

/* ============================================================
   INTRO METRICS — compact stat row
   ============================================================ */
.intro-metrics {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.intro-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.intro-metric__value {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: 1;
}

.intro-metric__label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* ============================================================
   SECTION BACKGROUND IMAGE — gradient overlay, right-aligned
   ============================================================ */

/* Shared base for all bg sections */
[class*="proposal-section--bg-"]::before,
.proposal-section--has-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Shared inner z-index lift */
[class*="proposal-section--bg-"] .proposal-section__inner,
.proposal-section--has-bg .proposal-section__inner {
  position: relative;
  z-index: 1;
}

/* --- Per-section image URLs --- */
.proposal-section--has-bg::before {
  background-image: url('../assets/images/avon-product.jpg');
}

.proposal-section--has-bg {
  overflow: visible;
}

.proposal-section--bg-scope::before {
  background-image: url('../assets/images/avon-scope-bg.jpg');
}

.proposal-section--bg-phases::before {
  background-image: url('../assets/images/646546665_1520322146763281_3247098444133022534_n.jpg');
}

/* ============================================================
   ACTIVITY LIST — verb + outcome
   ============================================================ */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  counter-reset: activity;
}

.activity-list__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-list__item:last-child {
  border-bottom: none;
}

.activity-list__item::before {
  counter-increment: activity;
  content: counter(activity, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--color-accent);
  min-width: 28px;
  opacity: 0.55;
}

.activity-list__text {
  flex: 1;
}

/* Storytelling stagger */
.activity-list__item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.activity-list.visible .activity-list__item {
  opacity: 1;
  transform: translateY(0);
}

.activity-list.visible .activity-list__item:nth-child(1) {
  transition-delay: 0.06s;
}

.activity-list.visible .activity-list__item:nth-child(2) {
  transition-delay: 0.12s;
}

.activity-list.visible .activity-list__item:nth-child(3) {
  transition-delay: 0.18s;
}

.activity-list.visible .activity-list__item:nth-child(4) {
  transition-delay: 0.24s;
}

.activity-list.visible .activity-list__item:nth-child(5) {
  transition-delay: 0.3s;
}

.activity-list.visible .activity-list__item:nth-child(6) {
  transition-delay: 0.36s;
}

.activity-list.visible .activity-list__item:nth-child(7) {
  transition-delay: 0.42s;
}

.activity-list.visible .activity-list__item:nth-child(8) {
  transition-delay: 0.48s;
}

/* Sub-topics inside an activity item */
.activity-list__topics {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-list__topics li {
  opacity: 0.6;
  font-size: 0.78rem;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.activity-list__topics li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  opacity: 0.4;
}


/* ============================================================
   PHASE INFOGRAPHIC — collaboration visual
   ============================================================ */
.phase-infographic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-lg);
  padding: var(--space-md) 0 var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phase-infographic__party {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.phase-infographic__party:first-child {
  transform: translateX(-20px);
  padding-left: var(--space-lg);
}

.phase-infographic__party:last-child {
  transform: translateX(20px);
  padding-right: var(--space-lg);
}

.phase-infographic.visible .phase-infographic__party {
  opacity: 1;
  transform: translateX(0);
}

.phase-infographic.visible .phase-infographic__party:first-child {
  transition-delay: 0.1s;
}

.phase-infographic.visible .phase-infographic__party:last-child {
  transition-delay: 0.1s;
}

.phase-infographic__logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

.phase-infographic__connector {
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.8),
      transparent);
  opacity: 0;
  transition: opacity 0.5s ease-out 0.3s;
}

.phase-infographic.visible .phase-infographic__connector {
  opacity: 1;
}

.phase-infographic__connector--short {
  max-width: 40px;
}

.phase-infographic__centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 var(--space-lg);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
}

.phase-infographic.visible .phase-infographic__centre {
  opacity: 1;
  transform: scale(1);
}

.phase-infographic__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  color: var(--color-text-primary);
}

.phase-infographic__label {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}


/* ============================================================
   PHASE COLUMNS — two equal columns for cover/receive
   ============================================================ */
.phase-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-3xl);
}

.phase-columns__col:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: var(--space-3xl);
}

.phase-columns__heading {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.phase-columns__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: phase-item;
}

.phase-columns__list li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.phase-columns__list li:last-child {
  border-bottom: none;
}

.phase-columns__list li::before {
  counter-increment: phase-item;
  content: counter(phase-item, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--color-accent);
  min-width: 20px;
  opacity: 0.55;
}

.phase-columns.visible .phase-columns__list li,
.scope-columns.visible .phase-columns__list li {
  opacity: 1;
  transform: translateY(0);
}

.phase-columns.visible .phase-columns__list li:nth-child(1),
.scope-columns.visible .phase-columns__list li:nth-child(1) {
  transition-delay: 0.08s;
}

.phase-columns.visible .phase-columns__list li:nth-child(2),
.scope-columns.visible .phase-columns__list li:nth-child(2) {
  transition-delay: 0.14s;
}

.phase-columns.visible .phase-columns__list li:nth-child(3),
.scope-columns.visible .phase-columns__list li:nth-child(3) {
  transition-delay: 0.2s;
}

.phase-columns.visible .phase-columns__list li:nth-child(4),
.scope-columns.visible .phase-columns__list li:nth-child(4) {
  transition-delay: 0.26s;
}

.phase-columns.visible .phase-columns__list li:nth-child(5),
.scope-columns.visible .phase-columns__list li:nth-child(5) {
  transition-delay: 0.32s;
}

.phase-columns.visible .phase-columns__list li:nth-child(6),
.scope-columns.visible .phase-columns__list li:nth-child(6) {
  transition-delay: 0.38s;
}

.phase-columns.visible .phase-columns__list li:nth-child(7),
.scope-columns.visible .phase-columns__list li:nth-child(7) {
  transition-delay: 0.44s;
}

.phase-columns.visible .phase-columns__list li:nth-child(8),
.scope-columns.visible .phase-columns__list li:nth-child(8) {
  transition-delay: 0.5s;
}

.phase-columns.visible .phase-columns__list li:nth-child(9),
.scope-columns.visible .phase-columns__list li:nth-child(9) {
  transition-delay: 0.56s;
}

.phase-columns.visible .phase-columns__list li:nth-child(10),
.scope-columns.visible .phase-columns__list li:nth-child(10) {
  transition-delay: 0.62s;
}


/* ============================================================
   BODY TEXT
   ============================================================ */
.body-text {
  margin-bottom: var(--space-lg);
}

.body-text+.body-text {
  margin-top: calc(-1 * var(--space-sm));
}

/* ============================================================
   PHASES OVERVIEW
   ============================================================ */
.phases-overview {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--space-2xl);
}

.phase-step {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-md);
  align-items: center;
  padding: 0 var(--space-xl);
}

.phase-step:first-child {
  padding-left: 0;
}

.phase-step:last-child {
  padding-right: 0;
}

.phase-step__icon {
  color: var(--color-text-primary);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 10px;
  box-sizing: content-box;
  background: var(--color-surface-3);
  border-radius: var(--radius-xl);
  grid-row: 1;
  grid-column: 1;
}

.phase-step__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  grid-row: 1;
  grid-column: 2;
}

.phase-step__desc {
  grid-column: 1 / -1;
}

.phase-step__separator {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, var(--color-border-emphasis) 30%, var(--color-border-emphasis) 70%, transparent);
  flex-shrink: 0;
}


/* ============================================================
   PHASE INDICATOR (breadcrumb)
   ============================================================ */
.phase-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.phase-indicator__step {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.phase-indicator__step--active {
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
}

.phase-indicator__sep {
  color: var(--color-border-default);
  font-size: var(--fs-caption);
}

/* ============================================================
   SECTION HEADER DESC
   ============================================================ */
.section-header__desc {
  margin-top: var(--space-md);
}

/* ============================================================
   DELIVERABLE GRID (compact 2-col)
   ============================================================ */
.deliverable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-lg);
  counter-reset: deliverable-item;
}

.deliverable-grid--compact {
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}

.deliverable-grid--compact .deliverable-item--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
}

.deliverable-grid--compact .deliverable-item__icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-sm);
  color: var(--color-option-2);
}

.deliverable-grid--compact .deliverable-item__title {
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-normal);
}

.deliverable-item {
  counter-increment: deliverable-item;
}

.deliverable-item__title {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 2.8em;
}

.deliverable-item__title::before {
  content: counter(deliverable-item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: inherit;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  position: absolute;
  left: 0;
  top: 0;
}


.deliverable-item__label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.deliverable-item__label::after {
  display: none;
}

.deliverable-item__title strong {
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

/* -- Icon variant (tech stack items) -- */
.deliverable-item--icon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-md);
  align-items: start;
  align-content: start;
}

.deliverable-item--icon .deliverable-item__icon {
  grid-row: 1 / 3;
  margin-top: 0.15em;
}

.deliverable-item--icon .deliverable-item__title {
  padding-left: 0;
  grid-column: 2;
  margin: 0;
}

.deliverable-item--icon .deliverable-item__title::before {
  display: none;
}

.deliverable-item--icon .deliverable-item__desc {
  grid-column: 2;
  margin: 0;
}

.deliverable-item__icon {
  width: 20px;
  height: 20px;
  padding: 10px;
  box-sizing: content-box;
  background: var(--color-surface-3);
  border-radius: var(--radius-xl);
  color: var(--color-text-primary);
  flex-shrink: 0;
}

/* Logo variant: tech logos rendered as white-filtered images */
.deliverable-item__icon--logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* Solution section color tokens */
.proposal-section--sol-a {
  --sol-color: var(--color-solution-1);
}

.proposal-section--sol-b {
  --sol-color: var(--color-solution-2);
}

/* ============================================================
   PROS & CONS SECTION
   ============================================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-3xl);
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.pros-cons__column--cons {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: var(--space-3xl);
}

@media (max-width: 768px) {
  .pros-cons__column--cons {
    border-left: none;
    padding-left: 0;
  }
}

.pros-cons__title {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin: 0 0 var(--space-md) 0;
}

.pros-cons__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-cons__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pros-cons__item:last-child {
  border-bottom: none;
}

.pros-cons__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-accent);
}

/* Solution intro 2-col layout */
.solution-intro-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.solution-intro-split__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Compact tech row */
.tech-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-row:first-child {
  padding-top: 0;
}

.tech-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tech-row__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0;
}

.tech-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-row__domain {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.tech-row__name {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.tech-row__note {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.solution-intro-split__arch {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: sticky;
  top: var(--space-xl);
}

.solution-intro__tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  color: var(--sol-color);
  margin: 0 0 var(--space-lg) 0;
}

.arch-summary__title {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Block architecture diagram */
.arch-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.arch-monolith-wrapper {
  border: 1.5px dashed rgba(91, 141, 239, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: rgba(91, 141, 239, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.arch-monolith-wrapper:hover {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.05);
}

.arch-monolith-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-solution-1);
  margin-bottom: var(--space-md);
  text-align: center;
}

.arch-headless-wrapper {
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.arch-headless-wrapper--fe {
  border: 1.5px dashed rgba(149, 191, 71, 0.25);
  background: rgba(149, 191, 71, 0.02);
}

.arch-headless-wrapper--fe:hover {
  border-color: rgba(149, 191, 71, 0.45);
  background: rgba(149, 191, 71, 0.04);
}

.arch-headless-wrapper--be {
  border: 1.5px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.01);
}

.arch-headless-wrapper--be:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.arch-headless-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  text-align: center;
}

.arch-headless-wrapper--fe .arch-headless-label {
  color: var(--color-solution-2);
}

.arch-headless-wrapper--be .arch-headless-label {
  color: var(--color-text-secondary);
}

.arch-cms-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.6rem;
  border: 1px solid var(--color-border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.arch-cms-bar__label {
  font-family: var(--font-label);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.arch-cms-bar__name {
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
}

.arch-cms-bar--theme {
  background: rgba(91, 141, 239, 0.05);
  border-color: rgba(91, 141, 239, 0.15);
}

.arch-cms-bar--theme:hover {
  background: rgba(91, 141, 239, 0.08);
  border-color: rgba(91, 141, 239, 0.35);
}

.arch-cms-bar--puck {
  background: rgba(149, 191, 71, 0.05);
  border-color: rgba(149, 191, 71, 0.15);
}

.arch-cms-bar--puck:hover {
  background: rgba(149, 191, 71, 0.08);
  border-color: rgba(149, 191, 71, 0.35);
}

.arch-box-coupled {
  border: 1px solid rgba(91, 141, 239, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: rgba(91, 141, 239, 0.04);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.arch-box-coupled:hover {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.07);
}

.arch-box-headless {
  border: 1px solid rgba(149, 191, 71, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: rgba(149, 191, 71, 0.04);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.arch-box-headless:hover {
  border-color: rgba(149, 191, 71, 0.45);
  background: rgba(149, 191, 71, 0.07);
}

/* Monolithic Backend Box & Connector internal adjustments */
.arch-monolith-wrapper .arch-box-backend {
  border: 1px solid rgba(91, 141, 239, 0.2);
  background: rgba(91, 141, 239, 0.03);
}

.arch-monolith-wrapper .arch-box-backend:hover {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.05);
}

.arch-monolith-wrapper .arch-arrow-line {
  background: rgba(91, 141, 239, 0.3);
}

.arch-monolith-wrapper .arch-arrow-head--up {
  border-bottom-color: rgba(91, 141, 239, 0.6);
}

.arch-monolith-wrapper .arch-arrow-head--down {
  border-top-color: rgba(91, 141, 239, 0.6);
}

.arch-monolith-wrapper .arch-arrow-label {
  border-color: rgba(91, 141, 239, 0.25);
  color: var(--color-solution-1);
  background: var(--color-surface-2);
}

/* Headless Backend Box & Connector external adjustments (Solution B) */
.arch-container > .arch-connector-arrow .arch-arrow-line {
  background: transparent;
  border-left: 1px dashed rgba(149, 191, 71, 0.4);
  width: 0;
}

.arch-container > .arch-connector-arrow .arch-arrow-head--up {
  border-bottom-color: rgba(149, 191, 71, 0.6);
}

.arch-container > .arch-connector-arrow .arch-arrow-head--down {
  border-top-color: rgba(149, 191, 71, 0.6);
}

.arch-container > .arch-connector-arrow .arch-arrow-label {
  border-color: rgba(149, 191, 71, 0.25);
  color: var(--color-solution-2);
  background: var(--color-surface-2);
}

.arch-box-title {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  text-align: left;
}

.arch-inner-container {
  background: transparent;
  border: none;
  padding: 0;
}



.arch-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
}

.arch-module-card {
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xs);
  padding: var(--space-sm) var(--space-xs);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast) var(--ease-out);
}

.arch-module-card:hover {
  background: var(--color-surface-4);
  border-color: var(--color-border-default);
  transform: translateY(-1px);
}

.arch-module-card--iframe {
  border-style: dashed;
  background: var(--color-surface-3);
  opacity: 0.8;
}

.arch-module-card--iframe:hover {
  opacity: 1;
}

.arch-module-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-module-icon svg {
  width: 100%;
  height: 100%;
}

.arch-module-card--iframe .arch-module-icon {
  color: var(--color-text-muted);
}

.arch-module-name {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  line-height: 1.2;
}

.arch-module-tags {
  font-family: var(--font-body);
  font-size: 0.52rem;
  color: var(--color-text-muted);
}

.arch-connector-arrow {
  display: flex;
  justify-content: center;
  position: relative;
  height: 48px;
  width: 100%;
}

.arch-arrow-line {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
}

.arch-arrow-head {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  z-index: 2;
}

.arch-arrow-head--up {
  top: 0;
  border-bottom: 6px solid rgba(255, 255, 255, 0.35);
}

.arch-arrow-head--down {
  bottom: 0;
  border-top: 6px solid rgba(255, 255, 255, 0.35);
}

.arch-arrow-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: var(--color-surface-2);
  padding: 3px var(--space-sm);
  border: 1px solid var(--color-border-subtle);
  border-radius: 100px;
  font-family: var(--font-label);
  font-size: 0.52rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.arch-box-backend {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--color-surface-3);
  position: relative;
  transition: border-color var(--duration-normal) var(--ease-out);
}

.arch-box-backend:hover {
  border-color: var(--color-border-default);
}

.arch-backend-split {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-xs);
  background: transparent;
  border: none;
  padding: 0;
}

.arch-backend-col-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arch-backend-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.arch-backend-subtext {
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: var(--color-text-muted);
}

.arch-backend-col-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
}

.arch-backend-col-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arch-backend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.arch-backend-list li {
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: var(--color-text-secondary);
  position: relative;
  padding-left: var(--space-sm);
}

.arch-backend-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-size: 0.5rem;
  top: 1px;
}

@media (max-width: 768px) {
  .arch-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-backend-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-sm);
  }
  .arch-backend-col-left {
    text-align: center;
  }
  .arch-backend-col-divider {
    display: none;
  }
  .arch-backend-list {
    align-items: center;
  }
}


.arch-summary__note {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
  font-style: italic;
}



/* -- Tech Stack Label & Badges -- */
.tech-stack-label {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.tech-stack-label__text {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-md);
}

.tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 100px;
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}

.tech-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   DISCOVERY BACKGROUND
   ============================================================ */
.proposal-section--bg-discovery::before {
  background-image: url('../assets/images/624380812_1489878223141007_2111133987539150885_n.jpg');
}

.proposal-section--bg-disc-addons::before {
  background-image: url('../assets/images/631501894_1495689439226552_1791891174743746902_n.jpg');
}

/* -- Design Core bg -- */
.proposal-section--bg-design::before {
  background-image: url('../assets/images/645217329_1517083857087110_7094407375459951343_n.jpg');
}

/* -- Design Add-ons bg -- */
.proposal-section--bg-design-addons::before {
  background-image: url('../assets/images/646546665_1520322146763281_3247098444133022534_n.jpg');
}

/* -- Dev Core bg -- */
.proposal-section--bg-dev::before {
  background-image: url('../assets/images/650369328_1525282699600559_8431460150866665099_n.jpg');
}

/* -- Dev Add-ons bg -- */
.proposal-section--bg-dev-addons::before {
  background-image: url('../assets/images/653019122_1531224662339696_3205788648745953292_n.jpg');
}

/* ============================================================
   TECH OPTIONS (EDITORIAL LAYOUT)
   ============================================================ */
/* ── Solution pair (side-by-side comparison) ── */
.solution-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
}

.solution-pair__divider {
  width: 1px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(255, 255, 255, 0.1) 20%,
      rgba(255, 255, 255, 0.1) 80%,
      transparent);
  align-self: stretch;
}

.solution-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Solution identity colors — single solution (A only) */
.solution-block:first-child,
.solution-block:last-child {
  --sol-color: var(--color-solution-1);
}

/* Stagger entrance */
.solution-pair.visible .solution-block:first-child {
  animation: solFadeIn 0.6s ease-out both;
}

.solution-pair.visible .solution-block:last-child {
  animation: solFadeIn 0.6s ease-out 0.15s both;
}

/* Recommendation capsule */
.solution-block--recommended {
  position: relative;
}

.solution-block__recommendation {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-solution-2, #5a9e7c);
  box-shadow: 0 0 18px rgba(90, 158, 124, 0.35);
}

.solution-block__recommendation::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
  flex-shrink: 0;
}

@keyframes solFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.solution-block__num {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--sol-color);
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}

.solution-block__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md) 0;
}

.solution-block__desc {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-lg) 0;
  flex: 1;
}

.solution-block__tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  color: var(--sol-color);
  margin: 0 0 var(--space-xl) 0;
  padding: 0;
  border: none;
}

.solution-block__logos {
  display: flex;
  align-items: flex-start;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.solution-block__tech {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 22%;
  padding-left: var(--space-md);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.solution-block__tech:first-child {
  padding-left: 0;
  border-left: none;
}

.solution-block__logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

/* Force inline SVGs to same height */
svg.solution-block__logo {
  height: 20px !important;
  width: auto !important;
  max-width: 100% !important;
  opacity: 0.5 !important;
  filter: brightness(0) invert(1) !important;
}

.solution-block__role {
  font-family: var(--font-label);
  font-size: 0.5rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.deliverable-item__label.tech-tag--stack-1 {
  color: var(--color-stack-1);
}

.deliverable-item__label.tech-tag--stack-2 {
  color: var(--color-stack-2);
}

.deliverable-item__label.tech-tag--stack-3 {
  color: var(--color-stack-3);
}

.deliverable-item__label.tech-tag--stack-4 {
  color: var(--color-stack-4);
}

/* ============================================================
   DETAIL SPLIT (2-col: tech left, notes right)
   ============================================================ */
.detail-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
  align-items: start;
}

.detail-split__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ============================================================
   TECH OVERVIEW SPLIT — details left, large logo right
   ============================================================ */
.tech-overview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.tech-overview-split__details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tech-overview-split__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tech-stack-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl) var(--space-3xl);
  width: 100%;
  padding-left: var(--space-2xl);
  border-left: 1px solid var(--color-border-subtle);
}

.tech-stack-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.tech-stack-card__role {
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-solution-1);
  opacity: 0.9;
}

.tech-stack-card__img {
  height: 36px;
  width: auto;
  max-width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

.tech-stack-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-tertiary);
}

/* -- Tech Overview bg -- */

.proposal-section--bg-tech::before {
  background-image: url('../assets/images/654759866_1533427685452727_4731662056750825287_n.jpg');
}

/* -- Option 1 bg -- */
.proposal-section--bg-opt1::before {
  background-image: url('../assets/images/657561740_1535290698599759_2091616423868243186_n.jpg');
}

/* -- Option 2 bg -- */
.proposal-section--bg-opt2::before {
  background-image: url('../assets/images/660502203_1537249735070522_6046327497338936055_n.jpg');
}

/* -- Option 1 Considerations bg -- */
.proposal-section--bg-opt1-cons::before {
  background-image: url('../assets/images/654759866_1533427685452727_4731662056750825287_n.jpg');
}

/* -- Option 2 Advantages bg -- */
.proposal-section--bg-opt2-adv::before {
  background-image: url('../assets/images/653019122_1531224662339696_3205788648745953292_n.jpg');
}

/* -- Key Considerations bg -- */
.proposal-section--bg-considerations::before {
  background-image: url('../assets/images/689305990_1575606801234815_6420008777249988453_n.jpg');
}

/* -- Next Steps bg -- */
.proposal-section--bg-next-steps::before {
  background-image: url('../assets/images/526541390_1324755512986613_7898896846393619435_n.jpg');
}

/* -- Investment bg -- */
.proposal-section--bg-investment::before {
  background-image: url('../assets/images/616388007_1474855057976657_2732816734948789905_n.jpg');
}

/* -- Overall Timeline bg -- */
.proposal-section--bg-timeline::before {
  background-image: url('../assets/images/646546665_1520322146763281_3247098444133022534_n.jpg');
}

/* -- Project Investment bg -- */
.proposal-section--bg-project-investment::before {
  background-image: url('../assets/images/540640865_1350477700414394_5328923354795565798_n.jpg');
}

.proposal-section--bg-project-investment {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  justify-content: flex-start;
}

.proposal-section--bg-project-investment .section-header {
  margin-bottom: var(--space-md);
}

.proposal-section--bg-project-investment .phase-chart__row {
  padding: 4px 0;
}

.proposal-section--bg-project-investment .phase-chart__bars {
  gap: 4px;
}

.proposal-section--bg-project-investment .phase-chart__footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

/* -- Client Involvement bg -- */
.proposal-section--bg-involvement::before {
  background-image: url('../assets/images/624380812_1489878223141007_2111133987539150885_n.jpg');
}

/* -- Pillar Core bg -- */
/* -- Pillar Core bg -- */
.proposal-section--bg-pillar-core::before {
  background-image: url('../assets/images/645217329_1517083857087110_7094407375459951343_n.jpg');
}
.proposal-section--bg-pillar-core::after { display: none; }

/* -- Pillar Configurator bg -- */
.proposal-section--bg-pillar-configurator::before {
  background-image: url('../assets/images/650369328_1525282699600559_8431460150866665099_n.jpg');
}
.proposal-section--bg-pillar-configurator::after { display: none; }

/* -- Pillar Map bg -- */
.proposal-section--bg-pillar-map::before {
  background-image: url('../assets/images/631501894_1495689439226552_1791891174743746902_n.jpg');
}
.proposal-section--bg-pillar-map::after { display: none; }

/* -- Pillar Portal bg -- */
.proposal-section--bg-pillar-portal::before {
  background-image: url('../assets/images/654759866_1533427685452727_4731662056750825287_n.jpg');
}
.proposal-section--bg-pillar-portal::after { display: none; }

/* -- Pillar Scorecard bg -- */
.proposal-section--bg-pillar-scorecard::before {
  background-image: url('../assets/images/653019122_1531224662339696_3205788648745953292_n.jpg');
}

/* -- Pillar Intro bg -- */
.proposal-section--bg-pillar-intro::before {
  background-image: url('../assets/images/631501894_1495689439226552_1791891174743746902_n.jpg');
}


/* ============================================================
   BULLET LIST
   ============================================================ */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.bullet-list li {
  padding-left: var(--space-lg);
  position: relative;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

/* ============================================================
   SCOPE COLUMNS — clean text layout, no cards
   ============================================================ */
.scope-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  align-items: start;
}

.scope-column__label {
  display: block;
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.scope-column__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.scope-column .body-text {
  margin-bottom: 0;
}

.scope-column__divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-border-subtle);
}

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

  .scope-column__divider {
    width: 100%;
    height: 1px;
  }
}

/* ============================================================
   DELIVERABLE ITEMS — not identical cards.
   Numbered list items with title + description.
   Varied layout, not grid.
   ============================================================ */
.deliverable-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  counter-reset: deliverable;
}

/* Grid variant — compact 2-column layout */
.deliverable-list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.deliverable-list--grid .deliverable {
  padding: 0;
  border-bottom: none;
}

.deliverable-list--grid .deliverable:last-child {
  padding-bottom: 0;
}



.deliverable {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-md);
  counter-increment: deliverable;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.deliverable:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.deliverable__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  padding-top: 4px;
  text-align: right;
}

.deliverable__num::before {
  content: counter(deliverable, decimal-leading-zero);
}

.deliverable__num--icon::before {
  display: none;
}

.deliverable__num svg {
  width: 20px;
  height: 20px;
  padding: 10px;
  box-sizing: content-box;
  background: var(--color-surface-3);
  border-radius: var(--radius-xl);
  color: var(--color-text-primary);
}

.deliverable__content {}

.deliverable__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-snug);
}


/* Sub-section label */
.sub-label {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-3xl);
}

.sub-label--addon {
  color: var(--color-option-1);
}

/* ============================================================
   CARD GRID (used sparingly, only for Key Considerations)
   ============================================================ */
.card-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-surface-1);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--color-border-default);
}

.card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-snug);
}


/* ============================================================
   OPTION TOGGLE
   ============================================================ */
.option-toggle-wrapper {
  margin-bottom: var(--space-3xl);
}

.option-toggle {
  display: inline-flex;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.option-toggle__btn {
  padding: 8px 20px;
  font-family: var(--font-label);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.option-toggle__btn:hover {
  color: var(--color-text-secondary);
}

.option-toggle__btn:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: -2px;
}

.option-toggle__btn.active {
  background: var(--color-surface-4);
  color: var(--color-text-primary);
}

.option-toggle__btn.active[data-option="1"] {
  background: oklch(0.25 0.04 245);
  color: var(--color-option-1);
}

.option-toggle__btn.active[data-option="2"] {
  background: oklch(0.22 0.04 160);
  color: var(--color-option-2);
}

/* Option panels */
.option-panel {
  display: none;
  animation: panelIn var(--duration-normal) var(--ease-out-expo);
}

.option-panel.active {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ARCHITECTURE DIAGRAM
   ============================================================ */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
}

.arch-layer {
  display: flex;
  gap: var(--space-sm);
}

.arch-box {
  flex: 1;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.arch-box:hover {
  border-color: var(--color-border-default);
}

.arch-box--opt1:hover {
  border-color: oklch(0.50 0.08 245);
}

.arch-box--opt2:hover {
  border-color: oklch(0.50 0.08 160);
}

.arch-box__label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.arch-box__value {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.arch-box__desc {
  margin-top: 2px;
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) 0;
  color: var(--color-text-muted);
}

.arch-connector svg {
  width: 16px;
  height: 16px;
}

/* Capabilities / Limitations */
.cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cap-list li {
  padding-left: 1.4em;
  position: relative;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

.cap-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--fw-bold);
}

.cap-list--pros li::before {
  content: '✓';
  color: var(--color-success);
}

.cap-list--cons {
  counter-reset: cons-counter;
}

.cap-list--cons li::before {
  content: counter(cons-counter, decimal-leading-zero);
  counter-increment: cons-counter;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.proposal-table-wrapper {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 72vh;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-1);
  position: relative;

  /* Custom scrollbar — Webkit */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Scroll hint above table */
.table-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: opacity 0.4s ease;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg-primary);
}

.table-scroll-hint svg {
  width: 14px;
  height: 14px;
  animation: scrollHintBob 2s ease-in-out infinite;
}

.table-scroll-hint--hidden {
  opacity: 0;
  pointer-events: none;
}

.proposal-table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.proposal-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.proposal-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.proposal-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.proposal-table-wrapper::-webkit-scrollbar-corner {
  background: transparent;
}

.proposal-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
}

.proposal-table thead {
  background: var(--color-surface-2);
  position: sticky;
  top: 0;
  z-index: 2;
}

.proposal-table tfoot {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.proposal-table th {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-family: var(--font-label);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-subtle);
  overflow-wrap: break-word;
}

.proposal-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  vertical-align: top;
  line-height: var(--lh-normal);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.proposal-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}

.proposal-table tbody tr:hover {
  background: var(--color-surface-2);
}

.proposal-table tbody tr:last-child td {
  border-bottom: none;
}

.proposal-table td:first-child {
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.proposal-table th,
.proposal-table td {
  border-right: 1px solid var(--color-border-subtle);
}

.proposal-table th:last-child,
.proposal-table td:last-child {
  border-right: none;
}

.proposal-table .text-opt1 {
  color: var(--color-option-1);
}

.proposal-table .text-opt2 {
  color: var(--color-option-2);
}

.proposal-table .text-muted {
  color: var(--color-text-muted);
}

.proposal-table .row-total {
  background: var(--color-surface-2);
}

.proposal-table .row-total td {
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
  border-top: 1px solid var(--color-border-default);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

/* Highlighted investment column */
.proposal-table .td-invest {
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.proposal-table .row-total .td-invest {
  font-weight: var(--fw-bold);
}

/* Zebra striping for readability */
.proposal-table tbody tr:nth-child(even) {
  background: oklch(0.22 0.01 240 / 0.7);
}

/* Summary table (7-column side-by-side) */
.proposal-table--summary {
  font-size: 12px;
}

.proposal-table--summary td,
.proposal-table--summary th {
  padding: var(--space-sm) var(--space-xs);
  white-space: nowrap;
}

.proposal-table--summary td:first-child,
.proposal-table--summary th:first-child {
  white-space: normal;
  padding: var(--space-sm) var(--space-md);
}

/* Table Row Capsules */
.badge-capsule {
  display: flex;
  width: fit-content;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--font-label);
  font-size: 0.55rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  line-height: 1;
  margin-bottom: 6px;
}

.badge-capsule--basic {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
}

.badge-capsule--addon {
  background: rgba(224, 147, 88, 0.08);
  color: #E09358;
  border: 1px solid rgba(224, 147, 88, 0.15);
}

/* ============================================================
   DELIVERABLES INFOGRAPHIC
   ============================================================ */
.deliverable-infographic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.deliverable-block {
  display: flex;
  flex-direction: column;
}

.deliverable-block__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-option-2);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.deliverable-block__label {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.deliverable-block__tags {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.deliverable-block__tags span {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--color-border-subtle);
  line-height: var(--lh-relaxed);
}

.deliverables-group__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-subtle);
}

.deliverables-checklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deliverables-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out);
}

.deliverables-checklist__item:hover {
  background: var(--color-surface-2);
}

.deliverables-checklist__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #10b981;
}

.deliverables-checklist__item strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.deliverables-checklist__item p {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.deliverables-checklist__item span {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   PHASE CHART — per-phase horizontal bar comparison
   ============================================================ */
.phase-chart {
  display: flex;
  flex-direction: column;
}

.phase-chart__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-lg);
}

.phase-chart__legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-end;
}

.phase-chart__note {
  margin: 0;
  opacity: 0.5;
  font-style: italic;
  color: var(--color-text-muted);
}

.phase-chart__note strong {
  font-style: normal;
}

.phase-chart__legend-tag {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
}

.phase-chart__legend-tag::before {
  content: '';
  width: 20px;
  height: 6px;
  border-radius: 3px;
}

.phase-chart__legend-tag--opt1::before {
  background: var(--color-solution-1);
}

.phase-chart__legend-tag--opt2::before {
  background: #28513D;
}

.phase-chart__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.phase-chart__row--total {
  border-bottom: none;
  border-top: 1px solid var(--color-border-default);
  padding-top: var(--space-md);
  margin-top: var(--space-xs);
}

.phase-chart__delta {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.phase-chart__delta--diff {
  color: oklch(0.55 0.10 25);
  font-weight: var(--fw-semibold);
}

.phase-chart__delta--total {
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.phase-chart__delta-date {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  letter-spacing: 0.03em;
}

.phase-chart__label {
  font-family: var(--font-label);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  padding-left: var(--space-sm);
  border-left: 3px solid var(--color-solution-1);
  opacity: 0.75;
}

.phase-chart__bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phase-chart__bar {
  min-width: fit-content;
  width: calc(var(--w) * 1%);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.phase-chart__bar::after {
  content: '';
  display: block;
  height: 6px;
  width: 100%;
  border-radius: 3px;
}

.phase-chart__bar--opt1::after {
  background: var(--color-solution-1);
}

.phase-chart__bar--opt2::after {
  background: #28513D;
}

.phase-chart__bar span {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

.phase-chart__bar--opt1 span {
  color: var(--color-text-secondary);
}

.phase-chart__bar--opt2 span {
  color: var(--color-text-secondary);
}

.phase-chart__tag {
  font-size: 9px !important;
  font-weight: var(--fw-bold) !important;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phase-chart__bar--total-size::after {
  height: 8px;
}

.phase-chart__bar--total-size span {
  font-size: 15px;
  font-weight: var(--fw-bold);
  letter-spacing: 1px;
}

/* Involvement bar variant */
.phase-chart__bar--involve {
  background: oklch(0.25 0.01 240);
  border: 1px solid oklch(0.35 0.02 240);
}

.phase-chart__bar--involve span {
  color: oklch(0.75 0.02 240);
}

/* ============================================================
   INVOLVEMENT INFOGRAPHIC — step cards with connecting line
   ============================================================ */
.involve {
  display: flex;
  flex-direction: column;
}

.involve__card {
  display: flex;
  gap: var(--space-lg);
}

.involve__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.involve__step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  flex-shrink: 0;
}

.involve__step-line {
  width: 2px;
  flex: 1;
  background: var(--color-border-default);
}

.involve__body {
  flex: 1;
  padding-bottom: var(--space-xl);
}

.involve__top {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

/* ============================================================
   DELIVERABLES (tight variant)
   ============================================================ */
.deliverable-grid--tight {
  gap: var(--space-md) var(--space-2xl);
  margin-top: var(--space-md);
}

.deliverable-grid--tight .deliverable-item__title {
  margin-bottom: 0;
}



/* -- Layout: grid + KPI sidebar -- */
.deliverable-layout {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-md);
}

.deliverable-layout .deliverable-grid {
  flex: 1;
  margin-top: 0;
}

.deliverable-kpis {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: var(--space-xl);
  border-left: 1px solid var(--color-border-subtle);
}

.deliverable-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deliverable-kpi__value {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-option-2);
  line-height: 1;
}

.deliverable-kpi__label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.involve__phase {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin: 0;
}

.involve__format {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-subtle);
  padding: 2px var(--space-sm);
  border-radius: 3px;
}

.involve__hours {
  font-family: var(--font-label);
  font-size: 28px;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.involve__remark {
  margin: 0;
}

/* ============================================================
   CALLOUT — full border, no side-stripe
   ============================================================ */
.callout {
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.callout--info {
  background: oklch(0.18 0.02 245);
  border-color: oklch(0.30 0.04 245);
}

.callout__title {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.callout__text {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   PROJECT TIMELINE (Calendar Gantt)
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-2xl);
}

/* Header rows */
.timeline__header {
  display: flex;
  align-items: stretch;
}

.timeline__label-spacer {
  width: 150px;
  flex-shrink: 0;
}

.timeline__calendar-head {
  flex: 1;
  display: flex;
}

/* Month headers span multiple week columns */
.timeline__month {
  flex: var(--cols);
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  padding-left: var(--space-sm);
  border-left: 1px solid var(--color-border-subtle);
  background: oklch(0.16 0.008 240 / 0.5);
}

.timeline__month:first-child {
  border-left: none;
}

/* Week date headers */
.timeline__header--dates {
  border-bottom: 1px solid var(--color-border-subtle);
}

.timeline__date {
  flex: 1;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  opacity: 0.6;
  padding: 4px 0;
  padding-left: var(--space-xs);
  border-left: 1px solid oklch(0.22 0.005 240 / 0.5);
}

.timeline__date:first-child {
  border-left: none;
}

/* Phase rows */
.timeline__row {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid oklch(0.18 0.005 240 / 0.6);
}

.timeline__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 150px;
  flex-shrink: 0;
  padding-right: var(--space-md);
}

.timeline__phase-name {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}

.timeline__days {
  font-family: var(--font-label);
  font-size: 10px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* Grid area with vertical week lines */
.timeline__grid {
  flex: 1;
  position: relative;
  height: 36px;
  background-image: repeating-linear-gradient(90deg,
      oklch(0.22 0.005 240 / 0.5) 0px,
      oklch(0.22 0.005 240 / 0.5) 1px,
      transparent 1px,
      transparent 100%);
  background-size: calc(100% / 15) 100%;
  background-position: 0 0;
}

/* Bars positioned by start% and end% */
.timeline__bar {
  position: absolute;
  left: calc(var(--start) * 1%);
  width: calc((var(--end) - var(--start)) * 1%);
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline__bar-text {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  white-space: nowrap;
  opacity: 0.9;
}

/* Phase colors */
.timeline__bar--discovery {
  background: oklch(0.42 0.12 250 / 0.7);
  border: 1px solid oklch(0.55 0.14 250 / 0.3);
}

.timeline__bar--design {
  background: oklch(0.42 0.12 180 / 0.7);
  border: 1px solid oklch(0.55 0.14 180 / 0.3);
}

.timeline__bar--dev {
  background: oklch(0.38 0.10 140 / 0.7);
  border: 1px solid oklch(0.50 0.12 140 / 0.3);
}

.timeline__bar--addon {
  background: repeating-linear-gradient(135deg,
      oklch(0.35 0.06 60 / 0.5),
      oklch(0.35 0.06 60 / 0.5) 4px,
      oklch(0.30 0.04 60 / 0.3) 4px,
      oklch(0.30 0.04 60 / 0.3) 8px);
  border: 1px solid oklch(0.50 0.10 60 / 0.3);
}

.timeline__bar--uat {
  background: oklch(0.38 0.08 280 / 0.6);
  border: 1px solid oklch(0.50 0.10 280 / 0.3);
}

.timeline__bar--launch {
  background: oklch(0.42 0.14 25 / 0.7);
  border: 1px solid oklch(0.55 0.16 25 / 0.3);
}

/* Launch row */
.timeline__row--launch {
  border-bottom: none;
}

/* Milestone dots */
.timeline__row--milestones {
  border-top: 1px dashed oklch(0.3 0.01 240 / 0.5);
  min-height: 56px;
}

.timeline__dot {
  position: absolute;
  left: calc(var(--pos) * 1%);
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.timeline__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.7 0.15 50);
  border: 2px solid oklch(0.85 0.1 50);
  box-shadow: 0 0 8px oklch(0.7 0.15 50 / 0.4);
}

.timeline__dot-label {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: var(--fw-semibold);
  color: oklch(0.7 0.1 50);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Summary footer */
.timeline__summary {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
}

.timeline__summary-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline__summary-label {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.timeline__summary-value {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

/* ============================================================
   NEXT STEPS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  position: relative;
  gap: var(--space-3xl);
  max-width: none;
  margin-bottom: var(--space-xl);
}

.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(22px + var(--space-3xl));
  right: calc(22px + var(--space-3xl));
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), var(--color-border-subtle));
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-0);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  margin: 0 auto var(--space-md);
}

.step__label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.step__title {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  line-height: var(--lh-snug);
}

.step__desc {
  margin-top: var(--space-xs);
}

/* Next steps CTA */
.next-steps-cta {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
  max-width: none;
}

.next-steps-cta p {
  margin-bottom: var(--space-sm);
}

.next-steps-cta__contact {
  font-size: var(--fs-small) !important;
  color: var(--color-text-muted) !important;
  letter-spacing: 0.02em;
}

/* ============================================================
   DOCUMENT CONTROL
   ============================================================ */
.doc-control {
  margin-top: var(--space-2xl);
}

.doc-control__table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  margin-bottom: var(--space-2xl);
}

.doc-control__table th,
.doc-control__table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--color-border-subtle);
}

.doc-control__table th {
  color: var(--color-text-muted);
  font-family: var(--font-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-caption);
}

.doc-control__table td {
  color: var(--color-text-secondary);
}

/* Download PDF */
.doc-download {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.doc-download__note {
  margin-bottom: var(--space-md);
}

.doc-download__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.7em 1.6em;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-label);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.doc-download__btn:hover {
  background: var(--color-accent);
  color: var(--color-surface-0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.proposal-footer {
  padding: var(--space-3xl) clamp(var(--space-2xl), 7vw, var(--space-5xl));
  border-top: 1px solid var(--color-border-subtle);
}

.proposal-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.proposal-footer__logo {
  height: 16px;
  width: auto;
  opacity: 0.35;
}

.proposal-footer__divider {
  width: 1px;
  height: 18px;
  background: var(--color-border-subtle);
}

.proposal-footer__text {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 200ms;
}

.reveal-stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .sidebar__toggle {
    display: flex;
  }

  .main {
    margin-left: 0;
  }

  .card-grid--3col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__meta {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero__meta-divider {
    width: 32px;
    height: 1px;
  }

  .steps {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .steps::before {
    display: none;
  }

  .proposal-table {
    font-size: var(--fs-caption);
  }

  .arch-layer {
    flex-direction: column;
  }

  .deliverable {
    grid-template-columns: 28px 1fr;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0.1 0.01 240 / 0.7);
  z-index: calc(var(--z-sidebar) - 1);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================================
   SECTION-SPECIFIC OVERRIDES
   ============================================================ */

/* sub-section__title for option panels */
.sub-section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

/* sub-section__badge — not used mechanically */
.sub-section__badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.sub-section__badge--addon {
  color: var(--color-option-1);
}

/* ============================================================
   RESPONSIVE — shorter viewports
   ============================================================ */
@media (max-height: 800px) {
  .proposal-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .body-text {
    font-size: var(--fs-small);
    margin-bottom: var(--space-md);
  }

  .intro-metrics {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
  }

  .intro-metric__value {
    font-size: var(--fs-h2);
  }
}

@media (max-height: 650px) {
  .proposal-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
  }

  .section-header__title {
    font-size: var(--fs-h2);
  }

  .body-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
  }
}

/* ============================================================
   PILLAR INTRODUCTION PAGE
   ============================================================ */
.pillar-intro__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

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

.pillar-intro__card {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pillar-intro__card:last-child {
  border-bottom: none;
}

.pillar-intro__card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.pillar-intro__card-icon {
  color: var(--color-brand-grey-light);
  flex-shrink: 0;
  display: inline-flex;
}

/* Icons use neutral colour */

.pillar-intro__card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.pillar-intro__card-question {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

/* --- Score Timeline (inline, bottom) --- */
.pillar-intro__score-timeline {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
}

.pillar-intro__score-timeline-label {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.pillar-intro__score-timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line behind the steps */
.pillar-intro__score-timeline-track::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.06), var(--color-border-subtle), rgba(255,255,255,0.06));
}

.pillar-intro__score-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
}

/* Dot on the timeline */
.pillar-intro__score-step::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pillar-intro__score-step-range {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.pillar-intro__score-step-name {
  font-size: var(--fs-caption);
  color: var(--color-text-tertiary);
  line-height: var(--lh-snug);
}

@media (max-width: 600px) {
  .pillar-intro__score-timeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .pillar-intro__score-timeline-track::before {
    display: none;
  }
}

/* ============================================================
   TABLE SCORES — clean typographic, no badge/pill design
   ============================================================ */
.table-score {
  display: block;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.table-score--sol-a {
  color: var(--color-solution-1);
}

.table-score--sol-b {
  color: var(--color-solution-2);
}

.table-score--lg {
  font-size: 1rem;
}

/* ============================================================
   EVALUATION PILLARS (2x2 GRID & CARDS)
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-xl);
  margin-top: var(--space-xl);
  width: 100%;
}

@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.pillar-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--duration-normal) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.pillar-card:hover {
  border-color: var(--color-border-emphasis);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pillar-card__header {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: var(--space-sm);
}

.pillar-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pillar-card__title svg {
  color: var(--color-brand-grey-light);
  flex-shrink: 0;
}

.pillar-card__focus {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
}

.pillar-card__comparison {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-grow: 1;
}

.pillar-card__side {
  padding-left: var(--space-md);
  border-left: 2px solid transparent;
}

.pillar-card__side--sol-a {
  border-left-color: var(--color-solution-1);
}

.pillar-card__side--sol-b {
  border-left-color: var(--color-solution-2);
}

.pillar-card__side-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.pillar-card__side-label--sol-a {
  color: var(--color-solution-1);
}

.pillar-card__side-label--sol-b {
  color: var(--color-solution-2);
}

.pillar-card__side-desc {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

/* ============================================================
   PRINT — flatten all sections into a continuous PDF
   ============================================================ */
@media print {

  /* Remove scroll-snap and fixed viewport heights */
  .proposal-main {
    height: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .proposal-section {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Hide interactive / nav elements */
  .sidebar,
  .gate,
  .doc-download,
  .table-scroll-hint,
  .proposal-section::after {
    display: none !important;
  }

  /* Ensure all reveal animations are visible */
  .reveal,
  .reveal-stagger .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Ensure backgrounds print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Tables should not clip */
  .proposal-table-wrapper {
    max-height: none !important;
    overflow: visible !important;
  }
}