/* ==========================================================================
   LUFLY - HERO "Crafting Water"
   --------------------------------------------------------------------------
   A full-bleed cinematic first screen. One photograph (per category) runs
   under the transparent navbar; the copy, the scroll cue, the category
   selector and the trust strip float above it.

   House rules:
   * the hero pulls itself up under the sticky navbar, so the photo really
     runs underneath it while the navbar is transparent;
   * only transform / opacity are animated (the side handoff, the Ken
   Burns drift, the entrance cascade) - all compositor work;
   * prefers-reduced-motion: no autoplay zoom, no entrance cascade, a short
     plain fade only;
   * logical properties throughout, so a future RTL locale mirrors itself.
   ========================================================================== */

.hero {
  /* #1BA6A6 range, lifted a touch for contrast on photography */
  --hero-accent: #1ba6a6;
  --hero-accent-bright: #2fc4c4;
  --hero-ink: #f2f7f7;
  --hero-ink-soft: rgba(233, 244, 244, 0.82);
  --hero-deep: #040c0e;
  --hero-glass: rgba(7, 16, 18, 0.52);
  --hero-hair: rgba(255, 255, 255, 0.1);
  --hero-fade: 780ms;
  --hero-ease: cubic-bezier(0.42, 0, 0.25, 1);
  --hero-drift: 9s;

  position: relative;
  z-index: 0;
  isolation: isolate;
  /* three rows: the copy takes whatever is left above the cue/tabs row and
     the trust strip - the layout can never push the copy under the tabs */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto auto;
  background: var(--hero-deep);
  color: var(--hero-ink);

  /* The navbar is sticky and in flow above the hero; the hero box starts
     right under it, so the first screen is exactly 100svh (announcement
     bar included via --luann-h). The PHOTO layer reaches up under the
     navbar (see .hero-media) - that is what makes the bar read as part of
     the hero, and it cannot fail on a height mismatch the way a negative
     margin can. */
  block-size: calc(100vh - var(--luann-h, 0px) - var(--mnav-row1, 56px));
  block-size: calc(100svh - var(--luann-h, 0px) - var(--mnav-row1, 56px));
}

/* the photo spans all rows from behind - and continues UP under the
   navbar (with margin to spare, so the bar can never expose the page
   background behind its top edge) */
.hero-media {
  grid-area: 1 / 1 / -1 / -1;
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(-1 * (var(--mnav-row1, 56px) + 32px));
  inset-block-end: 0;
  overflow: hidden;
  /* paints the navbar strip from the very first frame, even before the
     photo has decoded (the hero box itself ends below the bar) */
  background: var(--hero-deep);
}

/* ==========================================================================
   1. Scene stack - a side-to-side handoff
   ========================================================================== */

.hero-frame {
  position: absolute;
  inset: 0;
  block-size: 100%;
  inline-size: 100%;
  object-fit: cover;
  /* anchored on the product: right side, slightly above centre */
  object-position: 64% 42%;
  opacity: 0;
  transform: translate3d(100%, 0, 0) scale(1.06);
  /* Inactive frames stay still off-canvas. Giving them no transition is
     important: cleanup must not make an invisible frame travel back across
     the scene after it has left. */
  transition: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* The active frame settles in while the outgoing frame keeps its place until
   the incoming photo is visible. Keeping both layers alive removes the blank
   flash that a simple opacity cross-fade can create. */
.hero-frame.is-active {
  z-index: 0;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.06);
  transition:
    opacity var(--hero-fade) var(--hero-ease),
    transform var(--hero-fade) var(--hero-ease);
}

.hero-frame.is-entering-left,
.hero-frame.is-entering-right {
  z-index: 0;
  opacity: 1;
  transition: none;
}

.hero-frame.is-entering-left { transform: translate3d(-100%, 0, 0) scale(1.06); }
.hero-frame.is-entering-right { transform: translate3d(100%, 0, 0) scale(1.06); }

.hero-frame.is-leaving-left,
.hero-frame.is-leaving-right {
  z-index: 0;
  opacity: 0;
  transition:
    opacity var(--hero-fade) var(--hero-ease),
    transform var(--hero-fade) var(--hero-ease);
}

.hero-frame.is-leaving-left { transform: translate3d(-100%, 0, 0) scale(1.06); }
.hero-frame.is-leaving-right { transform: translate3d(100%, 0, 0) scale(1.06); }

