/* IT Warehousing & Redeployment — Figma 79:2540. Shared pieces (hero, eyebrow, h2, sub, buttons,
   story grid, contact, footer) come from styles.css; only what they cannot express lives here. */

.iw-section {
  padding: 120px 0;
}

.iw-h2 {
  line-height: 1.15;
}

.iw-h2-snow {
  color: #f1f2f2;
}

.iw-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.iw-head.is-tight {
  gap: 16px;
}

.iw-head .eyebrow {
  margin: 0;
}

.iw-sub {
  margin-top: 0;
}

.iw-head.is-tight .iw-sub {
  margin-top: 3px;
}

.iw-sub-narrow {
  max-width: 892px;
}

.iw-copy {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
}

.iw-copy-narrow {
  max-width: 820px;
}

.iw-cta {
  align-self: flex-start;
  margin-top: 24px;
}

/* Pills used by the two flow diagrams. */
.iw-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid #dde2ea;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.78px;
  color: var(--navy);
  white-space: nowrap;
}

.iw-pill.is-fixed {
  width: 216px;
}

.iw-pill.is-gradient {
  border-color: transparent;
  background: var(--gradient);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #fff;
}

.iw-pill.is-gradient.is-small {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.78px;
}

.iw-pill.is-navy {
  border-color: var(--line);
  background: rgba(29, 61, 113, 0.78); /* was 0.6: white 13px text only reached 3.5:1 on the white section */
  color: #fff;
}

/* ---------- Hero (79:2542) ---------- */

.iw-hero {
  padding: 96px 0 120px;
}

.iw-hero-grid {
  grid-template-columns: minmax(0, 622px) minmax(0, 509px);
  justify-content: space-between;
}

.iw-hero-title {
  font-size: clamp(40px, 4.4vw, 59px);
  letter-spacing: 0;
}

.iw-lead-next {
  margin-top: 16px;
}

/* Composite artwork: a softly masked warehouse scene, two arrow overlays and two framed
   close-ups. Every offset is in container units so the whole piece scales as one. */
.iw-hero-art {
  position: relative;
  width: 100%;
  max-width: 509px;
  aspect-ratio: 509 / 506;
  container-type: inline-size;
  justify-self: end;
}

.iw-hero-scene {
  position: absolute;
  left: -9.82cqw;
  top: -1.57cqw;
  width: 118.86cqw;
  height: 118.86cqw;
  overflow: hidden;
  -webkit-mask-image: url("/assets/it-warehousing/hero-mask.svg");
  mask-image: url("/assets/it-warehousing/hero-mask.svg");
  -webkit-mask-size: 124.17cqw 119.06cqw;
  mask-size: 124.17cqw 119.06cqw;
  -webkit-mask-position: -4.13cqw -5.89cqw;
  mask-position: -4.13cqw -5.89cqw;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.iw-hero-scene img {
  position: absolute;
  left: -16.67%;
  top: 0;
  width: 133.33%;
  max-width: none;
  height: 100%;
}

.iw-hero-arrow {
  position: absolute;
  opacity: 0.8;
}

.iw-hero-arrow.is-one {
  left: 11.49cqw;
  top: 52.91cqw;
  width: 22cqw;
  height: 9.82cqw;
  transform: rotate(-12.24deg);
}

.iw-hero-arrow.is-two {
  left: 85.97cqw;
  top: 36.92cqw;
  width: 15.43cqw;
  height: 6.21cqw;
  transform: rotate(130.82deg) scaleX(-1);
}

.iw-hero-thumb {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--cyan);
  border-radius: 4.72cqw;
}

.iw-hero-thumb img {
  position: absolute;
  max-width: none;
}

.iw-hero-thumb.is-delivery {
  left: 71.41cqw;
  top: -2.95cqw;
  width: 35.56cqw;
  height: 34.18cqw;
}

.iw-hero-thumb.is-delivery img {
  left: -23.5%;
  top: 0;
  width: 144.36%;
  height: 100%;
}

.iw-hero-thumb.is-desk {
  left: -12.67cqw;
  top: 64.64cqw;
  width: 36.54cqw;
  height: 35.17cqw;
}

.iw-hero-thumb.is-desk img {
  left: -7.37%;
  top: -123.77%;
  width: 395.98%;
  height: 274.3%;
}

/* ---------- Value (79:2575) ---------- */

.iw-value-grid {
  display: grid;
  grid-template-columns: minmax(0, 681fr) minmax(0, 400fr);
  align-items: start;
  gap: 64px;
}

