.production-system {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(88px, 10vw, 148px) clamp(20px, 4vw, 64px);
  color: var(--text-inverse);
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 203, 106, 0.12), transparent 30%),
    radial-gradient(circle at 92% 84%, rgba(255, 252, 245, 0.06), transparent 28%),
    var(--sumi);
}

.production-system::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 252, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 252, 245, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.production-system__inner {
  width: min(100%, 1460px);
  margin-inline: auto;
}

.production-system__header {
  width: min(100%, 1040px);
  margin: 0 auto clamp(48px, 6vw, 82px);
  text-align: center;
}

.production-system__eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sprout-light);
}

.production-system__title {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-sans);
  font-size: clamp(2.65rem, 5.2vw, 6.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.production-system__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--sprout-light);
}

.production-system__cta {
  position: absolute;
  top: clamp(18px, 2.4vw, 34px);
  right: clamp(20px, 4vw, 64px);
  z-index: 3;
  min-width: clamp(180px, 18vw, 212px);
  min-height: 56px;
  justify-content: center;
  box-shadow: 0 16px 38px rgba(4, 8, 5, 0.28);
}

.production-system__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}

.production-system-card {
  position: relative;
  min-width: 0;
  height: clamp(570px, 51vw, 720px);
  overflow: hidden;
  border: 1px solid rgba(255, 252, 245, 0.18);
  border-radius: clamp(22px, 2vw, 34px);
  outline: none;
  background: var(--carbon);
  box-shadow:
    0 28px 62px rgba(4, 8, 5, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.1);
}

.production-system-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(24, 32, 25, 0.02) 38%, rgba(24, 32, 25, 0.42) 72%, rgba(24, 32, 25, 0.72)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 22%);
}

.production-system-card:focus-visible {
  outline: 3px solid var(--sprout-light);
  outline-offset: 5px;
}

.production-system-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.production-system-card__panel {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  min-height: 49%;
  padding: clamp(24px, 2.6vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.production-system-card--scope .production-system-card__panel {
  color: var(--sumi);
  background: rgba(200, 218, 120, 0.96);
}

.production-system-card--handoff .production-system-card__panel {
  color: var(--text-inverse);
  background: rgba(49, 71, 61, 0.95);
}

.production-system-card--delivery .production-system-card__panel {
  color: var(--sumi);
  background: rgba(246, 241, 231, 0.96);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .production-system-card__panel {
    backdrop-filter: blur(14px) saturate(0.9);
    -webkit-backdrop-filter: blur(14px) saturate(0.9);
  }
}

.production-system-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.production-system-card__cue {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.production-system-card__title {
  max-width: 13ch;
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.2vw, 3.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.production-system-card__copy {
  max-width: 38ch;
  margin: 24px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  line-height: 1.62;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 320ms ease 90ms,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1) 60ms;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .production-system-card__panel {
    transform: translateY(calc(100% - clamp(220px, 18vw, 250px)));
  }

  .production-system-card:hover .production-system-card__panel,
  .production-system-card:focus .production-system-card__panel,
  .production-system-card:focus-within .production-system-card__panel {
    transform: translateY(0);
  }

  .production-system-card:hover .production-system-card__image,
  .production-system-card:focus .production-system-card__image,
  .production-system-card:focus-within .production-system-card__image {
    transform: scale(1.035);
  }

  .production-system-card:hover .production-system-card__copy,
  .production-system-card:focus .production-system-card__copy,
  .production-system-card:focus-within .production-system-card__copy {
    opacity: 1;
    transform: translateY(0);
  }

  .production-system-card:hover .production-system-card__cue,
  .production-system-card:focus .production-system-card__cue,
  .production-system-card:focus-within .production-system-card__cue {
    transform: rotate(180deg);
  }
}

@media (hover: none), (pointer: coarse) {
  .production-system-card__copy {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .production-system {
    padding: 84px 16px 112px;
  }

  .production-system::before {
    background-size: 48px 48px;
  }

  .production-system__header {
    margin-bottom: 24px;
    padding-inline: 4px;
    text-align: left;
  }

  .production-system__cta {
    position: static;
    width: 100%;
    min-width: 0;
    margin-bottom: 46px;
    box-shadow: 0 16px 34px rgba(4, 8, 5, 0.3);
  }

  .production-system__eyebrow {
    margin-bottom: 16px;
  }

  .production-system__title {
    max-width: 10ch;
    font-size: clamp(3rem, 13vw, 4.9rem);
    line-height: 0.94;
  }

  .production-system__cards {
    display: block;
  }

  .production-system-card {
    --stack-order: 0;
    position: sticky;
    top: calc(86px + (var(--stack-order) * 10px));
    z-index: calc(2 + var(--stack-order));
    width: 100%;
    height: min(74vh, 720px);
    height: min(74svh, 720px);
    min-height: 590px;
    margin-bottom: clamp(96px, 21vh, 190px);
    border-radius: 24px;
    box-shadow:
      0 26px 50px rgba(4, 8, 5, 0.42),
      0 -1px rgba(255, 255, 255, 0.12);
  }

  .production-system-card:nth-child(2) {
    --stack-order: 1;
  }

  .production-system-card:nth-child(3) {
    --stack-order: 2;
    margin-bottom: 0;
  }

  .production-system-card__panel {
    min-height: 43%;
    padding: 26px 24px 30px;
    transform: none;
  }

  .production-system-card__meta {
    margin-bottom: 16px;
  }

  .production-system-card__title {
    max-width: 12ch;
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .production-system-card__copy {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.55;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  .production-system-card {
    top: calc(78px + (var(--stack-order) * 8px));
    height: min(77vh, 680px);
    height: min(77svh, 680px);
    min-height: 560px;
  }

  .production-system-card__panel {
    min-height: 45%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .production-system-card__image,
  .production-system-card__panel,
  .production-system-card__copy,
  .production-system-card__cue {
    transition: none;
  }

  .production-system-card__panel {
    transform: none !important;
  }

  .production-system-card__copy {
    opacity: 1;
    transform: none;
  }
}
