/* ==========================================================================
   Biotech Environ — Page sections (homepage, in document order)
   ========================================================================== */

/* =========================================================
   01 · HERO (light)
   Soft aqua background, navy copy on the left and the plant footage in a
   round "clarifier" frame on the right, ringed by the animated flow lines.
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(55% 65% at 80% 45%, rgba(99, 194, 203, 0.3), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(101, 168, 120, 0.16), transparent 70%),
    linear-gradient(180deg, #f7fbfc 0%, #ebf5f7 60%, #e2f0ee 100%);
  color: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
/* Faint dot grid, fading out behind the copy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(16, 43, 58, 0.11) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 60%);
  mask-image: linear-gradient(100deg, transparent 15%, #000 60%);
}

.hero__inner {
  position: relative;
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(2.5rem, 8vw, 3.5rem);
  padding-top: calc(var(--header-h) + clamp(1.25rem, 4.5vh, 4rem));
  padding-bottom: clamp(5.25rem, 11vh, 9rem);
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
  }
}
.hero__content {
  max-width: 760px;
  transform: translate3d(0, var(--hero-content-shift, 0px), 0);
  opacity: var(--hero-content-opacity, 1);
}
.hero .overline {
  color: var(--teal-700);
}
.hero__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 7.4vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--navy);
}
@media (min-width: 900px) {
  .hero__title {
    font-size: min(clamp(3.2rem, 1rem + 5.3vw, 7.2rem), 12vh);
  }
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero__title .line > span {
  display: inline-block;
}
.hero__title .accent {
  color: var(--teal);
  background: linear-gradient(90deg, var(--teal) 10%, var(--green) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  margin-top: min(1.75rem, 3vh);
  max-width: 56ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: #3d5662;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: min(2.25rem, 4vh);
}
.hero .btn--ghost {
  --btn-fg: var(--navy);
  --btn-bd: rgba(16, 43, 58, 0.28);
  --btn-hover-bg: var(--navy);
  --btn-hover-fg: var(--white);
  --btn-hover-bd: var(--navy);
}

/* Visual: round footage frame + flow rings */
.hero__visual {
  position: relative;
  width: min(84vw, 420px);
  aspect-ratio: 1;
  justify-self: center;
}
@media (min-width: 900px) {
  .hero__visual {
    width: min(100%, 70vh, 640px);
    justify-self: end;
  }
}
.hero__media {
  position: absolute;
  inset: 16%;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.85),
    0 0 0 9px rgba(8, 127, 140, 0.2),
    0 40px 80px -28px rgba(7, 24, 32, 0.5);
  /* Safari: keep the rounded clip while children are transformed */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.hero__parallax {
  position: absolute;
  inset: -14%;
  transform: translate3d(0, calc(var(--hero-shift, 0px) * 0.35), 0);
}
.hero__media img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.06);
  will-change: transform;
}
.js .hero__media img,
.js .hero__video {
  animation: hero-zoom 22s var(--ease-out) forwards;
}
/* Video sits over the still frame and fades in once it is actually playing */
.hero__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.hero__video.is-playing {
  opacity: 1;
}
@keyframes hero-zoom {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1.04);
  }
}

/* Animated water-flow rings around the frame */
.hero__flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero__flow .ring {
  fill: none;
  stroke: rgba(8, 127, 140, 0.32);
  stroke-width: 1.2;
  transform-origin: 500px 500px;
  transform-box: view-box;
}
.hero__flow .ring--dash {
  stroke-dasharray: 2 10;
  stroke: rgba(8, 127, 140, 0.5);
}
.hero__flow .ring--long {
  stroke-dasharray: 160 40 20 40;
  stroke: rgba(101, 168, 120, 0.8);
  stroke-width: 2;
}
.hero__flow .ring--arm {
  stroke: rgba(16, 43, 58, 0.2);
}
.hero__flow .spin-slow {
  animation: spin 90s linear infinite;
}
.hero__flow .spin-med {
  animation: spin 48s linear infinite reverse;
}
.hero__flow .spin-fast {
  animation: spin 30s linear infinite;
}
.hero__flow .flowline {
  fill: none;
  stroke: url(#flowGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
  animation: flow 6s linear infinite;
}
.hero__flow .flowline:nth-of-type(2) {
  animation-duration: 8s;
}
.hero__flow .flowline:nth-of-type(3) {
  animation-duration: 10s;
}
.hero__flow .node {
  fill: var(--teal);
}
.hero__flow .node-pulse {
  fill: none;
  stroke: var(--teal);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3.2s var(--ease-out) infinite;
}
.hero__flow .tick {
  stroke: rgba(16, 43, 58, 0.3);
  stroke-width: 1;
}
.hero__flow text {
  fill: rgba(16, 43, 58, 0.55);
  font: 700 15px/1 var(--font-sans);
  letter-spacing: 0.2em;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -200;
  }
}
@keyframes pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}
.hero.is-paused .hero__flow *,
.hero.is-paused .hero__train-dot,
.hero.is-paused .hero__chip {
  animation-play-state: paused;
}
@media (max-width: 599px) {
  .hero__flow text {
    display: none;
  }
}

