
/* =====================================================================
   ROUND 28 · the first screen from the client's mock-up
   ===================================================================== */
.hx { padding: 0; background: #F5EFE7; }
.hx__stage { position: relative; height: 100svh; min-height: 600px; overflow: hidden; border-radius: var(--r) var(--r) 0 0; isolation: isolate; }
.hx__bg { position: absolute; inset: 0; z-index: 0; }
.hx__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; max-width: none; }
/* a soft cream veil so the title reads on the wall */
.hx__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(247 242 235 / 0.9) 0%, rgb(247 242 235 / 0.55) 30%, rgb(247 242 235 / 0) 50%, rgb(247 242 235 / 0) 72%, rgb(247 242 235 / 0.85) 100%); }

/* Julia: her real photo, standing in the free band between the title and the button */
.hx__julia { position: absolute; z-index: 1; left: 0; right: 0; top: var(--jt, 30%); bottom: var(--jb, 22%); display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.hx__julia img { height: 100%; width: auto; max-width: none; display: block;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 18%); mask-image: linear-gradient(to top, transparent 0%, #000 18%); }

.hx__top { position: relative; z-index: 2; padding: calc(28px + env(safe-area-inset-top)) 20px 0; text-align: center; }
.hx__kicker { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.42em; text-transform: uppercase; color: #8E4E57; padding-left: 0.42em; }
.hx__h { position: relative; margin: 6px auto 0; width: fit-content; font-family: "Playfair Display", Georgia, serif; font-weight: 500; line-height: 0.92; letter-spacing: -0.02em; color: #161210; }
.hx__h1 { display: block; font-size: clamp(3.4rem, 15vw, 6.6rem); }
.hx__h2 { display: block; font-style: italic; font-weight: 400; font-size: clamp(3.1rem, 14vw, 6rem); color: var(--acc); margin-top: 0.02em; }
.hx__swash { display: block; width: 72%; height: auto; margin: 4px auto 0; overflow: visible; }
.hx__swash path { fill: none; stroke: #B2848A; stroke-width: 2; stroke-linecap: round; }
.hx__swash path + path { stroke-width: 1.2; opacity: 0.7; }
.hx__sub { margin: 12px auto 0; max-width: 22em; font-size: clamp(1rem, 0.92rem + 0.5vw, 1.2rem); line-height: 1.35; color: #2A2420; }

.hx__bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.hx__chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 0.86fr 1fr; gap: 8px; }
.hx__chips li { display: flex; align-items: center; gap: 8px; padding: 10px 10px; min-height: 58px; border-radius: 14px;
  background: rgb(245 239 231 / 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7), 0 10px 24px -16px rgb(60 40 30 / 0.45);
  font-size: 0.76rem; line-height: 1.25; color: #2A2420; }
.hx__chips svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.hx__buy { display: grid; justify-items: center; gap: 6px; }
.hx__btn { width: 100%; min-height: 58px; justify-content: center; gap: 14px; border-radius: 14px; font-size: 1.12rem; }
.hx__arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.hx__btn:hover .hx__arrow { transform: translateX(4px); }
.hx__price { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--sc-font-display); }
.hx__price s { font-size: 1.15rem; color: #8C847C; text-decoration-thickness: 1.5px; }
.hx__price b { font-size: 1.5rem; font-weight: 800; color: var(--acc); letter-spacing: -0.02em; }
.hx__price .zl { font-size: 0.86rem; vertical-align: 0; margin: 0; }
.hx .consent { margin: 0; text-align: center; font-size: 0.66rem; color: #6F665E; }

/* the sticky panel stays away while the hero's own button is on screen */
.stick.is-hidden { transform: translateY(115%) !important; transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }
.stick { transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }

/* the promise section under the hero */
.promise { padding-block: clamp(48px, 7vw, 110px) clamp(24px, 4vw, 60px); }
.promise .h2 { margin-top: 10px; max-width: 18ch; }
.promise .hero__gain { margin-top: clamp(18px, 3vw, 32px); }

/* wide screens: text and promises on the left, the table with Julia on the right */
@media (min-width: 900px) {
  .hx__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 640px; max-height: 1000px; }
  .hx__bg { left: 50%; }
  .hx__bg::after { background: linear-gradient(to right, #F5EFE7 0%, rgb(245 239 231 / 0) 22%), linear-gradient(to bottom, rgb(247 242 235 / 0) 70%, rgb(247 242 235 / 0.6) 100%); }
  .hx__julia { left: 50%; top: 9%; bottom: 0; }
  .hx__julia img { -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 12%); mask-image: linear-gradient(to top, transparent 0%, #000 12%); }
  .hx__top { grid-column: 1; grid-row: 1; align-self: end; text-align: left; padding: 0 clamp(24px, 4vw, 72px); }
  .hx__kicker { padding-left: 0; }
  .hx__h { margin-left: 0; }
  .hx__h1 { font-size: clamp(4.6rem, 8vw, 8rem); }
  .hx__h2 { font-size: clamp(4.2rem, 7.4vw, 7.4rem); }
  .hx__swash { margin-left: 0; }
  .hx__sub { margin-left: 0; font-size: 1.3rem; }
  .hx__bottom { position: relative; grid-column: 1; grid-row: 2; padding: 32px clamp(24px, 4vw, 72px) 56px; gap: 16px; max-width: 640px; }
  .hx__chips li { font-size: 0.86rem; min-height: 64px; padding: 12px 14px; }
  .hx__buy { justify-items: start; }
  .hx__btn { width: auto; min-width: 320px; }
  .hx .consent { text-align: left; }
}

@media (prefers-reduced-motion: reduce) { .stick, .stick.is-hidden { transition: none; } }

/* round 28b: no chapter rule over the hero; shorter title on short phones;
   chips fit 360 px; the cut-out's hard left edge fades on every screen */
.hx::before, .hx::after { display: none !important; }
.hx__h1 { font-size: min(15vw, 8.6svh, 6.6rem); }
.hx__h2 { font-size: min(14vw, 8svh, 6rem); }
.hx__chips li { min-width: 0; }
.hx__chips span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .hx__chips li { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 8px 6px; font-size: 0.7rem; }
  .hx__chips svg { width: 22px; height: 22px; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .hx__top { padding-top: 16px; }
  .hx__sub { margin-top: 6px; font-size: 0.95rem; }
  .hx__chips li { min-height: 50px; padding-block: 7px; }
  .hx__btn { min-height: 52px; }
  .hx__bottom { gap: 8px; }
}
.hx__julia img {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 18%), linear-gradient(90deg, transparent 0%, #000 14%);
  mask-image: linear-gradient(to top, transparent 0%, #000 18%), linear-gradient(90deg, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hx__chips span { overflow-wrap: normal; }
@media (max-width: 440px) {
  .hx__chips { gap: 6px; }
  .hx__chips li { gap: 6px; padding-inline: 8px; font-size: 0.7rem; }
  .hx__chips svg { width: 22px; height: 22px; }
}
@media (min-width: 900px) {
  .hx__h1 { font-size: clamp(4.6rem, min(8vw, 13svh), 8rem); }
  .hx__h2 { font-size: clamp(4.2rem, min(7.4vw, 12svh), 7.4rem); }
}
