.tgs-home {
  --hp-ink: #0d2a3e;
  --hp-muted: #395466;
  --hp-blue: #176a9e;
  --hp-blue-dark: #105580;
  --hp-pale: #f3f7fa;
  --hp-rule: #d7e3ea;
  --hp-teal: #0b6570;
  --hp-light: #def5f5;
  --hp-section: clamp(2.75rem, 5.4vw, 5rem);
  color: var(--hp-ink);
  background: #fff;
}

.tgs-home .container-wide { max-width: 1240px; }
.tgs-home :is(h1, h2, h3, p, dl, dd, figure) { margin: 0; }
.tgs-home :is(h1, h2, h3) { letter-spacing: -.025em; }
.tgs-home h2 {
  --text-h2: clamp(1.7rem, 2.65vw, 2.4rem);
  line-height: 1.12 !important;
}
.tgs-home h3 { --text-h3: 1.3rem; line-height: 1.2 !important; }
.tgs-home [id] { scroll-margin-top: calc(var(--header-height, 5rem) + 1rem); }
.hp-section { padding-block: var(--hp-section); }

.hp-label {
  color: var(--hp-teal);
  font-size: .76rem;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hp-link {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  width: fit-content;
  min-height: 44px;
  color: var(--hp-blue-dark);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-color: #88aabd;
}
.tgs-home .hp-arrow { width: 1em; height: 1em; flex: none; vertical-align: -.15em; }
.hp-arrow--down { transform: rotate(180deg); }
.hp-link:hover { color: var(--hp-ink); text-decoration-color: currentColor; }

.hp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  width: fit-content;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--hp-blue);
  color: #fff;
  font-weight: 730;
  line-height: 1.35;
  text-decoration: none;
}
.hp-button:hover { background: var(--hp-blue-dark); color: #fff; }
.tgs-home a:focus-visible { outline: 3px solid var(--hp-blue); outline-offset: 4px; }

.hp-opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.45rem, 4.4vw, 4.05rem);
  background: linear-gradient(110deg, #041330 30%, #092d5b 100%);
  color: #fff;
}
.hp-opening__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-opening__art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.hp-opening__grid {
  display: block;
  position: relative;
}
.hp-opening__copy, .hp-feature { min-width: 0; }
.hp-opening__copy { width: 46%; max-width: 33rem; }
.hp-opening__copy > .hp-label { margin-bottom: .85rem; color: #a2e0de; }
.hp-opening h1 {
  --text-h1: clamp(2.25rem, 3.0vw, 3.5rem);
  max-width: 18ch;
  line-height: 1.065 !important;
  letter-spacing: -.046em;
  color: #fff;
}
.tgs-home .hp-intro {
  max-width: 52ch;
  margin-top: 1.15rem;
  color: #e6eef9;
  font-size: clamp(1.06rem, 1.45vw, 1.2rem);
  line-height: 1.52;
}
.tgs-home .hp-accountability {
  max-width: 55ch;
  margin-top: .65rem;
  color: #c6d7ec;
  line-height: 1.55;
}
.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.35rem;
  align-items: center;
  margin-block: 1.3rem 1.35rem;
}
.tgs-home .hp-scale {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 33rem;
  border-top: 1px solid #bfcfda;
  padding-top: .9rem;
}
.hp-scale > div { min-width: 0; padding-inline: 0 .85rem; }
.hp-scale > div + div { border-left: 1px solid #bfcfda; padding-inline: 1.1rem 0; }
.hp-scale dt {
  font-size: clamp(1.3rem, 2.22vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 760;
}
.hp-scale dd { margin-top: .3rem; color: var(--hp-muted); font-size: .87rem; line-height: 1.35; }
.hp-opening .hp-button { background: #f1faff; color: var(--hp-ink); }
.hp-opening .hp-button:hover { background: #cfeef8; color: var(--hp-ink); }
.hp-opening .hp-link { color: #e6f5ff; text-decoration-color: #88b9d7; }
.hp-opening .hp-link:hover { color: #fff; text-decoration-color: currentColor; }
.hp-opening a:focus-visible { outline-color: #a2e0de; }
.hp-opening .hp-scale { border-color: #506782; }
.hp-opening .hp-scale > div + div { border-color: #506782; }
.hp-opening .hp-scale dd { color: #c6d7ec; }

.hp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--hp-ink);
  color: #fff;
  margin-bottom: 1.7rem !important;
}
.hp-feature > img, .hp-team > img { display: block; width: 100%; height: auto; }
.hp-feature > img { height: 100%; object-fit: cover; }
.hp-feature figcaption { display: flex; align-items: center; }
.hp-feature__copy { padding: clamp(1.2rem, 2.8vw, 2.4rem); }
.hp-feature .hp-label { color: #a2e0de; }
.hp-feature h2 {
  --text-h2: clamp(1.5rem, 2.4vw, 2rem);
  margin-block: .36rem .45rem;
  color: #fff;
  max-width: 23ch;
}
.hp-feature__copy > p:not(.hp-label) { color: #dfedf5; font-size: .94rem; line-height: 1.5; }
.hp-feature .hp-link, .hp-delivery .hp-link { color: var(--hp-light); text-decoration-color: #77b4ba; }
.hp-feature .hp-link:hover, .hp-delivery .hp-link:hover { color: #fff; }
.hp-feature a:focus-visible, .hp-delivery a:focus-visible { outline-color: #9ae5df; }

.hp-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1.3rem;
  align-items: flex-end;
  margin-bottom: 1.65rem;
}
.hp-section-heading .hp-label { margin-bottom: .45rem; }
.hp-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--hp-rule);
}
.hp-case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
  padding: 1.35rem clamp(1.1rem, 2.5vw, 2.15rem) 1.1rem 0;
}
.hp-case + .hp-case {
  padding-inline-start: clamp(1.1rem, 2.5vw, 2.15rem);
  border-inline-start: 1px solid var(--hp-rule);
}
.hp-case:last-child { padding-inline-end: 0; }
.hp-case__mark {
  display: flex;
  align-items: center;
  height: 3rem;
  margin-bottom: .85rem;
}
.hp-case__mark img { display: block; width: auto; max-width: 132px; height: 100%; object-fit: contain; }
.hp-case .hp-label { margin-bottom: .36rem; }
.hp-case h3 { margin-bottom: .4rem; }
.hp-case > p:not(.hp-label) { color: var(--hp-muted); line-height: 1.55; margin-bottom: .35rem; }
.hp-case > .hp-link { margin-top: auto; font-size: .91rem; }
.hp-proof__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-top: .7rem;
}
.hp-partner { display: inline-flex; align-items: center; min-height: 44px; }
.hp-partner img { display: block; width: 132px; height: auto; }

.hp-delivery { background: var(--hp-ink); color: #fff; }
.hp-delivery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4.7vw, 4.5rem);
  align-items: center;
}
.hp-delivery .hp-label { margin-bottom: .5rem; color: #a2e0de; }
.hp-delivery h2 { color: #fff; }
.tgs-home .hp-delivery__lead { margin-top: .85rem; max-width: 60ch; color: #e1edf4; line-height: 1.6; }
.tgs-home .hp-delivery__steps { margin-block: 1.15rem .4rem; }
.hp-delivery__steps > div {
  display: grid;
  grid-template-columns: minmax(8.2rem, .35fr) minmax(0, 1fr);
  gap: .3rem 1rem;
  padding-block: .64rem;
  border-top: 1px solid #4b6778;
  line-height: 1.5;
}
.hp-delivery__steps dt { font-weight: 730; }
.hp-delivery__steps dd { color: #dfedf5; font-size: .95rem; }
.hp-team > img { border-radius: 12px; }
.hp-team figcaption { color: #cfdee7; font-size: .85rem; margin-top: .65rem; line-height: 1.4; }

.hp-offers__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: .8rem;
}
.hp-offer {
  border: 1px solid var(--hp-rule);
  border-radius: 12px;
  padding: clamp(1.05rem, 2.5vw, 1.85rem);
  min-width: 0;
}
.hp-offer--main {
  grid-row: span 2;
  align-self: stretch;
  background: #eef6fa;
  border-color: #bfd8e5;
  border-top: 3px solid var(--hp-blue);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hp-offer--main h3 { --text-h3: clamp(1.45rem, 2.4vw, 1.92rem); max-width: 24ch; }
.hp-offer .hp-label { margin-bottom: .5rem; }
.hp-offer h3 { margin-bottom: .52rem; }
.hp-offer > p:not(.hp-label) { max-width: 54ch; color: var(--hp-muted); line-height: 1.55; }
.hp-offer > .hp-link { margin-top: .22rem; }
.hp-offer__related {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding-top: .35rem;
  border-top: 1px solid #bfd8e5;
}
.hp-offer__related a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--hp-blue-dark);
  font-size: .9rem;
  font-weight: 660;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.tgs-home .hp-offers__engagement { margin-top: 1.05rem; color: var(--hp-muted); line-height: 1.55; }
.hp-offers__engagement a { color: var(--hp-blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.hp-sectors { padding-block: 1.7rem; border-top: 1px solid var(--hp-rule); }
.hp-sectors__grid {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: .75rem 1.6rem;
}
.hp-sectors h2 { --text-h2: 1.38rem; }
.hp-sectors__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 .8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hp-sectors__list a {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  color: var(--hp-blue-dark);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.hp-enquiry {
  padding-block: clamp(2.5rem, 4.7vw, 4.25rem);
  background: #e9f3f7;
  border-top: 1px solid var(--hp-rule);
}
.hp-enquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem 3.2rem;
}
.hp-enquiry p { max-width: 65ch; margin-top: .7rem; color: var(--hp-muted); line-height: 1.6; }

@media (max-width: 960px) {
  .hp-sectors__grid { grid-template-columns: minmax(0, 1fr); }
  .hp-feature { grid-template-columns: minmax(0, 1fr); }
  .hp-feature > img { height: auto; }
}

@media (max-width: 1199px) {
  .hp-opening { padding-bottom: 0; }
  .hp-opening__copy { width: 100%; max-width: 44rem; }
  .hp-opening h1 { max-width: 25ch; }
  .hp-opening__art {
    display: block;
    position: relative;
    inset: auto;
    z-index: auto;
    width: min(100%, 46rem);
    aspect-ratio: 1.3;
    margin: 1rem auto 0;
  }
  .hp-opening__art img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: right center;
    mask-image: none;
  }
  .hp-opening__grid { position: static; }
  .hp-opening__art { order: 2; }
  .hp-opening { display: flex; flex-direction: column; }
}

@media (max-width: 760px) {
  .hp-delivery__grid, .hp-offers__grid, .hp-enquiry__grid, .hp-feature { grid-template-columns: minmax(0, 1fr); }
  .hp-opening h1 { max-width: 20ch; }
  .hp-opening__art { margin-top: .65rem; }
  .hp-feature > img { height: auto; }
  .hp-case-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-case, .hp-case + .hp-case {
    padding: 1rem 0 .75rem;
    border-inline-start: 0;
  }
  .hp-case + .hp-case { border-top: 1px solid var(--hp-rule); }
  .hp-case__mark { height: 2.65rem; margin-bottom: .65rem; }
  .hp-offer--main { grid-row: auto; }
}

@media (max-width: 460px) {
  .hp-opening h1 { --text-h1: clamp(1.95rem, 8vw, 2.3rem); }
  .hp-actions { align-items: stretch; flex-direction: column; gap: .15rem; }
  .hp-actions .hp-button, .hp-enquiry .hp-button { width: 100%; }
  .hp-scale > div + div { padding-inline-start: .75rem; }
  .hp-delivery__steps > div, .hp-sectors__list { grid-template-columns: minmax(0, 1fr); }
}
