/* ============================================================
   ד"ר אוקסנה נייזוב — Landing Page
   ============================================================ */

/* ---------- Fonts (self-hosted, identical URLs to the preloads in <head>) ---------- */
@font-face {
    font-family: 'SimonaPro';
    src: url('/assets/fonts/SimonaPro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SimonaPro';
    src: url('/assets/fonts/SimonaPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SimonaPro';
    src: url('/assets/fonts/SimonaPro-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    /* lets height:0 -> height:auto animate natively (Chrome 129+) */
    interpolate-size: allow-keywords;

    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #fcfbf9;
    --text-main: #ffffff;
    --text-muted: #b5b5b5;          /* was #a3a3a3 */
    --text-dim: #8f8f8f;            /* smallest print on dark, still >= 4.5:1 */
    --ink: #121212;
    --ink-muted: #5a5a5a;
    --accent: #d89f71;              /* on dark backgrounds only */
    --accent-on-light: #96643a;     /* 4.86:1 on --bg-light — use on light sections */
    --accent-hover: #e8b68d;
    --error: #ff6b5e;
    --font-family: 'SimonaPro', 'Assistant', 'Heebo', 'Segoe UI', Arial, sans-serif;

    /* Viewport unit that accounts for mobile browser chrome.
       svh = smallest viewport height => never clips content when the URL bar appears. */
    --vh: 1vh;
}
@supports (height: 1svh) {
    :root { --vh: 1svh; }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    /* NOTE: never set `overflow: hidden` here. It turns <body> into its own scroll
       container, which silently kills every `position: sticky` on the page. */
    overflow-x: clip;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    direction: rtl;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- Focus visibility (WCAG 2.4.7) ---------- */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}
.portfolio-section :focus-visible,
.dior-protocol-section :focus-visible {
    outline-color: var(--accent-on-light);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    top: 0;
    transform: translate(50%, -120%);
    z-index: 3000;
    background: var(--accent);
    color: #0a0a0a;
    padding: 14px 28px;
    font: 700 1rem var(--font-family);
    text-decoration: none;
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .content-col, .image-col, .text-column, .form-column,
    .faq-header, .accordion-container, .glass-card { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */

.hero-section {
    position: relative;
    min-height: calc(var(--vh) * 85);
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    padding: 40px 5% 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.bg-typography {
    position: absolute;
    top: 50%;
    left: -5%;
    transform: translateY(-50%);
    font-size: 18vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

.aurora-orb {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(216, 159, 113, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -10%;
    right: -10%;
    filter: blur(60px);
    z-index: 1;
    animation: float 15s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.content-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* `both` supplies the hidden `from` during the animation, so the base state can stay
       visible. Previously this was `opacity: 0` + `forwards`, which meant the entire hero —
       headline, subtitle and the primary lead form — rendered blank if the animation never
       ran for any reason. */
    animation: fadeUp .7s ease-out both;
}

.logo-img {
    width: 115px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.hero-section h1 {
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-section h1 .highlight {
    position: relative;
    display: inline-block;
    font-weight: 700;
    z-index: 1;
}

.hero-section h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 100%;
    height: 16px;
    background-color: var(--accent);
    z-index: -1;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 500px;
    border-right: 2px solid var(--accent);
    padding-right: 20px;
}

.hero-signature-img { width: 45px; height: auto; opacity: 0.85; }

.hero-form-wrapper {
    width: 100%;
    max-width: 440px;
    margin-top: 20px;
    position: relative;
}

.hero-form-wrapper .glass-form-wrapper {
    border: 1px solid rgba(216, 159, 113, 0.25);
    border-top: 2px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(216, 159, 113, 0.08);
    animation: formPulse 3s ease-in-out infinite alternate;
}

@keyframes formPulse {
    0%   { box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 20px rgba(216,159,113,.05); }
    100% { box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(216,159,113,.15); }
}

.hero-form-wrapper .form-title { font-size: 1.4rem; color: var(--accent); }

.hero-form-wrapper .form-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.form-sub {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -25px 0 20px;
    letter-spacing: 0.5px;
}

/* ---------- CTA button ---------- */
.cta-button {
    padding: 18px 45px;
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent);
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: color .4s cubic-bezier(.4,0,.2,1), border-color .4s ease;
    width: fit-content;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: -1;
}

.cta-button:hover::before,
.cta-button:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.cta-button:hover,
.cta-button:focus-visible { color: var(--bg-dark); border-color: var(--accent); }

.image-col {
    position: relative;
    display: flex;
    justify-content: flex-end;
    animation: fadeLeft .9s ease-out both;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(216, 159, 113, 0.3);
    z-index: -1;
    transition: top .6s ease, left .6s ease, border-color .6s ease;
}

.image-wrapper:hover::after { top: 10px; left: -10px; border-color: rgba(216, 159, 113, 0.6); }

.doctor-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    filter: grayscale(100%) contrast(1.15) brightness(0.9);
    transition: filter .8s cubic-bezier(.4,0,.2,1);
}

.image-wrapper:hover .doctor-img { filter: grayscale(0%) contrast(1.05) brightness(1); }

.authority-badge {
    position: absolute;
    bottom: -30px;
    right: 40px;
    padding: 20px 35px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    border-right: 3px solid var(--accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.authority-text p:first-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.authority-text p + p {
    margin: 5px 0 0;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 400;
}

/* Entrance fades start at opacity .01, not 0. Chrome does not count an element with
   opacity 0 as painted content, so with 0 Largest Contentful Paint could not be measured
   at all (Lighthouse reported NO_LCP). .01 is visually identical to 0. */
@keyframes fadeUp   { from { opacity:.01; transform: translateY(30px); } to { opacity:1; transform:none; } }
@keyframes fadeLeft { from { opacity:.01; transform: translateX(-40px); } to { opacity:1; transform:none; } }
@keyframes float    { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-50px,30px) scale(1.1); } }

@media (max-width: 968px) {
    .hero-section {
        padding: 50px 6% 40px;
        min-height: auto;
        background: radial-gradient(circle at 50% 20%, rgba(216,159,113,.08) 0%, var(--bg-dark) 60%);
    }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 35px; }
    .content-col { gap: 18px; align-items: center; }
    .logo-img { width: 85px; margin-bottom: 5px; }
    .hero-section h1 { font-size: 2rem; line-height: 1.15; }
    .hero-section h1 .highlight::after { height: 10px; bottom: 5px; }
    .hero-subtitle {
        font-size: 1rem;
        border-right: none;
        padding-right: 0;
        margin: 0 auto;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 15px;
        max-width: 100%;
        line-height: 1.5;
    }
    .hero-form-wrapper { max-width: 100%; margin-top: 15px; }
    .hero-form-wrapper .glass-form-wrapper { padding: 28px 20px; border-radius: 14px; }
    .hero-form-wrapper .form-title { font-size: 1.2rem; margin-bottom: 18px; }
    .form-sub { margin-top: -8px; }
    .image-col { justify-content: center; }
    .image-wrapper { max-width: 260px; margin: 0 auto; }
    .image-wrapper::after { top: 10px; left: -10px; }
    .doctor-img { filter: grayscale(0%) contrast(1.05) brightness(1); }
    .authority-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
        white-space: nowrap;
        padding: 12px 20px;
        gap: 10px;
        border-right-width: 2px;
    }
    .authority-text p:first-child { font-size: 1rem; }
    .authority-text p + p { font-size: 0.8rem; }
    .hero-signature-img { width: 30px; }
    .bg-typography { display: none; }
    .aurora-orb { width: 80vw; height: 80vw; top: -20%; right: -30%; }
}

/* ============================================================
   SECTION 2 — AUTHORITY SCROLL (STACKED CARDS)
   ============================================================ */

.authority-scroll-section { position: relative; padding-bottom: 50px; }

.sticky-bg-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: calc(var(--vh) * 100);
    z-index: 1;
    overflow: hidden;
    border-top: 1px solid rgba(223, 166, 123, 0.1);
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(15%) contrast(1.1) brightness(0.8);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,4,3,.3) 0%, rgba(5,4,3,.6) 40%, rgba(5,4,3,.95) 100%);
    z-index: 2;
}

.scrolling-content {
    position: relative;
    z-index: 3;
    margin-top: calc(var(--vh) * -100);
}

.intro-header-block {
    min-height: calc(var(--vh) * 90);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--vh) * 10) 5% 0;
}

