:root {
  --cs-ink: #17201c;
  --cs-forest: #203b30;
  --cs-forest-dark: #14251e;
  --cs-paper: #f5f2e9;
  --cs-soft: #eaf0eb;
  --cs-line: rgba(23, 32, 28, 0.15);
  --cs-line-light: rgba(255, 255, 255, 0.15);
  --cs-gold: #b7a775;
  --cs-red: #a53b35;
  --cs-radius: 20px;
  --cs-nav-offset: 136px;
}

.cs-site main section[id] {
  scroll-margin-top: var(--cs-nav-offset);
}

/* ==========================================================================
   HERO & PERFORMANCE GAINS
   ========================================================================== */
.cs-photo-hero {
  position: relative;
  isolation: isolate;
  min-height: 880px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background: #101d17;
}

.cs-photo-hero__media,
.cs-photo-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cs-photo-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cs-photo-hero__veil {
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 16, 12, 0.98) 0%, rgba(8, 16, 12, 0.92) 40%, rgba(8, 16, 12, 0.45) 75%, rgba(8, 16, 12, 0.35) 100%),
              linear-gradient(0deg, rgba(8, 16, 12, 0.75), transparent 60%);
}

.cs-photo-hero__content {
  padding-top: 180px;
  padding-bottom: 70px;
}

.cs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--cs-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cs-kicker svg {
  width: 18px;
  height: 18px;
}

.cs-photo-hero__content h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(3.6rem, 7vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.cs-photo-hero__subtitle {
  max-width: 820px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.18;
}

.cs-photo-hero__intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1140px;
  margin: 32px 0;
}

.cs-photo-hero__intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

/* Metric Rail (40%, 35%, 25%, 30%) */
.cs-metric-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--cs-line-light);
  background: rgba(8, 16, 12, 0.55);
  backdrop-filter: blur(14px);
}

.cs-metric-item {
  padding: 24px 28px;
  border-right: 1px solid var(--cs-line-light);
}

.cs-metric-item:last-child {
  border-right: none;
}

.cs-metric-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cs-metric-header strong {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

.cs-metric-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(183, 167, 117, 0.2);
  color: var(--cs-gold);
  font-size: 0.74rem;
  font-weight: 800;
}

.cs-metric-item h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
}

.cs-metric-item p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

/* ==========================================================================
   STICKY SECTION NAVIGATION & PROGRESS
   ========================================================================== */
.cs-section-nav {
  position: sticky;
  z-index: 700;
  top: var(--header-height);
  border-bottom: 1px solid var(--cs-line);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(16px);
}

.cs-section-nav .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 54px;
}

.cs-section-nav .container > span {
  flex: none;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-section-nav .container > div {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cs-section-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  flex: none;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.cs-section-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--cs-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.cs-section-nav a.is-active {
  color: var(--cs-ink);
}

.cs-section-nav a.is-active::after {
  transform: scaleX(1);
}

.cs-progress {
  position: fixed;
  z-index: 1300;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cs-red), var(--cs-gold));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.cs-section {
  padding: clamp(50px, 12vw, 80px) 0;
}


/* ==========================================================================
   HERO PILLS
   ========================================================================== */
.cs-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1050px;
  margin: 28px 0 36px;
}

.cs-hero-pills span {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   TABS LAYOUT & SIDEBAR (Clean & Modern CaiDes Theme)
   ========================================================================== */
.cs-tabs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;  /* ← مهم: minmax(0, 1fr) */
  gap: 8px;
  align-items: start;
}

.cs-tabs-main {
  min-width: 0;   /* ← حیاتی */
}

/* Tab Navigation */
.cs-tabs-nav {
  display: flex;
  /* gap: 6px; */
  padding: 8px;
  background: rgba(23, 32, 28, 0.05);
  border-radius: 14px;
  border: 1px solid var(--cs-line);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
  min-width: 0;   /* ← حیاتی */
}

.cs-tab-btn {
  flex: 1;
  justify-content: center; 
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.cs-tab-btn svg {
  width: 17px;
  height: 17px;
}

.cs-tab-btn:hover {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.6);
}

