/* ==========================================================================
   GIFTS HERO (gifts.html): Cielo Nobile on its deep blue, like a Tales
   campaign page. On load the blue bursts out of the bottle in a growing circle,
   the photo settles and the big CIELO rises behind the words.
   The blue is sampled from the photo's own edge, so the two meet without a seam.
   ========================================================================== */
.hx {
  --c: #04126c;
  position: relative; overflow: hidden; color: var(--g-white); background: var(--g-paper);
  min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
  display: flex; align-items: center;
}
.hx.hero { padding: 0; background-image: none; }
.hx__slide { position: absolute; inset: 0; background: var(--c); }
.hx__photo { position: absolute; margin: 0; inset: 0 auto 0 0; width: 56%; overflow: hidden; }
.hx__photo img { width: 100%; height: 100%; object-fit: cover; animation: hxSettle 2.6s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes hxSettle { from { transform: scale(1.1); } to { transform: scale(1); } }
/* the photo melts into the blue on its inner edge */
.hx__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, var(--c) 0%, transparent 22%); }

.hx__word {
  position: absolute; right: 2vw; bottom: -0.12em; direction: ltr; z-index: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--font-latin); font-weight: 800; font-size: clamp(5.5rem, 15vw, 16rem); line-height: 0.8; letter-spacing: -0.04em;
  color: rgba(255,255,255,.12); animation: hxRise 1.6s cubic-bezier(.2, .7, .2, 1) .5s both;
}
@keyframes hxRise { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }

.hx__content { position: relative; z-index: 3; width: 100%; padding-block: var(--space-5); animation: hxIn .9s cubic-bezier(.2, .7, .2, 1) .7s both; }
@keyframes hxIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hx__content > * { max-width: 540px; }
.hx .eyebrow { color: rgba(255,255,255,.82); }
.hx .eyebrow::before { background: currentColor; }
.hx h1 { color: var(--g-white); font-weight: 300; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: var(--space-2); }
.hx__tag { font-family: var(--font-display-he); font-weight: 200; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); margin: 0 0 var(--space-2); }
.hx__sub { font-size: var(--fs-md); line-height: 1.6; margin: 0 0 var(--space-4); max-width: 40ch; color: rgba(255,255,255,.88); }
.hx .btn-row { flex-wrap: nowrap; }
.hx .btn { white-space: nowrap; flex: none; }
.hx .btn--primary { background: var(--g-white); border-color: var(--g-white); color: var(--tales-navy); }
.hx .btn--primary:hover { background: transparent; color: var(--g-white); }
.hx__ghost { border: 1.5px solid rgba(255,255,255,.75); color: var(--g-white); background: transparent; }
.hx__ghost:hover { background: var(--g-white); color: var(--tales-navy); }
.hx__link {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-top: var(--space-2);
  color: var(--g-white); font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.hx__link::after { content: "←"; text-decoration: none; display: inline-block; transition: transform .25s var(--ease); }
.hx__link:hover::after { transform: translateX(-4px); }

/* desktop: photo on the left, words on the right */
@media (min-width: 900px) {
  .hx__content { padding-inline-end: 58%; }
}
/* phones: photo on top, words below, the blue of the photo's lower edge */
@media (max-width: 899px) {
  .hx { --c: #0146b3; --ox: 62%; --oy: 30%; align-items: flex-end; min-height: calc(100svh - 90px); }
  .hx__photo { inset: 0 0 auto 0; width: 100%; height: 52%; }
  .hx__photo::after { background: linear-gradient(to top, var(--c) 0%, transparent 28%); }
  .hx__word { right: 50%; bottom: auto; top: 52%; font-size: 24vw; transform: translate(50%, -50%); animation: none; }
  .hx__content { padding-block: 0 var(--space-4); }
  .hx h1 { font-size: clamp(2.1rem, 8.6vw, 2.8rem); margin-bottom: 0.4rem; }
  .hx__tag { font-size: 1.15rem; margin-bottom: 0.4rem; }
  .hx__sub { font-size: 0.95rem; margin-bottom: 1rem; }
  .hx .btn-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hx__slide, .hx__photo img, .hx__word, .hx__content { animation: none; }
}
@media (max-width: 899px) { .hx__word { display: none; } }


/* the big decorative word is drawn from an attribute, so it is not text a reader or a checker meets */
.hx__word::before { content: attr(data-word); }

/* Speed (25/11/2026): the headline and buttons show almost at once instead of after 1.6 seconds.
   Same motion, shorter wait. The photo keeps its slow settle because it is visible from the start. */
.hx__content { animation-duration: .55s; animation-delay: .05s; }
.hx__word { animation-duration: 1.1s; animation-delay: .15s; }
