/* =========================================================
   SilverBridge Solution — light B2B (mist + steel-blue)
   ========================================================= */

:root {
  --bg: #f2f4f6;
  --bg-alt: #e8ecef;
  --surface: #ffffff;
  --ink: #1a1d21;
  --ink-soft: #3a4149;
  --muted: #6b747c;
  --line: rgba(26, 29, 33, 0.1);
  --line-strong: rgba(26, 29, 33, 0.16);

  --steel: #4a5c6a;
  --accent: #3d6b8c;
  --accent-bright: #4d84ab;
  --accent-deep: #2f5570;
  --accent-soft: rgba(61, 107, 140, 0.1);
  --silver: #a8b0b8;

  --danger: #c2453f;

  --font-display: "Sora", system-ui, sans-serif;
  --font: "Manrope", system-ui, sans-serif;

  --header-h: 74px;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(26, 29, 33, 0.05);
  --shadow: 0 18px 44px rgba(26, 29, 33, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(61, 107, 140, 0.28);
}

.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 244, 246, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 244, 246, 0.94);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo img {
  display: block;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo__accent {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.nav__cta {
  margin-left: 0.4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 1.15rem;
}

.nav__cta:hover {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(242, 244, 246, 0.97) 0%,
      rgba(242, 244, 246, 0.9) 34%,
      rgba(242, 244, 246, 0.55) 58%,
      rgba(242, 244, 246, 0.15) 100%
    );
}

.hero__layout {
  position: relative;
}

.hero__content {
  max-width: 640px;
}

.hero__title {
  font-size: clamp(1.85rem, 4.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Trust strip ---------- */
.strip {
  background: var(--ink);
  color: #fff;
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 1.5rem;
}

.strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent-bright);
}

.strip__key {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.strip__val {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section__head {
  max-width: 640px;
  margin: 0 0 3rem;
}

.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.section__lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.3rem;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: 1.24rem;
  margin-bottom: 0.6rem;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Infrastructure blocks ---------- */
.infra {
  background: var(--surface);
}

.infra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.infra__tile {
  padding: 1.6rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.infra__tile:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 107, 140, 0.45);
  box-shadow: var(--shadow-sm);
}

.infra__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.infra__icon svg {
  width: 22px;
  height: 22px;
}

.infra__title {
  font-size: 1.06rem;
  margin-bottom: 0.35rem;
}

.infra__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.infra__note {
  margin: 2rem 0 0;
  text-align: center;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Consulting ---------- */
.consult {
  background: var(--bg-alt);
}

.consult__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3.2rem;
}

.consult__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.consult__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(47, 85, 112, 0.12);
  border-radius: var(--radius);
  pointer-events: none;
}

.consult__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult__list {
  list-style: none;
  margin: 1.6rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.consult__list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.consult__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.consult__note {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.6rem;
}

/* ---------- Bridge the gap ---------- */
.bridge {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow--light {
  color: var(--accent-bright);
}

.bridge .section__title {
  color: #fff;
}

.section__lead--light {
  color: rgba(255, 255, 255, 0.72);
}

.bridge__viz {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  margin: 0.5rem 0 3.2rem;
}

.bridge__span {
  width: 100%;
  height: 120px;
}

.bridge__end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 96px;
}

.bridge__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--silver);
}

.bridge__dot--live {
  border-color: var(--accent-bright);
  background: transparent;
  box-shadow: 0 0 0 0 rgba(77, 132, 171, 0);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.bridge__label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

/* ---- Build animation (triggered on reveal) ---- */
.b-deck,
.b-cable,
.b-tower {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.b-tower {
  stroke-dashoffset: 1;
}

.b-hangers line {
  transform: scaleY(0);
  transform-origin: bottom;
  transform-box: fill-box;
  opacity: 0;
}

.b-spark {
  opacity: 0;
}

/* towers rise first */
.bridge__viz.is-in .b-tower {
  animation: bridge-draw 0.5s var(--ease) forwards;
}
.bridge__viz.is-in .b-tower:nth-of-type(2) {
  animation-delay: 0.15s;
}

/* main cable draws left to right */
.bridge__viz.is-in .b-cable {
  animation: bridge-draw 1.7s var(--ease) 0.3s forwards;
}

/* deck draws left to right */
.bridge__viz.is-in .b-deck {
  animation: bridge-draw 1.7s var(--ease) 0.3s forwards;
}

/* hangers drop in, following the build front */
.bridge__viz.is-in .b-hangers line {
  animation: hanger-in 0.4s var(--ease) forwards;
}
.bridge__viz.is-in .b-hangers line:nth-child(1) { animation-delay: 0.55s; }
.bridge__viz.is-in .b-hangers line:nth-child(2) { animation-delay: 0.85s; }
.bridge__viz.is-in .b-hangers line:nth-child(3) { animation-delay: 1.15s; }
.bridge__viz.is-in .b-hangers line:nth-child(4) { animation-delay: 1.4s; }
.bridge__viz.is-in .b-hangers line:nth-child(5) { animation-delay: 1.65s; }
.bridge__viz.is-in .b-hangers line:nth-child(6) { animation-delay: 1.9s; }

/* spark travels along the deck as it is built */
.bridge__viz.is-in .b-spark {
  animation: spark-run 1.7s var(--ease) 0.3s forwards;
}

/* arrival: the far node lights up once we reach it */
.bridge__viz.is-in .bridge__dot--live {
  background: var(--accent-bright);
  box-shadow: 0 0 0 6px rgba(77, 132, 171, 0.22);
  transition-delay: 1.9s;
}

@keyframes bridge-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hanger-in {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes spark-run {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateX(900px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b-deck,
  .b-cable,
  .b-tower {
    stroke-dashoffset: 0;
  }
  .b-hangers line {
    transform: scaleY(1);
    opacity: 1;
  }
  .bridge__dot--live {
    background: var(--accent-bright);
    box-shadow: 0 0 0 6px rgba(77, 132, 171, 0.22);
  }
}

.bridge__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bridge__card {
  position: relative;
  padding: 1.9rem 1.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.bridge__card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 132, 171, 0.55);
  background: rgba(77, 132, 171, 0.08);
}

.bridge__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  display: block;
  margin-bottom: 0.9rem;
}

.bridge__title {
  font-size: 1.16rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.bridge__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
}

/* ---------- Approach ---------- */
.approach {
  background: var(--bg-alt);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  position: relative;
}

/* dashed connector running through the step nodes */
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--line-strong) 0,
    var(--line-strong) 7px,
    transparent 7px,
    transparent 15px
  );
}

