/* Positive8 premium refinement layer, loaded after styles.css */
:root {
  --blue-bright: #58b8ec;
  --blue-wash: #eaf6fc;
  --navy-deep: #03111f;
  --navy-mid: #08233d;
  --shadow-soft: 0 24px 70px rgba(5, 23, 40, .10);
  --shadow-card: 0 18px 50px rgba(5, 23, 40, .09);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --ease-premium: cubic-bezier(.2, .8, .2, 1);
}

html {
  scroll-padding-top: 90px;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--blue);
}

.container {
  width: min(1320px, calc(100% - 64px));
}

.section {
  padding: clamp(88px, 10vw, 150px) 0;
}

.section-heading {
  margin-bottom: clamp(42px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .18em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.6rem, 7.4vw, 7.5rem);
  line-height: .95;
}

h2 {
  font-size: clamp(2.6rem, 4.7vw, 5rem);
  line-height: 1;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.12rem, 1.5vw, 1.36rem);
  line-height: 1.65;
}

/* Navigation */
.header {
  transition: background .35s var(--ease-premium), box-shadow .35s var(--ease-premium), backdrop-filter .35s var(--ease-premium);
}

.header.is-scrolled {
  position: fixed;
  background: rgba(3, 17, 31, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.nav {
  height: 96px;
  gap: 44px;
}

.logo {
  width: 180px;
}

.nav-links {
  gap: clamp(18px, 2.1vw, 34px);
  font-size: .93rem;
  font-weight: 620;
  letter-spacing: .01em;
}

.nav-links>a:not(.btn),
.nav-parent {
  position: relative;
}

.nav-links>a:not(.btn)::after,
.nav-parent::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 1px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--ease-premium);
}

.nav-links>a:not(.btn):hover::after,
.nav-parent:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.submenu {
  top: 78px;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.submenu a {
  border-radius: 10px;
  transition: background .2s, color .2s, transform .2s;
}

.submenu a:hover {
  transform: translateX(3px);
  background: var(--blue-wash);
  color: var(--blue-dark);
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 15px 24px;
  letter-spacing: .01em;
  box-shadow: none;
  transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium), background .3s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .24) 50%, transparent 75%);
  transform: translateX(-140%);
  transition: transform .65s var(--ease-premium);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::before {
  transform: translateX(140%);
}

.btn-primary:hover {
  box-shadow: 0 14px 35px rgba(36, 144, 206, .32);
}

/* Hero */
.hero,
.inner-hero {
  background: var(--navy-deep);
}

.hero {
  min-height: min(920px, 100vh);
}

.inner-hero {
  min-height: 640px;
  padding: 185px 0 110px;
}

.hero-media {
  transform: scale(1.015);
  transition: transform 1.2s var(--ease-premium);
}

body.is-loaded .hero-media {
  transform: scale(1);
}

.hero::after,
.inner-hero::before {
  background: linear-gradient(100deg, rgba(2, 14, 27, .97) 0%, rgba(4, 23, 42, .85) 44%, rgba(5, 27, 48, .24) 75%, rgba(5, 27, 48, .08) 100%);
}

.home-page .hero::after {
  background: linear-gradient(90deg, rgba(2, 14, 27, .94) 0%, rgba(4, 23, 42, .76) 40%, rgba(5, 27, 48, .28) 70%, rgba(5, 27, 48, .03) 100%);
}

.hero-content {
  padding-top: 120px;
}

