/*
 * zhangjiezhen.cn 首页视觉升级
 * 仅作用于 body.home-redesign，避免影响文章、案例与服务详情页。
 */

.home-redesign {
  --home-ink: #10263d;
  --home-ink-strong: #081a2c;
  --home-blue: #2f6f9f;
  --home-blue-soft: #e9f1f7;
  --home-amber: #d8a52d;
  --home-paper: #f5f7f9;
  --home-line: #dce4eb;
  --home-muted: #607182;
  --home-shadow: 0 18px 50px rgba(12, 33, 54, 0.08);
  background: #fff;
  color: var(--home-ink);
}

.home-redesign .container {
  max-width: 1220px;
}

.home-redesign .section {
  padding: 92px 0;
}

.home-redesign section.section.defer {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

.home-redesign .section-title {
  max-width: 820px;
  margin: 0 auto 48px;
}

.home-redesign .section-title h2,
.home-redesign .about-text h2,
.home-redesign .cta-title-home {
  color: var(--home-ink-strong);
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.home-redesign .section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.2;
}

.home-redesign .section-title h2::after {
  width: 46px !important;
  min-width: 46px;
  height: 3px !important;
  margin-top: 18px !important;
  background: var(--home-amber) !important;
}

.home-redesign .section-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.home-redesign .section-eyebrow,
.home-redesign .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-blue);
  font-family: var(--accent-font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-redesign .section-eyebrow::before,
.home-redesign .hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.home-redesign .mobile-scroll-hint {
  display: none;
}

/* Header */
.home-redesign .header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(4, 18, 32, 0.78), rgba(4, 18, 32, 0.42));
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-redesign .header .logo-title,
.home-redesign .header .logo-title span,
.home-redesign .header .logo-subtitle,
.home-redesign .header .nav-link {
  color: #fff;
}

.home-redesign .header .logo-subtitle {
  opacity: 0.7;
}

.home-redesign .header .nav-link::after {
  background: var(--home-amber);
}

.home-redesign .header .nav-contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.home-redesign .header.scrolled {
  border-bottom-color: rgba(10, 34, 55, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(9, 29, 47, 0.08);
}

.home-redesign .header.scrolled .logo-title,
.home-redesign .header.scrolled .logo-title span,
.home-redesign .header.scrolled .nav-link {
  color: var(--home-ink-strong);
}

.home-redesign .header.scrolled .logo-subtitle {
  color: var(--home-muted);
}

.home-redesign .header.scrolled .nav-contact-btn {
  border-color: var(--home-ink);
  background: var(--home-ink);
  color: #fff;
}

/* Hero */
.home-redesign .home-hero-section {
  position: relative;
  height: clamp(720px, 86vh, 860px);
  min-height: 720px;
  overflow: hidden;
  background: var(--home-ink-strong);
}

.home-redesign .hero-overlay,
.home-redesign .hero-image,
.home-redesign .hero-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-redesign .hero-image {
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(0.78) contrast(1.08);
  transform: scale(1.015);
}

.home-redesign .hero-gradient {
  background:
    linear-gradient(90deg, rgba(5, 20, 34, 0.95) 0%, rgba(7, 28, 47, 0.84) 37%, rgba(7, 28, 47, 0.2) 72%, rgba(7, 28, 47, 0.36) 100%),
    linear-gradient(0deg, rgba(5, 20, 34, 0.66) 0%, transparent 45%);
}

.home-redesign .hero-content-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 0;
  padding-top: 90px;
  padding-bottom: 70px;
}

.home-redesign .hero-content {
  width: min(720px, 64vw);
  text-align: left;
}

.home-redesign .hero-eyebrow {
  margin-bottom: 22px;
  color: #f1c65a;
}

.home-redesign .hero-title {
  margin: 0;
  color: #fff;
  font-family: var(--body-font);
  font-size: clamp(3.6rem, 6.2vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.04;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
}

.home-redesign .hero-title span {
  color: #f1c65a;
}

.home-redesign .hero-subtitle {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
  line-height: 1.85;
}

.home-redesign .hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}

.home-redesign .hero-button-primary,
.home-redesign .hero-button-secondary {
  min-width: 164px;
  padding: 15px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.home-redesign .hero-button-primary {
  border: 1px solid #f1c65a;
  background: #f1c65a;
  color: #11283c;
}

.home-redesign .hero-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

.home-redesign .hero-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.home-redesign .hero-scope span {
  position: relative;
  padding-left: 13px;
}

.home-redesign .hero-scope span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f1c65a;
  transform: translateY(-50%);
}

