/* Homepage closeout v3: compact menu, one integrated mark, shared hero rhythm. */

:root {
  --muted: #c0b4a5;
  --faint: #958879;
  --pink: #e88aaa;
}

body > header.site {
  position: relative;
  z-index: 40;
  overflow: visible;
  isolation: isolate;
}

body > header.site > .wrap,
body > header.site .nav {
  position: relative;
  overflow: visible;
}

body > header.site .nav {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas: "brand languages price menu";
  align-items: center !important;
  gap: clamp(8px, 1.2vw, 16px) !important;
  min-height: 78px;
  padding: 11px 0 !important;
}

body > header.site .home-unified-brand {
  grid-area: brand;
  display: inline-flex !important;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

/* The image is the only logo layer. The circular mask removes the source tile. */
body > header.site .home-unified-brand > .mono {
  display: grid !important;
  flex: 0 0 54px !important;
  place-items: center;
  width: 54px !important;
  height: 54px !important;
  margin-right: 11px;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  clip-path: circle(49% at 50% 50%) !important;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 48%, transparent 50%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 48%, transparent 50%);
  filter: drop-shadow(0 0 11px rgba(239, 140, 175, .38));
  animation: none !important;
}

body > header.site .home-unified-brand > .mono > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  clip-path: none !important;
  filter: none !important;
  mix-blend-mode: screen;
  object-fit: contain !important;
}

body > header.site .home-unified-brand .brand-text {
  min-width: 0;
}

body > header.site .home-unified-brand .wordmark {
  display: block;
  color: var(--cream, #efe7dc) !important;
  font-family: var(--serif-2, var(--serif, Georgia, serif)) !important;
  font-size: clamp(1rem, .9rem + .44vw, 1.42rem) !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  line-height: .98 !important;
  white-space: nowrap;
}

body > header.site .home-unified-brand .est {
  display: block !important;
  margin-top: 5px;
  color: var(--faint, #857a6a) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .2em !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}

/* One real menu control at every breakpoint; links live in a bounded popover. */
body > header.site .nav > .nav-toggle {
  grid-area: menu;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 13px;
  gap: 8px;
  border: 1px solid rgba(198, 156, 104, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--cream, #efe7dc);
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body > header.site .nav-toggle .ic-close,
body > header.site .nav-toggle[aria-expanded="false"] .ic-close {
  display: none !important;
}

body > header.site .nav-toggle[aria-expanded="true"] .ic-open {
  display: none !important;
}

body > header.site .nav-toggle[aria-expanded="true"] .ic-close {
  display: block !important;
}

body > header.site .nav > .nav-links {
  position: absolute !important;
  top: calc(100% + 7px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 120;
  display: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start;
  width: min(500px, calc(100vw - 24px)) !important;
  max-height: min(78svh, 620px);
  margin: 0 !important;
  padding: 9px !important;
  gap: 6px !important;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(241, 233, 223, .17) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(28, 21, 28, .98), rgba(10, 10, 13, .98)) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .54), inset 0 1px rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
}

body > header.site .nav > .nav-links.open,
body > header.site .nav > .nav-links[data-tr-nav-state="open"],
body > header.site .nav > .nav-links[data-trawa-menu-state="open"] {
  display: grid !important;
}

body > header.site .nav-links a {
  display: flex !important;
  align-items: center;
  min-width: 0;
  min-height: 46px !important;
  padding: 9px 11px !important;
  border: 1px solid rgba(241, 233, 223, .1) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .018);
  color: rgba(241, 233, 223, .9) !important;
  font-size: clamp(.76rem, .8125rem + .16vw, .9rem) !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em !important;
  text-decoration: none;
  text-transform: none !important;
}

body > header.site .nav-links a::after {
  content: none !important;
}

body > header.site .nav-links a:hover,
body > header.site .nav-links a:focus-visible,
body > header.site .nav-links a[aria-current="page"] {
  border-color: rgba(239, 140, 175, .54) !important;
  background: rgba(239, 140, 175, .1);
  color: #fff8f1 !important;
}

body > header.site .nav > .lang-switch {
  grid-area: languages;
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

body > header.site .lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  min-width: 36px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
}

body > header.site .nav > .pricebtn {
  grid-area: price;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px !important;
  max-width: min(210px, 25vw);
  margin: 0 !important;
  padding: 0 14px !important;
  overflow: hidden;
  font-size: clamp(.8125rem, .78rem + .18vw, .875rem) !important;
  font-weight: 800;
  letter-spacing: .09em !important;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero: same grid, type scale, visual role and action rhythm in all locales. */
body main > .hero:first-child,
body main > .hero:first-child .wrap,
body main > .hero:first-child .hero-grid,
body main > .hero:first-child .hero-copy,
body main > .hero:first-child .hero-visual {
  min-width: 0;
}

body main > .hero:first-child .hero-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  min-height: clamp(37rem, 56vw, 43rem) !important;
  height: auto !important;
}

body main > .hero:first-child .hero-copy {
  grid-column: 1 / span 7 !important;
  grid-row: 1 !important;
  z-index: 2;
  align-self: center;
  max-width: 45rem;
  padding: clamp(3rem, 5.5vw, 4.75rem) clamp(1.25rem, 3vw, 3rem) !important;
  padding-left: 0 !important;
}

body main > .hero:first-child .hero-copy > .eyebrow {
  max-width: 35rem;
  margin: 0;
  line-height: 1.45;
}

body main > .hero:first-child .hero h1,
body main > .hero:first-child h1 {
  width: min(100%, 45rem) !important;
  max-width: 45rem !important;
  margin: 1.2rem 0 0 !important;
  font-size: clamp(3.05rem, 4.7vw, 4.9rem) !important;
  font-weight: 600 !important;
  line-height: .99 !important;
  letter-spacing: -.04em !important;
  text-wrap: balance !important;
  overflow-wrap: anywhere;
}

body main > .hero:first-child .hero-title-line {
  display: block;
  white-space: normal !important;
}

body main > .hero:first-child .hero-title-line--accent {
  margin-top: .07em;
  color: var(--pink, #df7e9e);
  font-style: italic;
}

body main > .hero:first-child .sub {
  max-width: 34rem !important;
  margin-bottom: 0;
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem) !important;
  line-height: 1.62 !important;
  overflow-wrap: anywhere;
}

body main > .hero:first-child .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(1.45rem, 2.8vw, 2.15rem);
}

body main > .hero:first-child .hero-cta .btn {
  min-width: 0;
  min-height: 52px;
  overflow-wrap: anywhere;
}

body main > .hero:first-child .hero-visual {
  grid-column: 8 / -1 !important;
  grid-row: 1 !important;
  align-self: stretch;
  min-height: clamp(25rem, 42vw, 38rem) !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 22px;
}

body main > .hero:first-child .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 68% center;
}

/* Slightly widen the desktop visual without changing the shared hero grid. */
@media (min-width: 961px) {
  body main > .hero:first-child .hero-visual {
    margin-left: calc(-1 * clamp(1rem, 2vw, 2rem)) !important;
  }
}

/* Keep compact editorial labels readable without changing the global type scale. */
.trust-item h2 {
  font-size: 12px;
}

.home-action-card__label,
.home-action-card__go {
  font-size: 13px;
}

.home-action-guides,
.home-action-note {
  font-size: 14px;
}

@media (max-width: 960px) {
  body > header.site .nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand languages menu";
    align-items: center;
    row-gap: 0;
  }
}