.section-label {
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 700;
}

.section-label::before, .section-label::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: currentColor;
    vertical-align: middle;
    margin: 0 15px;
    opacity: 0.5;
}

.intro-header-block h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 25px;
    letter-spacing: -0.5px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.intro-header-block h2 strong { font-weight: 700; color: var(--accent); }

.intro-header-block p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    max-width: 800px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.cards-stack-container { max-width: 900px; margin: 0 auto; padding: 0 5%; }

.glass-card {
    position: sticky;
    top: var(--sticky-offset);
    background: rgba(12, 10, 8, 0.62);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(223,166,123,0.4);
    border-radius: 12px;
    padding: 45px 50px;
    margin-bottom: calc(var(--vh) * 35);
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 -15px 40px rgba(0,0,0,.4), 0 20px 40px rgba(0,0,0,.6);
    transform-origin: top center;
    transition: opacity .5s ease, transform .5s ease, background .5s ease, border-color .5s ease;
}

@media (scripting: enabled) {
    .glass-card { opacity: 0; transform: translateY(50px); }
}

.glass-card:hover { background: rgba(18,14,10,.75); border-color: rgba(223,166,123,.3); }
.glass-card.is-visible { opacity: 1; transform: none; }

.card-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    opacity: 0.35;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity .5s ease, transform .5s ease;
}

.glass-card:hover .card-number { opacity: .7; transform: scale(1.05) translateY(-2px); }

.card-text-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.card-text-content p  { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); }

.authority-cta-wrapper {
    text-align: center;
    padding: calc(var(--vh) * 10) 0 calc(var(--vh) * 30);
    position: relative;
    z-index: 10;
}

/* ---------- shared section CTA ---------- */
.section-cta {
    display: flex;
    justify-content: center;
    padding: 40px 5% 10px;
    position: relative;
    z-index: 10;
}

.section-cta .cta-button {
    padding: 16px 40px;
    font-size: 1rem;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}
.section-cta .cta-button:hover,
.section-cta .cta-button:focus-visible { color: #0a0a0a; }

/* the treatments CTA sits on the dark page background, below the slider */
.slider-cta-band { background: var(--bg-dark); padding-bottom: 30px; }

.portfolio-section .section-cta .cta-button { border-color: var(--ink); color: var(--ink); }
.portfolio-section .section-cta .cta-button::before { background-color: var(--ink); }
.portfolio-section .section-cta .cta-button:hover,
.portfolio-section .section-cta .cta-button:focus-visible { color: #ffffff; }

@media (max-width: 968px) {
    .section-cta { padding: 30px 5% 5px; }
    .section-cta .cta-button { padding: 14px 30px; font-size: .9rem; width: 100%; max-width: 320px; text-align: center; }
    .intro-header-block { min-height: auto; padding: 60px 5% 40px; }
    .intro-header-block h2 { font-size: 1.8rem; line-height: 1.2; }
    .intro-header-block p  { font-size: 1rem; line-height: 1.6; }
    .section-label { font-size: .85rem; letter-spacing: 2px; }
    .glass-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px 25px;
        margin-bottom: calc(var(--vh) * 25);
        border-radius: 10px;
    }
    .card-number { font-size: 3rem; position: absolute; top: 15px; left: 15px; opacity: .12; }
    .card-text-content h3 { font-size: 1.3rem; }
    .card-text-content p  { font-size: .95rem; }
    .authority-cta-wrapper { padding: calc(var(--vh) * 5) 0 calc(var(--vh) * 15); }
}

/* ============================================================
   SECTION 3 — FULL SCREEN SLIDER (TREATMENTS)
   ============================================================ */

.full-screen-slider {
    position: relative;
    width: 100%;
    height: calc(var(--vh) * 100);
    overflow: hidden;
    direction: ltr;
    touch-action: pan-y;
}

.center-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 400;
    letter-spacing: .15em;
    color: rgba(255,255,255,.95);
    text-align: center;
    line-height: 1.2;
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
    animation: watermarkIntro 2s cubic-bezier(.4,0,.2,1) forwards;
    opacity: 0;
    transform: translate(-50%,-45%);
    transition: opacity .6s ease, visibility .6s;
}

