/* Gift Lounge — Digital Gifting Concierge */

html.gift-concierge-active .announcement-bar {
  display: none;
}

.gift-concierge {
  position: relative;
  background: #050505;
  color: var(--color-ivory);
  min-height: calc(100vh - var(--site-header-height, 80px));
  margin-top: calc(-1 * var(--page-top-offset, 0px));
  padding-top: var(--page-top-offset);
}

.gift-concierge__particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}

.gift-concierge__atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease, background-image 1.2s ease;
  filter: saturate(0.75) brightness(0.42);
}

.gift-concierge__atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(198, 164, 106, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.92) 55%, rgba(5, 5, 5, 0.96) 100%);
}

html.gift-concierge-active .gift-concierge__atmosphere {
  opacity: 1;
}

.gift-concierge__journey {
  position: relative;
  z-index: 2;
  padding: 20px var(--space-md) 0;
  max-width: 1120px;
  margin: 0 auto;
}

.gift-concierge__journey-track {
  height: 1px;
  background: rgba(198, 164, 106, 0.18);
  position: relative;
  margin-bottom: 14px;
}

.gift-concierge__journey-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(198, 164, 106, 0.35), var(--color-gold));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-concierge__journey-labels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gift-concierge__journey-labels::-webkit-scrollbar {
  display: none;
}

.gift-concierge__journey-labels li {
  flex: 1 0 auto;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.28);
  white-space: nowrap;
  transition: color 0.4s ease;
}

.gift-concierge__journey-labels li.is-active {
  color: var(--color-gold);
}

.gift-concierge__journey-labels li.is-complete {
  color: rgba(198, 164, 106, 0.55);
}

.gift-concierge__viewport {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--site-header-height, 80px) - 72px);
}

/* ── Stages ── */
.gift-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px) var(--space-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(24px, 0, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.85s;
}

.gift-stage.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  overflow-y: auto;
  align-items: flex-start;
  padding-top: clamp(48px, 8vh, 80px);
  padding-bottom: clamp(64px, 10vh, 96px);
}

.gift-stage--opening.is-active {
  align-items: center;
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.gift-stage__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.gift-stage__inner--wide {
  max-width: 1080px;
}

.gift-stage__inner--opening {
  text-align: center;
  max-width: 720px;
}

.gift-stage__eyebrow {
  margin-bottom: 24px;
}

.gift-stage__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: var(--weight-light);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.gift-stage__title em {
  font-style: italic;
  color: var(--color-gold-dust);
}

.gift-stage__lede {
  margin: 0 auto 40px;
  max-width: 520px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.85;
  color: var(--color-ivory-muted);
}

.gift-stage__cta svg,
.gift-stage__continue svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: -2px;
}

.gift-stage__chapter {
  margin-bottom: 16px;
}

.gift-stage__heading {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: var(--weight-light);
  line-height: 1.12;
  margin: 0 0 clamp(28px, 4vw, 40px);
  max-width: 16ch;
}

.gift-stage__sub {
  margin: -12px 0 32px;
  max-width: 48ch;
  color: var(--color-ivory-muted);
  line-height: 1.75;
  font-size: var(--text-small);
}

.gift-stage__continue {
  margin-top: 36px;
}

/* ── Choices: Recipient ── */
.gift-choices--recipient {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.gift-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(180px, 24vw, 240px);
  padding: 20px;
  border: 1px solid rgba(198, 164, 106, 0.2);
  background: rgba(8, 8, 8, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.gift-choice__visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.5s ease, transform 0.7s ease;
  transform: scale(1.05);
}

.gift-choice::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(5, 5, 5, 0.88) 100%);
}

.gift-choice__label,
.gift-choice__hint,
.gift-choice__kicker {
  position: relative;
  z-index: 1;
}

.gift-choice__label {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ivory);
}

.gift-choice__hint {
  margin-top: 6px;
  font-size: var(--type-caption);
  color: var(--color-ivory-muted);
  letter-spacing: 0.04em;
}

.gift-choice:hover {
  border-color: rgba(198, 164, 106, 0.45);
  transform: translateY(-4px);
}

.gift-choice:hover .gift-choice__visual {
  opacity: 0.55;
  transform: scale(1.1);
}

