/* GetLayers Cards Almanac section, isolated for the Helix landing page. */
#helix-showcase,
#helix-showcase * { box-sizing: border-box; }

#helix-showcase {
  --hs-bg: #071614;
  --hs-card: #102925;
  --hs-ink: #f1f8f3;
  --hs-muted: rgba(241, 248, 243, .73);
  --hs-faint: rgba(241, 248, 243, .58);
  --hs-line: rgba(166, 232, 199, .18);
  --hs-accent: #a6e8c7;
  position: relative;
  min-height: 100svh;
  color: var(--hs-ink);
  background: radial-gradient(120% 80% at 50% -8%, #193d38 0%, var(--hs-bg) 60%), var(--hs-bg);
  font: 18px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 0 clamp(16px, 4vw, 40px) clamp(60px, 12vh, 140px);
  isolation: isolate;
}

/* Original centered intro directly above the first card. */
#helix-showcase .hs-intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(48px, 10vh, 104px) 0 clamp(16px, 3vh, 34px);
}
#helix-showcase .hs-intro__eyebrow {
  margin: 0 0 18px;
  font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--hs-accent);
}
#helix-showcase .hs-intro__title {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
}
#helix-showcase .hs-intro__sub {
  margin: 18px auto 0;
  max-width: 44ch;
  color: var(--hs-muted);
  font-size: 18px;
}

/* Original sticky stack proportions and depth surface. */
#helix-showcase .hs-stack { width: min(80vw, 1080px); margin: 0 auto; }
#helix-showcase .hs-card {
  position: sticky;
  top: var(--top, 88px);
  margin: 0 0 var(--gap, 46vh);
  background: linear-gradient(145deg, #193d38, var(--hs-card) 70%);
  border-radius: clamp(18px, 2vw, 26px);
  border: 1px solid var(--hs-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 40px 80px -34px rgba(0, 0, 0, .75);
  padding: clamp(14px, 1.4vw, 20px);
  display: grid;
  grid-template-columns: minmax(180px, 42%) 1fr;
  grid-template-rows: 1fr auto;
  gap: clamp(16px, 1.6vw, 26px);
  min-height: clamp(300px, 46vh, 480px);
  transform-origin: 50% 0;

}
#helix-showcase .hs-card:last-of-type { margin-bottom: 0; }
#helix-showcase .hs-tail { height: clamp(52vh, 66vh, 74vh); }

#helix-showcase .hs-card__media {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  border-radius: clamp(12px, 1.2vw, 18px);
  overflow: hidden;
  min-height: 210px;
  background: #285d5c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}
#helix-showcase .hs-card__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  will-change: transform;
  transform: scale(1.12);
  transition: transform 1.15s cubic-bezier(.2,.7,.2,1);
}
#helix-showcase .hs-card__body {
  grid-column: 2;
  grid-row: 1;
  padding: 8px clamp(4px, 1vw, 18px) 0 clamp(4px, 1vw, 10px);
  display: flex;
  flex-direction: column;
}
#helix-showcase .hs-card__date {
  margin: 0 0 clamp(12px, 1.4vw, 22px);
  font-size: clamp(12.5px, 1vw, 14px);
  color: var(--hs-accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}
#helix-showcase .hs-card__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
#helix-showcase .hs-card__text {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.42;
  font-weight: 450;
  letter-spacing: -.01em;
  color: var(--hs-muted);
}
#helix-showcase .hs-card__foot {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(4px, 1vw, 12px);
}
#helix-showcase .hs-card__tag {
  padding: 8px 15px;
  border-radius: 999px;
  font: 500 12.5px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: var(--hs-accent);
  background: rgba(166, 232, 199, .1);
}
#helix-showcase .hs-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #102925;
  background: var(--hs-accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background .22s ease, transform .18s ease;
}
#helix-showcase .hs-card__link:hover { background: #c7f4dc; transform: scale(1.03); }
#helix-showcase .hs-card__link:active { transform: scale(.97); }
#helix-showcase .hs-card__link:focus-visible { outline: 2px solid var(--hs-accent); outline-offset: 3px; }

/* Preserve the arrival shift cadence; copy never depends on a reveal callback. */
#helix-showcase .hs-card__date,
#helix-showcase .hs-card__title,
#helix-showcase .hs-card__text,
#helix-showcase .hs-card__foot {
  /* Content remains readable even before the animation's first measurement. */
  opacity: 1;
  transform: translateY(20px);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
#helix-showcase .hs-card.-in .hs-card__cover { transform: scale(1); }
#helix-showcase .hs-card.-in .hs-card__date { opacity: 1; transform: none; transition-delay: .12s; }
#helix-showcase .hs-card.-in .hs-card__title { opacity: 1; transform: none; transition-delay: .16s; }
#helix-showcase .hs-card.-in .hs-card__text { opacity: 1; transform: none; transition-delay: .2s; }
#helix-showcase .hs-card.-in .hs-card__foot { opacity: 1; transform: none; transition-delay: .3s; }
#helix-showcase .hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  #helix-showcase .hs-stack { width: 86vw; }
  #helix-showcase .hs-card { min-height: clamp(280px, 42vh, 420px); }
}
@media (max-width: 620px) {
  #helix-showcase { font-size: 16px; }
  #helix-showcase .hs-intro__sub { font-size: 16px; }
  #helix-showcase .hs-stack { width: 92vw; }
  #helix-showcase .hs-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    gap: 13px;
    padding: 12px;
    border-radius: 20px;
  }
  #helix-showcase .hs-card__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 8; min-height: 0; }
  #helix-showcase .hs-card__body { grid-column: 1; grid-row: 2; padding: 2px 4px 0; }
  #helix-showcase .hs-card__foot { grid-column: 1; grid-row: 3; padding: 0 4px; }
  #helix-showcase .hs-card__date { margin-bottom: 6px; }
  #helix-showcase .hs-card__title { margin-bottom: 6px; font-size: 24px; }
  #helix-showcase .hs-card__text { font-size: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  #helix-showcase .hs-card__cover { transform: none !important; transition: none !important; }
  #helix-showcase .hs-card__date,
  #helix-showcase .hs-card__title,
  #helix-showcase .hs-card__text,
  #helix-showcase .hs-card__foot { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Promote the four surfaces only while the stack is near the viewport. */
#helix-showcase.hs-active .hs-card { will-change: transform, filter; }