.iw-value-intro .eyebrow {
  margin-bottom: 24px;
}

.iw-value-intro .h2 {
  font-size: clamp(32px, 4vw, 50px);
}

.iw-value-body {
  display: grid;
  gap: 26px;
  max-width: 595px;
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
}

.iw-value-cards {
  display: grid;
  gap: 24px;
}

.iw-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 32px;
  border: 1px solid #dde2ea;
  border-radius: 20px;
  background: var(--pale);
}

.iw-card-icon {
  width: 84px;
  height: 64px;
}

.iw-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-deep);
}

.iw-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- Sources (79:2609) ---------- */

.iw-source-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.iw-card.is-source {
  min-height: 317px;
  padding: 32px;
  background: #fff;
}

.iw-card.is-source .iw-card-icon {
  margin-bottom: 4px;
}

.iw-card p.iw-card-tag {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #dde2ea;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.72px;
  color: #0077ab; /* brand blue darkened for AA (4.5:1) at small text sizes */
}

/* Inline arrow for the flow tags: same SVG as the cycle flow, since "→" is not in the Inter subset. */
.iw-tag-arrow {
  display: inline-block;
  width: 13px;
  height: 12px;
  margin: 0 1px;
  vertical-align: -2px;
}

.iw-converge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  padding: 48px;
}

.iw-converge-sources {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.iw-converge-bracket {
  flex: 0 0 auto;
  width: 40px;
  height: 124px;
  border: solid var(--blue);
  border-width: 2px 1.5px 2px 0;
  border-radius: 0 5px 5px 0;
}

.iw-converge-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 15px;
}

.iw-converge-arrow.is-out {
  margin: 0 12px;
}

.iw-converge-arrow img {
  width: 15px;
  height: 49px;
  transform: rotate(90deg);
}

.iw-converge-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.iw-converge-icon {
  position: relative;
  width: 154px;
  height: 97px;
  overflow: hidden;
}

.iw-converge-icon img {
  position: absolute;
  left: -0.22%;
  top: -25.09%;
  width: 100%;
  height: auto;
}

.iw-statement {
  margin-top: 56px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--navy-deep);
}

/* ---------- How it works (79:2674) ---------- */

.iw-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.iw-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 115px;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 170, 71, 0) 0%, #54aa47 8%, #3294c9 92%, rgba(50, 148, 201, 0) 100%);
}

.iw-timeline li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 8px;
}

.iw-step-num {
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 800;
  line-height: 84px;
  color: var(--line);
}

.iw-step-node {
  position: relative;
  width: 23px;
  height: 23px;
  margin: 20px 0 28px;
}

.iw-timeline h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.iw-timeline p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

.iw-timeline p.iw-step-tag {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cyan);
}

.iw-closing {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 64px;
}

.iw-closing::before {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(153, 165, 189, 0), #99a5bd 50%, rgba(153, 165, 189, 0));
}

.iw-closing p {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);
}

.iw-closing strong {
  color: #f1f2f2;
}

/* ---------- Redeployment (79:2742) ---------- */

.iw-tagline {
  margin-top: 0;
  line-height: 1.3;
  letter-spacing: 1.68px;
}

.iw-stages {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  margin-top: 80px;
}

.iw-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 147px;
  padding-top: var(--pt, 0);
}

.iw-stage.is-centered {
  justify-content: center;
  gap: 4px;
}

.iw-stage-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--navy);
}

.iw-stage-icon {
  position: relative;
  width: var(--box-w);
  height: var(--box-h);
}

.iw-glow {
  position: absolute;
  left: calc(var(--glow-x) - 40px);
  top: calc(var(--glow-y) - 40px);
  width: 184px;
  height: 173px;
  max-width: none;
  mix-blend-mode: plus-lighter;
}

.iw-stage-art {
  position: absolute;
  left: 0;
  top: var(--art-y, 0);
  width: var(--art-w);
  height: var(--art-h);
  overflow: hidden;
}

.iw-stage-art img {
  position: absolute;
  left: var(--img-x);
  top: var(--img-y);
  width: 100%;
  height: auto;
}

.iw-stage-icon.is-employee {
  --box-w: 140px; --box-h: 98.6px; --art-w: 140px; --art-h: 97px;
  --img-x: 0.28%; --img-y: -21.07%; --glow-x: 18.34px; --glow-y: 5.59px;
}

.iw-stage-icon.is-device {
  --box-w: 117px; --box-h: 93px; --art-w: 117px; --art-h: 87px; --art-y: 5.82px;
  --img-x: 0.36%; --img-y: -15.31%; --glow-x: 7.33px; --glow-y: 0px;
}

