.home-overview {
  background: var(--surface-warm);
}

.home-overview > .container {
  width: min(100% - 24px, 1280px);
}

@media (min-width: 1400px) {
  .home-overview > .container {
    width: min(100% - 28px, 1360px);
  }
}

.home-overview-intro {
  max-width: min(100%, 880px);
  margin-bottom: 34px;
}

.home-overview-intro p {
  color: var(--muted);
}

.home-service-stream {
  display: grid;
  gap: clamp(22px, 3.2vw, 34px);
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-service-stream--mobile {
  display: none;
}

.home-service-stream-featured {
  display: grid;
  gap: clamp(22px, 3.2vw, 34px);
}

.home-service-catalog {
  margin-top: 6px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(10, 168, 150, 0.16);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(155deg, rgba(10, 168, 150, 0.09), rgba(255, 225, 154, 0.1)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(20, 33, 38, 0.08);
}

.home-service-catalog-head {
  margin-bottom: 14px;
}

.home-service-catalog-head .eyebrow {
  margin-bottom: 8px;
}

.home-service-catalog-head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.12rem, 4.6vw, 1.32rem);
  line-height: 1.25;
}

.home-service-catalog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-service-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-service-catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 33, 38, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-service-catalog-card.is-powder {
  border-color: rgba(10, 168, 150, 0.34);
  background: linear-gradient(180deg, rgba(10, 168, 150, 0.06), var(--surface) 42%);
}

.home-service-catalog-card:hover,
.home-service-catalog-card:focus-visible {
  border-color: rgba(10, 168, 150, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.home-service-catalog-media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: rgba(20, 33, 38, 0.08);
}

.home-service-catalog-media::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(8, 24, 30, 0.42));
  pointer-events: none;
}

.home-service-catalog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-service-catalog-media img.is-deferred-src:not([src]) {
  visibility: hidden;
}

.home-service-catalog-index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #102224;
  background: linear-gradient(135deg, #ffe19a, #52cdbf);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.home-service-catalog-body {
  display: grid;
  gap: 6px;
  padding: 11px 12px 12px;
}

.home-service-catalog-tag {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(10, 168, 150, 0.1);
  border: 1px solid rgba(10, 168, 150, 0.2);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-service-catalog-body strong {
  display: -webkit-box;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.32;
}

.home-service-catalog-arrow {
  justify-self: end;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(10, 168, 150, 0.12);
  font-size: 0.92rem;
  font-weight: 900;
}

@media (max-width: 768px) {
  .home-service-stream--desktop {
    display: none;
  }

  .home-service-stream--mobile {
    display: grid;
    gap: clamp(20px, 4vw, 28px);
  }

  .home-service-stream-featured .home-service-post:nth-child(n + 2),
  .home-service-catalog {
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
  }

  .home-service-catalog-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
  }
}

.home-service-post {
  position: relative;
}

.home-service-post-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 16px 40px rgba(20, 33, 38, 0.09);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.home-service-post.is-media-right .home-service-post-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}

.home-service-post.is-media-right .home-service-post-media {
  order: 2;
}

.home-service-post-shell::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--teal), var(--cyan), var(--amber));
  pointer-events: none;
}

.home-service-post.is-media-right .home-service-post-shell::before {
  inset: 0 0 0 auto;
}

.home-service-post-shell:hover,
.home-service-post-shell:focus-visible {
  border-color: rgba(10, 168, 150, 0.36);
  box-shadow: var(--shadow-strong);
  transform: translateY(-5px);
}

.home-service-post-media {
  position: relative;
  display: block;
  align-self: stretch;
  min-height: 320px;
  overflow: hidden;
  background: rgba(20, 33, 38, 0.08);
}

.home-service-post-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, rgba(8, 24, 30, 0.34), transparent 62%);
  pointer-events: none;
}

.home-service-post.is-media-right .home-service-post-media::after {
  background: linear-gradient(260deg, rgba(8, 24, 30, 0.34), transparent 62%);
}

.home-service-post-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 680ms ease, filter 680ms ease;
}

.home-service-post-shell:hover .home-service-post-media img,
.home-service-post-shell:focus-visible .home-service-post-media img {
  filter: saturate(1.08);
  transform: scale(1.03);
}