/* Trust metrics */
.home-redesign .home-proof {
  position: relative;
  z-index: 4;
  margin-top: -48px;
}

.home-redesign .home-proof .container {
  overflow: hidden;
  border: 1px solid rgba(16, 38, 61, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(9, 30, 50, 0.15);
}

.home-redesign .home-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home-redesign .home-proof-item {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-redesign .home-proof-item + .home-proof-item::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 1px;
  background: var(--home-line);
}

.home-redesign .home-proof-item strong {
  color: var(--home-ink-strong);
  font-family: var(--accent-font);
  font-size: 2.2rem;
  line-height: 1;
}

.home-redesign .home-proof-item sup {
  color: var(--home-amber);
  font-size: 0.5em;
  vertical-align: top;
}

.home-redesign .home-proof-item span {
  margin-top: 10px;
  color: var(--home-muted);
  font-size: 0.86rem;
}

.home-redesign .home-proof-note {
  margin: 0;
  padding: 10px 20px;
  border-top: 1px solid var(--home-line);
  background: #f8fafb;
  color: #82909d;
  font-size: 0.75rem;
  text-align: center;
}

/* About */
.home-redesign .about-section {
  padding-top: 112px;
  background: #fff;
}

.home-redesign .about-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(52px, 7vw, 96px);
}

.home-redesign .about-image {
  width: 100%;
}

.home-redesign .about-image-frame {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  border-radius: 18px;
  background: #edf1f4;
  box-shadow: var(--home-shadow);
}

.home-redesign .about-image-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  pointer-events: none;
}

.home-redesign .about-image-frame img {
  display: block;
  width: 100%;
  height: 530px;
  object-fit: cover;
  object-position: center 18%;
}

.home-redesign .about-image-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  background: rgba(7, 28, 47, 0.82);
  color: #fff;
  backdrop-filter: blur(12px);
}

.home-redesign .home-profile-title {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: baseline;
  gap: 18px;
}

.home-redesign .home-profile-title strong {
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.home-redesign .home-profile-title span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-redesign .home-profile-phone {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(239, 197, 111, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.home-redesign .home-profile-phone:hover,
.home-redesign .home-profile-phone:focus-visible {
  border-color: rgba(239, 197, 111, 0.75);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.home-redesign .home-profile-phone:focus-visible {
  outline: 2px solid #efc56f;
  outline-offset: 3px;
}

.home-redesign .home-profile-phone-icon {
  color: #efc56f;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1;
}

.home-redesign .home-profile-phone .home-profile-phone-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  line-height: 1;
}

.home-redesign .home-profile-phone b {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
}

.home-redesign .about-text h2 {
  margin: 14px 0 24px;
  font-size: clamp(2.35rem, 4vw, 3.4rem);
  line-height: 1.16;
}

.home-redesign .about-lead {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.home-redesign .about-capabilities {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.home-redesign .about-capabilities li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--home-line);
}

.home-redesign .about-capabilities li:last-child {
  border-bottom: 1px solid var(--home-line);
}

.home-redesign .about-capabilities strong {
  color: var(--home-ink-strong);
}

.home-redesign .about-capabilities span {
  color: var(--home-muted);
  line-height: 1.65;
}

.home-redesign .about-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.home-redesign .btn {
  border-radius: 7px;
}

.home-redesign .about-actions .btn,
.home-redesign .text-center > .btn {
  padding: 13px 22px;
  background: var(--home-ink);
  color: #fff;
}

.home-redesign .text-link {
  color: var(--home-blue);
  font-weight: 600;
}

/* Services */
.home-redesign .services-section {
  background:
    linear-gradient(rgba(16, 38, 61, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 61, 0.025) 1px, transparent 1px),
    var(--home-paper);
  background-size: 32px 32px;
}

.home-redesign .services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}

.home-redesign .service-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(14, 36, 57, 0.045);
}

.home-redesign .service-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(47, 111, 159, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(47, 111, 159, 0.035);
}

.home-redesign .service-card:hover {
  border-color: rgba(47, 111, 159, 0.35);
  box-shadow: var(--home-shadow);
  transform: translateY(-5px);
}

.home-redesign .service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-redesign .service-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(47, 111, 159, 0.25);
  border-radius: 50%;
  background: var(--home-blue-soft);
  color: var(--home-blue);
  font-family: var(--accent-font);
  font-size: 0.88rem;
  font-weight: 700;
}

