/* Stacked curtain cards with angular low-poly jagged edges and light Bird hero styling.
   Shared by / (home) and /introducing-v2/. Cards stay pinned behind while the next card slides
   up over them, and every edge bordering another card ends in a jagged cut-paper ridge. */

:root {
  --jag-h: 52px;
  --bird-gold: #c7b03f;
  --bird-blue: #2046c8;
  --bird-ink: #111113;
}

/* Important: overflow-x: clip preserves position: sticky (hidden would break sticky). */
body.has-stack,
body.has-stack main {
  overflow-x: clip;
}

/* Light top bar matching the crisp white Bird hero */
body.has-stack .globalnav {
  background: rgba(235, 235, 238, .94);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06);
}
body.has-stack .globalnav-logo img {
  filter: invert(1);
}
body.has-stack .globalnav-list > li > a {
  color: rgba(17, 17, 19, .78);
  font-weight: 500;
}
body.has-stack .globalnav-list > li > a:hover,
body.has-stack .globalnav-list > li > a[aria-current="page"] {
  color: #000;
}
body.has-stack .globalnav-menu {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 1px rgba(17, 17, 19, .08), 0 16px 36px rgba(0, 0, 0, .14);
}
body.has-stack .globalnav-menu a {
  color: rgba(17, 17, 19, .82);
}
body.has-stack .globalnav-menu a:hover,
body.has-stack .globalnav-menu a[aria-current="page"] {
  background: rgba(17, 17, 19, .06);
  color: #000;
}
body.has-stack .gn-ver {
  background: rgba(17, 17, 19, .07);
  color: #6e6e73;
}
body.has-stack .gn-ver-v2 {
  background: rgba(32, 70, 200, .11);
  color: var(--bird-blue);
}

/* ------------------------------------------------------------------ stack container & cards */

.stack {
  display: contents;
}

.stack-card {
  position: sticky;
  top: 0;
  width: 100%;
  overflow: visible;
  background: var(--card-bg, #0a0a0c);
  color: var(--card-ink, var(--text));
}

/* Stacking order: each card slides OVER the card behind it */
.stack-card:nth-of-type(1)  { z-index: 1; }
.stack-card:nth-of-type(2)  { z-index: 2; }
.stack-card:nth-of-type(3)  { z-index: 3; }
.stack-card:nth-of-type(4)  { z-index: 4; }
.stack-card:nth-of-type(5)  { z-index: 5; }
.stack-card:nth-of-type(6)  { z-index: 6; }
.stack-card:nth-of-type(7)  { z-index: 7; }
.stack-card:nth-of-type(8)  { z-index: 8; }
.stack-card:nth-of-type(9)  { z-index: 9; }
.stack-card:nth-of-type(10) { z-index: 10; }
.stack-card:nth-of-type(11) { z-index: 11; }
.stack-card:nth-of-type(12) { z-index: 12; }
.stack-card:nth-of-type(13) { z-index: 13; }
.stack-card:nth-of-type(14) { z-index: 14; }
.stack-card:nth-of-type(15) { z-index: 15; }
.stack-card:nth-of-type(16) { z-index: 16; }

/* The last card (footer) sits on top of the stack and scrolls normally */
.stack-card.is-last {
  position: relative;
  top: auto !important;
  z-index: 30;
}

/* Subtle GPU scrim darkening a pinned card as the next jagged curtain rises over it */
.stack-card.has-next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: calc(var(--cover, 0) * .22);
  pointer-events: none;
  z-index: 4;
}

/* Every card that has another card below it reserves extra bottom room so the next card's
   peeking jagged ridge never overlaps content */
.stack-card.has-next {
  padding-bottom: calc(var(--card-pad-b, 120px) + var(--jag-h));
}

/* Jagged polygonal cut-paper crown jutting upward from every card that has a card above it.
   clip-path slices off everything below the seam so drop-shadow NEVER bleeds onto the card itself. */
.card-jag {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: calc(100% - 2px);
  width: calc(100% + 2px);
  height: var(--jag-h);
  display: block;
  pointer-events: none;
  color: var(--card-bg, #0a0a0c);
  filter: drop-shadow(0 -12px 18px var(--jag-shadow, rgba(0, 0, 0, .3)));
  clip-path: inset(-48px 0 2px 0);
  z-index: 2;
}

.stack-card[data-theme="light"] {
  --jag-shadow: rgba(0, 0, 0, 0);
}
.stack-card[data-theme="dark"] {
  --jag-shadow: rgba(0, 0, 0, .32);
}

/* ------------------------------------------------------------------ shared Bird Hero */

.bird-hero {
  --card-bg: #ffffff;
  --card-ink: var(--bird-ink);
  min-height: calc(var(--screen) - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter) calc(var(--jag-h) + 28px);
  background: #ffffff;
  color: var(--bird-ink);
}

@media (min-height: 540px) {
  .bird-hero {
    height: calc(var(--screen) - 44px);
  }
}

.bird-hero.has-next {
  padding-bottom: calc(var(--jag-h) + 28px);
}

.bird-stage {
  width: min(1340px, 100%);
  max-height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}

.bird-art-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--pr, 0deg));
  transition: transform .18s linear;
}