.home-service-post-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  color: #102224;
  background: linear-gradient(135deg, #ffe19a, #52cdbf);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-service-post-body {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: clamp(22px, 3.2vw, 34px) clamp(24px, 3.4vw, 38px);
}

.home-service-post-kicker {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(10, 168, 150, 0.1);
  border: 1px solid rgba(10, 168, 150, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-service-post-body h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1.24;
}

.home-service-post-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.66;
}

.home-service-post-benefits {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.home-service-post-benefits li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-service-post-benefits li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  content: "✓";
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.home-service-post-outcome {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(10, 168, 150, 0.1), rgba(255, 225, 154, 0.16));
  border: 1px solid rgba(10, 168, 150, 0.18);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-service-post-outcome span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-service-post-phone {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-service-post-phone a {
  color: var(--teal);
  text-decoration: none;
}

.home-service-post-phone a:hover,
.home-service-post-phone a:focus-visible {
  text-decoration: underline;
}

.home-service-post-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), #2f9f9a);
  box-shadow: 0 12px 26px rgba(10, 168, 150, 0.28);
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-service-post-cta::after {
  content: "→";
  margin-left: 8px;
  transition: transform 180ms ease;
}

.home-service-post-shell:hover .home-service-post-cta,
.home-service-post-shell:focus-visible .home-service-post-cta {
  box-shadow: 0 14px 30px rgba(10, 168, 150, 0.36);
  transform: translateY(-1px);
}

.home-service-post-shell:hover .home-service-post-cta::after,
.home-service-post-shell:focus-visible .home-service-post-cta::after {
  transform: translateX(4px);
}

.reveal-slide {
  opacity: 0;
  transition:
    opacity 900ms cubic-bezier(0.22, 0.74, 0.2, 1),
    transform 900ms cubic-bezier(0.22, 0.74, 0.2, 1),
    filter 900ms ease;
  will-change: opacity, transform;
}

.reveal-slide.from-side-left {
  transform: translate3d(-88px, 10px, 0);
}

.reveal-slide.from-side-right {
  transform: translate3d(88px, 10px, 0);
}

.reveal-slide.is-visible {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0);
}

.home-service-extra {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(20, 33, 38, 0.1);
}

.home-service-extra-head {
  margin-bottom: 16px;
}

.home-service-extra-head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.home-service-extra-head p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.home-service-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-service-extra-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 12px 28px rgba(20, 33, 38, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-service-extra-card.is-powder {
  border-color: rgba(10, 168, 150, 0.34);
  background: linear-gradient(135deg, rgba(10, 168, 150, 0.08), rgba(255, 225, 154, 0.12));
}

.home-service-extra-card:hover,
.home-service-extra-card:focus-visible {
  border-color: rgba(10, 168, 150, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.home-service-extra-media {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.home-service-extra-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-service-extra-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.28;
}

.home-service-extra-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.home-service-extra-badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(10, 168, 150, 0.1);
  border: 1px solid rgba(10, 168, 150, 0.2);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-service-extra-phone {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .home-service-extra-grid {
    grid-template-columns: 1fr;
  }

  .home-service-extra-card {
    grid-template-columns: 1fr;
  }

  .home-service-extra-media {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-slide.from-side-left,
  .reveal-slide.from-side-right {
    transform: translate3d(0, 18px, 0);
  }

  .reveal-slide.is-visible {
    transform: translate3d(0, 0, 0);
  }

  .home-service-post-shell:hover .home-service-post-media img,
  .home-service-post-shell:focus-visible .home-service-post-media img {
    transform: none;
  }
}

.home-insights {
  background:
    radial-gradient(circle at 12% 24%, rgba(10, 168, 150, 0.09), transparent 46%),
    radial-gradient(circle at 84% 76%, rgba(52, 95, 116, 0.1), transparent 52%),
    var(--surface);
}

.home-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.home-insights-copy p {
  color: var(--muted);
}

.home-people-total {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(10, 168, 150, 0.1);
  border: 1px solid rgba(10, 168, 150, 0.2);
}

.home-people-total strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.home-people-total span {
  font-size: 0.92rem;
  color: var(--muted);
}

.home-insights-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-insights-panel h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.home-bar-list {
  display: grid;
  gap: 12px;
}

.home-bar-row {
  display: grid;
  gap: 8px;
}

.home-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.95rem;
}

.home-bar-meta span {
  color: var(--ink-soft);
}

.home-bar-meta strong {
  color: var(--teal-dark);
}

.home-bar-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(52, 95, 116, 0.13), rgba(10, 168, 150, 0.1));
}

.home-bar-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--steel), var(--teal), var(--cyan));
  box-shadow: 0 6px 16px rgba(10, 168, 150, 0.2);
  animation: barRise 760ms ease both;
}