/* Floating labels on the frame */
.hero__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px -16px rgba(7, 24, 32, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  animation: chip-float 6s var(--ease-in-out) infinite;
}
.hero__chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(101, 168, 120, 0.2);
}
.hero__chip--a {
  top: 10%;
  left: 0;
}
.hero__chip--b {
  bottom: 10%;
  right: 0;
  animation-delay: -3s;
}
.hero__chip--b::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.18);
}
@keyframes chip-float {
  50% {
    transform: translate3d(0, -8px, 0);
  }
}
@media (max-width: 479px) {
  .hero__chip {
    padding: 0.5rem 0.8rem;
    font-size: 0.625rem;
  }
}

/* Intro choreography (JS adds .is-ready to <html>) */
.js .hero__title .line > span {
  transform: translate3d(0, 105%, 0);
  transition: transform 1.2s var(--ease-out);
}
.js .hero .overline,
.js .hero__ctas,
.js .hero__train {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js .hero__visual {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
}
/* The lead paragraph stays visible from first paint (it is often the LCP
   element on mobile) and only drifts into place. */
.js .hero__lead {
  transform: translate3d(0, 16px, 0);
  transition: transform 1s var(--ease-out);
}
.is-ready .hero__title .line > span,
.is-ready .hero .overline,
.is-ready .hero__lead,
.is-ready .hero__ctas,
.is-ready .hero__train,
.is-ready .hero__visual {
  opacity: 1;
  transform: none;
}
.is-ready .hero .overline {
  transition-delay: 0.1s;
}
.is-ready .hero__title .line:nth-child(1) > span {
  transition-delay: 0.2s;
}
.is-ready .hero__title .line:nth-child(2) > span {
  transition-delay: 0.32s;
}
.is-ready .hero__title .line:nth-child(3) > span {
  transition-delay: 0.44s;
}
.is-ready .hero__lead {
  transition-delay: 0.3s;
}
.is-ready .hero__visual {
  transition-delay: 0.25s;
}
.is-ready .hero__ctas {
  transition-delay: 0.85s;
}
.is-ready .hero__train {
  transition-delay: 1.05s;
}

/* Treatment train strip */
.hero__train {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(16, 43, 58, 0.1);
  background: rgba(255, 255, 255, 0.6);
}
@supports (backdrop-filter: blur(1px)) {
  .hero__train {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
.hero__train-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.hero__train-label {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.hero__train-steps {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(16, 43, 58, 0.72);
}
.hero__train-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.hero__train-steps li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
}
.hero__train-track {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: rgba(16, 43, 58, 0.06);
  pointer-events: none;
}
.hero__train-dot {
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--green));
  animation: train 7s var(--ease-in-out) infinite;
}
@keyframes train {
  from {
    left: -60px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    left: 100%;
    opacity: 0;
  }
}
@media (max-width: 1099px) {
  .hero__train-steps li:nth-child(n + 5) {
    display: none;
  }
}
@media (max-width: 719px) {
  .hero__train-label {
    display: none;
  }
  .hero__train-steps {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }
  .hero__train-steps li:nth-child(n + 4) {
    display: none;
  }
  .hero__train-steps li::before {
    display: none;
  }
}
/* The scroll cue would collide with the visual in this layout */
.hero__scroll {
  display: none;
}

/* =========================================================
   02 · WATER TRANSITION (scroll-linked)
   ========================================================= */
.flow-transition {
  position: relative;
  height: 220vh;
  background: var(--navy-950);
  margin-top: -1px;
}
.flow-transition__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.flow-transition__glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 140vmax;
  height: 80vmax;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 127, 140, 0.55), rgba(8, 127, 140, 0.12) 60%, transparent);
  opacity: calc(0.25 + var(--p, 0) * 0.75);
  transform: translate3d(0, calc((1 - var(--p, 0)) * 25%), 0);
}
.flow-transition__statement {
  position: relative;
  z-index: 3;
  padding-inline: var(--gutter);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1rem + 6vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  opacity: var(--statement-o, 0);
  transform: translate3d(0, var(--statement-y, 40px), 0) scale(var(--statement-s, 0.96));
}
.flow-transition__statement span {
  display: block;
}
.flow-transition__statement .accent {
  color: var(--teal-300);
}
.flow-transition__statement small {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted-on-dark);
}
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  will-change: transform;
}
.wave svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  max-width: none;
  height: 140px;
  animation: wave-drift 16s linear infinite;
}
.wave__body {
  position: absolute;
  top: 139px;
  left: 0;
  right: 0;
  bottom: 0;
}
.wave--1 {
  z-index: 1;
  transform: translate3d(0, calc(100% - clamp(0, (var(--p, 0) - 0.08) * 2.6, 1) * 28%), 0);
}
.wave--1 svg {
  fill: #0a4f5a;
}
.wave--1 .wave__body {
  background: #0a4f5a;
}
.wave--2 {
  z-index: 2;
  transform: translate3d(0, calc(100% - clamp(0, (var(--p, 0) - 0.2) * 2.6, 1) * 19%), 0);
}
.wave--2 svg {
  fill: var(--teal);
  animation-duration: 11s;
  animation-direction: reverse;
}
.wave--2 .wave__body {
  background: linear-gradient(180deg, var(--teal), #0b6d78);
}
.wave .highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
}
@keyframes wave-drift {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.flow-transition.is-paused .wave svg {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .flow-transition {
    height: auto;
  }
  .flow-transition__stage {
    position: relative;
    height: 60vh;
  }
  .flow-transition__statement {
    opacity: 1;
    transform: none;
  }
  .wave--1,
  .wave--2 {
    transform: translate3d(0, 75%, 0);
  }
  .about {
    margin-top: 0;
  }
}

/* =========================================================
   03 · ABOUT
   ========================================================= */
/* The About section overlaps the last part of the pinned water transition:
   its white wave crest rises over the statement and the content follows
   directly behind it, so no empty white screen is left between sections. */
.about {
  z-index: 5;
  margin-top: -60vh;
  background: var(--white);
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.about__crest {
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 140px;
  transform: translateY(-100%);
  overflow: hidden;
  pointer-events: none;
}
.about__crest svg {
  width: 200%;
  max-width: none;
  height: 100%;
  fill: var(--white);
  animation: wave-drift 9s linear infinite;
}
.about__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.about__media {
  position: relative;
  padding-bottom: 3.5rem;
}
.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}
.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__frame .parallax-img {
  position: absolute;
  inset: -8% 0;
  transform: translate3d(0, var(--shift, 0px), 0);
}
.about__frame .parallax-img img {
  height: 100%;
}
.about__inset {
  position: absolute;
  right: -0.5rem;
  bottom: 0;
  width: min(56%, 300px);
  background: var(--white);
  padding: 0.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about__inset img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.about__inset figcaption {
  padding: 0.6rem 0.35rem 0.2rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}
.about__inset figcaption strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.about__badge {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  z-index: 2;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(7, 24, 32, 0.72);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.about__copy .display {
  margin-top: 1.25rem;
}
.about__copy .prose {
  margin-top: 1.75rem;
}
.highlights {
  display: grid;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.highlight__icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal);
}
.highlight__icon svg {
  width: 22px;
  height: 22px;
}
.highlight h3 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.highlight p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.about__cta {
  margin-top: 2.5rem;
}

/* =========================================================
   04 · TECHNOLOGIES
   ========================================================= */
.tech {
  overflow: hidden;
}
.tech__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--white);
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.tech-card__visual {
  aspect-ratio: 16 / 10;
  margin: -0.25rem -0.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--mist);
  color: var(--navy);
  overflow: hidden;
  transition: background 0.5s var(--ease-out);
}
.tech-card__visual svg {
  width: 100%;
  height: 100%;
}
.schematic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.schematic .water {
  fill: rgba(8, 127, 140, 0.12);
  stroke: none;
}
.schematic .teal {
  stroke: var(--teal);
}
.schematic .fill-teal {
  fill: var(--teal);
  stroke: none;
}
.schematic .fill-green {
  fill: var(--green);
  stroke: none;
}
.schematic .dash {
  stroke-dasharray: 4 5;
}
.schematic text {
  fill: currentColor;
  stroke: none;
  font: 600 7.5px/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.schematic .bubble {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1;
}
.tech-card:hover .schematic .bubble,
.tech-card:focus-within .schematic .bubble {
  animation: rise 2.2s ease-in infinite;
}
.tech-card:hover .schematic .bubble:nth-child(2n),
.tech-card:focus-within .schematic .bubble:nth-child(2n) {
  animation-delay: 0.6s;
}
.tech-card:hover .schematic .bubble:nth-child(3n),
.tech-card:focus-within .schematic .bubble:nth-child(3n) {
  animation-delay: 1.2s;
}
.tech-card:hover .schematic .dash,
.tech-card:focus-within .schematic .dash {
  animation: dash-flow 1.6s linear infinite;
}
.tech-card:hover .schematic .spin,
.tech-card:focus-within .schematic .spin {
  animation: spin 6s linear infinite;
}
.schematic .spin {
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-34px);
    opacity: 0;
  }
}
@keyframes dash-flow {
  to {
    stroke-dashoffset: -18;
  }
}
.tech-card .tech-card__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  line-height: 1;
  color: var(--teal);
  transition: color 0.5s;
}
.tech-card h3 {
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.5s;
}
.tech-card p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.5s;
}
.tech-card .tech-card__use {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.5s;
}
.tech-card:hover {
  background: var(--navy);
}
.tech-card:hover .tech-card__visual {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}
.tech-card:hover h3 {
  color: var(--white);
}
.tech-card:hover p,
.tech-card:hover .tech-card__use.tech-card__use {
  color: var(--muted-on-dark);
}
.tech-card:hover .tech-card__code.tech-card__code {
  color: var(--teal-300);
}
.tech-card:hover .schematic .teal,
.tech-card:hover .schematic .bubble {
  stroke: var(--teal-300);
}
.tech__hint {
  display: none;
}
@media (max-width: 1199px) {
  .tech__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 719px) {
  .tech__track {
    display: flex;
    gap: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 1rem;
    background: none;
    border: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tech__track::-webkit-scrollbar {
    display: none;
  }
  .tech-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .tech__hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* =========================================================
   05 · SERVICES
   ========================================================= */
.services__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: clamp(1.25rem, 1rem + 1vw, 2.1rem);
  padding-top: 4.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.service-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 32, 0.1) 0%, rgba(7, 24, 32, 0.45) 40%, rgba(7, 24, 32, 0.94) 100%);
  transition: background 0.6s var(--ease-out);
}
.service-card:hover .service-card__media img,
.service-card:focus-within .service-card__media img {
  transform: scale(1.07);
}
.service-card:hover::before,
.service-card:focus-within::before {
  background: linear-gradient(180deg, rgba(7, 24, 32, 0.2) 0%, rgba(8, 64, 76, 0.65) 40%, rgba(7, 24, 32, 0.96) 100%);
}
.service-card__num {
  position: absolute;
  top: clamp(1.25rem, 1rem + 1vw, 2.1rem);
  left: clamp(1.25rem, 1rem + 1vw, 2.1rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal-300);
}
.service-card__num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: currentColor;
  transition: width 0.6s var(--ease-out);
}
.service-card:hover .service-card__num::after {
  width: 56px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
  max-width: 16ch;
}
.service-card p {
  margin-top: 0.9rem;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
.service-card .link-arrow {
  margin-top: 1.25rem;
  color: var(--white);
}
.service-card .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
}
.service-card .link-arrow:focus-visible {
  outline: none;
}
.service-card:has(.link-arrow:focus-visible) {
  outline: 2px solid var(--teal-300);
  outline-offset: 3px;
}
.service-card--lg h3 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}