/* Readability gradients: navbar strip, copy side, tabs + trust strip */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(3, 10, 12, 0.9) 0%,
      rgba(3, 10, 12, 0.58) 12%,
      rgba(3, 10, 12, 0.26) 26%,
      rgba(3, 10, 12, 0) 44%),
    linear-gradient(to right,
      rgba(4, 11, 13, 0.8) 0%,
      rgba(4, 11, 13, 0.46) 24%,
      rgba(4, 11, 13, 0.12) 44%,
      rgba(4, 11, 13, 0) 60%),
    linear-gradient(to bottom,
      rgba(4, 11, 13, 0.2) 0%,
      rgba(4, 11, 13, 0.07) 8%,
      rgba(4, 11, 13, 0) 16%);
}

/* ==========================================================================
   2. Copy column
   ========================================================================== */

.hero-body {
  position: relative;
  z-index: 2;
  grid-row: 1;
  grid-column: 1 / -1;
  display: flex;
  /* Safe centring keeps the copy below the navbar when the available row is
     shorter than the copy (short laptops are the common case). */
  align-items: center;
  align-items: safe center;
  min-block-size: 0;
  inline-size: 100%;
  padding-block: clamp(24px, 4.4vh, 48px) clamp(14px, 2.2vh, 26px);
  padding-inline: max(var(--container-gutter, 24px), calc((100% - var(--container-max, 1450px)) / 2 + var(--container-gutter)));
  /* The lower controls now need very little room, so bring the copy toward
     the visual centre of the full hero instead of leaving it top-heavy. */
  transform: translateY(clamp(6px, 2.4vh, 24px));
  pointer-events: none;
}

.hero-copy {
  max-inline-size: 620px;
  pointer-events: auto;
}

/* The artwork keeps its fixed product-side composition in RTL too: keep the
   copy in the quiet left field, while its own content remains RTL. This
   prevents the reading-direction gradient from ever veiling the fittings. */
[dir='rtl'] .hero-body { direction: ltr; }
[dir='rtl'] .hero-copy {
  direction: rtl;
  text-align: start;
}

/* kicker ------------------------------------------------------------------ */

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.hero-kicker-line {
  inline-size: 34px;
  block-size: 1px;
  background: linear-gradient(90deg, var(--hero-accent-bright), rgba(47, 196, 196, 0.25));
  flex: none;
}

[dir='rtl'] .hero-kicker-line {
  background: linear-gradient(270deg, var(--hero-accent-bright), rgba(47, 196, 196, 0.25));
}

.hero-kicker-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(223, 240, 240, 0.92);
}

/* headline ----------------------------------------------------------------- */

.hero-title {
  margin: 0 0 18px;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  /* A calmer scale leaves room for the navbar and the lower hero controls
     without sacrificing the display treatment on large screens. */
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--hero-ink);
  text-wrap: balance;
}

.hero-title-row {
  display: block;
  overflow: hidden;
  padding-block-end: 0.06em; /* keep descenders inside the reveal box */
  margin-block-end: -0.06em;
}

.hero-title-word {
  display: inline-block;
}

.hero-title-row--accent .hero-title-word {
  color: var(--hero-accent-bright);
}

/* paragraph ---------------------------------------------------------------- */

.hero-desc {
  margin: 0 0 28px;
  max-inline-size: 52ch;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--hero-ink-soft);
}

/* CTAs ---------------------------------------------------------------------- */

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-body);
}

.hero-cta--primary {
  padding: 15px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hero-accent) 0%, #158e8e 100%);
  color: #032222;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    0 10px 32px rgba(27, 166, 166, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 260ms var(--hero-ease), box-shadow 260ms var(--hero-ease),
    background-color 260ms linear;
}

.hero-cta--primary svg {
  inline-size: 16px;
  block-size: 16px;
  transition: transform 260ms var(--hero-ease);
}