.home-schematic {
  position: absolute;
  right: -18px;
  bottom: -12px;
  width: 180px;
  height: 110px;
  pointer-events: none;
  opacity: 0.78;
}

.scheme-line {
  position: absolute;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 168, 150, 0.08), rgba(10, 168, 150, 0.58), rgba(216, 166, 58, 0.22));
}

.line-a {
  left: 10px;
  top: 26px;
  width: 132px;
  transform: rotate(11deg);
}

.line-b {
  left: 34px;
  top: 54px;
  width: 116px;
  transform: rotate(-10deg);
}

.line-c {
  left: 46px;
  top: 78px;
  width: 108px;
  transform: rotate(8deg);
}

.scheme-node {
  position: absolute;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(10, 168, 150, 0.3);
  animation: nodePulse 2.2s ease-in-out infinite;
}

.node-a {
  left: 138px;
  top: 21px;
}

.node-b {
  left: 151px;
  top: 49px;
  background: var(--amber);
  animation-delay: 0.35s;
}

.node-c {
  left: 158px;
  top: 74px;
  background: var(--cyan);
  animation-delay: 0.65s;
}

.compact-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-projects-showcase {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 242, 0.72)),
    var(--surface);
}

.home-bottom-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 1400px) {
  .home-bottom-project-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-bottom-project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  color: #ffffff;
  background: var(--panel-dark);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(20, 33, 38, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-bottom-project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 22%, rgba(8, 82, 77, 0.52));
  pointer-events: none;
  opacity: 0.86;
}

.home-bottom-project-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(10, 168, 150, 0.14), rgba(15, 66, 82, 0.12));
}

.home-bottom-project-image.is-broken {
  background: linear-gradient(135deg, rgba(10, 168, 150, 0.18), rgba(15, 66, 82, 0.14));
}

.home-bottom-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 520ms ease, filter 520ms ease, opacity 220ms ease;
}
.home-bottom-project-image.is-broken img {
  opacity: 0;
}

.home-bottom-project-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.home-bottom-project-copy strong {
  font-size: 1.08rem;
  line-height: 1.22;
}

.home-bottom-project-copy ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-bottom-project-copy li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.3;
}

.home-bottom-project-copy li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
}

.home-bottom-project-card:hover,
.home-bottom-project-card:focus-visible {
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.home-bottom-project-card:hover img,
.home-bottom-project-card:focus-visible img {
  filter: saturate(1.12);
  opacity: 1;
  transform: scale(1.05);
}

.home-team-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(10, 168, 150, 0.1), transparent 36%),
    radial-gradient(circle at 86% 72%, rgba(52, 95, 116, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 242, 0.82)),
    var(--surface);
}

.home-team-intro {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-team-org {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: stretch;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(10, 168, 150, 0.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 205, 191, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 244, 0.74));
  box-shadow: 0 22px 64px rgba(20, 33, 38, 0.08);
}

.home-team-lead {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  justify-items: stretch;
}

.home-team-preview .home-team-director {
  width: 100%;
}

.home-team-note {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(10, 168, 150, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(10, 168, 150, 0.1), rgba(216, 166, 58, 0.08)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 34px rgba(20, 33, 38, 0.07);
}

.home-team-note strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.24;
}

.home-team-note span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.home-team-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.home-team-preview-card {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 13px;
  min-height: 100%;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(10, 168, 150, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.9);
}

.home-team-preview-card .home-team-photo {
  width: 76px;
  height: 76px;
}

.home-team-preview-card .home-team-copy {
  gap: 7px;
}

.home-team-preview-card .home-team-copy strong {
  font-size: 1rem;
}

