.gift-cards-page {
  background: var(--hangar-black);
}

.gift-hero {
  position: relative;
  min-height: min(940px, 100svh);
  padding: 150px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.gift-hero-media,
.gift-hero-shade {
  position: absolute;
  inset: 0;
}

.gift-hero-media {
  z-index: -3;
  background: url("/assets/photos/kingston-storefront-evening.jpg") center 52% / cover no-repeat;
  transform: scale(1.02);
}

.gift-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(16 15 13 / 95%) 0%, rgb(16 15 13 / 74%) 46%, rgb(16 15 13 / 48%) 100%),
    linear-gradient(0deg, rgb(27 25 22 / 96%) 0%, transparent 42%);
}

.gift-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(48px, 7vw, 116px);
  align-items: center;
  width: var(--page);
  min-height: 650px;
  margin-inline: auto;
}

.gift-copy {
  max-width: 620px;
}

.gift-copy h1 {
  max-width: 720px;
  margin: 18px 0 28px;
  font-family: var(--display);
  font-size: clamp(58px, 6.2vw, 104px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .91;
  text-transform: uppercase;
}

.gift-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: rgb(244 238 227 / 76%);
  font-size: clamp(16px, 1.4vw, 19px);
}

.gift-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 34px 0 0;
  padding: 0;
  color: rgb(244 238 227 / 72%);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  list-style: none;
  text-transform: uppercase;
}

.gift-benefits li::before {
  margin-right: 9px;
  color: var(--crema-gold);
  content: "·";
}

.gift-gallery {
  max-width: 660px;
  margin-inline: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgb(244 238 227 / 22%);
  background: rgb(20 18 16 / 82%);
  box-shadow: 0 30px 90px rgb(0 0 0 / 38%), inset 0 1px 0 rgb(255 255 255 / 8%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
}

.gift-card-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: center;
}

.gift-card-frame {
  position: relative;
  aspect-ratio: 8 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgb(0 0 0 / 34%);
  transition: opacity 160ms ease, transform 280ms cubic-bezier(.2, .8, .2, 1);
}

.gift-card-frame::after {
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 18%) 50%, transparent 58%);
  content: "";
  pointer-events: none;
}

.gift-card-frame.is-glinting::after {
  animation: gift-glint 650ms ease-out;
}

.gift-card-frame.is-changing {
  opacity: .2;
  transform: translateY(8px);
}

.gift-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(244 238 227 / 28%);
  border-radius: 50%;
  background: rgb(27 25 22 / 76%);
  color: var(--cockpit-cream);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.gift-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--copper-foil);
  background: rgb(184 115 51 / 20%);
}

.gift-gallery-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 22px 60px 24px;
}

.gift-gallery-controls p {
  margin: 0;
  color: rgb(244 238 227 / 58%);
  font-size: 12px;
}

.gift-bag-amounts {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 60px 18px;
  padding: 14px 0;
  border-block: 1px solid rgb(244 238 227 / 14%);
}

.gift-bag-amounts strong,
.gift-bag-amounts span {
  display: block;
}