/* Asymmetric layout */
.service-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}
.service-card:nth-child(2) {
  grid-column: span 5;
}
.service-card:nth-child(3) {
  grid-column: span 5;
}
.service-card:nth-child(4),
.service-card:nth-child(5),
.service-card:nth-child(6) {
  grid-column: span 4;
}
.service-card:nth-child(7) {
  grid-column: span 5;
}
.service-card:nth-child(8) {
  grid-column: span 7;
}
@media (max-width: 1099px) {
  .service-card:nth-child(n) {
    grid-column: span 6;
    grid-row: auto;
  }
  .service-card:nth-child(1),
  .service-card:nth-child(8) {
    grid-column: span 12;
    min-height: 420px;
  }
}
@media (max-width: 679px) {
  .services__grid {
    grid-auto-rows: auto;
  }
  .service-card::before {
    background: linear-gradient(180deg, rgba(7, 24, 32, 0.35) 0%, rgba(7, 24, 32, 0.78) 45%, rgba(7, 24, 32, 0.95) 100%);
  }
  .service-card:nth-child(n) {
    grid-column: span 12;
    min-height: 360px;
  }
}

/* =========================================================
   06 · PROCESS
   ========================================================= */
.process {
  overflow: hidden;
}
.process__track {
  position: relative;
  padding-top: 3.25rem;
}
.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
}
.process__line {
  position: absolute;
  top: 1.1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.process__line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.process__step {
  position: relative;
}
.process__dot {
  position: absolute;
  top: -3.25rem;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.process__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.5s;
}
.process__step.is-active .process__dot {
  border-color: var(--teal);
  box-shadow: 0 0 0 6px rgba(8, 127, 140, 0.12);
}
.process__step.is-active .process__dot::after {
  background: var(--teal);
}
.process__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  line-height: 1;
  color: var(--mist-200);
  transition: color 0.6s;
}
.section--mist .process__num {
  color: #d9e4e7;
}
.process__step.is-active .process__num {
  color: var(--teal);
}
.process__step h3 {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.process__step p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
@media (max-width: 899px) {
  .process__track {
    padding-top: 0;
    padding-left: 3.75rem;
  }
  .process__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process__line {
    top: 0;
    bottom: 0;
    left: 1.05rem;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process__line-fill {
    transform-origin: top;
    transform: scaleY(var(--progress, 0));
    background: linear-gradient(180deg, var(--teal), var(--green));
  }
  .process__dot {
    top: 0;
    left: -3.75rem;
  }
}
/* =========================================================
   07 · INDUSTRIES
   ========================================================= */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.industry {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}
.industry img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.8s;
  filter: saturate(0.85);
}
.industry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 32, 0) 35%, rgba(7, 24, 32, 0.88) 100%);
}
.industry:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}
.industry__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
}
.industry__index {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
}
.industry h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.industry p {
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 999px) {
  .industries__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industry {
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 479px) {
  .industries__grid {
    grid-template-columns: 1fr;
  }
  .industry {
    aspect-ratio: 16 / 11;
  }
}

/* =========================================================
   08 · PROJECTS
   ========================================================= */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "a b b"
    "a c d"
    "e f d";
  grid-auto-rows: clamp(240px, 22vw, 330px);
  gap: 1rem;
}
.project:nth-child(1) {
  grid-area: a;
}
.project:nth-child(2) {
  grid-area: b;
}
.project:nth-child(3) {
  grid-area: c;
}
.project:nth-child(4) {
  grid-area: d;
}
.project:nth-child(5) {
  grid-area: e;
}
.project:nth-child(6) {
  grid-area: f;
}
.project {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}
.project__open {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.project__open:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -4px;
}
.project img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 32, 0) 30%, rgba(7, 24, 32, 0.92) 100%);
  transition: opacity 0.6s;
}
.project:hover img {
  transform: scale(1.06);
}
.project figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  pointer-events: none;
}
.project__cat {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.85);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.project p {
  margin-top: 0.5rem;
  max-width: 48ch;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--ease-out), opacity 0.5s;
}
.project:hover p,
.project:focus-within p {
  max-height: 10em;
  opacity: 1;
}
@media (hover: none) {
  .project p {
    max-height: none;
    opacity: 1;
  }
}
.project__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.project__zoom svg {
  width: 18px;
  height: 18px;
}
.project:hover .project__zoom,
.project:focus-within .project__zoom {
  opacity: 1;
  transform: none;
}
.project__count {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 24, 32, 0.65);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.projects__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (max-width: 999px) {
  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a b"
      "a c"
      "d e"
      "d f";
    grid-auto-rows: clamp(220px, 34vw, 320px);
  }
}
@media (max-width: 599px) {
  .projects__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e" "f";
    grid-auto-rows: auto;
  }
  .project {
    aspect-ratio: 4 / 3;
  }
  .project:nth-child(1),
  .project:nth-child(4) {
    aspect-ratio: 4 / 4.6;
  }
}

