:root {
    --bg: #0a0a0b;
    --bg-soft: #111216;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --text: #f5f1e8;
    --muted: #b7b2a8;
    --gold: #d6b06a;
    --gold-light: #f3d99e;
    --line: rgba(255, 255, 255, 0.13);
    --danger: #d98d8d;
    --radius: 26px;
    --shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(214, 176, 106, 0.08), transparent 35%),
        linear-gradient(180deg, #0a0a0b, #0d0e11 45%, #09090a);
    color: var(--text);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img,
video {
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 1.03;
    font-weight: 600;
}

h1 {
    font-size: clamp(3.4rem, 7.6vw, 7.6rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.75rem;
}

.section {
    padding: 110px 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.inner-header {
    background: rgba(8, 8, 10, 0.86);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(243, 217, 158, 0.6);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.67rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 600;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switch,
.menu-toggle,
.menu-close {
    border: 0;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.language-switch {
    min-width: 44px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
}

.header-book,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-book,
.btn-primary {
    color: #17130c;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 10px 30px rgba(214, 176, 106, 0.2);
}

.header-book:hover,
.btn:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: currentColor;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1500;
    padding: 28px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 80% 0%, rgba(214, 176, 106, 0.18), transparent 35%),
        #09090b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: 0.25s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-close {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.mobile-menu nav {
    display: grid;
    gap: 12px;
    margin: auto 0;
}

.mobile-menu nav a {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.3rem, 10vw, 4rem);
    line-height: 1.05;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0d0d0e;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-mobile {
    display: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 62%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 180px;
    padding-bottom: 100px;
}

.hero h1 {
    max-width: 980px;
    margin-bottom: 28px;
}

.hero h1 em {
    color: var(--gold-light);
    font-weight: 500;
}

.hero-lead {
    max-width: 660px;
    margin-bottom: 30px;
    color: #ddd8ce;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-intro-grid,
.contact-grid,
.space-intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.home-intro-copy,
.space-intro-copy {
    color: var(--muted);
    font-size: 1.04rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 70px;
}

.feature-card,
.info-card,
.service-card,
.contact-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
}

.feature-card {
    min-height: 230px;
    padding: 30px;
    border-radius: var(--radius);
}

.feature-card .number,
.info-card .number {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.feature-card h3 {
    margin: 55px 0 12px;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.section-head {
    max-width: 760px;
    margin-bottom: 52px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head p:last-child {
    color: var(--muted);
}

.services-preview-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: var(--radius);
}

.service-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 176, 106, 0.11), transparent 70%);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.service-card > p {
    color: var(--muted);
}

.service-options {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.service-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px 13px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.16);
}

.service-option span {
    color: #e7e1d7;
    font-size: 0.9rem;
}

.service-option strong {
    color: var(--gold-light);
}

.service-option a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 15px;
    border-radius: 999px;
    color: #17130c;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    font-size: 0.78rem;
    font-weight: 800;
}

.gallery-teaser,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 190px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #171719;
    cursor: zoom-in;
}

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 4; }
.gallery-item:nth-child(n+7) { grid-column: span 3; }

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

.gallery-empty {
    min-height: 340px;
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    padding: 40px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
}

