/*components.css */

/* ==========================================================================
   Nav
   ========================================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}

.brand__mark {
  color: var(--paper-100);
}
/* Center column: primary links */
.nav__links-wrap {
  display: flex;
  justify-content: center;
}

.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-size: var(--step--1);
}

/* Right column: CTA + mobile toggle */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
}

.site-header .brand__name {
  color: var(--ink-900);
}
.site-header .brand__mark {
  color: var(--ink-700);
}

.nav__links a {
  color: var(--ink-700);
  font-weight: 500;
}
.nav__links a:hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: transparent;
  border: 1px solid var(--ink-700);
  color: var(--paper-100);
  background: var(--ink-700);
}

.btn--ghost-dark {
  border-color: var(--accent-purple);
  color: var(--text-on-dark);
  background-color: var(--accent-purple);
}

.btn--ghost-dark:hover {
  background: var(--ink-700);
  color: var(--text-on-dark);
}

.btn--text {
  color: var(--ink-700);
  border-bottom: 1px solid var(--accent-blue);
  border-radius: 0;
  padding: 0.25rem 0;
}

.btn--text:hover {
  border-color: var(--ink-700);
  color: var(--accent-blue);
}

.btn--primary:hover {
  background: var(--ink-900);
}

.btn--outline {
  border-color: var(--ink-700);
  color: var(--ink-700);
  background: transparent;
}
.btn--outline:hover {
  background: var(--ink-700);
  color: var(--paper-000);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 250px) !important;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--header-h) - -10px);
  padding-bottom: 2.5rem;
  color: var(--ink-900);
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #e8f0fa 100%);
  outline: 3px solid red;
}

@media (max-height: 700px) {
  .hero {
    min-height: auto;
  }
}

.hero {
  --hero-extra: 20px;
}

@media (max-width: 860px) {
  .hero {
    --hero-extra: 0px;
  } /* tablet */
}
@media (max-width: 480px) {
  .hero {
    --hero-extra: 0px;
  } /* phone */
}
@media (min-width: 1600px) {
  .hero {
    --hero-extra: 0px;
  } /* large monitors */
}

/* Angled panels (echo the triangles in the company profile).
   They start under the header so the nav stays on white. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 0;
}
.hero::before {
  width: 58%;
  background: #d6e5f6;
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.hero::after {
  width: 46%;
  background: var(--ink-900);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-700);
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.hero__title {
  position: relative;
  max-width: 20ch;
  min-height: 2.3em;
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.hero__title-placeholder {
  visibility: hidden;
  display: block;
}
.hero__typing {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
}
.hero__title-text {
  display: inline;
}
.hero__cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 5px;
  background: var(--accent-blue);
  vertical-align: -0.08em;
  animation: cursor-blink 0.8s steps(1) infinite;
}

.hero__lede {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-body);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent-blue);
}
.hero__stats strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink-900);
}
.hero__stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- CEO portrait ---- */
.hero__visual {
  position: relative;
  padding: 14px;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid #8fb8e8;
}
.hero__visual::before {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}
.hero__visual::after {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.hero__portrait {
  position: relative;
  margin: 0;
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 24px 50px rgba(11, 21, 38, 0.35);
}

.hero__caption {
  position: absolute;
  left: -1.5rem;
  right: 1.5rem;
  bottom: -1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  background: var(--paper-000);
  border-left: 4px solid var(--accent-blue);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(11, 21, 38, 0.18);
}
.hero__caption strong {
  font-family: var(--font-display);
  color: var(--ink-900);
}
.hero__caption span {
  font-size: var(--step--1);
  color: var(--ink-700);
}
.hero__caption small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Entrance + scroll-exit animations ---- */
.hero__eyebrow,
.hero__title,
.hero__lede,
.hero__actions,
.hero__stats,
.hero__visual {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-enter-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__eyebrow {
  animation-delay: 0.15s;
}
.hero__title {
  animation-delay: 0.3s;
}
.hero__lede {
  animation-delay: 1.8s;
}
.hero__actions {
  animation-delay: 2s;
}
.hero__stats {
  animation-delay: 2.2s;
}
.hero__visual {
  animation-name: hero-visual-enter;
  animation-duration: 0.9s;
  animation-delay: 0.5s;
  transform: translateX(35px);
}

@keyframes hero-enter-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-visual-enter {
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-exit-slide {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-48px);
  }
}

.hero.is-exiting .hero__eyebrow,
.hero.is-exiting .hero__title,
.hero.is-exiting .hero__lede,
.hero.is-exiting .hero__actions,
.hero.is-exiting .hero__stats,
.hero.is-exiting .hero__visual {
  animation: hero-exit-slide 0.6s cubic-bezier(0.7, 0, 0.84, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title,
  .hero__lede,
  .hero__actions,
  .hero__stats,
  .hero__visual {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero__cursor {
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet and down: stack the hero, collapse nav into a toggle */
@media (max-width: 860px) {
  .nav__links-wrap {
    display: none;
  }
  .nav__links-wrap--open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    .nav__links-wrap--open {
      background: var(--paper-000);
      border-bottom: 1px solid var(--border-on-light);
    }
    padding: 1.25rem var(--gutter);
  }
  .nav__links-wrap--open .nav__links {
    flex-direction: column;
    gap: 1rem;
  }
  .nav__toggle {
    display: block;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__title {
    max-width: none;
  }
  .hero__visual {
    max-width: 300px;
    margin-inline: auto;
    order: -1;
  }
  .hero__caption {
    left: -0.5rem;
    right: -0.5rem;
  }

  .hero::before,
  .hero::after {
    width: 100%;
    height: 420px;
    bottom: auto;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }
  .hero::before {
    height: 450px;
  }
}

/* Small phones: tighten spacing, full-width buttons */
@media (max-width: 480px) {
  .site-header__bar {
    gap: 0.75rem;
  }
  .brand__name {
    font-size: var(--step-0);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__visual {
    max-width: 100%;
    padding: 8px;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  position: relative;
  background-image: url("../assets/images/servicebg3.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--paper-100);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--services-overlay);
  z-index: 1;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services__intro {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
  text-align: center;
}

.services__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-900);
  margin: 0 auto 0.75rem;
  width: fit-content;
}

.services__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-700);
  flex-shrink: 0;
}

.services__title {
  font-size: 40px;
  color: var(--ink-700);
  font-weight: 800;
}

.services__desc {
  margin: 0.75rem auto 0;
  color: var(--ink-900);
}

/* Stage: grid + detail share the same grid cell, so the stage auto-sizes
   to whichever is taller — no JS height measurement needed. */
.services__stage {
  position: relative;
  display: grid;
}

.services__grid,
.services__detail {
  grid-column: 1;
  grid-row: 1;
}

/* ---- Card grid ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s;
}

.services__card {
  position: relative;
  background: var(--paper-000);
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-sm1);
  padding: 1.75rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.services__card:hover,
.services__card:focus-visible {
  border-color: var(--accent-purple, var(--ink-700));
  box-shadow: 0 18px 40px rgba(11, 21, 38, 0.12);
}

.services__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink-900);
  color: var(--paper-000);
  margin-bottom: 1.25rem;
}

.services__card-icon svg {
  width: 22px;
  height: 22px;
}

.services__card-title {
  font-size: var(--step-0);
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.services__card-desc {
  color: var(--text-muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.services__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-700);
}

/* ---- Services: fixed-height card view that fills the screen (desktop) ---- */
.services__card-lead {
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-700);
  margin-bottom: 0.6rem;
}
.services__card-desc {
  font-size: var(--step--1);
  line-height: 1.65;
}
.services__card--action .services__card-lead {
  color: var(--paper-000);
}

@media (min-width: 961px) {
  .services {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .services .container {
    width: 100%;
  }
  .services__intro {
    margin-bottom: 2rem;
  }
  .services__tabs {
    margin-bottom: 2rem;
  }

  /* Same card height on every tab. Tune the vh value to taste. */
  .services__grid {
    min-height: clamp(360px, 46vh, 500px);
  }
  .services__card {
    padding: 2rem;
  }
}

/* ---- Service detail page (full-screen overlay) ---- */
.service-page {
  position: fixed;
  inset: 0;
  z-index: 90; /* below the contact modal (100) so "Ask about this" can open it */
  overflow-y: auto;
  background: var(--paper-000);
  visibility: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s;
}
.service-page.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.service-page__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-on-light);
}
.service-page__back,
.service-page__close {
  background: none;
  color: var(--ink-700);
}
.service-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.service-page__back:hover,
.service-page__close:hover {
  color: var(--accent-blue);
}
.service-page__close {
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.service-page__body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem;
}

/* ---- Header: icon beside the title ---- */
.service-page__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.service-page__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--ink-900);
  color: var(--paper-000);
}
.service-page__icon svg {
  width: 26px;
  height: 26px;
}
.service-page__kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent-blue);
  margin-bottom: 0.2rem;
}
.service-page__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, var(--step-3));
  color: var(--ink-900);
}

