/* Delivery model pages.
   Template 1: delivery-offshore.html.
   Template 2: delivery-managed-services.html, also the shell for Outcome-Based and Staff Augmentation.
   Both run on main.svp.dlv, so the service-page shell (svp-sec, svp-head, svp-label, svp-outcome,
   svp-method, svp-steps) and the shared testimonials, enquiry and .cta components are reused
   unchanged. This file only adds the shapes those pages lack. Colours, type, radii and spacing come
   from the pin.css tokens; the only motion is hover and focus feedback. Responsive rules sit directly
   after the base rules they change (see README, CSS ordering). */

/* ---------- T1 value: one photo block beside two stacked blocks ---------- */

/* A bento, not three equal cards: the photo block carries the lead benefit, the two smaller
   blocks sit on a white and a navy ground so the three read on a diagonal. */
.dlv-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: var(--s-3);
}

.dlv-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-panel);
  border: 1px solid var(--tint-12);
  background: var(--white);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.dlv-block__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dlv-block__ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tint-08);
  box-shadow: inset 0 0 0 1px var(--tint-12);
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.dlv-block__ico svg {
  width: 28px;
  height: 28px;
}

.dlv-block__no {
  font-family: var(--ff-head);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--tint-12);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}

.dlv-block h3 {
  margin: 0;
  font-family: var(--ff-head);
  font-size: var(--fs-title-l);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
}

.dlv-block p {
  margin: 0;
  max-width: 46ch;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
}

.dlv-chips {
  list-style: none;
  margin: auto 0 0;
  padding: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dlv-chips li {
  padding: 7px 14px;
  border-radius: var(--r-chip);
  border: 1px solid var(--tint-24);
  font-size: var(--fs-meta);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

/* Dark grounds: the photo block and the navy block share one set of on-navy colours. */
.dlv-block--photo,
.dlv-block--navy {
  border-color: transparent;
  background: var(--navy);
  color: var(--on-navy);
}

.dlv-block--navy {
  background: linear-gradient(150deg, var(--blue) 0%, var(--navy) 58%, var(--navy-deep) 100%);
}

/* One soft magenta bloom in the corner, the same move the .cta panel makes. */
.dlv-block--navy::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -22%;
  bottom: -48%;
  width: 70%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(217, 53, 105, 0.28) 0%, rgba(217, 53, 105, 0) 70%);
  pointer-events: none;
}

/* Icon and number stay at the top; title, copy and chips drop to the scrim at the bottom. */
.dlv-block--photo {
  grid-row: span 2;
  min-height: 600px;
}

.dlv-block--photo .dlv-block__top {
  margin-bottom: auto;
}

.dlv-block--photo .dlv-chips {
  margin-top: 0;
}

.dlv-block--photo > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform var(--svp-slow);
}

.dlv-block--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 24, 69, 0.97) 0%, rgba(0, 24, 69, 0.84) 34%, rgba(0, 24, 69, 0.2) 64%, rgba(0, 24, 69, 0) 100%);
}

.dlv-block--photo h3,
.dlv-block--navy h3 {
  color: var(--on-navy);
}

.dlv-block--photo p,
.dlv-block--navy p {
  color: var(--on-navy-mut);
}

.dlv-block--photo .dlv-block__ico,
.dlv-block--navy .dlv-block__ico {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.dlv-block--photo .dlv-block__no,
.dlv-block--navy .dlv-block__no {
  color: rgba(255, 255, 255, 0.24);
}

.dlv-block--photo .dlv-chips li,
.dlv-block--navy .dlv-chips li {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--on-navy);
}

@media (hover: hover) and (pointer: fine) {
  .dlv-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--svp-shadow-lg);
  }
  .dlv-block:not(.dlv-block--photo):not(.dlv-block--navy):hover {
    border-color: var(--tint-24);
  }
  .dlv-block:hover .dlv-block__no {
    color: var(--accent-text);
  }
  .dlv-block--photo:hover .dlv-block__no,
  .dlv-block--navy:hover .dlv-block__no {
    color: var(--accent-deep);
  }
  .dlv-block:not(.dlv-block--photo):not(.dlv-block--navy):hover .dlv-block__ico {
    background: var(--navy);
    color: var(--white);
  }
  .dlv-block--photo:hover > img {
    transform: scale(1.05);
  }
}

