.stations { position: relative; z-index: 5; }

.station {
  position: relative;
  min-height: 100vh;
  padding-top: var(--hud-h);
}

html.js .station {
  position: fixed;
  inset: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  scrollbar-width: thin;
}
html.js .station.is-painted { opacity: 0.001; }
html.js .station.is-active { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  html.js .station:not(.is-active) { visibility: hidden; }
}

.station-inner {
  min-height: calc(100vh - var(--hud-h));
  min-height: calc(100dvh - var(--hud-h));
  padding: var(--gap-2) var(--gutter) var(--gap-4);

  overflow-y: clip;
}

.services, .process, .credentials, .about, .contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--gap-3);
}

.hero-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background:
    linear-gradient(90deg, rgb(var(--space-rgb) / 0.9) 0%, rgb(var(--space-rgb) / 0.8) 46%, rgb(var(--space-rgb) / 0) calc(77.5vw - 24vh)),
    linear-gradient(0deg, rgb(var(--space-rgb) / 0.85) 0%, rgb(var(--space-rgb) / 0) 24%);
}
html.at-hero .hero-shade { opacity: 1; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: calc(var(--gap-4) + 90px);
}
.hero-copy { position: relative; max-width: min(880px, 58vw); }
.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}
.hero-title .t1, .hero-title .t2 { display: block; }
.hero-title .t2 { color: var(--muted); }
.hero .lede { max-width: 34em; }

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 36px);
  max-width: 820px;
  margin-top: var(--gap-4);
  padding-top: var(--gap-2);
  border-top: 1px solid var(--hairline);
}
.proof li { display: grid; gap: 3px; align-content: start; color: var(--text); font-size: 0.95rem; line-height: 1.35; }
.proof .mono { font-size: 0.62rem; }
.hero-mark { display: none; position: absolute; right: calc(var(--gutter) + 4vw); top: 50%; width: min(34vmin, 340px); transform: translateY(-58%); }
.hero-mark img { width: 100%; height: auto; }
html.no-webgl .hero-mark, html.no-js .hero-mark { display: block; }

.hero-foot {
  position: absolute;
  left: var(--gutter);

  right: calc(var(--gutter) + 150px);
  bottom: var(--gap-3);
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: var(--gap-2);
  border-top: 1px solid var(--hairline);
}

.hero:has(.trust:empty) { padding-bottom: var(--gap-4); }
.hero-foot:has(.trust:empty) { display: none; }
.trust-label { flex-shrink: 0; }
.trust {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
}
.client { min-width: 0; }
.client img { height: 26px; width: auto; max-width: 150px; filter: brightness(0) invert(1); opacity: 0.72; }
.client span { display: block; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.client.is-placeholder span { font-weight: 500; }

.services, .process {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  align-content: center;
  column-gap: 32px;
}
.services-col, .process-col { position: relative; }
.services-col::before, .process-col::before {

  content: "";
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--space-rgb) / 0.72) 55%, rgb(var(--space-rgb) / 0) 100%);
  pointer-events: none;
}
.services-stage { min-height: 40vh; }

.svc, .steps {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: var(--gap-2);
  align-items: start;
  margin-top: var(--gap-4);
}

.steps { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); }
.svc-side { display: grid; gap: var(--gap-1); justify-items: start; }
.svc-tabs, .steps-list { display: grid; gap: 3px; width: 100%; }

.svc-tabs {
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgb(var(--space-rgb) / var(--panel-alpha));
}
.svc-tab, .step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: clamp(7px, 1.25vh, 11px) 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.svc-tab .mono { color: inherit; font-size: 0.66rem; }
.svc-tab:hover, .svc-tab.is-hot, .step:hover { color: var(--text); background: rgb(255 255 255 / 0.035); }
.step[aria-selected="true"] {
  color: var(--text);
  background: rgb(var(--space-rgb) / var(--panel-alpha));
  border-color: var(--hairline-strong);
}
.svc-tab[aria-selected="true"] {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
  border-color: var(--hairline-strong);
}
.svc-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 26%;
  bottom: 26%;
  width: 2px;
  border-radius: 2px;
  background: var(--ember);
}
.svc-cta { padding-left: 14px; }

.svc-panels, .step-panels {
  display: grid;
  padding: var(--gap-3) clamp(18px, 2vw, 28px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgb(var(--space-rgb) / var(--panel-alpha));
}

.svc-panel, .step-panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.svc-panel.is-shown, .step-panel.is-shown {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s ease 0.05s, visibility 0s;
}
.svc-promise {
  font-size: clamp(1.05rem, min(0.98rem + 0.3vw, 2.8vh), 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
}
.svc-desc { margin-top: var(--gap-1); color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--gap-2); }
.caps li {
  font-size: 0.76rem;
  padding: 0.28em 0.72em;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--text);
}