.cs-tab-btn.is-active {
  background: var(--cs-forest);
  color: #ffffff;
  border-color: var(--cs-forest);
  box-shadow: 0 4px 14px rgba(32, 59, 48, 0.22);
}

/* Tab Panes */
.cs-tab-pane {
  display: none;
}

.cs-tab-pane.is-active {
  display: block;
}

.cs-pane-card {
  padding: clamp(32px, 4vw, 50px);
  background: #ffffff;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  box-shadow: 0 10px 30px rgba(23, 32, 28, 0.04);
}

.cs-pane-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 18px;
}

.cs-pane-lead {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 36px;
}

.cs-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--cs-line);
}

.cs-sub-col h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 20px;
}

/* Feature List */
.cs-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.cs-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

.cs-icon--spark {
  width: 18px;
  height: 18px;
  color: #179c78;
  flex-shrink: 0;
}

/* Tech Pills */
.cs-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cs-tech-pills span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(33, 61, 50, 0.07);
  border: 1px solid rgba(33, 61, 50, 0.16);
  color: var(--cs-forest);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Sidebar Cards */
.cs-sidebar {
  display: grid;
  gap: 10px;
  position: sticky;
  top: calc(var(--header-height) + 0px);
  min-width: 0;
}

.cs-sidebar-card {
  padding: 14px 10px;
  background: #ffffff;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  box-shadow: 0 10px 30px rgba(23, 32, 28, 0.04);
  min-width: 0;
}

.cs-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 9px;
}

.cs-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.cs-sidebar-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--cs-paper);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: all var(--transition);
  
}

.cs-sidebar-list li,
.cs-cert-shield-list li {
  min-width: 0;
}

.cs-sidebar-list li:hover {
  border-color: var(--cs-line);
  transform: translateX(3px);
}

.cs-sidebar-list svg {
  width: 17px;
  height: 17px;
  color: var(--cs-forest);
}

.cs-cert-shield-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.cs-cert-shield-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  font-weight: 500;
}

.cs-cert-shield-list svg {
  width: 19px;
  height: 19px;
  color: #179c78;
  flex-shrink: 0;
}

.cs-sidebar-list li span,
.cs-cert-shield-list li span {
  min-width: 0;
  overflow-wrap: anywhere;  /* ← متن‌های بلند رو می‌شکنه */
}


/* Responsive */
@media (max-width: 1020px) {
  .cs-tabs-layout {
    grid-template-columns: 1fr;
  }
  .cs-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .cs-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TAB 2: PROCESS STYLES
   ========================================================================== */
.cs-process-header {
  gap: 0px;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-process-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--cs-forest);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 12px;
}

.cs-process-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 18px;
}

.cs-process-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.cs-process-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(23, 156, 120, 0.1);
  color: #179c78;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.cs-process-badge svg {
  width: 16px;
  height: 16px;
}

.cs-process-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
}

.cs-activity-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
}

.cs-activity-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

.cs-activity-checklist svg {
  width: 19px;
  height: 19px;
  color: #179c78;
  flex-shrink: 0;
}

.cs-combustion {
  padding: 12px 14px;
  background: linear-gradient(to right, var(--cs-paper), #ffffff);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-ink);
  transition: all var(--transition);
}

.cs-combustion:hover {
  transform: translateX(8px);
}

.cs-deliverable-stripes {
  display: grid;
  gap: 10px;
}

.cs-deliverable-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 10px;
  background: rgba(33, 61, 50, 0.05);
  border: 1px solid rgba(33, 61, 50, 0.1);
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--transition), border-color var(--transition);
}

.cs-deliverable-item:hover {
  transform: translateX(4px);
  border-color: var(--cs-forest);
}

.cs-deliverable-item svg {
  width: 18px;
  height: 18px;
  color: var(--cs-forest);
  flex-shrink: 0;
}

/* ==========================================================================
   TAB 3: BENEFITS STYLES
   ========================================================================== */
.cs-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.cs-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.cs-col-header h2 {
  font-size: 1.55rem;
  margin: 0;
  font-family: var(--font-display);
}