.hero-cta--primary:hover,
.hero-cta--primary:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--hero-accent-bright) 0%, #17a2a2 100%);
  box-shadow: 0 16px 40px rgba(27, 166, 166, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero-cta--primary:hover svg,
.hero-cta--primary:focus-visible svg {
  transform: translateX(4px);
}

[dir='rtl'] .hero-cta--primary:hover svg,
[dir='rtl'] .hero-cta--primary:focus-visible svg {
  transform: translateX(-4px);
}

.hero-cta--primary:active {
  transform: translateY(0);
}

.hero-cta--story {
  color: var(--hero-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  gap: 14px;
}

.hero-cta-play {
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  border-radius: 50%;
  border: 1px solid rgba(242, 247, 247, 0.45);
  background: rgba(7, 16, 18, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 300ms var(--hero-ease), border-color 300ms linear,
    box-shadow 300ms linear;
}

.hero-cta-play svg {
  inline-size: 17px;
  block-size: 17px;
  margin-inline-start: 2px;
  fill: var(--hero-ink);
  transition: fill 300ms linear, transform 300ms var(--hero-ease);
}

.hero-cta--story:hover .hero-cta-play,
.hero-cta--story:focus-visible .hero-cta-play {
  transform: scale(1.07);
  border-color: var(--hero-accent-bright);
  box-shadow: 0 0 0 5px rgba(27, 166, 166, 0.14), 0 8px 26px rgba(3, 10, 12, 0.4);
}

.hero-cta--story:hover .hero-cta-play svg {
  fill: var(--hero-accent-bright);
}

/* ==========================================================================
   3. Scroll cue
   ========================================================================== */

.hero-scroll {
  position: relative;
  z-index: 2;
  grid-row: 2;
  grid-column: 1;
  justify-self: start;
  align-self: end;
  margin-block-end: 30px;
  margin-inline-start: max(var(--container-gutter, 24px), calc((100% - var(--container-max, 1450px)) / 2 + var(--container-gutter)));
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: rgba(233, 244, 244, 0.72);
  transition: color 240ms linear;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--hero-ink);
}

.hero-scroll-mouse {
  display: block;
  inline-size: 21px;
  block-size: 33px;
  border: 1.5px solid currentColor;
  border-radius: 11px;
  opacity: 0.9;
}

.hero-scroll-wheel {
  display: block;
  inline-size: 3px;
  block-size: 7px;
  margin: 5px auto 0;
  border-radius: 2px;
  background: var(--hero-accent-bright);
  animation: heroWheel 1900ms cubic-bezier(0.45, 0, 0.4, 1) infinite;
}

@keyframes heroWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  71% { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-scroll-text {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

/* ==========================================================================
   4. Category selector
   ========================================================================== */

.hero-tabs {
  position: relative;
  z-index: 3;
  grid-row: 2;
  grid-column: 2;
  justify-self: end;
  align-self: end;
  margin-block-end: 26px;
  margin-inline-end: max(var(--container-gutter, 24px), calc((100% - var(--container-max, 1450px)) / 2 + var(--container-gutter)));
  max-inline-size: 100%;
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--hero-hair);
  background: var(--hero-glass);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  box-shadow: 0 24px 60px rgba(2, 8, 9, 0.45);
}

.hero-tab {
  position: relative;
  border-radius: 15px;
  transition: transform 300ms var(--hero-ease);
}

.hero-tab-switch {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: start;
  inline-size: 100%;
}

.hero-tab-thumb {
  position: relative;
  display: block;
  inline-size: 150px;
  aspect-ratio: 150 / 100;
  border-radius: 11px;
  overflow: hidden;
  background: #0a1416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: box-shadow 300ms linear;
}

.hero-tab-thumb img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 4200ms var(--hero-ease);
}

.hero-tab:hover .hero-tab-thumb img {
  transform: scale(1.08);
}

.hero-tab.is-active .hero-tab-thumb img {
  transform: scale(1.04);
}

/* teal tint over the active thumbnail */
.hero-tab-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(4, 11, 13, 0.55), rgba(4, 11, 13, 0) 46%),
    rgba(27, 166, 166, 0.14);
  opacity: 0;
  transition: opacity 300ms linear;
}

.hero-tab.is-active .hero-tab-thumb::after {
  opacity: 1;
}

/* autoplay progress: a hairline that fills while the scene is on stage */
.hero-tab-tick {
  position: absolute;
  inset-inline: 10px;
  inset-block-end: 7px;
  block-size: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  opacity: 0;
  transition: opacity 240ms linear;
}

.hero-tab-tick::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  border-radius: inherit;
  background: var(--hero-accent-bright);
  transform-origin: inline-start;
  transform: scaleX(0);
}

.hero-tab.is-active .hero-tab-tick {
  opacity: 1;
}

.hero-tab.is-active .hero-tab-tick::after {
  animation: heroTick var(--hero-dwell, 4280ms) linear forwards;
}

/* the hairline holds its breath while the visitor aims at a tab */
.hero-tabs:hover .hero-tab-tick::after {
  animation-play-state: paused;
}