/* =========================================================
   09 · WHY CHOOSE
   ========================================================= */
.why {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.why__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.why__pattern .grid-line {
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}
.why__pattern .pipe {
  fill: none;
  stroke: rgba(99, 194, 203, 0.22);
  stroke-width: 1.2;
}
.why__pattern .pipe-flow {
  fill: none;
  stroke: rgba(99, 194, 203, 0.7);
  stroke-width: 1.6;
  stroke-dasharray: 18 260;
  stroke-linecap: round;
  animation: pipe-flow 9s linear infinite;
}
.why__pattern .pipe-flow:nth-of-type(2n) {
  animation-duration: 13s;
  stroke: rgba(101, 168, 120, 0.7);
}
.why__pattern .vessel {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
}
@keyframes pipe-flow {
  to {
    stroke-dashoffset: -556;
  }
}
.why.is-paused .why__pattern * {
  animation-play-state: paused;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.why-item {
  position: relative;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.5s var(--ease-out);
}
.why-item:hover {
  background: rgba(255, 255, 255, 0.035);
}
.why-item__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(99, 194, 203, 0.4);
  color: var(--teal-300);
  transition: background 0.5s, color 0.5s;
}
.why-item:hover .why-item__icon {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.why-item__icon svg {
  width: 24px;
  height: 24px;
}
.why-item__num {
  position: absolute;
  top: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  right: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
}
.why-item h3 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}
.why-item p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
}
@media (max-width: 999px) {
  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   TEAM
   ========================================================= */
.team__label {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.team__label--light {
  color: var(--teal-300);
}
.team__process-head h3,
.team__members-head h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}
.team__process {
  display: grid;
  gap: 1.5rem 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .team__process {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  }
}
.team__process-body p {
  color: var(--muted);
}
.team__process-body p + p {
  margin-top: 1em;
}
.team__process-body .team__statement {
  font-size: var(--fs-lg);
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy);
}
.team__process-body .tag-list {
  margin-top: 1.75rem;
}
.team__process-body .tag-list li {
  background: var(--white);
}

