/* ==========================================
   BB Style Studio — WOW Edition
   ========================================== */

:root {
    --accent: #9B8579;
    --accent-light: #B8A89E;
    --accent-dark: #7D6A5F;
    --dark: #1E1D1B;
    --dark-soft: #282724;
    --cream: #F7F6F3;
    --cream-alt: #EEEDEA;
    --text: #333330;
    --text-light: #7A7A74;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.loading { overflow: hidden; }

/* NOTE: Mobile menu scroll lock is handled by `touch-action: none` on
   .nav-menu itself (see mobile media query). We intentionally do NOT
   change overflow/position on html or body — doing so causes scroll-
   position resets on iOS Safari, which look like a "jump". */

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

em {
    font-style: italic;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* ==========================================
   Scroll Progress Bar
   ========================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    z-index: 10001;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
}

/* ==========================================
   Noise Overlay
   ========================================== */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ==========================================
   Page Loader
   ========================================== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 36px;
    opacity: 0;
    transform: scale(0.9);
    animation: logoIn 0.7s var(--ease-out) 0.1s forwards;
}

@keyframes logoIn {
    to { opacity: 1; transform: scale(1); }
}

.loader-progress {
    width: 120px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1px;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* ==========================================
   Custom Cursor
   ========================================== */

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.12s ease, opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor.visible { opacity: 1; }

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(155,133,121,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.3s, border-color 0.3s;
}

.cursor-follower.visible { opacity: 0.5; }

.cursor.hovering { transform: translate(-50%, -50%) scale(3); }
.cursor-follower.hovering {
    width: 64px;
    height: 64px;
    border-color: var(--accent);
    opacity: 0.3;
}

/* Ambient cursor glow — large soft radial that drifts behind the cursor */
.cursor-glow {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155,133,121,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: left, top;
}

.cursor-glow.visible { opacity: 1; }

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    color: var(--dark);
}

.section-title-xl {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-align: center;
    margin-bottom: 72px;
}

.section-title-xl em {
    font-size: 1.05em;
}

.section-title-light,
.section-title-light .text-reveal-inner {
    color: var(--white);
}

.text-reveal-wrap {
    display: block;
    overflow: hidden;
}

.text-reveal-inner {
    display: block;
    transform: translateY(105%);
    transition: transform 0.9s var(--ease-out);
}

[data-animate].animated .text-reveal-inner {
    transform: translateY(0);
}

/* ==========================================
   Section Eyebrow
   ========================================== */

.section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.eyebrow-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow-line {
    width: 0;
    height: 1px;
    background: var(--accent-light);
    opacity: 0.5;
    transition: width 0.9s var(--ease-out) 0.4s;
}

[data-animate].animated .eyebrow-line {
    width: 40px;
}

.section-eyebrow-light .eyebrow-text { color: var(--accent-light); }
.section-eyebrow-light .eyebrow-line { background: rgba(255,255,255,0.15); }

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.btn-text { position: relative; z-index: 1; }

.btn-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-dark);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    box-shadow: 0 16px 48px rgba(155,133,121,0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(155,133,121,0.3);
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: inherit;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-out);
}

.btn-outline:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.btn-outline:hover {
    color: var(--white);
    border-color: var(--accent);
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    /* Only transition background — NOT backdrop-filter.
       backdrop-filter must change instantly when the mobile menu opens,
       otherwise it stays active during the transition and acts as a CSS
       containing block that traps the fixed overlay inside the 80px navbar
       strip instead of covering the full viewport. */
    transition: background 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(247, 246, 243, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.06em;
    transition: color 0.4s;
    display: flex;
    align-items: center;
}

/* Logo image — always visible in the navbar */
.nav-logo-img {
    height: 80px;
    width: auto;
    display: block;
    border-radius: 6px;
}

/* Text fallback — only appears if the image fails to load (via onerror in HTML) */
.nav-logo-text {
    display: none;
}

.navbar.scrolled .nav-logo { color: var(--dark); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 44px;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.navbar.scrolled .nav-link { color: var(--text-light); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.navbar.scrolled .nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.nav-link.active { color: var(--white); }
.navbar.scrolled .nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 100%; }

/* Hamburger — minimal 2-line */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 1010;
}

/* When mobile menu is open, remove backdrop-filter so the
   fullscreen menu can break out of the navbar (fixes mobile bug). */
body.menu-open .navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}


