/* Net Universe landing — responsive rebuild of the Figma "Provisioning & Collection" export */

:root {
  --navy: #142544;
  --navy-deep: #0d162b;
  --navy-card: rgba(29, 61, 113, 0.2);
  --line: #3e5688;
  --slate: #647bab;
  --cyan: #00d2ff;
  --blue: #0090cd;
  /* Brand blue lifted for small text on navy (AA: 5.2:1 on --navy, 4.8:1 on the form card). */
  --blue-on-dark: #1aa0dc;
  /* Brand blue deepened for small text and links on white/pale (AA: 5.2:1 / 4.8:1). */
  --blue-on-light: #0074a6;
  --green: #54aa47;
  --green-bright: #38ef7d;
  --lime: #d8d723;
  --text-light: #c2c8d2;
  --text-muted: #99a5bd;
  --text-dim: #94a3b8;
  --gray: #667085; /* 4.6:1 on --pale; #6d7689 was 4.2:1 */
  --pale: #f4f6fa;
  --gradient: linear-gradient(90deg, #54aa47 0%, #3294c9 100%);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-btn: "Lato", "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 6.6vw, 96px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #a1c4fd;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
}

.skip-link:focus {
  left: 16px;
}

/* The pale-blue ring is for navy; on light sections use the brand blue so it stays visible (3:1). */
.pale :focus-visible,
.white :focus-visible,
.white-plain :focus-visible {
  outline-color: var(--blue);
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cyan { color: var(--cyan); }
.blue { color: var(--blue); }
.lime { color: var(--lime); }
.green { color: var(--green); }
.green-bright { color: var(--green-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-btn);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 150ms ease-out, opacity 150ms ease-out;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.24);
}

.btn-primary:active {
  opacity: 0.9;
}

.btn-outline {
  background: rgba(0, 0, 0, 0.04);
  /* Lighter than the --slate border so the label reaches AA on navy (5.2:1). */
  color: #8296c2;
  box-shadow: inset 0 0 0 1px var(--slate);
}

.btn-outline:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f2f2;
  box-shadow: inset 0 0 0 1px var(--slate);
}

.btn-secondary:hover {
  box-shadow: inset 0 0 0 1px #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- Brand + navbar ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(62, 86, 136, 0.5);
}