.gift-bag-amounts strong {
  color: var(--cockpit-cream);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.gift-bag-amounts span {
  margin-top: 3px;
  color: rgb(244 238 227 / 48%);
  font-size: 11px;
}

.gift-bag-amounts ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gift-bag-amounts li {
  padding: 7px 9px 6px;
  border: 1px solid rgb(244 238 227 / 20%);
  color: var(--crema-gold);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.gift-dots {
  display: flex;
  gap: 9px;
}

.gift-dot {
  width: 28px;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gift-dot::before {
  display: block;
  width: 100%;
  height: 2px;
  background: rgb(244 238 227 / 25%);
  content: "";
  transition: background-color 160ms ease;
}

.gift-dot[aria-current="true"]::before {
  background: var(--copper-foil);
}

.gift-primary {
  width: calc(100% - 120px);
  margin: 0 60px;
  border: 1px solid var(--copper-foil);
  background: var(--copper-foil);
  color: var(--hangar-black);
}

.gift-primary:hover {
  background: #cd8a4c;
}

.gift-checkout-note {
  margin: 12px 60px 0;
  color: rgb(244 238 227 / 52%);
  font-size: 12px;
  text-align: center;
}

.gift-how {
  padding: 110px 0;
  background: var(--cockpit-cream);
  color: var(--hangar-black);
}

.gift-section-heading {
  align-items: end;
}

.gift-section-heading h2,
.gift-redeem h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .96;
  text-transform: uppercase;
}

.gift-section-heading > p {
  max-width: 520px;
  margin: 0;
  color: rgb(27 25 22 / 68%);
}

.gift-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 78px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.gift-steps li {
  min-height: 240px;
  padding: 28px 36px 30px 0;
  border-right: 1px solid var(--line-dark);
}

.gift-steps li + li {
  padding-left: 36px;
}

.gift-steps li:last-child {
  border-right: 0;
}

.gift-steps span {
  display: block;
  margin-bottom: 44px;
  color: var(--copper-foil);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
}

.gift-steps strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gift-steps p {
  max-width: 300px;
  margin: 12px 0 0;
  color: rgb(27 25 22 / 62%);
}

.gift-redeem {
  padding: 120px 0;
  background: var(--kingston-slate);
}

.gift-redeem-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(48px, 9vw, 150px);
  align-items: center;
}

.gift-redeem-grid > div:last-child {
  max-width: 620px;
  color: rgb(244 238 227 / 78%);
  font-size: 18px;
}

.gift-redeem-note {
  padding-top: 24px;
  border-top: 1px solid rgb(244 238 227 / 20%);
  color: rgb(244 238 227 / 58%);
  font-size: 14px;
}

@keyframes gift-glint {
  to { transform: translateX(130%); }
}

@media (max-width: 960px) {
  .gift-hero {
    min-height: auto;
    padding-top: 128px;
  }

  .gift-shell {
    grid-template-columns: 1fr;
    gap: 52px;
    min-height: 0;
  }

  .gift-copy {
    max-width: 720px;
  }

  .gift-copy h1 {
    font-size: clamp(54px, 10vw, 84px);
  }

  .gift-gallery {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  .gift-hero {
    padding: 112px 0 68px;
  }

  .gift-hero-media {
    background-position: 62% center;
  }

  .gift-hero-shade {
    background: linear-gradient(0deg, rgb(18 17 15 / 98%) 0%, rgb(18 17 15 / 78%) 72%, rgb(18 17 15 / 62%) 100%);
  }

  .gift-shell {
    width: min(100% - 28px, 560px);
    gap: 40px;
  }

  .gift-copy h1 {
    margin: 14px 0 20px;
    font-size: clamp(45px, 13vw, 64px);
  }

  .gift-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .gift-benefits {
    display: grid;
    gap: 7px;
    margin-top: 24px;
  }

  .gift-gallery {
    padding: 16px;
  }

  .gift-card-stage {
    display: block;
    touch-action: pan-y;
  }

  .gift-arrow {
    display: none;
  }

  .gift-card-frame {
    border-radius: 12px;
  }

  .gift-gallery-controls {
    margin: 18px 0 20px;
  }

  .gift-gallery-controls p {
    font-size: 11px;
  }

  .gift-bag-amounts {
    align-items: flex-start;
    margin: 0 0 16px;
  }

  .gift-bag-amounts ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .gift-dot {
    width: 22px;
  }

  .gift-primary {
    width: 100%;
    min-height: 54px;
    margin: 0;
  }

  .gift-checkout-note {
    margin: 11px 0 0;
  }

  .gift-how,
  .gift-redeem {
    padding: 78px 0;
  }

  .gift-section-heading,
  .gift-redeem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gift-steps {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .gift-steps li,
  .gift-steps li + li {
    min-height: auto;
    padding: 24px 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .gift-steps span {
    margin-bottom: 22px;
  }

  .gift-redeem-grid > div:last-child {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-card-frame,
  .gift-arrow,
  .gift-dot::before {
    transition: none;
  }

  .gift-card-frame::after {
    display: none;
  }
}