.nav-toggle span {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled .nav-toggle span { background: var(--dark); }

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
    background: var(--white) !important;
}
.nav-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translate(3px, -3px);
    background: var(--white) !important;
}

/* ==========================================
   Hero
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.15s ease-out;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('images/BBStyle1.png') center center / cover no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 29, 27, 0.55) 0%,
        rgba(30, 29, 27, 0.65) 40%,
        rgba(30, 29, 27, 0.75) 100%
    );
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(155,133,121,0.1);
    top: -20%;
    left: -10%;
    animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(155,133,121,0.06);
    bottom: -10%;
    right: -5%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(184,168,158,0.08);
    top: 40%;
    left: 60%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -60px) scale(1.15); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 40px 24px;
    max-width: 900px;
}


.hero-title {
    font-size: clamp(2.4rem, 6.5vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 56px;
}

.hero-title em {
    color: var(--accent-light);
    font-weight: 400;
}

/* Shimmer gradient animation on hero title */
.hero-title-line {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,1)    25%,
        rgba(210,190,178,0.85) 45%,
        rgba(255,255,255,1)    65%,
        rgba(255,255,255,0.95) 85%,
        rgba(210,190,178,0.85) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroShimmer 9s linear infinite;
    margin-bottom: 4px;
}

@keyframes heroShimmer {
    0%   { background-position: 100% center; }
    100% { background-position: -100% center; }
}

.hero-title-line {
    display: block;
    overflow: hidden;
    /* Extra space so descenders (y, g, j…) aren't clipped by the overflow mask */
    padding-bottom: 0.18em;
    margin-bottom: -0.18em;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

/* Hero reveal animations */
.reveal-hero {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-hero.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}


/* Scroll indicator */
.hero-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    animation: scrollDown 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ==========================================
   Marquee
   ========================================== */

.marquee {
    padding: 18px 0;
    background: var(--dark);
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.marquee-accent {
    background: var(--accent);
    border-color: transparent;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    animation: marqueeScroll 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.marquee-accent .marquee-track {
    color: rgba(255,255,255,0.7);
}

.marquee-reverse .marquee-track { animation-direction: reverse; }

.marquee-sep {
    color: rgba(255,255,255,0.12);
    font-weight: 400;
}

.marquee-accent .marquee-sep { color: rgba(255,255,255,0.3); }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================
   Text Divider
   ========================================== */

.text-divider {
    padding: 40px 0;
    text-align: center;
    background: var(--cream);
    overflow: hidden;
}

.text-divider-content {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px rgba(155,133,121,0.2);
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: block;
}

/* ==========================================
   Scroll Animations
   ========================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(6px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

/* ==========================================
   Layout
   ========================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: var(--dark);
}

/* ==========================================
   About
   ========================================== */

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}


.about-image-frame {
    position: relative;
}

/* Curtain reveal — slides up to expose the photo on scroll */
.img-curtain-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.img-curtain {
    position: absolute;
    inset: 0;
    background: var(--accent);
    z-index: 2;
    transform-origin: bottom;
    transform: scaleY(1);
    transition: transform 1.1s var(--ease-out);
    border-radius: inherit;
}

.about-image[data-animate].animated .img-curtain {
    transform: scaleY(0);
}

.about-image-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
    transition: transform 0.6s var(--ease-out);
}

.about-image-frame:hover .about-image-photo {
    transform: scale(1.02);
}

.image-frame-border {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(155,133,121,0.15);
    border-radius: calc(var(--radius) + 4px);
    transition: inset 0.6s var(--ease-out);
}

.about-image-frame:hover .image-frame-border {
    inset: -18px;
}

/* ==========================================
   Services (Dark Section)
   ========================================== */

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-category {
    margin-bottom: 56px;
}

.service-category:last-child { margin-bottom: 0; }

.category-title {
    font-family: var(--font-heading);
    color: var(--accent-light);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 28px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: padding-left 0.4s var(--ease-out);
    cursor: default;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Accent fill that sweeps in from the left on hover */
.service-row::before {
    content: '';
    position: absolute;
    inset: 0;
    bottom: 1px;
    background: rgba(155,133,121,0.09);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
    z-index: -1;
}

.service-row:hover {
    padding-left: 12px;
}

.service-row:hover::before {
    transform: scaleX(1);
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
}

.service-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255,255,255,0.15);
    min-width: 20px;
    margin-bottom: 5px;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--accent-light);
    white-space: nowrap;
}