@media (max-width: 700px) {
  body > header.site .nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand languages menu";
    align-items: center;
    gap: 8px !important;
    min-height: 0;
    padding: 11px 0 13px !important;
  }

  body > header.site .home-unified-brand > .mono {
    flex-basis: 50px !important;
    width: 50px !important;
    height: 50px !important;
    margin-right: 10px;
  }

  body > header.site .home-unified-brand .wordmark {
    font-size: 15px !important;
    letter-spacing: .11em !important;
  }

  body > header.site .home-unified-brand .est {
    font-size: 13px !important;
    letter-spacing: .16em !important;
  }

  body > header.site .nav > .nav-toggle {
    min-width: 46px;
    width: 46px !important;
    padding: 0;
  }

  body > header.site .nav-toggle-label {
    display: none;
  }

  body > header.site .nav > .nav-links {
    top: calc(100% + 6px) !important;
    right: 0 !important;
    width: calc(100vw - 20px) !important;
    max-height: min(78svh, 620px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 8px !important;
    gap: 5px !important;
  }

  body > header.site .nav-links a {
    min-height: 44px !important;
    padding: 8px 9px !important;
    font-size: clamp(.8125rem, .8125rem + .42vw, .82rem) !important;
  }

  body > header.site .nav > .pricebtn {
    width: auto !important;
    max-width: min(56vw, 200px);
    min-height: 44px !important;
  }

  body main > .hero:first-child .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  body main > .hero:first-child .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: min(100%, 52rem);
    padding: clamp(2.2rem, 9vw, 3.2rem) 0 1.55rem !important;
  }

  body main > .hero:first-child .hero h1,
  body main > .hero:first-child h1 {
    font-size: clamp(2.75rem, 11.2vw, 4.1rem) !important;
  }

  body main > .hero:first-child .hero-visual {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: clamp(19rem, 78vw, 25rem) !important;
    margin: 0 0 1.35rem !important;
    border-radius: 18px;
  }

  body main > .hero:first-child .hero-cta {
    gap: 10px;
  }

  body main > .hero:first-child .hero-cta .btn {
    flex: 1 1 13.5rem;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  body > header.site .home-unified-brand > .mono {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 8px;
  }

  body > header.site .home-unified-brand .wordmark {
    font-size: 13px !important;
    letter-spacing: .1em !important;
  }

  body > header.site .home-unified-brand .est {
    display: none !important;
  }

  body > header.site .lang-switch a {
    width: 32px !important;
    min-width: 32px !important;
    min-height: 42px !important;
    font-size: 13px !important;
  }

  body > header.site .nav > .pricebtn {
    max-width: min(55vw, 174px);
    padding: 0 10px !important;
    font-size: 13px !important;
    letter-spacing: .06em !important;
  }

  body main > .hero:first-child .hero-cta .btn {
    flex-basis: 100%;
  }

  body main > .hero:first-child .hero-visual {
    min-height: clamp(18rem, 86vw, 22rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > header.site .nav > .nav-links,
  body > header.site .nav > .nav-toggle,
  body > header.site .home-unified-brand > .mono,
  body > header.site .home-unified-brand > .mono > img {
    transition: none !important;
    animation: none !important;
  }
}

/* Homepage visual contract: keep the final treatment above late navigation
   fallbacks and keep localized copy on the same role system. */
body > header.site > .wrap > nav.nav > .home-unified-brand > .mono {
  background-image: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  clip-path: circle(49% at 50% 50%) !important;
  box-shadow: none !important;
  mix-blend-mode: screen !important;
  overflow: hidden !important;
}

body > header.site > .wrap > nav.nav > .home-unified-brand > .mono > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  clip-path: none !important;
  filter: drop-shadow(0 0 11px rgba(239, 140, 175, .38)) !important;
  mix-blend-mode: screen !important;
  object-fit: contain !important;
}

body > header.site .home-unified-brand .wordmark,
body > footer.site .wordmark,
body main > .hero:first-child h1,
body main > #products .home-action-head h2,
body main > #products .home-action-card h3 {
  font-family: var(--tr-role-display, var(--serif, Georgia, serif)) !important;
}