.steps-list { position: relative; --progress: 0; }
.steps-list::before, .steps-list::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 26px;
  width: 1px;
}
.steps-list::before { bottom: 26px; background: var(--hairline-strong); }
.steps-list::after {
  height: calc((100% - 52px) * var(--progress));
  background: linear-gradient(var(--dawn), var(--ember));
  transition: height 0.6s var(--ease-out);
}
.step { gap: 14px; padding-left: 13px; }
.step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--space);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.step.is-done .step-no { border-color: rgb(var(--ember-rgb) / 0.7); color: var(--dawn); }
.step[aria-selected="true"] .step-no { background: var(--text); border-color: var(--text); color: var(--ink); }
.step-panel h3 { margin-top: var(--gap-1); font-size: clamp(1.3rem, min(1rem + 1vw, 3.6vh), 1.75rem); letter-spacing: -0.025em; }
.step-panel p:not(.mono) { margin-top: var(--gap-1); color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.step-next { grid-area: 2 / 1; justify-self: start; margin-top: var(--gap-1); }

.credentials { width: min(1120px, 70vw); padding-right: 0; }
.credentials .station-head { max-width: 820px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--gap-3);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgb(var(--space-rgb) / 0.55);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: var(--gap-1) 18px;
}
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat-value {
  font-size: clamp(1.45rem, min(1rem + 1.5vw, 4.4vh), 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}
.stat.is-placeholder .stat-value { color: var(--muted); }

.cred-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-2) clamp(20px, 2.4vw, 36px);
  align-items: start;
  margin-top: var(--gap-2);
}
.cred-side { display: grid; gap: var(--gap-3); }
.cred-title { margin-bottom: var(--gap-1); font-size: 0.66rem; font-weight: 500; }
.clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.clients .client {
  display: grid;
  place-items: center;
  min-height: clamp(28px, 4.4vh, 50px);
  padding: 6px 8px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgb(var(--space-rgb) / 0.62);
}
.clients .client span { font-size: 0.84rem; white-space: normal; text-align: center; }
.clients .client img { height: auto; max-height: 30px; max-width: 72%; }

.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "seal scope" "seal body";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: clamp(7px, 1.2vh, 12px) 13px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgb(var(--space-rgb) / var(--panel-alpha));
}
.cert-seal { grid-area: seal; display: grid; color: var(--dawn); }
.cert.is-placeholder .cert-seal { color: var(--muted); }
.cert-scope { grid-area: scope; justify-self: start; font-size: 0.58rem; }
.cert-body { grid-area: body; min-width: 0; }
.cert-name { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.3; color: var(--text); }
.cert-issuer { display: block; margin-top: 1px; font-size: 0.8rem; line-height: 1.3; color: var(--muted); }
.stds { display: flex; flex-wrap: wrap; gap: 6px; }
.std {
  padding: 0.34em 0.62em;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text);
  background: rgb(var(--space-rgb) / 0.62);
}
.std.is-placeholder { color: var(--muted); }

.cases { display: grid; gap: 6px; }
.case {
  display: grid;
  gap: 1px;
  align-content: start;
  padding: clamp(5px, 0.85vh, 9px) 11px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgb(var(--space-rgb) / var(--panel-alpha));
}
.case-sector { font-size: 0.56rem; }
.case-client { font-weight: 600; font-size: 0.86rem; line-height: 1.3; color: var(--text); }
.case-outcome { font-size: 0.75rem; line-height: 1.35; color: var(--dawn); }
.case.is-placeholder .case-outcome { color: var(--muted); }