.home-team-preview-card .home-team-copy em {
  -webkit-line-clamp: 4;
  overflow: visible;
  display: block;
}

.home-team-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(20, 33, 38, 0.08);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-team-card::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  content: "";
  background: var(--team-color);
}

.home-team-card::after {
  position: absolute;
  right: -52px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(10, 168, 150, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.home-team-card:hover,
.home-team-card:focus-visible,
.home-team-card:active,
.home-team-card:focus-within {
  border-color: rgba(8, 123, 112, 0.26);
  box-shadow: var(--shadow-strong);
  transform: translateY(-5px);
}

.home-team-strip {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  padding: 18px 12px 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 33, 38, 0.08);
  box-shadow: 0 16px 48px rgba(20, 33, 38, 0.07);
}

.home-team-track {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  padding-bottom: 4px;
}

.home-team-track-copy {
  display: none;
}

.home-team-strip::-webkit-scrollbar {
  height: 8px;
}

.home-team-strip::-webkit-scrollbar-thumb {
  background: rgba(10, 168, 150, 0.28);
  border-radius: 999px;
}

.home-team-strip::-webkit-scrollbar-track {
  background: transparent;
}

.home-team-card.home-team-chip {
  min-width: 260px;
  max-width: 320px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 1px solid rgba(20, 33, 38, 0.08);
  box-shadow: 0 20px 40px rgba(20, 33, 38, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.home-team-card.home-team-chip:hover,
.home-team-card.home-team-chip:focus-visible,
.home-team-card.home-team-chip:active,
.home-team-card.home-team-chip:focus-within {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 24px 50px rgba(20, 33, 38, 0.12);
}

.home-team-card.home-team-chip::before,
.home-team-card.home-team-chip::after {
  display: none;
}

.home-team-card.home-team-chip .home-team-copy {
  gap: 4px;
}

.home-team-card.home-team-chip .home-team-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.home-team-card.home-team-chip .home-team-copy em {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-team-card.home-team-chip .home-team-department {
  display: none;
}

.home-team-director {
  width: min(100%, 560px);
  min-height: 174px;
  grid-template-columns: 106px minmax(0, 1fr);
  color: #ffffff;
  background: linear-gradient(135deg, var(--team-color), var(--panel-dark));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-strong);
}

.home-team-director::before {
  right: 0;
  bottom: auto;
  width: auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
}

.home-team-director::after {
  border-color: rgba(255, 255, 255, 0.18);
}

.home-team-photo {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
}

.home-team-director .home-team-photo {
  width: 106px;
  height: 106px;
}

.home-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.home-team-photo small {
  position: absolute;
  right: -4px;
  bottom: 0;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  color: #ffffff;
  background: var(--team-color);
  border: 3px solid var(--surface);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.home-team-director .home-team-photo small {
  border-color: rgba(255, 255, 255, 0.92);
}

.home-team-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-team-department {
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.home-team-director .home-team-department {
  color: rgba(255, 255, 255, 0.72);
}

.home-team-copy strong {
  font-size: 1.02rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-team-director .home-team-copy strong {
  font-size: 1.36rem;
}

.home-team-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-team-director .home-team-copy em {
  color: rgba(255, 255, 255, 0.78);
  -webkit-line-clamp: 3;
}

.home-team-line {
  position: relative;
  justify-self: center;
  width: min(74%, 760px);
  height: 46px;
}

.home-team-line::before,
.home-team-line::after {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, rgba(10, 168, 150, 0.06), rgba(10, 168, 150, 0.44), rgba(56, 170, 184, 0.22));
}

.home-team-line::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.home-team-line::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

.home-team-manager-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  padding-top: 18px;
  align-items: start;
}

.home-team-group {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(10, 168, 150, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(10, 168, 150, 0.08), rgba(52, 95, 116, 0.07)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(20, 33, 38, 0.08);
  align-self: start;
}

.home-team-group::before {
  position: absolute;
  left: 50%;
  top: -24px;
  width: 2px;
  height: 24px;
  content: "";
  background: linear-gradient(180deg, rgba(10, 168, 150, 0.12), var(--team-color));
  transform: translateX(-50%);
}

.home-team-group::after {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--team-color);
  box-shadow: 0 0 0 6px rgba(10, 168, 150, 0.08), 0 0 18px rgba(10, 168, 150, 0.18);
  transform: translateX(-50%);
}

.home-team-branch {
  position: relative;
  width: 2px;
  height: 20px;
  justify-self: center;
  background: linear-gradient(180deg, var(--team-color), rgba(10, 168, 150, 0.1));
}

.home-team-branch::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(190px, 76%);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(10, 168, 150, 0.08), rgba(56, 170, 184, 0.44), rgba(10, 168, 150, 0.08));
  transform: translateX(-50%);
}

.home-team-report-node {
  position: relative;
  display: grid;
  min-width: 0;
}

.home-team-report-node::before {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 2px;
  height: 10px;
  content: "";
  background: linear-gradient(180deg, rgba(56, 170, 184, 0.48), var(--team-color));
  transform: translateX(-50%);
}

.home-team-report-node .home-team-card {
  z-index: 1;
}

.home-team-empty {
  display: block;
  padding: 12px;
  color: var(--muted);
  border: 1px dashed rgba(10, 168, 150, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}

.home-team-manager {
  min-height: 154px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--team-color), #142126);
  border-color: rgba(255, 255, 255, 0.16);
}

.home-team-manager::before {
  background: linear-gradient(180deg, var(--cyan), var(--amber));
}

.home-team-manager .home-team-department {
  color: rgba(255, 255, 255, 0.72);
}

.home-team-manager .home-team-copy em {
  color: rgba(255, 255, 255, 0.78);
}

.home-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 2px;
}

.home-team-specialist {
  min-height: 112px;
  grid-template-columns: 66px minmax(0, 1fr);
  padding: 12px 14px;
  color: #142126;
  background: rgba(255, 255, 255, 0.88);
}

.home-team-specialist .home-team-department {
  color: var(--teal);
}

.home-team-specialist .home-team-photo {
  width: 66px;
  height: 66px;
}

.home-team-specialist .home-team-copy strong {
  font-size: 0.96rem;
}

.home-team-specialist .home-team-copy em {
  color: rgba(20, 33, 38, 0.68);
  font-size: 0.82rem;
  -webkit-line-clamp: 2;
}

.home-partners-strip {
  background:
    linear-gradient(135deg, rgba(237, 244, 242, 0.92), rgba(255, 255, 255, 0.88)),
    var(--surface-warm);
}

.home-partners-strip .section-copy {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.home-partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-partner-logo {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(20, 33, 38, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-partner-logo::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.home-partner-logo img {
  max-width: 158px;
  max-height: 64px;
  object-fit: contain;
  background: transparent;
  filter: grayscale(0.1);
  opacity: 0.95;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

body.ui-theme-dark .home-partner-logo img {
  background: transparent;
}

.home-partner-logo:hover,
.home-partner-logo:focus-visible {
  border-color: rgba(8, 123, 112, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.home-partner-logo:hover::before,
.home-partner-logo:focus-visible::before {
  transform: scaleX(1);
}

.home-partner-logo:hover img,
.home-partner-logo:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

.home-contact-cta {
  padding: 42px 0 76px;
  background: var(--surface);
}

.home-certificates-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 242, 0.84)),
    var(--surface);
}

.home-certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 360px));
  justify-content: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.home-certificates-section .section-head {
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  max-width: 900px;
}

.home-certificates-section .section-copy {
  max-width: 760px;
}

.home-certificate-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 0;
  border: 1px solid rgba(8, 123, 112, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(20, 33, 38, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-certificate-card::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
}

.home-certificate-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: var(--surface-warm);
  transition: transform 520ms ease, filter 520ms ease;
}

.home-certificate-card-featured img {
  aspect-ratio: 16 / 11;
  object-fit: contain;
  padding: 10px;
  background: #ffffff;
}

.home-certificate-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 27, 31, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.home-certificate-card:hover,
.home-certificate-card:focus-visible {
  border-color: rgba(8, 123, 112, 0.32);
  box-shadow: var(--shadow-strong);
  transform: translateY(-5px);
}

.home-certificate-card:hover img,
.home-certificate-card:focus-visible img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.035);
}