.gift-choice.is-locking {
  position: fixed;
  z-index: 40;
  left: 50% !important;
  top: 50% !important;
  width: min(420px, 88vw) !important;
  min-height: 220px;
  transform: translate(-50%, -50%) !important;
  border-color: var(--color-gold);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.gift-presentation__option.is-locking {
  position: fixed;
  z-index: 40;
  left: 50% !important;
  top: 50% !important;
  width: min(360px, 88vw) !important;
  transform: translate(-50%, -50%) !important;
  border-color: var(--color-gold);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.gift-choice.is-selected {
  border-color: var(--color-gold);
}

/* ── Moment editorial ── */
.gift-choices--moment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.gift-choice--editorial {
  min-height: clamp(140px, 18vw, 180px);
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 3vw, 32px);
  background: rgba(8, 8, 8, 0.62);
}

.gift-choice__kicker {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: var(--weight-light);
  font-style: italic;
  color: var(--color-gold-dust);
  margin-bottom: 8px;
}

.gift-choice--editorial .gift-choice__label {
  font-size: var(--type-caption);
  letter-spacing: 0.2em;
  color: var(--color-ivory-muted);
}

/* ── Feeling ── */
.gift-choices--feeling {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.gift-choice--feeling {
  min-height: auto;
  padding: 18px 0;
  border: none;
  border-bottom: 1px solid rgba(198, 164, 106, 0.16);
  background: transparent;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: var(--weight-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.55);
  align-items: flex-start;
  justify-content: center;
}

.gift-choice--feeling::after {
  display: none;
}

.gift-choice--feeling:hover,
.gift-choice--feeling.is-selected {
  color: var(--color-gold-dust);
  transform: translateX(8px);
  border-bottom-color: rgba(198, 164, 106, 0.45);
}

/* ── Curated gifts ── */
.gift-curated {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: 32px;
}

.gift-curated__item {
  border: 1px solid rgba(198, 164, 106, 0.18);
  background: rgba(8, 8, 8, 0.5);
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.gift-curated__item.is-selected {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.gift-curated__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gift-curated__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.gift-curated__item:hover .gift-curated__media img {
  transform: scale(1.06);
}

.gift-curated__copy {
  padding: 20px;
}

.gift-curated__copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.gift-curated__copy p {
  margin: 0 0 16px;
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--color-ivory-muted);
}

.gift-curated__view {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--type-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  cursor: pointer;
}

.gift-recommendation {
  padding: 24px;
  border: 1px solid rgba(198, 164, 106, 0.35);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(198, 164, 106, 0.1) 0%, transparent 70%),
    rgba(8, 8, 8, 0.65);
  margin-bottom: 8px;
}

.gift-recommendation__label {
  margin: 0 0 16px;
  font-size: var(--type-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.gift-recommendation__card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}

.gift-recommendation__media {
  aspect-ratio: 1;
  overflow: hidden;
}

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

.gift-recommendation__copy h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gift-recommendation__copy p {
  margin: 0;
  color: var(--color-ivory-muted);
  font-size: var(--text-small);
}

/* ── Personal touch ── */
.gift-personal {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}

.gift-personal__block h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: var(--weight-light);
}

.gift-personal__num {
  margin: 0 0 10px;
  font-size: var(--type-caption);
  letter-spacing: 0.24em;
  color: var(--color-gold);
  opacity: 0.65;
}

.gift-personal__desc {
  margin: 0 0 16px;
  color: var(--color-ivory-muted);
  font-size: var(--text-small);
}

.gift-personal__input,
.gift-personal__textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(198, 164, 106, 0.25);
  background: rgba(7, 7, 7, 0.55);
  color: var(--color-ivory);
  font-family: var(--font-body);
  font-size: var(--text-small);
}

.gift-personal__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.gift-personal__preview {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-gold-dust);
  min-height: 1.4em;
}

.gift-personal__message-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gift-personal__counter {
  font-size: var(--type-caption);
  color: var(--color-ivory-muted);
  letter-spacing: 0.08em;
}

.gift-personal__assist {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--type-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  cursor: pointer;
}

.gift-personal__signatures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 16px;
}

.gift-personal__signature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--color-ivory-muted);
  cursor: pointer;
}

/* ── Presentation ── */
.gift-presentation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: 24px;
}