@keyframes watermarkIntro {
    0%   { opacity:0; transform: translate(-50%,-40%) scale(.95); filter: blur(10px); }
    100% { opacity:.95; transform: translate(-50%,-50%) scale(1); filter: blur(0); }
}

.full-screen-slider.is-dimmed .center-watermark { opacity: 0; visibility: hidden; }

.treatments-slider-track {
    display: flex;
    height: 100%;
    transition: transform 1s cubic-bezier(.77,0,.175,1);
    will-change: transform;
}

.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 6s ease-out;
    filter: contrast(1.05) brightness(.85);
    z-index: 1;
}

.slide.active .slide-bg { transform: scale(1.05); }
.slide:not(.active) .slide-bg { transform: none; }

.bottom-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 40%, transparent 100%);
    z-index: 2;
}

.slide-trigger {
    position: absolute;
    bottom: calc(var(--vh) * 12);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    padding: 10px 20px;
    transition: opacity .6s ease, transform .8s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    align-items: center;
    direction: rtl;
}

.slide-trigger:hover,
.slide-trigger:focus-visible { transform: translateX(-50%) translateY(-10px); }

.trigger-line {
    width: 1px;
    height: 30px;
    background-color: var(--accent);
    margin-bottom: 15px;
    transition: height .6s cubic-bezier(.4,0,.2,1);
}

.slide-trigger:hover .trigger-line,
.slide-trigger:focus-visible .trigger-line { height: 55px; }

.slide-trigger .trigger-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 400;
    margin: 0 0 15px;
    color: #fff;
    letter-spacing: .5px;
    text-shadow: 0 2px 15px rgba(0,0,0,.5);
}

.discover-text {
    font-size: .85rem;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: color .4s ease;
}

.slide-trigger:hover .discover-text,
.slide-trigger:focus-visible .discover-text { color: var(--accent); }

.dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3,2,2,.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .8s cubic-bezier(.4,0,.2,1), visibility .8s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.is-open .dark-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
.slide.is-open .slide-trigger { opacity: 0; transform: translateX(-50%) translateY(20px); pointer-events: none; }

.overlay-content {
    text-align: center;
    max-width: 650px;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    direction: rtl;
    align-items: center;
}

.overlay-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}

.slide.is-open .overlay-content > * { opacity: 1; transform: none; }
.slide.is-open .overlay-main-title  { transition-delay: .1s; }
.slide.is-open .overlay-subtitle    { transition-delay: .25s; }
.slide.is-open .overlay-title       { transition-delay: .4s; }
.slide.is-open .overlay-desc        { transition-delay: .55s; }
.slide.is-open .overlay-cta-button  { transition-delay: .7s; }

.overlay-main-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: .5px;
}

.overlay-subtitle {
    font-size: .95rem;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: block;
}

.overlay-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 400; margin-bottom: 25px; line-height: 1.1; }
.overlay-desc  { font-size: 1.25rem; line-height: 1.8; color: rgba(255,255,255,.85); margin-bottom: 50px; }

.overlay-cta-button {
    display: inline-block;
    padding: 16px 45px;
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,.6);
    font-size: 1rem;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: color .5s cubic-bezier(.4,0,.2,1), border-color .5s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: 1px;
}

.overlay-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    z-index: -1;
}

.overlay-cta-button:hover::before,
.overlay-cta-button:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.overlay-cta-button:hover,
.overlay-cta-button:focus-visible { color: #000; border-color: #fff; }

.close-btn {
    position: absolute;
    top: 40px;
    inset-inline-end: 50px;   /* logical: flips correctly, never sets left+right together */
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: .6;
    transition: opacity .4s ease, transform .4s ease;
    z-index: 30;
    padding: 12px;
    line-height: 0;
}

.close-btn:hover, .close-btn:focus-visible { opacity: 1; transform: rotate(90deg); }
.close-btn svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.2; fill: none; }

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 15;
    transition: opacity .5s ease;
}

.full-screen-slider.is-dimmed .slider-nav { opacity: 0; pointer-events: none; }

.nav-dot {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dot::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: rgba(255,255,255,.55);
    transition: background-color .3s ease, height .3s ease;
}

.nav-dot[aria-current="true"]::after { background-color: var(--text-main); height: 4px; }