.navbar-inner {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu > summary {
  display: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.nav-links a:hover,
.nav-links .is-current {
  color: #edeeef;
}


/* Dropdown (Services): opens on hover and keyboard focus on desktop; always expanded in the mobile menu. */
.nav-group {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  z-index: 60;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(62, 86, 136, 0.6);
  border-radius: 10px;
  background: var(--navy);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 150ms;
}

/* Hover bridge so the menu doesn't close while the pointer crosses the gap. */
.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.nav-sub a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-sub .is-current {
  color: var(--cyan);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Desktop: details is always open visually */
@media (min-width: 1101px) {
  .nav-menu {
    display: contents;
  }

  /* No-JS fallback; main.js also keeps the menu open on desktop */
  .nav-menu::details-content {
    content-visibility: visible;
    display: contents;
  }
}

/* ---------- Section shells ---------- */

.section {
  padding: 96px 0;
}

.dark { background: var(--navy); }
.pale { background: var(--pale); }
.white {
  background: #fff;
  box-shadow: inset 0 1px 0 #e2e8f0, inset 0 -1px 0 #e2e8f0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
}

.dark .h2 {
  color: #fff;
}

.sub {
  margin-top: 10px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #172544;
}

.dark .sub {
  color: var(--text-muted);
}

.sub.muted {
  color: var(--gray);
}

.dark .sub.light {
  color: #f1f2f2;
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  min-height: 576px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
}

.lead {
  margin-top: 32px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.3;
  color: var(--text-light);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 48px;
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
}

.hero-stats dd {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: #f1f2f2;
}

.hero-stats dt {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-art img {
  width: 100%;
  height: auto;
  max-width: 728px;
  margin-left: auto;
}

.brand img {
  width: 187px;
  height: auto;
}

.svc-icon {
  width: 94px;
  height: 72px;
  margin-bottom: 8px;
}

.infra-icon {
  width: 78px;
  height: 62px;
  object-fit: contain;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 22, 43, 0.04);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
}

.service-card + .service-card {
  border-left: 1px solid #e2e8f0;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
}

.service-card p {
  flex: 1;
  font-size: 14px;
  line-height: 22px;
  color: var(--gray);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: var(--font-btn);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}

.text-link:hover {
  color: var(--blue-on-light);
}

/* ---------- Infrastructure ---------- */

.infra-grid {
  display: grid;
  grid-template-columns: minmax(0, 515px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.infra-left .h2 {
  margin-bottom: 22px;
}

.infra-left .sub + .sub {
  margin-top: 24px;
}

.infra-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 32px;
  border-radius: 24px;
  background: var(--navy-card);
  border: 1px solid var(--line);
}

.infra-cards h3 {
  margin: 12px 0 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.infra-cards p {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-light);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.steps li:nth-child(3n) {
  border-right: 0;
}

.steps li:nth-child(n + 4) {
  border-bottom: 0;
}

.step-num {
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: var(--gray);
  opacity: 0.4;
}

.step-tag {
  margin: 8px 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
}

.steps h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.steps p {
  font-size: 14px;
  line-height: 21px;
  color: var(--gray);
}

/* ---------- Trust / impact ---------- */

.trust .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.impact-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 118px;
}

.impact-stats div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
}

.impact-stats dd {
  font-family: var(--font-head);
  font-size: clamp(64px, 7vw, 100px);
  font-weight: 800;
  line-height: 1;
}

.impact-stats dt {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.impact-copy {
  max-width: 1026px;
  margin: 64px 0 80px;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);
}

.impact-copy strong {
  color: #f1f2f2;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.logo-label {
  flex-shrink: 0;
  width: 190px;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Customer/partner band directly under the hero. */
.logo-strip {
  padding: 56px 0;
  border-top: 1px solid rgba(62, 86, 136, 0.6);
}

/* Stats section now ends with the copy, so drop the gap meant for the logos. */
.impact-copy:last-child {
  margin-bottom: 0;
}

.logos-marquee {
  flex: 1;
  width: 100%;
  min-width: 0;
  --marquee-gap: 32px;
  --marquee-logo: 107px;
  --marquee-duration: 70s;
}

/* Partners row: fewer logos and the opposite direction to the clients row. */
.logos-marquee.is-reverse {
  --marquee-duration: 60s;
  --marquee-direction: reverse;
}

/* Swissbit's file has no built-in padding, so show it smaller to match the others. */
.marquee-track .logo-full-bleed img {
  width: calc(var(--marquee-logo, 128px) * 0.82);
}

.rule {
  width: 100%;
  margin: 32px 0;
  border: 0;
  border-top: 1px solid rgba(62, 86, 136, 0.6);
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid rgba(62, 86, 136, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
}

.contact-left .h2 {
  line-height: 1.1;
}

.contact-left .sub {
  margin-top: 16px;
}

.contact-schedule {
  width: 243px;
  max-width: 100%;
  margin-top: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--cyan);
}

.contact-list a:hover {
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border-radius: 24px;
  background: var(--navy-card);
  border: 1px solid var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-on-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 45px;
  padding: 12px 14px;
  border: 0.5px solid var(--slate);
  border-radius: 8px;
  background: rgba(194, 200, 210, 0.1);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.contact-form ::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* Honeypot: off-screen for people, still filled in by naive bots. */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-note.is-success {
  color: #86efac;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
  background: rgba(194, 200, 210, 0.14);
}

.contact-form [aria-invalid="true"] {
  border-color: #f87171;
  box-shadow: 0 0 0 1px #f87171;
}

.form-note {
  font-size: 13px;
  color: var(--text-dim);
}

.form-note.is-error {
  color: #fca5a5;
}

/* ---------- Side dots ---------- */

.dots {
  position: fixed;
  right: 32px;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
}

.dots a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d7689;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.dots a:hover {
  background: #99a5bd;
}

.dots a.is-active {
  width: 16px;
  height: 16px;
  background: var(--green);
  box-shadow: inset 0 0 0 3px #6d7689;
}

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 40px;
  border-top: 1px solid rgba(62, 86, 136, 0.4);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-dim);
}

.footer-cols {
  display: flex;
  gap: 32px 48px;
}

/* Four columns on one row: the address wraps inside the Contact column. */
.footer-cols > div {
  flex: 0 1 auto;
}

.footer-cols > div:last-child {
  max-width: 230px;
}

.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-cols h2 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-on-dark);
}

.footer-cols a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(62, 86, 136, 0.4);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* ---------- Responsive ---------- */

@media (min-width: 1101px) and (max-width: 1300px) {
  .nav {
    gap: 28px;
  }

  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 1240px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card + .service-card {
    border-left: 0;
  }

  .service-card:nth-child(even) {
    border-left: 1px solid #e2e8f0;
  }

  .service-card:nth-child(n + 3) {
    border-top: 1px solid #e2e8f0;
  }

  .dots {
    right: 12px;
  }
}

@media (max-width: 1100px) {
  .nav-menu > summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
  }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .burger span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 150ms ease-out, opacity 150ms ease-out;
  }

  .nav-menu[open] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-menu[open] .burger span:nth-child(2) { opacity: 0; }
  .nav-menu[open] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 90px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    /* The header is sticky, so a menu taller than the screen must scroll on its own. */
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 17px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-links .lang {
    display: flex;
    padding: 10px 0;
  }

  .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 4px 16px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-sub::before {
    content: none;
  }

  .nav-sub a {
    padding: 8px 0;
    font-size: 15px;
  }

  .nav-sub a:hover {
    background: none;
  }

  .nav-parent svg {
    display: none;
  }

  .hero-grid,
  .infra-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    min-height: 0;
    gap: 48px;
  }

  .hero-art img {
    max-width: 560px;
    margin: 0 auto;
  }

  .dots {
    display: none;
  }

  /* Keep the three stats on one row on tablets. */
  .impact-stats {
    gap: 32px 40px;
  }

  .impact-stats dt {
    font-size: 14px;
    letter-spacing: 2px;
  }
}