.service-page__overview {
  max-width: 70ch;
  margin-bottom: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-body);
}
.service-page__overview:empty {
  display: none;
}

/* ---- Services | Products jump pills ---- */
.service-page__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.service-page__jump:empty {
  display: none;
}
.service-page__jump-btn {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border-on-light);
  border-radius: 999px;
  background: var(--paper-000);
  color: var(--ink-700);
  font-size: var(--step--1);
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.service-page__jump-btn:hover {
  background: #e8f0fa;
  border-color: var(--accent-blue);
}

/* ---- Rows: images + text, alternating sides ---- */
.service-page__sections {
  --section-gap: 2rem; /* space between Training & Services and Products */
  --shot-gap: 1rem; /* space between side-by-side images */
  --shot-ratio: 4 / 5; /* shape of each image when there are two */

  display: grid; /* was missing */
  gap: var(--section-gap);
}

/* Cancel the global `section { padding-block }` from layout.css */
.service-page__section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: 0;
  scroll-margin-top: 5.5rem;
}
.service-page__section.no-media {
  grid-template-columns: minmax(0, 760px);
}

.service-page__media {
  display: flex; /* images side by side */
  gap: var(--shot-gap);
  min-width: 0;
}

/* Only when there are 2+ images, use the shape set above */
.service-page__media:has(.service-page__shot:nth-child(2))
  .service-page__shot
  img {
  aspect-ratio: var(--shot-ratio);
}
.service-page__shot {
  flex: 1 1 0; /* new: equal share of the row */
  min-width: 0; /* new: lets it shrink instead of using the photo's pixel width */
  margin: 0;
  padding: 2px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  overflow: hidden;
}
.service-page__shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper-100);
  cursor: zoom-in;
}
.service-page__shot.is-contain img {
  object-fit: contain;
  background: var(--paper-000);
}

.service-page__label {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--accent-blue);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
}
.service-page__desc {
  margin-bottom: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-body);
}
.service-page__list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.service-page__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-body);
}
.service-page__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-blue);
}
.service-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 860px) {
  .service-page__section {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-page {
    transition: none;
    transform: none;
  }
}

.service-page__sections {
  margin-top: 0;
}
.service-page__jump {
  margin-bottom: 1.5rem;
}
.service-page__media {
  align-self: center;
}
.service-page__section.no-media {
  grid-template-columns: minmax(0, 760px);
}

@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services__detail-inner {
    grid-template-columns: 1fr;
  }
}

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

/* ==========================================================================
   Work
   ========================================================================== */

/* Work background image + dark tint, same mechanism as .hero */
.work {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-image: url("../assets/images/albumbg2.jpg");
}

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--work-overlay);
  z-index: 1;
}

.work .container {
  position: relative;
  z-index: 2;
}

.work__intro {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
  text-align: center;
}

.work__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--paper-100);
  margin: 0 auto 0.75rem;
  width: fit-content;
}

.work__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green-bright);
  flex-shrink: 0;
}

.work__title {
  font-size: clamp(1.75rem, 3.5vw, var(--step-3));
  color: var(--accent-green);
}

.work__desc {
  margin: 0.75rem auto 0;
  color: var(--paper-100);
}

/* Timeline: each project is a full-width row, image on one side and
   copy on the other, alternating sides via .work__row--reverse. */
.work__timeline {
  position: relative;
}

.work__timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-on-dark) 0px,
    var(--border-on-dark) 6px,
    transparent 6px,
    transparent 12px
  );
  transform: translateX(-50%);
  z-index: 0;
}

.work__timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 0%;
  background: linear-gradient(
    to bottom,
    var(--accent-blue-bright),
    var(--accent-green-bright)
  );
  box-shadow: 0 0 12px rgba(95, 168, 224, 0.55);
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 0;
  transition: height 0.15s linear;
}

.work__rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.work__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.work__row-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--accent-blue-bright);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.work__row-marker::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue-bright);
  transform: translate(-50%, -50%);
}

.work__row-marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-blue-bright);
  opacity: 0;
}

.work__row.is-inview .work__row-marker {
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 14px rgba(95, 168, 224, 0.65);
}

.work__row.is-inview .work__row-marker::after {
  animation: work-marker-ping 1.6s ease-out 0.3s;
}

@keyframes work-marker-ping {
  0% {
    opacity: 0.6;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.work__row.is-inview .work__row-marker {
  animation: work-marker-pulse 2.2s ease-in-out infinite;
}

@keyframes work-marker-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(95, 168, 224, 0.65);
  }
  50% {
    box-shadow: 0 0 22px rgba(95, 168, 224, 0.95);
  }
}

.work__row--reverse .work__row-image {
  order: 2;
}

.work__row--reverse .work__row-body {
  order: 1;
}