.home-redesign .service-kicker {
  color: #8b99a7;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.home-redesign .service-title {
  margin: 26px 0 14px;
  color: var(--home-ink-strong);
  font-size: 1.28rem;
  font-weight: 700;
}

.home-redesign .service-description {
  flex: 1;
  margin: 0;
  color: var(--home-muted);
  line-height: 1.8;
}

.home-redesign .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0;
}

.home-redesign .service-tags span,
.home-redesign .cta-tags span {
  padding: 6px 9px;
  border-radius: 4px;
  background: #f0f4f7;
  color: #637485;
  font-size: 0.74rem;
}

.home-redesign .service-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
  color: var(--home-blue);
  font-size: 0.9rem;
  font-weight: 600;
}

.home-redesign .project-card {
  --project-accent: #b98525;
  --project-soft: #fff7e5;
  --project-line: rgba(185, 133, 37, 0.28);
  min-height: 350px;
  padding: 32px;
}

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

.home-redesign .project-card::after {
  border-color: var(--project-line);
  box-shadow: 0 0 0 22px rgba(47, 111, 159, 0.035);
}

.home-redesign .project-card-water {
  --project-accent: #2f8582;
  --project-soft: #eaf7f5;
  --project-line: rgba(47, 133, 130, 0.25);
}

.home-redesign .project-card-transport {
  --project-accent: #557b99;
  --project-soft: #edf3f7;
  --project-line: rgba(85, 123, 153, 0.25);
}

.home-redesign .project-card-digital {
  --project-accent: #596ea8;
  --project-soft: #eef1fa;
  --project-line: rgba(89, 110, 168, 0.25);
}

.home-redesign .project-card .service-icon {
  border-color: var(--project-line);
  background: var(--project-soft);
  color: var(--project-accent);
}

.home-redesign .project-card .service-kicker {
  color: var(--project-accent);
  font-weight: 700;
}

.home-redesign .project-card .service-title {
  max-width: 460px;
  margin-top: 24px;
  font-size: 1.38rem;
  line-height: 1.45;
}

.home-redesign .project-card .service-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.96rem;
}

.home-redesign .project-card .service-tags {
  margin: 20px 0;
}

.home-redesign .project-card .service-tags span {
  background: var(--project-soft);
  color: var(--project-accent);
}

.home-redesign .project-card-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--home-line);
}

.home-redesign .project-reference {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.home-redesign .project-reference small {
  color: #8a98a5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-redesign .project-reference span {
  overflow: hidden;
  color: var(--home-ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-redesign .project-arrow {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--project-line);
  border-radius: 50%;
  background: var(--project-soft);
  color: var(--project-accent);
  font-size: 1.1rem;
  font-weight: 700;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

@media (hover: hover) {
  .home-redesign .project-card:hover .project-arrow {
    background: var(--project-accent);
    color: #fff;
    transform: translateX(2px);
  }
}

.home-redesign .project-service-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.home-redesign .project-service-label {
  margin-right: 6px;
  color: #7c8b98;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-redesign .project-service-links a {
  padding: 6px 10px;
  border-radius: 5px;
  color: #52697b;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .home-redesign .project-service-links a:hover {
    background: var(--home-blue-soft);
    color: var(--home-blue);
  }
}

/* Cases */
.home-redesign .case-studies-section {
  background: #fff;
}

.home-redesign .case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-redesign .case-study-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(14, 36, 57, 0.05);
}

.home-redesign .case-study-card:hover {
  border-color: rgba(47, 111, 159, 0.35);
  box-shadow: var(--home-shadow);
  transform: translateY(-5px);
}

.home-redesign .case-study-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.home-redesign .case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-redesign .case-study-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.home-redesign .case-study-content h3 {
  font-size: 1.22rem;
  line-height: 1.48;
}

.home-redesign .case-study-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--home-muted);
  line-height: 1.75;
}

.home-redesign .case-study-stats {
  margin-top: auto;
}

/* Insights */
.home-redesign .home-insights-section {
  background: var(--home-paper);
}

.home-redesign .home-insights-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-redesign .home-insights-section .blog-card {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(14, 36, 57, 0.045);
}

