﻿/* Homepage styles */

.client-rail,
.client-rail *,
.client-card {
  cursor: none !important;
}

/* ---------- hero ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.panel {
  margin-inline: calc(var(--gutter) * -1);
}
#led {
  display: block;
  width: 100%;
  touch-action: pan-y;
}
body.page-returning #led {
  animation: led-return 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
body.page-returning > .wrap {
  animation: content-return 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}
@keyframes led-return {
  from {
    opacity: 0.58;
    transform: translateY(12px) scale(0.985);
    filter: saturate(0.7);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes content-return {
  from {
    opacity: 0.72;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- services ---------- */
.about {
  padding-top: clamp(56px, 8vw, 120px);
}

/* ---------- homepage supporting sections ---------- */
.home-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(88px, 12vw, 180px) var(--gutter);
  border-top: 1px solid var(--line);
}
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.home-section-head h2,
.c-label {
  margin: 0;
  color: var(--fg);
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-weight: 500;
}
.home-section-head h2 {
  max-width: 8ch;
}
.home-section-index {
  color: var(--muted);
  font:
    600 11px/1 Archivo,
    sans-serif;
  letter-spacing: 0.12em;
}
.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(48px, 10vw, 180px);
}
.home-about h2,
.coming-soon h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.home-about-copy {
  max-width: 480px;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.45;
}
.home-about-copy p {
  margin: 0 0 24px;
}
.home-about-copy .home-services-line {
  color: var(--muted);
  font-size: 0.72em;
}
.home-about-copy .go {
  margin-top: 26px;
}
.home-clients {
  padding-bottom: clamp(96px, 14vw, 210px);
}
.clients-intro {
  max-width: 480px;
  margin: 0 0 44px;
  color: var(--muted);
  line-height: 1.5;
}
.client-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.client-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 24px;
  border: 1px solid var(--line);
  color: var(--fg);
}
.client-logo svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}
.client-logo span {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.home-articles {
  padding-bottom: clamp(100px, 15vw, 220px);
}
.coming-soon {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.coming-soon h2 {
  max-width: none;
}
.coming-soon p {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.coming-soon-mark {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--fg);
  color: #f2f9f8;
}
.footer-in {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 40px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}
.footer-logo {
  color: inherit;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.footer-brand p {
  max-width: 240px;
  margin: 14px 0 0;
  color: #9baeb1;
  line-height: 1.5;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 28px;
  align-content: start;
}
.footer-nav a,
.footer-meta span {
  color: #c3d0d2;
  font-size: 13px;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--green);
}
.footer-meta {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 20px;
}
@media (max-width: 700px) {
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* ---------- footer: quiet, compact brand close ---------- */
  .site-footer {
    margin-inline: calc(var(--gutter) * -1);
    background: var(--fg);
    color: var(--bg);
  }
  .footer-in {
    display: block;
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(38px, 6vw, 76px) var(--gutter) 22px;
  }
  .footer-brandline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(242, 249, 248, 0.2);
  }
  .footer-logo {
    margin: 0;
    color: var(--bg);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.08em;
    text-decoration: none;
  }
  .footer-location,
  .footer-copy {
    color: #91a5aa;
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 34px 0 58px;
  }
  .footer-statement {
    margin: 0;
    color: #dce7e6;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.04em;
  }
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-content: start;
    gap: 12px 44px;
  }
  .footer-nav a {
    color: #b9c7c8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s;
  }
  .footer-nav a:hover {
    color: var(--green);
  }
  .footer-bottomline {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(242, 249, 248, 0.2);
  }
  @media (max-width: 700px) {
    .footer-brandline {
      align-items: flex-start;
      flex-direction: column;
      gap: 12px;
    }
    .footer-content {
      grid-template-columns: 1fr;
      gap: 32px;
      padding-bottom: 42px;
    }
    .footer-bottomline {
      gap: 12px;
      flex-direction: column;
    }
  }

  /* Footer desktop overrides */
  .site-footer {
    margin-inline: calc(var(--gutter) * -1);
    background: var(--fg);
    color: var(--bg);
  }
  .site-footer .footer-in {
    display: block;
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(38px, 6vw, 76px) var(--gutter) 22px;
  }
  .site-footer .footer-brandline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(242, 249, 248, 0.2);
  }
  .site-footer .footer-logo {
    margin: 0;
    color: var(--bg);
    font-size: clamp(76px, 4vw, 58px) !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.08em;
    text-decoration: none;
  }
  .site-footer .footer-location,
  .site-footer .footer-copy {
    color: #91a5aa;
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .site-footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 34px 0 58px;
  }
  .site-footer .footer-statement {
    margin: 0;
    color: #dce7e6;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.04em;
  }
  .site-footer .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-content: start;
    gap: 12px 44px;
  }
  .site-footer .footer-nav a {
    color: #b9c7c8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s;
  }
  .site-footer .footer-nav a:hover {
    color: var(--green);
  }
  .site-footer .footer-bottomline {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(242, 249, 248, 0.2);
  }
  @media (max-width: 700px) {
    .site-footer .footer-brandline {
      align-items: flex-start;
      flex-direction: column;
      gap: 12px;
    }
    .site-footer .footer-content {
      grid-template-columns: 1fr;
      gap: 32px;
      padding-bottom: 42px;
    }
    .site-footer .footer-bottomline {
      gap: 12px;
      flex-direction: column;
    }
  }
  .home-about h2,
  .coming-soon h2 {
    max-width: 10ch;
  }
  .client-logos {
    grid-template-columns: 1fr;
  }
  .client-logo {
    min-height: 82px;
  }
  .coming-soon {
    display: block;
  }
  .coming-soon-mark {
    display: inline-block;
    margin-top: 32px;
  }
  .footer-in {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-meta {
    justify-items: start;
  }
}

