/* Homepage project journey. Scoped to the second homepage section. */
#what-we-do {
  margin-inline: 24px;
  padding: 42px 0 38px;
  border-radius: 72px 0 72px 0;
  background: linear-gradient(135deg, #f4f9ff 0%, #edf5fd 60%, #f7fbff 100%);
  scroll-margin-top: 90px;
}

#what-we-do .container { max-width: 1160px; }
#what-we-do .section-header { max-width: 1000px; margin-bottom: 26px; }
#what-we-do .section-header::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin: 0 auto 14px;
  border-radius: 3px;
  background: var(--accent-dji-blue);
}
#what-we-do .section-header h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
#what-we-do .section-header p { max-width: 610px; line-height: 1.5; }

#what-we-do .service-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 58px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#what-we-do .service-card { position: relative; min-width: 0; }
#what-we-do .service-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 118px;
  right: -42px;
  color: #7389a3;
  font-size: 32px;
  line-height: 1;
}
#what-we-do .service-card-top { height: 48px; margin-bottom: 10px; }
#what-we-do .service-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d6eaff;
  color: #0069c6;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#what-we-do .service-card-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}
#what-we-do .service-card h3 {
  margin: 0 0 7px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
#what-we-do .service-card-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
#what-we-do .service-proof-links { margin-top: 24px; }
#what-we-do .service-project-link {
  max-width: 100%;
  min-width: 240px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  gap: 16px;
  box-shadow: 0 6px 16px rgba(0, 112, 210, 0.16);
}
#what-we-do .service-project-link > span:last-child { flex-shrink: 0; }
#what-we-do .service-project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 112, 210, 0.22);
}
#what-we-do .service-project-link:focus-visible {
  outline: 2px solid var(--accent-dji-blue);
  outline-offset: 4px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  #what-we-do { margin-inline: 16px; padding-inline: 8px; }
  #what-we-do .service-showcase { gap: 38px; }
  #what-we-do .service-card:not(:last-child)::after { right: -29px; top: 103px; font-size: 26px; }
}

/* Desktop step labels sit within each image; phone timeline is unchanged. */
@media (min-width: 761px) {
  #what-we-do .service-card-top {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    height: auto;
    margin: 0;
  }
  #what-we-do .service-card-number {
    width: 36px;
    height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #fff;
    color: #172b43;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
  }
  #what-we-do .service-card:not(:last-child)::after { top: 78px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #what-we-do .service-card:not(:last-child)::after { top: 52px; }
}

/* The same ordered steps form a compact vertical timeline on phones. */
@media (max-width: 760px) {
  #what-we-do { margin-inline: 12px; padding: 30px 0; border-radius: 44px 0 44px 0; }
  #what-we-do .container { max-width: 580px; padding-inline: 20px; }
  #what-we-do .section-header { margin-bottom: 24px; }
  #what-we-do .section-header::before { width: 30px; height: 2px; margin-bottom: 12px; }
  #what-we-do .section-header h2 { font-size: clamp(1.25rem, 5.2vw, 1.75rem); margin-bottom: 10px; }
  #what-we-do .section-header h2 span { display: block; }
  #what-we-do .section-header p { max-width: 380px; font-size: 0.875rem; line-height: 1.45; }
  #what-we-do .service-showcase { display: block; max-width: 440px; margin-inline: auto; }
  #what-we-do .service-card { padding-left: 54px; padding-bottom: 24px; }
  #what-we-do .service-card:last-child { padding-bottom: 0; }
  #what-we-do .service-card:not(:last-child)::after {
    content: "";
    top: 60px;
    bottom: -24px;
    left: 17px;
    right: auto;
    width: 2px;
    background: #d3e5f7;
  }
  #what-we-do .service-card-top { position: absolute; left: 0; top: 24px; height: auto; margin: 0; }
  #what-we-do .service-card-number { width: 36px; height: 36px; font-size: 1rem; }
  #what-we-do .service-card-photo { width: 148px; max-width: 100%; border-radius: 9px; margin-bottom: 8px; }
  #what-we-do .service-card h3 { font-size: 1rem; margin-bottom: 4px; }
  #what-we-do .service-card-description { font-size: 0.875rem; line-height: 1.4; }
  #what-we-do .service-proof-links { margin-top: 22px; }
  #what-we-do .service-project-link { min-width: 0; width: min(100%, 320px); min-height: 46px; padding-inline: 20px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  #what-we-do .service-project-link { transition: none; }
  #what-we-do .service-project-link:hover { transform: none; }
}

/* Existing projects spacing is retained verbatim from the previous version. */
#homepage-projects {
  padding: 24px 0 70px;
  border-top: 0;
}

@media (max-width: 600px) {
  #homepage-projects { padding-bottom: 48px; }
}

/* Why PixaClear desktop and phone layouts. Tablet cards are retained. */
#why-pixaclear .why-editorial-visual,
#why-pixaclear .why-editorial-action { display: none; }
#why-pixaclear .why-editorial-copy { display: contents; }

