/* Hero: one card where everything follows the phase of a looping sample cycle (js/hero.js):
   the background is the bowl's liquid, full-bleed, with the phase's petals / bubbles / sparkles / feathers;
   the woman changes clothes and mood; the ring with its bowl sits bottom-right, the store badges bottom-left. */
.hx { --pad: clamp(24px, 4.6vw, 80px); --dial: clamp(220px, min(24vw, 42vh), 400px);
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .62fr) minmax(0, .95fr); grid-template-rows: auto 1fr auto;
  grid-template-areas: "copy . side" "copy . ." "copy . dial"; gap: 0 clamp(16px, 2.4vw, 40px);
  min-height: clamp(540px, calc(100svh - 104px), 960px); margin: 14px var(--bleed) 0; padding: clamp(28px, 5.5vh, 76px) var(--pad) clamp(22px, 4vh, 48px);
  border-radius: clamp(28px, 4vw, 56px); color: #151716; background: #FFD9CC;
  box-shadow: 0 40px 90px -40px rgba(200, 80, 150, .45); }
.hx-bg, .hx-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hx-bg { z-index: -2; }
.hx-fx { z-index: -1; }
/* No WebGL: a still gradient in the phase's colours. */
.hx-flat .hx-bg { display: none; }
.hx.hx-flat { transition: background 1.6s ease; }
.hx-flat[data-phase="period"] { background: linear-gradient(150deg, #FFE7DD, #FFC9B6 40%, #F49BB4); }
.hx-flat[data-phase="follicular"] { background: linear-gradient(150deg, #F5FFEC, #E1F6C9 40%, #A6DEBA); }
.hx-flat[data-phase="ovulation"] { background: linear-gradient(150deg, #FFEDE3, #FFC3A3 40%, #EE9BDD); }
.hx-flat[data-phase="luteal"] { background: linear-gradient(150deg, #F6F2FF, #DDD3FF 40%, #B9A8F4); }

/* The woman: four photos of her, one per phase, dissolving into each other. */
.hx-art { position: absolute; z-index: 0; left: 57.5%; bottom: 0; height: 93%; aspect-ratio: 2 / 3; transform: translateX(-50%); pointer-events: none; }
.hx-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
  opacity: 0; transform: translateY(10px) scale(1.025); filter: blur(6px) saturate(.9);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease), filter 1s var(--ease); }
.hx-photo.on { opacity: 1; transform: none; filter: none; }

.hx-copy, .hx-side, .hx-dial { position: relative; z-index: 2; }
.hx-copy { grid-area: copy; align-self: center; animation: hx-in 1.2s .1s var(--ease) both; }
.hx .eyebrow { margin-bottom: clamp(12px, 2.2vh, 24px); background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .8); color: rgba(30, 14, 34, .78); }
.hx-title { max-width: 6.4em; margin: 0 0 clamp(14px, 2.6vh, 26px); font-size: clamp(44px, min(6.4vw, 11.6vh), 108px); font-weight: 300; line-height: .9; letter-spacing: -.05em; color: #1E0E22; text-wrap: balance; }
/* the accent words: the old serif gradient, its two colours follow the phase */
@property --hx-a { syntax: "<color>"; inherits: true; initial-value: #C2416A; }
@property --hx-b { syntax: "<color>"; inherits: true; initial-value: #8E2350; }
.hx { transition: --hx-a 1s ease, --hx-b 1s ease; }
.hx-title em { display: inline-block; white-space: nowrap; background: linear-gradient(100deg, var(--hx-a), var(--hx-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-lead { max-width: 30em; margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: rgba(30, 14, 34, .8); }
.hx-side { grid-area: side; justify-self: end; padding-top: .3em; animation: hx-in 1.2s .35s var(--ease) both; }
.hx-trust { display: grid; justify-items: end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hx-trust li { display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 15px; font-weight: 500; color: #1E0E22; }
.hx-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hx-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-a) 18%, transparent); }
.hx-cta { margin-top: clamp(18px, 3.4vh, 32px); }
.hx-cta .stores { margin: 0; }
.hx-fine { margin: 12px 0 0; font-size: 13px; color: rgba(21, 23, 22, .7); }

/* The ring (CycleDial in 320-unit space; js scales the canvases to the box). */
.hx-dial { grid-area: dial; justify-self: end; align-self: end; width: var(--dial); aspect-ratio: 1; container-type: inline-size; animation: hx-dial 1.4s .45s var(--ease) both; }
.hx-blobs { position: absolute; inset: -46.875%; width: 193.75%; height: 193.75%; pointer-events: none; }
.hx-ring, .hx-over { position: absolute; inset: -7.5%; width: 115%; height: 115%; pointer-events: none; }
.hx-over { z-index: 3; }
.hx-orb { position: absolute; left: 10.625%; top: 10.625%; width: 78.75%; height: 78.75%; z-index: 2; border-radius: 50%; isolation: isolate; overflow: hidden; clip-path: circle(50% at 50% 50%);
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(40, 50, 45, .3); will-change: transform; }
.hx-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-light { mix-blend-mode: screen; }
.hx-rim { position: absolute; inset: 0; z-index: 1; border-radius: 50%; padding: 1.5px; background: linear-gradient(#fff, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.hx-read { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.25cqw; }
.hx-num { font: 100 30cqw/1.05 var(--sans); letter-spacing: -.04em; padding-right: .04em; color: #151716; font-variant-numeric: proportional-nums; }
.hx-num.tick { animation: hx-tick .5s var(--ease); }
.hx-day { font: 400 3.75cqw/1.2 var(--mono); letter-spacing: .17em; color: rgba(21, 23, 22, .78); }
.hx-pill { margin-top: 1.9cqw; padding: 1.9cqw 3.75cqw; border-radius: 999px; background: rgba(255, 255, 255, .85); font: 500 4.1cqw/1.2 var(--sans); color: #151716; white-space: nowrap; }

@keyframes hx-in { from { opacity: 0; transform: translateY(28px); filter: blur(10px); } }
@keyframes hx-dial { from { opacity: 0; transform: scale(.86) rotate(-20deg); } }
@keyframes hx-tick { from { opacity: .2; transform: translateY(.12em); } }

@media (max-width: 1180px) {
  .hx { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr) minmax(0, 1fr); }
  .hx-art { height: 86%; }
}
/* Phone and narrow tablet: copy on top, the woman at the bottom with the ring over her shoulder. */
@media (max-width: 860px) {
  .hx { --dial: clamp(132px, 36vw, 220px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto;
    grid-template-areas: "copy" "art" "side"; height: auto; gap: 18px; padding-bottom: 32px; }
  .hx-title { max-width: none; font-size: clamp(40px, 11.4vw, 66px); }
  .hx-side { justify-self: start; padding: 0; }
  .hx-trust { justify-items: start; }
  /* head and shoulders right under the heading; the photo fades out below, the ring sits over its corner */
  .hx-art { grid-area: art; position: relative; left: auto; transform: none; justify-self: center; height: min(52svh, 126vw); width: auto; margin: -2% 0 -4px;
    -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
  .hx-dial { grid-area: art; justify-self: end; align-self: end; margin: 0 2px 6px 0; }
  .hx-cta .stores { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-copy, .hx-side, .hx-dial, .hx-num.tick { animation: none; }
  .hx-photo { transition: none; }
}

/* The header bar lines up with the hero card on every width (same side margins). */
.v2 .top { width: calc(100% - 2 * var(--bleed)); }
.v2 .top:not(.mini) { max-width: calc(100vw - 2 * var(--bleed)); }