[dir='rtl'] .hero-tab-tick::after {
  transform-origin: inline-end;
}

@keyframes heroTick {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* the label row: the label itself, with room reserved for the arrow link */
.hero-tab-label {
  display: block;
  min-inline-size: 0;
  padding-inline-end: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(233, 244, 244, 0.86);
  transition: color 240ms linear;
}

.hero-tab.is-active .hero-tab-label {
  color: #d8fbfb;
  text-shadow: 0 0 14px rgba(47, 196, 196, 0.55);
}

.hero-tab-arrow {
  position: absolute;
  /* sits clearly in the label row, a few px below the card's floor and
     well clear of the thumbnail above it */
  inset-block-end: -4px;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  inline-size: 28px;
  block-size: 28px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(233, 244, 244, 0.82);
  text-decoration: none;
  transition: transform 280ms var(--hero-ease), border-color 240ms linear,
    background-color 240ms linear, color 240ms linear;
}

.hero-tab-arrow svg {
  inline-size: 13px;
  block-size: 13px;
}

[dir='rtl'] .hero-tab-arrow svg {
  transform: scaleX(-1);
}

.hero-tab-arrow:hover,
.hero-tab-arrow:focus-visible {
  transform: translateX(2px) scale(1.06);
  border-color: var(--hero-accent-bright);
  background: rgba(27, 166, 166, 0.18);
  color: var(--hero-accent-bright);
}

/* active card: teal ring + glow + tint */
.hero-tab.is-active .hero-tab-switch {
  cursor: default;
}

.hero-tab.is-active::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  border: 2px solid var(--hero-accent-bright);
  /* the whole card (thumbnail + label row) reads as one glowing green
     surface, like the reference */
  background:
    linear-gradient(to top, rgba(27, 166, 166, 0.3), rgba(27, 166, 166, 0.1) 55%);
  box-shadow:
    0 0 34px rgba(47, 196, 196, 0.55),
    0 0 80px rgba(27, 166, 166, 0.3),
    inset 0 0 30px rgba(47, 196, 196, 0.22);
  pointer-events: none;
  animation: heroTabGlow 620ms var(--hero-ease);
}

/* the active thumbnail itself picks up the halo */
.hero-tab.is-active .hero-tab-thumb {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 26px rgba(27, 166, 166, 0.4);
}