/* Director voice */
.team__director {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin: clamp(4rem, 3rem + 4vw, 7rem) 0 0;
  padding: clamp(1.75rem, 1.2rem + 3vw, 4.5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.team__director::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  left: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 127, 140, 0.4), transparent);
}
@media (min-width: 1000px) {
  .team__director {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 5rem;
  }
}
.team__director-quote p {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.35rem);
  line-height: 1.08;
  text-transform: uppercase;
}
.team__director-quote p::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  font-size: 1.8em;
  line-height: 1;
  color: var(--teal-300);
}
.team__director-sign {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.team__director-sign strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--white);
}
.team__director-sign strong + span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-300);
}
.team__director-notes {
  display: grid;
  gap: 1.75rem;
  align-content: center;
}
.team__director-notes > div {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(99, 194, 203, 0.4);
}
.team__director-notes h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.team__director-notes p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
}

/* Meet the team */
.team__members {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
}
.team__members-head {
  margin-bottom: 2rem;
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.member {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.member:hover {
  border-color: rgba(8, 127, 140, 0.5);
  box-shadow: var(--shadow);
}
.team__avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.member:hover .team__avatar {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.team__avatar--lg {
  width: 64px;
  height: 64px;
  border: 0;
  background: var(--teal);
  color: var(--white);
  font-size: 1.5rem;
}
.member h4 {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.member p {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 999px) {
  .team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .team__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .member {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
  }
  .member .team__avatar {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }
  .member h4 {
    margin-top: 0;
    align-self: end;
  }
  .member p {
    align-self: start;
  }
}

/* =========================================================
   10 · FAQ
   ========================================================= */
.faq__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 5rem;
  }
  .faq__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}
.faq__aside .lead {
  margin-top: 1.5rem;
}
.faq__aside .btn {
  margin-top: 2rem;
}

/* =========================================================
   11 · CONTACT
   ========================================================= */
.contact {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -20%;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 127, 140, 0.35), transparent);
}
.contact__grid {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 1100px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 5rem;
    align-items: start;
  }
}
.contact__intro .display {
  margin-top: 1.25rem;
  max-width: 14ch;
}
.contact__intro .lead {
  margin-top: 1.5rem;
  max-width: 50ch;
}
.contact-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.contact-list > li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-list__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--teal-300);
}
.contact-list__icon svg {
  width: 20px;
  height: 20px;
}
.contact-list__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.contact-list__value {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.86);
}
.contact-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list a:hover {
  text-decoration: underline;
}
.contact__map {
  margin-top: 2rem;
}
.contact__card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.contact__card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}
.contact__card > p {
  margin: 0.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Our clients — single-row logo carousel (auto loop)
   main.js clones the logos so the row loops seamlessly; without JS, or with
   reduced motion, the row simply scrolls sideways.
   ========================================================================== */
.clients__marquee {
  --logo-w: clamp(140px, 6rem + 10vw, 260px);
  position: relative;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients__marquee::-webkit-scrollbar {
  display: none;
}
.clients__track {
  display: flex;
  width: max-content;
  padding-block: 0.75rem 1.25rem;
}
.client {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--logo-w);
  height: calc(var(--logo-w) * 0.62);
  margin-right: clamp(0.75rem, 0.5rem + 0.6vw, 1.25rem);
  padding: 1rem 1.25rem;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}
.client img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 74%;
  object-fit: contain;
}
@media (hover: hover) {
  .client:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 40px -22px rgba(16, 43, 58, 0.35);
  }
}
/* Running carousel */
.clients__marquee.is-running {
  overflow: hidden;
}
.clients__marquee.is-running .clients__track {
  animation: clients-loop var(--marquee-duration, 30s) linear infinite;
}
.clients__marquee.is-running:hover .clients__track,
.clients__marquee.is-running:focus-within .clients__track {
  animation-play-state: paused;
}
@keyframes clients-loop {
  to {
    transform: translate3d(calc(var(--marquee-distance, 0px) * -1), 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients__marquee.is-running .clients__track {
    animation: none;
  }
  .clients__marquee.is-running {
    overflow-x: auto;
  }
}

/* ==========================================================================
   Real-time monitoring — OCEMS
   ========================================================================== */
.ocems {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
}
.ocems__glow {
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto auto;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(8, 127, 140, 0.35), transparent 70%);
  pointer-events: none;
}
.ocems .lead strong {
  color: var(--white);
  font-weight: 600;
}
.ocems__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}
@media (min-width: 1024px) {
  .ocems__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

/* Purpose list */
.ocems__list {
  display: grid;
}
.ocems__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-dark);
}
.ocems__list li:last-child {
  border-bottom: 1px solid var(--line-dark);
}
.ocems__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(99, 194, 203, 0.35);
  background: rgba(8, 127, 140, 0.18);
  color: var(--teal-300);
}
.ocems__icon svg {
  width: 22px;
  height: 22px;
}
.ocems__list h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}
.ocems__list p {
  margin-top: 0.4rem;
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Illustrative dashboard */
.ocems__panel {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid rgba(99, 194, 203, 0.22);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(7, 24, 32, 0.85), rgba(7, 24, 32, 0.55));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@media (min-width: 1024px) {
  .ocems__panel {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.ocems__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.ocems__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(101, 168, 120, 0.16);
  color: var(--green-300);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ocems__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-300);
  box-shadow: 0 0 0 0 rgba(159, 209, 172, 0.7);
  animation: ocems-pulse 2s ease-out infinite;
}
@keyframes ocems-pulse {
  70% { box-shadow: 0 0 0 9px rgba(159, 209, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(159, 209, 172, 0); }
}
.ocems__panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
}
.ocems__params {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.ocems__params li {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ocems__param {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--teal-300);
}
.ocems__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
}
.ocems__spark {
  width: clamp(72px, 14vw, 120px);
  height: 32px;
  overflow: visible;
}
.ocems__spark path {
  fill: none;
  stroke: var(--teal-300);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.js .ocems__spark path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
.js .ocems__panel.is-in .ocems__spark path {
  animation: ocems-draw 2.4s var(--ease-out) forwards;
}
.ocems__params li:nth-child(2) .ocems__spark path { animation-delay: 0.15s; }
.ocems__params li:nth-child(3) .ocems__spark path { animation-delay: 0.3s; }
.ocems__params li:nth-child(4) .ocems__spark path { animation-delay: 0.45s; }
.ocems__params li:nth-child(5) .ocems__spark path { animation-delay: 0.6s; }
@keyframes ocems-draw {
  to { stroke-dashoffset: 0; }
}
.ocems__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.ocems__chain li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px dashed rgba(99, 194, 203, 0.45);
  border-radius: 6px;
}
.ocems__chain li + li::before {
  content: "→";
  margin-left: -0.15rem;
  margin-right: 0.35rem;
  color: var(--teal-300);
  border: 0;
}
.ocems__panel figcaption {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-on-dark);
}
.ocems__cta {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
@media (max-width: 479px) {
  .ocems__params li {
    grid-template-columns: 3.4rem 1fr;
  }
  .ocems__spark {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .ocems__spark path {
    stroke-dashoffset: 0;
    animation: none !important;
  }
  .ocems__dot {
    animation: none;
  }
}

/* Team member designation */
.member .member__role {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.member .member__role + p {
  margin-top: 0.2rem;
}

/* ==========================================================================
   Projects page
   ========================================================================== */
.nav__link[aria-current="page"] {
  opacity: 1;
}
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Page hero (inner pages) — light, matching the homepage hero:
   title on the left, a framed photograph on the right. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 85% 40%, rgba(99, 194, 203, 0.28), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(101, 168, 120, 0.14), transparent 70%),
    linear-gradient(180deg, #f7fbfc 0%, #ebf5f7 70%, #e4f1ef 100%);
  color: var(--navy);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(16, 43, 58, 0.1) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 65%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 65%);
}
.page-hero__inner {
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4.5rem));
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
@media (min-width: 900px) {
  .page-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
  }
}
.page-hero .display {
  margin-top: 1.25rem;
  color: var(--navy);
}
.page-hero .display .accent {
  color: var(--teal);
  background: linear-gradient(90deg, var(--teal) 10%, var(--green) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lead {
  max-width: 56ch;
  margin-top: 1.25rem;
  color: #3d5662;
}
.page-hero__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg, 18px);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.85),
    0 36px 70px -30px rgba(7, 24, 32, 0.5);
}
/* Offset accent frame behind the photograph */
.page-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1.5px solid rgba(8, 127, 140, 0.35);
  border-radius: inherit;
  transform: translate(18px, 18px);
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
@media (max-width: 899px) {
  .page-hero__media {
    aspect-ratio: 16 / 10;
    margin-right: 18px;
  }
}
@media (min-width: 900px) {
  .page-hero__media {
    max-height: 62vh;
    justify-self: end;
    width: 100%;
  }
}
/* Gentle entrance */
.js .page-hero__text > *,
.js .page-hero__media {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .page-hero .lead {
  opacity: 1; /* often the LCP element on phones */
}
.is-ready .page-hero__text > *,
.is-ready .page-hero__media {
  opacity: 1;
  transform: none;
}
.is-ready .page-hero .display { transition-delay: 0.08s; }
.is-ready .page-hero .lead { transition-delay: 0.16s; }
.is-ready .page-hero__stats { transition-delay: 0.24s; }
.is-ready .page-hero__media { transition-delay: 0.15s; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(16, 43, 58, 0.35);
}
.breadcrumb a {
  color: rgba(16, 43, 58, 0.7);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}
.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 640px;
  margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  border: 1px solid rgba(16, 43, 58, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(16, 43, 58, 0.1);
}
@media (min-width: 1100px) {
  .page-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.page-hero__stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
}
.page-hero__stats dd {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem);
  line-height: 1;
  color: var(--navy);
}
.page-hero__stats dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
}