/* Image side: same blueprint corner-bracket motif as hero/work tiles */
.work__row-image {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--border-on-dark);
  border-radius: 8px;
  cursor: zoom-in;
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work__row-image::before {
  content: "";
  display: block;
  height: 26px;
  flex-shrink: 0;
  background: var(--ink-900);
  border-bottom: 1px solid var(--border-on-dark);
}

.work__row-image::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-on-dark);
  box-shadow:
    16px 0 0 var(--border-on-dark),
    32px 0 0 var(--border-on-dark);
}

.work__row--reverse .work__row-image {
  transform: translateX(40px);
}

.work__row.is-inview .work__row-image {
  opacity: 1;
  transform: translateX(0);
}

.work__row-image img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  padding: 10px;
  border-radius: 0;
}
.work__row-title {
  font-size: var(--step-2);
  color: var(--paper-000);
  margin-bottom: 0.75rem;
}

.work__row-desc {
  color: var(--text-dark);
  font-size: var(--step--1);
}

.work__row-features {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.work__row-features li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-dark);
  font-size: var(--step--1);
}

.work__row-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-blue-bright);
}

.work__tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work__tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue-bright);
  border: 1px solid var(--border-on-dark);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.work__visit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-on-dark);
  border: 1px solid var(--accent-blue);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.work__visit:hover {
  border-color: var(--accent-blue-bright);
  background: var(--accent-blue);
  color: var(--text-on-dark);
}

@media (prefers-reduced-motion: reduce) {
  .work__row {
    animation: none;
  }
  .work__row-marker::after {
    animation: none;
  }
  .work__row.is-inview .work__row-marker {
    animation: none;
  }
}

/* Tablet and down: stack image above copy, always in that order */
@media (max-width: 860px) {
  .work__row {
    grid-template-columns: 1fr;
  }
  .work__row--reverse .work__row-image,
  .work__row--reverse .work__row-body {
    order: 0;
  }
  .work__timeline-track,
  .work__timeline-progress,
  .work__row-marker {
    display: none;
  }
  .work__row-image {
    opacity: 1;
    transform: none;
  }
}

/* Click-to-preview lightbox for project screenshots */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.image-lightbox.is-open {
  display: block;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 26, 0.88);
}

.image-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3rem 1.5rem;
  animation: hero-rise 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.image-lightbox__content img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.image-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-on-dark);
  background: none;
  border: none;
}

.image-lightbox__close:hover {
  color: var(--accent-blue-bright);
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox__content {
    animation: none;
  }
}

/* ==========================================================================
   Contact modal
   ========================================================================== */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.contact-modal.is-open {
  display: block;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 26, 0.72);
}

.contact-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 8vh auto;
  background: var(--ink-800);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  padding: 2rem;
  color: var(--text-on-dark);
  animation: hero-rise 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-on-dark-muted);
}

.contact-modal__close:hover {
  color: var(--paper-000);
}

.contact-modal__title {
  font-size: var(--step-2);
  color: var(--paper-000);
  margin-bottom: 0.5rem;
}

.contact-modal__desc {
  color: var(--text-on-dark-muted);
  font-size: var(--step--1);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: inherit;
  font-size: var(--step--1);
  color: var(--text-on-dark);
  background: var(--ink-900);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  resize: vertical;
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: 2px solid var(--accent-blue-bright);
  outline-offset: 2px;
}

.contact-form__status {
  font-size: 0.8rem;
  min-height: 1em;
}

.contact-form__status[data-state="error"] {
  color: #e07a6b;
}

.contact-form__status[data-state="success"] {
  color: var(--accent-green-bright);
}

.contact-form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .contact-modal__dialog {
    margin: 5vh 1rem;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  position: relative;
  overflow: hidden;
  background: url("../assets/images/albumbg2.jpg") center center / cover
    no-repeat;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.905);
  z-index: 0;
}

.about > .container {
  position: relative;
  z-index: 1;
}

.about__intro {
  max-width: 1000px;
  margin-inline: auto;
  margin-bottom: 2rem;
  text-align: center;
}

.about__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-900);
  margin: 0 auto 0.75rem;
  width: fit-content;
}

.about__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green-dark);
  flex-shrink: 0;
}

.about__title {
  font-size: clamp(1.75rem, 3.5vw, var(--step-3));
  color: var(--accent-green);
}

.about__desc {
  color: var(--ink-900);
  width: 100%;
  max-width: 1200px;
  margin: 2rem 0 auto;
  text-align: center;
}

/* Logo row sits on a soft blurred glow panel rather than a flat card,
   so it reads as a distinct zone without a hard boundary. */
.about__group {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
  width: 100%;
}

.about__group::before {
  content: "";
  position: absolute;
  inset: -40px;

  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
}

.about__group-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  display: block;
  width: 100%;

  margin: 0 0 30px;

  text-align: center !important;
  max-width: none;
}