.cs-header-icon {
  width: 24px;
  height: 24px;
  color: var(--cs-forest);
}

.cs-pill-stack {
  display: grid;
  gap: 10px;
}

/* Key Benefits Pill */
.cs-benefit-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 10px;
  background: rgba(23, 32, 28, 0.035);
  border: 1px solid var(--cs-line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: all var(--transition);
}

.cs-benefit-pill:hover {
  background: #fff;
  border-color: var(--cs-forest);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 32, 28, 0.05);
}

.cs-pill-icon {
  width: 18px;
  height: 18px;
  color: var(--cs-forest);
  flex-shrink: 0;
}

/* Expected Outcomes Pill */
.cs-outcome-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 10px;
  background: rgba(23, 32, 28, 0.035);
  border: 1px solid var(--cs-line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: all var(--transition);
}

.cs-outcome-pill:hover {
  background: #fff;
  border-color: var(--cs-forest);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 32, 28, 0.05);
}

.cs-outcome-icon-wrap {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cs-forest);
  color: #fff;
  flex-shrink: 0;
}

.cs-outcome-icon-wrap svg {
  width: 14px;
  height: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cs-process-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cs-process-grid,
  .cs-benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LEAN UNIFIED EPC EXCELLENCE
   ========================================================================== */
/* ==========================================================================
   LEAN UNIFIED EPC EXCELLENCE
   ========================================================================== */
.cs-section--lean {
  background: #ffffff;
  border-top: 1px solid var(--cs-line);
  padding: clamp(10px, 4vw, 110px) 0;
}

.cs-lean-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 30px;
}

.cs-lean-heading h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.cs-lean-heading p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-muted);
}

.cs-lean-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ---------- Card ---------- */
.cs-lean-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 22px 26px;
  background: var(--cs-paper);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.cs-lean-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 80% at 50% 0%,
    rgba(183, 167, 117, 0.14) 0%,
    rgba(183, 167, 117, 0) 60%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cs-lean-card:hover,
.cs-lean-card:focus-visible,
.cs-lean-card:focus-within {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: rgba(33, 61, 50, 0.35);
  box-shadow:
    0 18px 40px -18px rgba(23, 32, 28, 0.25),
    0 4px 14px rgba(23, 32, 28, 0.05);
  outline: none;
}

.cs-lean-card:hover::before,
.cs-lean-card:focus-visible::before,
.cs-lean-card:focus-within::before {
  opacity: 1;
}

.cs-lean-num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cs-forest);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(32, 59, 48, 0.22);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.4s ease;
}

.cs-lean-card:hover .cs-lean-num,
.cs-lean-card:focus-within .cs-lean-num {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(32, 59, 48, 0.3);
}

.cs-lean-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-ink);
  margin: 0 0 6px;
}

.cs-lean-sub {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  margin: 0 0 14px;
}

/* ---------- Inline Drawer ---------- */
.cs-lean-drawer {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: grid-template-rows;
}

.cs-lean-card:hover .cs-lean-drawer,
.cs-lean-card:focus-within .cs-lean-drawer,
.cs-lean-card:focus-visible .cs-lean-drawer {
  grid-template-rows: 1fr;
}

.cs-lean-drawer__inner {
  overflow: hidden;
  min-height: 0;
}

.cs-lean-drawer__inner p {
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--cs-line);
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--color-muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease 0.05s,
              transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s;
}

.cs-lean-card:hover .cs-lean-drawer__inner p,
.cs-lean-card:focus-within .cs-lean-drawer__inner p,
.cs-lean-card:focus-visible .cs-lean-drawer__inner p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Platforms ---------- */
.cs-lean-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.cs-lean-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 156, 120, 0.08);
  border: 1px solid rgba(23, 156, 120, 0.18);
  color: #179c78;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cs-lean-card:hover .cs-lean-duration,
