.hero {
  position: relative;
  overflow: hidden;
  padding: 116px 0 102px;
  background: linear-gradient(120deg, #102747 0%, #123d69 52%, #176b83 100%);
  color: var(--paper);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
h1 {
  max-width: 760px;
  margin: 0 0 29px;
  font-size: clamp(42px, 6.4vw, 91px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 700;
}
h1 span {
  display: block;
  white-space: normal;
}
.hero-copy {
  max-width: 520px;
  margin: 0 0 31px;
  color: #d4e3ee;
  font-size: 18px;
  line-height: 1.55;
}
.button-primary {
  color: var(--ink);
  background: var(--lime);
}
.button-quiet {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

section {
  padding: 100px 0;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(38px, 5vw, 69px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 700;
}
.section-intro {
  max-width: 390px;
  margin-top: 0;
  color: var(--muted);
  font-size: 15px;
}

.services {
  background: var(--white);
}
.services .wrap {
  width: min(1340px, calc(100% - 48px));
}
.services .section-head {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}
.service-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.service-tab {
  min-height: 154px;
  padding: 22px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.service-tab:hover {
  border-color: #9fb6cb;
  transform: translateY(-2px);
}
.service-tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--deep);
  border-color: var(--deep);
}
.service-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin-bottom: 19px;
  color: #176b83;
}
.service-tab-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.service-tab[aria-selected="true"] .service-tab-icon {
  color: var(--lime);
}
.service-tab-title {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.service-tab-copy {
  display: block;
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.service-tab[aria-selected="true"] .service-tab-copy {
  color: #bfd0e2;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 490px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.service-panel[hidden] {
  display: none;
}
.service-panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px 48px;
}
.service-kicker {
  margin-bottom: 20px;
  color: #176b83;
  font: 600 12px var(--sans);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.service-panel h3 {
  max-width: 520px;
  margin: 0 0 29px;
  font-size: clamp(35px, 3.6vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.service-points {
  display: grid;
  gap: 13px;
  margin: 0 0 33px;
  padding: 0;
  color: #435970;
  font-size: 14px;
  list-style: none;
}
.service-points li {
  position: relative;
  padding-left: 22px;
}
.service-points li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.service-panel .button {
  color: var(--paper);
  background: var(--deep);
}

.service-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
}
.case-studies {
  background: var(--white);
}
.case-studies .section-intro p:first-child {
  margin-top: 0;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.case-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 8px;
}
.case-card:nth-child(2) {
  border-top-color: var(--orange);
}
.case-card:nth-child(3) {
  border-top-color: #79d9c6;
}
.case-service {
  color: #176b83;
  font: 600 12px var(--sans);
  letter-spacing: 0.08em;
}
.case-card h3 {
  margin: 72px 0 16px;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.diagram-section {
  background: var(--paper);
}
.diagram {
  margin: 26px 0 0;
  padding: 36px;
  background: linear-gradient(135deg, #e5f3fc 0%, #eef5ff 55%, #e1f4f3 100%);
  border: 1px solid var(--line);
}
.system-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.system-stage {
  position: relative;
  min-width: 0;
  min-height: 248px;
  padding: 24px;
  background: rgba(251, 253, 255, 0.9);
  border: 1px solid #c6d9e9;
}
.system-stage:not(:last-child):after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -26px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #176b83;
  background: #e8f4fa;
  border: 1px solid #9ebfd0;
  border-radius: 50%;
  font: 700 12px var(--mono);
  transform: translateY(-50%);
}
.design-stage {
  color: var(--paper);
  background: var(--deep);
  border-color: var(--deep);
  box-shadow: 0 18px 40px rgba(18, 45, 80, 0.14);
}
.outcome-stage {
  background: rgba(217, 243, 255, 0.88);
  border-color: #9fcbd9;
}
.stage-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #176b83;
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.design-stage .stage-label {
  color: var(--cyan);
}
.stage-status:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: #2ac2a2;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(42, 194, 162, 0.14);
}
.system-stage h3 {
  margin: 37px 0 12px;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.system-stage p {
  min-height: 62px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.design-stage p {
  color: #bfd0e2;
}
.system-stage ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.system-stage li {
  padding: 5px 7px;
  color: #435970;
  background: rgba(213, 226, 239, 0.58);
  font: 600 12px var(--mono);
}
.design-stage li {
  color: var(--cyan);
  background: rgba(169, 239, 255, 0.1);
}
.system-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 15px 18px;
  color: var(--paper);
  background: #176b83;
}
.system-rail-label {
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.system-rail ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d9f3ff;
  font-size: 12px;
}
.system-rail li:before {
  content: "+";
  margin-right: 6px;
  color: var(--cyan);
  font-family: var(--mono);
}
.diagram figcaption {
  margin-top: 18px;
  color: var(--muted);
  font: 12px var(--mono);
}

.process {
  padding-bottom: 115px;
  background: var(--deep);
  color: var(--paper);
}
.process h2 {
  color: var(--paper);
}
.process-intro {
  color: #bdccc3;
}
.process-intro p {
  margin: 0;
}
.process-link {
  margin-top: 28px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.step {
  padding: 23px 22px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.step + .step {
  padding-left: 22px;
}
.step:last-child {
  border-right: 0;
}
.step h3 {
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.step p {
  margin: 0;
  color: #b1c4d8;
  font-size: 14px;
}

.contact {
  min-height: 350px;
  padding: 78px 0 82px;
  background: linear-gradient(118deg, #a9efff 0%, #c6f4ff 48%, #dbe8ff 100%);
}
.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 50px;
}
.contact h2 {
  max-width: 690px;
  color: var(--deep);
}
.contact-copy {
  max-width: 390px;
  color: #3e5b73;
  font-size: 15px;
}
.contact-copy p:first-child {
  margin-top: 0;
}

.credentials-list {
  margin: 23px 0 0;
  color: var(--deep);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}

@media (max-width: 760px) {
  .services .wrap {
    width: min(100% - 34px, 600px);
  }
  .hero {
    padding: 76px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  section {
    padding: 75px 0;
  }
  .section-head,
  .contact-grid {
    display: block;
  }
  .section-intro,
  .contact-copy {
    margin-top: 27px;
  }
  .service-tabs {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    overflow-x: auto;
    margin-right: -17px;
    padding: 0 17px 7px 0;
    scroll-snap-type: x mandatory;
  }
  .service-tab {
    min-height: 142px;
    scroll-snap-align: start;
  }
  .service-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .service-panel-copy {
    padding: 42px 27px;
  }
  .service-visual {
    grid-template-columns: minmax(0, 1fr);
    min-height: 365px;
    padding: 30px 20px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-card {
    min-height: 340px;
  }
  .case-card h3 {
    margin-top: 46px;
  }
  .diagram {
    padding: 18px;
  }
  .system-flow {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .system-stage {
    min-height: 0;
  }
  .system-stage:not(:last-child):after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -26px;
    transform: translateX(50%);
  }
  .system-stage p {
    min-height: 0;
  }
  .system-rail {
    display: block;
  }
  .system-rail ul {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .step,
  .step + .step {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
  .step h3 {
    margin-top: 0;
  }
  .step:last-child {
    border-bottom: 0;
  }
  .contact {
    min-height: 0;
    padding: 68px 0 74px;
  }
}

/* The complete service content is visible until tabs initialise. */
.service-tabs[hidden] {
  display: none;
}
.service-panel + .service-panel {
  margin-top: 14px;
}
.service-tabs:not([hidden]) ~ .service-panel {
  margin-top: 0;
}
.hero-content {
  min-width: 0;
}
.hero-eyebrow {
  margin: 0 0 24px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .service-visual {
    padding: 20px 12px;
  }
}

/* Service diagrams: shared blueprint surface, distinct information flows. */
.service-visual {
  background: transparent;
  padding: 28px;
  container-type: inline-size;
}
.service-art {
  width: min(100%, 570px);
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  border: 1px solid #e2e9ef;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(18, 45, 80, 0.16);
  min-width: 0;
  color: #293744;
  font-size: 14px;
  line-height: 1.45;
}
.blueprint-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #47778c;
}
.art-node {
  min-width: 0;
  padding: 20px 16px;
  box-shadow: 0 3px 8px #24334508;
  background: #ffffff;
  border: 1px solid #d6dee4;
  border-radius: 8px;
}
.art-node > .blueprint-icon {
  display: block;
  margin-bottom: 22px;
}
.art-label {
  display: block;
  color: #5b6b76;
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.service-art strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 6px;
}
.art-node-accent {
  background: #edf5fa;
  border-color: #edf5fa;
  color: #102d48;
}
.art-node-accent .art-label,
.art-node-accent .blueprint-icon {
  color: #245d76;
}
.migration-estates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1.2fr);
  align-items: stretch;
}
.migration-link {
  align-self: center;
  text-align: center;
  color: #47778c;
  font-size: 24px;
}
.workload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 24px;
}
.workload-grid span {
  height: 20px;
  border: 1px solid #9ab9cd;
  background: #e2eef6;
  border-radius: 3px;
}
.zone-grid {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}
.zone-grid span {
  padding: 6px 8px;
  border: 1px solid #75a7bd;
  border-radius: 3px;
  font-size: 12px;
}
.migration-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}
.migration-stages span {
  border-top: 1px solid #b5cbd7;
  padding-top: 10px;
}
.art-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 0;
  padding: 16px 0 0;
  border-top: 1px solid #e4e8eb;
  color: #49677c;
  font-size: 12px;
}
.art-rail span::before {
  content: "+";
  color: #47778c;
  margin-right: 6px;
}
.network-topology {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.endpoint {
  position: relative;
  text-align: center;
  padding: 12px;
}
.endpoint > .blueprint-icon {
  margin: 0 auto 10px;
}
.endpoint > span {
  display: block;
  color: #49677c;
  margin-top: 5px;
  font-size: 12px;
}
.endpoint::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 16px;
  width: 1px;
  background: #6a9db3;
}
.endpoint:nth-child(-n + 2)::after {
  top: 100%;
}
.endpoint:nth-last-child(-n + 2)::after {
  bottom: 100%;
}
.network-hub {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #acc6d5;
  border-radius: 8px;
  background: #edf5fa;
  color: #102d48;
}
.network-hub .art-label,
.network-hub .blueprint-icon {
  color: #245d76;
}
.workflow-sequence {
  display: grid;
  gap: 20px;
}
.workflow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #d6dee4;
  border-radius: 8px;
  background: #ffffff;
}
.workflow-step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  line-height: 20px;
  color: #47778c;
}
.workflow-step p {
  margin: 5px 0 0;
  color: #49677c;
  font-size: 14px;
}
.workflow-automation {
  border-color: #acc6d5;
  background: #f0f5fa;
}
.workflow-approval {
  border-color: #afcdbc;
  background: #f0f7f3;
}
.workflow-approval .blueprint-icon,
.workflow-approval .art-label {
  color: #246c53;
}
.consultancy-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.consultancy-inputs > div {
  min-width: 0;
  padding: 16px 12px;
  background: #ffffff;
  border: 1px solid #d6dee4;
  border-radius: 6px;
}
.consultancy-inputs strong {
  font-size: 14px;
}
.decision-convergence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 20px;
}
.decision-convergence span {
  width: 1px;
  height: 100%;
  justify-self: center;
  background: #6a9db3;
}
.consultancy-decision {
  padding: 16px;
  border: 1px solid #acc6d5;
  border-radius: 8px;
  background: #edf5fa;
  color: #102d48;
  text-align: center;
}
.consultancy-decision .blueprint-icon,
.consultancy-decision .art-label {
  color: #245d76;
}
.consultancy-decision .art-label {
  margin-top: 10px;
}
.consultancy-decision strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}
.consultancy-decision p {
  margin: 10px 0 0;
  font-size: 14px;
}
.consultancy-deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.consultancy-deliverables span {
  padding: 8px;
  border: 1px solid #d6dee4;
  border-radius: 5px;
  background: #ffffff;
}
@container (max-width: 390px) {
  .migration-estates {
    grid-template-columns: 1fr;
  }
  .migration-link {
    transform: rotate(90deg);
    padding: 8px;
  }
  .art-node > .blueprint-icon {
    margin-bottom: 12px;
  }
  .workload-grid,
  .zone-grid {
    margin-top: 16px;
  }
  .consultancy-inputs {
    grid-template-columns: 1fr;
  }
  .consultancy-inputs > div {
    padding: 12px 16px;
  }
  .decision-convergence {
    grid-template-columns: 1fr;
    height: 24px;
  }
  .decision-convergence span:not(:first-child) {
    display: none;
  }
  .workflow-step {
    gap: 12px;
    padding: 18px 14px;
  }
  .network-topology {
    column-gap: 16px;
  }
}

.art-window-controls i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c6ced4;
}
.art-canvas {
  flex: 1;
  align-content: center;
  padding: 0 0 20px;
}
.service-art .blueprint-icon {
  stroke-width: 1.7;
}
.migration-stages {
  margin-bottom: 0;
}
.art-rail {
  background: transparent;
  gap: 8px 14px;
}
.art-rail span::before {
  content: "+";
}
/* Hidden panels still contribute their intrinsic height, so switching services
   cannot move the next section. Visibility also excludes them from focus/AT. */
.service-tabs:not([hidden]) + .service-panels {
  display: grid;
}
.service-tabs:not([hidden]) + .service-panels > .service-panel {
  grid-area: 1 / 1;
  margin: 0;
  min-width: 0;
}
.service-tabs:not([hidden]) + .service-panels > .service-panel[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}
@container (max-width: 390px) {
  .service-art {
    padding: 16px;
  }
  .art-rail {
    padding: 14px 0 0;
  }
}

.diagram-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.diagram-title {
  font-size: 13px;
  font-weight: 700;
}
.diagram-indicator {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #267360;
  font: 600 12px var(--mono);
}
.diagram-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38a78c;
  box-shadow: 0 0 0 3px #38a78c18;
}
.zone-grid span,
.consultancy-deliverables span,
.consultancy-inputs > div,
.migration-stages span {
  text-align: center;
}
.zone-grid span,
.consultancy-deliverables span {
  display: grid;
  place-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: -130px;
  top: -230px;
  width: 590px;
  height: 590px;
  border: 1px solid rgba(169, 239, 255, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(169, 239, 255, 0.05),
    0 0 0 110px rgba(169, 239, 255, 0.035),
    0 0 0 190px rgba(169, 239, 255, 0.025);
}
.art-rail {
  justify-content: space-evenly;
  gap: 12px;
}
.art-rail > span {
  flex: 1 1 0;
  text-align: center;
}
@container (max-width: 320px) {
  .art-rail > span {
    flex-basis: calc(50% - 12px);
  }
}

/* Match the live site's technical labels and compact diagram typography. */
.art-rail {
  font: 12px/1.5 var(--mono);
  text-transform: uppercase;
}
.zone-grid span,
.consultancy-deliverables span {
  font: 700 12px/1.5 var(--mono);
}
.migration-stages span {
  font: 12px/1.5 var(--mono);
}
.workflow-step p,
.consultancy-decision p {
  font-size: 12px;
}