.about__slogan {
  width: 100%;
  margin: 34px auto 0;

  text-align: center !important;

  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 700px;
  border-bottom: 3px solid transparent;

  /* 2. Apply the linear gradient */
  border-image: linear-gradient(to right, #5f84ff, #7bfeb6);

  /* 3. Slice the image to make it visible */
  border-image-slice: 1;
  padding-bottom: 10px;
}

/* =========================
   ABOUT — COMPANY CARDS
   ========================= */

.about__logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about__logo-card {
  min-width: 0;
  min-height: 170px;

  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  overflow: hidden;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.about__logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Make the ENTIRE card clickable */

.about__logo-link {
  display: flex;
  align-items: center;
  gap: 22px;

  width: 100%;
  min-height: 170px;
  height: 100%;

  padding: 28px;

  color: inherit;
  text-decoration: none;
}

/* Keep all logos in a consistent area */

.about__logo-img {
  width: 72px;
  height: 72px;

  flex: 0 0 72px;

  object-fit: contain;
}

/* Text takes the remaining space */

.about__logo-text {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

/* Company name */

.about__logo-name {
  display: block;

  font-family: "Roboto", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;

  color: var(--ink-900);
}

/* Company description */

.about__logo-tag {
  display: block;

  font-family: "Roboto", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;

  color: var(--ink-600);
}

@media (max-width: 900px) {
  .about__logos {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .about__logo-card,
  .about__logo-link {
    min-height: 145px;
  }
}

@media (max-width: 520px) {
  .about__logo-link {
    padding: 22px;
    gap: 16px;
  }

  .about__logo-img {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .about__logo-name {
    font-size: 0.98rem;
  }

  .about__logo-tag {
    font-size: 0.82rem;
  }
}

/* ---- Category tabs (segmented control) ---- */
.services__tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 5px;
  background: var(--paper-000);
  border: 1px solid var(--border-on-light);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(11, 21, 38, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.services__tabs::-webkit-scrollbar {
  display: none;
}

.services__tab {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-700);
  font-size: var(--step--1);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.services__tab:hover {
  background: #e8f0fa;
}
.services__tab.is-active {
  background: var(--ink-700);
  color: var(--paper-000);
}

/* ---- Cards: navy hover instead of purple, aligned links, fade-in on tab change ---- */
.services__card {
  display: flex;
  flex-direction: column;
  animation: services-card-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.services__card:nth-child(2) {
  animation-delay: 0.06s;
}
.services__card:nth-child(3) {
  animation-delay: 0.12s;
}

.services__card:hover,
.services__card:focus-visible {
  border-color: var(--accent-blue);
}

.services__card-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

@keyframes services-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Call-to-action cards ("Need something custom?", "See what we've built") */
.services__card--action {
  background: var(--ink-900);
  border-color: var(--ink-900);
}
.services__card--action .services__card-icon {
  background: var(--accent-blue);
}
.services__card--action .services__card-title {
  color: var(--paper-000);
}
.services__card--action .services__card-desc {
  color: var(--text-on-dark-muted);
}
.services__card--action .services__card-link {
  color: var(--accent-blue-bright);
}

@media (prefers-reduced-motion: reduce) {
  .services__card {
    animation: none;
  }
}

/* Landscape images: stacked, each at its natural wide/short shape */
.service-page__media.is-stacked {
  flex-direction: column;
  width: 100%;
}

.service-page__media.is-stacked .service-page__shot {
  flex: 0 0 auto;
  width: 70%;
}

/* Doubled class so this beats the side-by-side :has() rule */
.service-page__media.is-stacked.is-stacked .service-page__shot img {
  aspect-ratio: auto; /* use the photo's real proportions */
  height: auto;
  object-fit: contain;
}

/* ---- Showcase: photo albums ---- */

/* Photo rows drop the fake browser-window bar used for screenshots */

.work__row-image.is-photo .work__main-img {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  padding: 0;
}

/* Product shots on white: don't crop */
.work__row-image.is-photo.is-contain .work__main-img {
  object-fit: contain;
  padding: 10px;
  background: var(--paper-000);
}

/* Thumbnail strip */
.work__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  overflow-x: auto;
  background: var(--ink-900);
  border-top: 1px solid var(--border-on-dark);
}

.work__thumb {
  flex: 0 0 76px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.work__row-image .work__thumb img {
  flex: none;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
}

.work__thumb:hover,
.work__thumb.is-active {
  opacity: 1;
  border-color: var(--accent-blue-bright);
}

/* ---- About: intro paragraphs + key factors ---- */
.about__intro {
  max-width: 900px; /* slightly wider than before, still readable */
}

.about__desc {
  margin: 1.25rem auto 0;
  max-width: 85ch;
  text-align: center;
}

.about__facts-head {
  max-width: 1200px;
  margin: 2.5rem auto 1.25rem;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: 100%;
  max-width: 1200px; /* same width as the Our Network cards */
  margin: 0 auto 1.5rem;
}

.about__fact {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.about__fact-num {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-000);
  background: var(--ink-900);
  border-radius: 3px;
}

.about__fact h3 {
  margin-bottom: 0.5rem;
  font-size: var(--step-1);
  color: var(--ink-900);
}

.about__fact p {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text-muted);
}

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

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

/* ==========================================================================
   Palette: white + navy
   Services = navy, Showcase = light, About = white, Footer = navy
   ========================================================================== */

/* ---- Services (navy) ---- */
.services__eyebrow {
  color: var(--text-on-dark-muted);
}
.services__eyebrow-dot {
  background: var(--accent-blue-bright);
}
.services__title {
  color: var(--paper-000);
}
.services__desc {
  color: var(--text-on-dark-muted);
}
.services__tab.is-active {
  background: var(--accent-blue);
}
/* Action cards were navy, which would vanish on a navy section */
.services__card--action {
  background: var(--ink-700);
  border-color: var(--accent-blue);
}

/* ---- Showcase (light) ---- */
.work__eyebrow {
  color: var(--ink-700);
}
.work__eyebrow-dot {
  background: var(--accent-blue);
}
.work__title {
  color: var(--ink-900);
}
.work__desc {
  color: var(--text-body);
}

.work__timeline-track {
  background: repeating-linear-gradient(
    to bottom,
    var(--border-on-light) 0px,
    var(--border-on-light) 6px,
    transparent 6px,
    transparent 12px
  );
}
.work__timeline-progress {
  background: linear-gradient(
    to bottom,
    var(--accent-blue-bright),
    var(--ink-700)
  );
}

.work__row-title {
  color: var(--ink-900);
}
.work__row-desc,
.work__row-features li {
  color: var(--text-dark);
}
.work__row-features li::before {
  background: var(--accent-blue);
}
.work__tags li {
  color: var(--accent-blue-dark);
  border-color: var(--border-on-light);
  background: var(--paper-000);
}
.work__visit {
  color: var(--ink-700);
}
.work__visit:hover {
  color: var(--paper-000);
}

/* Navy photo frames stay, with a soft shadow so they sit on the light bg */
.work__row-image {
  border-color: var(--border-on-light);
  box-shadow: 0 14px 34px rgba(11, 21, 38, 0.14);
}

/* ---- About (white, no green) ---- */
.about::before {
  background: rgba(255, 255, 255, 0.95);
}
.about__eyebrow-dot {
  background: var(--accent-blue);
}
.about__title {
  color: var(--ink-900);
}
.about__slogan {
  border-image: linear-gradient(to right, var(--accent-blue), var(--ink-700)) 1;
}

/* ---- Footer button (was purple) ---- */
.btn--ghost-dark {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}
.btn--ghost-dark:hover {
  background: var(--paper-000);
  border-color: var(--paper-000);
  color: var(--ink-900);
}

/* ---- Album frames: light version ---- */
.work__row-image {
  background: var(--work-frame-bg);
  border-color: var(--border-on-light);
}

/* Browser-window bar (Software & Web row) and its dots */
.work__row-image::before {
  background: var(--paper-100);
  border-bottom-color: var(--border-on-light);
}
.work__row-image::after {
  background: rgba(11, 21, 38, 0.25);
  box-shadow:
    16px 0 0 rgba(11, 21, 38, 0.25),
    32px 0 0 rgba(11, 21, 38, 0.25);
}

/* Thumbnail strip */
.work__thumbs {
  background: var(--work-frame-bg);
  border-top-color: var(--border-on-light);
}
.work__thumb:hover,
.work__thumb.is-active {
  border-color: var(--accent-blue);
}

/* ==========================================================================
   Navy cards: Services cards + tabs, About section
   ========================================================================== */

/* ---- Services tabs ---- */
.services__tabs {
  background: var(--card-navy);
  border-color: var(--border-on-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.services__tab {
  color: var(--text-on-dark-muted);
}
.services__tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}
.services__tab.is-active {
  background: var(--accent-blue);
  color: var(--text-on-dark);
}

/* ---- Services cards ---- */
.services__card {
  background: var(--ink-500);
  border-color: var(--border-on-dark);
}
.services__card:hover,
.services__card:focus-visible {
  border-color: var(--accent-blue-bright);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.services__card-icon {
  background: var(--accent-blue);
}
.services__card-title {
  color: var(--text-on-dark);
}
.services__card-lead {
  color: var(--accent-blue-bright);
}
.services__card-desc {
  color: var(--text-on-dark-muted);
}
.services__card-link {
  color: var(--accent-blue-bright);
}

/* Action cards ("Need something custom?", "See what we've built")
   switch to blue so they still stand out from the navy cards */
.services__card--action {
  background: var(--accent-blue-dark);
  border-color: var(--accent-blue);
}
.services__card--action .services__card-lead,
.services__card--action .services__card-link {
  color: var(--text-on-dark);
}
.services__card--action .services__card-icon {
  background: rgba(255, 255, 255, 0.18);
}

/* ---- About (navy) ---- */
.about {
  background-color: var(--ink-900);
}
.about::before {
  background: var(--ink-1000);
}
.about__eyebrow {
  color: var(--text-on-dark-muted);
}
.about__eyebrow-dot {
  background: var(--accent-blue-bright);
}
.about__title {
  color: var(--text-on-dark);
}
.about__desc {
  color: var(--text-on-dark);
}
.about__group-label {
  color: var(--text-on-dark-muted);
}
.about__slogan {
  color: var(--text-on-dark);
}

/* Key factor cards */
.about__fact {
  background: var(--ink-500);
  border-top-color: var(--accent-blue-bright);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.about__fact-num {
  background: var(--accent-blue);
}
.about__fact h3 {
  color: var(--text-on-dark);
}
.about__fact p {
  color: var(--text-on-dark-muted);
}

/* Our Network cards */
.about__logo-card {
  background: var(--card-navy);
  border: 1px solid var(--border-on-dark);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.about__logo-name {
  color: var(--text-on-dark);
}
.about__logo-tag {
  color: var(--text-on-dark-muted);
}

/* About and footer are both navy, so add a divider between them */
.site-footer {
  border-top: 1px solid var(--border-on-dark);
}

.about__logo-img {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}

/* ==========================================================================
   Hero: no angled panels, no frame, background image slot
   ========================================================================== */

/* Background image. If the file is missing, the old gradient shows instead.
   Change the filename to your image. */
.hero {
  background:
    url("../assets/images/herobg6.jpg") center / cover no-repeat,
    linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #e8f0fa 100%);
  outline: none; /* removes the red debug outline */
}

/* The old angled panel becomes a full-cover overlay, controlled by --hero-overlay */
.hero::before {
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: none;
  background: var(--hero-overlay);
}

/* Remove the navy panel */
.hero::after {
  display: none;
}

/* Remove the corner-bracket frame around the portrait */
.hero__visual::before,
.hero__visual::after {
  display: none;
}

/* ---- Hero / Services split edge ---- */
.services {
  --split: 56px; /* how deep the step is */
  --split-at: 55%; /* where the step starts, from the left */

  margin-top: calc(
    var(--split) * -1
  ); /* pull up so the hero shows in the notch */
  padding-top: calc(3rem + var(--split));
  clip-path: polygon(
    0 0,
    var(--split-at) 0,
    calc(var(--split-at) + var(--split)) var(--split),
    100% var(--split),
    100% 100%,
    0 100%
  );
}

/* Keep hero content clear of the overlapping corner */
.hero {
  padding-bottom: calc(1rem + 41px);
}

@media (max-width: 860px) {
  .services {
    --split: 32px;
    --split-at: 40%;
  }
  .hero {
    padding-bottom: calc(2.5rem + 32px);
  }
}

/* ==========================================================================
   Showcase polish: photo frames, project cards, numbering
   ========================================================================== */

/* ---- Photo frame ---- */
.work__row-image {
  border-radius: 14px;
  border: 1px solid var(--border-on-light);
  /* soft offset block behind the photo + the existing depth shadow */
  box-shadow:
    14px 14px 0 rgba(44, 123, 192, 0.12),
    0 24px 50px rgba(11, 21, 38, 0.14);
}
.work__row--reverse .work__row-image {
  box-shadow:
    -14px 14px 0 rgba(44, 123, 192, 0.12),
    0 24px 50px rgba(11, 21, 38, 0.14);
}

/* Photos don't need the fake browser bar (Software & Web keeps it) */
.work__row-image.is-photo::before,
.work__row-image.is-photo::after {
  display: none;
}

/* Gentle zoom on hover; the frame clips it */
.work__row-image.is-photo .work__main-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.work__row-image.is-photo:hover .work__main-img {
  transform: scale(1.035);
}

/* ---- Thumbnail strip ---- */
.work__thumbs {
  gap: 0.6rem;
  padding: 0.75rem;
  background: #f4f8fd;
  scrollbar-width: thin;
}
.work__thumb {
  flex: 0 0 84px;
  height: 58px;
  border-radius: 6px;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.work__thumb:hover {
  transform: translateY(-2px);
}
.work__thumb.is-active {
  opacity: 1;
  border-color: var(--accent-blue);
  box-shadow: 0 6px 14px rgba(44, 123, 192, 0.3);
}

/* ---- Text side as a card, with project numbers ---- */
.work__rows {
  counter-reset: project;
}
.work__row {
  counter-increment: project;
}

.work__row-body {
  position: relative;
  padding: 2rem 2.25rem;
  background: transparent;
  backdrop-filter: blur(8px);

  border-radius: 14px;
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.6s ease 0.15s,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.work__row--reverse .work__row-body {
  transform: translateX(-40px);
}
.work__row.is-inview .work__row-body {
  opacity: 1;
  transform: none;
}

.work__row-body::before {
  content: "No. " counter(project, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.work__row-title {
  font-size: clamp(1.4rem, 2.4vw, var(--step-2));
}

/* ---- Check-style bullets ---- */
.work__row-features li {
  padding-left: 1.9rem;
}
.work__row-features li::before {
  content: "✓";
  top: 0.15em;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(44, 123, 192, 0.12);
  color: var(--accent-blue);
  font-size: 0.65rem;
  font-weight: 700;
}

/* ---- Tags ---- */
.work__tags li {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.work__tags li:hover {
  background: var(--accent-blue);
  color: var(--paper-000);
}

/* ---- Mobile: no slide-in, lighter card ---- */
@media (max-width: 860px) {
  .work__row-image,
  .work__row--reverse .work__row-image {
    box-shadow: 0 14px 34px rgba(11, 21, 38, 0.14);
  }
  .work__row-body,
  .work__row--reverse .work__row-body {
    opacity: 1;
    transform: none;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-blue);
    border-right: 1px solid var(--border-on-light);
  }
}

/* ==========================================================================
   Showcase background: minimal geometric (CSS only, no image)
   ========================================================================== */

.work {
  /* Drops albumbg1.jpg. Soft light base with a faint diagonal band. */
  background:
    linear-gradient(
      115deg,
      transparent 0 58%,
      rgba(44, 123, 192, 0.045) 58% 74%,
      transparent 74%
    ),
    linear-gradient(180deg, #f7fafd 0%, #eef4fb 50%, #f7fafd 100%);
}

/* Layer 1: blueprint dot grid, fading out toward the top and bottom edges */
.work::before {
  z-index: 0;
  background-image: radial-gradient(
    circle,
    rgba(44, 123, 192, 0.22) 1.2px,
    transparent 1.6px
  );
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
}

/* Layer 2: concentric rings in opposite corners */
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    /* top-right rings */
    radial-gradient(
      circle at 100% 4%,
      transparent 0 140px,
      rgba(44, 123, 192, 0.2) 140px 141.5px,
      transparent 141.5px 200px,
      rgba(44, 123, 192, 0.14) 200px 201.5px,
      transparent 201.5px 260px,
      rgba(44, 123, 192, 0.09) 260px 261.5px,
      transparent 261.5px
    ),
    /* bottom-left rings */
    radial-gradient(
        circle at 0% 96%,
        transparent 0 100px,
        rgba(44, 123, 192, 0.18) 100px 101.5px,
        transparent 101.5px 160px,
        rgba(44, 123, 192, 0.12) 160px 161.5px,
        transparent 161.5px 220px,
        rgba(44, 123, 192, 0.07) 220px 221.5px,
        transparent 221.5px
      );
  background-repeat: no-repeat;
}

/* Keep the content above both layers */
.work .container {
  z-index: 2;
}

@media (max-width: 860px) {
  .work::before {
    background-size: 22px 22px;
  }
  /* Rings are a little too busy on small screens, so soften them */
  .work::after {
    opacity: 0.55;
  }
}

/* ==========================================================================
   Showcase: lighter, smaller photo frames
   ========================================================================== */

.work__row-image {
  width: 88%; /* size the frame, not the image */
}

/* Keep the frame anchored toward the timeline so rows stay balanced */
.work__row .work__row-image {
  justify-self: end;
}
.work__row--reverse .work__row-image {
  justify-self: start;
}

/* Wider, shorter photo (was 16 / 10). The image always fills the frame. */
.work__row-image.is-photo .work__main-img {
  aspect-ratio: 16 / 9;
}

/* Slimmer thumbnail strip */
.work__thumbs {
  padding: 0.5rem 0.6rem;
  gap: 0.5rem;
}
.work__thumb {
  flex: 0 0 64px;
  height: 44px;
  border-radius: 5px;
}

/* Lighter floating effect */
.work__row-image {
  border-radius: 12px;
  box-shadow:
    10px 10px 0 rgba(44, 123, 192, 0.1),
    0 16px 36px rgba(11, 21, 38, 0.12);
}
.work__row--reverse .work__row-image {
  box-shadow:
    -10px 10px 0 rgba(44, 123, 192, 0.1),
    0 16px 36px rgba(11, 21, 38, 0.12);
}

/* Mobile: full width, no offset block */
@media (max-width: 860px) {
  .work__row-image,
  .work__row .work__row-image,
  .work__row--reverse .work__row-image {
    width: 100%;
    justify-self: stretch;
    box-shadow: 0 14px 34px rgba(11, 21, 38, 0.14);
  }
}

/* ==========================================================================
   Split edge: shared by every section after the hero
   ========================================================================== */

.services,
.work,
.about,
.site-footer {
  --split: 56px; /* how deep the step is */
  --split-at: 55%; /* where the step starts, from the left */

  margin-top: calc(var(--split) * -1); /* overlap the previous section */
  clip-path: polygon(
    0 0,
    var(--split-at) 0,
    calc(var(--split-at) + var(--split)) var(--split),
    100% var(--split),
    100% 100%,
    0 100%
  );
}

/* Push each section's own content below the notch */
.work,
.about {
  padding-top: calc(3rem + var(--split));
}
.site-footer {
  padding-top: var(--split);
}

/* Keep the bottom of each section clear of the next one's overlap */
.services,
.work,
.about {
  padding-bottom: calc(clamp(3rem, 8vw, 6rem) + var(--split));
}

/* The old divider line would be clipped by the notch, so remove it */
.site-footer {
  border-top: none;
}

@media (max-width: 860px) {
  .services,
  .work,
  .about,
  .site-footer {
    --split: 32px;
    --split-at: 40%;
  }
}

/* ==========================================================================
   Footer: contact + social list
   ========================================================================== */

.footer__contact {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.footer__social {
  display: grid;
  gap: 0.6rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
}

.footer__social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-blue-bright);
  transition: transform 0.2s ease;
}

.footer__social a:hover {
  color: var(--paper-000);
}
.footer__social a:hover svg {
  transform: translateY(-2px);
}

/* On phones the footer stacks left-aligned, so align this to match */
@media (max-width: 600px) {
  .footer__contact {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__social a {
    justify-content: flex-start;
  }
}
/* ==========================================================================
   Hero background: stepped geometric band (CSS only, no image)
   Climbs to the right: mirror of the Services notch, same x-range and angle.
   ========================================================================== */

.hero {
  /* ---- TUNE THIS ONE: vertical position of the band (left side) ---- */
  --band-y: 42%;
  --band-t: 20px;
  --trace-gap: 8px;
  --band-rise: 56px; /* = --split on .services (45° angle) */
  --band-x1: 55%; /* = --split-at on .services */
  --band-x2: calc(var(--band-x1) + var(--band-rise));
  --band-yr: calc(
    var(--band-y) - var(--band-rise)
  ); /* right side sits higher */

  background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #eaf1fa 100%);
}

/* Thick band: flat, steps UP to the right, flat */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: rgba(44, 123, 192, 0.1);
  clip-path: polygon(
    0 var(--band-y),
    var(--band-x1) var(--band-y),
    var(--band-x2) var(--band-yr),
    100% var(--band-yr),
    100% calc(var(--band-yr) + var(--band-t)),
    var(--band-x2) calc(var(--band-yr) + var(--band-t)),
    var(--band-x1) calc(var(--band-y) + var(--band-t)),
    0 calc(var(--band-y) + var(--band-t))
  );
}

/* Thin trace running parallel, just below the band */
.hero::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: rgba(44, 123, 192, 0.32);
  clip-path: polygon(
    0 calc(var(--band-y) + var(--band-t) + var(--trace-gap)),
    var(--band-x1) calc(var(--band-y) + var(--band-t) + var(--trace-gap)),
    var(--band-x2) calc(var(--band-yr) + var(--band-t) + var(--trace-gap)),
    100% calc(var(--band-yr) + var(--band-t) + var(--trace-gap)),
    100% calc(var(--band-yr) + var(--band-t) + var(--trace-gap) + 2px),
    var(--band-x2) calc(var(--band-yr) + var(--band-t) + var(--trace-gap) + 2px),
    var(--band-x1) calc(var(--band-y) + var(--band-t) + var(--trace-gap) + 2px),
    0 calc(var(--band-y) + var(--band-t) + var(--trace-gap) + 2px)
  );
}

/* Tablet and phone: matches the smaller Services notch (32px, 40%) */
@media (max-width: 860px) {
  .hero {
    --band-t: 14px;
    --band-rise: 32px;
    --band-x1: 40%;
  }
}

/* ==========================================================================
   Hero: lift eyebrow + title independently (rest of the content stays put)
   ========================================================================== */

.hero {
  --lift: 30px; /* TUNE THIS: how far the eyebrow + title move up */
}

.hero__eyebrow,
.hero__title {
  position: relative;
  top: calc(var(--lift) * -1);
}

/* Stacked mobile layout: no band collision there, so keep them in place */
@media (max-width: 860px) {
  .hero {
    --lift: 0px;
  }
}

/* ==========================================================================
   Mobile hero: same two-column layout as desktop, scaled down
   (everything is inside the media query, desktop is untouched)
   ========================================================================== */

@media (max-width: 860px) {
  /* ---- Header: compact so the brand stays on one line ---- */
  .site-header__bar {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }
  .brand {
    gap: 0.45rem;
  }
  .brand__logo {
    width: 28px;
    height: 28px;
  }
  .brand__name {
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .header__actions {
    gap: 0.5rem;
  }
  .header__actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
  }

  /* ---- Hero shell ---- */
  .hero {
    --lift: 12px; /* eyebrow + title lift (tune) */
    min-height: auto !important; /* hug the content on phones */
    padding-top: calc(var(--header-h) + 6px);
    padding-bottom: calc(1rem + 32px);
  }

  /* Two columns again: text left, portrait right */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
    gap: 0.75rem;
    align-items: center;
  }

  /* ---- Text column ---- */
  .hero__eyebrow {
    font-size: 0.62rem;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
  }
  .hero__title {
    max-width: none;
    font-size: clamp(1.25rem, 5.6vw, 2rem);
  }
  .hero__lede {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .hero__actions {
    flex-direction: row; /* undo the stacked buttons from the 480px rule */
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .hero__actions .btn {
    width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
  }

  .hero__stats {
    gap: 0.75rem 1rem;
    margin-top: 1rem;
  }
  .hero__stats li {
    padding-left: 0.5rem;
  }
  .hero__stats strong {
    font-size: 0.85rem;
  }
  .hero__stats span {
    font-size: 0.6rem;
  }

  /* ---- Portrait column ---- */
  .hero__visual {
    max-width: none;
    margin-inline: 0;
    order: 0; /* undo "portrait on top" */
    padding: 6px;
  }
  .hero__portrait img {
    border-radius: 4px;
    box-shadow: 0 12px 26px rgba(11, 21, 38, 0.3);
  }
  .hero__caption {
    left: -1.25rem;
    right: 0.4rem;
    bottom: -0.9rem;
    padding: 0.4rem 0.5rem;
    border-left-width: 3px;
  }
  .hero__caption strong {
    font-size: 0.6rem;
    line-height: 1.2;
  }
  .hero__caption span {
    font-size: 0.5rem;
    line-height: 1.25;
  }
  .hero__caption small {
    display: none; /* too small to read; remove this line to show it */
  }
}

/* ==========================================================================
   Mobile hero v2: portrait up top-right, buttons + stats on rows below
   ========================================================================== */

@media (max-width: 860px) {
  /* Children of .hero__content become direct grid items */
  .hero__content {
    display: contents;
  }

  .hero {
    --band-y: 39%; /* TUNE: lower number = band sits higher */
    --band-t: 10px; /* thinner band on phones */
    --trace-gap: 6px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
    grid-template-rows: auto;
    column-gap: 0.75rem;
    row-gap: 0;
    align-items: start;
  }

  /* ---- Left column, top rows ---- */
  .hero__eyebrow {
    grid-column: 1;
    grid-row: 1;
  }
  .hero__title {
    grid-column: 1;
    grid-row: 2;
  }
  .hero__lede {
    grid-column: 1;
    grid-row: 3;
  }

  /* ---- Portrait: top right, beside the text ---- */
  .hero__visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 0;
  }
  .hero__caption {
    left: -0.4rem;
    right: -0.4rem;
    bottom: -0.9rem;
  }

  /* ---- Buttons: full-width row below the image ---- */
  .hero__actions {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 1.5rem;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }
  .hero__actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.62rem;
    border-radius: 2px;
  }

  /* ---- Stats: three compact badges in one row ---- */
  .hero__stats {
    grid-column: 1 / -1;
    grid-row: 5;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.9rem;
  }
  .hero__stats li {
    min-width: 0;
    padding-left: 0.4rem;
    border-left-width: 2px;
  }
  .hero__stats strong {
    font-size: 0.75rem;
  }
  .hero__stats span {
    font-size: 0.52rem;
    line-height: 1.3;
  }
}

/* ==========================================================================
   Mobile hero v3: CTA buttons under the portrait, short labels
   ========================================================================== */

@media (max-width: 860px) {
  /* Short labels: hide the long part of each button text */
  .hero__more {
    display: none;
  }

  /* Paragraph spans two rows so it doesn't stretch the portrait's row */
  .hero__lede {
    grid-row: 3 / span 2;
  }

  /* Buttons: right column, directly under the portrait + caption */
  .hero__actions {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
    margin-top: 1.3rem; /* TUNE: space below the caption card */
    gap: 0.3rem;
    flex-wrap: nowrap;
  }
  .hero__actions .btn {
    flex: 1 1 0; /* equal widths that fill the column */
    min-width: 0;
    padding: 0.4rem 0.2rem;
    font-size: 0.6rem;
  }
}

/* ==========================================================================
   Mobile services: smaller type, 3 tabs in view, 3 cards in one row
   ========================================================================== */

@media (max-width: 860px) {
  /* ---- Section spacing + intro text ---- */
  .services {
    padding-top: calc(1.5rem + var(--split));
    padding-bottom: calc(2rem + var(--split));
  }
  .services__intro {
    margin-bottom: 1rem;
  }
  .services__eyebrow {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
  }
  .services__title {
    font-size: 1.4rem;
  }
  .services__desc {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* ---- Tabs: 3 visible, the rest scroll in (4th peeks as a hint) ---- */
  .services__tabs {
    width: 100%;
    margin-bottom: 1rem;
    padding: 3px;
    gap: 3px;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
  }
  .services__tab {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.3rem;
    font-size: 0.58rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    scroll-snap-align: center;
  }

  /* ---- Cards: all 3 in one row ---- */
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .services__card {
    padding: 0.6rem;
    border-radius: 10px;
  }
  .services__card-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    margin-bottom: 0.5rem;
  }
  .services__card-icon svg {
    width: 14px;
    height: 14px;
  }
  .services__card-title {
    margin-bottom: 0.3rem;
    font-size: 0.64rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .services__card-lead {
    margin-bottom: 0.3rem;
    font-size: 0.54rem;
    line-height: 1.35;
  }
  .services__card-desc {
    font-size: 0.5rem;
    line-height: 1.4;
  }
  .services__card-link {
    padding-top: 0.5rem;
    font-size: 0.52rem;
    gap: 0.2rem;
  }

  /* ---- Long text gets cut with "..." ---- */
  .services__card-lead,
  .services__card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
  }
  .services__card-lead {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .services__card-desc {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

/* ==========================================================================
   Mobile work: same alternating timeline as desktop, scaled down
   ========================================================================== */

@media (max-width: 860px) {
  /* ---- Section spacing + intro ---- */
  .work {
    padding-top: calc(1.5rem + var(--split));
    padding-bottom: calc(2rem + var(--split));
  }
  .work__intro {
    margin-bottom: 1.25rem;
  }
  .work__eyebrow {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
  }
  .work__title {
    font-size: 1.4rem;
  }
  .work__desc {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* ---- Two columns again, with the center timeline back ---- */
  .work__rows {
    gap: 2rem;
  }
  .work__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.4rem; /* TUNE: space around the center line */
  }
  .work__row--reverse .work__row-image {
    order: 2;
  }
  .work__row--reverse .work__row-body {
    order: 1;
  }

  .work__timeline-track,
  .work__timeline-progress,
  .work__row-marker {
    display: block;
  }
  .work__row-marker {
    width: 14px;
    height: 14px;
  }
  .work__row-marker::before {
    width: 6px;
    height: 6px;
  }
  .work__row-marker::after {
    inset: -4px;
  }

  /* ---- Photo frame ---- */
  .work__row .work__row-image,
  .work__row--reverse .work__row-image {
    width: 100%;
    justify-self: stretch;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-16px);
    box-shadow:
      5px 5px 0 rgba(44, 123, 192, 0.1),
      0 8px 18px rgba(11, 21, 38, 0.12);
  }
  .work__row--reverse .work__row-image {
    transform: translateX(16px);
    box-shadow:
      -5px 5px 0 rgba(44, 123, 192, 0.1),
      0 8px 18px rgba(11, 21, 38, 0.12);
  }

  /* Browser bar (Software & Web row) shrinks too */
  .work__row-image::before {
    height: 14px;
  }
  .work__row-image::after {
    top: 4px;
    left: 7px;
    width: 5px;
    height: 5px;
    box-shadow:
      9px 0 0 rgba(11, 21, 38, 0.25),
      18px 0 0 rgba(11, 21, 38, 0.25);
  }

  /* Thumbnails: all of them share one row */
  .work__thumbs {
    gap: 0.25rem;
    padding: 0.3rem;
  }
  .work__thumb {
    flex: 1 1 0;
    min-width: 0;
    height: 26px;
    border-width: 1.5px;
    border-radius: 3px;
  }

  /* ---- Text side ---- */
  .work__row-body,
  .work__row--reverse .work__row-body {
    padding: 0.2rem 0;
    border: 0;
    opacity: 0;
    transform: translateX(16px);
  }
  .work__row--reverse .work__row-body {
    transform: translateX(-16px);
  }

  .work__row-body::before {
    margin-bottom: 0.35rem;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }
  .work__row-title {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .work__row-desc {
    font-size: 0.56rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }

  .work__row-features {
    gap: 0.3rem;
    margin-top: 0.55rem;
  }
  .work__row-features li {
    padding-left: 1.05rem;
    font-size: 0.52rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .work__row-features li::before {
    top: 0.05em;
    width: 11px;
    height: 11px;
    font-size: 0.4rem;
  }

  .work__tags-row {
    gap: 0.4rem;
    margin-top: 0.6rem;
  }
  .work__tags {
    gap: 0.25rem;
  }
  .work__tags li {
    padding: 0.12rem 0.4rem;
    font-size: 0.46rem;
  }
  .work__visit {
    padding: 0.12rem 0.5rem;
    font-size: 0.46rem;
  }
}

/* ==========================================================================
   Mobile about: same layout as desktop, scaled down
   ========================================================================== */

@media (max-width: 860px) {
  /* ---- Section spacing ---- */
  .about {
    padding-top: calc(1.5rem + var(--split));
    padding-bottom: calc(2rem + var(--split));
  }

  /* ---- Intro ---- */
  .about__intro {
    margin-bottom: 1rem;
  }
  .about__eyebrow {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
  }
  .about__title {
    font-size: 1.4rem;
  }
  .about__desc {
    margin: 0.6rem auto 0;
    font-size: 0.68rem;
    line-height: 1.55;
  }

  /* ---- Section labels ("What defines us", "Our Network") ---- */
  .about__facts-head {
    margin: 1.25rem auto 0.75rem;
  }
  .about__group-label {
    margin: 0 0 0.75rem;
    font-size: 0.62rem;
  }
  .about__facts-head .about__group-label {
    margin: 0;
  }

  /* ---- Key factors: 3 columns, 2 rows ---- */
  .about__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }
  .about__fact {
    padding: 0.6rem;
    border-radius: 8px;
    border-top-width: 2px;
  }
  .about__fact-num {
    margin-bottom: 0.4rem;
    padding: 0.12rem 0.35rem;
    font-size: 0.5rem;
    border-radius: 2px;
  }
  .about__fact h3 {
    margin-bottom: 0.25rem;
    font-size: 0.64rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .about__fact p {
    font-size: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
  }

  /* ---- Our Network: 3 cards in one row ---- */
  .about__group {
    padding: 1rem 0 0;
  }
  .about__logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    gap: 0.4rem;
  }
  .about__logo-card,
  .about__logo-link {
    min-height: 0;
  }
  .about__logo-card {
    border-radius: 8px;
  }
  .about__logo-link {
    flex-direction: column; /* logo on top, text below */
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem;
  }
  .about__logo-img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 3px;
    border-radius: 6px;
  }
  .about__logo-text {
    gap: 0.25rem;
  }
  .about__logo-name {
    font-size: 0.62rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .about__logo-tag {
    font-size: 0.48rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
  }

  /* ---- Slogan ---- */
  .about__slogan {
    margin-top: 1.25rem;
    padding-bottom: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

/* ==========================================================================
   Scroll reveal: Services + About entrance animations
   ========================================================================== */

.reveal {
  --rise: 28px;
  opacity: 0;
}

/* Animation only (no forwards fill), so hover transforms still work afterward */
.reveal.is-visible {
  opacity: 1;
  animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: var(--d, 0ms);
}

/* Optional variant for cards: slight zoom instead of a plain rise */
.reveal--zoom.is-visible {
  animation-name: reveal-zoom;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(var(--rise));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes reveal-zoom {
  from {
    opacity: 0;
    transform: translateY(var(--rise)) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Service cards wait for the grid to scroll into view before they play */
.services__stage:not(.is-visible) .services__card {
  animation-play-state: paused;
}

/* Shorter travel on phones */
@media (max-width: 860px) {
  .reveal {
    --rise: 16px;
  }
}

/* Restore the space before the long half of the CTA labels (flex items drop leading spaces) */
.hero__more {
  margin-left: 0.3em;
}