.team-block { margin-top: var(--gap-1); padding-top: var(--gap-1); border-top: 1px solid var(--hairline); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.person { display: grid; gap: 1px; align-content: start; }
.person-name { font-weight: 600; font-size: 0.88rem; line-height: 1.3; color: var(--text); }
.person-role { font-size: 0.76rem; line-height: 1.35; color: var(--muted); }

.about .panel p { font-size: clamp(0.9rem, min(0.86rem + 0.2vw, 2.25vh), 1rem); line-height: 1.62; }
.about .panel p + p { margin-top: var(--gap-1); }

.contact { position: relative; }
.contact .panel { max-width: 700px; padding-block: clamp(18px, min(3vw, 3.8vh), 44px); }
.contact .chips { gap: 5px; }
.contact .chip span { padding: 0.4em 0.72em; font-size: 0.8rem; }

.foot {
  position: absolute;
  right: calc(var(--gutter) + 150px);
  bottom: 16px;
  color: var(--muted);
  font-size: 0.74rem;
}

@media (max-width: 1100px) {
  .credentials { width: auto; padding-right: calc(var(--gutter) + 28px); }
}
@media (max-width: 900px) {
  .hero-shade {
    background: linear-gradient(0deg, rgb(var(--space-rgb) / 0.95) 0%, rgb(var(--space-rgb) / 0.88) 54%, rgb(var(--space-rgb) / 0) 63%);
  }
  .hero { justify-content: flex-start; padding-top: 34vh; padding-bottom: 36px; }
  .hero-copy { max-width: none; }
  .hero-mark { position: static; order: -1; width: min(56vmin, 300px); margin: 0 auto 24px; transform: none; }
  .proof { grid-template-columns: 1fr; gap: 8px; max-width: none; }
  .proof li { font-size: 0.9rem; }
  .hero-foot { position: static; margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust { flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px; }

  .services, .process { grid-template-columns: 1fr; align-content: start; padding-top: 30vh; }
  .credentials, .about, .contact { justify-content: flex-start; }
  .services-stage { display: none; }
  .services-col::before, .process-col::before { display: none; }
  .svc, .steps { grid-template-columns: 1fr; }

  .svc-side { display: contents; }
  .svc-panels { order: 2; }
  .svc-cta { order: 3; justify-self: start; }

  .svc-tabs, .steps-list {
    display: flex;
    gap: 6px;
    width: auto;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
    border: 0;
    border-radius: 0;
    background: none;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .svc-tab, .step {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    border-color: var(--hairline-strong);
    border-radius: 999px;
    scroll-snap-align: start;
  }
  .svc-tab[aria-selected="true"]::before, .steps-list::before, .steps-list::after { display: none; }
  .step { padding-left: 6px; }
  .step-no { width: 26px; height: 26px; }
  .svc-cta { padding-left: 0; }

  .credentials { width: auto; padding-top: 30vh; padding-right: var(--gutter); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .cred-grid { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { padding-top: 32vh; }
  .contact { padding-top: 30vh; }
  .foot { position: static; padding-top: 16px; }
}
@media (max-width: 760px) {

  .hero, .services, .process, .about, .contact, .credentials { padding-right: calc(var(--gutter) + 22px); }
}
@media (max-width: 480px) {
  .certs { grid-template-columns: 1fr; }
}

.clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clients .client { min-height: clamp(48px, 7.4vh, 76px); padding: 8px 12px; }
.clients .client img { max-height: clamp(30px, 5vh, 50px); max-width: 90%; }

.trust { justify-content: flex-start; gap: clamp(28px, 3.4vw, 64px); }
.trust .client img { height: clamp(30px, 4.2vh, 44px); max-width: 190px; }

.cred-cases:has(.cases:empty) { display: none; }
.cred-grid:has(.cases:empty) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {

  .cred-grid:has(.cases:empty) { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients .client { min-height: 56px; padding: 8px 6px; }
  .clients .client img { max-height: 30px; max-width: 92%; }
}

.read-shade { display: none; }
@media (max-width: 900px) {

  html.js .station {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent var(--hud-h), #000 calc(var(--hud-h) + 24px));
    mask-image: linear-gradient(to bottom, transparent 0, transparent var(--hud-h), #000 calc(var(--hud-h) + 24px));
  }

  .read-shade { display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none; }
  .read-shade::before, .read-shade::after { content: ""; position: absolute; inset: 0; }
  .read-shade::before {
    background: linear-gradient(0deg, rgb(var(--space-rgb) / 0.92) 0%, rgb(var(--space-rgb) / 0.78) 46%, rgb(var(--space-rgb) / 0) 76%);
  }

  html.at-process .read-shade::before {
    background: linear-gradient(0deg, rgb(var(--space-rgb) / 0.94) 0%, rgb(var(--space-rgb) / 0.86) 50%, rgb(var(--space-rgb) / 0) 84%);
  }

  html.at-hero .read-shade::before { display: none; }
  .read-shade::after { background: rgb(var(--space-rgb) / 0.82); opacity: var(--read, 0); }
}

@media (max-width: 900px) {

  .mono, .stat-label, .cred-title, .cert-scope, .case-sector, .facts .mono, .proof .mono, .svc-tab .mono, .step-no {
    font-size: max(11px, 0.72rem);
  }
  .foot { font-size: 0.8rem; }

  .svc-tab, .step { min-height: 44px; }
  .menu-btn { min-height: 44px; padding: 10px 18px; }
  .text-link { min-height: 44px; }
  .chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1em; }
  input[type="text"], input[type="email"] { min-height: 44px; }

  .svc-tabs, .steps-list {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  .hero { padding-top: 28vh; }
  .hero .lede { margin-top: var(--gap-2); }
  .hero .actions { margin-top: var(--gap-3); }
}

@media (min-width: 600px) and (max-width: 900px) {
  .hero-copy, .services-col, .process-col, .credentials > *, .about .panel, .contact .panel { max-width: 620px; }
}

.wa-row { display: none; }
@media (max-width: 900px) {
  .wa-row { display: block; margin-top: 14px; }
  .wa-row .btn { width: 100%; justify-content: center; }
}