.cs-lean-card:focus-within .cs-lean-duration {
  background: rgba(23, 156, 120, 0.14);
  border-color: rgba(23, 156, 120, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cs-lean-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .cs-lean-grid {
    grid-template-columns: 1fr;
  }
  .cs-lean-card {
    padding: 28px 18px;
  }
  /* در موبایل با تپ باز/بسته شه */
  .cs-lean-card.is-open .cs-lean-drawer {
    grid-template-rows: 1fr;
  }
  .cs-lean-card.is-open .cs-lean-drawer__inner p {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-lean-card,
  .cs-lean-num,
  .cs-lean-drawer,
  .cs-lean-drawer__inner p,
  .cs-lean-duration {
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1050px) {
  .cs-photo-hero__intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cs-metric-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-metric-item:nth-child(2) {
    border-right: none;
  }
  .cs-metric-item:nth-child(3),
  .cs-metric-item:nth-child(4) {
    border-top: 1px solid var(--cs-line-light);
  }
}

@media (max-width: 760px) {
  .cs-photo-hero {
    min-height: 720px;
  }
  .cs-photo-hero__content {
    padding-top: 150px;
    padding-bottom: 90px;
  }
  .cs-photo-hero__intro p:nth-child(n+2) {
    display: none;
  }
  .cs-metric-rail {
    grid-template-columns: 1fr;
  }
  .cs-metric-item {
    border-right: none;
    border-top: 1px solid var(--cs-line-light);
  }
  .cs-metric-item:first-child {
    border-top: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-section-nav a::after {
    transition: none;
  }
}

/* ========================================================================== 
   PROFESSIONAL EXPERIENCE LAYER
   Keeps the existing CaiDes palette while refining depth, rhythm and motion.
   ========================================================================== */
:root {
  --cs-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --cs-shadow-soft: 0 18px 50px rgba(20, 37, 30, 0.08);
  --cs-shadow-lift: 0 24px 60px rgba(20, 37, 30, 0.14);
  --cs-gold-soft: rgba(183, 167, 117, 0.18);
}

.cs-photo-hero::before,
.cs-photo-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cs-photo-hero::before {
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
}

.cs-photo-hero::after {
  z-index: -1;
  top: 14%;
  right: -7rem;
  width: min(38vw, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 167, 117, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(183, 167, 117, 0.035),
    0 0 0 108px rgba(183, 167, 117, 0.025);
}

.cs-photo-hero__media img {
  scale: 1.035;
  transform: translate3d(var(--hero-x, 0), calc(var(--hero-y, 0px) + var(--hero-scroll, 0px)), 0);
  transition: transform 0.35s var(--cs-ease-out);
  will-change: transform;
}

.cs-photo-hero__veil {
  background:
    linear-gradient(90deg, rgba(8, 16, 12, 0.98) 0%, rgba(8, 16, 12, 0.93) 37%, rgba(8, 16, 12, 0.54) 72%, rgba(8, 16, 12, 0.4) 100%),
    linear-gradient(0deg, rgba(8, 16, 12, 0.88), transparent 62%);
}

.cs-photo-hero__content {
  position: relative;
  z-index: 1;
}

.cs-kicker {
  padding: 8px 12px;
  border: 1px solid rgba(183, 167, 117, 0.34);
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.32);
  backdrop-filter: blur(10px);
}

.cs-photo-hero__content h1 {
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.cs-hero-pills span {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.065));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--cs-ease-out), border-color 0.3s ease, background 0.3s ease;
}

.cs-hero-pills span:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 167, 117, 0.62);
  background: rgba(32, 59, 48, 0.55);
}

.cs-photo-hero .button {
  transform: translate3d(var(--magnet-x, 0), var(--magnet-y, 0), 0);
  transition: transform 0.25s var(--cs-ease-out), box-shadow 0.25s ease, background 0.25s ease;
}

.cs-photo-hero .button:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.cs-metric-rail {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(8, 16, 12, 0.68);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.12);
}

.cs-metric-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.3s ease;
}

.cs-metric-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background: radial-gradient(280px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(183, 167, 117, 0.22), transparent 64%);
  transition: opacity 0.35s ease;
}

.cs-metric-item:hover::before {
  opacity: 1;
}