/* Below ~1320px the three footer columns no longer fit beside the brand block (Contact wrapped
   under Services), so stack: brand on top, then the three link columns side by side. */
@media (max-width: 1320px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-brand {
    max-width: 480px;
  }

  .footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-cols > div:last-child {
    max-width: none;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .navbar-inner {
    height: 72px;
  }

  .nav {
    top: 72px;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
  }

  html {
    scroll-padding-top: 72px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .hero-stats dd {
    font-size: 30px;
  }

  .hero-stats dt {
    font-size: 11px;
  }

  .services-grid,
  .infra-cards,
  .steps,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card:nth-child(n) {
    border-left: 0;
  }

  .service-card + .service-card {
    border-top: 1px solid #e2e8f0;
  }

  .infra-cards {
    padding: 24px;
    gap: 28px;
  }

  .steps li,
  .steps li:nth-child(n + 4) {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .step-num {
    font-size: 56px;
  }

  .impact-stats {
    gap: 40px;
  }

  .impact-copy {
    margin: 48px 0 56px;
  }

  .logo-strip {
    padding: 40px 0;
  }

  .logo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-top,
  .footer-cols,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-cols {
    display: flex;
    gap: 32px;
  }
}

/* ---------- Logo marquee ----------
   Markup: .marquee > .marquee-track > ul, each logo listed once. main.js repeats the items
   to fill the screen, appends a hidden copy of the list and adds .is-running; the track then
   slides left by one list width (-50%) and loops. */

.marquee {
  max-width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* Static fallback (no JS or reduced motion): let a long row scroll instead of clipping. */
.marquee:not(.is-running) {
  overflow-x: auto;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee.is-running .marquee-track {
  animation: marquee var(--marquee-duration, 40s) linear infinite var(--marquee-direction, normal);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track > ul {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--marquee-gap, 40px);
  padding-right: var(--marquee-gap, 40px);
}

.marquee-track > ul > li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-track img {
  width: var(--marquee-logo, 128px);
  height: auto;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cookie consent (DEV-495, built by consent.js; off until policies ship) ---------- */

.footer-cookie-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-cookie-btn:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 12px;
  background: var(--navy-deep);
  color: var(--text-light);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.cookie-text a {
  color: var(--cyan);
  text-decoration: underline;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  cursor: pointer;
}

.cookie-option input {
  grid-row: span 2;
  margin-top: 3px;
  accent-color: var(--green);
}

.cookie-option strong {
  color: #fff;
}

.cookie-option span {
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 560px) {
  .cookie-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Text + photo sections (Services: equipment, returns, portal; Figma 66:2310/2389/2404) ---------- */

.story.section {
  padding: 120px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 577fr) minmax(0, 601fr);
  align-items: start;
  gap: 72px;
}

.story-grid.is-flipped {
  grid-template-columns: minmax(0, 590fr) minmax(0, 588fr);
}

.story-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.story-text .eyebrow {
  margin-bottom: 24px;
}

.story-text .h2 {
  line-height: 1.15;
}

.story-text .sub {
  margin-top: 24px;
  line-height: 1.5;
}

.story-body {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
}

.dark .story-body {
  color: #f1f2f2;
}

.story-tagline {
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--green);
}

.story-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.story-img.is-equipment {
  height: 616px;
  object-position: 60.7% center;
}

.story-img.is-returns {
  height: 583px;
  object-position: left center;
}

.story-img.is-portal {
  height: 478px;
  object-position: 44% center;
}

@media (max-width: 1100px) {
  .story.section {
    padding: 80px 0;
  }

  .story-grid,
  .story-grid.is-flipped {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Text first on small screens, photo after. */
  .story-grid.is-flipped .story-img {
    order: 1;
  }

  .story-img.is-equipment,
  .story-img.is-returns,
  .story-img.is-portal {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .story-body {
    font-size: 16px;
  }

  .story-tagline {
    font-size: 20px;
  }
}