.home-contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px;
  color: #ffffff;
  background: var(--panel-dark);
  border-radius: var(--radius);
}

.home-contact-inner h2 {
  margin: 0 0 8px;
}

.home-contact-inner p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 900px) {
  .home-overview-grid,
  .home-insights-grid {
    grid-template-columns: 1fr;
  }

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

  .home-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-team-manager-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-team-org {
    grid-template-columns: 1fr;
  }

  .home-team-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-team-line {
    width: min(68%, 520px);
  }

  .home-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-service-post-shell,
  .home-service-post.is-media-right .home-service-post-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  }

  .home-contact-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .home-insights-panel {
    padding-bottom: 14px;
  }

  .home-schematic {
    width: 150px;
    height: 94px;
  }
}

@media (max-width: 560px) {
  .home-service-post-shell,
  .home-service-post.is-media-right .home-service-post-shell {
    grid-template-columns: 1fr;
  }

  .home-service-post.is-media-right .home-service-post-media {
    order: unset;
  }

  .home-service-post-shell::before,
  .home-service-post.is-media-right .home-service-post-shell::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 4px;
  }

  .home-service-post-media {
    align-self: auto;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    max-height: none;
  }

  .home-service-post-media img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
  }

  .reveal-slide.from-side-left,
  .reveal-slide.from-side-right {
    transform: translate3d(0, 32px, 0);
  }

  .reveal-slide.is-visible {
    transform: translate3d(0, 0, 0);
  }

  .home-insights-panel {
    padding: 18px 14px 14px;
  }

  .home-bar-meta {
    font-size: 0.9rem;
  }

  .home-schematic {
    display: none;
  }

  .home-bottom-project-grid {
    grid-template-columns: 1fr;
  }

  .home-team-grid {
    grid-template-columns: 1fr;
  }

  .home-team-manager-grid {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .home-team-org {
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }

  .home-team-preview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-team-note {
    padding: 14px;
    border-radius: 20px;
  }

  .home-team-line {
    width: 2px;
    height: 32px;
  }

  .home-team-line::after {
    display: none;
  }

  .home-team-group::before {
    top: -16px;
    height: 16px;
  }

  .home-team-branch::after {
    width: 2px;
  }

  .home-team-card,
  .home-team-director {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 118px;
    padding: 14px;
  }

  .home-team-preview-card {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 112px;
  }

  .home-team-group {
    padding: 10px;
    border-radius: 22px;
  }

  .home-team-director {
    width: 100%;
  }

  .home-team-photo,
  .home-team-director .home-team-photo {
    width: 72px;
    height: 72px;
  }

  .home-team-director .home-team-copy strong {
    font-size: 1.08rem;
  }

  .home-team-copy em,
  .home-team-director .home-team-copy em {
    font-size: 0.84rem;
    -webkit-line-clamp: 2;
  }

  .home-bottom-project-copy strong {
    font-size: 1.16rem;
    max-width: 100%;
    line-height: 1.26;
    overflow-wrap: anywhere;
  }

  .home-contact-inner {
    padding: 18px;
    gap: 14px;
  }

  .home-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-certificate-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-partner-logo {
    min-height: 90px;
    padding: 14px;
  }

  .home-partner-logo img {
    max-width: 136px;
    max-height: 54px;
  }

  .home-contact-inner h2 {
    font-size: 1.28rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .home-contact-inner p {
    font-size: 0.94rem;
  }
}

.home-overview {
  background:
    linear-gradient(135deg, rgba(237, 244, 242, 0.96), rgba(255, 255, 255, 0.84)),
    var(--surface-warm);
  background-repeat: no-repeat;
}

.home-bottom-project-card img {
  transition: transform 520ms ease, filter 520ms ease, opacity 220ms ease;
}

.home-bottom-project-card:hover img {
  filter: saturate(1.12);
  transform: scale(1.04);
}

.home-contact-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--panel-dark), var(--panel-teal));
  box-shadow: var(--shadow-strong);
}