@keyframes heroTabGlow {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   5. Trust strip
   ========================================================================== */

.hero-trust {
  /* NOT a surface: no background, no blur, no border, no radius - the strip
     is just text floating on the photo. The readability comes from the
     bottom gradient of .hero-shade, which darkens the whole lower third of
     the photograph so the strip reads as part of the scene, not a box.
     The four items flow from the START edge of the container (left in LTR)
     at their natural width - like the reference, nothing is centred. */
  position: relative;
  z-index: 3;
  grid-row: 3;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px max(var(--container-gutter, 24px), calc((100% - var(--container-max, 1450px)) / 2 + var(--container-gutter)));
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-inline: 30px;
  min-inline-size: 0;
}

/* the first item hugs the container edge */
.hero-trust-item:first-child {
  padding-inline-start: 0;
}

.hero-trust-item + .hero-trust-item {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-trust-icon {
  /* white outlined icons over the darkened photo, like the reference -
     the teal accent stays for the interactive elements (CTA, tabs) */
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-trust-icon svg {
  inline-size: 18px;
  block-size: 18px;
}

.hero-trust-text {
  display: grid;
  gap: 3px;
  min-inline-size: 0;
}

.hero-trust-text strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-trust-text small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   6. Entrance cascade (first paint only)
   ========================================================================== */

.hero-kicker,
.hero-title-row .hero-title-word,
.hero-desc,
.hero-ctas,
.hero-scroll,
.hero-tabs,
.hero-trust {
  animation: heroRise 760ms var(--hero-ease) both;
}

.hero-title-row .hero-title-word { animation-name: heroWord; }
.hero-kicker { animation-delay: 60ms; }
.hero-title-row:nth-child(1) .hero-title-word { animation-delay: 130ms; }
.hero-title-row:nth-child(2) .hero-title-word { animation-delay: 215ms; }
.hero-title-row:nth-child(3) .hero-title-word { animation-delay: 300ms; }
.hero-title-row:nth-child(4) .hero-title-word { animation-delay: 385ms; }
.hero-desc { animation-delay: 460ms; }
.hero-ctas { animation-delay: 540ms; }
.hero-scroll { animation-delay: 700ms; }
.hero-tabs { animation-delay: 620ms; }
.hero-trust { animation-name: heroFade; animation-delay: 700ms; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroWord {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   7. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero {
    --hero-fade: 220ms;
    --hero-drift: 0s;
  }

  .hero-frame {
    transform: none;
    transition: opacity 220ms linear;
  }

  .hero-frame.is-active,
  .hero-frame.is-entering-left,
  .hero-frame.is-entering-right,
  .hero-frame.is-leaving-left,
  .hero-frame.is-leaving-right {
    transform: none;
  }

  .hero-kicker,
  .hero-title-row .hero-title-word,
  .hero-desc,
  .hero-ctas,
  .hero-scroll,
  .hero-tabs,
  .hero-trust {
    animation: none;
  }

  .hero-scroll-wheel {
    animation: none;
  }

  .hero-tab-tick::after {
    animation: none !important;
  }
}

/* ==========================================================================
   8. Landscape laptops / short screens
   ========================================================================== */

@media (max-height: 900px) {
  .hero-title { font-size: clamp(36px, 5vw, 68px); }
  .hero-desc { margin-block-end: 24px; font-size: 15.5px; }
  .hero-cta--primary { padding: 14px 26px; }
}

@media (max-height: 800px) {
  .hero-title { font-size: clamp(34px, 4.7vw, 58px); }
  .hero-kicker { margin-block-end: 14px; }
  .hero-desc { margin-block-end: 22px; font-size: 14.5px; }
  .hero-cta--primary { padding: 13px 24px; }
}

/* On short desktop/tablet viewports the copy must never centre by overflowing
   upward into the navbar. It starts at a deliberate safe inset instead. */
@media (min-width: 761px) and (max-height: 800px) {
  .hero-body {
    align-items: flex-start;
    padding-block-start: clamp(22px, 4vh, 36px);
  }
}

@media (max-height: 680px) {
  .hero-scroll { display: none; }
  .hero-kicker { margin-block-end: 12px; }
  .hero-title { font-size: clamp(32px, 4.4vw, 50px); margin-block-end: 14px; }
  .hero-desc { display: none; }
  .hero-ctas { gap: 14px; }
}

/* ==========================================================================
   9. Tablets and below
   ========================================================================== */

@media (max-width: 1180px) {
  .hero-tabs {
    gap: 12px;
    padding: 14px;
  }

  .hero-tab-thumb { inline-size: 128px; }

  .hero-scroll {
    display: none;
  }
}

/* the trust rail gets its own breakpoint: with the reference-sized type
   the single row needs ~1360px - below that it becomes a left-anchored
   group (two NATURAL-WIDTH columns hugging the start edge, the second
   row flush with the first; a 1fr 1fr grid stretched items to the far
   side and read as centred, not left) */
@media (max-width: 1360px) and (min-width: 1025px) {
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
    column-gap: clamp(28px, 5vw, 56px);
    row-gap: 14px;
  }

  .hero-trust-item { padding-inline: 0; border-inline-start: 0; }
}

@media (max-width: 1024px) {
  /* compact 2x2: fits any width (equal halves - the natural-width group
     from the tablet band would overflow a phone), every item starts on
     the same two left lines, no dividers */
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 14px;
  }

  .hero-trust-item { padding-inline: 0; border-inline-start: 0; gap: 13px; }
  .hero-trust-icon { inline-size: 36px; block-size: 36px; }
  .hero-trust-text strong { font-size: 12.5px; }
  .hero-trust-text small { font-size: 10.5px; }

  .hero-copy { max-inline-size: 560px; }

  /* the selector takes the whole cue row instead of hugging the corner */
  .hero-tabs {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    margin-inline-end: 0;
  }
}

/* ==========================================================================
   10. Phones
   ========================================================================== */

@media (max-width: 760px) {
  .hero-copy { max-inline-size: 100%; }

  .hero-title { font-size: clamp(32px, 9vw, 46px); }
  .hero-title-row { padding-block-end: 0.1em; }

  .hero-kicker-text { font-size: 10px; letter-spacing: 0.34em; }
  .hero-desc { font-size: 14px; margin-block-end: 22px; }

  .hero-ctas { gap: 14px; }

  .hero-cta--primary { padding: 13px 22px; font-size: 11px; }
  .hero-cta-play { inline-size: 48px; block-size: 48px; }
  .hero-cta-story-text { max-inline-size: 10ch; line-height: 1.5; }

  /* The scene selector stays available on phones as the compact dot rail
     declared below; it no longer competes with the copy or the trust strip. */

  /* trust strip: the compact 2x2 from <=1024, a size smaller */
  .hero-trust {
    column-gap: 12px;
    row-gap: 10px;
    padding: 12px 18px;
  }

  .hero-trust-icon { inline-size: 32px; block-size: 32px; }
  .hero-trust-icon svg { inline-size: 15px; block-size: 15px; }
  .hero-trust-text strong { font-size: 11.5px; letter-spacing: 0.08em; }
  .hero-trust-text small { font-size: 9.5px; letter-spacing: 0.08em; }
}

/* very small phones */
@media (max-width: 400px) {
  .hero-trust-text small { display: none; }
}

/* phones in landscape: gain height by trimming the copy zone */
@media (max-width: 760px) and (max-height: 560px) {
  .hero-title { font-size: clamp(31px, 7.5vw, 42px); }
  .hero-desc { display: none; }
  .hero-trust { row-gap: 8px; }
  .hero-trust-text small { display: none; }
}

/* ==========================================================================
   11. No-JS: the stack still shows the first scene, nothing moves
   ========================================================================== */

.no-js .hero-tab-tick { display: none; }

/* ==========================================================================
   12. phones: keep the product in the narrow crop
   ========================================================================== */

@media (max-width: 760px) {
  .hero-frame { object-position: 72% 38%; }
}

/* ==========================================================================
   12.5 Scene progress dots
   --------------------------------------------------------------------------
   The old thumbnail cards took too much room and pulled the copy upward.
   Keep the selector as four small, keyboard-accessible controls: the active
   dot stretches into a progress line and contracts until the next scene is
   ready. */
.hero-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin-block-end: clamp(20px, 3vh, 30px);
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.hero-tab {
  flex: 0 0 8px;
  inline-size: 8px;
  block-size: 4px;
  border-radius: 999px;
  transition: flex-basis 360ms var(--hero-ease), inline-size 360ms var(--hero-ease);
}

.hero-tab.is-active {
  flex-basis: 56px;
  inline-size: 56px;
}

.hero-tab-switch {
  display: block;
  inline-size: 100%;
  block-size: 4px;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  color: inherit;
  cursor: pointer;
}

.hero-tab-switch:focus-visible {
  outline: 2px solid var(--hero-accent-bright);
  outline-offset: 6px;
}

.hero-tab-tick {
  position: relative;
  inset: auto;
  display: block;
  inline-size: 100%;
  block-size: 4px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.42);
  opacity: 1;
  overflow: hidden;
}

.hero-tab-tick::after {
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border-radius: inherit;
  background: var(--hero-accent-bright);
  opacity: 0;
  transform: scaleX(1);
  transform-origin: inline-start;
  animation: none;
}

.hero-tab.is-active::before {
  display: none;
}

.hero-tab.is-active .hero-tab-tick {
  background: rgba(255, 255, 255, 0.2);
}

.hero-tab.is-active .hero-tab-tick::after {
  opacity: 1;
  animation: heroTick var(--hero-dwell, 4280ms) linear forwards;
}

@keyframes heroTick {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 1024px) {
  .hero-tabs {
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center;
    margin-inline-end: 0;
  }
}

/* ==========================================================================
   13. visitors who asked for less transparency get solid surfaces
   ========================================================================== */

@media (prefers-reduced-transparency: reduce) {
  .hero-tabs,
  .hero-cta-play {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(4, 12, 14, 0.94);
  }
}

/* ==========================================================================
   14. Theme (dark / light)
   --------------------------------------------------------------------------
   One high-quality image master serves each scene. The site theme changes
   the copy-side wash and typography instead of downloading a second image;
   the product and fitting details stay untouched in both themes.
   ========================================================================== */

/* a light visitor should never flash dark while the first photo decodes */
[data-theme='light'] .hero,
[data-theme='light'] .hero-media {
  background: #d9e7e7;
}

/* One image serves both themes. In light mode the copy side becomes a soft
   daylight wash and the copy switches to deep teal; the product side stays
   untouched so the fittings remain the visual focus. */
[data-theme='light'] .hero {
  --hero-ink: #102a2a;
  --hero-ink-soft: rgba(16, 42, 42, 0.78);
}

[data-theme='light'] .hero-shade {
  background:
    linear-gradient(to top,
      rgba(3, 10, 12, 0.82) 0%,
      rgba(3, 10, 12, 0.48) 12%,
      rgba(3, 10, 12, 0.18) 26%,
      rgba(3, 10, 12, 0) 44%),
    linear-gradient(to right,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.62) 30%,
      rgba(255, 255, 255, 0.16) 53%,
      rgba(255, 255, 255, 0) 70%),
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 10%,
      rgba(255, 255, 255, 0) 18%);
}