/* ==========================================
   Gallery — Static Grid
   ========================================== */

.gallery-scroll {
    width: 100%;
    margin-bottom: 48px;
}

.gallery-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 max(32px, calc((100vw - 1100px) / 2 + 32px));
}

.gallery-card {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    perspective: 800px;
}

.gallery-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.4s var(--ease-out);
    transform-style: preserve-3d;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, transparent 100%);
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.gallery-card:hover .gallery-card-shine { opacity: 1; }

.gallery-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Contact — Spacious Redesign
   ========================================== */

.section-contact {
    padding-bottom: 100px;
}

.contact-hero-links {
    max-width: 800px;
    margin: 0 auto 72px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-big-link {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(155,133,121,0.12);
    text-decoration: none;
    position: relative;
    transition: all 0.4s var(--ease-out);
}

.contact-big-link:first-child {
    border-top: 1px solid rgba(155,133,121,0.12);
}

.contact-big-link:hover {
    padding-left: 16px;
}

.contact-big-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    min-width: 120px;
}

.contact-big-value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 400;
    color: var(--dark);
    letter-spacing: -0.01em;
    flex: 1;
    transition: color 0.3s;
}

.contact-big-link:hover .contact-big-value {
    color: var(--accent);
}

.contact-big-arrow {
    color: var(--accent-light);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.4s var(--ease-out);
}

.contact-big-link:hover .contact-big-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.contact-details-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 72px;
    padding-top: 8px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.contact-detail-value {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
}

.contact-map-full {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}


/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--dark);
    padding: 0 0 32px;
}

.footer-top {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 40px;
}

.footer-cta {
    text-align: center;
}

.footer-cta-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.footer-cta-text em {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
}

.social-link {
    color: rgba(255,255,255,0.35);
    display: inline-flex;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.04em;
}

/* ==========================================
   Back to Top
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s var(--ease-out);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1);
    box-shadow: 0 8px 24px rgba(155,133,121,0.3);
}

/* ==========================================
   Custom Scrollbar (desktop)
   ========================================== */