.page-hero {
    padding: 190px 0 90px;
    background:
        radial-gradient(circle at 75% 15%, rgba(214, 176, 106, 0.14), transparent 30%),
        linear-gradient(180deg, #121216, #0a0a0b);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 920px;
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.contact-card {
    padding: 30px;
    border-radius: var(--radius);
}

.contact-stack {
    display: grid;
    gap: 14px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.contact-link small {
    color: var(--gold-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.map-wrap {
    overflow: hidden;
    min-height: 520px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    filter: grayscale(1) contrast(0.95) brightness(0.78);
}

.important-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(214, 176, 106, 0.13), transparent 32%),
        #111114;
    border-top: 1px solid var(--line);
}

.important-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-card {
    min-height: 275px;
    padding: 30px;
    border-radius: var(--radius);
}

.info-card h3 {
    margin: 50px 0 14px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 78px 0 26px;
    background:
        radial-gradient(circle at 10% 20%, rgba(119, 74, 31, 0.42), transparent 36%),
        radial-gradient(circle at 90% 15%, rgba(62, 43, 81, 0.35), transparent 32%),
        linear-gradient(135deg, #0d0d10 0%, #171313 48%, #0b0b0d 100%);
    border-top: 1px solid rgba(243, 217, 158, 0.14);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.8fr 1.1fr;
    gap: 50px;
}

.footer-grid h4 {
    margin-bottom: 18px;
    color: var(--gold-light);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-grid a,
.footer-grid button,
.footer-grid p {
    display: block;
    margin: 0 0 10px;
    color: #c5c0b7;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.footer-grid a:hover,
.footer-grid button:hover {
    color: var(--gold-light);
}

.footer-brand h3 {
    margin: 18px 0 14px;
    font-size: 2rem;
}

.footer-brand p {
    max-width: 360px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 62px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #8f8b84;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: #c7aa75;
}

.legal-section {
    max-width: 900px;
}

.legal-section h2 {
    margin-top: 55px;
    font-size: 2.3rem;
}

.legal-section h3 {
    margin-top: 34px;
    font-size: 1.55rem;
}

.legal-section p,
.legal-section li {
    color: var(--muted);
}

.legal-section ul {
    padding-left: 20px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(1120px, 92vw);
    max-height: 86vh;
    border-radius: 16px;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-book {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .home-intro-grid,
    .contact-grid,
    .space-intro-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .feature-grid,
    .important-grid {
        grid-template-columns: 1fr;
    }

    .services-preview-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 78px 0;
    }

    .header-inner {
        min-height: 76px;
    }

    .brand-copy strong {
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .brand-copy small {
        font-size: 0.56rem;
        letter-spacing: 0.11em;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
    }

    .hero-content {
        padding-bottom: 62px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 16vw, 5.5rem);
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.34) 40%, rgba(0,0,0,.9));
    }

    .page-hero {
        padding: 145px 0 70px;
    }

    .page-hero h1 {
        font-size: clamp(3.1rem, 16vw, 5rem);
    }

    .service-card {
        padding: 24px;
    }

    .service-option {
        grid-template-columns: 1fr auto;
    }

    .service-option a {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .gallery-teaser,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 170px;
    }

    .gallery-item,
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .footer-brand,
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .brand-copy small {
        display: none;
    }

    .gallery-teaser,
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-item,
    .gallery-item:nth-child(n) {
        grid-column: 1;
        grid-row: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-grid > div:last-child {
        grid-column: auto;
    }
}

/* ==========================================================
   V3 visual refinement — My Ritual Massage
   ========================================================== */

/* More compact editorial typography so headings do not consume
   excessive vertical space on desktop or mobile. */
h1 {
    font-size: clamp(3rem, 6.2vw, 6.3rem);
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.9rem);
    line-height: 1.02;
}

.section {
    padding: 88px 0;
}

.section-head {
    max-width: 820px;
    margin-bottom: 38px;
}

.brand-copy strong {
    font-size: 1.28rem;
    white-space: nowrap;
}

.brand-copy small {
    letter-spacing: 0.14em;
}

/* Reusable photographic section treatment. */
.photo-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #0b0b0d;
}

.photo-section::before,
.photo-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.photo-section::before {
    z-index: -2;
    background-position: center;
    background-size: cover;
    opacity: 0.58;
    transform: scale(1.025);
}

.photo-section::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 8, 10, 0.70) 0%, rgba(8, 8, 10, 0.48) 48%, rgba(8, 8, 10, 0.68) 100%),
        linear-gradient(180deg, rgba(8, 8, 10, 0.28), rgba(8, 8, 10, 0.78));
}

.photo-section-intro::before {
    background-image: url("../images/gallery/gallery-18.jpg");
}

.photo-section-services::before,
.photo-section-services-page::before {
    background-image: url("../images/gallery/gallery-13.jpg");
    background-position: center 44%;
}

.photo-section-space::before,
.photo-section-space-page::before {
    background-image: url("../images/gallery/gallery-03.jpg");
}

.photo-section-contact::before {
    background-image: url("../images/gallery/gallery-17.jpg");
}

.photo-section-gallery::before {
    background-image: url("../images/gallery/gallery-18.jpg");
    background-position: center 52%;
}