.iw-stage-icon.is-warehouse {
  --box-w: 130px; --box-h: 93.26px; --art-w: 130px; --art-h: 82px;
  --img-x: -0.22%; --img-y: -25.09%; --glow-x: 12.3px; --glow-y: 0.26px;
}

.iw-stage-icon.is-inventory {
  --box-w: 127px; --box-h: 127px; --glow-x: 11.99px; --glow-y: 20.16px;
}

.iw-stage-icon.is-employee-2 {
  --box-w: 140px; --box-h: 101.6px; --art-w: 140px; --art-h: 98px;
  --img-x: 0.95%; --img-y: -17.8%; --glow-x: 19.27px; --glow-y: 8.59px;
}

.iw-stage:has(.is-employee) { --pt: 11px; }
.iw-stage:has(.is-device) { --pt: 12px; }
.iw-stage:has(.is-warehouse) { --pt: 18px; }
.iw-stage:has(.is-employee-2) { --pt: 10px; }

.iw-clipboard {
  position: absolute;
  inset: 0;
}

.iw-clipboard img {
  position: absolute;
  max-width: none;
}

.iw-clipboard-bg {
  left: -0.04%;
  top: -0.12%;
  width: 100.12%;
  height: 100.12%;
}

.iw-clipboard-glow {
  left: 32.76px;
  top: 27.91px;
  width: 61.5px;
  height: 73.46px;
  mix-blend-mode: plus-lighter;
}

.iw-clipboard-line {
  left: 53.03px;
  width: 33.46px;
  height: 6.9px;
}

.iw-clipboard-line.is-1 { top: 44.01px; }
.iw-clipboard-line.is-2 { top: 63.78px; }
.iw-clipboard-line.is-3 { top: 84.06px; }

.iw-stage-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-self: center;
  width: 21px;
  height: 15px;
}

.iw-stage-arrow img {
  width: 15px;
  height: 22px;
  transform: rotate(90deg);
}

/* ---------- Inventory visibility (79:2800) ---------- */

.story-grid.iw-visibility-grid {
  grid-template-columns: minmax(0, 494fr) minmax(0, 682fr);
  align-items: center;
}

.iw-visibility-grid .story-body {
  gap: 24px;
}

.iw-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.iw-checks li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #172544;
}

.iw-checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 42px;
  height: 32px;
  background: url("/assets/it-warehousing/check-bg.png") center / 100% 100% no-repeat;
}

.iw-checks li::after {
  content: "";
  position: absolute;
  left: 11.12px;
  top: 50%;
  width: 18.7px;
  height: 14.95px;
  margin-top: -7.74px;
  background: url("/assets/it-warehousing/check.png") center / contain no-repeat;
}

.story-img.iw-visibility-img {
  height: 741px;
  object-position: 50% center;
}

/* ---------- Provisioning & Collection cycle (79:2855) ---------- */

.iw-cycle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  padding: 40px 32px;
}

.iw-cycle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iw-cycle-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Drawn as SVG: the "→" glyph is not in the Inter subset we load, so it fell back to a thin system arrow. */
.iw-cycle-arrow {
  display: flex;
  color: var(--blue);
}

/* Dashed return path from the last WAREHOUSE back to the first, centre to centre:
   the lower half of a 6/6 dashed rounded rect, clipped by this box. */
.iw-cycle-loop {
  overflow: hidden;
  width: calc(100% - 130px);
  height: 36px;
  margin-top: 14px;
  padding: 0 1px;
  color: var(--blue);
}

.iw-cycle-loop svg {
  display: block;
  overflow: visible;
}

.iw-cycle-caption {
  padding-top: 20px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
}

.iw-cycle-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.iw-cycle-summary {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: var(--gray);
}

.actions.iw-actions-center {
  justify-content: center;
  margin-top: 0;
}

.btn-outline.iw-btn-navy {
  color: var(--navy);
}

.btn-outline.iw-btn-navy:hover {
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

/* ---------- Final CTA (79:2901) ---------- */

.story-grid.iw-final-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 566px);
  align-items: center;
  gap: 64px;
}

.story-img.iw-final-img {
  height: 480px;
}

.story-text .sub.iw-final-sub {
  line-height: 1.6;
}