.cs-metric-header strong {
  font-variant-numeric: tabular-nums;
}

.cs-section--paper {
  position: relative;
  background:
    radial-gradient(circle at 9% 6%, rgba(183, 167, 117, 0.16), transparent 25rem),
    linear-gradient(180deg, #f7f4ec 0%, var(--cs-paper) 100%);
  background: var(--cs-paper);
}

.cs-section--paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(32, 59, 48, 0.2) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000, transparent 38%);
}

.cs-tabs-layout {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 305px);
  gap: clamp(22px, 3vw, 36px);
}

.cs-tabs-main,
.cs-sidebar {
  position: relative;
  z-index: 1;
}

.cs-tabs-shell {
  position: sticky;
  z-index: 40;
  top: calc(var(--header-height) + 10px);
  margin-bottom: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(20, 37, 30, 0.09);
}

.cs-tabs-nav {
  gap: 5px;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(32, 59, 48, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(130%);
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

.cs-tab-btn {
  position: relative;
  isolation: isolate;
  flex: 1 0 104px;
  min-height: 68px;
  padding: 9px 8px 8px;
  border-radius: 13px;
  display: grid;
  grid-template-rows: 25px auto;
  place-items: center;
  gap: 5px;
  overflow: hidden;
  line-height: 1.08;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--cs-ease-out),
    box-shadow 0.3s ease;
}

.cs-tab-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--cs-gold);
  transform: scaleX(0);
  transition: transform 0.35s var(--cs-ease-out);
}

.cs-tab-btn span {
  display: block;
  text-align: center;
}

.cs-tab-btn .cs-tab-icon {
  width: 23px;
  height: 23px;
  color: var(--cs-forest);
  transition: color 0.3s ease, transform 0.35s var(--cs-ease-out);
}

.cs-tab-btn:hover {
  transform: translateY(-1px);
  background: rgba(234, 240, 235, 0.88);
}

.cs-tab-btn:hover .cs-tab-icon {
  transform: translateY(-1px) scale(1.08);
}

.cs-tab-btn.is-active {
  background: linear-gradient(145deg, #294a3d, var(--cs-forest-dark));
  border-color: rgba(20, 37, 30, 0.8);
  box-shadow: 0 10px 24px rgba(32, 59, 48, 0.26), inset 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.cs-tab-btn.is-active::after {
  transform: scaleX(1);
}

.cs-tab-btn.is-active .cs-tab-icon {
  color: var(--cs-gold);
  transform: scale(1.08);
}

.cs-tab-btn:focus-visible,
.cs-tabs-scroll:focus-visible,
.cs-tab-pane:focus-visible {
  outline: 3px solid rgba(183, 167, 117, 0.72);
  outline-offset: 3px;
}

.cs-tabs-scroll {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(32, 59, 48, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--cs-forest);
  box-shadow: 0 8px 22px rgba(20, 37, 30, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.cs-tabs-shell.has-overflow .cs-tabs-scroll {
  display: grid;
}

.cs-tabs-scroll--previous {
  left: -12px;
}

.cs-tabs-scroll--next {
  right: -12px;
}

.cs-tabs-scroll svg {
  width: 18px;
  height: 18px;
}

.cs-tabs-scroll:disabled {
  opacity: 0;
  pointer-events: none;
}

.cs-tab-pane.is-active {
  animation: cs-tab-enter 0.58s var(--cs-ease-out) both;
}

@keyframes cs-tab-enter {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--tab-direction, 1) * 18px), 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.cs-pane-card,
.cs-sidebar-card,
.cs-lean-card {
  background-image: radial-gradient(420px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(183, 167, 117, 0.12), transparent 58%);
}

.cs-pane-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(32, 59, 48, 0.13);
  box-shadow: var(--cs-shadow-soft);
}

.cs-pane-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(26px, 5vw, 58px);
  left: clamp(26px, 5vw, 58px);
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--cs-gold), transparent);
}

.cs-pane-card h2,
.cs-process-header h2 {
  position: relative;
  width: 100%;
  padding-bottom: 12px;
  text-wrap: wrap;
  max-width: none;
}