.photo-section-terms::before {
    background-image: url("../images/gallery/gallery-16.jpg");
    background-position: center top;
    background-attachment: fixed;
}

.photo-section-privacy::before {
    background-image: url("../images/gallery/gallery-17.jpg");
    background-position: center top;
    background-attachment: fixed;
}

/* The photograph belongs to the entire section, not only to its cards. */
.photo-section > .container {
    position: relative;
    z-index: 1;
}

.photo-section .section-head {
    padding: 28px 32px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;
    background: rgba(8,8,10,.46);
    backdrop-filter: blur(8px);
}

.photo-section-gallery .gallery-grid {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    background: rgba(6,6,8,.36);
    backdrop-filter: blur(7px);
}

.legal-section {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    background: rgba(8,8,10,.70);
    backdrop-filter: blur(9px);
    padding: 42px;
}

.glass-panel {
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: rgba(8, 8, 10, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

/* Feature cards now use photographs instead of plain empty surfaces. */
.feature-card {
    position: relative;
    isolation: isolate;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #141416;
}

.feature-card::before,
.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.feature-card::before {
    background-position: center;
    background-size: cover;
    transition: transform 0.55s ease;
}

.feature-card::after {
    background: linear-gradient(180deg, rgba(4, 4, 5, 0.12) 10%, rgba(4, 4, 5, 0.92) 86%);
}

.feature-card:nth-child(1)::before { background-image: url("../images/gallery/gallery-17.jpg"); }
.feature-card:nth-child(2)::before { background-image: url("../images/gallery/gallery-01.jpg"); }
.feature-card:nth-child(3)::before { background-image: url("../images/gallery/gallery-11.jpg"); }

.feature-card:hover::before {
    transform: scale(1.045);
}

.feature-card h3 {
    margin: 16px 0 10px;
    font-size: clamp(1.65rem, 2vw, 2rem);
}

.feature-card p {
    color: #e4ded3;
}

/* Service cards get a subtle image texture while preserving readability. */
.service-card {
    isolation: isolate;
    min-height: 330px;
    background: rgba(12, 12, 14, 0.84);
    backdrop-filter: blur(7px);
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("../images/gallery/gallery-14.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.075;
}

.service-card h3 {
    font-size: clamp(1.7rem, 2.3vw, 2.25rem);
}

/* Photographic hero on inner pages. */
.visual-page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 180px 0 82px;
    background: #0b0b0d;
}

.visual-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--page-bg);
    background-position: center;
    background-size: cover;
}

.visual-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 4, 5, 0.86) 0%, rgba(4, 4, 5, 0.38) 62%, rgba(4, 4, 5, 0.6) 100%),
        linear-gradient(180deg, rgba(4, 4, 5, 0.2), rgba(4, 4, 5, 0.9));
}

.visual-page-hero h1,
.visual-page-hero p {
    text-shadow: 0 3px 25px rgba(0, 0, 0, 0.65);
}

/* Gallery: 19 photos now end in a complete four-item row instead of
   leaving one image stranded on its own. */
.gallery-item:nth-child(n+7):nth-child(-n+15) {
    grid-column: span 4;
}

.gallery-item:nth-child(n+16) {
    grid-column: span 3;
}

/* Important information also receives a restrained spatial background. */
.important-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.important-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("../images/gallery/gallery-08.jpg") center / cover no-repeat;
    opacity: 0.34;
}

.important-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.70), rgba(8, 8, 10, 0.84));
}

@media (max-width: 900px) {
    .brand-copy strong {
        font-size: 1.12rem;
    }

    .glass-panel {
        padding: 30px;
    }

    .visual-page-hero {
        min-height: 430px;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: clamp(2.7rem, 13vw, 4.5rem);
    }

    h2 {
        font-size: clamp(2.05rem, 10vw, 3rem);
    }

    .section {
        padding: 68px 0;
    }

    .brand-copy strong {
        white-space: normal;
    }

    .photo-section::before {
        opacity: 0.46;
        background-attachment: scroll;
    }

    .glass-panel {
        padding: 24px;
        border-radius: 22px;
    }

    .visual-page-hero {
        min-height: 400px;
        padding: 145px 0 62px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 6;
    }

    .gallery-item:nth-child(1) {
        grid-column: 1 / -1;
    }

    .gallery-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .photo-section .section-head {
        padding: 22px;
        border-radius: 20px;
    }

    .photo-section-gallery .gallery-grid {
        padding: 10px;
        border-radius: 20px;
    }

    .legal-section {
        padding: 24px;
        border-radius: 22px;
    }
}


