/* Shared responsive rhythm for every customer-facing Maison LK page. */
.cart-trigger svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Keep the mobile menu glyph centred in Safari. The former margin-based
   two-line icon could collapse into a chevron when the lines rotated. */
.menu-toggle,
.unified-menu-toggle {
  position: relative;
  place-items: center;
  place-content: center;
}
.menu-toggle span,
.unified-menu-toggle span,
.menu-toggle::before,
.unified-menu-toggle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  margin: 0 !important;
  background: currentColor;
  content: "";
  transform-origin: 50% 50%;
  transition: transform .22s ease, opacity .16s ease;
}
.menu-toggle span:first-child,
.unified-menu-toggle span:first-child { transform: translate(-50%, -6px); }
.menu-toggle::before,
.unified-menu-toggle::before { transform: translate(-50%, -50%); }
.menu-toggle span:last-child,
.unified-menu-toggle span:last-child { transform: translate(-50%, 5px); }
.menu-toggle[aria-expanded="true"]::before,
.unified-menu-toggle[aria-expanded="true"]::before { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:first-child,
.unified-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child,
.unified-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Safari-safe full-screen homepage menu. A fixed child of a blurred header can
   otherwise collapse to the header height and let links spill over the hero. */
@media (max-width: 1050px) {
  .site-header.menu-visible {
    background: #fbf8f0;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header .mobile-menu:not([hidden]) {
    position: absolute !important;
    z-index: 110;
    top: 86px !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100vw;
    height: calc(100dvh - 86px);
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 38px max(28px, env(safe-area-inset-left)) calc(34px + env(safe-area-inset-bottom));
    background: #fbf8f0 !important;
    color: #38331d;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    isolation: isolate;
  }
  .site-header .mobile-menu a { position: relative; z-index: 1; }
}

/* Editorial mobile navigation shared by the homepage and utility pages. */
@media (max-width: 1180px) {
  .mobile-menu,
  .unified-header .unified-mobile-menu:not([hidden]) {
    counter-reset: trayce-menu;
    background:
      radial-gradient(circle at 90% 6%, rgba(92, 167, 158, .13), transparent 30%),
      linear-gradient(155deg, #fbf8f0 0%, #f4f7f2 100%) !important;
  }
  .unified-header .unified-mobile-menu:not([hidden]) {
    position: absolute;
    z-index: 90;
    inset: 86px 0 auto;
    width: 100vw;
    height: calc(100dvh - 86px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 32px 28px calc(30px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .mobile-menu::before,
  .unified-mobile-menu::before {
    content: "Maison LK · CONCIERGE";
    display: block;
    margin: 0 0 18px;
    color: #9e9b48;
    font: 700 9px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .22em;
  }
  .mobile-menu a,
  .unified-mobile-menu a:not(.mobile-book) {
    counter-increment: trayce-menu;
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 11px 2px;
    border-bottom: 1px solid rgba(56, 51, 29, .13);
    color: #38331d;
    font: 300 clamp(25px, 7vw, 31px)/1.05 "Iowan Old Style", "Times New Roman", serif;
    letter-spacing: -.025em;
  }
  .mobile-menu a::before,
  .unified-mobile-menu a:not(.mobile-book)::before {
    content: counter(trayce-menu, decimal-leading-zero);
    color: #9e9b48;
    font: 600 8px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .08em;
  }
  .mobile-menu a::after,
  .unified-mobile-menu a:not(.mobile-book)::after {
    content: "→";
    color: #9e9b48;
    font: 300 17px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    opacity: .68;
    transition: transform .2s ease;
  }
  .mobile-menu a:hover::after,
  .unified-mobile-menu a:not(.mobile-book):hover::after { transform: translateX(3px); }
  .unified-mobile-menu a.active {
    margin-inline: -12px;
    padding-inline: 14px;
    border-bottom-color: transparent;
    border-radius: 14px;
    background: rgba(92, 167, 158, .11);
    color: #706b46;
  }
  .unified-mobile-menu .mobile-book {
    min-height: 52px;
    margin-top: 22px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(56, 51, 29, .13);
  }
  .mobile-menu::after,
  .unified-mobile-menu::after {
    content: "WHERE BEAUTY MEETS SERENITY";
    display: block;
    margin-top: 25px;
    color: #6e918d;
    font: 600 8px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .18em;
  }
}

@media (max-width: 680px) {
  :root {
    --mobile-gutter: max(20px, env(safe-area-inset-left));
    --page: calc(100% - 40px);
  }

  html, body { max-width: 100%; overflow-x: clip; }

  /* One consistent app-like header across the site. */
  .header-inner,
  .unified-header-inner {
    width: auto;
    margin-inline: var(--mobile-gutter);
  }
  .care-header,
  .article-header { padding-inline: var(--mobile-gutter); }
  .brand img,
  .unified-brand img,
  .care-brand img,
  .article-brand img { width: 104px; }
  .menu-toggle { display: grid; place-content: center; }
  .menu-toggle span { display: block; }
  .mobile-menu,
  .unified-header .unified-mobile-menu,
  .mobile-quick-menu > div {
    padding-inline: var(--mobile-gutter);
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .site-header .mobile-menu:not([hidden]) {
    top: 72px !important;
    height: calc(100dvh - 72px);
    padding: 28px var(--mobile-gutter) calc(30px + env(safe-area-inset-bottom));
  }
  .unified-header .unified-mobile-menu:not([hidden]) {
    inset: 72px 0 auto;
    height: calc(100dvh - 72px);
    padding: 26px var(--mobile-gutter) calc(30px + env(safe-area-inset-bottom));
  }
  .unified-actions .cart-trigger {
    width: 38px;
    height: 38px;
    position: relative;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
  }
  .unified-actions .unified-account { font-size: 0 !important; }
  .unified-actions .cart-trigger span { display: none; }
  .unified-actions .cart-trigger b {
    min-width: 17px;
    height: 17px;
    position: absolute;
    top: -4px;
    right: -4px;
    margin: 0;
    font-size: 9px;
  }

  /* Homepage: a single 20px editorial grid and calmer section rhythm. */
  .hero-inner { padding-top: 122px; padding-bottom: 76px; }
  .brand-story,
  .treatments,
  .journey { padding-top: 76px; padding-bottom: 76px; }
  .service-pillars,
  .machines,
  .machine-showcase,
  .technology-library { padding-inline: var(--mobile-gutter); }
  .br-care { padding-inline: var(--mobile-gutter); }
  .technology { grid-template-columns: 1fr; }
  .tech-copy,
  .contact-copy { padding-inline: var(--mobile-gutter); }
  .space-intro,
  .floor-chapter,
  .footer-main,
  .footer-bottom { width: var(--page); margin-inline: auto; }
  .story-copy h2,
  .section-heading h2,
  .journey h2 { letter-spacing: -.035em; }

  /* Journey and technology pages. */
  .care-hero-copy,
  .article-intro { padding: 64px var(--mobile-gutter) 72px; }
  .care-philosophy,
  .care-process,
  .article-body { width: var(--page); }
  .care-technologies,
  .related { padding: 76px var(--mobile-gutter); }
  .care-contact,
  .article-contact { padding: 76px var(--mobile-gutter); }
  .care-hero h1,
  .article-intro h1 { letter-spacing: -.045em; }

  /* Shop: preserve the framed boutique look while aligning every frame. */
  .shop-hero,
  .shop-note,
  .catalog,
  .service-strip,
  body > footer {
    width: var(--page);
  }
  .shop-hero { margin-top: 12px; }
  .shop-hero .hero-copy { padding: 44px var(--mobile-gutter) 38px; }
  .shop-note { padding: 32px var(--mobile-gutter); }
  .catalog { padding: 56px 0 68px; }
  .catalog-heading { padding-inline: 0; }
  .catalog-tools { border-radius: 14px; overflow: hidden; }
  .product-grid { border-radius: 14px; overflow: hidden; }
  .service-strip { border-inline: 1px solid var(--line); }
  .service-strip > div { padding: 28px var(--mobile-gutter); }

  /* Service menu and member area. */
  .hero > .hero-copy { padding-inline: var(--mobile-gutter); }
  .member-story { padding: 56px var(--mobile-gutter); }
  .login-panel { padding: 58px var(--mobile-gutter); }
  .member-story h1 { font-size: clamp(52px, 15vw, 58px); }
  .booking-content { padding-inline: var(--mobile-gutter); }
}

@media (min-width: 681px) and (max-width: 1180px) {
  .header-inner,
  .unified-header-inner { width: calc(100% - 56px); }
  .care-header,
  .article-header { padding-inline: 28px; }
}