/* ---------- homepage visual direction ---------- */
.home-section {
  position: relative;
  max-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: max(var(--gutter), calc((100vw - 1360px) / 2));
  overflow: hidden;
  border-top: 0;
}
.home-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 18%,
    black 82%,
    transparent
  );
}
.home-section-head {
  margin-bottom: clamp(42px, 6vw, 84px);
}
.home-section-head .label {
  color: var(--muted);
  font-size: 11px;
}
.home-about {
  margin-top: clamp(36px, 6vw, 80px);
  padding-top: clamp(72px, 10vw, 150px);
  padding-bottom: clamp(82px, 11vw, 160px);
  background: var(--fg);
  color: var(--bg);
  border-radius: 28px 28px 0 0;
}
.home-about-stamp {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: max(var(--gutter), calc((100vw - 1360px) / 2));
  color: var(--green);
  font: 700 12px/1.2 var(--f);
  letter-spacing: 0.18em;
  text-align: right;
}
.home-about-stamp span {
  color: #8ea6ad;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.home-about::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
}
.home-about .home-section-head .label {
  color: #8ea6ad;
}
.home-about-grid {
  gap: clamp(40px, 8vw, 140px);
}
.home-about h2 {
  max-width: 10ch;
  font-size: clamp(50px, 8vw, 120px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 400;
}
.home-about-copy {
  align-self: end;
  color: #d8e5e5;
}
.home-about-copy .home-services-line {
  color: #8ea6ad;
}
.home-about-copy .go {
  color: #04161c;
  background: var(--green);
}
.home-about-copy .go:hover {
  background: #b2f47f;
}
.home-clients {
  padding-top: clamp(72px, 10vw, 150px);
  padding-bottom: clamp(72px, 10vw, 150px);
  background: var(--bg);
}
.clients-intro {
  margin-bottom: 54px;
}
.client-logos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.client-logo {
  min-height: 142px;
  padding: 26px 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  filter: grayscale(1);
  opacity: 0.66;
  transition:
    opacity 0.25s,
    filter 0.25s,
    transform 0.25s;
}
.client-logo + .client-logo {
  padding-left: clamp(20px, 4vw, 64px);
}
.client-logo:last-child {
  border-right: 0;
  padding-left: clamp(20px, 4vw, 64px);
}
.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px);
}
.client-logo span {
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 600;
}
.home-articles {
  padding-top: clamp(80px, 11vw, 170px);
  padding-bottom: clamp(90px, 12vw, 190px);
  background: #d9ffb9;
  color: #071014;
}
.home-articles::before {
  opacity: 0.22;
  background-image:
    linear-gradient(#9bcb7a 1px, transparent 1px),
    linear-gradient(90deg, #9bcb7a 1px, transparent 1px);
}
.home-articles .home-section-head .label {
  color: #3d6440;
}
.coming-soon {
  align-items: flex-end;
  padding-top: 20px;
}
.coming-soon h2 {
  font-size: clamp(62px, 11vw, 170px);
  line-height: 0.78;
  letter-spacing: -0.09em;
  font-weight: 500;
}
.coming-soon p {
  max-width: 480px;
  color: #49624c;
}
.coming-soon-mark {
  border-color: #6c9963;
  color: #315b38;
  background: rgba(255, 255, 255, 0.24);
}
.site-footer {
  margin-inline: calc(var(--gutter) * -1);
  position: relative;
  overflow: hidden;
}
.footer-in {
  display: block;
  position: relative;
  padding: clamp(48px, 7vw, 100px)
    max(var(--gutter), calc((100vw - 1360px) / 2)) 24px;
}
.footer-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8ea6ad;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-logo {
  display: block;
  margin: 0 0 clamp(48px, 8vw, 120px);
  color: #f2f9f8;
  font-size: clamp(80px, 20vw, 280px);
  font-weight: 500;
  line-height: 0.68;
  letter-spacing: -0.095em;
  text-decoration: none;
}
.footer-bottomline {
  border-top: 1px solid rgba(242, 249, 248, 0.15);
  padding-top: 18px;
}
.footer-nav {
  gap: 10px 24px;
}
.footer-nav a {
  color: #c3d0d2;
  font-size: 11px;
}
.footer-copy {
  color: #8ea6ad;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.footer-brand {
  display: none;
}
.footer-meta {
  display: none;
}
@media (max-width: 700px) {
  .home-about-stamp {
    top: 28px;
    right: var(--gutter);
  }
  .footer-topline,
  .footer-bottomline {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .footer-bottomline {
    gap: 22px;
  }
  .footer-nav {
    grid-template-columns: repeat(2, max-content);
  }
}

/* ---------- restrained homepage sections ---------- */
.home-about {
  margin-top: clamp(36px, 7vw, 100px);
  padding-top: clamp(84px, 11vw, 170px);
  padding-bottom: clamp(84px, 11vw, 170px);
  background: var(--bg);
  color: var(--fg);
}
.home-about::before,
.home-articles::before {
  display: none;
}
.home-about-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: clamp(48px, 12vw, 220px);
}
.home-about h2,
.home-articles > h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(64px, 10vw, 148px);
  line-height: 0.82;
  letter-spacing: -0.085em;
  font-weight: 500;
}
.home-about-copy {
  max-width: 480px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: var(--fg);
}
.home-about-copy p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.home-about-copy p {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
}
.home-about-copy .home-services-line {
  font-size: 13px;
}
.home-articles {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 10vw, 180px);
  min-height: 0;
  padding-top: clamp(84px, 10vw, 150px);
  padding-bottom: clamp(84px, 10vw, 150px);
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
}
.home-articles > h2 {
  font-size: clamp(48px, 7vw, 100px);
}
.coming-soon {
  display: flex;
  min-height: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  box-shadow: none;
}
.coming-soon::before {
  display: none;
}
.coming-soon h2 {
  display: none;
}
.coming-soon p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
}
.coming-soon-mark {
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.closing-after-articles {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(76px, 10vw, 150px) var(--gutter);
  border-top: 1px solid var(--line);
}
.closing-after-articles p {
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.closing-after-articles p span {
  color: var(--muted);
}
.closing-after-articles .go {
  margin-top: 32px;
  background: var(--fg);
  color: var(--bg);
}
.site-footer {
  background: var(--fg);
}
.site-footer .footer-logo {
  transition: color 0.3s;
}
.site-footer .footer-logo:hover {
  color: var(--green);
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-logo {
    transition: none;
  }
}
@media (max-width: 700px) {
  .home-about-grid,
  .home-articles {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .home-about h2 {
    font-size: clamp(64px, 19vw, 110px);
  }
  .home-about-copy {
    margin-top: 0;
  }
  .coming-soon {
    display: block;
  }
  .coming-soon-mark {
    display: block;
    margin-top: 24px;
  }
  .closing-after-articles p {
    font-size: clamp(34px, 9vw, 54px);
  }
}
@media (max-width: 700px) {
  .home-about {
    border-radius: 20px 20px 0 0;
  }
  .client-logos {
    grid-template-columns: 1fr;
  }
  .client-logo,
  .client-logo + .client-logo,
  .client-logo:last-child {
    min-height: 92px;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .client-logo:last-child {
    border-bottom: 0;
  }
  .coming-soon h2 {
    font-size: clamp(64px, 19vw, 110px);
  }
}
.collage {
  position: relative;
  aspect-ratio: 1300 / 800;
  margin-bottom: clamp(32px, 5vw, 72px);
}
.c-label {
  position: absolute;
  left: 3%;
  top: 0;
  color: var(--muted);
}
.c-intro {
  position: absolute;
  left: 3%;
  bottom: 0;
  width: 34%;
  margin: 0;
  font-size: clamp(17px, 1.75vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 500;
  text-wrap: pretty;
}
.c-intro b {
  font-weight: 800;
}

/* photo slots: dark LED tiles for now. A real <img> placed inside .ph-media replaces the art. */
.ph {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  aspect-ratio: var(--ar);
  z-index: 1;
  margin: 0;
  translate: 0 var(--py, 0px);
  border-radius: 8px;
  overflow: hidden;
  background: #050b0e;
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 1.4s cubic-bezier(0.7, 0, 0.2, 1) var(--d, 0s),
    --r 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0s;
  --r: 1px;
}
@property --r {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}
.ph:hover {
  --r: 150px;
}
/* duotone layer (brand colours) sits over the original photo; a soft hole follows the pointer and shows the true colours */
.ph-media img.duo {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(
    circle max(var(--r), 1px) at var(--mx, 50%) var(--my, 50%),
    transparent 0,
    transparent 55%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle max(var(--r), 1px) at var(--mx, 50%) var(--my, 50%),
    transparent 0,
    transparent 55%,
    #000 100%
  );
}
.ph-media {
  position: absolute;
  inset: 0;
}
.ph-media canvas,
.ph-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* photo filter: brand-gradient dots, visible only inside a soft blob that drifts slowly across the photo */
.ph-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background: linear-gradient(
    45deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
  -webkit-mask:
    radial-gradient(circle, #000 1.5px, transparent 2px) 0 0 / 11px 11px,
    radial-gradient(ellipse 10% 10% at 50% 50%, #000 12%, transparent)
      var(--p0, 75% 75%) / 300% 300% no-repeat;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle, #000 1.5px, transparent 2px) 0 0 / 11px 11px,
    radial-gradient(ellipse 10% 10% at 50% 50%, #000 12%, transparent)
      var(--p0, 75% 75%) / 300% 300% no-repeat;
  mask-composite: intersect;
  animation: drift-dots var(--dur, 18s) ease-in-out var(--dly, 0s) infinite
    alternate;
}
.ph.b .ph-media::after {
  --dur: 23s;
  --dly: -9s;
  --p0: 25% 75%;
  --p1: 75% 25%;
}
.ph.c .ph-media::after {
  --dur: 20s;
  --dly: -14s;
  --p0: 75% 40%;
  --p1: 25% 60%;
}
@keyframes drift-dots {
  from {
    -webkit-mask-position:
      0 0,
      var(--p0, 75% 75%);
    mask-position:
      0 0,
      var(--p0, 75% 75%);
  }
  to {
    -webkit-mask-position:
      0 0,
      var(--p1, 25% 25%);
    mask-position:
      0 0,
      var(--p1, 25% 25%);
  }
}
.ph:hover .ph-media canvas,
.ph:hover .ph-media img {
  transform: scale(1.05);
}

.svc-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 24px;
  align-items: end;
  padding-block: clamp(22px, 3.2vw, 44px);
}
.svc-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--fg);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.2, 1);
}
.svc-row:last-of-type {
  border-bottom: 2px solid var(--fg);
}
.svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    45deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
  -webkit-mask:
    radial-gradient(circle, #000 1.5px, transparent 2px) 0 0 / 14px 14px,
    radial-gradient(
      circle 200px at var(--mx, 50%) var(--my, 50%),
      #000,
      transparent
    );
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle, #000 1.5px, transparent 2px) 0 0 / 14px 14px,
    radial-gradient(
      circle 200px at var(--mx, 50%) var(--my, 50%),
      #000,
      transparent
    );
  mask-composite: intersect;
  transition: opacity 0.35s;
}
.svc-row:hover::before {
  opacity: 0.85;
}
.svc-title {
  grid-column: 1 / span 8;
  margin: 0;
  min-width: 0;
  font-size: clamp(34px, 6.6vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.svc-row:hover .svc-title {
  transform: translateX(0.12em);
}
.clip {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.line {
  display: inline-block;
}
.svc-title b {
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.015em;
  background: linear-gradient(
    90deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-meta {
  grid-column: 9 / -1;
  min-width: 0;
  padding-bottom: 0.6em;
}
.svc-name {
  margin: 0 0 8px;
  font-weight: 600;
  font-stretch: 75%;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.svc-name::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 10px;
  background: linear-gradient(
    45deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
}
.svc-detail {
  margin: 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 16px;
}

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
  padding-top: clamp(48px, 7vw, 104px);
}
.closing p {
  margin: 0;
  max-width: 20em;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: balance;
}
.closing p span {
  color: var(--muted);
}

.go {
  display: inline-flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-stretch: 80%;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.go .t {
  padding: 18px 24px;
}
.go .a {
  display: grid;
  place-items: center;
  width: 58px;
  background: linear-gradient(
    45deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
  color: var(--on-brand);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.go svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.go:hover .a {
  width: 90px;
}
.go:hover svg {
  transform: translateX(8px);
}
.menu .go {
  background: #f2f9f8;
  color: #050b0e;
}

/* Homepage client rail */

/* Client rail */
.home-clients {
  padding-top: clamp(76px, 10vw, 144px);
  padding-bottom: clamp(76px, 10vw, 144px);
}
.home-clients .home-section-head,
.home-clients .clients-intro {
  position: relative;
  z-index: 1;
}
.clients-intro {
  max-width: 420px;
  margin-top: -28px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 15px;
}
.client-rail {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  user-select: none;
  cursor: none !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}
.client-rail::-webkit-scrollbar {
  display: none;
}
.client-rail.is-dragging {
  cursor: none !important;
  touch-action: none;
}
.client-card {
  position: relative;
  flex: 0 0 clamp(190px, 20vw, 278px);
  height: clamp(320px, 38vw, 500px);
  overflow: hidden;
  color: #fff;
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-clients.in .client-card {
  opacity: 1;
  transform: translateY(0);
}
.home-clients.in .client-card:nth-child(2) {
  transition-delay: 0.12s;
}
.home-clients.in .client-card:nth-child(3) {
  transition-delay: 0.24s;
}
.home-clients.in .client-card:nth-child(4) {
  transition-delay: 0.36s;
}
.home-clients.in .client-card:nth-child(5) {
  transition-delay: 0.48s;
}
.client-card-photo,
.client-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.client-card-photo {
  display: block;
  object-fit: cover;
  filter: grayscale(1) saturate(0.7) contrast(1.05);
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
}
.client-card-shade {
  background: linear-gradient(
    180deg,
    rgba(8, 23, 30, 0.82),
    transparent 32%,
    rgba(8, 23, 30, 0.34) 100%
  );
}
.client-card-head {
  position: absolute;
  top: 22px;
  left: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}
.client-card-head svg,
.client-card-head img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.client-card-index {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.client-card:hover .client-card-photo {
  filter: grayscale(0.35) saturate(0.8) contrast(1.05);
  transform: scale(1.04);
}
@media (max-width: 700px) {
  .clients-intro {
    margin-top: -18px;
    margin-bottom: 30px;
  }
  .client-card {
    flex-basis: 72vw;
    height: 420px;
  }
}

/* ---------- collage "Layanan utama": responsive (tablet & mobile) ---------- */
@media (max-width: 900px) {
  .collage {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 6vw, 36px);
    aspect-ratio: auto;
    margin-bottom: clamp(40px, 10vw, 72px);
  }
  .c-label,
  .c-intro {
    position: static;
    width: auto;
    max-width: 34ch;
  }
  .c-label {
    font-size: clamp(44px, 14vw, 84px);
    line-height: 0.9;
  }
  .c-intro {
    font-size: clamp(17px, 4.6vw, 22px);
  }
  .ph {
    position: relative;
    left: auto;
    top: auto;
    width: var(--mw, 80%);
    translate: none;
  }
  .ph.a {
    --mw: 84%;
    align-self: flex-start;
  }
  .ph.b {
    --mw: 58%;
    align-self: flex-end;
  }
  .ph.c {
    --mw: 72%;
    align-self: flex-start;
    margin-left: 10%;
  }
}
@media (min-width: 560px) and (max-width: 900px) {
  .ph.a {
    --mw: 64%;
  }
  .ph.b {
    --mw: 44%;
  }
  .ph.c {
    --mw: 54%;
  }
}

/* ---------- fix: pola kotak tidak hilang saat section selesai di-reveal ---------- */
/* ::before z-index:-1 jatuh ke belakang background section begitu .rv selesai animasi (stacking context hilang).
   isolation membuat section jadi stacking context permanen, jadi pola selalu di atas background-nya. */
.home-section {
  isolation: isolate;
}

/* ---------- daftar artikel terbaru (Sanity) ---------- */
.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.article-item a {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr) auto;
  gap: 8px clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  transition:
    padding 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s;
}
.article-item a:hover {
  padding-left: 12px;
  color: var(--teal);
}
.article-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-cat {
  color: var(--teal);
  font-weight: 600;
}
.article-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.article-title {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.article-sum {
  max-width: 56ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.article-arrow {
  font-size: 22px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article-item a:hover .article-arrow {
  transform: translateX(6px);
}
.article-all {
  display: inline-block;
  margin-top: 28px;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.article-all:hover {
  color: var(--teal);
}
@media (max-width: 700px) {
  .article-item a {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .article-meta {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
  }
}

/* teks panjang tanpa spasi tidak boleh menembus daftar artikel */
.article-item a,
.article-title,
.article-sum {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============================================================
   Section Artikel (beranda). Prefix ar-.
   Daftar judul besar; rincian (ringkasan, kategori, tanggal)
   terbuka saat disorot. Item pertama terbuka secara default.
   Di layar sentuh dan layar sempit, semua rincian terbuka.
   ============================================================ */
.ar-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.ar-head h2 {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: clamp(64px, 10vw, 148px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.085em;
}
.ar-lede {
  grid-column: 9 / -1;
  max-width: 24em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
}
.ar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.ar-item {
  border-bottom: 1px solid var(--line);
}
.ar-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: start;
  padding: clamp(22px, 2.8vw, 40px) 0;
  color: var(--fg);
  text-decoration: none;
  transition:
    padding 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s;
}
.ar-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ar-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.ar-arrow {
  width: clamp(24px, 3vw, 40px);
  height: clamp(24px, 3vw, 40px);
  margin-top: 0.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s;
}
.ar-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ar-more-in {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.55s;
}
.ar-sum {
  display: block;
  max-width: 56ch;
  margin-top: 20px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
}
.ar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.ar-cat {
  color: var(--teal);
  font-weight: 500;
}

/* keadaan terbuka */
.ar-item:hover .ar-more,
.ar-item:focus-within .ar-more,
.ar-list:not(:hover):not(:focus-within) .ar-item:first-child .ar-more {
  grid-template-rows: 1fr;
}
.ar-item:hover .ar-more-in,
.ar-item:focus-within .ar-more-in,
.ar-list:not(:hover):not(:focus-within) .ar-item:first-child .ar-more-in {
  visibility: visible;
  transition: visibility 0s;
}
.ar-link:hover,
.ar-link:focus-visible {
  padding-left: 14px;
  color: var(--teal);
}
.ar-link:hover::after,
.ar-link:focus-visible::after {
  transform: none;
}
.ar-link:hover .ar-arrow,
.ar-link:focus-visible .ar-arrow {
  color: var(--teal);
  transform: translateX(6px);
}
.ar-link:hover .ar-sum,
.ar-link:focus-visible .ar-sum {
  color: var(--muted);
}

.ar-all {
  display: inline-block;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.ar-all i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ar-all:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.ar-all:hover i {
  transform: translateX(6px);
}

.ar-empty {
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
}
.ar-empty p {
  max-width: 15em;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.ar-empty p span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .ar-head h2,
  .ar-lede {
    grid-column: 1 / -1;
  }
}
@media (hover: none), (max-width: 700px) {
  .ar-more {
    grid-template-rows: 1fr;
  }
  .ar-more-in {
    visibility: visible;
  }
  .ar-link:hover {
    padding-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ar-link,
  .ar-link::after,
  .ar-arrow,
  .ar-more,
  .ar-all i {
    transition: none;
  }
}

/* ============================================================
   SEO: tautan lanjutan (sv-more), tautan di intro layanan, dan pertanyaan umum (fq-).
   ============================================================ */
.sv-more {
  margin: clamp(40px, 5vw, 72px) 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}
.sv-more a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  text-decoration: none;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.sv-more a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.fq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 72px) 24px;
  align-items: start;
}
.fq-grid h2 {
  grid-column: 1 / span 5;
  margin: 0;
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.085em;
}
.fq-list {
  grid-column: 7 / -1;
  border-top: 1px solid var(--line-strong);
}
.fq-item {
  border-bottom: 1px solid var(--line);
}
.fq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  list-style: none;
  transition: color 0.3s;
}
.fq-item summary::-webkit-details-marker {
  display: none;
}
.fq-item summary:hover {
  color: var(--teal);
}
.fq-item summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.fq-item summary i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.fq-item summary i::before,
.fq-item summary i::after {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fq-item summary i::after {
  transform: rotate(90deg);
}
.fq-item[open] summary i::after {
  transform: rotate(0deg);
}
.fq-item p {
  max-width: 52ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  animation: fq-open 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .fq-grid h2,
  .fq-list {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fq-item p {
    animation: none;
  }
}

.c-intro a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.c-intro a:hover {
  border-color: var(--teal);
  color: var(--teal);
}