@media (min-width: 1101px) {
  #why-pixaclear {
    padding: 58px 0;
    background: #fff;
    border: 0;
    scroll-margin-top: 88px;
  }
  #why-pixaclear .why-ambient-mesh { display: none; }
  #why-pixaclear .why-editorial-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 2fr);
    align-items: center;
    gap: 36px;
    max-width: 1480px;
    padding-inline: 32px;
  }
  #why-pixaclear .why-editorial-visual {
    position: relative;
    display: block;
    align-self: stretch;
    min-height: 430px;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #f1f5f9;
  }
  #why-pixaclear .why-editorial-visual img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: 25% center;
  }
  #why-pixaclear .why-editorial-copy { display: block; min-width: 0; }
  #why-pixaclear .section-header { max-width: 760px; margin: 0 auto 26px; }
  #why-pixaclear .section-header::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin: 0 auto 16px;
    border-radius: 3px;
    background: var(--accent-dji-blue);
  }
  #why-pixaclear .section-header h2 { font-size: clamp(1.85rem, 2.5vw, 2.35rem); margin-bottom: 12px; }
  #why-pixaclear .section-header h2::after { content: "?"; }
  #why-pixaclear .section-header p { max-width: 620px; font-size: 0.98rem; line-height: 1.5; }
  #why-pixaclear .why-pixaclear-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    perspective: none;
  }
  #why-pixaclear .holo-card-wrap { min-width: 0; perspective: none; }
  #why-pixaclear .holo-card {
    height: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-content: start;
    gap: 16px;
    padding: 24px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: #fafbfd;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    transform-style: flat;
    transition: border-color 180ms ease, background-color 180ms ease;
    will-change: auto;
  }
  #why-pixaclear .holo-card:hover { transform: none; box-shadow: none; background: #f3f7fc; border-color: #cddceb; }
  #why-pixaclear .holo-card-num,
  #why-pixaclear .holo-card-pills { display: none; }
  #why-pixaclear .holo-card-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 0;
    color: #0069c6;
    background: #e8f2fd;
    font-size: 1.25rem;
    transform: none;
    box-shadow: none;
    transition: none;
  }
  #why-pixaclear .holo-card:hover .holo-card-icon-wrap { transform: none; background: #e8f2fd; color: #0069c6; box-shadow: none; }
  #why-pixaclear .holo-card h3 {
    min-height: 0;
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transform: none;
    color: var(--text-primary);
  }
  #why-pixaclear .holo-card:hover h3 { color: var(--text-primary); }
  #why-pixaclear .holo-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    transform: none;
    flex-grow: 0;
  }
  #why-pixaclear .pc-home-text-link { display: inline; white-space: normal; font-size: inherit; }
  #why-pixaclear .why-editorial-action { display: flex; justify-content: center; margin-top: 24px; }
  #why-pixaclear .why-editorial-link {
    min-height: 46px;
    padding: 11px 24px;
    border: 1px solid #c7d6e6;
    border-radius: var(--radius-full);
    gap: 16px;
    background: #fff;
    color: #19324d;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 180ms ease, background-color 180ms ease;
  }
  #why-pixaclear .why-editorial-link:hover { background: #f2f7fd; border-color: #0070d2; transform: none; }
  #why-pixaclear .why-editorial-link:focus-visible { outline: 2px solid #0070d2; outline-offset: 4px; }
}

@media (min-width: 1101px) and (max-width: 1250px) {
  #why-pixaclear .why-editorial-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding-inline: 24px; }
  #why-pixaclear .holo-card { padding: 20px 18px; gap: 14px; }
  #why-pixaclear .holo-card h3 { font-size: 1rem; }
  #why-pixaclear .holo-card p { font-size: 0.85rem; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: reduce) {
  #why-pixaclear .holo-card, #why-pixaclear .why-editorial-link { transition: none; }
}

@media (max-width: 640px) {
  #why-pixaclear {
    padding: 54px 0 52px;
    background: #fff;
    border: 0;
    scroll-margin-top: 72px;
  }
  #why-pixaclear .why-ambient-mesh { display: none; }
  #why-pixaclear .section-header { margin: 0 auto 28px; }
  #why-pixaclear .section-header::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin: 0 auto 16px;
    border-radius: 3px;
    background: var(--accent-dji-blue);
  }
  #why-pixaclear .section-header h2 { font-size: clamp(1.85rem, 7vw, 2.05rem); margin-bottom: 12px; }
  #why-pixaclear .section-header h2::after { content: "?"; }
  #why-pixaclear .section-header p { font-size: 0.95rem; line-height: 1.55; }
  #why-pixaclear .why-pixaclear-grid.holo-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    perspective: none;
  }
  #why-pixaclear .holo-card-wrap { border-bottom: 1px solid #e5edf5; perspective: none; }
  #why-pixaclear .holo-card-wrap:first-child { border-top: 1px solid #e5edf5; }
  #why-pixaclear .holo-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
    height: auto;
    padding: 20px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    transform-style: flat;
    transition: none;
    will-change: auto;
  }
  #why-pixaclear .holo-card:hover { background: transparent; box-shadow: none; transform: none; }
  #why-pixaclear .holo-card-num,
  #why-pixaclear .holo-card-pills { display: none; }
  #why-pixaclear .holo-card-icon-wrap {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
    background: #e8f2fd;
    color: #0069c6;
    box-shadow: none;
    font-size: 1.2rem;
    transform: none;
    transition: none;
  }
  #why-pixaclear .holo-card:hover .holo-card-icon-wrap { background: #e8f2fd; color: #0069c6; box-shadow: none; transform: none; }
  #why-pixaclear .holo-layer-content { min-width: 0; }
  #why-pixaclear .holo-card h3 {
    min-height: 0;
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 1.06rem;
    line-height: 1.3;
    transform: none;
  }
  #why-pixaclear .holo-card:hover h3 { color: var(--text-primary); }
  #why-pixaclear .holo-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    transform: none;
    flex-grow: 0;
  }
  #why-pixaclear .why-editorial-action { display: flex; margin-top: 26px; }
  #why-pixaclear .why-editorial-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 20px;
    border: 1px solid #c7d6e6;
    border-radius: var(--radius-full);
    gap: 12px;
    background: #fff;
    color: #19324d;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
    transform: none;
  }
  #why-pixaclear .why-editorial-link:hover { background: #f2f7fd; border-color: #0070d2; transform: none; }
  #why-pixaclear .why-editorial-link:focus-visible { outline: 2px solid #0070d2; outline-offset: 4px; }
}