.step {
  position: relative;
  text-align: center;
  padding: 0 0.6rem;
}

.step__num {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 5px solid var(--bg-alt);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(47, 85, 112, 0.28);
}

.step__title {
  font-size: 1.16rem;
  margin-bottom: 0.5rem;
}

.step__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Industries ---------- */
.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tags li {
  padding: 0.7rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tags li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- About ---------- */
.about {
  background: var(--bg-alt);
}

.about__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  color: var(--ink-soft);
  margin: 1rem 0 0;
}

.about__facts {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}

.facts {
  margin: 0;
  display: grid;
  gap: 1.3rem;
}

.facts div {
  display: grid;
  gap: 0.2rem;
}

.facts dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  font-weight: 500;
  color: #fff;
}

/* ---------- Contact ---------- */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.contact__list li {
  display: grid;
  gap: 0.15rem;
}

.contact__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.contact__list a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.contact__list a:hover {
  color: var(--accent-deep);
}

/* ---------- Form ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form__field {
  margin-bottom: 1.1rem;
}

.form__field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form__field .opt {
  color: var(--muted);
  font-weight: 400;
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--muted);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__field textarea {
  resize: vertical;
}

.form__field.is-invalid input,
.form__field.is-invalid textarea {
  border-color: var(--danger);
}

.form__error {
  display: block;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.form__note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.form__success {
  margin-top: 1.2rem;
  padding: 1.3rem;
  background: var(--accent-soft);
  border: 1px solid rgba(61, 107, 140, 0.25);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form__success h3 {
  margin: 0 0 0.3rem;
  color: var(--accent-deep);
}

.form__success p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer__brand .logo__text {
  color: #fff;
}

.logo--foot img {
  filter: brightness(1.6);
}

.footer__tag {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  max-width: 22rem;
  line-height: 1.55;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__head {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-bottom: 0.3rem;
}

.footer__col a,
.footer__col span {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.4rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer__bar p {
  margin: 0;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 3.5rem 0 4.5rem;
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal a {
  color: var(--accent);
}

/* ---------- Reveal ---------- */
.reveal,
.reveal-hero {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in,
.reveal-hero.is-in {
  opacity: 1;
  transform: none;
}

.reveal-hero:nth-child(2) {
  transition-delay: 0.06s;
}
.reveal-hero:nth-child(3) {
  transition-delay: 0.12s;
}
.reveal-hero:nth-child(4) {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services__grid,
  .steps,
  .strip__grid,
  .bridge__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 2rem;
  }

  .steps::before {
    display: none;
  }

  .infra__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consult__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .consult__media {
    order: -1;
  }

  .bridge__label {
    font-size: 0.68rem;
  }

  .about__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav__link {
    padding: 0.8rem 0.5rem;
    font-size: 1.05rem;
  }

  .nav__cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0;
  }
}

@media (max-width: 680px) {
  .bridge__viz {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.5rem;
  }

  .bridge__span {
    grid-column: 1 / -1;
    order: -1;
    height: 96px;
  }

  .bridge__end {
    min-width: 0;
    flex-direction: row;
    gap: 0.5rem;
  }

  .bridge__end--from {
    justify-self: start;
  }

  .bridge__end--to {
    justify-self: end;
    flex-direction: row-reverse;
  }
}

@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .infra__grid {
    grid-template-columns: 1fr;
  }

  /* compact dotted list instead of big pills */
  .tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
  }

  .tags li {
    padding: 0 0 0 1rem;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 0.92rem;
    position: relative;
  }

  .tags li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }

  .tags li:hover {
    color: var(--ink-soft);
  }
}