.home-redesign .home-insights-section .blog-card-image {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.home-redesign .home-insights-section .blog-card-image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.home-redesign .home-insights-section .blog-card-content {
  padding: 22px;
}

.home-redesign .home-insights-section .blog-card-date {
  display: none;
}

.home-redesign .home-insights-section .blog-card-meta {
  gap: 10px;
  font-size: 0.74rem;
}

.home-redesign .home-insights-section .blog-card-title {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.1rem;
  line-height: 1.6;
}

.home-redesign .home-insights-section .blog-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--home-muted);
  line-height: 1.75;
}

.home-redesign .home-insights-section .blog-card .btn {
  padding: 0;
  background: transparent;
  color: var(--home-blue);
  box-shadow: none;
}

/* Client evidence */
.home-redesign .home-evidence-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.home-redesign .home-evidence-section::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 700px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 159, 0.08), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.home-redesign .clients-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.home-redesign .client-logo {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.home-redesign .client-logo:hover {
  border-color: rgba(47, 111, 159, 0.35);
  transform: translateY(-3px);
}

.home-redesign .client-logo img {
  display: block;
  width: 120px;
  height: 58px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: none;
}

.home-redesign .client-logo:hover img {
  filter: none;
  opacity: 1;
}

.home-redesign .client-name {
  margin-top: 10px;
  color: #758493;
  font-size: 0.78rem;
}

.home-redesign .home-testimonial-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 250px;
  align-items: center;
  gap: 28px;
  margin: 34px 0 0;
  padding: 34px 40px;
  border-radius: 12px;
  background: var(--home-ink-strong);
  color: #fff;
}

.home-redesign .home-testimonial-mark {
  color: #f1c65a;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.7;
  text-align: center;
}

.home-redesign .home-testimonial-card blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.85;
}

.home-redesign .home-testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.home-redesign .home-testimonial-card figcaption strong {
  color: #fff;
}

.home-redesign .home-testimonial-card figcaption span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* CTA */
.home-redesign .cta-section-home {
  padding: 20px 0 96px;
  background: #fff;
  opacity: 1 !important;
}

.home-redesign .cta-section-home .container {
  opacity: 1 !important;
  transform: none !important;
}

.home-redesign .cta-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 64px;
  overflow: hidden;
  padding: 58px 64px;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(30deg, #071a2c 0%, #102f49 100%);
  background-size: 26px 26px, auto;
  box-shadow: 0 28px 80px rgba(6, 25, 42, 0.18);
}

.home-redesign .cta-shell::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(241, 198, 90, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(241, 198, 90, 0.035), 0 0 0 96px rgba(241, 198, 90, 0.025);
}

.home-redesign .cta-shell .section-eyebrow {
  color: #f1c65a;
}

.home-redesign .cta-title-home {
  margin: 16px 0 20px;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.25;
}

.home-redesign .cta-text-home {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.85;
}

.home-redesign .cta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.home-redesign .cta-tags span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.home-redesign .cta-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.home-redesign .cta-button-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid #f1c65a;
  background: #f1c65a;
  color: #10263d;
  font-weight: 700;
}

.home-redesign .cta-phone {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.home-redesign .cta-phone small {
  color: rgba(255, 255, 255, 0.58);
}

.home-redesign .cta-phone strong {
  font-family: var(--accent-font);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}

/* Footer cleanup */
.home-redesign .footer {
  background: #061522;
}

.home-redesign .footer .footer-contact-icon {
  display: block;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  object-fit: contain;
}

.home-redesign .footer .footer-links li {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 12px;
}

.home-redesign .footer .footer-links li a {
  min-height: 0;
  padding: 0;
  line-height: 1.55;
}

@media (hover: hover) {
  .home-redesign .hero-button-primary:hover,
  .home-redesign .cta-button-home:hover {
    background: #ffd56c;
    box-shadow: 0 14px 30px rgba(216, 165, 45, 0.24);
    transform: translateY(-2px);
  }

  .home-redesign .hero-button-secondary:hover,
  .home-redesign .cta-phone:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
  }
}

/* Desktop density pass: keep the four parallel engineering directions visible together. */
@media (min-width: 769px) {
  .home-redesign .header {
    background: linear-gradient(180deg, rgba(3, 22, 38, 0.7), rgba(4, 24, 41, 0.34));
  }

  .home-redesign .hero-image {
    filter: saturate(0.96) contrast(1.04) brightness(1.07);
  }

  .home-redesign .hero-gradient {
    background:
      linear-gradient(90deg, rgba(3, 19, 33, 0.9) 0%, rgba(6, 31, 51, 0.72) 38%, rgba(8, 42, 64, 0.1) 72%, rgba(6, 31, 51, 0.18) 100%),
      linear-gradient(0deg, rgba(3, 19, 33, 0.48) 0%, transparent 48%);
  }
}