/* v5: page-specific visual refinements */
.services-page-hero {
    background:
        linear-gradient(90deg, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0.30) 58%, rgba(5, 5, 6, 0.48) 100%),
        linear-gradient(180deg, rgba(5, 5, 6, 0.08), rgba(5, 5, 6, 0.72)),
        url("../images/gallery/gallery-06.jpg") center 52% / cover no-repeat !important;
}

.services-page-hero::before {
    display: none;
}

.services-page-hero::after {
    background: linear-gradient(180deg, rgba(4, 4, 5, 0.08), rgba(4, 4, 5, 0.68));
}

.gallery-page-first,
.contact-page-first {
    padding-top: 155px;
}

.service-option > span {
    line-height: 1.45;
}

@media (max-width: 767px) {
    .gallery-page-first,
    .contact-page-first {
        padding-top: 118px;
    }

    .services-page-hero {
        min-height: 430px;
        background-position: 60% center !important;
    }
}

/* Enhanced gallery lightbox navigation */
.lightbox-stage {
    width: min(1180px, 90vw);
    height: min(84vh, 900px);
    display: grid;
    place-items: center;
    touch-action: pan-y;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(196, 155, 89, 0.82);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-close {
    z-index: 4;
    display: grid;
    place-items: center;
}

.lightbox-counter {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

@media (max-width: 767px) {
    .lightbox {
        padding: 12px;
    }

    .lightbox-stage {
        width: 100vw;
        height: 82vh;
    }

    .lightbox-stage img {
        max-width: 96vw;
        max-height: 78vh;
        border-radius: 10px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
        width: 46px;
        height: 46px;
        background: rgba(0, 0, 0, 0.62);
    }

    .lightbox-nav {
        width: 46px;
        height: 46px;
        font-size: 2.25rem;
        background: rgba(0, 0, 0, 0.52);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 14px;
    }
}

/* v7: immersive home-space showcase */
.home-space-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    padding: 118px 0;
    background: #0b0b0c;
}

.home-space-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7, 7, 8, 0.92) 0%, rgba(7, 7, 8, 0.72) 42%, rgba(7, 7, 8, 0.26) 74%, rgba(7, 7, 8, 0.48) 100%),
        linear-gradient(180deg, rgba(7, 7, 8, 0.24), rgba(7, 7, 8, 0.76)),
        url("../images/gallery/gallery-06.jpg") center / cover no-repeat;
    transform: scale(1.018);
}

.home-space-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 44%, rgba(221, 183, 111, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.025), transparent 30%);
}

.home-space-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    gap: clamp(52px, 7vw, 110px);
    align-items: center;
}

.home-space-copy {
    max-width: 650px;
}

.home-space-copy h2 {
    max-width: 620px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 5.2vw, 5.2rem);
    line-height: 0.98;
    text-wrap: balance;
}

.home-space-lead {
    max-width: 585px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.8;
}

.home-space-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.home-space-details span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.42);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    backdrop-filter: blur(8px);
}

.home-space-details span::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(221, 183, 111, 0.11);
}

.home-space-visual {
    position: relative;
    display: block;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(0,0,0,.48);
    transform: translateY(16px);
}

.home-space-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(4,4,5,.78) 100%);
}

.home-space-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.home-space-visual:hover img {
    transform: scale(1.045);
}

.home-space-visual-label {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 22px;
    color: #fff;
}

.home-space-visual-label strong {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2vw, 2.15rem);
    font-weight: 600;
}

.home-space-visual-label small {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .home-space-showcase {
        min-height: auto;
        padding: 86px 0;
    }

    .home-space-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .home-space-backdrop {
        background:
            linear-gradient(180deg, rgba(7,7,8,.86) 0%, rgba(7,7,8,.78) 52%, rgba(7,7,8,.62) 100%),
            url("../images/gallery/gallery-06.jpg") center / cover no-repeat;
    }

    .home-space-copy {
        max-width: 720px;
    }

    .home-space-visual {
        min-height: 440px;
        transform: none;
    }
}