.cs-pane-card > h2::after,
.cs-process-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--cs-gold);
}

.cs-pane-lead {
  /* max-width: 78ch; */
  font-size: 1rem;
  line-height: 1.82;
}

.cs-sub-col h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cs-sub-col h3::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--cs-gold);
}

.cs-feature-list,
.cs-activity-checklist,
.cs-deliverable-stripes,
.cs-pill-stack {
  gap: 9px;
}

.cs-feature-list li,
.cs-activity-checklist li {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 59, 48, 0.09);
  border-radius: 12px;
  background: rgba(245, 242, 233, 0.48);
  transition: transform 0.3s var(--cs-ease-out), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cs-feature-list li:hover,
.cs-activity-checklist li:hover {
  transform: translateX(4px);
  border-color: rgba(32, 59, 48, 0.26);
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 37, 30, 0.06);
}

.cs-context-icon,
.cs-feature-list .cs-context-icon,
.cs-activity-checklist .cs-context-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #168767;
}

.cs-tech-pills span {
  position: relative;
  padding: 9px 14px 9px 28px;
  background: linear-gradient(135deg, rgba(32, 59, 48, 0.08), rgba(183, 167, 117, 0.1));
  transition: transform 0.25s var(--cs-ease-out), border-color 0.25s ease, background 0.25s ease;
}

.cs-tech-pills span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #179c78;
  box-shadow: 0 0 0 3px rgba(23, 156, 120, 0.12);
  transform: translateY(-50%);
}

.cs-tech-pills span:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 59, 48, 0.32);
  background: #fff;
}

.cs-process-header {
  position: relative;
}

.cs-process-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cs-gold));
}

.cs-combustion {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(183, 167, 117, 0.28);
  border-left: 3px solid var(--cs-gold);
  background: linear-gradient(135deg, rgba(183, 167, 117, 0.13), rgba(255, 255, 255, 0.84));
}

.cs-combustion:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 37, 30, 0.08);
}

.cs-deliverable-item,
.cs-benefit-pill,
.cs-outcome-pill {
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(32, 59, 48, 0.05), rgba(245, 242, 233, 0.66));
}

.cs-deliverable-item:hover,
.cs-benefit-pill:hover,
.cs-outcome-pill:hover {
  transform: translateX(4px);
  border-color: rgba(32, 59, 48, 0.34);
  box-shadow: 0 9px 24px rgba(20, 37, 30, 0.07);
}

.cs-deliverable-item .cs-context-icon {
  width: 21px;
  height: 21px;
  color: var(--cs-forest);
}

.cs-outcome-icon-wrap {
  width: 30px;
  height: 30px;
  background: linear-gradient(145deg, #2a4c3e, var(--cs-forest-dark));
  box-shadow: 0 5px 12px rgba(32, 59, 48, 0.22);
}

.cs-sidebar-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 10px 22px;
  border-color: rgba(32, 59, 48, 0.13);
  box-shadow: var(--cs-shadow-soft);
  margin-bottom: 10px;
}

.cs-sidebar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 64px;
  border-radius: 0 0 99px;
  background: linear-gradient(var(--cs-gold), transparent);
}

.cs-sidebar-card h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-sidebar-list li {
  min-height: 46px;
  background: rgba(245, 242, 233, 0.62);
}

.cs-sidebar-list li:hover {
  border-color: rgba(32, 59, 48, 0.2);
  background: #fff;
  box-shadow: 0 7px 18px rgba(20, 37, 30, 0.06);
}

.cs-sidebar-list .cs-context-icon,
.cs-cert-shield-list .cs-context-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.cs-cert-shield-list li {
  padding: 5px 0;
  border-bottom: 1px dashed rgba(32, 59, 48, 0.12);
}

.cs-cert-shield-list li:last-child {
  border-bottom: 0;
}

.cs-section--lean {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(183, 167, 117, 0.12), transparent 34rem),
    #fff;
}

.cs-lean-heading h3 {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  padding-bottom: 16px;
}

.cs-lean-heading h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cs-gold), transparent);
  transform: translateX(-50%);
}

