:root {
  --orange: #ff5a0a;
  --ink: #111927;
  --muted: #4a5362;
  --card-border: #d9dde4;
  --section-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Quattrocento Sans", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.project-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: 68px 24px 82px;
  background: #fff;
}

.project-stage__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1480px);
  margin: 0 auto;
}

.project-stage__header {
  max-width: 1000px;
  margin: 0 auto 54px;
  text-align: center;
}

.project-stage__eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.project-stage__eyebrow-line {
  display: block;
  width: 63px;
  height: 4px;
  margin: 15px auto 16px;
  background: var(--orange);
}

.project-stage h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 4.1vw, 69px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.project-stage__intro {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.project-stage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.project-card {
  --accent: #1555a9;
  --tint: #eaf3ff;
  --curve: rgba(48, 133, 230, 0.08);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 31px 29px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 11px 22px rgba(18, 31, 54, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(18, 31, 54, 0.17);
}

.project-card--roofing {
  --accent: #ff5a0a;
  --tint: #fff0e7;
  --curve: rgba(255, 90, 10, 0.08);
}

.project-card--finishing {
  --accent: #167a2c;
  --tint: #eef7ec;
  --curve: rgba(48, 137, 57, 0.08);
}

.project-card--plumbing {
  --accent: #00778c;
  --tint: #eaf7f9;
  --curve: rgba(0, 133, 156, 0.08);
}

.project-card__curve {
  position: absolute;
  z-index: 0;
  top: -133px;
  right: -132px;
  width: 302px;
  height: 302px;
  border-radius: 50%;
  background: var(--curve);
}

.project-card__icon,
.project-card h3,
.project-card__small-line,
.project-card ul,
.project-card__link {
  position: relative;
  z-index: 1;
}

.project-card__icon {
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 27px;
  place-items: center;
  border-radius: 16px;
  background: var(--tint);
  color: var(--accent);
}

.project-card__icon svg {
  width: 67px;
  height: 67px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.45vw, 23px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.project-card__small-line {
  display: block;
  width: 30px;
  height: 3px;
  margin: 16px 0 19px;
  background: var(--accent);
}

.project-card ul {
  display: grid;
  gap: 15px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.project-card li {
  position: relative;
  padding-left: 25px;
  color: #1f2631;
  font-size: 17px;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.project-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.project-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 23%, #d8dde4);
  color: var(--accent);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.project-card__link span {
  font-size: 25px;
  line-height: 1;
  transition: transform 180ms ease;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  opacity: 0.8;
}

.project-card__link:hover span,
.project-card__link:focus-visible span {
  transform: translateX(4px);
}
@media (max-width: 1250px) {
  .project-stage {
    min-height: 0;
    padding-bottom: 90px;
  }

  .project-stage__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
    margin: 0 auto;
  }

  .project-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .project-stage {
    padding: 50px 18px 70px;
  }

  .project-stage__header {
    margin-bottom: 38px;
  }

  .project-stage__eyebrow {
    font-size: 16px;
  }

  .project-stage__eyebrow-line {
    width: 50px;
    height: 3px;
    margin: 12px auto 14px;
  }

  .project-stage h2 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .project-stage__intro {
    margin-top: 17px;
    font-size: 16px;
  }

  .project-stage__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-card {
    min-height: 0;
    padding: 27px 25px 25px;
  }

  .project-card__icon {
    width: 90px;
    height: 90px;
    margin-bottom: 23px;
    border-radius: 14px;
  }

  .project-card__icon svg {
    width: 58px;
    height: 58px;
  }

  .project-card h3 {
    font-size: 21px;
    white-space: nowrap;
  }

  .project-card li {
    font-size: 16px;
  }

  .project-card__link {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card__link,
  .project-card__link span {
    transition: none;
  }
}

/* Brand-consistent project-stage icon system. */
.project-card,
.project-card--roofing,
.project-card--finishing,
.project-card--plumbing {
  --accent: #f65a00;
  --tint: #fff3eb;
  --curve: rgba(246,90,0,.065);
}
.project-card { border-radius: 5px; }
.project-card__icon {
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
  border: 1px solid rgba(246,90,0,.18);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.project-card__icon svg { width: 52px; height: 52px; stroke-width: 2.45; }
@media (max-width: 720px) {
  .project-card__icon { width: 78px; height: 78px; border-radius: 12px; }
  .project-card__icon svg { width: 47px; height: 47px; }
}


/* Final icon polish — consistent Mjengo construction icon language. */
.project-card__icon {
  color: #f65a00;
  background: linear-gradient(145deg, #fff9f5, #ffeadc);
  border-color: rgba(246,90,0,.24);
  box-shadow: 0 8px 22px rgba(246,90,0,.08), inset 0 0 0 1px rgba(255,255,255,.8);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card:hover .project-card__icon {
  transform: translateY(-2px);
  border-color: rgba(246,90,0,.46);
  box-shadow: 0 12px 26px rgba(246,90,0,.13), inset 0 0 0 1px rgba(255,255,255,.9);
}
.project-card__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Entire project-stage cards are pointer-friendly while the visible CTA remains the keyboard target. */
.project-card { position: relative; cursor: pointer; }
.project-card__link { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   Generated project-stage icon assets
   Uses fixed icon frames and transform-only motion so the new
   artwork cannot change card dimensions or cause mobile overflow.
   ------------------------------------------------------------ */
.project-card__icon {
  overflow: hidden;
  isolation: isolate;
}

.project-card__icon img {
  display: block;
  width: 62px;
  height: 62px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 5px 9px rgba(246, 90, 0, .08));
  transition:
    transform .34s cubic-bezier(.22, .61, .36, 1),
    filter .34s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-card__icon img,
  .project-card:focus-within .project-card__icon img {
    transform: translateY(-1px) scale(1.07);
    filter: drop-shadow(0 8px 13px rgba(246, 90, 0, .14));
  }
}

/* A small icon pop follows the existing card reveal. */
.has-reveal .project-card.mj-reveal.is-visible .project-card__icon img {
  animation: mj-project-icon-in .48s cubic-bezier(.22, .61, .36, 1) backwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + 90ms);
}

@keyframes mj-project-icon-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(.86);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 720px) {
  .project-card__icon img {
    width: 55px;
    height: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card__icon img,
  .has-reveal .project-card.mj-reveal.is-visible .project-card__icon img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
