/* Original tiarasalon.com header + overlay menu (Aether template)
   Extracted from main.css + main-responsive.css. Menu typography uses
   px equivalent of the original 2.5rem/5rem at Bootstrap's html font-size of 10px,
   so this file does not change the rebuild pages' root font-size. */

header.masthead {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100px;
    padding: 20px 0px;
    text-align: center;
    z-index: 9995;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: transparent;
    border-bottom: none;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}
/* v63: paint the rail white only on a fine-pointer hover.
   Touch taps can leave :hover stuck, which showed a left white
   strip over the full-bleed home hero. */
@media (hover: hover) and (pointer: fine) {
    header.masthead:hover {
        background-color: rgba(255,255,255,1);
        border-bottom: none;
        -webkit-transition: all .4s ease-in-out;
        -moz-transition: all .4s ease-in-out;
        -ms-transition: all .4s ease-in-out;
        -o-transition: all .4s ease-in-out;
        transition: all .4s ease-in-out;
    }
}
@media screen and (max-width: 600px) {
    header.masthead:hover {
        background-color: rgba(255, 255, 255, 0);
    }
}
header.masthead *,
header.masthead *::before,
header.masthead *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
header.masthead.no-bgcolor {
    background-color: transparent !important;
}
.main-logo {
    width: auto;
    max-width: 200px;
    height: 40px;
    display: block;
}
header.masthead a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}
.page-caps {
    font-size: 16px;
    line-height: 1.1;
    font-weight: 500;
    margin: 10px 0;
    bottom: 30px;
    display: inline-block;
    font-family: inherit;
    left: 50%;
    position: absolute;
    -webkit-transform: translateY(50%) rotate(-90deg);
    -webkit-transform-origin: 0 50% 0;
    -ms-transform: translateY(50%) rotate(-90deg);
    -ms-transform-origin: 0 50% 0;
    -moz-transform: translateY(50%) rotate(-90deg);
    -moz-transform-origin: 0 50% 0;
    -o-transform: translateY(50%) rotate(-90deg);
    -o-transform-origin: 0 50% 0;
    transform: translateY(50%) rotate(-90deg);
    transform-origin: 0 50% 0;
    white-space: nowrap;
}

.mastnav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 4, 4, 0.9);
    background-size: cover;
    z-index: 9990;
    overflow: hidden;
    border-bottom: none;
}
.mastnav-bordered {
    border: solid 100px white;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}
.mobile-menu-icon {
    display: none;
    position: fixed;
    top: 50px;
    left: 15px;
    z-index: 9999;
}
.mobile-menu-icon a span,
.mobile-menu-icon button span {
    font-size: 36px;
    line-height: 36px;
}
.mobile-menu-icon-close {
    display: none;
}
.mobile-menu-icon button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.menu-icon-trigger {
    position: fixed;
    top: 50%;
    left: 5px;
    height: 100px;
    margin-top: -50px;
    z-index: 9999;
}
.menu-icon-wrapper {
    visibility: hidden;
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: 34px;
    height: 34px;
    margin: 28px;
    overflow: visible;
    pointer-events: none;
    transition: 0.1s;
}
.menu-icon-wrapper.scaled {
    -webkit-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -o-transform: scale(0.5);
    transform: scale(0.5);
}
.menu-icon-wrapper svg {
    position: absolute;
    top: -52px;
    left: -52px;
    width: 1000px;
    height: 1000px;
    max-width: none;
    overflow: visible;
    -webkit-transform: scale(0.1);
    -ms-transform: scale(0.1);
    -moz-transform: scale(0.1);
    -o-transform: scale(0.1);
    transform: scale(0.1);
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0;
}
.menu-icon-wrapper svg path {
    stroke: #111;
    stroke-width: 30px;
    stroke-linejoin: round;
    fill: transparent;
}
.menu-icon-wrapper .menu-icon-trigger {
    /* Live inner trigger is an empty inline 0x0 box, centered in the
       34px wrapper, plus the leaked left:5px from .menu-icon-trigger.
       Keep a button for accessibility but match that containing block
       so the SVG stroke sits on the original marks. */
    position: absolute;
    left: calc(50% + 5px);
    top: 50%;
    width: 0;
    height: 0;
    cursor: pointer;
    pointer-events: auto;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.menu-icon-wrapper .menu-icon-trigger::after {
    content: "";
    position: absolute;
    left: -22px;
    top: -22px;
    width: 44px;
    height: 44px;
}
.menu-icon-wrapper .menu-icon-trigger:hover,
.menu-icon-wrapper .menu-icon-trigger:focus {
    outline: none;
}
.menu-icon-wrapper .menu-icon-trigger:focus-visible::after {
    outline: 2px solid #C9A43B;
    outline-offset: 2px;
}

.menu-panel {
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}
.menu-panel.halfview {
    -ms-transform: translate(-25.5%, -50%);
    -webkit-transform: translate(-25.5%, -50%);
    -moz-transform: translate(-25.5%, -50%);
    -o-transform: translate(-25.5%, -50%);
    transform: translate(-25.5%, -50%);
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}
.menu-panel nav > ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}
.menu-panel ul li {
    display: block;
    text-align: center;
}
.menu-panel ul li a,
.menu-panel ul li button.nav-flyout {
    font-size: 25px; /* 2.5rem at the original 10px root */
    line-height: 50px; /* 5rem */
    text-align: center;
    color: inherit;
    text-decoration: none !important;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-weight: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: auto;
}
.menu-panel ul li a:hover,
.menu-panel ul li a:focus-visible,
.menu-panel ul li button.nav-flyout:hover,
.menu-panel ul li button.nav-flyout:focus-visible {
    color: #936A14;
}
.mastnav .text-center { text-align: center; }