.iw-final-grid .iw-cta {
  margin-top: 56px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .iw-section {
    padding: 96px 0;
  }

  .iw-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Narrower than the column so the framed close-ups can overhang without clipping. */
  .iw-hero-art {
    width: 84%;
    justify-self: center;
  }

  .iw-value-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .iw-value-body {
    max-width: none;
  }

  .iw-value-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .iw-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 48px;
  }

  .iw-timeline::before {
    content: none;
  }

  .iw-stages {
    flex-wrap: wrap;
    row-gap: 40px;
  }

  .story-grid.iw-visibility-grid,
  .story-grid.iw-final-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .story-img.iw-visibility-img,
  .story-img.iw-final-img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .iw-cycle {
    padding: 32px 0;
  }

  .iw-cycle-flow {
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .iw-cycle-loop {
    display: none;
  }
}

/* The convergence row needs 856px of content width; below that it stacks instead of overflowing. */
@media (max-width: 1000px) {
  .iw-converge {
    flex-direction: column;
    gap: 16px;
    padding: 32px 0;
  }

  .iw-converge-sources {
    align-items: center;
  }

  .iw-converge-bracket {
    display: none;
  }

  .iw-converge-arrow,
  .iw-converge-arrow.is-out {
    width: 15px;
    height: 48px;
    margin: 0;
  }

  .iw-converge-arrow img {
    transform: rotate(180deg);
  }
}

@media (max-width: 760px) {
  .iw-section {
    padding: 64px 0;
  }

  .iw-hero {
    padding: 40px 0 64px;
  }

  .iw-card.is-source {
    min-height: 0;
  }

  .iw-statement {
    font-size: 20px;
  }

  .iw-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iw-step-num {
    font-size: 56px;
    line-height: 1;
  }

  .iw-step-node {
    margin: 16px 0 20px;
  }

  .iw-copy br {
    display: none;
  }

  .iw-stages {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .iw-stage,
  .iw-stage.is-centered {
    gap: 16px;
    padding-top: 0;
  }

  .iw-stage-arrow img {
    transform: rotate(180deg);
  }

  .iw-cycle-flow {
    flex-direction: column;
    gap: 8px;
  }

  .iw-cycle-arrow {
    transform: rotate(90deg);
  }

  .iw-cycle-caption {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .iw-timeline {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .iw-pill.is-fixed {
    width: auto;
  }

  .iw-pill {
    white-space: normal;
    text-align: center;
  }

  .iw-closing p {
    font-size: 18px;
  }
}

/* ---------- Polish pass: tablet diagrams, wrapping, small phones ---------- */

@media (max-width: 1100px) {
  .iw-hero-title,
  .iw-h2,
  .iw-statement,
  .iw-closing p,
  .iw-cycle-summary,
  .iw-cycle-caption {
    text-wrap: balance;
  }

  /* One row needs 883px (stages) / 788px (cycle); tighter gaps keep them on one line
     instead of wrapping with an arrow left dangling at the end of the row. */
  .iw-stages {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .iw-cycle-flow {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .iw-cycle-flow .iw-pill {
    padding: 12px 14px;
  }
}

@media (max-width: 1020px) {
  .iw-stages {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .iw-stage,
  .iw-stage.is-centered {
    gap: 16px;
    padding-top: 0;
  }

  .iw-stage-arrow img {
    transform: rotate(180deg);
  }
}

/* Two-column card grids: the third card spans the row instead of sitting alone. */
@media (min-width: 621px) and (max-width: 960px) {
  .iw-value-cards,
  .iw-source-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iw-value-cards > li:last-child,
  .iw-source-cards > li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .iw-cycle-flow {
    flex-direction: column;
    gap: 8px;
  }

  .iw-cycle-flow .iw-pill {
    padding: 14px 20px;
  }

  .iw-cycle-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  /* Eyebrows that wrap: keep the dot beside the first line instead of floating at the left edge. */
  .iw-hero .eyebrow,
  .iw-section .eyebrow {
    display: block;
  }

  .iw-hero .eyebrow::before,
  .iw-section .eyebrow::before {
    display: inline-block;
    margin-right: 8px;
    vertical-align: 1px;
  }
}

@media (max-width: 400px) {
  .iw-actions-center .btn,
  .iw-cta {
    white-space: normal;
    height: auto;
    min-height: 44px;
    padding: 10px 20px;
    text-align: center;
  }
}

/* Body gray on the pale background was 4.2:1; this tint reaches AA (4.66:1) and is visually the same gray. */
.iw-section.pale,
.iw-card {
  --gray: #666f82;
}

/* The shared pale-blue focus ring is hard to see on white and pale sections. */
.iw-section.white :focus-visible,
.iw-section.pale :focus-visible {
  outline-color: #0b5fa5;
}