[data-theme='light'] .hero-kicker-text {
  color: rgba(16, 42, 42, 0.84);
}

[data-theme='light'] .hero-cta-play {
  border-color: rgba(16, 42, 42, 0.42);
  background: rgba(255, 255, 255, 0.2);
}

/* the frozen copy of the outgoing artwork during a scene handoff
   (see goTo in hero.js) */
.hero-frame-ghost {
  opacity: 1;
  transform: none;
  transition: opacity 420ms var(--hero-ease);
  pointer-events: none;
}

.hero-frame-ghost.is-out {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame-ghost { transition: opacity 160ms linear; }
}

/* ==========================================================================
   15. Launch sequence - the Explore Collections button
   --------------------------------------------------------------------------
   The one showpiece animation on the page - but a FAST one: the whole
   show is over in under half a second, so the click never feels held
   back. A plain left click on the primary CTA starts it (hero.js
   intercepts the click, adds .is-launching to the section root, then
   navigates):

     t=0     the arrow ignites - it flips to bright ink with a teal halo
             (it is about to travel over the photo, where the dark
             resting ink would disappear) - pulls back a touch, then
             follows a tight decaying orbit of ~2.5 turns while a teal
             comet-arc (the vortex) spins behind it
     t=100ms the photograph starts receding (dim + a gentle zoom)
     t=140ms copy, scroll cue, tabs and trust strip start cascading out
     t=460ms hero.js hands over to the catalogue - the exit fades keep
             running while the new page loads, so the handover stays
             smooth even on a slower server

   The arrow stays crisp and readable through the orbit - no blur, no
   cover; the spin itself is the show. Everything is transform / opacity
   on composited layers. Modified clicks (ctrl/cmd/shift/alt), non-left
   buttons and prefers-reduced-motion visitors never see it; hero.js
   leaves those to the browser. The resting button carries none of this:
   every rule below lives under .is-launching.
   ========================================================================== */