/* "See more" button under a homepage section */
.section-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* Homepage: explore the inner pages */
.explore__grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
@media (min-width: 640px) {
  .explore__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .explore__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.explore__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 230px;
  padding: 1.75rem 1.5rem 5.5rem;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.explore__card:hover,
.explore__card:focus-within {
  border-color: rgba(8, 127, 140, 0.4);
  box-shadow: 0 24px 50px -30px rgba(7, 24, 32, 0.45);
  transform: translateY(-4px);
}
.explore__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
}
.explore__card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}
.explore__card h3 a {
  color: inherit;
  text-decoration: none;
}
/* Whole card is clickable */
.explore__card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.explore__card h3 a:focus-visible {
  outline: none;
}
.explore__card:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.explore__card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.explore__arrow {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  transition: background-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.explore__arrow svg {
  width: 18px;
  height: 18px;
}
.explore__card:hover .explore__arrow {
  background: var(--navy);
  transform: translateX(4px);
}

/* Filter */
.pfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.pfilter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.pfilter__btn span {
  min-width: 1.6em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal-700);
  font-size: 0.75rem;
  text-align: center;
}
.pfilter__btn:hover {
  border-color: var(--teal);
}
.pfilter__btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pfilter__btn[aria-pressed="true"] span {
  background: var(--teal);
  color: var(--white);
}

