.works {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.works article:first-child {
  display: none;
}

.works article {
  cursor: pointer;
}

.work-photo {
  position: relative;
  height: clamp(220px, 22vw, 310px);
  background-position: center top;
  overflow: hidden;
}

.work-photo span {
  display: none;
}

.work-photo--food {
  background-image: url("/campaign/hp/assets/gritfoods-work.png");
}

.work-photo--shop {
  background-image: url("/campaign/hp/assets/kebab-rise-work.png");
}

.case-preview-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border: 0;
  background: rgba(6, 28, 58, 0.72);
  color: #fff;
  font: inherit;
  text-align: center;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.case-preview-trigger strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.case-preview-trigger small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.works article:hover .case-preview-trigger,
.works article:focus-within .case-preview-trigger {
  opacity: 1;
}

.case-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(0, 0, 0, 0.78);
}

.case-preview-modal.is-open {
  display: block;
}

.case-preview-back {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 10002;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(6, 28, 58, 0.94);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.case-preview-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10001;
  width: min(1180px, calc(100vw - 48px));
  height: min(80vh, 860px);
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.case-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.case-preview-mobile-back {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 10002;
  display: none;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #062d63;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

body.case-preview-lock {
  overflow: hidden;
}

/* Rich campaign polish */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(231, 160, 11, 0.12), transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(6, 45, 99, 0.08), transparent 24%),
    #fffdf8;
}

.hero__image img {
  animation: hpHeroDrift 16s ease-in-out infinite alternate;
  transform-origin: 62% 50%;
}

.hero__copy {
  animation: hpCopyLift 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero__lead,
.hero__sub,
.zero-badge,
.package,
.content,
.flow,
.industry,
.faq,
.final {
  position: relative;
}

.zero-badge,
.mini-zero,
.problem-card,
.included-card,
.content-list article,
.step,
.industry-card,
.works article,
.faq details,
.final-points span {
  transition:
    transform 0.34s cubic-bezier(0.2, 0.75, 0.2, 1),
    box-shadow 0.34s ease,
    border-color 0.34s ease,
    filter 0.34s ease;
}

.problem-card:hover,
.included-card:hover,
.content-list article:hover,
.industry-card:hover,
.works article:hover,
.faq details:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 146, 34, 0.58);
  box-shadow: 0 22px 44px rgba(57, 42, 13, 0.14);
}

.included-card svg,
.problem-card svg,
.industry-card > svg,
.step > svg:not(.step__arrow) {
  filter: drop-shadow(0 8px 14px rgba(201, 146, 34, 0.14));
  transition: transform 0.34s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.34s ease;
}

.included-card:hover svg,
.problem-card:hover svg,
.industry-card:hover > svg,
.step:hover > svg:not(.step__arrow) {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 13px 18px rgba(201, 146, 34, 0.22));
}

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: hpCtaPulse 2.8s ease-in-out infinite;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  z-index: -1;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: rotate(18deg);
  animation: hpButtonSheen 4s ease-in-out infinite;
}

.package {
  overflow: hidden;
}

.package::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 146, 34, 0.12), transparent 26%),
    radial-gradient(circle at 85% 16%, rgba(6, 45, 99, 0.07), transparent 22%);
}

.package .shell {
  position: relative;
  z-index: 1;
}

.package-head {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(18px, 4vw, 44px);
  margin-bottom: 42px;
}

.package-head > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 8px;
  align-items: center;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(201, 146, 34, 0.26);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(57, 42, 13, 0.1);
}

.package-head > div:first-child > strong {
  grid-row: 1 / 3;
  font-size: clamp(74px, 8vw, 112px);
  line-height: 0.9;
  white-space: nowrap;
}

.package-head h2 {
  align-self: end;
  margin: 0;
  line-height: 1.28;
}

.package-head p {
  align-self: start;
  line-height: 1.8;
}

.mini-zero {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 231, 0.86)),
    radial-gradient(circle at 50% 0%, rgba(231, 160, 11, 0.18), transparent 45%);
  box-shadow: 0 18px 46px rgba(125, 89, 18, 0.16);
}

.mini-zero strong {
  font-size: clamp(58px, 6vw, 82px);
}

.works article {
  box-shadow: 0 16px 40px rgba(8, 45, 99, 0.08);
}

.case-preview-panel {
  animation: hpModalIn 0.28s ease both;
}

@keyframes hpHeroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.4%, -0.6%, 0);
  }
}

@keyframes hpCopyLift {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hpButtonSheen {
  0%,
  58% {
    left: -35%;
  }
  82%,
  100% {
    left: 120%;
  }
}

@keyframes hpCtaPulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(177, 111, 0, 0.25);
  }
  50% {
    box-shadow: 0 18px 42px rgba(177, 111, 0, 0.42);
  }
}

@keyframes hpModalIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 850px) {
  .works {
    grid-template-columns: 1fr;
  }

  .work-photo {
    height: clamp(230px, 58vw, 420px);
  }

  .case-preview-trigger {
    inset: auto 12px 12px;
    min-height: 50px;
    border-radius: 999px;
    background: rgba(6, 45, 99, 0.92);
    opacity: 1;
    padding: 8px 14px;
  }

  .case-preview-trigger strong {
    font-size: 14px;
  }

  .case-preview-trigger small {
    display: none;
  }

  .case-preview-panel {
    top: max(74px, env(safe-area-inset-top));
    right: 10px;
    bottom: 78px;
    left: 10px;
    width: auto;
    height: auto;
    transform: none;
    animation: none;
    border-radius: 10px;
  }

  .case-preview-back {
    min-height: 42px;
    padding: 0 15px;
    font-size: 13px;
  }

  .case-preview-mobile-back {
    display: block;
  }
}

@media (max-width: 850px) {
  .package-head {
    grid-template-columns: 1fr;
  }

  .package-head > div:first-child {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .package-head > div:first-child > strong {
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .package-head {
    gap: 16px;
    margin-bottom: 26px;
  }

  .package-head > div:first-child {
    padding: 22px 16px;
  }

  .package-head h2 {
    font-size: 25px;
  }

  .package-head p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image img,
  .hero__copy,
  .cta,
  .cta::after,
  .case-preview-panel {
    animation: none !important;
  }
}