body > header.site .home-unified-brand .est,
body main > .hero:first-child .eyebrow,
body main > .hero:first-child .sub,
body main > .hero:first-child .btn,
body main > #products .home-action-intro,
body main > #products .home-action-card p,
body main > #products .home-action-guides,
body main > #products .home-action-note {
  font-family: var(--tr-role-body, var(--ui, system-ui, sans-serif)) !important;
}

body main > .hero:first-child .hero-cta .btn {
  flex: 1 1 13rem;
  min-width: 0;
  max-width: 15rem;
  justify-content: center;
}

body main > section[hidden],
body main > #products .journey-list[hidden],
body main > #legal-details .homepage-image-contracts[hidden],
body main > section .news-bar .nb-mono {
  display: none !important;
}

@media (max-width: 700px) {
  body main > .hero:first-child .hero-cta .btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
}

/* Owner feedback: the wide night photograph now belongs to the whole hero,
   instead of reading as a separate portrait card. The restrained overlays
   are solely for text contrast; no ad-hoc decorative imagery is introduced. */
body main > .hero:first-child .hero-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(34rem, 54vw, 42rem) !important;
  border: 1px solid rgba(223, 126, 158, .22);
  border-radius: 24px;
  background: #07080b;
}

body main > .hero:first-child .hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, .97) 0%, rgba(5, 6, 9, .88) 40%, rgba(5, 6, 9, .44) 68%, rgba(5, 6, 9, .08) 100%),
    linear-gradient(180deg, rgba(5, 6, 9, .12), rgba(5, 6, 9, .24));
}

body main > .hero:first-child .hero-copy {
  position: relative;
  grid-column: 1 / span 7 !important;
  z-index: 2;
  padding: clamp(3rem, 5.5vw, 4.75rem) clamp(1.5rem, 3.4vw, 3.5rem) !important;
}

body main > .hero:first-child .hero-visual {
  position: absolute !important;
  inset: 0 !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  z-index: 0;
  width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: inherit;
}

body main > .hero:first-child .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

body main > .hero:first-child .hero-cta {
  gap: 10px;
  margin-top: clamp(1.25rem, 2.3vw, 1.8rem);
}

body main > .hero:first-child .hero-cta .btn {
  flex: 0 1 auto;
  width: auto;
  max-width: none;
  padding-inline: 22px;
  gap: 10px;
  text-align: center;
  white-space: nowrap;
}

/* Remove the ornamental numbering and corner ring that competed with the
   content. The existing palette and border rhythm now carry the hierarchy. */
body main > #products .home-action-hub {
  background: linear-gradient(180deg, rgba(223, 126, 158, .055), rgba(8, 9, 11, .96));
}

body main > #products .home-action-hub::before {
  content: none;
}

body main > #products .home-action-card__label {
  margin-top: 0;
}

@media (max-width: 700px) {
  body main > .hero:first-child .hero-grid {
    min-height: clamp(38rem, 142vw, 47rem) !important;
    border-radius: 18px;
  }

  body main > .hero:first-child .hero-grid::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 9, .91) 0%, rgba(5, 6, 9, .83) 58%, rgba(5, 6, 9, .38) 100%),
      linear-gradient(90deg, rgba(5, 6, 9, .42), rgba(5, 6, 9, .1));
  }

  body main > .hero:first-child .hero-copy {
    grid-column: 1 !important;
    min-height: 100%;
    padding: clamp(2.35rem, 9vw, 3.25rem) clamp(1.15rem, 5vw, 2rem) !important;
  }

  body main > .hero:first-child .hero-visual {
    grid-row: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body main > .hero:first-child .hero-visual img {
    object-position: 62% center;
  }

  body main > .hero:first-child .hero-cta .btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    white-space: normal;
  }
}