/* Gallery grid */
.pgallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.pcard {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}
.pcard[hidden] {
  display: none;
}
.pcard img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 32, 0) 40%, rgba(7, 24, 32, 0.9) 100%);
}
.pcard:hover img {
  transform: scale(1.06);
}
.pcard__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.25rem;
  pointer-events: none;
}
.pcard__cat {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.88);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pcard h3 {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.pcard__count {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(7, 24, 32, 0.7);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.pcard__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.pcard__zoom svg {
  width: 18px;
  height: 18px;
}
.pcard:hover .pcard__zoom,
.pcard:focus-within .pcard__zoom {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .pcard__zoom {
    opacity: 1;
    transform: none;
  }
}
.pcard__open {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.pcard__open:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: -4px;
}

/* Project list */
.plist__wrap {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.plist__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.plist__table thead th {
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
}
.plist__table td,
.plist__table tbody th {
  padding: 0.95rem 1.25rem;
  border-top: 1px solid var(--mist-200);
  text-align: left;
  vertical-align: top;
  color: #2b3e48;
}
.plist__table tbody th {
  font-weight: 600;
  color: var(--navy);
}
.plist__table td:first-child {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--teal-700);
  width: 4.5rem;
}
.plist__table td:nth-child(4) {
  white-space: nowrap;
  font-weight: 600;
}
.plist__table tbody tr:hover {
  background: #f7fafb;
}
.status {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status--completed {
  background: rgba(101, 168, 120, 0.16);
  color: #2f6b40;
}
.status--ongoing {
  background: rgba(8, 127, 140, 0.12);
  color: var(--teal-700);
}
.plist__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
/* Small screens: each row becomes a card */
@media (max-width: 759px) {
  .plist__wrap {
    border: 0;
    background: none;
  }
  .plist__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .plist__table,
  .plist__table tbody,
  .plist__table tr {
    display: block;
  }
  .plist__table tr {
    position: relative;
    margin-bottom: 0.75rem;
    padding: 1rem 1.1rem 1rem 3.6rem;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius);
    background: var(--white);
  }
  .plist__table td,
  .plist__table tbody th {
    display: block;
    padding: 0;
    border: 0;
  }
  .plist__table td:first-child {
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    width: auto;
  }
  .plist__table td:nth-child(3),
  .plist__table td:nth-child(4) {
    margin-top: 0.35rem;
    font-size: 0.875rem;
  }
  .plist__table td:nth-child(3)::before,
  .plist__table td:nth-child(4)::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--muted);
  }
  .plist__table td:nth-child(4) {
    white-space: normal;
  }
  .plist__table td:last-child {
    margin-top: 0.6rem;
  }
}