@media (max-width: 768px) {
    .center-watermark { font-size: 2rem; letter-spacing: .1em; }
    .slide-trigger .trigger-title { font-size: 1.6rem; max-width: 85vw; }
    .trigger-line { height: 20px; margin-bottom: 10px; }
    .discover-text { font-size: .75rem; letter-spacing: 3px; }
    .overlay-main-title { font-size: 1.6rem; }
    .overlay-subtitle { font-size: .8rem; letter-spacing: 2px; margin-bottom: 20px; }
    .overlay-title { font-size: 1.5rem; }
    .overlay-desc { font-size: 1rem; line-height: 1.7; margin-bottom: 25px; }
    .overlay-cta-button { padding: 14px 30px; font-size: .95rem; width: 100%; text-align: center; }
    .close-btn { top: 16px; inset-inline-end: 12px; }
    .close-btn svg { width: 28px; height: 28px; }
    .slider-nav { bottom: 14px; gap: 4px; }
    .nav-dot { width: 44px; }
    .nav-dot::after { width: 30px; }
}

/* ============================================================
   SECTION 4 — PORTFOLIO (BEFORE/AFTER MARQUEE)
   ============================================================ */

.portfolio-section {
    padding: 70px 0 50px;
    position: relative;
    background-image: linear-gradient(to bottom, var(--bg-light) 0%, #ffffff 100%);
    color: var(--ink);
}

.portfolio-header-area { text-align: center; max-width: 900px; margin: 0 auto 80px; padding: 0 5%; }

.portfolio-section .section-label {
    font-size: .95rem;
    color: var(--accent-on-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: inline-block;
    font-weight: 700;
}

.portfolio-header-area h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -.5px;
}

.portfolio-header-area h2 strong { font-weight: 700; }

.sub-p { font-size: 1.25rem; line-height: 1.7; color: var(--ink-muted); max-width: 750px; margin: 0 auto; }

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    /* the track is `width: max-content` and wider than the viewport; without this it
       inherits RTL, gets right-aligned, and the JS translate drives it off-screen. */
    direction: ltr;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 12vw;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}
.marquee-wrapper::before { left: 0;  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%); }
.marquee-wrapper::after  { right: 0; background: linear-gradient(to left,  #fff 0%, rgba(255,255,255,0) 100%); }

.marquee-track { display: flex; gap: 20px; width: max-content; direction: ltr; will-change: transform; }

.comparison-pair { flex: 0 0 550px; display: flex; flex-direction: column; }

.images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: var(--accent);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
    transition: transform .5s cubic-bezier(.4,0,.2,1), box-shadow .5s ease;
}

.comparison-pair:hover .images-row { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,.12); }

.img-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 200px;
    background-color: #f0eeea;
    overflow: hidden;
}

.img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.92);
    padding: 6px 18px;
    font-size: .75rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    border: 1px solid rgba(0,0,0,.05);
}

@media (max-width: 968px) {
    .portfolio-header-area h2 { font-size: 2.5rem; }
    .comparison-pair { flex: 0 0 400px; }
    .marquee-wrapper::before, .marquee-wrapper::after { width: 5vw; }
}

@media (max-width: 768px) {
    .portfolio-section { padding: 40px 0 30px; }
    .portfolio-header-area { margin-bottom: 50px; }
    .portfolio-header-area h2 { font-size: 2.2rem; }
    .sub-p { font-size: 1.1rem; }
    .comparison-pair { flex: 0 0 320px; }
    .marquee-track { gap: 15px; }
    .label { font-size: .75rem; padding: 5px 12px; bottom: 10px; }
}

/* ---------- stop / resume control for auto-moving content (WCAG 2.2.2) ---------- */
.motion-toggle-row { display: flex; justify-content: center; padding: 18px 5% 0; }

.motion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: transparent;
    color: var(--text-muted);
    font: 400 .85rem var(--font-family);
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease;
}
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--text-main); border-color: var(--accent); }
.motion-toggle svg { width: 11px; height: 11px; fill: currentColor; flex-shrink: 0; }
.motion-toggle .i-play { display: none; }
.motion-toggle[data-state="stopped"] .i-play { display: block; }
.motion-toggle[data-state="stopped"] .i-pause { display: none; }

.portfolio-section .motion-toggle { color: var(--ink-muted); border-color: rgba(0,0,0,.22); }
.portfolio-section .motion-toggle:hover,
.portfolio-section .motion-toggle:focus-visible { color: var(--ink); border-color: var(--accent-on-light); }

/* nothing moves under reduced motion, so there is nothing to stop */
@media (prefers-reduced-motion: reduce) { .motion-toggle-row { display: none; } }

/* ============================================================
   SECTION 5 — THE PROTOCOL (EDITORIAL SLIDER)
   ============================================================ */

.dior-protocol-section {
    height: calc(var(--vh) * 100);
    min-height: 780px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L100 50L50 100L0 50L50 0z' fill='none' stroke='rgba(0,0,0,0.02)' stroke-width='1'/%3E%3C/svg%3E");
    background-position: center;
    color: #1a1a1a;
}

.protocol-text-overlay {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6% 0 5%;
    z-index: 10;
    overflow: hidden;
    background: linear-gradient(to left, var(--bg-light) 65%, rgba(252,251,249,0) 100%);
}

.protocol-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: var(--accent-on-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    font-weight: 700;
}

.protocol-section-label svg { width: 14px; height: 14px; fill: currentColor; }

.protocol-text-overlay h2 {
    font-size: clamp(2.2rem, 3.5vw, 4rem);
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -.5px;
    padding-bottom: 14px;
    position: relative;
}

.protocol-text-overlay h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.protocol-text-overlay h2 strong { font-weight: 700; }
.protocol-text-overlay p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-muted); margin-bottom: 40px; }

.protocol-cta-button {
    align-self: flex-start;
    padding: 16px 45px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    font-family: var(--font-family);
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .4s ease, border-color .4s ease;
    letter-spacing: 1px;
}

.protocol-cta-button:hover,
.protocol-cta-button:focus-visible { background-color: var(--accent-on-light); border-color: var(--accent-on-light); }

.slider-full-wrapper { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; z-index: 5; }

