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

.home-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: start;
}

.home-overview-copy {
  position: sticky;
  top: 110px;
}

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

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

.home-service-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.home-service-card img {
  width: 150px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.home-service-card strong {
  line-height: 1.25;
}

.home-service-card span {
  color: var(--muted);
}

.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;
}

.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;
}

.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-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-org {
  display: grid;
  gap: 18px;
}

.home-team-lead {
  display: grid;
  justify-items: center;
}

.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);
  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 {
  border-color: rgba(8, 123, 112, 0.26);
  box-shadow: var(--shadow-strong);
  transform: translateY(-5px);
}

.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: 54px;
}

.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 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.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: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.home-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 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: var(--surface);
  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: 132px;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.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: translateY(-2px);
}

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

.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-line {
    width: min(68%, 520px);
  }

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

  .home-overview-copy {
    position: static;
  }

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

  .home-service-card span {
    grid-column: 2;
  }

  .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-card {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  .home-service-card img {
    width: 100%;
  }

  .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;
  }

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

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

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

  .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 {
    gap: 8px;
  }

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

  .home-partner-logo img {
    max-width: 112px;
    max-height: 44px;
  }

  .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-service-card {
  position: relative;
  overflow: hidden;
}

.home-service-card::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--teal), var(--cyan), var(--amber));
}

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

.home-service-card:hover img,
.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-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-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);
}
