.stack-section {
  --stack-top: 92px;
  --stack-strip: 88px;
  --stack-ink: #1d1d1f;
  color: var(--stack-ink);
  background: #fff;
  padding: clamp(80px, 10vw, 160px) clamp(16px, 4vw, 40px);
}
.stack-section *, .stack-section *::before, .stack-section *::after { box-sizing: border-box; }
.stack-section__layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 96px); align-items: start; max-width: 1200px; margin-inline: auto; }
.stack-section__intro { position: sticky; top: var(--stack-top); padding-top: 8px; }
.stack-section__eyebrow { margin: 0 0 24px; color: #6e6e73; font: 600 14px/1.2 Inter, sans-serif; }
.stack-section h2 { margin: 0; max-width: 12ch; font: 600 clamp(2.8rem, 4.4vw, 4.5rem)/1.02 "Inter Tight", Inter, sans-serif; letter-spacing: -.04em; }
.stack-section__lead { margin: 24px 0 0; max-width: 32ch; color: #6e6e73; font: 400 18px/1.55 Inter, sans-serif; }
.stack-section__list { list-style: none; margin: 64px 0 0; padding: 0; border-left: 1px solid #e8e8ed; }
.stack-section__list li { position: relative; display: flex; align-items: center; gap: 20px; min-height: 52px; padding-left: 24px; color: #6e6e73; font: 500 16px/1.3 Inter, sans-serif; }
.stack-section__list li.is-active { color: #1d1d1f; }
.stack-section__list li.is-active::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--item-color); }
.stack-section__list li:nth-child(1) { --item-color: #d49a20; }
.stack-section__list li:nth-child(2) { --item-color: #77b785; }
.stack-section__list li:nth-child(3) { --item-color: #df9674; }
.stack-section__list li:nth-child(4) { --item-color: #78aee4; }
.stack-section__number { font: 600 12px/1 ui-monospace, monospace; }
.stack-section__cards { display: flex; flex-direction: column; gap: 32px; min-width: 0; padding-inline-end: clamp(0px, 1.5vw, 24px); }
.stack-card { position: relative; min-width: 0; container-type: inline-size; --stack-icon-size: clamp(120px, 26cqi, 220px); }
.stack-section.is-enhanced .stack-card { position: sticky; top: calc(var(--stack-top) + var(--stack-index) * var(--stack-strip)); z-index: calc(1 + var(--stack-index)); }
.stack-card:nth-child(1) { --card-color: var(--pastel-honey); }
.stack-card:nth-child(2) { --card-color: var(--pastel-sage); }
.stack-card:nth-child(3) { --card-color: var(--pastel-peach); }
.stack-card:nth-child(4) { --card-color: var(--pastel-sky); }
.stack-card__surface { position: relative; width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; aspect-ratio: 1.68; min-height: 400px; padding: 48px; border-radius: 28px; background-color: var(--card-color); background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(29,29,31,.06) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(29,29,31,.06) 31px 32px); box-shadow: inset 0 1px 1px rgba(255,255,255,.5); transform-origin: center top; transform: scale(var(--card-scale, 1)); filter: brightness(var(--card-brightness, 1)); }
.stack-card__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack-card__tag, .stack-card__count { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; white-space: nowrap; }
.stack-card__tag { padding: 9px 12px; border: 1px solid rgba(29,29,31,.1); border-radius: 999px; background: rgba(29,29,31,.1); color: rgba(29,29,31,.7); font-size: 12px; line-height: 1; letter-spacing: .08em; }
.stack-card__count { color: var(--ink); font-size: 13px; }
.stack-card__icon { position: absolute; top: 23%; right: 7%; width: var(--stack-icon-size); height: auto; fill: none; stroke: #1d1d1f; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.stack-card__copy { position: absolute; left: 48px; width: calc(100% - 48px - 7% - var(--stack-icon-size) - 32px); bottom: 48px; }
.stack-section .stack-card h3 { position: relative; margin: 0; max-width: 12ch; font: 600 clamp(2rem, 7.2cqi, 4rem)/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.03em; }
.stack-section .stack-card p { margin: 18px 0 0; max-width: 34ch; color: rgba(29,29,31,.78); font: 400 18px/1.45 Inter, sans-serif; }
.stack-section.is-enhanced .stack-card.is-active .stack-card__icon > * { animation: stack-draw 900ms cubic-bezier(.2,.7,.2,1) both; }
.stack-section.is-enhanced .stack-card.is-active .stack-icon__detail { animation: stack-draw 900ms cubic-bezier(.2,.7,.2,1) both, stack-pulse 5s ease-in-out 1s infinite; }
.stack-section.is-enhanced .stack-card.is-active .stack-icon__wing { transform-origin: 32px 30px; animation: stack-draw 900ms cubic-bezier(.2,.7,.2,1) both, stack-wing 5s ease-in-out 1s infinite; }
@keyframes stack-draw { from { stroke-dasharray: 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100; stroke-dashoffset: 0; } }
@keyframes stack-pulse { 0%, 85%, 100% { opacity: 1; } 90% { opacity: .55; } }
@keyframes stack-wing { 0%, 85%, 100% { transform: scaleX(1); } 90% { transform: scaleX(.94); } }
@media (min-width: 900px) and (max-width: 1100px) {
  .stack-card__surface { padding: 32px; }
  .stack-card__copy { left: 32px; bottom: 32px; width: calc(100% - 32px - 7% - var(--stack-icon-size) - 32px); }
}
@media (max-width: 899px) {
  .stack-section { --stack-top: 80px; --stack-strip: 56px; padding-block: 80px; }
  .stack-section__layout { display: block; }
  .stack-section__intro { position: static; max-width: 680px; padding: 0; margin: 0 auto 40px; }
  .stack-section__list { display: none; }
  .stack-section__cards { gap: 20px; max-width: 680px; margin-inline: auto; padding-inline-end: 0; }
  .stack-card__surface { display: flex; flex-direction: column; aspect-ratio: auto; min-height: 390px; padding: 24px 24px 28px; }
  .stack-card__icon { width: min(120px, 32%); max-width: calc(100% - 48px); top: 76px; right: 24px; }
  .stack-card__copy { position: relative; left: auto; bottom: auto; width: auto; margin-top: 164px; }
  .stack-section .stack-card h3 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .stack-section .stack-card p { font-size: 16px; }
}
@media (max-width: 599px) {
  .stack-section { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-section .stack-card__surface { transform: none !important; filter: none !important; }
  .stack-section.is-enhanced .stack-card.is-active .stack-card__icon > * { animation: none; }
}