.protocol-slider-track {
    display: flex;
    align-items: center;
    gap: 2vw;
    padding-right: 2vw;
    transition: transform 1s cubic-bezier(.77,0,.175,1);
    will-change: transform;
    touch-action: pan-y;
}

.intro-spacer { flex: 0 0 44vw; height: 10px; }

.step-card {
    flex: 0 0 24vw;
    height: calc(var(--vh) * 65);
    min-height: 480px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #f9f8f6 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,.05);
    transition: transform .6s ease, box-shadow .6s ease;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(216,159,113,.25);
    z-index: 5;
    pointer-events: none;
    transition: border-color .4s ease;
}

.step-card:hover, .step-card:focus-within { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,.09); }
.step-card:hover::before, .step-card:focus-within::before { border-color: rgba(216,159,113,.55); }

.card-bg-number {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 24rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(216,159,113,.15);
    line-height: .8;
    pointer-events: none;
    z-index: 1;
    transition: -webkit-text-stroke-color .6s ease, transform .6s cubic-bezier(.4,0,.2,1);
}

.step-card:hover .card-bg-number { -webkit-text-stroke: 2px rgba(216,159,113,.3); transform: scale(1.03) translate(-10px,10px); }

.card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 45px 35px;
    z-index: 10;
}

.step-number {
    font-size: .85rem;
    letter-spacing: 3px;
    color: var(--accent-on-light);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.step-number::before { content: ''; width: 25px; height: 1px; background-color: currentColor; transition: width .4s ease; }
.step-card:hover .step-number::before { width: 40px; }

.step-title { font-size: 2rem; font-weight: 400; margin-bottom: 14px; color: #1a1a1a; letter-spacing: -.5px; line-height: 1.1; }

/* Descriptions used to be hover-only, which hid them from touch and keyboard users entirely. */
.step-desc { font-size: 1.02rem; line-height: 1.55; color: var(--ink-muted); }

.discover-link {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-on-light);
    background: none;
    border: none;
    font-family: var(--font-family);
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    transition: gap .3s ease;
    align-self: flex-start;
}

.discover-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .4s ease; }
.discover-link:hover, .discover-link:focus-visible { gap: 14px; }

.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 6%;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 20;
    color: var(--ink-muted);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.nav-arrow {
    background: none;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

.nav-arrow:hover:not(:disabled),
.nav-arrow:focus-visible:not(:disabled) { color: #fff; background-color: var(--accent-on-light); border-color: var(--accent-on-light); }
.nav-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-arrow:disabled { opacity: .3; cursor: not-allowed; }

@media (max-width: 1200px) {
    .dior-protocol-section { flex-direction: column; justify-content: flex-start; padding: 70px 5% 60px; height: auto; min-height: auto; }
    .protocol-text-overlay {
        position: relative;
        width: 100%;
        inset: auto;
        text-align: center;
        margin-bottom: 35px;
        padding: 0 5%;
        background: none;
        overflow: visible;
        align-items: center;
    }
    .protocol-text-overlay h2 { font-size: 1.8rem; padding-bottom: 12px; }
    .protocol-text-overlay h2::after { right: 50%; transform: translateX(50%); }
    .protocol-text-overlay p { font-size: 1rem; margin: 0 auto 25px; }
    .protocol-section-label { font-size: .8rem; letter-spacing: 3px; margin-bottom: 15px; }
    .protocol-cta-button { width: 100%; text-align: center; padding: 14px 25px; font-size: .95rem; align-self: stretch; }
    .slider-full-wrapper { position: relative; top: 0; transform: none; }
    .intro-spacer { display: none; }
    .protocol-slider-track { padding-right: 0; gap: 4vw; }
    .step-card { flex: 0 0 82vw; height: auto; min-height: 400px; }
    .card-content { position: relative; padding: 30px 25px; }
    .step-desc { font-size: .95rem; margin-top: 4px; }
    .card-bg-number { font-size: 14rem; top: -10px; left: -10px; }
    .step-title { font-size: 1.5rem; }
    .slider-controls { position: relative; bottom: 0; right: 0; justify-content: center; margin-top: 30px; }
}

/* ============================================================
   SECTION 6 — THE CLINIC DIARIES (VIDEOS)
   ============================================================ */

.video-section {
    padding: 110px 5% 130px;
    position: relative;
    background-color: #080808;
    background-image: radial-gradient(circle at 50% 50%, #151515 0%, #080808 100%);
}

.video-container { max-width: 1400px; margin: 0 auto; }
.video-section-header { text-align: center; max-width: 800px; margin: 0 auto 70px; }

.video-section-label {
    font-size: .95rem;
    color: #a5a5a5;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: inline-block;
    font-weight: 700;
}

.video-section-header h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -.5px;
}

.video-section-header h2 strong { font-weight: 700; }
.section-desc { font-size: 1.25rem; line-height: 1.7; color: rgba(255,255,255,.8); margin: 0 auto; max-width: 600px; }

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

.video-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    border: 1px solid rgba(255,255,255,.05);
    padding: 0;
    display: block;
    width: 100%;
    transition: transform .6s cubic-bezier(.4,0,.2,1), box-shadow .6s ease, border-color .6s ease;
}

.video-card:hover, .video-card:focus-visible {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,.8);
    border-color: rgba(216,159,113,.35);
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
    filter: grayscale(35%);
    transition: opacity .8s ease, transform 2s ease, filter .8s ease;
    display: block;
}

.video-card:hover .video-poster,
.video-card:focus-visible .video-poster { opacity: 1; transform: scale(1.05); filter: grayscale(0%); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px 26px;
    pointer-events: none;
    text-align: right;
}

.video-category {
    font-size: .85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: .9;
    transition: opacity .4s ease;
}