.hero-cta--primary { position: relative; }

.hero-cta-arrow {
  display: inline-flex;
  position: relative;
  transform-origin: 50% 50%;
}

/* the arrow: ignite, coil back, then a wide decaying orbit into the
   centre. The radius peaks around 26px - far enough to visibly leave the
   pill and sweep across the photo */
.is-launching .hero-cta-arrow {
  animation: heroArrowSpiral 420ms cubic-bezier(0.37, 0, 0.25, 1) both;
  will-change: transform, opacity;
}

.is-launching .hero-cta-arrow svg {
  color: #ffffff;
  filter: drop-shadow(0 0 5px rgba(47, 196, 196, 0.95))
    drop-shadow(0 0 14px rgba(23, 162, 162, 0.55));
}

[dir='rtl'] .is-launching .hero-cta-arrow {
  animation-name: heroArrowSpiralRtl;
}

/* the vortex: a comet-arc ring that rides with the arrow and sweeps one
   and a half extra turns of its own, drawing the spiral path behind it,
   then collapses to nothing as the arrow dives in */
.is-launching .hero-cta-arrow::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 52px;
  block-size: 52px;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from 210deg,
    rgba(47, 196, 196, 0) 0deg,
    rgba(47, 196, 196, 0) 195deg,
    rgba(47, 196, 196, 0.6) 295deg,
    rgba(216, 251, 251, 0.95) 352deg,
    rgba(47, 196, 196, 0) 360deg);
  -webkit-mask: radial-gradient(circle,
    rgba(0, 0, 0, 0) 30%, #000 42%, #000 58%, rgba(0, 0, 0, 0) 74%);
  mask: radial-gradient(circle,
    rgba(0, 0, 0, 0) 30%, #000 42%, #000 58%, rgba(0, 0, 0, 0) 74%);
  animation: heroVortex 900ms cubic-bezier(0.37, 0, 0.25, 1) both;
}

@keyframes heroArrowSpiral {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  8%   { transform: translate(-3px, 1px) rotate(-20deg) scale(1.14); opacity: 1; }
  20%  { transform: translate(10px, -11px) rotate(90deg) scale(1.04); }
  34%  { transform: translate(19px, -17px) rotate(210deg) scale(0.94); }
  48%  { transform: translate(22px, -6px) rotate(330deg) scale(0.84); }
  62%  { transform: translate(16px, 6px) rotate(450deg) scale(0.72); }
  76%  { transform: translate(8px, 9px) rotate(570deg) scale(0.55); opacity: 0.9; }
  88%  { transform: translate(2px, 3px) rotate(720deg) scale(0.35); opacity: 0.55; }
  100% { transform: translate(0, 0) rotate(900deg) scale(0); opacity: 0; }
}

/* the same spiral, mirrored for RTL locales */
@keyframes heroArrowSpiralRtl {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  8%   { transform: translate(3px, 1px) rotate(20deg) scale(1.14); opacity: 1; }
  20%  { transform: translate(-10px, -11px) rotate(-90deg) scale(1.04); }
  34%  { transform: translate(-19px, -17px) rotate(-210deg) scale(0.94); }
  48%  { transform: translate(-22px, -6px) rotate(-330deg) scale(0.84); }
  62%  { transform: translate(-16px, 6px) rotate(-450deg) scale(0.72); }
  76%  { transform: translate(-8px, 9px) rotate(-570deg) scale(0.55); opacity: 0.9; }
  88%  { transform: translate(-2px, 3px) rotate(-720deg) scale(0.35); opacity: 0.55; }
  100% { transform: translate(0, 0) rotate(-900deg) scale(0); opacity: 0; }
}

@keyframes heroVortex {
  0%   { opacity: 0; transform: rotate(0deg) scale(0.35); }
  14%  { opacity: 0.95; transform: rotate(120deg) scale(0.85); }
  55%  { opacity: 0.8; transform: rotate(330deg) scale(1); }
  100% { opacity: 0; transform: rotate(520deg) scale(0.2); }
}

/* the button itself: freeze interactions, squeeze, glow harder */
.is-launching .hero-cta--primary {
  pointer-events: none;
  transform: scale(0.985);
  background: linear-gradient(135deg, var(--hero-accent-bright) 0%, #17a2a2 100%);
  box-shadow: 0 18px 48px rgba(27, 166, 166, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.is-launching .hero-cta--primary svg {
  transition: none;
  transform: none;
}

/* the label leans toward the vortex */
.is-launching .hero-cta-label {
  transform: translateX(3px);
  transition: transform 320ms var(--hero-ease);
}

[dir='rtl'] .is-launching .hero-cta-label {
  transform: translateX(-3px);
}

/* the photograph recedes while the UI leaves */
.is-launching .hero-media {
  animation: heroMediaExit 420ms 100ms var(--hero-ease) both;
}

@keyframes heroMediaExit {
  to { opacity: 0.32; transform: scale(1.045); }
}

/* the UI cascades out - these override the entrance cascade (same
   properties, higher specificity, later in the file), and the `both`
   fill of that cascade equals the natural state, so nothing jumps */
.is-launching .hero-kicker,
.is-launching .hero-title-row .hero-title-word,
.is-launching .hero-desc,
.is-launching .hero-scroll {
  animation: heroExit 480ms 300ms var(--hero-ease) both;
}

.is-launching .hero-tabs {
  animation: heroExit 460ms 350ms var(--hero-ease) both;
}

.is-launching .hero-trust {
  animation: heroExit 460ms 400ms var(--hero-ease) both;
}

/* the CTA row stays crisp until the spiral has finished its turn */
.is-launching .hero-ctas {
  animation: heroExit 280ms 700ms var(--hero-ease) both;
}

@keyframes heroExit {
  to { opacity: 0; transform: translateY(-14px); }
}

/* safety net: hero.js never sets the class for reduced-motion visitors -
   if it ever appears anyway, there is nothing to play */
@media (prefers-reduced-motion: reduce) {
  .is-launching .hero-cta-arrow,
  .is-launching .hero-cta-arrow::before,
  .is-launching .hero-media,
  .is-launching .hero-kicker,
  .is-launching .hero-title-row .hero-title-word,
  .is-launching .hero-desc,
  .is-launching .hero-ctas,
  .is-launching .hero-scroll,
  .is-launching .hero-tabs,
  .is-launching .hero-trust {
    animation: none !important;
  }
}
