/* Homepage-only, native scrolling stack. Original artwork and shared styles stay intact. */
#signature-work.lp-stacked-work {
  --stack-top: 104px;
  --stack-orange: #ff9800;
  overflow: visible;
}
#signature-work .lp-work-stack { display: grid; gap: 40px; padding-bottom: 12px; }
#signature-work .lp-stack-card {
  position: relative;
  min-width: 0;
  height: auto;
  overflow: visible;
  margin: 0;
  scroll-margin-top: 130px;
}
#signature-work .lp-stack-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
  min-height: 520px;
  padding: 56px 48px;
  overflow: visible;
  isolation: isolate;
  border: 1px solid #ffffff24;
  border-radius: 26px;
  background: radial-gradient(ellipse at 82% 50%, #3b2b152e, transparent 68%), #111110;
  box-shadow: 0 -14px 40px #0007, 0 24px 56px #0005;
}
#signature-work .lp-stack-card--norton .lp-stack-panel {
  background: radial-gradient(ellipse at 78% 55%, #79501940, transparent 72%), #18140e;
  border-color: #c39b5e40;
}
#signature-work .lp-stack-card--fluxcrm .lp-stack-panel {
  background: radial-gradient(ellipse at 76% 58%, #48603129, transparent 72%), #11130f;
}
#signature-work .lp-stack-number {
  position: absolute; left: 28px; top: -8px; z-index: -1;
  color: #ffffff0b; font-size: clamp(180px, 19vw, 240px); font-weight: 700;
  line-height: 1; letter-spacing: -.075em; pointer-events: none;
}
#signature-work .lp-stack-tab {
  position: absolute; left: 24px; top: -15px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid #ff980038; border-radius: 6px;
  background: #080808; color: #e9d8bd;
  font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .1em;
  text-transform: uppercase; pointer-events: none;
}
#signature-work .lp-stack-tab::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--stack-orange);
}
#signature-work .lp-stack-copy { position: relative; z-index: 2; min-width: 0; max-width: 390px; }
#signature-work .lp-stack-category {
  margin: 0 0 24px; color: #c9bda9; font-size: 11px;
  line-height: 1.6; letter-spacing: .13em; font-weight: 500; text-transform: uppercase;
}
#signature-work .lp-stack-copy h3 {
  margin: 0 0 22px; color: #f4f1ed; font-size: clamp(42px, 4.7vw, 68px);
  font-weight: 600; line-height: 1.06; letter-spacing: -.055em;
}
#signature-work .lp-stack-description {
  max-width: 31ch; margin: 0; color: #c9c5bd;
  font-size: clamp(16px, 1.45vw, 19px); line-height: 1.7; text-align: left;
}
#signature-work .lp-stack-role {
  margin: 28px 0 30px; color: #a9a59e; font-size: 12px; line-height: 1.7;
}
#signature-work .lp-stack-role > span:first-child { padding-inline: 10px; color: #655c4e; }
#signature-work .lp-stack-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 50px; padding: 13px 22px; border: 1px solid var(--stack-orange);
  border-radius: 999px; background: var(--stack-orange); color: #080808;
  font-size: 14px; line-height: 1.5; font-weight: 600; text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
#signature-work .lp-stack-link > .lp-stack-arrow {
  display: block; flex: 0 0 20px; width: 20px; height: 20px; fill: none;
}
#signature-work .lp-stack-link:hover { background: #ffb137; border-color: #ffb137; color: #080808; }
#signature-work .lp-stack-link:focus-visible { outline: 3px solid #fff4df; outline-offset: 6px; }
#signature-work .lp-stack-art {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 0; height: 100%; margin: 0; border: 0; background: transparent;
}
#signature-work .lp-stack-art img {
  display: block; width: 112%; max-width: none; height: auto; max-height: 450px;
  object-fit: contain; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#signature-work .lp-stack-card--ewallet .lp-stack-art img {
  width: auto; max-width: 100%; height: 450px; max-height: 100%;
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
@media (min-width: 901px) and (min-height: 660px) and (prefers-reduced-motion: no-preference) {
  #signature-work .lp-work-stack { gap: 64px; margin-inline: 12px; }
  /* The last panel gets a reading interval after it lands on the completed deck. */
  #signature-work .lp-work-stack::after { content: ""; height: clamp(180px, 30svh, 360px); pointer-events: none; }
  #signature-work .lp-stack-card {
    --stack-tilt: -1.5deg;
    --stack-shift: -8px;
    position: sticky;
    top: calc(var(--stack-top) + var(--stack-index) * 18px);
    z-index: calc(var(--stack-index) + 1);
    /* Equal sticky bottom edges make all three leave together, preserving the stack. */
    padding-bottom: calc((2 - var(--stack-index)) * 18px);
  }
  #signature-work .lp-stack-card--norton { --stack-tilt: 1.5deg; --stack-shift: 8px; }
  #signature-work .lp-stack-panel {
    height: clamp(500px, calc(100svh - 182px), 590px);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    transform: translateX(var(--stack-shift)) rotate(var(--stack-tilt));
    transform-origin: 50% 50%;
  }
  /* A keyboard-focused project is always brought above the overlapping panels. */
  #signature-work .lp-stack-card:has(.lp-stack-link:focus-visible) { z-index: 5; }
  /* Preserve the original wide artwork while keeping the copy row constrained. */
  #signature-work .lp-stack-card--ewallet .lp-stack-art {
    align-self: start; height: max(100%, 450px);
  }
  #signature-work .lp-stack-card:not(.lp-stack-card--ewallet) .lp-stack-art {
    align-self: start; height: auto; min-height: 100%;
  }
  #signature-work .lp-stack-card:not(.lp-stack-card--ewallet) .lp-stack-art img {
    flex: none; max-height: none;
  }
  /* Only trim the lower spillover once the following panel has covered the image. */
  #signature-work .lp-stack-card[data-stack-covered]:not(:has(.lp-stack-link:focus-visible)) .lp-stack-art {
    clip-path: inset(-100vmax -100vmax var(--stack-art-trim, 25%) -100vmax);
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  #signature-work .lp-stack-panel { padding-inline: 32px; gap: 16px; }
  #signature-work .lp-stack-description { font-size: 16px; }
}
@media (max-width: 900px) {
  #signature-work .lp-work-stack { gap: 28px; }
  #signature-work .lp-stack-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 28px 54px; min-height: 0; border-radius: 22px; }
  #signature-work .lp-stack-copy { max-width: 100%; }
  #signature-work .lp-stack-category { margin-bottom: 18px; font-size: 10px; }
  #signature-work .lp-stack-copy h3 { margin-bottom: 18px; font-size: clamp(38px, 7vw, 60px); }
  #signature-work .lp-stack-description { max-width: 46ch; font-size: 16px; }
  #signature-work .lp-stack-role { margin: 22px 0; }
  #signature-work .lp-stack-number { font-size: 160px; left: 20px; top: 2px; }
  #signature-work .lp-stack-tab { left: 20px; }
  #signature-work .lp-stack-art { height: auto; aspect-ratio: 4 / 3; width: 100%; }
  #signature-work .lp-stack-art img { position: absolute; width: 108%; height: 100%; max-height: none; }
  #signature-work .lp-stack-card--ewallet .lp-stack-art { aspect-ratio: 1 / 1; max-height: 440px; }
  #signature-work .lp-stack-card--ewallet .lp-stack-art img { width: 100%; height: 100%; max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #signature-work .lp-stack-card { position: relative; }
  #signature-work .lp-stack-link { transition: none; }
}
@media print {
  #signature-work .lp-stack-art { clip-path: none !important; }
}