.cs-lean-card {
  overflow: hidden;
  min-height: 315px;
  border-color: rgba(32, 59, 48, 0.13);
  background-color: var(--cs-paper);
}

.cs-lean-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cs-gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--cs-ease-out);
}

.cs-lean-card:hover::after,
.cs-lean-card:focus-visible::after,
.cs-lean-card.is-open::after {
  transform: scaleX(1);
}

.cs-lean-card.is-open {
  transform: translateY(-6px);
  background-color: #fff;
  border-color: rgba(32, 59, 48, 0.35);
  box-shadow: var(--cs-shadow-lift);
}

.cs-lean-card.is-open .cs-lean-drawer {
  grid-template-rows: 1fr;
}

.cs-lean-card.is-open .cs-lean-drawer__inner p {
  opacity: 1;
  transform: translateY(0);
}

.cs-lean-card:focus-visible {
  outline: 3px solid rgba(183, 167, 117, 0.68);
  outline-offset: 4px;
}

.cs-lean-num {
  position: relative;
  background: linear-gradient(145deg, #294b3d, var(--cs-forest-dark));
}

.cs-lean-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(183, 167, 117, 0.38);
  border-radius: inherit;
}

.cs-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--cs-gold), #d6ca9c, #179c78);
  box-shadow: 0 0 12px rgba(183, 167, 117, 0.48);
}

.cs-item-animate {
  opacity: 0;
}

.cs-item-animate.is-item-visible {
  animation: cs-item-rise 0.55s var(--cs-ease-out) both;
  animation-delay: min(calc(var(--item-index, 0) * 42ms), 360ms);
}

@keyframes cs-item-rise {
  from {
    opacity: 0;
    translate: 0 13px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1180px) {
  .cs-tab-btn {
    flex-basis: 116px;
  }
}

@media (max-width: 1020px) {
  .cs-tabs-layout {
    gap: 30px;
  }

  .cs-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cs-photo-hero {
    min-height: 760px;
  }

  .cs-photo-hero::after {
    top: 11%;
    right: -10rem;
    width: 370px;
  }

  .cs-photo-hero__content h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .cs-hero-pills {
    gap: 7px;
  }

  .cs-hero-pills span {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .cs-metric-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px 18px 0 0;
  }

  .cs-metric-item {
    border-top: 1px solid var(--cs-line-light);
    border-right: 1px solid var(--cs-line-light);
    padding: 20px 18px;
  }

  .cs-metric-item:nth-child(-n + 2) {
    border-top: 0;
  }

  .cs-metric-item:nth-child(even) {
    border-right: 0;
  }

  .cs-tabs-shell {
    top: calc(var(--header-height) + 6px);
    margin-inline: -8px;
  }

  .cs-tabs-nav {
    scroll-snap-type: x proximity;
  }

  .cs-tab-btn {
    flex: 0 0 128px;
    scroll-snap-align: center;
  }

  .cs-pane-card {
    padding: 30px 22px;
  }

  .cs-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cs-metric-rail {
    grid-template-columns: 1fr;
  }

  .cs-metric-item,
  .cs-metric-item:nth-child(-n + 2) {
    border-top: 1px solid var(--cs-line-light);
    border-right: 0;
  }

  .cs-metric-item:first-child {
    border-top: 0;
  }

  .cs-process-grid,
  .cs-benefits-grid {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-photo-hero__media img,
  .cs-photo-hero .button,
  .cs-tab-pane.is-active,
  .cs-tab-btn,
  .cs-tab-btn .cs-tab-icon,
  .cs-feature-list li,
  .cs-activity-checklist li,
  .cs-tech-pills span,
  .cs-deliverable-item,
  .cs-benefit-pill,
  .cs-outcome-pill,
  .cs-lean-card,
  .cs-lean-card::after,
  .cs-item-animate.is-item-visible {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .cs-tabs-nav {
    scroll-behavior: auto;
  }

  .cs-item-animate,
  .cs-item-animate.is-item-visible {
    opacity: 1;
    translate: 0 0;
  }
}