.hero-content::after {
  content: "";
  position: absolute;
  width: clamp(240px, 30vw, 500px);
  height: clamp(240px, 30vw, 500px);
  top: 50%;
  left: 72%;
  border: 1px solid rgba(88, 184, 236, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(88, 184, 236, .035), 0 0 0 140px rgba(88, 184, 236, .02);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content>* {
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 42px;
}

/* Trust and metrics */
.trust-strip {
  border-top: 1px solid #edf1f4;
  border-bottom: 1px solid #edf1f4;
  background: rgba(255, 255, 255, .96);
}

.trust-grid {
  min-height: 132px;
  gap: 26px;
}

.brand {
  color: #8090a0;
  font-weight: 760;
  letter-spacing: -.02em;
  filter: grayscale(1);
  transition: color .25s, transform .25s;
}

.brand:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.metric-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.metric-intro {
  padding: 56px;
  background: linear-gradient(145deg, var(--ink) 0%, var(--navy-mid) 100%);
  color: #fff;
}

.metric-intro h2 {
  padding-right: clamp(20px, 6vw, 90px);
  font-size: clamp(2.5rem, 4vw, 4.4rem);
}

.metric {
  min-height: 240px;
  padding: 44px 34px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, #fff, #fbfdff);
  transition: background .3s, transform .3s;
}

.metric:hover {
  background: var(--blue-wash);
}

.metric strong {
  font-size: clamp(2.3rem, 3.7vw, 4.2rem);
  color: var(--blue);
  letter-spacing: -.055em;
}

.metric span {
  max-width: 180px;
  color: var(--muted);
}

/* Cards and solution systems */
.cards,
.solutions-row,
.expertise-grid,
.technology-grid,
.team-grid {
  gap: 24px;
}

.card,
.solution-mini,
.feature,
.team-card,
.technology-card,
.article,
.case-study {
  border: 1px solid rgba(7, 23, 40, .09);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform .38s var(--ease-premium), box-shadow .38s var(--ease-premium), border-color .38s;
}

.card:hover,
.solution-mini:hover,
.feature:hover,
.team-card:hover,
.technology-card:hover,
.article:hover,
.case-study:hover {
  transform: translateY(-7px);
  border-color: rgba(36, 144, 206, .28);
  box-shadow: var(--shadow-card);
}

.section-dark .solution-mini {
  background: linear-gradient(150deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border-color: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.section-dark .solution-mini:hover {
  border-color: rgba(88, 184, 236, .55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.icon,
.step-dot {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: var(--blue);
  background: rgba(36, 144, 206, .11);
  font-size: 0;
}

.icon img,
.step-dot img {
  width: 27px;
  height: 27px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 760;
  transition: gap .25s, color .25s;
}

.card-link:hover {
  gap: 13px;
  color: var(--blue-dark);
}

/* Signature data-flow section */
.data-flow-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #041321 0%, #082a47 58%, #071728 100%);
  color: #fff;
}

.data-flow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: linear-gradient(rgba(88, 184, 236, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(88, 184, 236, .08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.data-flow-wrap {
  position: relative;
}

.data-flow-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.data-flow-heading p {
  color: #aec4d8;
  font-size: 1.12rem;
}

.data-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.data-flow::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  box-shadow: 0 0 18px rgba(88, 184, 236, .7);
}

.flow-node {
  position: relative;
  min-height: 250px;
  padding: 34px 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
}

.flow-node::before {
  content: "";
  position: absolute;
  top: 43px;
  right: 28px;
  left: auto;
  width: 18px;
  height: 18px;
  border: 4px solid #06223a;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow:
    0 0 0 7px rgba(88,184,236,.12),
    0 0 25px rgba(88,184,236,.8);
  transform: none;
}

.flow-node .flow-index {
  display: block;
  margin-bottom: 62px;
  padding-right: 44px;
  color: var(--blue-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.flow-node h3 {
  font-size: 1.45rem;
}

.flow-node p {
  color: #afc2d3;
  font-size: .95rem;
}

/* Featured result */
.featured-result {
  background: #fff;
}

.result-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  min-height: 510px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.result-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 58px;
  background: linear-gradient(145deg, var(--blue), #0f6faa);
}

.result-stat strong {
  display: block;
  font-size: clamp(5rem, 9vw, 9rem);
  line-height: .8;
  letter-spacing: -.08em;
}

.result-copy {
  padding: 64px;
  align-self: center;
}

.result-copy p {
  max-width: 620px;
  color: #b9cad8;
  font-size: 1.12rem;
}

/* Industries teaser */
.home-industries {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  align-items: start;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 720;
  transition: all .28s var(--ease-premium);
}

.industry-chip:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-3px);
}

.industry-chip span {
  color: var(--blue);
}

/* About */
.team-photo {
  overflow: hidden;
  background: linear-gradient(145deg, #eef7fc, #dceaf3);
}

.team-photo img,
img.team-photo {
  object-fit: cover;
  object-position: center top;
}

.technology-card {
  overflow: hidden;
}

.technology-image {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: contain;
}

/* Footer and CTA */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #08223a 0%, #0b3153 58%, #09253f 100%);
}

.cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -250px;
  border: 1px solid rgba(88, 184, 236, .23);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(88, 184, 236, .045), 0 0 0 160px rgba(88, 184, 236, .025);
}

.cta-grid {
  position: relative;
}

.footer {
  padding-top: 88px;
  background: #020d17;
}

.footer-grid {
  gap: 48px;
}

.footer a {
  transition: color .2s, transform .2s;
}

.footer a:hover {
  color: var(--blue-light);
  transform: translateX(2px);
}

/* Scroll reveal, content remains visible without JS */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s var(--ease-premium), transform .72s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Focus and reduced motion */
:focus-visible {
  outline: 3px solid rgba(88, 184, 236, .7);
  outline-offset: 4px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media {
    transform: none !important;
  }
}

@media (max-width: 1080px) {
  .container {
    width: min(100% - 40px, 1180px);
  }

  .nav-links {
    gap: 16px;
  }

  .data-flow-heading,
  .home-industries {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .data-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-flow::before {
    display: none;
  }

  .result-panel {
    grid-template-columns: 1fr;
  }

  .result-stat {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 78px 0;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero {
    min-height: 780px;
  }

  .inner-hero {
    min-height: 560px;
    padding: 145px 0 80px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-content::after {
    display: none;
  }

  .data-flow {
    grid-template-columns: 1fr;
  }

  .flow-node {
    min-height: 220px;
  }

  .result-stat,
  .result-copy {
    padding: 38px 28px;
  }

  .industry-chip {
    width: 100%;
  }

  .metric-intro {
    padding: 40px 28px;
  }

  .metric {
    min-height: 190px;
    padding: 30px 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Our Work case study layout correction */
.case-study-list {
  display: grid;
  gap: 24px;
  border-top: 0;
}

.case-study {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.case-study summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  min-height: 142px;
  padding: 38px 48px;
}

.case-no {
  align-self: start;
  padding-top: 7px;
  font-size: 1.15rem;
  line-height: 1;
}

.case-study summary small {
  margin-bottom: 10px;
  font-size: .82rem;
  letter-spacing: .12em;
}

.case-study summary strong {
  display: block;
  max-width: 760px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.expand-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 152px;
  padding-left: 18px;
  white-space: nowrap;
}

.expand-label::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 12px;
  border: 1px solid rgba(36, 144, 206, .28);
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
}

.label-close {
  display: none;
}

.case-study[open] .label-open {
  display: none;
}

.case-study[open] .label-close {
  display: inline;
}

.case-study[open] .expand-label::after {
  content: "×";
  color: var(--white);
  background: var(--blue);
}

.case-study[open] summary {
  padding-bottom: 30px;
}

.case-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 48px 46px 148px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.case-body>div {
  min-width: 0;
  padding: 0 36px;
  border-left: 1px solid var(--line);
}

.case-body>div:first-child {
  padding-left: 0;
  border-left: 0;
}

.case-body>div:last-child {
  padding-right: 0;
}

.case-body h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.case-body p {
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .case-study summary {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 22px;
    padding: 32px;
  }

  .expand-label {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
    padding-left: 0;
    margin-top: 4px;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0 32px 36px 102px;
  }

  .case-body>div,
  .case-body>div:first-child,
  .case-body>div:last-child {
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .case-study-list {
    gap: 16px;
  }

  .case-study {
    border-radius: 18px;
  }

  .case-study summary {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 26px 24px;
  }

  .case-no {
    padding-top: 0;
  }

  .expand-label {
    grid-column: 1;
  }

  .case-body {
    margin: 0 24px 30px;
    padding-top: 28px;
  }
}

/* Homepage metrics: keep all statistics inside the container */
.home-page .metric-grid {
  grid-template-columns: minmax(320px, 1.45fr) repeat(4, minmax(0, 1fr));
}

.home-page .metric-intro,
.home-page .metric {
  min-width: 0;
}

.home-page .metric-intro {
  padding: 48px 42px;
}

.home-page .metric-intro h2 {
  padding-right: 0;
  font-size: clamp(2.35rem, 3.4vw, 4rem);
}

.home-page .metric {
  padding: 40px 28px;
}

.home-page .metric strong {
  max-width: 100%;
  font-size: clamp(2.2rem, 3.1vw, 3.65rem);
  line-height: .95;
  white-space: nowrap;
}

.home-page .metric span {
  display: block;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .home-page .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-page .metric-intro {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 42px;
  }

  .home-page .metric-intro h2 {
    max-width: 680px;
  }

  .home-page .metric:first-of-type {
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .home-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .metric-intro {
    grid-column: 1 / -1;
  }

  .home-page .metric:nth-of-type(odd) {
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .home-page .metric-grid {
    grid-template-columns: 1fr;
  }

  .home-page .metric-intro {
    padding: 34px 26px;
  }

  .home-page .metric {
    min-height: 170px;
    padding: 30px 26px;
    border-left: 0;
  }
}

/* Homepage metrics: robust desktop fit for long values such as "3 Months" */
@media (min-width: 1181px) {
  .home-page .metric-grid {
    grid-template-columns: minmax(300px, 0.95fr) repeat(4, minmax(0, 0.65fr));
  }

  .home-page .metric-intro {
    padding: 44px 34px;
  }

  .home-page .metric-intro h2 {
    font-size: clamp(2.45rem, 3.35vw, 3.85rem);
  }

  .home-page .metric {
    padding: 36px 24px;
    overflow: hidden;
  }

  .home-page .metric strong {
    width: 100%;
    font-size: clamp(2.15rem, 2.8vw, 3.25rem);
    letter-spacing: -0.065em;
    white-space: nowrap;
  }

  .home-page .metric:last-child strong {
    font-size: clamp(2rem, 2.55vw, 2.9rem);
    letter-spacing: -0.06em;
  }
}

/* About Us team cards: show names and standardise vertical spacing */
.team-card .team-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 220px;
  padding: 28px 26px 30px;
}

.team-card .team-copy h3 {
  order: 1;
  display: block;
  margin: 0 0 8px;
  color: #071826;
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.team-card .team-copy .team-role {
  order: 2;
  margin: 0 0 18px !important;
  color: #2490ce !important;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card .team-copy>p:not(.team-role) {
  order: 3;
  margin: 0;
  color: #607086;
  line-height: 1.55;
}

/* Pre-launch refinements: icons, supporting imagery and About Us readability */
.team-intro-copy {
  color: #d8e5ef !important;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem) !important;
  line-height: 1.7;
  font-weight: 500;
}

.content-visual {
  margin: clamp(42px, 6vw, 72px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(7,23,40,.10);
  border-radius: 24px;
  background: var(--navy-deep);
  box-shadow: var(--shadow-soft);
}
.content-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 760;
  object-fit: cover;
}
.content-visual-section {
  padding: 0 0 clamp(80px, 9vw, 130px);
}
.content-visual-section .content-visual { margin-top: 0; }
.our-work-content-visual { margin-bottom: clamp(48px, 6vw, 72px); }

.solution-capability-grid .icon img,
.cards .card .icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .content-visual { border-radius: 18px; }
  .content-visual-section { padding-bottom: 72px; }
  .team-intro-copy { font-size: 1.08rem !important; }
}



/* Client Outcome: enlarge only the description beneath £20M */
.featured-result .result-stat > span {
  font-size: 1.25rem;
  line-height: 1.4;
}
