/* Discover-only polish. Preserve the editorial copy, palette and imagery.
   Reading is stationary; feedback uses the existing navigation easing token. */
html[data-motion-preferences="system"] {
  --nav-overlay-duration: 400ms;
}

/* Three independent hit areas; the logo's transparent canvas cannot cover Menu. */
.site-header:not(.home-header-v3) {
  width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(44px, 220px) minmax(0, 1fr);
  gap: 12px;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}
.site-header .brand,
.site-header.site-header--full-wordmark .brand {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  transform: none;
  justify-self: center;
}
.site-header .header-icon.header-icon--full-name,
.site-header .header-icon:not(.header-icon--full-name) {
  width: 220px;
  max-width: none;
  pointer-events: none;
  transition: none;
}
.site-header:not(.home-header-v3) .inquire-link {
  min-height: 44px;
  justify-self: end;
  margin-left: 0;
}
.site-header .menu-toggle { justify-self: start; }
.site-header.inquire-hidden .inquire-link {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}
/* Clip the whole hidden control, including its generated icon/hit area, so
   a composited header cannot leave an empty pill behind. Keep this safeguard
   instantaneous and hidden-state-only: the 1px border and layout dimensions
   stay measurable, and normal ink, focus rings and touch targets return when
   the class clears. No display:none, which would affect the header fit check. */
html[data-header-material="glass"][data-header-opening] body > .site-header[aria-label].inquire-hidden .inquire-link {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  outline-color: transparent;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
}

/* Opening the drawer changes modality, not the underlying page-header theme.
   Keep the hero transparent throughout opening, closing and interrupted exits. */