/* Homepage link to the projects page */
.clients__more {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

/* Homepage projects preview */
.home-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
@media (min-width: 1100px) {
  .home-projects__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
  .home-projects__grid .pcard {
    aspect-ratio: 3 / 4;
  }
}
@media (max-width: 599px) {
  .home-projects__grid .pcard {
    aspect-ratio: 4 / 5;
  }
  .home-projects__stats {
    gap: 1rem 1.75rem;
  }
  .home-projects__stats dt {
    letter-spacing: 0.08em;
  }
  .home-projects__grid .pcard__body {
    padding: 0.8rem 0.85rem;
  }
  .home-projects__grid .pcard h3 {
    font-size: 1rem;
  }
  .home-projects__grid .pcard__cat {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
  }
}
.pcard--link .pcard__open {
  cursor: pointer;
}
.home-projects__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  padding-top: clamp(1.5rem, 1rem + 1vw, 2rem);
  border-top: 1px solid var(--line);
}
.home-projects__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.75rem;
}
.home-projects__stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}
.home-projects__stats dd {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  line-height: 1;
  color: var(--navy);
}
.home-projects__stats dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
}

/* About section on its own page: no overlap with the (homepage-only) water animation */
.page-hero + .about {
  margin-top: 0;
  padding-top: var(--section-y);
}
