/*
 * Project Delivery (html/project-delivery.html): three delivery models as
 * tabs (left) with their detail panel (middle).
 * Shell, shared columns and breakpoints: css/embeds/fixed-canvas.css.
 * This file owns the delivery-specific content and every property in which
 * this page differs from the consultancy page (at every breakpoint).
 */

/* ---- Left column: the delivery models (tabs) ------------------------------ */

.scope {
  padding: clamp(30px, 3vw, 48px) clamp(26px, 2.3vw, 36px);
}

.section-meta {
  margin-bottom: 20px;
}

.scope-title {
  margin: 0 0 23px;
  color: var(--teal-hi);
  font: 500 clamp(29px, 2.3vw, 40px) / 0.96 var(--serif);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic {
  position: relative;
  width: 100%;
  min-height: 106px;
  padding: 16px 18px 16px 57px;
  border: 1px solid rgba(241, 199, 125, 0.16);
  background: rgba(255, 255, 255, 0.012);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.35s var(--ease);
}

.topic:hover {
  border-color: rgba(241, 199, 125, 0.38);
  background: rgba(217, 164, 94, 0.055);
  transform: translateX(4px);
}

.topic[aria-selected="true"] {
  border-color: rgba(241, 199, 125, 0.58);
  background: linear-gradient(90deg, rgba(217, 164, 94, 0.16), rgba(75, 136, 129, 0.07));
  box-shadow: inset 2px 0 0 var(--pale-gold);
}

.topic-index {
  position: absolute;
  top: 18px;
  left: 17px;
  color: rgba(241, 199, 125, 0.58);
  font: 500 17px / 1 var(--serif);
}

.topic-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--pale-gold);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.topic-title {
  display: block;
  color: var(--teal-hi);
  font: 500 21px / 1.05 var(--serif);
  letter-spacing: -0.025em;
}

.topic-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(241, 199, 125, 0.56);
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}

.topic[aria-selected="true"] .topic-arrow {
  color: var(--pale-gold);
  transform: translateX(4px);
}

/* ---- Middle column: the selected model ------------------------------------ */

.decisions::before {
  content: "02";
}

.content-panel {
  position: relative;
}

.content-panel[hidden] {
  display: none;
}

.content-panel.is-entering {
  animation: delivery-panel-in 0.45s var(--ease);
}

@keyframes delivery-panel-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

.panel-number {
  margin: 0 0 12px;
  color: rgba(241, 199, 125, 0.55);
  font: 500 15px / 1 var(--serif);
}