@media (min-width: 769px) {
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb {
        background: var(--accent-light);
        border-radius: 4px;
        opacity: 0.5;
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
    * { scrollbar-width: thin; scrollbar-color: var(--accent-light) transparent; }
}

/* ==========================================
   Lightbox
   ========================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.92);
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    transform: scale(0.93);
    transition: transform 0.4s var(--ease-out);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.18);
    color: var(--white);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-body);
    text-transform: uppercase;
}

body.lightbox-open { overflow: hidden; }

/* Gallery cards open the lightbox on click */
.gallery-card { cursor: zoom-in; }

/* ==========================================
   Responsive
   ========================================== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .about-content { gap: 60px; }
    .services-layout { gap: 40px 48px; }
    .service-name { font-size: 1.1rem; white-space: normal; }
    .service-price { font-size: 1.15rem; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .section { padding: 90px 0; }
    .section-title-xl { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 48px; }

    .cursor, .cursor-follower { display: none !important; }

    /* Nav logo — slightly smaller on mobile */
    .nav-logo-img { height: 40px; }

    /* Nav — fullscreen overlay */
    .nav-toggle { display: flex; }

    /* Mobile Menu — fullscreen overlay
       Closed: opacity 0, pointer-events none (invisible & non-interactive)
       Open: opacity 1, pointer-events auto, touch-action none (blocks page scroll)
       NO transform, NO visibility (both can cause perceived jumps).
       Background blur stays constant — only opacity transitions. */
    .nav-menu {
        position: fixed;
        inset: 0;
        background: rgba(30, 29, 27, 0.75);
        backdrop-filter: blur(22px) saturate(140%);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        touch-action: none;
        overscroll-behavior: contain;
        transition: opacity 0.4s var(--ease-out);
        will-change: opacity;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Menu items — pure opacity, NO transform, NO stagger.
       Opening: fade in slightly after the background blur appears.
       Closing: fade out immediately (no delay), faster than the backdrop. */
    .nav-menu li {
        opacity: 0;
        transition: opacity 0.2s var(--ease-out);
        transition-delay: 0s;
        will-change: opacity;
    }

    .nav-menu.active li {
        opacity: 1;
        transition-delay: 0.18s;
    }

    .nav-link {
        font-size: 1.4rem !important;
        font-family: var(--font-heading);
        padding: 18px 24px;
        display: block;
        text-align: center;
        text-transform: none;
        letter-spacing: 0.02em;
        color: rgba(255,255,255,0.6) !important;
    }

    .nav-link:hover { color: var(--white) !important; }
    .nav-link::after { display: none; }

    .nav-toggle.active span { background: var(--white) !important; }

    /* Hero */
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); margin-bottom: 40px; }
    .hero-bottom { flex-direction: column; gap: 32px; }
    .hero-scroll-cue { display: none; }

    /* About */
    .about-content { grid-template-columns: 1fr; gap: 48px; }
    .about-image { order: -1; }
    .about-image-photo { aspect-ratio: 4 / 3; }
    .about-text { text-align: center; }

    /* Services — stack to single column */
    .services-layout { grid-template-columns: 1fr; gap: 48px; }
    .service-name { font-size: 1.15rem; white-space: normal; }
    .service-price { font-size: 1.2rem; }
    .category-title { text-align: center; }

    /* Process — center text in single/two column grid */
    .process-title { text-align: center; }
    .process-body { text-align: center; max-width: 100%; }

    /* Contact — center the detail cards and big links */
    .contact-big-link { align-items: center; }
    .contact-detail { flex-direction: column; align-items: center; text-align: center; }

    /* Text Divider */
    .text-divider-content { font-size: clamp(2.2rem, 11vw, 4.5rem); }

    /* Gallery — switch to 2 columns on tablet */
    .gallery-track { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 20px; }

    /* Contact */
    .section-contact { padding-bottom: 80px; }
    .contact-hero-links { margin-bottom: 48px; }
    .contact-big-link { flex-direction: column; gap: 8px; padding: 24px 0; }
    .contact-big-link:hover { padding-left: 0; }
    .contact-big-label { min-width: auto; }
    .contact-big-value { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    .contact-details-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }

    /* Footer */
    .footer-top { padding: 64px 0; }
    .footer-cta-text { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 32px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }

    /* Marquee */
    .marquee-track { font-size: 0.85rem; }

    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* Mobile */
@media (max-width: 480px) {
    .section { padding: 72px 0; }
    .section-title-xl { font-size: clamp(1.8rem, 9vw, 2.4rem); margin-bottom: 40px; }
    .container { padding: 0 20px; }

    .hero-title { font-size: clamp(1.6rem, 8vw, 2.2rem); margin-bottom: 36px; }
    .hero-content { padding: 40px 16px; }

    .btn { padding: 15px 28px; font-size: 0.78rem; }

    .service-row { padding: 16px 0; }
    .service-name { font-size: 1rem; }
    .service-price { font-size: 1.05rem; }

    .gallery-track { gap: 12px; padding: 0 16px; }

    .contact-big-value { font-size: clamp(1.2rem, 5vw, 1.5rem); }

    .footer-top { padding: 56px 0; }
    .text-divider { padding: 28px 0; }
}