.home-contact-inner::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent, rgba(56, 170, 184, 0.16), transparent);
  background-repeat: no-repeat;
  transform: translateX(-70%);
  animation: homeCtaSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.home-contact-inner > * {
  position: relative;
  z-index: 1;
}

@keyframes homeCtaSweep {
  0%, 55% { transform: translateX(-70%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(70%); opacity: 0; }
}

@keyframes barRise {
  0% {
    width: 0;
    filter: saturate(0.8);
  }
  100% {
    filter: saturate(1);
  }
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(10, 168, 150, 0.3);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 8px rgba(10, 168, 150, 0);
  }
}

body.ui-theme-dark .home-overview {
  background:
    linear-gradient(135deg, rgba(24, 39, 48, 0.96), rgba(19, 32, 40, 0.9)),
    var(--surface-warm);
  background-repeat: no-repeat;
}

body.ui-theme-dark .home-service-post-shell {
  background: rgba(16, 28, 34, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

body.ui-theme-dark .home-service-post-lead {
  color: rgba(230, 240, 244, 0.72);
}

body.ui-theme-dark .home-service-post-benefits li {
  color: rgba(244, 248, 249, 0.9);
}

body.ui-theme-dark .home-service-catalog {
  border-color: rgba(82, 205, 191, 0.22);
  background:
    linear-gradient(155deg, rgba(10, 168, 150, 0.14), rgba(20, 33, 38, 0.72)),
    var(--panel);
}

body.ui-theme-dark .home-service-catalog-card {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.1);
}

body.ui-theme-dark .home-service-post-outcome {
  color: rgba(244, 248, 249, 0.9);
  background: linear-gradient(135deg, rgba(10, 168, 150, 0.16), rgba(255, 225, 154, 0.08));
  border-color: rgba(255, 255, 255, 0.12);
}

body.ui-theme-dark .home-partners-strip {
  background:
    linear-gradient(135deg, rgba(24, 39, 48, 0.94), rgba(18, 30, 36, 0.88)),
    var(--surface-warm);
}

body.ui-theme-dark .home-certificates-section {
  background:
    linear-gradient(135deg, rgba(18, 30, 36, 0.96), rgba(16, 26, 33, 0.84)),
    var(--surface);
}

body.ui-theme-dark .home-projects-showcase {
  background:
    linear-gradient(180deg, rgba(18, 30, 36, 0.96), rgba(16, 26, 33, 0.84)),
    var(--surface);
}

body.ui-theme-dark .home-team-showcase {
  background:
    radial-gradient(circle at 12% 18%, rgba(82, 205, 191, 0.1), transparent 36%),
    radial-gradient(circle at 86% 72%, rgba(120, 164, 182, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(18, 30, 36, 0.96), rgba(16, 26, 33, 0.86)),
    var(--surface);
}

body.ui-theme-dark .home-team-org {
  border-color: rgba(82, 205, 191, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 205, 191, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(20, 35, 40, 0.94), rgba(11, 25, 28, 0.82));
}

body.ui-theme-dark .home-team-group {
  background:
    linear-gradient(145deg, rgba(82, 205, 191, 0.1), rgba(120, 164, 182, 0.08)),
    rgba(18, 30, 36, 0.82);
}

body.ui-theme-dark .home-team-empty {
  background: rgba(255, 255, 255, 0.05);
}

/* Keep every non-director portrait round while cards stay hierarchy-friendly. */
.home-team-card:not(.home-team-director) {
  border-radius: 24px;
}

.home-team-card:not(.home-team-director) .home-team-photo {
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78)),
    var(--team-color);
  box-shadow: 0 12px 24px rgba(6, 32, 38, 0.18);
}

