/* Decommissioning page */

.decom-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* Horizontal inset comes from the nested .container, not from the section
   itself — this padding is vertical only. */
.decom-section {
  background: var(--color-white);
  padding: var(--space-section-md) 0;
}

.decom-section-tint {
  background: var(--color-cream);
}

.decom-section-dark {
  background: var(--color-ink);
}

.decom-section-narrow .container {
  max-width: 900px;
}

.decom-intro {
  max-width: 720px;
}

.decom-intro h2 {
  margin-top: 16px;
  color: var(--color-ink);
}

.decom-intro-lead {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-muted);
}

.decom-intro-lead-on-dark {
  color: rgba(255, 255, 255, 0.62);
}

/* This has to out-specify `.decom-intro h2` above, which sets --color-ink and
   is 0-1-1. A bare class is 0-1-0, so it lost, and the "how it works" heading
   rendered ink-on-ink — invisible against the dark section. That's what the
   inline !important was working around. Naming the element in the second
   selector settles it properly. Add a line here rather than an !important if
   another wrapper ever colours a heading the same way. */
.decom-heading-on-dark,
.decom-intro h2.decom-heading-on-dark {
  color: var(--color-white);
}

/* ---------- hero ---------- */

.decom-hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-forest);
}

.decom-hero-media {
  position: absolute;
  inset: -10% -5% -5%;
  z-index: 0;
}

.decom-hero-media .image-pending {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
}

.decom-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(20, 32, 12, 0.82) 0%, rgba(28, 44, 20, 0.62) 50%,
    rgba(34, 52, 24, 0.72) 100%);
}

.decom-hero-inner {
  position: relative;
  z-index: 2;
  padding: 140px var(--gutter) 96px;
}

/* 1100 to match the other heroes — see the note on .pp-hero-content. */
.decom-hero-content {
  max-width: 1100px;
}

.decom-hero-content h1 {
  color: var(--color-white);
}

.decom-highlight {
  color: var(--color-accent);
}

.decom-hero-lead {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
}

.decom-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.decom-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.decom-stat-num {
  font-size: 1.6875rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-accent-text);
}

.decom-stat-num-dark {
  color: var(--color-accent);
}

.decom-stat-label {
  margin-top: 7px;
  font-size: 0.71875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--color-muted);
}

.decom-stat-label-dark {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- capabilities ---------- */

.decom-capability-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.decom-capability-card {
  padding-bottom: 32px;
}

.decom-capability-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-tint-bg);
  color: var(--color-accent-text);
  font-size: 1.1875rem;
  line-height: 1;
}

.decom-capability-card h3 {
  margin-top: 20px;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
}

.decom-capability-card p {
  margin-top: 11px;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-muted);
}

/* ---------- who this works for ---------- */

.decom-who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.decom-who-grid h2 {
  margin-top: 16px;
}

.decom-region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.decom-region-pill {
  display: inline-block;
  background: var(--color-white);
  border: 1px solid rgba(51, 51, 51, 0.1);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}

.decom-scenario-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.decom-scenario {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--color-white);
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

/* Holds an icon now rather than a numeral. The circle, the flex centring and
   the accent colour all still apply — the icons inherit it through
   fill="currentColor" — but the glyph needs a size of its own so it doesn't
   crowd the 34px circle. */
.decom-scenario-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent-tint-bg);
  color: var(--color-accent-text);
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decom-scenario-num svg {
  width: 20px;
  height: 20px;
}

.decom-scenario-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-ink);
}

.decom-scenario p {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 0.90625rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ---------- how it works ---------- */

.decom-step-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}

.decom-step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.043);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px 26px 32px;
}

.decom-step-num {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.decom-step h3 {
  margin-top: 16px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.decom-step-copy {
  flex: 1;
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 0.90625rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.6);
}

.decom-step-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.decom-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.decom-step-list li::before {
  content: '—';
  color: var(--color-accent);
}

/* ---------- case studies ---------- */

.decom-case-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.decom-case-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.decom-case-image {
  aspect-ratio: 16 / 9;
}

.decom-case-image .image-pending {
  height: 100%;
  border-radius: 0;
}

.decom-case-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.decom-case-sector {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-text);
}

.decom-case-body h3 {
  margin-top: 10px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.decom-case-copy {
  flex: 1;
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 0.90625rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.decom-case-figures {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(51, 51, 51, 0.09);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.decom-case-figures .decom-stat-num {
  font-size: 1.375rem;
}

.decom-case-figures .decom-stat-label {
  margin-top: 6px;
  font-size: 0.65625rem;
  letter-spacing: 0.08em;
}

/* ---------- callouts ---------- */

.decom-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.decom-callout {
  padding: clamp(32px, 4vw, 46px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.decom-callout-soft {
  background: var(--color-accent-soft);
}

.decom-callout-heading {
  margin-top: 16px;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.decom-callout-soft .decom-callout-heading {
  color: var(--color-ink);
}

.decom-callout-copy {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 1.03125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.66);
}

.decom-callout-copy-accent {
  color: var(--color-accent-text);
}

.decom-tag-list {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.decom-tag {
  border: 1px solid rgba(131, 195, 64, 0.4);
  color: var(--color-accent);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.78125rem;
  font-weight: 700;
}

/* margin-top:auto pushes the button to the bottom of a tall card, but collapses
   to nothing when the card is exactly as tall as its content — which is how the
   button ended up sitting on the pills above it. The margins below guarantee a
   gap either way.
   The footnote is in this list because on the carbon card it sits between the
   pills and the button, so it — not the pill row — is what the button lands on.
   Narrow screens are where it bites: the footnote wraps to five or six lines
   and the card stops being taller than its contents, so margin-top:auto gives
   nothing back. */
.decom-tag-list,
.decom-callout-copy,
.decom-callout .legal-footnote {
  margin-bottom: 26px;
}

.decom-callout-link {
  margin-top: auto;
  align-self: flex-start;
  padding: 14px 30px;
  font-size: var(--text-sm);
}

.decom-callout-link-outline {
  color: var(--color-accent-text);
  border-color: color-mix(in srgb, var(--color-accent-text) 40%, transparent);
}

/* ---------- final CTA ---------- */

.decom-cta {
  position: relative;
  padding: var(--space-section-lg) 0;
  background: var(--gradient-forest);
  overflow: hidden;
}

/* Photo at full strength with the colour coming from a scrim on top, matching
   the two CTA bands on the home and partner pages. Was opacity 0.24 over the
   gradient, which is the placeholder treatment — a real photograph at 24% is
   just noise. */
.decom-cta-bg {
  position: absolute;
  inset: -12%;
}

.decom-cta-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 0.82 to match .quote-cta::after and .pp-cta::after. The section keeps
   --gradient-forest as its own background so a failed image degrades to the
   flat gradient this band had before. Lowering this is a contrast change, not
   a styling one — the lead copy is 74% white over the result. */
.decom-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-forest);
  opacity: 0.82;
  z-index: 1;
}

.decom-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.decom-cta-lead {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.decom-cta-actions {
  justify-content: center;
}

.decom-cta-note {
  margin-top: 26px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}