.decisions-title {
  position: relative;
  margin: 0 0 8px;
  color: var(--cream);
  font: 500 clamp(29px, 2.55vw, 42px) / 0.98 var(--serif);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.decisions-kicker {
  margin: 0 0 22px;
  color: var(--teal-hi);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.decisions-intro {
  position: relative;
  max-width: 610px;
  margin: 0 0 24px;
  color: rgba(244, 234, 216, 0.72);
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.62;
}

.principle {
  position: relative;
  margin: 0 0 18px;
  padding: 15px 17px;
  border-left: 1px solid rgba(75, 136, 129, 0.88);
  background: linear-gradient(90deg, rgba(75, 136, 129, 0.18), transparent);
}

.principle strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(244, 234, 216, 0.88);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.principle span {
  display: block;
  color: rgba(241, 199, 125, 0.94);
  font-size: 12px;
  line-height: 1.55;
}

.detail-list {
  display: grid;
  border-top: 1px solid rgba(241, 199, 125, 0.17);
}

.detail {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(241, 199, 125, 0.13);
}

.detail b {
  padding-top: 1px;
  color: rgba(241, 199, 125, 0.48);
  font: 500 14px / 1 var(--serif);
}

.detail p {
  margin: 0;
  color: rgba(244, 234, 216, 0.68);
  font-size: clamp(11px, 0.82vw, 13px);
  line-height: 1.52;
}

/* The subline breaks onto two lines only in the tablet split view. */
.tablet-caption-break {
  display: none;
}

/* ---- Breakpoints (see fixed-canvas.css for the shared parts) ------------- */

@media (max-width: 1180px) {
  .scope {
    padding: 28px 23px;
  }

  .topic {
    padding-left: 51px;
  }

  .topic-title {
    font-size: 19px;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .scope {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .section-meta {
    margin-bottom: 12px;
  }

  .scope-title {
    margin-bottom: 15px;
    font-size: 29px;
  }

  .topic-list {
    gap: 7px;
  }

  .topic {
    min-height: 82px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topic-index {
    top: 14px;
  }

  .topic-title {
    font-size: 18px;
  }

  .topic-arrow {
    bottom: 10px;
  }

  .decisions-title {
    font-size: 29px;
  }

  .decisions-intro {
    margin-bottom: 14px;
    font-size: 11px;
    line-height: 1.42;
  }

  .principle {
    margin-bottom: 12px;
    padding: 10px 13px;
  }

  .detail {
    padding: 10px 0;
  }

  .detail p {
    font-size: 11px;
    line-height: 1.42;
  }
}

/* Standalone above 720p the shell is a magnified 1224×664 canvas
   (scale-to-fit, reference 1280×720): freeze the 720p composition values. */
.shell[data-scale-active] .frame { grid-template-rows: 108px minmax(0, 1fr) 60px; }
.shell[data-scale-active] .brand { padding-top: 20px; padding-bottom: 14px; }
.shell[data-scale-active] .brand-mark { width: 90px; height: 90px; }
.shell[data-scale-active] .brand h1 { font-size: 31px; }
.shell[data-scale-active] .overview { padding-top: 15px; padding-bottom: 13px; }
.shell[data-scale-active] .subline { font-size: 14px; line-height: 1.32; }
.shell[data-scale-active] .scope { padding: 18px 29.44px; }
.shell[data-scale-active] .section-meta { margin-bottom: 12px; font-size: 8px; }
.shell[data-scale-active] .scope-title { margin-bottom: 15px; font-size: 29px; }
.shell[data-scale-active] .topic-list { gap: 7px; }
.shell[data-scale-active] .topic { min-height: 82px; padding-top: 12px; padding-bottom: 12px; }
.shell[data-scale-active] .topic-index { top: 14px; font-size: 17px; }
.shell[data-scale-active] .topic-kicker { font-size: 8px; }
.shell[data-scale-active] .topic-title { font-size: 18px; }
.shell[data-scale-active] .topic-arrow { bottom: 10px; font-size: 18px; }
.shell[data-scale-active] .decisions { padding: 20px 40.96px; }
.shell[data-scale-active] .decisions::before { font-size: 153.6px; }
.shell[data-scale-active] .panel-number { font-size: 15px; }
.shell[data-scale-active] .decisions-title { font-size: 29px; }
.shell[data-scale-active] .decisions-kicker { font-size: 9px; }
.shell[data-scale-active] .decisions-intro { margin-bottom: 14px; font-size: 11px; line-height: 1.42; }
.shell[data-scale-active] .principle { margin-bottom: 12px; padding: 10px 13px; }
.shell[data-scale-active] .principle strong { font-size: 9px; }
.shell[data-scale-active] .principle span { font-size: 12px; }
.shell[data-scale-active] .detail { padding: 10px 0; }
.shell[data-scale-active] .detail b { font-size: 14px; }
.shell[data-scale-active] .detail p { font-size: 11px; line-height: 1.42; }
.shell[data-scale-active] .handoff { margin-top: 12px; padding: 10px 13px; }
.shell[data-scale-active] .handoff strong { font-size: 8px; }
.shell[data-scale-active] .handoff span { font-size: 10.5px; line-height: 1.42; }
.shell[data-scale-active] .stage { font-size: 8px; }
.shell[data-scale-active] .stage strong { font-size: 19px; }
.shell[data-scale-active] .footer-kicker { font-size: 9px; }
.shell[data-scale-active] .enquire { height: 42px; font-size: 10px; }

@media (max-width: 860px) {
  .frame {
    grid-template-rows: auto auto auto auto auto auto;
  }

  .eyebrow {
    font-size: 13px;
  }

  .scope {
    padding: 26px 22px;
  }

  .scope-title {
    font-size: 42px;
  }

  .topic {
    min-height: 92px;
  }

  .topic-index {
    font-size: 21px;
  }

  .topic-title {
    font-size: 30px;
  }

  .topic-kicker {
    font-size: 13px;
  }

  .topic-arrow {
    font-size: 22px;
  }

  .panel-number {
    font-size: 19px;
  }

  .decisions-title {
    font-size: 42px;
  }

  .decisions-kicker {
    font-size: 13px;
  }

  .decisions-intro {
    font-size: 22px;
    line-height: 1.55;
  }

  .principle strong {
    font-size: 13px;
  }

  .principle span {
    font-size: 22px;
    line-height: 1.55;
  }

  .detail b {
    font-size: 18px;
  }

  .detail p {
    font-size: 22px;
    line-height: 1.55;
  }

  .visual {
    aspect-ratio: 3 / 4;
  }

  .visual img {
    object-fit: contain;
  }
}

@media (max-width: 460px) {
  .scope-title,
  .decisions-title {
    font-size: 40px;
  }

  .topic-title {
    font-size: 28px;
  }

  .decisions-intro,
  .detail p {
    font-size: 22px;
    line-height: 1.58;
  }

  .principle span {
    font-size: 21px;
    line-height: 1.55;
  }
}

@media (min-width: 861px) and (max-width: 1180px) and (orientation: landscape),
       (min-width: 1181px) and (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
  .frame {
    grid-template-columns: minmax(430px, 55%) minmax(0, 45%);
  }

  .brand {
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 24px 10px 12px;
  }

  .brand-mark {
    width: 74px;
    height: 74px;
    margin: 0;
  }

  .brand > div:last-child {
    max-width: 330px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.3em;
  }

  .brand h1 {
    max-width: none;
    font-size: clamp(24px, 2.45vw, 31px);
    line-height: 0.92;
  }

  .brand h1 > span {
    display: block;
    white-space: nowrap;
  }

  .overview {
    align-items: center;
    justify-content: flex-start;
    width: calc(100% + 28px);
    padding: 18px 30px 14px 10px;
    transform: translateX(-28px);
  }

  .subline {
    width: auto;
    max-width: 315px;
    margin: 0;
    padding-left: 18px;
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 1.3;
    text-wrap: initial;
  }

  .tablet-caption-break {
    display: block;
  }

  .scope {
    padding: 30px clamp(28px, 3.2vw, 42px);
  }

  .scope-title {
    font-size: clamp(31px, 3.2vw, 41px);
  }

  .topic {
    min-height: 94px;
  }

  .topic-title {
    font-size: 20px;
  }

  .decisions-title {
    font-size: clamp(29px, 3vw, 39px);
  }

  .decisions-intro,
  .detail p {
    font-size: 12px;
    line-height: 1.55;
  }

  .detail {
    padding: 14px 0;
  }
}

@media (min-width: 1921px) and (min-height: 1081px) {
  .modal .panel-number { font-size: clamp(15px, calc(15 * var(--hi)), 22.5px); }
  .modal .topic-kicker,
  .modal .decisions-kicker,
  .modal .principle strong { font-size: clamp(8px, calc(8 * var(--hi)), 12.4px); }
  .modal .scope-title { font-size: clamp(43px, calc(43 * var(--hi)), 62.35px); }
  .modal .decisions-title { font-size: clamp(42px, calc(42 * var(--hi)), 60.9px); }
  .modal .decisions-intro,
  .modal .detail p { font-size: clamp(13px, calc(13 * var(--hi)), 20.15px); }
  .modal .topic-index { font-size: clamp(17px, calc(17 * var(--hi)), 25.5px); }
  .modal .topic-title { font-size: clamp(21px, calc(21 * var(--hi)), 31.5px); }
  .modal .topic-arrow { font-size: clamp(18px, calc(18 * var(--hi)), 27px); }
  .modal .principle span { font-size: clamp(12px, calc(12 * var(--hi)), 18.6px); }
  .modal .detail b { font-size: clamp(14px, calc(14 * var(--hi)), 21px); }
}