html.zuvani-header-on-dark .site-header.nav-overlay-active {
  color: var(--warm-ivory, #f3ede0);
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.zuvani-header-on-dark .site-header.nav-overlay-active .menu-toggle {
  color: var(--warm-ivory, #f3ede0);
}

/* No delayed reveal or translated text competes with reading / fast scrolling. */
html[data-motion-preferences="system"] :is(.reveal, .zuvani-process__reveal, .legal-footer__reveal),
html[data-motion-preferences="system"] .designed-intro__body.reveal,
html[data-motion-preferences="system"] .zuvani-process__cards::before {
  opacity: 1;
  transform: none;
  transition: none;
}
.discover-copy--hero :is(.discover-copy__eyebrow, h1 span, .conversion-cta) {
  animation: none;
}

/* One short marketing entrance for the two existing title spans. Keep the
   natural line wrapping and leave the eyebrow, CTA and all reading copy still.
   Visible by default: no scripts, reduced motion or missing CSS cannot strand
   the heading in a hidden state. No scroll trigger or per-letter splitting. */
@media (prefers-reduced-motion: no-preference) {
  html.zuvani-js .discover-copy--hero h1 > span {
    animation: discover-title-arrival 300ms var(--ease-out) backwards;
  }

  html.zuvani-js .discover-copy--hero h1 > span:last-child {
    animation-delay: 50ms;
  }
}

@keyframes discover-title-arrival {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.discover-hero-image { animation: discover-photo-fade 400ms var(--ease-out) both; }
@keyframes discover-photo-fade { from { opacity: 0; } to { opacity: 1; } }

/* Espresso on the existing taupe clears normal-text contrast without a copy edit. */
.zuvani-process-card--three,
.zuvani-process-card--three :is(.zuvani-process-card__icon, .zuvani-process-card__number, .zuvani-process-card__title, .zuvani-process-card__copy) {
  color: #231a10;
}
.zuvani-process-card--three .zuvani-process-card__icon {
  opacity: 1;
  border-color: #564333;
}

/* The large panel earns 400ms; keyboard / preference changes finish immediately. */
.zuvani-nav-overlay.is-visible { transition-delay: 0s; }
.zuvani-nav-link {
  transition-duration: 200ms, 250ms;
  transition-delay: calc(var(--nav-index) * 30ms);
}
.zuvani-nav-meta { transition-duration: 200ms, 250ms; transition-delay: 80ms; }
.zuvani-nav-backdrop, .zuvani-nav-backdrop.is-open { transition-duration: 200ms, 0s; }
.zuvani-nav-link-text, .zuvani-nav-close-icon { transition-duration: 200ms; }
.nav-motion-instant :is(.zuvani-nav-overlay, .zuvani-nav-overlay *, .zuvani-nav-backdrop) {
  transition: none !important;
}
.zuvani-nav-link-text { position: relative; }
.zuvani-nav-link .zuvani-nav-link-text::after {
  position: absolute;
  left: calc(100% + 14px);
  width: 34px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.zuvani-nav-link[aria-current="page"] .zuvani-nav-link-text::after { transform: scaleX(1); }

/* Frequent controls respond on down; the delegated handler never intercepts clicks. */
html[data-motion-preferences="system"] :is(.menu-toggle, .inquire-link, .conversion-cta, .zuvani-process__cta, .designed-plan__toggle, .zuvani-nav-close, .discover-scroll-cue, .zuvani-nav-social-link) {
  transition: transform 100ms var(--ease-out), opacity 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.designed-plan__toggle { top: 0; bottom: 0; margin-block: auto; transform: none; }
html[data-motion-preferences="system"] :is(.inquire-link, .conversion-cta, .zuvani-process__cta, .zuvani-process__cta-arrow, .designed-plan__toggle-icon, .zuvani-nav-close-icon, .zuvani-nav-social-link),
html[data-motion-preferences="system"] .conversion-cta::after,
html[data-motion-preferences="system"] .legal-footer__contact-arrow,
html[data-motion-preferences="system"] .legal-footer__fora-lockup,
.zuvani-nav-link:not([aria-current="page"]) .zuvani-nav-link-text {
  transform: none;
}
.zuvani-process__cta-arrow, .conversion-cta::after,
.legal-footer__contact-arrow, .legal-footer__fora-lockup {
  transition: transform 200ms var(--ease-out);
}
/* Touch: line 111 pins these arrows to transform:none ungated, and this file
   loads after public-refinements.css, so the pressed rule there loses the tie
   for .conversion-cta::after specifically, both being (0,2,2). Restating it
   with the same attribute prefix wins the press slide back. Only transform
   needs this; max-width and margin-left are uncontested on touch.
   There is deliberately no resting transform now: rest matches the desktop
   rest state, which has none, and the arrow has no width to offset. */
@media (hover: none) {
  html[data-motion-preferences="system"] .conversion-cta:active::after,
  html[data-motion-preferences="system"] .conversion-cta.is-pointer-pressed::after,
  html[data-motion-preferences="system"] .zuvani-process__cta:active .zuvani-process__cta-arrow,
  html[data-motion-preferences="system"] .zuvani-process__cta.is-pointer-pressed .zuvani-process__cta-arrow,
  html[data-motion-preferences="system"] .conversion-cta:active span:first-child,
  html[data-motion-preferences="system"] .conversion-cta.is-pointer-pressed span:first-child,
  html[data-motion-preferences="system"] .zuvani-process__cta:active span:first-child,
  html[data-motion-preferences="system"] .zuvani-process__cta.is-pointer-pressed span:first-child {
    transform: translateX(var(--btn-arrow-shift, -4px));
  }
}

html[data-motion-preferences="system"] :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  html[data-motion-preferences="system"] :is(.inquire-link, .conversion-cta, .zuvani-process__cta):hover { transform: translateY(-2px); }
  /* The footer contact arrow is a link, not a button: it keeps its original
     rightward nudge. Button arrows now travel left with their label, so the
     distance between label and arrow stays fixed. */
  html[data-motion-preferences="system"] .legal-footer__contact:hover .legal-footer__contact-arrow { transform: translateX(4px); }
  html[data-motion-preferences="system"] .zuvani-process__cta:hover .zuvani-process__cta-arrow,
  html[data-motion-preferences="system"] .conversion-cta:hover::after,
  html[data-motion-preferences="system"] .zuvani-process__cta:hover span:first-child,
  html[data-motion-preferences="system"] .conversion-cta:hover span:first-child { transform: translateX(var(--btn-arrow-shift, -4px)); }
  .zuvani-nav-link:hover .zuvani-nav-link-text::after { transform: scaleX(1); }
}
html[data-motion-preferences="system"] .is-pointer-pressed {
  transform: scale(.97) !important;
  transition-duration: 160ms;
}
html.discover-keyboard-input { scroll-behavior: auto; }
html.discover-keyboard-input :is(a, button, a::before, a::after, a span, button img) { transition: none !important; }
html.discover-keyboard-input .zuvani-nav-link:focus-visible .zuvani-nav-link-text::after { transform: scaleX(1); transition: none; }
html.discover-keyboard-input :is(a, button).is-pointer-pressed { transform: none !important; }

/* A complete list on phones, with system reduced motion, or without JavaScript.
   Duplicate rows stay in source for desktop looping but leave layout/accessibility. */
@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  .designed-plan__toggle { display: none; }
  .designed-plan__marquee { padding-inline: 24px; gap: 16px; overflow: visible; }
  .designed-plan__marquee::before, .designed-plan__marquee::after { display: none; }
  .designed-plan__track { width: 100%; animation: none; transform: none; will-change: auto; }
  .designed-plan__row[aria-hidden="true"] { display: none; }
  .designed-plan__row:not([aria-hidden]) { width: 100%; flex-wrap: wrap; justify-content: center; gap: 14px 24px; }
  .designed-plan__row li { flex: 0 1 auto; max-width: 100%; white-space: normal; font-size: 1.25rem; line-height: 1.3; }
  .designed-plan__row li::before { display: none; }
}
html:not(.discover-enhanced) .designed-plan__toggle { display: none; }
html:not(.discover-enhanced) .designed-plan__marquee { overflow: visible; padding-inline: 24px; }
html:not(.discover-enhanced) .designed-plan__marquee::before,
html:not(.discover-enhanced) .designed-plan__marquee::after { display: none; }
html:not(.discover-enhanced) .designed-plan__track { width: 100%; animation: none; transform: none; }
html:not(.discover-enhanced) .designed-plan__row[aria-hidden="true"] { display: none; }
html:not(.discover-enhanced) .designed-plan__row { flex-wrap: wrap; justify-content: center; gap: 14px 24px; }
html:not(.discover-enhanced) .designed-plan__row li { white-space: normal; max-width: 100%; }
html:not(.discover-enhanced) .designed-plan__row li::before { display: none; }
.designed-plan__marquee.is-offscreen .designed-plan__track { animation-play-state: paused; }

@media (max-width: 900px) {
  .zuvani-process-card__copy { text-align: center; text-align-last: auto; hyphens: none; -webkit-hyphens: none; }
  .seasonal, .collective-invite { grid-template-columns: minmax(0, 1fr); }
  .seasonal__copy, .collective-invite__copy { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .footer-legal-v2 .legal-footer__identity { grid-template-columns: minmax(0, 1fr); }
  .footer-legal-v2 :is(.legal-footer__brand-link, .legal-footer__zuvani-name, .legal-footer__credentials) { min-width: 0; }
}
@media (max-width: 640px) {
  .site-header:not(.home-header-v3) { grid-template-columns: auto minmax(44px, 1fr) auto; gap: 8px; padding-inline: 16px; }
  .site-header:not(.home-header-v3) .inquire-link { padding-inline: 12px; }
  .discover-copy--hero { min-width: 0; padding-inline: 20px; }
  .discover-copy--hero h1 { font-size: clamp(4rem, 23vw, 7rem); overflow-wrap: anywhere; }
  .designed-intro { grid-template-columns: minmax(0, 1fr); }
  .designed-intro__lead, .designed-intro__body { min-width: 0; }
  .designed-intro__lead h2 { font-size: clamp(2.5rem, 14vw, 5.3rem); overflow-wrap: anywhere; }
  .zuvani-process__title, .seasonal h2, .collective-invite h2 { overflow-wrap: anywhere; }
  .conversion-cta, .zuvani-process__cta { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .zuvani-nav-link .zuvani-nav-link-text::after { width: 24px; }
  .site-header.header-is-crowded { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header.header-is-crowded .brand { grid-column: 1 / -1; grid-row: 1; width: 120px; height: 44px; }
  .site-header.header-is-crowded .menu-toggle, .site-header.header-is-crowded .inquire-link { grid-row: 2; }
  .site-header.header-is-crowded .menu-toggle { flex-direction: column; gap: 2px; align-items: start; }
  .footer-legal-v2 :is(.legal-footer__closing, .legal-footer__brand-line, .legal-footer__affiliation-copy, .legal-footer__protection-copy) { overflow-wrap: anywhere; }
  /* The decorative logotype stays on one line; reading copy keeps its text scale. */
  .footer-legal-v2 .legal-footer__zuvani-word { font-size: min(clamp(2.7rem, 14vw, 3.5rem), 17vw); }
  .footer-legal-v2 .legal-footer__collective-word { letter-spacing: .24em; text-indent: .24em; }
}

/* These are independent preferences, and opt in on Discover only. */
@media (prefers-reduced-motion: reduce) {
  html[data-motion-preferences="system"] { scroll-behavior: auto; }
  .discover-hero-image { animation: discover-photo-fade 160ms ease both; }
  html[data-motion-preferences="system"] :is(.zuvani-nav-overlay, .zuvani-nav-link, .zuvani-nav-meta) { transform: none; transition: none; }
  html[data-motion-preferences="system"] :is(a, button, a::before, a::after, a span, button img) { transition: opacity 160ms ease, color 160ms ease; }
  html[data-motion-preferences="system"] :is(.inquire-link, .conversion-cta, .zuvani-process__cta, .zuvani-process__cta-arrow, .designed-plan__toggle-icon, .zuvani-nav-close-icon, .zuvani-nav-social-link, .legal-footer__contact-arrow, .legal-footer__fora-lockup),
  html[data-motion-preferences="system"] .conversion-cta::after { transform: none !important; }
  html[data-motion-preferences="system"] .is-pointer-pressed { transform: none !important; opacity: .72; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  html[data-motion-preferences="system"] .site-header:not(.nav-overlay-active),
  html[data-motion-preferences="system"] .site-header.nav-overlay-active,
  html[data-motion-preferences="system"] .zuvani-nav-overlay {
    background: #f3ede0;
    color: #231a10;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  html[data-motion-preferences="system"] .site-header:not(.nav-overlay-active) .menu-toggle,
  html[data-motion-preferences="system"] .site-header.nav-overlay-active .menu-toggle { color: #231a10; }
  .zuvani-nav-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .discover-copy--hero .conversion-cta { background: #f3ede0; }
}
@media (prefers-contrast: more) {
  html[data-motion-preferences="system"] .site-header:not(.nav-overlay-active),
  html[data-motion-preferences="system"] .site-header.nav-overlay-active { border-bottom: 2px solid #231a10; }
  .zuvani-nav-overlay { border-right: 2px solid #231a10; }
  .zuvani-process-card { border: 2px solid #231a10; }
  .designed-plan { --designed-accent: #704426; --designed-bronze: #704426; }
  .discover-copy__eyebrow, .discover-scroll-cue { color: #fff; }
}

/* Occasional feedback: acknowledge a footer tap without scaling reading text.
   The existing delegated pointer handler supplies cancellation-safe state. */
html[data-motion-preferences="system"] .footer-legal-v2 .legal-footer__contact {
  opacity: 1;
  transition: opacity 100ms var(--ease-out), color 160ms ease;
}
html[data-motion-preferences="system"] .footer-legal-v2 .legal-footer__contact.is-pointer-pressed {
  opacity: .72;
  transform: none !important;
  transition-duration: 100ms;
}

/* Playback icons and feedback are shared in playback-controls.css. */

/* New photographs only: preserve the intrinsic / CSS-reserved image space.
   No intersection observer, scroll replay, zoom, or content-hidden default. */
.seasonal__image, .collective-invite__image {
  opacity: 1;
  transition: opacity 240ms var(--ease-out);
}
.is-discover-photo-pending { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .seasonal__image, .collective-invite__image { transition-duration: 100ms; }
}
html[data-motion-preferences="system"].discover-keyboard-input .footer-legal-v2 .legal-footer__contact,
html[data-motion-preferences="system"] .footer-legal-v2 .legal-footer__contact:focus-visible {
  opacity: 1;
  transition: none;
}
