/* Page composition and local exceptions. Shared primitives: ../../design-system/. */
body {

   text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  width: 0; background: var(--signal);
  z-index: 100; transition: width .06s linear;
}

/* Type primitives *//* Top bar / breadcrumb *//* COVER — cobalt slab with metrics-row */
.cover .inner {
  max-width: var(--content-wide); margin: 0 auto;
  padding: var(--s-96) var(--gutter);
  position: relative; z-index: 1;
}
.cover h1 {

  --cover-title-size: clamp(44px, 6vw, 88px);
  --cover-title-leading: 1.02; --cover-title-tracking: -0.03em;

  max-width: 20ch;
}
.cover .lede {

   max-width: 680px;
  margin-top: var(--s-32);
}
.cover .metrics-row {
  margin-top: var(--s-80);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-48);
}
.cover .metric .num {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--on-dark);
}
.cover .metric .label {
  font-family: var(--f-body); font-size: 15px; font-weight: 500;
  line-height: 1.55; color: var(--on-dark-soft);
  margin-top: var(--s-12); max-width: 32ch;
}
.cover .hero-bg {

  background-image: url("/work/assets/fleet-electrification-planner/hero-volvo-electric-trucks.png");

  opacity: 0.20; z-index: 0;
  filter: saturate(0.85);
}
.cover .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--depth) 0%, rgba(30,61,123,0.55) 40%, var(--depth) 100%);
}

/* OVERVIEW — sage; col-lead + col-list + process-media bottom */
.overview { background: var(--sage); }
.overview .inner {
  max-width: var(--content-wide); margin: 0 auto;
  padding: var(--section-pad-y) var(--gutter) var(--s-64);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: var(--s-64);
}
.overview .col-lead .eyebrow { margin-bottom: var(--s-16); }
.overview h2 { margin-bottom: var(--s-24); }
.overview .col-lead p {
  font-size: var(--body-large-size); line-height: 1.65;
  color: var(--text-primary); max-width: 48ch;
}
.overview .col-lead p + p { margin-top: var(--s-16); }
.overview .col-list h3 {
  font-family: var(--f-display); font-weight: 900; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--s-16);
}
.overview .col-list ol { list-style: none; counter-reset: contrib; }
.overview .col-list li {
  counter-increment: contrib;
  padding: var(--s-12) 0;
  display: grid; grid-template-columns: 36px 1fr; gap: var(--s-12);
  font-size: 15px; line-height: 1.55;
  color: var(--text-primary);
}
.overview .col-list li::before {
  content: counter(contrib, decimal-leading-zero);
  font-family: var(--f-display); font-weight: 900; font-size: 13px;
  letter-spacing: 0.05em; color: var(--primary);
  padding-top: 2px;
}
.overview .process-media {
  max-width: var(--content-wide); margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad-y);
}
.overview .process-media img {
  width: 100%; border-radius: var(--r-md);
  border: 1px solid rgba(28,27,24,0.08);
  box-shadow: var(--shadow-media);
}
.overview .process-media figcaption { text-align: center; }

/* PROBLEM — bg; lede + 3 tiles */
.problem { background: var(--bg); }
.problem .top {
  max-width: var(--content-wide); margin: 0 auto;
  padding: var(--section-pad-y) var(--gutter) var(--s-64);
}
.problem .eyebrow { margin-bottom: var(--s-16); }
.problem h2 { margin-bottom: var(--s-24); }
.problem .lede {
  font-size: var(--body-large-size); line-height: 1.65;
  max-width: 720px; color: var(--text-primary);
}
.problem .tiles {
  max-width: var(--content-wide); margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad-y);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24);
}
.problem .tile {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-32) var(--s-24);
  display: flex; flex-direction: column; gap: var(--s-12);
}
.problem .tile .tile-n {
  font-family: var(--f-display); font-weight: 900; font-size: var(--label-size);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
}
.problem .tile h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 22px;
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--text-primary);
}
.problem .tile p {
  font-size: 15px; line-height: 1.6; color: var(--text-primary);
}