@media (max-width: 1000px) {
  .dlv-bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .dlv-block--photo {
    grid-row: auto;
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .dlv-bento {
    gap: var(--s-2);
  }
  .dlv-block {
    padding: 24px 22px 26px;
    border-radius: var(--r-tile);
  }
  .dlv-block--photo {
    min-height: 500px;
  }
}

/* ---------- T1 what you get: eight outcome cards, four across ---------- */

/* Reuses .svp-outcome as is; only the column count changes. The two breakpoints are restated
   because this selector outranks the .svp-outcomes breakpoints in service-page.css. */
.svp-outcomes.dlv-gets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dlv-gets .svp-outcome {
  padding: 24px 24px 28px;
}

@media (max-width: 1100px) {
  .svp-outcomes.dlv-gets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .svp-outcomes.dlv-gets {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The approach banner carries a text label where the service page carries the INsight logo. */
.dlv .svp-method__brand .svp-feature__label {
  margin: 0;
}

/* ---------- T2 value: navy band with three pillars ---------- */

.dlv-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--r-panel);
  background: var(--navy);
  color: var(--on-navy);
}

/* Brand glass art on the right, faded into the navy so the headline side stays flat. */
.dlv-band__art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -2;
  width: 52%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.dlv-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy) 0%, var(--navy) 46%, rgba(0, 32, 96, 0.55) 72%, rgba(0, 32, 96, 0.25) 100%),
    linear-gradient(to top, var(--navy) 0%, rgba(0, 32, 96, 0) 55%);
}

.dlv-band .h2 {
  color: var(--on-navy);
}

.dlv-band .svp-head > p {
  color: var(--on-navy-mut);
  border-left-color: rgba(255, 255, 255, 0.22);
}

.dlv-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.dlv-pillar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 32px 4px 0;
}

.dlv-pillar + .dlv-pillar {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* Large numerals do the ordering; sky on navy, magenta on hover. */
.dlv-pillar__no {
  font-family: var(--ff-head);
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--sky-deep);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}

.dlv-pillar h3 {
  margin: 8px 0 0;
  font-family: var(--ff-head);
  font-size: var(--fs-title-l);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--on-navy);
}

.dlv-pillar p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--on-navy-mut);
}

@media (hover: hover) and (pointer: fine) {
  .dlv-pillar:hover .dlv-pillar__no {
    color: var(--accent-deep);
  }
}

@media (max-width: 900px) {
  .dlv-band__art {
    width: 100%;
    height: 46%;
    opacity: 0.45;
  }
  .dlv-pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .dlv-pillar,
  .dlv-pillar + .dlv-pillar {
    padding: 28px 0;
    border-left: 0;
  }
  .dlv-pillar + .dlv-pillar {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 560px) {
  .dlv-band {
    padding: 28px 22px 12px;
    border-radius: var(--r-tile);
  }
}

/* ---------- T2 what you get: sticky intro beside a two-column list ---------- */

/* No cards here on purpose: hairline rows read as an inclusions list, which is what this is. */
.dlv-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.dlv-split__aside .h2 {
  margin-bottom: var(--s-3);
}

.dlv-split__lead {
  margin: 0;
  max-width: 44ch;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.dlv-split__photo {
  overflow: hidden;
  margin: var(--s-4) 0 0;
  aspect-ratio: 4 / 3.3;
  border-radius: var(--r-panel);
  background: var(--navy);
  box-shadow: var(--svp-shadow);
}

.dlv-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform var(--svp-slow);
}

.dlv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
}

.dlv-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px 18px;
  align-content: start;
  padding: 28px 0;
  border-top: 1px solid var(--tint-12);
}

.dlv-item__ico {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-card);
  background: var(--tint-08);
  box-shadow: inset 0 0 0 1px var(--tint-12);
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.dlv-item__ico svg {
  width: 24px;
  height: 24px;
}