/* ==========================================
   Word-by-word Reveal (Section Titles)
   ========================================== */

.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    /* Prevent descenders clipping */
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.78s var(--ease-out);
}

[data-animate].animated .word-inner {
    transform: translateY(0);
}

/* Once words are split, neutralise the old line-level slide */
.text-reveal-inner.words-split {
    transform: none !important;
    transition: none !important;
}

/* Allow the word clips to be visible above the line wrapper */
.text-reveal-wrap.words-split-wrap {
    overflow: visible;
}

/* ==========================================
   Section Decorative Numbers
   ========================================== */

.section-num {
    position: absolute;
    bottom: 44px;
    right: max(24px, calc((100vw - 1100px) / 2));
    font-family: var(--font-heading);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px rgba(155,133,121,0.1);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 1s var(--ease-out) 0.2s, transform 1s var(--ease-out) 0.2s;
}

.section-num.num-visible {
    opacity: 1;
    transform: translateX(0);
}

.section-dark .section-num {
    -webkit-text-stroke: 1px rgba(255,255,255,0.07);
}

/* ==========================================
   Cursor Sparkle Trail
   ========================================== */

.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    border-radius: 50%;
    background: var(--accent-light);
    transform: translate(-50%, -50%);
    animation: sparkleFade 0.65s var(--ease-out) forwards;
}

@keyframes sparkleFade {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(-50% + var(--dx, 0px)),
            calc(-50% + var(--dy, 12px))
        ) scale(0) rotate(var(--rot, 180deg));
    }
}

/* ==========================================
   Floating Book CTA
   ========================================== */

.float-cta {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%) translateY(18px);
    z-index: 890;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.14);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    transition:
        opacity 0.45s var(--ease-out),
        transform 0.45s var(--ease-out),
        visibility 0.45s,
        background 0.3s,
        box-shadow 0.3s;
}

.float-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.float-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(155,133,121,0.35);
}

/* ==========================================
   Process Section
   ========================================== */

.section-process {
    padding: 100px 0 120px;
    background: var(--cream-alt);
    position: relative;
}

/* .process-sticky is now a plain wrapper — no sticky, no height constraint */

.process-header {
    text-align: center;
    margin-bottom: 72px;
    padding: 0 32px;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 56px;
    padding: 0 max(48px, calc((100vw - 1100px) / 2 + 48px));
}

.process-slide {
    /* plain content column — no animation tricks */
}


.process-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 400;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.process-body {
    font-size: 0.94rem;
    color: var(--text-light);
    line-height: 1.85;
    max-width: 340px;
}

/* Progress bar is no longer used — hidden */
.process-progress-wrap { display: none; }

/* Tablet: 2-column grid */
@media (max-width: 768px) {
    .section-process { padding: 80px 0 100px; }

    .process-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
        padding: 0 24px;
    }

.float-cta { bottom: 80px; padding: 12px 22px; font-size: 0.73rem; }
    .section-num { display: none; }
}

/* Mobile: single column */
@media (max-width: 480px) {
    .process-track {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
}

/* ==========================================
   Accessibility — Reduced Motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Ensure scroll-revealed content is always visible */
    [data-animate],
    .reveal-hero,
    .text-reveal-inner {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    /* Keep eyebrow lines fully visible */
    .eyebrow-line { width: 40px !important; transition: none !important; }

    .marquee-track { animation: none !important; }
    .hero-bg, .hero-gradient-orb { transform: none !important; }

    /* Revert hero shimmer to plain white */
    .hero-title-line {
        background: none !important;
        -webkit-text-fill-color: var(--white) !important;
        animation: none !important;
    }

    /* Instantly reveal curtain */
    .img-curtain { transform: scaleY(0) !important; }

    .section-num { opacity: 1 !important; transform: none !important; }
    .word-inner { transform: none !important; }
    .sparkle { display: none !important; }
}