@media (max-width: 700px) {
    .home-space-showcase {
        padding: 72px 0;
    }

    .home-space-copy h2 {
        font-size: clamp(2.5rem, 12vw, 3.55rem);
        line-height: 1.02;
    }

    .home-space-details {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-space-visual {
        min-height: 360px;
        border-radius: 24px;
    }

    .home-space-visual-label {
        left: 20px;
        right: 20px;
        bottom: 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* Contact form */
.contact-form-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.82) 48%, rgba(8, 8, 10, 0.66) 100%),
        url("../images/gallery/gallery-13.jpg") center 58% / cover no-repeat;
}

.contact-form-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 78% 18%, rgba(214, 176, 106, 0.14), transparent 35%);
}

.contact-form-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(40px, 7vw, 100px);
    align-items: start;
}

.contact-form-intro {
    position: sticky;
    top: 130px;
    max-width: 470px;
}

.contact-form-intro h2 {
    margin-bottom: 20px;
}

.contact-form-intro > p:last-child {
    color: #d0cbc2;
    font-size: 1.03rem;
}

.contact-form {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius);
    background: rgba(13, 13, 15, 0.82);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 9px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    color: #efe9df;
    font-size: 0.88rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    outline: none;
    color: #f7f2e8;
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-field input {
    min-height: 54px;
    padding: 0 16px;
}

.form-field textarea {
    min-height: 155px;
    padding: 15px 16px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(229, 195, 129, 0.68);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 4px rgba(214, 176, 106, 0.08);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
    border-color: rgba(244, 121, 121, 0.78);
}

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 20px;
    color: #c8c3ba;
    font-size: 0.85rem;
    line-height: 1.6;
}

.form-consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--gold);
}

.form-consent a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 26px;
}

.contact-submit {
    border: 0;
    cursor: pointer;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: 0.62;
}

.form-status {
    flex: 1 1 260px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.form-status.is-success {
    color: #b9e2c0;
}

.form-status.is-error {
    color: #f0b1b1;
}

@media (max-width: 900px) {
    .contact-form-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-intro {
        position: static;
        max-width: 680px;
    }
}

@media (max-width: 620px) {
    .contact-form-section {
        background-position: 65% center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .contact-form {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .form-actions {
        align-items: stretch;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Contact form result popup */
.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.contact-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 6, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 52px 42px 40px;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(30, 28, 24, 0.97), rgba(13, 13, 15, 0.98));
    border: 1px solid rgba(243, 217, 158, 0.22);
    border-radius: 30px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.6);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.3s ease;
}

.contact-popup.is-open .contact-popup-dialog {
    transform: translateY(0) scale(1);
}

.contact-popup-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
}

.contact-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-popup-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(5deg);
}

.contact-popup-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 1px solid rgba(243, 217, 158, 0.3);
    background: radial-gradient(circle at 35% 30%, rgba(243, 217, 158, 0.22), rgba(214, 176, 106, 0.08));
    color: var(--gold-light);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: 600;
    box-shadow: 0 15px 40px rgba(214, 176, 106, 0.12);
}

.contact-popup.is-error .contact-popup-icon {
    color: #f2b8b8;
    border-color: rgba(217, 141, 141, 0.34);
    background: rgba(217, 141, 141, 0.1);
}

.contact-popup-dialog .eyebrow {
    margin-bottom: 10px;
}

.contact-popup-dialog h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.02;
}

.contact-popup-dialog > p:not(.eyebrow) {
    max-width: 390px;
    margin: 0 auto 28px;
    color: var(--muted);
}

.contact-popup-button {
    min-width: 150px;
    border: 0;
    cursor: pointer;
}

@media (max-width: 560px) {
    .contact-popup {
        padding: 16px;
    }

    .contact-popup-dialog {
        padding: 48px 22px 30px;
        border-radius: 24px;
    }

    .contact-popup-icon {
        width: 66px;
        height: 66px;
        font-size: 2.2rem;
    }

    .contact-popup-button {
        width: 100%;
    }
}