@media (min-width: 1180px) {
  .home-redesign .services-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .home-redesign .services-section .section-title {
    margin-bottom: 30px;
  }

  .home-redesign .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .home-redesign .project-card {
    min-height: 340px;
    padding: 22px;
  }

  .home-redesign .project-card .service-icon {
    width: 44px;
    height: 44px;
  }

  .home-redesign .project-card .service-title {
    margin: 18px 0 10px;
    font-size: 1.16rem;
    line-height: 1.45;
  }

  .home-redesign .project-card .service-description {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .home-redesign .project-card .service-tags {
    margin: 14px 0;
  }

  .home-redesign .project-card .service-tags span {
    padding: 5px 7px;
    font-size: 0.7rem;
  }

  .home-redesign .project-card-footer {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 10px;
    padding-top: 12px;
  }

  .home-redesign .project-reference small {
    font-size: 0.64rem;
  }

  .home-redesign .project-reference span {
    font-size: 0.78rem;
  }

  .home-redesign .project-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .home-redesign .project-service-links {
    gap: 8px;
    margin-top: 18px;
    padding: 11px 14px;
  }
}

@media (max-width: 1024px) {
  .home-redesign .home-hero-section,
  .home-redesign .hero-content-container {
    height: 700px;
    min-height: 700px;
  }

  .home-redesign .about-content {
    grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
    gap: 48px;
  }

  .home-redesign .services-grid,
  .home-redesign .case-studies-grid,
  .home-redesign .home-insights-section .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-redesign .clients-grid {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .home-redesign .home-testimonial-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .home-redesign .home-testimonial-card figcaption {
    grid-column: 2;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .home-redesign .cta-shell {
    gap: 40px;
    padding: 52px 44px;
  }
}

@media (max-width: 768px) {
  .home-redesign .section {
    padding: 64px 0;
  }

  .home-redesign .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-redesign .section-title {
    margin-bottom: 34px;
    text-align: left;
  }

  .home-redesign .section-title h2 {
    font-size: 2rem;
  }

  .home-redesign .section-title h2::after {
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none;
  }

  .home-redesign .section-lead {
    font-size: 0.96rem;
  }

  .home-redesign .mobile-scroll-hint {
    display: block;
    margin-top: 16px;
    color: #85929e;
    font-size: 0.76rem;
  }

  .home-redesign .header {
    background: rgba(6, 22, 36, 0.86);
  }

  .home-redesign .mobile-nav-toggle {
    color: var(--home-ink);
    background: rgba(255, 255, 255, 0.92);
  }

  .home-redesign .mobile-nav-toggle i {
    color: inherit;
  }

  .home-redesign .header.scrolled .mobile-nav-toggle {
    color: var(--home-ink);
  }

  .home-redesign .home-hero-section,
  .home-redesign .hero-content-container {
    height: 650px;
    min-height: 650px;
  }

  .home-redesign .hero-content-container {
    align-items: flex-end;
    padding-top: 120px;
    padding-bottom: 76px;
  }

  .home-redesign .hero-content {
    width: 100%;
  }

  .home-redesign .hero-title {
    font-size: clamp(2.75rem, 12vw, 4rem) !important;
  }

  .home-redesign .hero-subtitle {
    font-size: 1rem;
  }

  .home-redesign .hero-buttons {
    flex-direction: row;
  }

  .home-redesign .hero-button-primary,
  .home-redesign .hero-button-secondary {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
  }

  .home-redesign .hero-scope {
    display: none;
  }

  .home-redesign .home-proof {
    margin-top: 0;
  }

  .home-redesign .home-proof .container {
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

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

  .home-redesign .home-proof-item {
    min-height: 96px;
  }

  .home-redesign .home-proof-item:nth-child(3),
  .home-redesign .home-proof-item:nth-child(4) {
    border-top: 1px solid var(--home-line);
  }

  .home-redesign .home-proof-item:nth-child(3)::before {
    display: none;
  }

  .home-redesign .home-proof-note {
    padding-right: 18px;
    padding-left: 18px;
    text-align: left;
  }

  .home-redesign .about-section {
    padding-top: 72px;
  }

  .home-redesign .about-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-redesign .about-image-frame,
  .home-redesign .about-image-frame img {
    min-height: 430px;
    height: 430px;
  }

  .home-redesign .about-text h2 {
    font-size: 2.35rem;
  }

  .home-redesign .about-capabilities li {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }

  .home-redesign .about-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .home-redesign .services-grid,
  .home-redesign .home-insights-section .blog-grid {
    display: flex;
    gap: 14px;
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-redesign .services-grid::-webkit-scrollbar,
  .home-redesign .home-insights-section .blog-grid::-webkit-scrollbar {
    display: none;
  }

  .home-redesign .service-card,
  .home-redesign .home-insights-section .blog-card {
    width: min(82vw, 340px);
    min-width: min(82vw, 340px);
    scroll-snap-align: start;
  }

  .home-redesign .services-grid {
    margin-right: 0;
    padding-right: 0;
  }

  .home-redesign .project-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .home-redesign .project-card .service-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .home-redesign .project-reference span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .home-redesign .ai-assistant {
    display: none !important;
  }

  .home-redesign .service-card {
    min-height: 344px;
    padding: 26px;
  }

  .home-redesign .project-service-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
    white-space: normal;
  }

  .home-redesign .project-service-links::-webkit-scrollbar {
    display: none;
  }

  .home-redesign .project-service-label,
  .home-redesign .project-service-links a {
    flex: 0 0 auto;
  }

  .home-redesign .project-service-label {
    flex-basis: 100%;
  }

  .home-redesign .project-service-links a {
    flex: 1 1 calc(33.333% - 12px);
    text-align: center;
  }

  .home-redesign .case-studies-grid {
    display: flex;
    gap: 14px;
    margin-right: 0;
    padding-right: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-redesign .case-studies-grid::-webkit-scrollbar {
    display: none;
  }

  .home-redesign .case-study-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .home-redesign .home-insights-section .blog-grid {
    margin-right: 0;
    padding-right: 0;
  }

  .home-redesign .home-insights-section .blog-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .home-redesign .home-insights-section .blog-card-title {
    min-height: 0;
  }

  .home-redesign .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .home-redesign .client-logo {
    width: auto;
    min-width: 0;
    min-height: 118px;
    scroll-snap-align: none;
  }

  .home-redesign .client-logo:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  .home-redesign .home-testimonial-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 26px;
  }

  .home-redesign .home-testimonial-mark {
    height: 32px;
    text-align: left;
  }

  .home-redesign .home-testimonial-card figcaption {
    grid-column: auto;
  }

  .home-redesign .cta-section-home {
    padding: 0 0 68px;
  }

  .home-redesign .cta-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 28px;
  }

  .home-redesign .cta-title-home {
    font-size: 2rem;
  }

  .home-redesign .footer .footer-content {
    gap: 0;
    margin-bottom: 26px;
  }

  .home-redesign .footer .footer-logo,
  .home-redesign .footer .footer-links {
    margin-bottom: 26px;
  }

  .home-redesign .footer .footer-links li {
    margin-bottom: 12px;
  }

  .home-redesign .footer .footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .home-redesign .services-grid,
  .home-redesign .case-studies-grid,
  .home-redesign .home-insights-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }

  .home-redesign .service-card,
  .home-redesign .project-card,
  .home-redesign .case-study-card,
  .home-redesign .home-insights-section .blog-card {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
  }

  .home-redesign .case-study-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

  .home-redesign .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .home-redesign .client-logo:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .home-redesign .project-service-label {
    flex-basis: auto;
  }

  .home-redesign .project-service-links a {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .home-redesign .hero-eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .home-redesign .hero-title {
    font-size: 2.65rem !important;
  }

  .home-redesign .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .home-redesign .about-image-frame,
  .home-redesign .about-image-frame img {
    min-height: 390px;
    height: 390px;
  }

  .home-redesign .about-image-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 9px;
    padding: 14px;
  }

  .home-redesign .home-profile-title {
    gap: 10px;
  }

  .home-redesign .home-profile-title strong {
    font-size: 1.05rem;
  }

  .home-redesign .home-profile-title span {
    font-size: 0.7rem;
  }

  .home-redesign .home-profile-phone {
    gap: 6px;
    padding: 7px 10px;
  }

  .home-redesign .home-profile-phone .home-profile-phone-label {
    display: none;
  }

  .home-redesign .home-profile-phone b {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .home-redesign .home-proof-item strong {
    font-size: 1.9rem;
  }

  .home-redesign .home-proof-item span {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-redesign *,
  .home-redesign *::before,
  .home-redesign *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