.gift-presentation__option {
  padding: 0;
  border: 1px solid rgba(198, 164, 106, 0.2);
  background: rgba(8, 8, 8, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.gift-presentation__option:hover,
.gift-presentation__option.is-selected {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.gift-presentation__visual {
  display: block;
  height: clamp(120px, 16vw, 160px);
  border-bottom: 1px solid rgba(198, 164, 106, 0.12);
}

.gift-presentation__visual--signature {
  background: linear-gradient(145deg, #f4efe4 0%, #e8dcc8 45%, #d4c4a8 100%);
}

.gift-presentation__visual--house {
  background: linear-gradient(145deg, #1a1816 0%, #0d0c0b 55%, #2a2318 100%);
  box-shadow: inset 0 0 0 1px rgba(198, 164, 106, 0.25);
}

.gift-presentation__visual--private {
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 213, 162, 0.25) 0%, transparent 45%),
    linear-gradient(145deg, #121110 0%, #050505 100%);
}

.gift-presentation__name,
.gift-presentation__detail {
  display: block;
  padding: 0 18px;
}

.gift-presentation__name {
  padding-top: 16px;
  font-family: var(--font-heading);
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.gift-presentation__detail {
  padding-bottom: 18px;
  margin-top: 8px;
  font-size: var(--type-caption);
  line-height: 1.6;
  color: var(--color-ivory-muted);
}

.gift-presentation__note {
  margin: 0;
  font-size: var(--type-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(198, 164, 106, 0.65);
  text-align: center;
}

/* ── Reveal ── */
.gift-stage__inner--reveal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 900px;
}

.gift-reveal-box {
  text-align: center;
}

.gift-reveal-box__brand {
  margin: 0 0 20px;
  font-size: var(--type-caption);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.gift-reveal-box__package {
  position: relative;
  width: min(240px, 70vw);
  margin: 0 auto;
}

.gift-reveal-box__lid {
  height: 28px;
  margin: 0 12px;
  border: 1px solid rgba(198, 164, 106, 0.45);
  background: linear-gradient(180deg, #1c1a18, #0a0a0a);
  transform-origin: top center;
  animation: gift-lid-open 1.4s ease 0.4s forwards;
}

.gift-reveal-box__body {
  min-height: 160px;
  border: 1px solid rgba(198, 164, 106, 0.45);
  background: linear-gradient(180deg, #121110, #050505);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(198, 164, 106, 0.55);
}

.gift-reveal-box__ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 110%;
  background: linear-gradient(180deg, transparent, var(--color-gold), transparent);
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

.gift-reveal-box__ribbon::before {
  content: '';
  position: absolute;
  top: 42%;
  left: 50%;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transform: translateX(-50%);
}

@keyframes gift-lid-open {
  to { transform: rotateX(28deg) translateY(-4px); }
}

.gift-reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(198, 164, 106, 0.45);
  color: var(--color-gold);
}

/* ── Preview ── */
.gift-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  margin-bottom: 32px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(198, 164, 106, 0.22);
  background: rgba(8, 8, 8, 0.55);
}

.gift-preview__hero {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

.gift-preview__details {
  margin: 0;
  display: grid;
  gap: 16px;
}

.gift-preview__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(198, 164, 106, 0.1);
}

.gift-preview__row dt {
  margin: 0;
  font-size: var(--type-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.75;
}

.gift-preview__row dd {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--color-ivory-muted);
}

.gift-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gift-preview-actions__link {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--type-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ivory-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.gift-preview-actions__link:hover {
  color: var(--color-gold);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .gift-choices--recipient,
  .gift-curated,
  .gift-presentation {
    grid-template-columns: repeat(2, 1fr);
  }

  .gift-stage__inner--reveal,
  .gift-preview {
    grid-template-columns: 1fr;
  }

  .gift-recommendation__card {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 767px) {
  .gift-choices--recipient,
  .gift-choices--moment,
  .gift-choices--feeling,
  .gift-curated,
  .gift-presentation {
    grid-template-columns: 1fr;
  }

  .gift-concierge__journey-labels li {
    font-size: 8px;
  }

  .gift-preview__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-stage,
  .gift-choice,
  .gift-curated__media img {
    transition: none;
  }

  .gift-reveal-box__lid {
    animation: none;
  }
}