/* PHASES — reusable research-pattern; used by Understand / Empathize / Ideate / Prototype / Final */
.phase-section .top {
  max-width: var(--content-wide); margin: 0 auto;
  padding: var(--section-pad-y) var(--gutter) 0;
}
.phase-section .top .eyebrow { margin-bottom: var(--s-16); }
.phase-section .top h2 { margin-bottom: var(--s-24); }
.phase-section .top .lede {
  font-size: var(--body-large-size); line-height: 1.65;
  max-width: 760px; color: var(--text-primary);
}
.phase-section .phases {
  max-width: var(--content-wide); margin: var(--s-64) auto 0;
  padding: 0 var(--gutter) var(--section-pad-y);
  display: grid; gap: var(--s-80);
}
.phase {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s-48); align-items: start;
}
.phase.reverse { grid-template-columns: 1.15fr 0.85fr; }
.phase.reverse .phase-text { order: 2; }
.phase.reverse .phase-media { order: 1; }
.phase-text .kicker {
  color: var(--primary); margin-bottom: var(--s-12);
}
.phase-text h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 26px;
  line-height: 1.25; letter-spacing: -0.015em;
  margin-bottom: var(--s-16); color: var(--text-primary);
}
.phase-text p {
  font-size: 16px; line-height: 1.7; color: var(--text-primary);
}
.phase-text p + p { margin-top: var(--s-12); }
.phase-text ul {
  list-style: none; margin-top: var(--s-16);
}
.phase-text li {
  padding: var(--s-4) 0 var(--s-4) var(--s-20);
  font-size: 15px; line-height: 1.6;
  color: var(--text-primary); position: relative;
}
.phase-text li::before {
  content: ''; position: absolute;
  left: 0; top: calc(0.6em + var(--s-4));
  width: 10px; height: 2px;
  background: var(--signal);
}
.phase-media img {
  width: 100%; border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.phase-section.on-frost .phase-text .kicker { color: var(--indigo); }
.phase-section.on-frost .top .eyebrow { color: var(--indigo); }

/* Section backgrounds */
.understand { background: var(--frost); }
.empathize { background: var(--bg); }
.ideate { background: var(--bg); }
.prototype { background: var(--frost); }
.final { background: var(--bg); }

/* Phase-section full-width IA-current image (Understand closing figure) */
.ia-current {
  max-width: var(--page-max); margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad-y);
}
.ia-current figure {
  background: var(--bg); padding: var(--s-24);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.ia-current img { width: 100%; display: block; }
.ia-current figcaption { text-align: center; }

/* DEFINE — sage; 4-tile grid */
.define { background: var(--sage); }
.define .top {
  max-width: var(--content-wide); margin: 0 auto;
  padding: var(--section-pad-y) var(--gutter) var(--s-48);
}
.define .top .eyebrow { margin-bottom: var(--s-16); }
.define h2 { margin-bottom: var(--s-24); }
.define .lede {
  font-size: var(--body-large-size); line-height: 1.65;
  max-width: 760px; color: var(--text-primary);
}
.define .tile-grid {
  max-width: var(--content-wide); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-20);
}
.define .tile {
  padding: var(--s-24);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.55);
}
.define .tile .team {
  font-family: var(--f-display); font-weight: 900; font-size: var(--label-size);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--s-12);
}
.define .tile h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 18px;
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--text-primary); margin-bottom: var(--s-8);
}
.define .tile p {
  font-size: 14px; line-height: 1.6; color: var(--text-primary);
}
.define .pullquote {
  max-width: 960px; margin: var(--s-80) auto 0;
  padding: 0 var(--gutter) var(--section-pad-y);
}

/* PROTOTYPE — closing usability narrative */
.prototype .closing {
  max-width: 860px; margin: var(--s-80) auto 0;
  padding: 0 var(--gutter) var(--section-pad-y);
}
.prototype .closing .kicker {
  color: var(--indigo); margin-bottom: var(--s-12);
}
.prototype .closing h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 24px;
  line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: var(--s-16); color: var(--text-primary);
}
.prototype .closing p {
  font-size: 16px; line-height: 1.7; color: var(--text-primary);
}
.prototype .closing p + p { margin-top: var(--s-12); }

/* ITERATE — sage; horizontal scroll strip + pullquote */
.iterate {
  background: var(--sage);
  padding: var(--section-pad-y) 0 0;
}
.iterate .iter-intro {
  max-width: var(--content-wide);
  margin: 0 auto var(--s-48);
  padding: 0 var(--gutter);
}
.iterate .iter-intro .eyebrow { margin-bottom: var(--s-16); }
.iterate .iter-intro h2 { margin-bottom: var(--s-16); }
.iterate .iter-intro .lede {
  font-size: var(--body-large-size); line-height: 1.65;
  max-width: 760px; color: var(--text-primary);
}
.iterate .iter-intro .lede + .lede { margin-top: var(--s-16); }
.iterate .strip-wrap {
  background: #238B7A;
  padding: var(--s-32) 0;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.iterate .strip-wrap::-webkit-scrollbar { height: 8px; }
.iterate .strip-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.15); }
.iterate .strip-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.45); border-radius: 4px; }
.iterate .strip {
  display: block;
  height: 300px;
  padding: 0 var(--gutter);
}
.iterate .strip img {
  height: 100%; width: auto; max-width: none;
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.3);
}
.iterate .strip-caption { max-width: var(--content-wide); margin: 0 auto; padding: var(--s-16) var(--gutter) 0; text-align: center; }
.iterate .pullquote {
  max-width: 960px; margin: var(--s-80) auto 0;
  padding: 0 var(--gutter) var(--section-pad-y);
}

/* FINAL designs — phases pattern, tall media variant */
.final .phase-media.tall img {
  max-height: 620px; width: auto; margin: 0 auto;
}

/* TAKEAWAY — depth-soft slab */
.takeaway { background: var(--depth-soft); }
.takeaway .inner {
  max-width: var(--content-text); margin: 0 auto;
  padding: var(--s-80) var(--gutter);
  text-align: center;
}
.takeaway .lbl {
  font-family: var(--f-display); font-weight: 900;
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--quiet);
  margin-bottom: var(--s-20);
}
.takeaway p {
  font-family: var(--f-quote); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.5;
  color: var(--text-primary);
}

/* NEXT CTA */

/* FOOTER */

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cover .inner { padding: var(--s-96) var(--gutter) var(--s-80); }
  .cover h1 { --cover-title-size: clamp(40px, 7vw, 64px); max-width: 100%; }
  .cover .metrics-row { grid-template-columns: 1fr; gap: var(--s-32); }
  .overview .inner { grid-template-columns: 1fr; gap: var(--s-48); }
  .problem .tiles { grid-template-columns: 1fr; }
  .phase, .phase.reverse { grid-template-columns: 1fr; gap: var(--s-32); }
  .phase.reverse .phase-text { order: 1; }
  .phase.reverse .phase-media { order: 2; }
  .define .tile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --section-pad-y: var(--s-64); }
  .cover .inner { padding: var(--s-80) var(--gutter) var(--s-64); }
  .cover h1 { --cover-title-size: clamp(36px, 9vw, 48px); }
  .cover .metric .num { font-size: 56px; }
  .overview .col-list li { grid-template-columns: 32px 1fr; }
  .define .tile-grid { grid-template-columns: 1fr; }
  .iterate .strip { height: 220px; }
}
