/* Persistent viewport frame: only the page content scrolls, including in embedded iOS previews. */
html { height: 100%; overflow: hidden; scroll-padding: 0; }
body { height: 100%; padding: 0; overflow: hidden; }
.site-shell { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; width: 100%; overflow: hidden; overflow: clip; }
.site-header { position: relative; inset: auto; flex: none; width: 100%; padding-top: env(safe-area-inset-top); }
.site-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scroll-behavior: smooth; scroll-padding-block: 22px; -webkit-overflow-scrolling: touch; }
.scroll-top-anchor { height: 0; }
.mobile-dock { position: relative; inset: auto; flex: none; width: 100%; }
body.photo-open .site-scroll { overflow: hidden; }
#main:focus { outline: none; }
@media (max-width: 600px) { body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .site-scroll { scroll-behavior: auto; } }

/* Progressive enhancement: content is visible without JavaScript or when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  #main [data-scroll-reveal="pending"] { opacity: 0; }
  #main [data-scroll-reveal="pending"]:focus-within { opacity: 1; }
  .gallery-photo[data-photo-depth] img {
    transform: translate3d(0, var(--photo-drift, 0px), 0) scale(1.12);
    transition: none;
  }
}

/* Frame the original wordmark cleanly, without the screenshot's sign border. */
.site-header { isolation: isolate; }
.site-header .header-main .brand {
  display: flex; align-items: center; width: clamp(162px, calc(100vw - 164px), 232px);
  max-width: calc(100% - 120px); min-width: 0; min-height: 44px; flex-shrink: 1;
  background: transparent; border-radius: 0;
}
.site-header .brand-logo { aspect-ratio: 768 / 156; filter: contrast(1.1); mix-blend-mode: lighten; }
.site-footer .footer-links { margin-top: 0; }
.site-footer .footer-main > p { margin: 0; font-size: 11px; color: var(--muted); }