.home-team-card:not(.home-team-director) .home-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}

.home-team-card:not(.home-team-director) .home-team-photo small {
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(6, 32, 38, 0.2);
}

/* ── Premium team showcase redesign ─────────────────────────────── */

/* Outer container — dark premium panel */
.home-team-org.home-team-preview {
  gap: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(82, 205, 191, 0.22);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 14%, rgba(10, 168, 150, 0.22), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(52, 95, 116, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(8, 22, 26, 0.97), rgba(10, 35, 40, 0.98));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.ui-theme-light .home-team-org.home-team-preview {
  border-color: rgba(10, 168, 150, 0.18);
  background:
    radial-gradient(circle at 18% 14%, rgba(10, 168, 150, 0.12), transparent 40%),
    radial-gradient(circle at 80% 76%, rgba(52, 95, 116, 0.1), transparent 44%),
    linear-gradient(145deg, rgba(13, 27, 32, 0.97), rgba(11, 38, 44, 0.98));
}

/* Director card upgrade — luminous glass */
.home-team-org.home-team-preview .home-team-director {
  min-height: 190px;
  padding: 22px;
  grid-template-columns: 114px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(10, 168, 150, 0.9), rgba(8, 82, 76, 0.86) 55%, rgba(12, 38, 44, 0.92));
  box-shadow:
    0 20px 54px rgba(10, 168, 150, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.home-team-org.home-team-preview .home-team-director .home-team-photo {
  width: 114px;
  height: 114px;
}

.home-team-org.home-team-preview .home-team-director .home-team-photo img {
  border: 3px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.home-team-org.home-team-preview .home-team-director .home-team-department {
  color: rgba(182, 246, 238, 0.9);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.home-team-org.home-team-preview .home-team-director .home-team-copy strong {
  font-size: 1.48rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.home-team-org.home-team-preview .home-team-director .home-team-copy em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

/* Team note — glassmorphic on dark */
.home-team-org.home-team-preview .home-team-note {
  border: 1px solid rgba(82, 205, 191, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(82, 205, 191, 0.12), rgba(56, 170, 184, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.home-team-org.home-team-preview .home-team-note strong {
  color: #ffffff;
  font-size: 1.04rem;
}

.home-team-org.home-team-preview .home-team-note span {
  color: rgba(200, 238, 234, 0.72);
  font-size: 0.9rem;
}

/* Preview grid — 3 colorful gradient cards */
.home-team-org.home-team-preview .home-team-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.home-team-org.home-team-preview .home-team-preview-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 20px 18px 18px;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(155deg, var(--team-color), #0d2228 82%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.home-team-org.home-team-preview .home-team-preview-card::after {
  position: absolute;
  right: -44px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.home-team-org.home-team-preview .home-team-preview-card::before {
  display: none;
}

.home-team-org.home-team-preview .home-team-preview-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 62px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Photo row inside preview card */
.home-team-org.home-team-preview .home-team-preview-card .home-team-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  margin-bottom: 14px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78)),
    var(--team-color);
}

.home-team-org.home-team-preview .home-team-preview-card .home-team-photo img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}

.home-team-org.home-team-preview .home-team-preview-card .home-team-photo small {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  border-radius: 50%;
}

/* Text inside preview card */
.home-team-org.home-team-preview .home-team-preview-card .home-team-copy {
  flex: 1 1 auto;
  gap: 6px;
}

.home-team-org.home-team-preview .home-team-preview-card .home-team-department {
  color: rgba(200, 246, 240, 0.82);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

.home-team-org.home-team-preview .home-team-preview-card .home-team-copy strong {
  color: #ffffff;
  font-size: 1.04rem;
  line-height: 1.2;
}

.home-team-org.home-team-preview .home-team-preview-card .home-team-copy em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.42;
  -webkit-line-clamp: 3;
}

@media (max-width: 900px) {
  .home-team-org.home-team-preview {
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

  .home-team-org.home-team-preview .home-team-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .home-team-org.home-team-preview .home-team-preview-card {
    min-height: 186px;
    padding: 16px 14px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .home-team-org.home-team-preview {
    border-radius: 26px;
    padding: 14px;
  }

  .home-team-org.home-team-preview .home-team-director {
    grid-template-columns: 90px minmax(0, 1fr);
    min-height: 156px;
    padding: 16px;
  }

  .home-team-org.home-team-preview .home-team-director .home-team-photo {
    width: 90px;
    height: 90px;
  }

  .home-team-org.home-team-preview .home-team-director .home-team-copy strong {
    font-size: 1.2rem;
  }

  .home-team-org.home-team-preview .home-team-preview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-team-org.home-team-preview .home-team-preview-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .home-team-org.home-team-preview .home-team-preview-card::after {
    display: none;
  }

  .home-team-org.home-team-preview .home-team-preview-card .home-team-photo {
    margin-bottom: 0;
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
  }

  .home-team-org.home-team-preview .home-team-preview-card .home-team-copy em {
    -webkit-line-clamp: 2;
  }
}