.video-title { font-size: 1.5rem; font-weight: 400; color: #fff; }
.video-card:hover .video-category, .video-card:focus-visible .video-category { opacity: 1; }

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    transition: transform .4s cubic-bezier(.4,0,.2,1), border-color .4s ease, background .4s ease;
    z-index: 10;
    pointer-events: none;
}

.play-icon::after {
    content: '';
    width: 0; height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
    margin-right: -4px;
    transition: border-color .4s ease;
}

.video-card:hover .play-icon, .video-card:focus-visible .play-icon {
    transform: translate(-50%,-50%) scale(1.15);
    border-color: var(--accent);
    background: rgba(216,159,113,.15);
}
.video-card:hover .play-icon::after { border-left-color: var(--accent); }

@media (max-width: 1024px) { .video-grid { gap: 20px; } }

@media (max-width: 768px) {
    .video-section { padding: 60px 0; overflow: hidden; }
    .video-section-header { padding: 0 5%; margin-bottom: 30px; }
    .video-section-header h2 { font-size: 1.8rem; }
    .section-desc { font-size: .95rem; }
    .video-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 0 5% 30px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .video-grid::-webkit-scrollbar { display: none; }
    .video-card { flex: 0 0 70vw; scroll-snap-align: center; border-radius: 10px; }
    .video-poster { opacity: .9; filter: none; }
    .video-title { font-size: 1.1rem; }
    .video-category { font-size: .75rem; }
}

/* ---------- Video modal ---------- */
.video-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(5,5,5,.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, visibility .4s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }

.close-modal {
    position: absolute;
    top: 26px;
    inset-inline-end: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: .75;
    transition: opacity .3s ease, color .3s ease;
    font-family: var(--font-family);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2001;
    padding: 10px;
}

.close-modal:hover, .close-modal:focus-visible { opacity: 1; color: var(--accent); }
.close-modal svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.modal-video-wrapper {
    position: relative;
    width: 90%;
    max-width: 430px;
    aspect-ratio: 9 / 16;
    max-height: 86vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    transform: scale(.95);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.video-modal.active .modal-video-wrapper { transform: scale(1); }
.modal-video-wrapper video { width: 100%; height: 100%; object-fit: cover; background-color: #000; display: block; }
video:fullscreen, video:-webkit-full-screen { object-fit: contain; background: #000; }

@media (max-width: 768px) { .close-modal { top: 12px; inset-inline-end: 12px; } .close-modal span { display: none; } }

/* ============================================================
   SECTION 7 — TESTIMONIALS
   ============================================================ */

.testimonials-section {
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #151515 0%, #0a0a0a 100%);
}

.quote-watermark {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 40vw;
    line-height: 0;
    color: rgba(255,255,255,.02);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.testimonials-container { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; width: 100%; }
.testimonials-section .section-header { text-align: center; margin-bottom: 55px; }

.testimonials-section .section-label {
    font-size: .95rem;
    color: #a5a5a5;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-block;
    font-weight: 700;
}
.testimonials-section .section-label::before,
.testimonials-section .section-label::after { display: none; }

.testimonials-section .section-header h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.testimonials-section .section-header h2 strong { font-weight: 700; }

.testimonial-slider { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; }

.testimonial-slide {
    position: absolute;
    inset: 0;
    margin: auto;
    height: fit-content;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease, visibility .7s;
}

.testimonial-slide.is-active { opacity: 1; visibility: visible; transform: none; }

.quote-text {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,.96);
    margin-bottom: 40px;
    letter-spacing: .5px;
}

.quote-author { display: inline-flex; flex-direction: column; align-items: center; font-style: normal; }
.author-name { font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: 1px; margin-bottom: 5px; }
.author-age  { font-size: .95rem; color: #a5a5a5; font-family: Arial, sans-serif; letter-spacing: 1px; }

.slider-progress-nav { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }

/* Button wrapper gives a 44px touch target; the visible line stays 2px. */
.progress-line {
    width: 60px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.progress-track { width: 100%; height: 2px; background-color: rgba(216,159,113,.45); position: relative; overflow: hidden; }
.progress-fill  { position: absolute; inset: 0 0 0 auto; width: 0; background-color: var(--accent); }
.progress-line[aria-current="true"] .progress-track { height: 3px; }
.progress-line[aria-current="true"] .progress-fill { animation: fillProgress var(--testimonial-duration, 8.5s) linear forwards; }
/* freeze the bar whenever rotation is stopped (hover, focus, or the stop button) */
.slider-progress-nav.is-stopped .progress-fill { animation-play-state: paused; }

@keyframes fillProgress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    .progress-line[aria-current="true"] .progress-fill { animation: none; width: 100%; }
}

@media (max-width: 768px) {
    .testimonials-section { padding: 50px 5%; }
    .testimonials-section .section-header { margin-bottom: 32px; }
    .testimonials-section .section-header h2 { font-size: 1.7rem; }
    .testimonials-section .section-label { font-size: .8rem; letter-spacing: 3px; }
    .quote-watermark { font-size: 60vw; top: 45%; }
    .quote-text { font-size: 1rem; line-height: 1.7; margin-bottom: 30px; }
    .slider-progress-nav { gap: 4px; }
    .progress-line { width: 34px; }
    .testimonial-slider { min-height: 300px; }
}

/* ============================================================
   SECTION 8 — CLOSING FORM
   ============================================================ */

.closing-section {
    position: relative;
    padding: 60px 5% 100px;
    min-height: calc(var(--vh) * 80);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-darker);
    scroll-margin-top: 20px;
}

.closing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.vertical-watermark {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: .9rem;
    letter-spacing: 12px;
    color: rgba(255,255,255,.06);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1;
}

.luxury-ring {
    position: absolute;
    top: -20%;
    right: 15%;
    width: 70vw;
    height: 70vw;
    border: 1px solid rgba(216,159,113,.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ambient-shape-1 {
    position: absolute;
    top: 10%; left: 10%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(216,159,113,.12) 0%, transparent 65%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    animation: floatShape 12s ease-in-out infinite alternate;
}

.ambient-shape-2 {
    position: absolute;
    bottom: -10%; right: 20%;
    width: 30vw; height: 30vw;
    background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 60%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: 1;
    animation: floatShape 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatShape { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px,-40px) scale(1.1); } }

.closing-container {
    max-width: 1250px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.text-column { display: flex; flex-direction: column; }

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-eyebrow svg { width: 14px; height: 14px; fill: currentColor; }

.text-column h2 { font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; margin-bottom: 25px; line-height: 1.1; letter-spacing: -.5px; }
.text-column h2 strong { font-weight: 700; }
.text-column > p { font-size: 1.25rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 45px; max-width: 90%; }

.authority-trust-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    width: 100%;
    max-width: 450px;
}

.trust-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(216,159,113,.4);
    padding: 3px;
    filter: grayscale(20%) contrast(1.1);
}

.trust-info p:first-child { margin-bottom: 5px; font-size: 1.2rem; font-weight: 700; color: var(--text-main); }
.trust-info p + p { font-size: .95rem; color: var(--accent); }
.closing-signature-img { width: 55px; height: auto; opacity: .85; margin-right: auto; }


.glass-form-wrapper {
    background: rgba(18,18,18,.72);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,.08);
    border-top: 1px solid rgba(216,159,113,.3);
    border-radius: 16px;
    padding: 46px;
    box-shadow: 0 40px 80px rgba(0,0,0,.6);
    position: relative;
    overflow: hidden;
}

.form-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 32px; text-align: center; }

.input-group { position: relative; margin-bottom: 26px; }

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
    padding: 12px 0;
    font-family: var(--font-family);
    font-size: 1.1rem;
    color: var(--text-main);
    transition: border-color .3s ease;
    text-align: right;
    direction: rtl;
}