.dlv-item h3 {
  margin: 2px 0 0;
  font-family: var(--ff-head);
  font-size: var(--fs-title-m);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

.dlv-item p {
  margin: 0;
  font-size: var(--fs-card);
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .dlv-item:hover .dlv-item__ico {
    background: var(--navy);
    color: var(--white);
  }
  .dlv-split__photo:hover img {
    transform: scale(1.04);
  }
}

@media (max-width: 1000px) {
  .dlv-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .dlv-split__photo {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .dlv-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .dlv-item {
    padding: 22px 0;
  }
}

/* ---------- T2 approach: a four-stage rail ---------- */

/* Open stages on the tint ground, joined by a dashed line between numbered nodes. Deliberately
   not cards, so it cannot be mistaken for the banner-and-cards approach on the Offshore page. */
.dlv-rail {
  counter-reset: dlv-rail;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.dlv-stage {
  counter-increment: dlv-rail;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dlv-stage::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 76px;
  right: calc(var(--s-3) * -1 + 12px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--tint-40) 0 6px, transparent 6px 12px);
}

.dlv-stage:last-child::before {
  display: none;
}

.dlv-stage__node {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 2px solid var(--tint-24);
  background: var(--white);
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dlv-stage__node::before {
  content: counter(dlv-rail, decimal-leading-zero);
}

.dlv-stage h3 {
  margin: 0;
  font-family: var(--ff-head);
  font-size: var(--fs-title-l);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
}

.dlv-stage p {
  margin: 0;
  font-size: var(--fs-card);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* What the client holds at the end of each stage; auto top margin lines the boxes up across stages. */
.dlv-stage__out {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--tint-12);
  background: var(--white);
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.dlv-stage__out span {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

@media (hover: hover) and (pointer: fine) {
  .dlv-stage:hover .dlv-stage__node {
    border-color: var(--magenta);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 12px 24px -12px rgba(0, 32, 96, 0.6);
  }
}

/* Below 900px the rail turns vertical: node on the left, the line running down between nodes. */
@media (max-width: 900px) {
  .dlv-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .dlv-stage {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 8px;
    padding-bottom: 36px;
  }
  .dlv-stage > :not(.dlv-stage__node) {
    grid-column: 2;
  }
  .dlv-stage__node {
    grid-row: 1 / span 3;
    margin: 0;
  }
  .dlv-stage h3 {
    margin-top: 16px;
  }
  .dlv-stage::before {
    top: 72px;
    bottom: 8px;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--tint-40) 0 6px, transparent 6px 12px);
  }
  .dlv-stage__out {
    justify-self: start;
  }
}

/* ---------- T2 testimonial: one featured quote ---------- */

.dlv-quote {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.dlv-quote__photo {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-panel);
  background: var(--navy);
  box-shadow: var(--svp-shadow);
}

.dlv-quote__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  transition: transform var(--svp-slow);
}

.dlv-quote__body {
  margin: 0;
}

.dlv-quote__mark {
  display: block;
  width: 52px;
  height: 52px;
  margin: var(--s-3) 0 var(--s-2);
  color: var(--magenta);
}

.dlv-quote__text {
  margin: 0;
  font-family: var(--ff-head);
  font-size: clamp(1.3rem, 1.02rem + 1vw, 1.875rem);
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: pretty;
}

.dlv-quote__by {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--tint-12);
}

.dlv-quote__role {
  display: block;
  font-size: var(--fs-body);
  font-weight: 800;
  color: var(--ink);
}

.dlv-quote__ctx {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-meta);
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .dlv-quote__photo:hover img {
    transform: scale(1.04);
  }
}

@media (max-width: 900px) {
  .dlv-quote {
    grid-template-columns: minmax(0, 1fr);
  }
  .dlv-quote__photo {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- T2 closing CTA ---------- */

/* .cta is the site's navy CTA panel; its own breakpoint is one of the dead rules listed in the
   README, so the single-column switch is made here, after the base rule. */
.dlv .cta__copy .svp-label {
  margin-bottom: var(--s-2);
}

@media (max-width: 820px) {
  .dlv .cta {
    grid-template-columns: minmax(0, 1fr);
  }
}