@media screen and (max-width: 992px) {
    .menu-panel ul li { text-align: left; }
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout { text-align: left; }
}

.sub-menu {
    display: none;
    width: 50%;
    height: 100%;
    position: absolute;
    top: 0px;
    right: 0px;
    padding-top: 5px;
    padding-bottom: 15px;
    text-align: center;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}
.sub-menu.halfview {
    -ms-transform: translateX(50%);
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -o-transform: translateX(50%);
    transform: translateX(50%);
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}
.sub-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.sub-menu ul:before {
    content: '';
    width: 50px;
    height: 6px;
    background: url('../../assets/images/arrow-right-white.png') left center no-repeat;
    color: #fff;
    display: inline-block;
}
.sub-menu li {
    display: inline-block !important;
    margin: 0 10px;
    padding-top: 5px !important;
}
.sub-menu li a {
    font-size: 16px !important;
    line-height: 24px !important;
}

.valign {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}
/* On desktop the live site's .back-button computes to 0 width;
   the visible arrow is .sub-menu ul:before. The clickable back
   control is styled starting at the 992px breakpoint. */
.back-button {
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
.sub-menu li.back-item {
    margin: 0;
    padding: 0 !important;
}

.font3 { font-family: Hind, sans-serif; }
.white { color: #fff; }
.grey { color: #595959; }
.black { color: #0c0c0c; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 1200px) {
}

@media (max-width: 992px) {
    .page-caps { display: none; }
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout {
        font-size: 20px !important;
        line-height: 40px !important;
    }
    .sub-menu li { display: block !important; }
    .menu-icon-trigger { display: none; }
    .mobile-menu-icon { display: block; left: auto; right: 20px; top: 16px; }
    .back-button {
        width: 50px;
        height: 26px;
        overflow: visible;
        background: url('../../assets/images/arrow-right-white.png') left center no-repeat;
        color: #fff;
        display: inline-block;
        transform: rotate(180deg) translateX(5px);
        transition: all 0.5s ease;
        cursor: pointer;
    }
    .sub-menu li.back-item {
        margin: 0 10px;
        padding-top: 5px !important;
    }
    .back-button:hover {
        cursor: pointer;
        transform: rotate(180deg) translateX(10px);
    }
    .sub-menu ul:before { content: none; }
    .menu-panel.halfview {
        -ms-transform: translate(-100%, -50%);
        -webkit-transform: translate(-100%, -50%);
        -moz-transform: translate(-100%, -50%);
        -o-transform: translate(-100%, -50%);
        transform: translate(-100%, -50%);
        -webkit-transition: all .4s ease-in-out;
        -moz-transition: all .4s ease-in-out;
        -ms-transition: all .4s ease-in-out;
        -o-transition: all .4s ease-in-out;
        transition: all .4s ease-in-out;
    }
    .sub-menu.halfview {
        -ms-transform: translateX(150%);
        -webkit-transform: translateX(150%);
        -moz-transform: translateX(150%);
        -o-transform: translateX(150%);
        transform: translateX(150%);
        -webkit-transition: all .4s ease-in-out;
        -moz-transition: all .4s ease-in-out;
        -ms-transition: all .4s ease-in-out;
        -o-transition: all .4s ease-in-out;
        transition: all .4s ease-in-out;
    }
    .menu-panel nav > ul {
        text-align: left;
        display: inline-block;
    }
    .menu-panel nav li { text-align: left; }
    .menu-panel nav .valign {
        text-align: left;
        display: inline-block;
    }
    .sub-menu { width: 50%; }
}

@media (max-width: 768px) {
    .menu-icon-trigger { z-index: 9999; }
}

@media screen and (max-width: 736px) {
    header.masthead:hover { background-color: #ffffff00 !important; }
}

@media screen and (max-width: 667px) {
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout {
        font-size: 21px !important;
        line-height: 39px !important;
    }
    header.masthead:hover { background-color: #ffffff00 !important; }
}

@media screen and (max-width: 600px) {
    header.masthead {
        padding: 5px;
        width: 50px;
    }
    .menu-icon-wrapper { margin: 3px; }
    .mobile-menu-icon { left: auto; right: 14px; top: 12px; }
    .main-logo { width: auto; max-width: 150px; height: 28px; }
    .mastnav-bordered { border-width: 50px; }
    .menu-icon-trigger { top: 0; margin-top: 50px; }
}

@media screen and (max-width: 320px) {
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout {
        font-size: 18px !important;
        line-height: 30px !important;
    }
}

@media (max-width: 767px) {
    .custom-size-nav-2 { width: 150% !important; }
    .custom-size-nav-1 { width: 30% !important; }
    .sub-menu.halfview { transform: translateX(130%) !important; }
}

@media (prefers-reduced-motion: reduce) {
    .menu-panel, .sub-menu, .back-button, header.masthead, .mastnav-bordered, .menu-icon-wrapper {
        transition-duration: 0.01ms !important;
    }
}


/* Inner-page rail: pad main copy only; full-bleed sections break out.
   The original site uses section.subwrap { padding-left: 100px } so galleries
   and the footer run edge to edge under the fixed 100px masthead.
   v23: the breakout used margin-left:-100px !important at every width. The
   mobile reset (max-width:600px) did not always win, so on real iOS Safari
   those sections (studio-services, contact masthead, footer, service tiles)
   shifted 100px left and were clipped. Apply the rail and the matching
   breakout only at desktop widths, where the 100px left masthead is shown
   (hamburger starts at 992px). Mobile/tablet stay at zero offset. */
body.page-inner main {
    padding-left: 0;
    box-sizing: border-box;
}
body.page-inner .works-container,
body.page-inner .works-masonry-container,
body.page-inner footer.mastfoot,
body.page-inner .credits,
body.page-inner .project-carousel-wrap,
body.page-inner .studio-services,
body.page-inner .contact-header {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
@media screen and (min-width: 993px) {
    body.page-inner main {
        padding-left: 100px;
    }
    body.page-inner .works-container,
    body.page-inner .works-masonry-container,
    body.page-inner footer.mastfoot,
    body.page-inner .credits,
    body.page-inner .project-carousel-wrap,
    body.page-inner .studio-services,
    body.page-inner .contact-header {
        margin-left: -100px !important;
        width: calc(100% + 100px) !important;
        max-width: none;
        box-sizing: border-box;
    }
}


/* v22: full wordmark logo, top-left; content-aware contrast; hamburger top-right.
   Logo, desktop hamburger and vertical page-caps sit outside header.masthead
   so mix-blend-mode can see the page behind them (a fixed+z-index header
   creates a stacking context).
   CB-11: the same difference blend is applied to the desktop hamburger and
   the vertical side-panel text. The site logo hovers/focuses to Tiara gold. */
a.site-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9996;
    display: block;
    line-height: 0;
    text-align: left;
    overflow: visible;
}
a.site-logo .site-logo__mark {
    display: block;
    line-height: 0;
    transition: opacity 0.4s ease-in-out;
}
.main-logo {
    width: auto !important;
    max-width: 200px !important;
    height: 40px !important;
    display: block;
}
/* Gold hover/focus overlay. The mask uses the same wordmark as the img. */
a.site-logo::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #C9A43B;
    -webkit-mask-image: url("../../assets/images/logo.svg");
    mask-image: url("../../assets/images/logo.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}
/* Fallback when mix-blend-mode is unavailable */
a.site-logo .main-logo {
    filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.mobile-menu-icon span {
    color: #fff !important;
    text-shadow: 0 0 2px #000, 0 0 2px #000;
}
/* Desktop hamburger: white strokes so difference blend inverts against the page.
   Fallback halo keeps the icon readable when mix-blend-mode is missing. */
div.menu-icon-trigger .menu-icon-wrapper svg path {
    stroke: #fff;
    filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
/* Vertical side text sits in the 100px rail, fixed to the viewport so it
   can blend with photos and the footer as they scroll underneath. */
.page-caps {
    left: 50px;
    position: fixed;
    z-index: 9997;
    color: #d0d0d0;
    pointer-events: none;
    text-shadow: 0 0 2px #000, 0 1px 2px rgba(0, 0, 0, 0.55);
}
.page-caps.grey {
    color: #d0d0d0;
}
.page-caps .black {
    color: #fff;
}
@supports (mix-blend-mode: difference) {
    a.site-logo {
        filter: none;
        -webkit-mix-blend-mode: difference;
        mix-blend-mode: difference;
    }
    a.site-logo .main-logo {
        filter: none;
        mix-blend-mode: normal;
    }
    .mobile-menu-icon {
        -webkit-mix-blend-mode: difference;
        mix-blend-mode: difference;
    }
    .mobile-menu-icon span {
        color: #fff !important;
        text-shadow: none;
    }
    div.menu-icon-trigger {
        -webkit-mix-blend-mode: difference;
        mix-blend-mode: difference;
    }
    div.menu-icon-trigger .menu-icon-wrapper svg path {
        filter: none;
    }
    .page-caps {
        text-shadow: none;
        -webkit-mix-blend-mode: difference;
        mix-blend-mode: difference;
    }
}
/* v52: logo, desktop hamburger and page-caps sit outside header.masthead
   so mix-blend-mode can see the page. Hovering those chrome elements
   therefore did not trigger header.masthead:hover, and the rail only
   turned white on the uncovered strips (typically the top). Keep the
   existing white rail and 0.4s transition, and also paint it when the
   pointer is over the logo or the hamburger. Desktop only; mobile
   hover remains disabled.
   v63/v64: :hover and :focus-visible are limited to fine pointers
   so a tap on touch devices cannot leave the white rail stuck
   (WebKit leaves :focus-visible on the hamburger after a tap). */
@media screen and (min-width: 737px) and (hover: hover) and (pointer: fine) {
    @supports selector(:has(*)) {
        body:has(a.site-logo:hover) header.masthead,
        body:has(a.site-logo:focus-visible) header.masthead,
        body:has(div.menu-icon-trigger:hover) header.masthead,
        body:has(#menu-icon-trigger2:hover) header.masthead,
        body:has(#menu-icon-trigger2:focus-visible) header.masthead {
            background-color: rgba(255, 255, 255, 1);
        }
    }
}
/* t283u: slower gold hover. mix-blend-mode cannot be interpolated, so a
   body-level gold overlay (outside the difference-blended logo) crossfades
   with the wordmark: fade in 0.6s, fade out 0.4s, ease-in-out. No flash. */
a.site-logo:focus {
    outline: none;
}
a.site-logo:focus-visible {
    outline: 2px solid #C9A43B;
    outline-offset: 4px;
}

/* Fallback when :has() is unavailable: hide the blended mark instantly
   (avoids an unblended black flash) and fade the in-logo gold overlay. */
@supports not selector(:has(*)) {
    a.site-logo:hover,
    a.site-logo:focus-visible {
        -webkit-mix-blend-mode: normal;
        mix-blend-mode: normal;
    }
    a.site-logo:hover .main-logo,
    a.site-logo:focus-visible .main-logo {
        opacity: 0;
        transition: none;
    }
    a.site-logo:hover::after,
    a.site-logo:focus-visible::after {
        opacity: 1;
        transition-duration: 0.6s;
    }
}

@supports selector(:has(*)) {
    a.site-logo::after {
        content: none;
    }
    body::before {
        content: "";
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 9996;
        width: calc(40px * 247.6 / 63.2);
        height: 40px;
        background-color: #C9A43B;
        -webkit-mask-image: url("../../assets/images/logo.svg");
        mask-image: url("../../assets/images/logo.svg");
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: left center;
        mask-position: left center;
        -webkit-mask-size: contain;
        mask-size: contain;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease-in-out;
    }
    body:has(a.site-logo:hover)::before,
    body:has(a.site-logo:focus-visible)::before {
        opacity: 1;
        transition-duration: 0.6s;
    }
    body:has(a.site-logo:hover) a.site-logo .site-logo__mark,
    body:has(a.site-logo:focus-visible) a.site-logo .site-logo__mark {
        opacity: 0;
        transition-duration: 0.6s;
    }
    /* Logo stays difference-blended while it fades, so the gold can
       appear as true #C9A43B without switching mix-blend-mode. */
    body.menu-open::before {
        opacity: 0 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.site-logo::after,
    a.site-logo .site-logo__mark,
    body::before {
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 992px) {
    .mobile-menu-icon {
        display: block;
        left: auto !important;
        right: 20px;
        top: 16px;
    }
}
@media (max-width: 600px) {
    a.site-logo {
        top: 14px;
        left: 14px;
    }
    .main-logo {
        height: 28px !important;
        max-width: 150px !important;
    }
    body::before {
        top: 14px;
        left: 14px;
        width: calc(28px * 247.6 / 63.2);
        height: 28px;
    }
    .mobile-menu-icon {
        left: auto !important;
        right: 14px;
        top: 12px;
    }
}


/* v28: mobile menu matches the original tiarasalon.com recording.
   White frame (~8% top/bottom, ~12% sides) around a dark translucent
   inset. Main list starts at the panel's horizontal center, ~25% down.
   Opening Services/About slides the main labels left (clipped at the
   panel edge) while the submenu slides in from the right, 400ms
   ease-in-out. Submenu is left-aligned at the panel's left padding,
   with the thin back arrow on top. Close stays top-right; logo stays
   top-left. Desktop rules are unchanged. Short viewports still keep
   every item inside the visible dvh / fill-available frame. */
@media (max-width: 992px) {
    header.mastnav,
    header.mastnav.mastnav-bordered {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        width: 100% !important;
        width: 100dvw !important;
        width: var(--app-vw, 100dvw) !important;
        max-width: none !important;
        /* Visual viewport height from JS (--app-vh). Do not use
           height/max-height: 100% or -webkit-fill-available — those
           shrink or detach the overlay on iOS Safari when the toolbar
           is showing or the page is mid-scroll. */
        height: 100vh !important;
        height: 100dvh !important;
        height: var(--app-vh, 100dvh) !important;
        min-height: var(--app-vh, 100dvh) !important;
        max-height: none !important;
        border: 50px solid #fff !important;
        border-width: max(8vh, env(safe-area-inset-top, 0px)) max(12vw, 24px) max(8vh, env(safe-area-inset-bottom, 0px)) max(12vw, 24px) !important;
        border-width: max(8dvh, env(safe-area-inset-top, 0px)) max(12vw, 24px) max(8dvh, env(safe-area-inset-bottom, 0px)) max(12vw, 24px) !important;
        background-color: rgba(4, 4, 4, 0.9) !important;
        background-image: none;
        overflow: hidden !important;
        overscroll-behavior: none;
        touch-action: auto;
        box-sizing: border-box;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        isolation: isolate;
        z-index: 200000 !important;
        /* The frame is opaque white padding so page content cannot paint
           through the inset border. The dark panel is the child. */
        background-color: #fff !important;
        border-style: solid !important;
        border-color: #fff !important;
    }
    .menu-panel,
    .menu-panel.valign,
    .menu-panel.halfview {
        padding-left: 24px;
        padding-right: 24px;
    }
    .menu-panel nav > ul > li > a,
    .menu-panel nav > ul > li > button.nav-flyout,
    .menu-panel .sub-menu ul li a {
        font-size: clamp(16px, calc(var(--app-vh, 100dvh) * 0.032), 21px) !important;
        line-height: clamp(28px, calc(var(--app-vh, 100dvh) * 0.055), 40px) !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
    }
    .menu-panel,
    .menu-panel.valign,
    .menu-panel.halfview {
        /* Fill the framed inset and cancel .valign / desktop halfview
           translates so the panel itself stays put and clips the slide. */
        position: absolute;
        top: 0 !important;
        right: 0;
        bottom: 0;
        left: 0;
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
        margin: 0;
        display: block;
        overflow: hidden;
        box-sizing: border-box;
        container-type: size;
        container-name: menupanel;
    }
    .menu-panel nav {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        box-sizing: border-box;
        padding-top: 21dvh; /* fallback if cqh is unavailable */
        padding-top: 25cqh;
        text-align: center;
    }
    /* Main list stays in normal flow (static) so it is not a containing
       block for the submenu. Shrink-wrap and center the column, with
       left-aligned labels, matching the original mobile layout. */
    .menu-panel nav > ul {
        position: static !important;
        top: auto !important;
        left: auto !important;
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        display: inline-block !important;
        width: auto !important;
        max-width: 90%;
        margin: 0 auto;
        padding: 0;
        text-align: left;
        box-sizing: border-box;
    }
    .menu-panel nav > ul > li {
        display: block;
        text-align: left;
        margin: 0;
        padding: 0;
    }
    .menu-panel nav > ul > li > a,
    .menu-panel nav > ul > li > button.nav-flyout {
        display: inline-block;
        text-align: left;
        white-space: nowrap;
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
        -webkit-transition: -webkit-transform 0.4s ease-in-out;
        transition: transform 0.4s ease-in-out;
    }
    .menu-panel.halfview nav > ul > li > a,
    .menu-panel.halfview nav > ul > li > button.nav-flyout {
        -webkit-transform: translateX(-100vw);
        -ms-transform: translateX(-100vw);
        transform: translateX(-100vw);
        pointer-events: none;
    }
    .custom-size-nav-1,
    .custom-size-nav-2 {
        width: auto !important;
        max-width: 100% !important;
    }
    /* Submenu is a full-panel layer, parked off the right, then slides in.
       High z-index so later sibling items cannot paint over it. */
    .sub-menu,
    .sub-menu.halfview {
        position: absolute !important;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100% !important;
        max-width: 100%;
        height: 100% !important;
        max-height: 100%;
        min-height: 0;
        margin: 0;
        padding: 21dvh 16px 16px 16px;
        padding: 25cqh 16px 16px 16px;
        box-sizing: border-box;
        background-color: transparent;
        text-align: center;
        z-index: 5;
        overflow: hidden;
        -webkit-transition: -webkit-transform 0.4s ease-in-out;
        transition: transform 0.4s ease-in-out;
    }
    .sub-menu {
        -webkit-transform: translateX(100%) !important;
        -ms-transform: translateX(100%) !important;
        transform: translateX(100%) !important;
    }
    .sub-menu.halfview {
        -webkit-transform: translateX(0) !important;
        -ms-transform: translateX(0) !important;
        transform: translateX(0) !important;
    }
    .sub-menu ul,
    .sub-menu.halfview ul,
    .sub-menu nav .valign,
    .menu-panel nav .valign {
        position: static !important;
        top: auto !important;
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        display: inline-block !important;
        width: auto !important;
        max-width: 90%;
        margin: 0 auto;
        padding: 0;
        text-align: left;
        box-sizing: border-box;
    }
    .sub-menu li,
    .sub-menu li.back-item {
        display: block !important;
        margin: 0;
        padding-top: 0 !important;
        max-width: 100%;
        text-align: left;
    }
    .sub-menu li a {
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
        font-size: clamp(16px, calc(var(--app-vh, 100dvh) * 0.032), 21px) !important;
        line-height: clamp(28px, calc(var(--app-vh, 100dvh) * 0.055), 40px) !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
    }
    .back-button {
        display: inline-block;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .sub-menu {
        -webkit-transform: translateX(100%) !important;
        -ms-transform: translateX(100%) !important;
        transform: translateX(100%) !important;
    }
    .sub-menu.halfview {
        -webkit-transform: translateX(0) !important;
        -ms-transform: translateX(0) !important;
        transform: translateX(0) !important;
    }
    .custom-size-nav-2,
    .custom-size-nav-1 {
        width: auto !important;
        max-width: 100% !important;
    }
}

@media (max-width: 992px) and (max-height: 540px) {
    .menu-panel nav {
        padding-top: 12cqh;
    }
    .sub-menu,
    .sub-menu.halfview {
        padding-top: 12cqh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-panel nav > ul > li > a,
    .menu-panel nav > ul > li > button.nav-flyout,
    .sub-menu,
    .sub-menu.halfview {
        transition-duration: 0.01ms !important;
    }
}

/* Inner pages: solid menu fill so body headings cannot ghost through.
   Home keeps the translucent fill so the hero can show, like the original. */
@media (max-width: 992px) {
    body.page-inner header.mastnav,
    body.page-inner header.mastnav.mastnav-bordered {
        background-color: #0a0a0a !important;
    }
}

/* Mobile: keep the wordmark visible top-left (normal blend so it stays
   dark on the white frame). Desktop: hide it so it does not sit on the
   100px white frame, matching the original desktop menu. */
@media (max-width: 992px) {
    body.menu-open a.site-logo {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        z-index: 10020;
        -webkit-mix-blend-mode: difference;
        mix-blend-mode: difference;
    }
    body.menu-open a.site-logo .main-logo {
        filter: none;
        opacity: 1;
    }
    body.menu-open .mobile-menu-icon {
        z-index: 10021;
        -webkit-mix-blend-mode: difference;
        mix-blend-mode: difference;
    }
    body.menu-open .mobile-menu-icon span {
        color: #fff !important;
        text-shadow: none;
    }
    body.menu-open .mobile-menu-icon-close {
        display: block;
    }
}
@media (min-width: 993px) {
    body.menu-open a.site-logo {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    body.menu-open .mobile-menu-icon {
        z-index: 10020;
        -webkit-mix-blend-mode: normal;
        mix-blend-mode: normal;
    }
    body.menu-open .mobile-menu-icon span {
        color: #fff;
    }
}


/* v29: overflow-x: clip does not create a scroll container, so iOS
   Safari keeps position:fixed relative to the visual viewport.
   overflow-x: hidden on html/body was detaching the overlay mid-scroll. */
html, body {
    overflow-x: clip;
}
body.menu-open,
html.menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: auto;
}
body.menu-open {
    /* width/left/right set so the page does not shift when position is
       fixed by JS; top is the saved scroll offset. */
    width: 100%;
    left: 0;
    right: 0;
}
/* Visible focus for menu controls (WCAG). */
.mobile-menu-icon button:focus-visible,
.menu-panel a:focus-visible,
.menu-panel button:focus-visible,
#menu-icon-trigger2:focus-visible {
    outline: 2px solid #C9A43B;
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .menu-panel,
    .menu-panel.valign,
    .menu-panel.halfview {
        background-color: #0a0a0a;
    }
    body.page-home .menu-panel,
    body.page-home .menu-panel.valign,
    body.page-home .menu-panel.halfview {
        background-color: rgba(4, 4, 4, 0.94);
    }
    body.menu-open a.site-logo,
    body.menu-open .mobile-menu-icon {
        z-index: 200010 !important;
    }
}

/* v29: the original "transition: all" on .mastnav-bordered animates
   height, top and border, which leaves a gap at the bottom and jumps
   when the iOS toolbar resizes. Only allow opacity to fade. */
header.mastnav,
header.mastnav.mastnav-bordered {
    -webkit-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
}
body.menu-open header.mastnav,
body.menu-open header.mastnav.mastnav-bordered {
    opacity: 1 !important;
    -webkit-transition: none !important;
    transition: none !important;
}
/* belowfold and similar inner wrappers use position:relative; z-index:10
   in the original CSS, which can paint mid-scroll headings over the
   overlay while its opacity is mid-fade. */
body.menu-open main,
body.menu-open section.mastwrap,
body.menu-open section.belowfold,
body.menu-open .slant-bg-wrap,
body.menu-open .promo-text,
body.menu-open .fold-promo {
    z-index: 0 !important;
}




/* v58: larger white frame above and below the black mobile menu panel
   so the logo and close button have room to breathe. Top border puts
   about 50px of white below the logo. Bottom stays at least as large
   as the side margins, and keeps the previous 8dvh when that is bigger.
   Desktop (min-width: 993px) is unchanged. */
@media (max-width: 992px) {
    header.mastnav,
    header.mastnav.mastnav-bordered {
        border-width: 92px max(12vw, 24px) max(8dvh, 12vw, 56px) max(12vw, 24px) !important;
    }
    .menu-panel nav,
    .sub-menu,
    .sub-menu.halfview {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* v61: center the main menu labels and the Services / About submenus
   (including the back control) in the black mobile panel. Text is
   centered so short and long labels share the same midline; the
   existing vertical placement is unchanged. Desktop typography is
   already centered and is left as-is. */
@media (max-width: 992px) {
    .menu-panel nav,
    .menu-panel nav > ul,
    .menu-panel nav > ul > li,
    .menu-panel nav li,
    .menu-panel ul li,
    .sub-menu,
    .sub-menu.halfview,
    .sub-menu ul,
    .sub-menu li,
    .sub-menu li.back-item {
        text-align: center !important;
    }
    .menu-panel nav > ul > li > a,
    .menu-panel nav > ul > li > button.nav-flyout,
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout,
    .sub-menu li a {
        text-align: center !important;
    }
    .sub-menu .back-button {
        margin-left: auto;
        margin-right: auto;
    }
}


/* v65: hide the focus ring after a pointer tap or click, keep it
   for keyboard users. :focus:not(:focus-visible) covers browsers
   that distinguish the two. html.using-pointer covers WebKit, which
   marks a tap as :focus-visible. Does not change the v64 rail-white
   rules. */
#menu-icon-trigger2:focus:not(:focus-visible),
.menu-icon-wrapper .menu-icon-trigger:focus:not(:focus-visible),
.mobile-menu-icon button:focus:not(:focus-visible),
a.site-logo:focus:not(:focus-visible),
.menu-panel a:focus:not(:focus-visible),
.menu-panel button:focus:not(:focus-visible),
.menu-panel button.nav-flyout:focus:not(:focus-visible),
.sub-menu .back-button:focus:not(:focus-visible) {
    outline: none;
}
html.using-pointer #menu-icon-trigger2:focus,
html.using-pointer #menu-icon-trigger2:focus-visible,
html.using-pointer .menu-icon-wrapper .menu-icon-trigger:focus,
html.using-pointer .menu-icon-wrapper .menu-icon-trigger:focus-visible,
html.using-pointer .menu-icon-wrapper .menu-icon-trigger:focus-visible::after,
html.using-pointer .mobile-menu-icon button:focus,
html.using-pointer .mobile-menu-icon button:focus-visible,
html.using-pointer a.site-logo:focus,
html.using-pointer a.site-logo:focus-visible,
html.using-pointer .menu-panel a:focus,
html.using-pointer .menu-panel a:focus-visible,
html.using-pointer .menu-panel button:focus,
html.using-pointer .menu-panel button:focus-visible,
html.using-pointer .menu-panel button.nav-flyout:focus,
html.using-pointer .menu-panel button.nav-flyout:focus-visible,
html.using-pointer .sub-menu .back-button:focus,
html.using-pointer .sub-menu .back-button:focus-visible {
    outline: none;
}


/* v68: restore the live mobile menu type and left-aligned labels
   (t316u). v61 centered each label in the column; tiarasalon.com
   left-aligns the text and centers the shrink-wrapped list in the
   black panel, with the back arrow on the list's left edge. Type
   scale is from the live site's main-responsive.css: 20/40 at ≤992,
   21/39 at ≤667 (390 and 375 phones), 18/30 at ≤320. This also
   replaces the v28 viewport clamp that could shrink the type below
   those sizes. Desktop (min-width: 993px) is unchanged. */
@media (max-width: 992px) {
    .menu-panel nav,
    .sub-menu,
    .sub-menu.halfview {
        text-align: center !important;
    }
    .menu-panel nav > ul,
    .menu-panel nav > ul > li,
    .menu-panel nav li,
    .menu-panel ul li,
    .sub-menu ul,
    .sub-menu li,
    .sub-menu li.back-item {
        text-align: left !important;
    }
    .menu-panel nav > ul > li > a,
    .menu-panel nav > ul > li > button.nav-flyout,
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout,
    .menu-panel .sub-menu ul li a,
    .sub-menu li a {
        text-align: left !important;
        font-size: 20px !important;
        line-height: 40px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
    }
    .sub-menu .back-button {
        margin-left: 0;
        margin-right: 0;
        display: inline-block;
    }
}
@media screen and (max-width: 667px) {
    .menu-panel nav > ul > li > a,
    .menu-panel nav > ul > li > button.nav-flyout,
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout,
    .menu-panel .sub-menu ul li a,
    .sub-menu li a {
        font-size: 21px !important;
        line-height: 39px !important;
    }
}
@media screen and (max-width: 320px) {
    .menu-panel nav > ul > li > a,
    .menu-panel nav > ul > li > button.nav-flyout,
    .menu-panel ul li a,
    .menu-panel ul li button.nav-flyout,
    .menu-panel .sub-menu ul li a,
    .sub-menu li a {
        font-size: 18px !important;
        line-height: 30px !important;
    }
}

/* Release: native scrolling inside the original framed mobile menu. */
@media(max-width:992px){
 .menu-panel nav,.sub-menu.halfview{overscroll-behavior:contain;touch-action:pan-y;overflow-y:auto;}
 .menu-panel nav{padding-bottom:24px;}
 .menu-panel.halfview nav{overflow:hidden;}
}
/* Keep the SVG exactly positioned while giving its button a real hit box. */
.menu-icon-wrapper .menu-icon-trigger{width:44px;height:44px;left:calc(50% - 17px);top:calc(50% - 22px);}
.menu-icon-wrapper .menu-icon-trigger svg{left:-30px;top:-30px;}
.menu-icon-wrapper .menu-icon-trigger::after{left:0;top:0;}