.form-input::placeholder { color: rgba(255,255,255,.55); font-weight: 400; }
.form-input:focus { border-bottom-color: var(--accent); outline: none; }
.form-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.form-input[aria-invalid="true"] { border-bottom-color: var(--error); animation: shake .4s ease; }

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.field-error {
    display: block;
    color: var(--error);
    font-size: .85rem;
    margin-top: 7px;
    min-height: 1.1em;
}

.form-status {
    color: var(--error);
    font-size: .95rem;
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}
.form-status a { color: var(--accent); }

.submit-btn {
    width: 100%;
    margin-top: 14px;
    padding: 20px 0;
    background-color: var(--text-main);
    color: var(--bg-dark);
    border: none;
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
    letter-spacing: 1px;
    border-radius: 2px;
}

.submit-btn:hover:not(:disabled),
.submit-btn:focus-visible:not(:disabled) {
    background-color: var(--accent);
    color: #0a0a0a;                 /* was white on accent = 2.3:1 */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(216,159,113,.25);
}

.submit-btn:disabled { opacity: .6; cursor: progress; transform: none; }

.form-disclaimer { display: block; text-align: center; font-size: .85rem; color: var(--text-dim); margin-top: 18px; }

/* ---------- Location gate ---------- */
.location-check {
    background: rgba(216,159,113,.08);
    border: 1px solid rgba(216,159,113,.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.location-check p { font-size: .95rem; color: rgba(255,255,255,.88); line-height: 1.6; margin-bottom: 15px; }

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--accent);
    font-size: .85rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.location-icon svg { width: 14px; height: 14px; fill: currentColor; }

.location-options { display: flex; gap: 10px; }

.location-btn {
    flex: 1;
    padding: 14px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.location-btn.is-primary { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.location-btn.is-primary:hover, .location-btn.is-primary:focus-visible { background: var(--accent-hover); }
.location-btn:not(.is-primary):hover,
.location-btn:not(.is-primary):focus-visible { border-color: var(--accent); background: rgba(216,159,113,.12); }

.location-reject-msg { text-align: center; padding: 25px 15px; color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.7; }
.location-reject-msg span { color: var(--accent); }

[hidden] { display: none !important; }

@media (max-width: 968px) {
    .closing-section { padding: 50px 5% 60px; min-height: auto; }
    .closing-container { grid-template-columns: 1fr; gap: 35px; }
    .vertical-watermark, .luxury-ring { display: none; }
    .text-column { text-align: center; align-items: center; }
    .text-column h2 { font-size: 1.8rem; line-height: 1.2; }
    .text-column > p { max-width: 100%; font-size: 1rem; margin-bottom: 28px; }
    .section-eyebrow { font-size: .8rem; letter-spacing: 2px; }
    .authority-trust-badge { justify-content: center; gap: 12px; }
    .trust-avatar { width: 46px; height: 46px; }
    .trust-info p:first-child { font-size: .95rem; }
    .trust-info p + p { font-size: .78rem; }
    .closing-signature-img { width: 30px; }
    .ambient-shape-1 { width: 80vw; height: 80vw; top: 30%; left: 10%; }
}

@media (max-width: 768px) {
    .glass-form-wrapper { padding: 30px 20px; border-radius: 14px; }
    .form-title { font-size: 1.2rem; margin-bottom: 20px; }
    .form-input { font-size: 1rem; }
    .submit-btn { padding: 16px; font-size: 1rem; }
    .form-disclaimer { font-size: .78rem; }
    .location-check { padding: 16px; }
    .location-check p { font-size: .9rem; line-height: 1.5; }
    .location-options { flex-direction: column; gap: 8px; }
    .location-btn { padding: 14px; font-size: .95rem; }
}

/* ============================================================
   SECTION 9 — FAQ + FOOTER
   ============================================================ */

.faq-section {
    padding: 80px 5% 110px;
    position: relative;
    background-color: var(--bg-darker);
    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

.faq-container { max-width: 900px; margin: 0 auto; position: relative; z-index: 10; }
.faq-header { text-align: center; margin-bottom: 50px; }
.faq-header .section-eyebrow { justify-content: center; }
.faq-header h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -.5px; }

.accordion-container {
    background: rgba(18,18,18,.72);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

.faq-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    text-align: right;
    padding: 26px 0;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color .3s ease;
}

.faq-question:hover { color: var(--accent); }
.faq-question[aria-expanded="true"] { color: var(--accent); font-weight: 700; }

.accordion-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }

.accordion-icon::before, .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.accordion-icon::before { width: 18px; height: 1.5px; }
.accordion-icon::after  { width: 1.5px; height: 18px; }

.faq-question[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

/* The panel opens to its natural height with NO JavaScript measurement, so the value
   can never go stale on resize or after the webfont swaps in (the old build cached
   scrollHeight in px at DOMContentLoaded and clipped the text afterwards).
   Chrome/Edge animate height:auto natively via interpolate-size; every other engine
   falls back to a max-height transition. Both paths end at the real content height. */
.faq-answer { height: 0; overflow: hidden; transition: height .4s cubic-bezier(.4,0,.2,1); }
.faq-item.is-open .faq-answer { height: auto; }

@supports not (interpolate-size: allow-keywords) {
    .faq-answer { height: auto; max-height: 0; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
    .faq-item.is-open .faq-answer { max-height: 60rem; }
}

.faq-answer-content { padding: 0 0 30px; font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); }

.site-footer {
    text-align: center;
    padding: 50px 5% 40px;
    border-top: 1px solid rgba(255,255,255,.1);
    background-color: var(--bg-darker);
    font-size: .95rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

.footer-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}
.footer-location svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; }

.site-footer p { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: var(--text-main); text-decoration: none; transition: color .3s ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }

@media (max-width: 768px) {
    .faq-section { padding: 50px 5% 60px; }
    .faq-header { margin-bottom: 32px; }
    .faq-header h2 { font-size: 1.75rem; }
    .accordion-container { padding: 4px 18px; }
    .faq-question { font-size: 1rem; padding: 20px 0; gap: 12px; }
    .faq-answer-content { font-size: .95rem; line-height: 1.65; padding-bottom: 20px; }
    .site-footer { padding: 35px 5% 30px; }
    .footer-location { font-size: .82rem; margin-bottom: 15px; }
    .site-footer p { font-size: .82rem; }
}

/* ============================================================
   THANK-YOU PAGE  (also powers 404)
   ============================================================ */

/* NOTE: this section deliberately reuses the existing `fadeUp` and `float`
   keyframes declared near the hero. Re-declaring either name here would
   silently override the hero's animations for the whole stylesheet. */

.thanks-page {
    min-height: calc(var(--vh) * 100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.thanks-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.thanks-page .aurora-orb {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(216, 159, 113, 0.1) 0%, transparent 70%);
    top: -15%;
    right: -15%;
    filter: blur(80px);
}

.thanks-page .aurora-orb-2 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(216, 159, 113, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -10%;
    left: -10%;
    filter: blur(60px);
    z-index: 1;
    animation: float 18s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

.thanks-content { position: relative; z-index: 2; max-width: 600px; }

.thanks-checkmark {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    animation: scaleIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.thanks-checkmark svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 0;
    animation: drawCheck .6s .5s ease both;
}

@keyframes scaleIn  { 0% { opacity: .01; transform: scale(.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes drawCheck { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }

.thanks-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    font-weight: 700;
    animation: fadeUp .8s .3s ease both;
}

.thanks-label svg { width: 12px; height: 12px; fill: currentColor; }

.thanks-heading {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeUp .8s .5s ease both;
    text-wrap: balance;
}

.thanks-heading > span,
.thanks-heading > strong { display: block; }
.thanks-heading > strong { font-weight: 700; color: var(--accent); }

.thanks-content > p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    animation: fadeUp .8s .7s ease both;
}

.thanks-divider {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 30px auto;
    animation: fadeUp .8s .8s ease both;
}

.thanks-details { animation: fadeUp .8s .9s ease both; }
.thanks-details p { font-size: 1rem; color: var(--text-dim); margin-bottom: 10px; }

.thanks-details .location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: 5px;
}
.thanks-details .location svg { width: 14px; height: 14px; fill: var(--accent); flex-shrink: 0; }

.doctor-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 20px 25px;
    margin: 35px auto 0;
    max-width: 350px;
    text-align: right;
    animation: fadeUp .8s 1.1s ease both;
}

.doctor-badge img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(216, 159, 113, .3);
    flex-shrink: 0;
}

.doctor-badge p:first-child { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.doctor-badge p + p { font-size: .8rem; color: var(--text-muted); }

.thanks-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.thanks-actions .cta-button { width: auto; text-decoration: none; display: inline-block; }

/* The reveal is animation-only: every element's BASE state is already visible, and
   animation-fill-mode:both supplies the hidden `from` during the delay. So if animations
   never run — reduced motion, an extension, a rendering failure — the page still shows
   its content instead of a blank screen. */
@media (prefers-reduced-motion: reduce) {
    .thanks-checkmark, .thanks-label, .thanks-heading, .thanks-content > p,
    .thanks-divider, .thanks-details, .doctor-badge { animation: none; opacity: 1; }
    .thanks-checkmark svg { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 768px) {
    .thanks-heading { font-size: 1.8rem; }
    .thanks-content > p { font-size: 1rem; }
    .doctor-badge { flex-direction: column; text-align: center; padding: 20px; }
    .thanks-actions { flex-direction: column; }
    .thanks-actions .cta-button { width: 100%; text-align: center; }
}