.bird-art {
  width: auto;
  height: auto;
  max-width: min(100%, 760px);
  max-height: calc((var(--screen) - 44px) * 0.72);
  mix-blend-mode: multiply;
  user-select: none;
  pointer-events: none;
  transform: scale(1.18) translateX(-3%);
}

.bird-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate3d(calc(var(--px, 0px) * -.35), calc(var(--py, 0px) * -.35), 0);
  transition: transform .18s linear;
}

.bird-intro {
  font-size: clamp(22px, 2.35vw, 38px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #4a4a4f;
  margin-bottom: 4px;
}

.bird-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .05em;
  font-size: clamp(58px, 8.8vw, 152px);
  line-height: .94;
  font-weight: 700;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.bird-word {
  color: var(--bird-gold);
}

.bird-v2 {
  color: var(--bird-blue);
  font-size: 1.18em;
  line-height: .88;
  letter-spacing: -0.055em;
}

.bird-sub {
  margin-top: clamp(10px, 1.4vw, 22px);
  font-size: clamp(28px, 3.8vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #000000;
}

.bird-metrics {
  margin-top: clamp(14px, 1.5vw, 24px);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  font-size: clamp(17px, 2.05vw, 32px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.018em;
  font-variant-numeric: tabular-nums;
  color: #7a7a80;
}

.bird-sep {
  color: rgba(17, 17, 19, .28);
  font-weight: 300;
  user-select: none;
}

.bird-ctas {
  margin-top: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
}

.bird-btn-primary {
  background: var(--bird-blue);
  color: #fff;
  box-shadow: 0 10px 26px rgba(32, 70, 200, .24);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.bird-btn-primary:hover {
  background: #1a3ab0;
  box-shadow: 0 14px 32px rgba(32, 70, 200, .34);
  transform: translateY(-1px);
  text-decoration: none;
}

.bird-btn-secondary {
  background: transparent;
  color: #111113;
  box-shadow: inset 0 0 0 1.5px rgba(17, 17, 19, .24);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.bird-btn-secondary:hover {
  background: rgba(17, 17, 19, .05);
  box-shadow: inset 0 0 0 1.5px rgba(17, 17, 19, .55);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Crisp entrance glide for the Bird hero */
html.js .bird-hero:not(.is-in-hero) .bird-art {
  opacity: 0;
  transform: scale(1.16) translate(-22px, 14px);
}
html.js .bird-hero.is-in-hero .bird-art {
  opacity: 1;
  transform: scale(1.18) translateX(-3%);
  transition: opacity .45s var(--ease), transform .7s var(--ease-out);
}
html.js .bird-hero:not(.is-in-hero) .bird-copy > * {
  opacity: 0;
  transform: translateY(14px);
}
html.js .bird-hero.is-in-hero .bird-copy > * {
  opacity: 1;
  transform: none;
  transition: opacity .45s var(--ease), transform .65s var(--ease-out);
}
html.js .bird-hero.is-in-hero .bird-title { transition-delay: .04s; }
html.js .bird-hero.is-in-hero .bird-sub { transition-delay: .09s; }
html.js .bird-hero.is-in-hero .bird-metrics,
html.js .bird-hero.is-in-hero .bird-ctas { transition-delay: .14s; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1068px) {
  :root { --jag-h: 40px; }
  .bird-stage {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 20px;
  }
  .bird-title { font-size: clamp(48px, 8.2vw, 92px); }
}

@media (max-width: 734px) {
  :root { --jag-h: 32px; }
  .bird-hero,
  .bird-hero.has-next {
    min-height: calc(var(--screen) - 44px);
    padding: 16px 20px calc(var(--jag-h) + 18px);
  }
  .bird-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .bird-art {
    width: auto;
    max-width: min(80vw, 290px);
    max-height: calc((var(--screen) - 44px) * 0.36);
    transform: scale(1.06);
  }
  html.js .bird-hero.is-in-hero .bird-art {
    transform: scale(1.06);
  }
  .bird-intro { font-size: 18px; }
  .bird-title { font-size: clamp(44px, 14vw, 68px); }
  .bird-sub { font-size: clamp(24px, 7.8vw, 36px); margin-top: 6px; }
  .bird-metrics { font-size: clamp(14px, 4.2vw, 19px); margin-top: 10px; gap: 0.36em; }
  .bird-ctas { margin-top: 16px; }
}

@media (max-width: 734px) and (max-height: 700px) {
  .bird-art { max-height: calc((var(--screen) - 44px) * 0.32); }
  .bird-intro { font-size: 16px; margin-bottom: 2px; }
  .bird-title { font-size: clamp(40px, 12.5vw, 56px); }
  .bird-sub { font-size: clamp(22px, 6.8vw, 30px); margin-top: 4px; }
  .bird-metrics { font-size: 14px; margin-top: 8px; }
}

@media (max-width: 359px) {
  .bird-art { max-width: min(76vw, 235px); max-height: calc((var(--screen) - 44px) * 0.30); }
  .bird-title { font-size: 38px; }
  .bird-sub { font-size: 22px; }
  .bird-metrics { font-size: 13px; }
  .bird-ctas .btn { height: 40px; padding: 0 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card.has-next::after { display: none; }
  html.js .bird-hero .bird-art,
  html.js .bird-hero .bird-copy > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .bird-art { transform: scale(1.08) translateX(-2%) !important; }
  .bird-art-wrap, .bird-copy { transform: none !important; transition: none !important; }
}