/* One compact language control alongside the existing navigation button. */
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.language-control { position: relative; }
.language-toggle {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 50px; height: 40px; padding: 0 7px; list-style: none;
  border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: transparent;
  font: 500 10px/1 var(--sans);
}
.language-toggle::-webkit-details-marker { display: none; }
.language-toggle::marker { content: ''; }
.language-toggle .icon { width: 17px; height: 17px; }
.language-control[open] .language-toggle { border-color: var(--gold); color: var(--gold); }
.language-options {
  position: absolute; z-index: 110; top: calc(100% + 12px); inset-inline-end: 0;
  width: 202px; max-height: calc(100dvh - var(--header-height) - 20px); overflow-y: auto;
  padding: 8px; background: #202020; border: 1px solid #64533a; border-radius: 4px;
  box-shadow: 0 14px 35px #0006; color: #f5f1e9; text-align: start;
}
.language-options > p { margin: 0; padding: 6px 10px 8px; color: #b6b0a5; font: 400 10px/1.6 var(--sans); }
.language-options > a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px; padding: 10px; border-radius: 2px; font: 400 13px/1.6 var(--sans);
}
.language-options > a:hover, .language-options > a[aria-current=true] { background: #d1ad6b14; color: #dfbd83; }
.language-options > a .icon { width: 15px; height: 15px; }

/* Overlay the home actions so their entrance never resizes or jolts the page. */
@media (max-width: 600px) {
  .scroll-dock-ready body[data-page=home] .site-scroll { padding-block-end: 0; scroll-padding-block-end: calc(94px + env(safe-area-inset-bottom)); }
  .scroll-dock-ready body[data-page=home] .site-scroll::after { content: ''; display: block; height: calc(78px + env(safe-area-inset-bottom)); }
  .scroll-dock-ready body[data-page=home] .mobile-dock {
    position: absolute; inset: auto 0 0; display: grid; opacity: 0;
    translate: 0 112%; visibility: hidden; pointer-events: none;
    box-shadow: 0 -12px 30px #0003;
  }
  .scroll-dock-ready body[data-page=home] .mobile-dock.is-visible { opacity: 1; translate: 0 0; visibility: visible; pointer-events: auto; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .scroll-dock-ready body[data-page=home] .mobile-dock { transition: translate .72s cubic-bezier(.16, 1, .3, 1), opacity .5s ease, visibility 0s linear .72s; }
  .scroll-dock-ready body[data-page=home] .mobile-dock.is-visible { transition-delay: 0s; }
  .scroll-dock-ready body[data-page=home] .mobile-dock.is-visible > a { animation: dock-action-in .64s cubic-bezier(.16, 1, .3, 1) .05s backwards; }
  .scroll-dock-ready body[data-page=home] .mobile-dock.is-visible > a:last-child { animation-delay: .14s; }
}
@keyframes dock-action-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Keep the storefront sign readable: a wider view, anchored to its left edge. */
.gallery-photo.gallery-storefront img { object-position: left 24%; transform-origin: left center; }
.gallery-photo.gallery-people img { object-position: 50% 35%; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-storefront[data-photo-depth] img { transform: translate3d(0, var(--photo-drift, 0px), 0) scale(1.04); }
}

/* Both photographs share a separate black caption strip below the image. */
.gallery-photo.gallery-group, .gallery-photo.gallery-people { display: block; height: auto; align-self: start; }
.gallery-photo.gallery-group img { display: block; width: 100%; height: auto; aspect-ratio: 710 / 532; object-fit: contain; transform: none; }
.gallery-photo.gallery-people img { display: block; width: 100%; height: 430px; }
.gallery-photo.gallery-group::after, .gallery-photo.gallery-people::after { content: none; }
.gallery-photo.gallery-group > span, .gallery-photo.gallery-people > span { position: relative; inset: auto; padding: 16px 18px; min-height: 58px; font-size: 12px; background: #141414; }
@media (max-width: 850px) { .gallery-photo.gallery-people img { height: 350px; } }
@media (max-width: 600px) { .gallery-photo.gallery-people img { height: 340px; } }

/* Contact numbers share the same hierarchy and spacing. */
.contact-details .contact-phone { font-size: inherit; line-height: inherit; font-weight: inherit; letter-spacing: normal; }
.personal-contact .contact-phone, .personal-contact .contact-landline { font-size: 12px; line-height: 1.9; font-weight: 400; letter-spacing: normal; color: #e8e2d7; margin-bottom: 7px; }

/* The Studio page has its own cut; the home film remains unchanged. */
.studio-photo.studio-video { position: relative; overflow: hidden; width: min(100%, 360px); height: auto; aspect-ratio: 512 / 912; margin-inline: auto; background: #171717; }
.studio-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e8d5b3; border-radius: 50%; color: #fff; background: #171717c9; }
.video-toggle > span { display: flex; align-items: center; justify-content: center; }
.video-toggle .icon { width: 20px; height: 20px; }
.video-toggle:hover { background: #171717; }
.studio-video .photo-corner { position: absolute; inset-inline-start: 0; bottom: 0; pointer-events: none; padding: 13px 18px; font: 500 10px/1.6 var(--sans); color: #dfbd83; background: #171717d9; }

@media (max-width: 600px) {
  /* Headline, eye photograph, then supporting description and review attribution. */
  body[data-page=home] .hero-copy { display: contents; }
  body[data-page=home] .hero-heading {
    order: 0; padding-block: clamp(18px, 5vw, 24px) 18px; background: var(--soft);
    padding-inline-start: max(clamp(20px, 6vw, 28px), env(safe-area-inset-left));
    padding-inline-end: max(clamp(20px, 6vw, 28px), env(safe-area-inset-right));
  }
  body[data-page=home] .hero h1 { margin: 0; font-size: clamp(36px, 10.6vw, 48px); line-height: 1.07; letter-spacing: -.045em; overflow-wrap: normal; }
  body[data-page=home] .hero h1 > span { margin-top: 6px; font-size: .75em; line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
  html[lang=de] body[data-page=home] .hero h1 > span { white-space: nowrap; }
  html[lang=ar] body[data-page=home] .hero h1 { letter-spacing: 0; line-height: 1.25; }
  html[lang=ar] body[data-page=home] .hero h1 > span { letter-spacing: 0; }
  body[data-page=home] .hero-media { order: 1; }
  body[data-page=home] .hero-details {
    order: 2; padding-block: 16px 22px; background: var(--soft);
    padding-inline-start: max(clamp(20px, 6vw, 28px), env(safe-area-inset-left));
    padding-inline-end: max(clamp(20px, 6vw, 28px), env(safe-area-inset-right));
  }
  body[data-page=home] .hero-text { max-width: 42ch; font-size: clamp(13px, 3.35vw, 14px); line-height: 1.65; text-wrap: pretty; }
  .hero-eyes-mobile { height: auto; min-height: 0; aspect-ratio: 4 / 3; background: #202020; }
  .hero-eyes-mobile img, .hero-eyes-mobile[data-photo-depth] img { object-fit: cover; object-position: 50% 50%; transform: none; }
  .hero-eyes-mobile::after, .hero-eyes-mobile .image-label, body[data-page=home] .hero-photo-link { display: none; }
  .personal-contact .contact-phone, .personal-contact .contact-landline { font-size: 13px; }
  .google-rating { margin-top: 14px; }
}

/* Compact contact heading. */
.contact-card.personal-contact-card h2 { font-size: 26px; line-height: 1.3; }

/* Match the studio introduction to the homepage typography. */
body[data-page="studio"] .page-intro h1 { font-family: var(--sans); font-weight: 600; }

/* A thin gold line marks reading progress without moving the fixed header. */
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow .35s ease; }
  .site-header.is-scrolled { box-shadow: 0 10px 28px #0004; }
  .site-header[data-scroll-progress]::after {
    content: ''; position: absolute; z-index: 120; inset-inline: 0; bottom: -1px;
    height: 2px; pointer-events: none; transform-origin: left center;
    background: linear-gradient(90deg, #947341, #e3c489);
    transform: scaleX(var(--scroll-progress, 0));
  }
  html[dir=rtl] .site-header[data-scroll-progress]::after { transform-origin: right center; }

  /* Move the whole group photograph so everyone stays within the original frame. */
  .gallery-photo[data-motion-photo] {
    transform: translate3d(0, var(--gallery-y, 0px), 0) scale(var(--gallery-scale, 1));
    box-shadow: 0 16px 34px #0003; transition: box-shadow .45s ease;
  }
  .gallery-photo[data-motion-photo][data-photo-visible] { will-change: transform; }
  .gallery-photo[data-motion-photo][data-photo-visible]:not(.gallery-group) img { will-change: transform; }
  .gallery-photo[data-motion-photo]::before {
    content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none;
    border: 1px solid #d1ad6b50; opacity: .5; transition: opacity .35s ease;
  }
  .gallery-photo[data-motion-photo]:focus-visible::before { opacity: 1; }

  .faq-list details[open] > p { animation: disclosure-arrive .35s cubic-bezier(.16, 1, .3, 1) both; }
  .mobile-nav:not([hidden]) > a { animation: navigation-arrive .4s cubic-bezier(.16, 1, .3, 1) both; }
  .mobile-nav:not([hidden]) > a:nth-child(2) { animation-delay: .04s; }
  .mobile-nav:not([hidden]) > a:nth-child(3) { animation-delay: .08s; }
  .mobile-nav:not([hidden]) > a:nth-child(4) { animation-delay: .12s; }
  .mobile-nav:not([hidden]) > a:nth-child(5) { animation-delay: .16s; }
  .language-control[open] .language-options { animation: navigation-arrive .24s cubic-bezier(.16, 1, .3, 1) both; }
  .button, .mobile-dock a, .menu-toggle { transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
  .button:active, .mobile-dock a:active, .menu-toggle:active { transform: scale(.98); }
  .button > .icon, .text-link > .icon { transition: translate .3s cubic-bezier(.16, 1, .3, 1); }
  .button:focus-visible > .icon, .text-link:focus-visible > .icon { translate: 3px 0; }
  html[dir=rtl] .button:focus-visible > .icon, html[dir=rtl] .text-link:focus-visible > .icon { translate: -3px 0; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .gallery-photo[data-motion-photo]:hover { box-shadow: 0 22px 44px #0005; }
  .gallery-photo[data-motion-photo]:hover::before { opacity: 1; }
  .button:hover { transform: translateY(-2px); box-shadow: 0 6px 18px #0002; }
  .button:hover > .icon, .text-link:hover > .icon { translate: 3px 0; }
  html[dir=rtl] .button:hover > .icon, html[dir=rtl] .text-link:hover > .icon { translate: -3px 0; }
}
@keyframes disclosure-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes navigation-arrive { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gallery-photo img, .gallery-photo:hover img { transform: none; transition: none; }
}

/* Keep the full navigation readable before switching to the compact menu. */
.desktop-nav a { white-space: nowrap; }
@media (min-width: 851px) and (max-width: 1280px) {
  .site-header .desktop-nav { display: none; }
  .site-header .header-book { margin-inline-start: auto; }
  .site-header .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; gap: 6px; padding: 9px; background: transparent; border: 1px solid var(--line); border-radius: 3px; }
  .site-header .menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); }
  .site-header #mobile-nav:not([hidden]) { display: flex; flex-direction: column; position: absolute; inset-inline: 0; top: 100%; padding: 10px 28px 24px; background: var(--paper, #171717); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto; box-shadow: 0 16px 30px #0005; }
  .site-header #mobile-nav > a { display: flex; align-items: center; min-height: 52px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
}

/* Native details remain the fallback; JavaScript animates this measured panel. */
.disclosure-panel { display: flow-root; }
details[data-disclosure-state=closing] > summary .disclosure-icon { transform: rotate(0); }
.contact-card .contact-call { margin-top: 22px; min-height: 46px; font-size: 12px; gap: 10px; }

/* Separate rolling characters from the static, original Google artwork. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rating-ready { position: relative; display: inline-block; line-height: 1.1; }
.rating-visual { position: relative; display: inline-flex; vertical-align: bottom; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.rating-wheel { display: block; height: 1.1em; overflow: hidden; perspective: 180px; }
.rating-glyph { display: block; line-height: 1.1; transform-origin: center 65%; backface-visibility: hidden; }
.rating-rule { position: absolute; inset-inline: 0; bottom: -.1em; height: 1px; background: var(--accent, var(--gold)); opacity: .85; transform-origin: left center; }
html[dir=rtl] .rating-rule { transform-origin: right center; }

/* Only the current page or section is gold; compact rows retain generous touch targets. */
.site-header #mobile-nav > a, .site-header .desktop-nav > a { color: var(--ink); }
.site-header #mobile-nav > a[aria-current], .site-header .desktop-nav > a[aria-current] { color: var(--accent, var(--gold)); }
@media (max-width: 1280px) {
  .site-header #mobile-nav:not([hidden]) { padding-block: 6px 14px; max-height: calc(100dvh - var(--header-height) - 80px); }
  .site-header #mobile-nav > a { flex-shrink: 0; min-height: 48px; padding-block: 10px; line-height: 1.5; }
}

/* Equal typography and aligned chevrons across every service area. */
.service-catalog .service-category > summary { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: start; gap: 20px; padding-block: 22px; padding-inline: 0; }
.service-catalog .service-category .category-title { font: 500 clamp(21px, 2.2vw, 24px)/1.35 var(--sans); letter-spacing: -.02em; }
.service-catalog .service-category .summary-end { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; padding-top: 5px; min-width: 0; }
.service-catalog .service-category .category-count { font-size: 11px; line-height: 1.5; }
.service-catalog .service-category summary small { font-size: 12px; line-height: 1.65; margin-top: 7px; }
html[lang=ar] .service-catalog .service-category .category-title { letter-spacing: 0; }
body[data-page=home] .contact-columns { padding-top: 0; }
body[data-page=faq] .page-intro h1 { font-family: var(--sans); font-weight: 600; }
.faq-page-list { padding-bottom: 64px; }
.faq-page-list .faq-list { max-width: 900px; }
.faq-page-list .faq-list summary { min-height: 60px; font-size: 15px; line-height: 1.6; }
.faq-page-list .faq-list details > p { font-size: 14px; line-height: 1.8; }

/* Contextual links and the focused hair-service page reuse the existing typography. */
.studio-copy .inline-link { color: var(--accent, var(--gold)); text-decoration: underline; text-underline-offset: 3px; }
.service-local-link { margin-bottom: 20px; }
.breadcrumb-separator { color: var(--muted); font-size: 12px; }
.hair-overview { max-width: 800px; padding-bottom: 26px; }
.hair-overview h2, .hair-visit h2 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; }
.hair-overview p, .hair-visit p { margin-top: 14px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.hair-visit { max-width: 900px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hair-links { display: flex; flex-wrap: wrap; column-gap: 24px; margin-top: 10px; }

/* End the arrival content naturally; the persistent dock already supplies booking. */
body[data-page=contact] .arrival-section { padding-bottom: 56px; }

/* A compact legal footer, retaining comfortable links and the back-to-top action. */
.site-footer { padding-block: 12px 10px; border-top: 1px solid var(--line); }
.site-footer .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.site-footer .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; margin: 0; font-size: 11px; }
.site-footer .footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer .footer-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 22px; color: var(--muted); font: 400 10px/1.5 var(--sans); }
.site-footer .footer-meta a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 600px) {
  body[data-page=home] .treatments.section-space { padding-top: clamp(24px, 7vw, 36px); }
  body[data-page=home] .treatments h2 { scroll-margin-block: 20px calc(94px + env(safe-area-inset-bottom)); }
  body[data-page=home] .contact-section { padding-bottom: 24px; }
  body[data-page=contact] .arrival-section { padding-bottom: 24px; }
  .service-catalog .service-category > summary { grid-template-columns: minmax(0, 1fr) 70px; gap: 14px; padding-block: 20px; }
  .service-catalog .service-category .category-title { font-size: clamp(19px, 5.1vw, 22px); }
  .service-catalog .service-category summary small { font-size: 11px; }
  .service-catalog .service-category .category-count { font-size: 10px; }
  .faq-page-list { padding-bottom: 40px; }
  .faq-page-list .faq-list summary { font-size: 14px; }
  .faq-page-list .faq-list details > p { font-size: 13px; }
  .site-footer .footer-inner { display: block; }
  .site-footer .footer-links a { min-height: 44px; }
  .site-footer .footer-meta { gap: 0 12px; }
}
@media (max-width: 360px) {
  .service-catalog .service-category > summary { grid-template-columns: minmax(0, 1fr) 62px; gap: 12px; }
}
