/* ================================
   SURGICAL FROST - DR. AESTHETIC
   Design System v2.0
   KARE KOSELER - border-radius YOK!
================================ */

/* ================================
   CSS VARIABLES
================================ */
:root {
    --obsidian:       #0B0F14;
    --obsidian-mid:   #151B24;
    --obsidian-light: #1E2530;
    --porcelain:      #F7F5F2;
    --porcelain-mid:  #EDE9E4;
    --cream:          #FAF8F5;
    --accent:         #8B5E83;
    --accent-light:   #A67B9E;
    --accent-soft:    rgba(139, 94, 131, 0.1);
    --teal:           #4A9E8E;
    --teal-light:     #5CB8A6;
    --teal-soft:      rgba(74, 158, 142, 0.1);
    --rose:           #C4707A;
    --rose-light:     #D4868F;
    --text-primary:   #1A1D23;
    --text-secondary: #6B7280;
    --text-muted:     #9CA3AF;
    --white:          #FFFFFF;
    --glass-bg:       rgba(247, 245, 242, 0.85);
    --glass-border:   rgba(247, 245, 242, 0.2);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-expo:   cubic-bezier(0.16, 1, 0.3, 1);
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body:    'Space Grotesk', -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', 'Fira Code', monospace;
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--obsidian);
}

body {
    font-family: var(--font-body);
    background: var(--porcelain);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

::selection {
    background: var(--accent);
    color: var(--white);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--accent); }

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

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

/* ================================
   PRELOADER
================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-scalpel {
    width: 120px;
    height: 2px;
    color: var(--teal);
}

.preloader-scalpel line {
    animation: scalpelDraw 1.5s ease forwards;
}

@keyframes scalpelDraw {
    to { stroke-dashoffset: 0; }
}

.preloader-text {
    display: flex;
    gap: 0.15em;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--porcelain);
}

.preloader-text span {
    opacity: 0;
    transform: translateY(10px);
    animation: preloaderChar 0.4s ease forwards;
}

.preloader-text span:nth-child(1)  { animation-delay: 0.3s; }
.preloader-text span:nth-child(2)  { animation-delay: 0.36s; }
.preloader-text span:nth-child(3)  { animation-delay: 0.42s; }
.preloader-text span:nth-child(4)  { animation-delay: 0.48s; }
.preloader-text span:nth-child(5)  { animation-delay: 0.54s; }
.preloader-text span:nth-child(6)  { animation-delay: 0.6s; }
.preloader-text span:nth-child(7)  { animation-delay: 0.66s; }
.preloader-text span:nth-child(8)  { animation-delay: 0.72s; }
.preloader-text span:nth-child(9)  { animation-delay: 0.78s; }
.preloader-text span:nth-child(10) { animation-delay: 0.84s; }
.preloader-text span:nth-child(11) { animation-delay: 0.9s; }
.preloader-text span:nth-child(12) { animation-delay: 0.96s; }
.preloader-text span:nth-child(13) { animation-delay: 1.02s; }

@keyframes preloaderChar {
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   CUSTOM CURSOR
================================ */
.cursor {
    pointer-events: none;
    position: fixed;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--white);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--transition-spring),
                height 0.3s var(--transition-spring),
                border-color 0.3s;
}

.cursor.hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

.cursor.hover .cursor-dot {
    width: 4px;
    height: 4px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .cursor { display: none; }
}

/* ================================
   GRAIN OVERLAY
================================ */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.03;
    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;
}

/* ================================
   NAVIGATION
================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s var(--transition-smooth);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    color: var(--white);
    transition: color 0.4s;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--white);
    transition: color 0.4s;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal);
    transition: width 0.4s var(--transition-expo);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--obsidian);
    background: var(--porcelain);
    padding: 0.75rem 1.75rem;
    border: none;
    transition: all 0.3s var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--teal);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s ease;
    display: block;
}

/* Nav scrolled */
.nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 4vw;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav.scrolled .nav-logo-icon,
.nav.scrolled .nav-logo-text { color: var(--text-primary); }

.nav.scrolled .nav-links a { color: var(--text-secondary); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--text-primary); }

.nav.scrolled .nav-cta {
    background: var(--obsidian);
    color: var(--porcelain);
}

.nav.scrolled .nav-cta:hover {
    background: var(--teal);
    color: var(--white);
}

.nav.scrolled .nav-toggle span { background: var(--text-primary); }

/* Nav dark (for light bg pages) */
.nav.nav-dark .nav-logo-icon,
.nav.nav-dark .nav-logo-text { color: var(--text-primary); }
.nav.nav-dark .nav-links a { color: var(--text-secondary); }
.nav.nav-dark .nav-links a:hover { color: var(--text-primary); }
.nav.nav-dark .nav-cta { background: var(--obsidian); color: var(--porcelain); }
.nav.nav-dark .nav-toggle span { background: var(--text-primary); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    text-align: center;
}

.mobile-menu-links {
    list-style: none;
}

.mobile-menu-links li {
    overflow: hidden;
}

.mobile-menu-links a {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--porcelain);
    padding: 0.5rem 0;
    transform: translateY(100%);
    transition: transform 0.5s var(--transition-expo), color 0.3s;
}

.mobile-menu.active .mobile-menu-links a {
    transform: translateY(0);
    transition-delay: calc(var(--i, 0) * 0.08s + 0.2s);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: var(--teal); }

.mobile-menu-cta {
    display: inline-block;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--obsidian);
    background: var(--teal);
    padding: 1rem 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--transition-expo) 0.6s, background 0.3s;
}

.mobile-menu.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-cta:hover { background: var(--teal-light); }

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ================================
   HERO
================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--obsidian);
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s var(--transition-smooth), visibility 1.2s var(--transition-smooth);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Full-screen background image */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 8s var(--transition-smooth);
}

.hero-slide.active .hero-slide-bg img {
    transform: scale(1);
}

/* Multi-layer gradient overlay */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(11,15,20,0.35) 0%,
            rgba(11,15,20,0.1) 30%,
            rgba(11,15,20,0.15) 50%,
            rgba(11,15,20,0.65) 80%,
            rgba(11,15,20,0.9) 100%),
        linear-gradient(90deg,
            rgba(11,15,20,0.7) 0%,
            rgba(11,15,20,0.2) 50%,
            transparent 100%),
        linear-gradient(135deg,
            rgba(139,94,131,0.08) 0%,
            transparent 40%,
            rgba(74,158,142,0.06) 100%);
}

/* Content */
.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 8vw 10rem;
    max-width: 760px;
}

/* Eyebrow tag with accent line */
.hero-slide-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s var(--transition-expo) 0.3s;
}

.hero-slide.active .hero-slide-tag {
    opacity: 1;
    transform: translateX(0);
}

.hero-slide-tag-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--teal);
}

.hero-slide-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--teal);
}

/* Title */
.hero-slide-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 400;
    line-height: 1.02;
    color: var(--porcelain);
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-expo) 0.5s;
}

.hero-slide.active .hero-slide-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-title em,
.hero-slide-title i {
    font-style: italic;
    color: var(--accent-light);
}

/* Description */
.hero-slide-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(247, 245, 242, 0.65);
    max-width: 480px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s var(--transition-expo) 0.7s;
}

.hero-slide.active .hero-slide-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Actions */
.hero-slide-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--transition-expo) 0.9s;
}

.hero-slide.active .hero-slide-actions {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    padding: 1.1rem 2.25rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.hero-slide-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
}

.hero-slide-cta:hover::before { opacity: 1; }

.hero-slide-cta span,
.hero-slide-cta svg { position: relative; z-index: 1; }

.hero-slide-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.hero-slide-cta:hover svg {
    transform: translateX(4px);
}

.hero-slide-cta-ghost {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(247, 245, 242, 0.5);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.hero-slide-cta-ghost::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal);
    transition: width 0.4s var(--transition-expo);
}

.hero-slide-cta-ghost:hover { color: var(--porcelain); }
.hero-slide-cta-ghost:hover::after { width: 100%; }

/* Decorative diamond */
.hero-deco {
    position: absolute;
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.hero-deco-diamond {
    width: 180px;
    height: 180px;
    color: rgba(247, 245, 242, 0.04);
    animation: heroDecoPulse 8s ease-in-out infinite;
}

@keyframes heroDecoPulse {
    0%, 100% { opacity: 0.4; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(5deg); }
}

/* Hero Nav */
.hero-nav {
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 20;
}

.hero-nav-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-nav-dot {
    width: 3px;
    height: 40px;
    background: rgba(247, 245, 242, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.hero-nav-dot:hover { background: rgba(247, 245, 242, 0.3); }

.hero-nav-dot-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--teal);
}

.hero-nav-dot.active .hero-nav-dot-fill {
    animation: progressFillV 6s linear forwards;
}

@keyframes progressFillV {
    from { height: 0%; }
    to { height: 100%; }
}

.hero-nav-counter {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(247, 245, 242, 0.4);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.hero-nav-counter span { color: var(--teal); font-weight: 500; }

/* Hero Stats Bar */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 20, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(247, 245, 242, 0.06);
    z-index: 15;
}

.hero-stats-inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-stat {
    flex: 1;
    padding: 1.75rem 2.5rem;
    border-right: 1px solid rgba(247, 245, 242, 0.06);
    text-align: center;
    position: relative;
    transition: background 0.3s;
}

.hero-stat:hover { background: rgba(247, 245, 242, 0.03); }
.hero-stat:last-child { border-right: none; }

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--porcelain);
    line-height: 1;
}

.hero-stat-value span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--teal);
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(247, 245, 242, 0.4);
    margin-top: 0.5rem;
}

/* ================================
   SECTION COMMON
================================ */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--teal);
    display: block;
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
}

.section-title em,
.section-title i {
    font-style: italic;
    color: var(--accent);
}

/* ================================
   PHILOSOPHY
================================ */
.philosophy {
    padding: 10rem 4vw;
    background: var(--porcelain);
    position: relative;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.philosophy-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.25rem;
}

.philosophy-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.philosophy-title em { font-style: italic; color: var(--accent); }

.philosophy-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 2;
    color: var(--text-secondary);
}

.philosophy-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    height: 550px;
}

.philosophy-img {
    overflow: hidden;
    position: relative;
}

.philosophy-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
}

.philosophy-img:hover img { transform: scale(1.05); }

.philosophy-img-large { grid-row: span 2; }

.philosophy-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(11,15,20,0.8), transparent);
    color: var(--porcelain);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s var(--transition-smooth);
}

.philosophy-img:hover .philosophy-img-overlay {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-img-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
}

.philosophy-img-overlay span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* ================================
   PROCEDURES (Horizontal Scroll)
================================ */
.procedures {
    padding: 8rem 0;
    background: var(--cream);
    overflow: hidden;
}

.procedures-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 4vw;
}

.procedures-track {
    display: flex;
    gap: 2rem;
    padding: 0 4vw;
    cursor: grab;
}

.procedures-track:active { cursor: grabbing; }

.procedure-card {
    flex: 0 0 380px;
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--obsidian);
    transition: transform 0.4s var(--transition-smooth);
}

.procedure-card:hover { transform: translateY(-8px); }

.procedure-card-image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: grayscale(40%) brightness(0.7);
    transition: filter 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.procedure-card:hover .procedure-card-image {
    filter: grayscale(0%) brightness(0.8);
    transform: scale(1.05);
}

.procedure-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(11,15,20,0.95) 100%);
}

.procedure-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--porcelain);
}

.procedure-card-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}

.procedure-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.procedure-card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1rem;
}

.procedure-card-description {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(247, 245, 242, 0.7);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition-smooth) 0.05s;
    margin-bottom: 1.25rem;
}

.procedure-card:hover .procedure-card-description {
    opacity: 1;
    transform: translateY(0);
}

.procedure-card-meta {
    display: flex;
    gap: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition-smooth) 0.1s;
}

.procedure-card:hover .procedure-card-meta {
    opacity: 1;
    transform: translateY(0);
}

.procedure-meta-item span:first-child {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--porcelain);
    display: block;
}

.procedure-meta-item span:last-child {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 245, 242, 0.4);
}

/* ================================
   EVOLUTION (Scalpel Slider)
================================ */
.evolution {
    padding: 8rem 4vw;
    background: var(--obsidian);
    position: relative;
    overflow: hidden;
}

.evolution::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(139,94,131,0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(74,158,142,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.evolution-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.evolution-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: end;
}

.evolution-header .section-title { color: var(--porcelain); }

.evolution-header p {
    font-size: 1rem;
    color: rgba(247, 245, 242, 0.5);
    line-height: 1.8;
}

/* Scalpel Slider */
.scalpel-wrapper { position: relative; margin-bottom: 2rem; }

.scalpel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #080a0d;
    cursor: ew-resize;
}

.scalpel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.scalpel-image-after {
    clip-path: inset(0 50% 0 0);
}

.scalpel-blade {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.scalpel-blade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--teal), var(--porcelain) 30%, var(--porcelain) 70%, var(--teal));
    box-shadow: 0 0 15px rgba(74,158,142,0.4), 0 0 30px rgba(74,158,142,0.2);
}

.scalpel-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.scalpel-handle-grip {
    width: 52px;
    height: 52px;
    background: var(--obsidian);
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: handlePulse 3s ease-in-out infinite;
}

@keyframes handlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,158,142,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(74,158,142,0); }
}

.scalpel-handle-grip svg {
    width: 22px;
    height: 22px;
    color: var(--teal);
}

.scalpel-handle-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--obsidian);
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
}

.scalpel-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.scalpel-label {
    position: absolute;
    top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    background: rgba(11, 15, 20, 0.8);
    backdrop-filter: blur(10px);
}

.scalpel-label-before {
    left: 1.5rem;
    color: rgba(247, 245, 242, 0.5);
    border-left: 2px solid rgba(247, 245, 242, 0.2);
}

.scalpel-label-after {
    right: 1.5rem;
    color: var(--teal);
    border-right: 2px solid var(--teal);
}

.scalpel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(11,15,20,0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

.scalpel-info-item { display: flex; flex-direction: column; gap: 0.25rem; }

.scalpel-info-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
}

.scalpel-info-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--porcelain);
}

.scalpel-progress {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 6;
    pointer-events: none;
}

.scalpel-progress-bar {
    width: 180px;
    height: 2px;
    background: rgba(247, 245, 242, 0.15);
    position: relative;
    overflow: hidden;
}

.scalpel-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: var(--teal);
    transition: width 0.1s ease;
}

.scalpel-progress-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--teal);
    min-width: 3ch;
}

.scalpel-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 25;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scalpel-hint.hidden { opacity: 0; }

.scalpel-hint-arrow {
    animation: hintBounce 1.5s ease-in-out infinite;
}

.scalpel-hint-arrow:first-child { animation-direction: reverse; }

.scalpel-hint-arrow svg {
    width: 28px;
    height: 28px;
    color: var(--teal);
}

@keyframes hintBounce {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(8px); opacity: 0.4; }
}

/* Evolution Cases */
.evolution-cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(247, 245, 242, 0.08);
}

.evolution-case {
    padding: 1.25rem 1.5rem;
    background: var(--obsidian);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.evolution-case::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}

.evolution-case.active::before,
.evolution-case:hover::before { transform: scaleX(1); }

.evolution-case-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--porcelain);
    margin-bottom: 0.2rem;
}

.evolution-case-meta {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(247, 245, 242, 0.35);
}

/* ================================
   CLINIC
================================ */
.clinic {
    padding: 8rem 4vw;
    background: var(--porcelain);
}

.clinic-container {
    max-width: 1600px;
    margin: 0 auto;
}

.clinic-header {
    text-align: center;
    margin-bottom: 4rem;
}

.clinic-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 75vh;
    min-height: 500px;
}

.clinic-image {
    position: relative;
    overflow: hidden;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
}

.clinic-image:hover img { transform: scale(1.04); }

.clinic-image-main { grid-row: span 2; }

.clinic-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(11,15,20,0.85), transparent);
    color: var(--porcelain);
    transform: translateY(100%);
    transition: transform 0.5s var(--transition-smooth);
}

.clinic-image:hover .clinic-image-overlay { transform: translateY(0); }

.clinic-image-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.clinic-image-overlay p {
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.6;
}

.clinic-features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.clinic-feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--cream);
    transition: all 0.4s var(--transition-smooth);
}

.clinic-feature:hover {
    background: var(--white);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.clinic-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-soft);
    color: var(--teal);
}

.clinic-feature-icon svg { width: 24px; height: 24px; }

.clinic-feature h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.clinic-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================
   TEAM
================================ */
.team {
    padding: 8rem 4vw;
    background: var(--porcelain-mid);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.team-member {
    text-align: center;
    transition: transform 0.4s var(--transition-smooth);
}

.team-member:hover { transform: translateY(-6px); }

.team-member-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.team-member:hover .team-member-image img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.team-member-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(11,15,20,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.team-member:hover .team-member-image::after { opacity: 1; }

.team-member-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.team-member-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ================================
   TESTIMONIALS (Marquee)
================================ */
.testimonials {
    padding: 6rem 0;
    background: var(--obsidian);
    overflow: hidden;
    position: relative;
}

.testimonials-header {
    text-align: center;
    padding: 0 4vw;
    margin-bottom: 3rem;
}

.testimonials-header .section-title { color: var(--porcelain); }

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

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

.marquee-row + .marquee-row { margin-top: 1.5rem; }

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

.testimonial-card {
    flex: 0 0 420px;
    padding: 2rem;
    background: var(--obsidian-mid);
    border: 1px solid rgba(247, 245, 242, 0.05);
    transition: border-color 0.3s;
}

.testimonial-card:hover { border-color: rgba(247, 245, 242, 0.15); }

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: rgba(247, 245, 242, 0.8);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author-image {
    width: 44px;
    height: 44px;
    overflow: hidden;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.testimonial-author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--porcelain);
}

.testimonial-author-procedure {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--teal);
}

/* ================================
   CONTACT
================================ */
.contact {
    padding: 8rem 4vw;
    background: var(--porcelain);
    position: relative;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-soft);
    color: var(--teal);
    flex-shrink: 0;
}

.contact-detail-icon svg { width: 18px; height: 18px; }

.contact-detail-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form-wrapper { position: relative; }

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    background: var(--accent-soft);
    z-index: 0;
}

.contact-form {
    position: relative;
    background: var(--white);
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group.full { grid-column: span 2; }

.form-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--cream);
    border: 1.5px solid transparent;
    outline: none;
    transition: all 0.3s var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--teal);
    background: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.form-submit {
    width: 100%;
    padding: 1.1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--obsidian);
    border: 1.5px solid var(--obsidian);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    margin-top: 0.75rem;
}

.form-submit:hover {
    background: var(--teal);
    border-color: var(--teal);
}

/* Form states */
.form-input.error,
.form-textarea.error,
.form-select.error { border-color: var(--rose); background: rgba(196,112,122,0.05); }

.form-input.success,
.form-textarea.success,
.form-select.success { border-color: var(--teal); }

.form-error-message {
    font-size: 0.7rem;
    color: var(--rose);
    margin-top: 0.2rem;
}

/* Flash messages */
.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.flash-success {
    background: var(--teal-soft);
    color: var(--teal);
    border-left: 3px solid var(--teal);
}

.flash-error {
    background: rgba(196,112,122,0.1);
    color: var(--rose);
    border-left: 3px solid var(--rose);
}

/* ================================
   FOOTER
================================ */
.footer {
    padding: 5rem 4vw 2.5rem;
    background: var(--obsidian);
    color: var(--porcelain);
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(247, 245, 242, 0.08);
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(247, 245, 242, 0.5);
    line-height: 1.8;
    margin-top: 0.75rem;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--porcelain);
    transition: color 0.3s;
}

.footer-logo:hover { color: var(--teal); }

.footer-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.footer-column h4 {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.25rem;
}

.footer-column ul { list-style: none; }

.footer-column ul li { margin-bottom: 0.6rem; }

.footer-column ul a {
    font-size: 0.85rem;
    color: rgba(247, 245, 242, 0.5);
    transition: color 0.3s;
}

.footer-column ul a:hover { color: var(--porcelain); }

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

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(247, 245, 242, 0.3);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 245, 242, 0.04);
    color: rgba(247, 245, 242, 0.6);
    transition: all 0.3s var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--teal);
    color: var(--white);
}

.footer-social svg { width: 16px; height: 16px; }

/* ================================
   FLOATING CTA
================================ */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.floating-cta-text {
    background: var(--white);
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s var(--transition-smooth);
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.floating-cta:hover .floating-cta-text {
    opacity: 1;
    transform: translateX(0);
}

.floating-cta-button {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 8px 30px rgba(139,94,131,0.35);
}

.floating-cta-button:hover {
    background: var(--obsidian);
    transform: scale(1.08);
}

.floating-cta-button svg { width: 22px; height: 22px; }

/* ================================
   ANIMATIONS (Reveal)
================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ================================
   PAGE HEADER (Inner pages)
================================ */
.page-header {
    padding: 13rem 4vw 5rem;
    background: var(--obsidian);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-header[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(11,15,20,0.5) 0%,
            rgba(11,15,20,0.3) 40%,
            rgba(11,15,20,0.7) 100%),
        linear-gradient(135deg,
            rgba(139,94,131,0.1) 0%,
            transparent 50%,
            rgba(74,158,142,0.08) 100%);
    z-index: 1;
}

.page-header > * { position: relative; z-index: 2; }

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    z-index: 3;
}

.page-header-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 400;
    color: var(--porcelain);
    margin-bottom: 0.75rem;
}

.page-header-subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--teal);
}

/* ================================
   BREADCRUMB
================================ */
.breadcrumb {
    padding: 1.25rem 4vw;
    background: var(--cream);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb-list a {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.breadcrumb-list a:hover { color: var(--teal); }

.breadcrumb-list span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* ================================
   ABOUT PAGE
================================ */
.about-intro {
    padding: 6rem 4vw;
    background: var(--porcelain);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-intro-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-intro-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about-intro-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Values */
.about-values {
    padding: 6rem 4vw;
    background: var(--cream);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-value-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border-left: 3px solid var(--teal);
    transition: all 0.4s var(--transition-smooth);
}

.about-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.about-value-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.about-value-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Stats section (reusable) */
.stats-section {
    padding: 4rem 4vw;
    background: var(--obsidian);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item-value {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--porcelain);
    line-height: 1;
}

.stat-item-value span {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--teal);
}

.stat-item-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(247, 245, 242, 0.4);
    margin-top: 0.5rem;
}

/* Timeline */
.about-timeline {
    padding: 6rem 4vw;
    background: var(--porcelain);
}

.timeline-list {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--porcelain-mid);
}

.timeline-item {
    padding-left: 3rem;
    padding-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--teal);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================
   SERVICES PAGE
================================ */
.services-grid {
    padding: 5rem 4vw;
    background: var(--porcelain);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--cream);
    transition: all 0.4s var(--transition-smooth);
}

.service-item:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.service-item-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.service-item:hover .service-item-image img { transform: scale(1.06); }

.service-item-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.service-item-content .service-subtitle {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    display: block;
    margin-bottom: 0.75rem;
}

.service-item-content p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-item-meta {
    display: flex;
    gap: 1.5rem;
}

.service-item-meta span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Services process */
.services-process {
    padding: 5rem 4vw;
    background: var(--cream);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================
   GALLERY PAGE
================================ */
.gallery-page {
    padding: 5rem 4vw;
    background: var(--cream);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 0.6rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--obsidian);
    border-color: var(--obsidian);
    color: var(--porcelain);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(11,15,20,0.85), transparent);
    color: var(--porcelain);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s var(--transition-smooth);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.gallery-item-overlay span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--teal);
}

/* Before/After section */
.gallery-comparison {
    padding: 5rem 4vw;
    background: var(--porcelain);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.comparison-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.comparison-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.comparison-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-img-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--porcelain);
    background: rgba(11, 15, 20, 0.7);
    padding: 0.3rem 0.6rem;
    backdrop-filter: blur(5px);
}

/* ================================
   TEAM PAGE (Extended)
================================ */
.team-featured {
    padding: 5rem 4vw;
    background: var(--porcelain);
}

.team-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.team-featured-image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-featured-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.team-featured-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.team-featured-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.team-featured-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-featured-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    line-height: 1;
}

.team-featured-stat-value span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--teal);
}

.team-featured-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Team grid section */
.team-grid-section {
    padding: 5rem 4vw;
    background: var(--cream);
}

/* ================================
   CONTACT PAGE (Extended)
================================ */
.contact-page-map {
    height: 400px;
    background: var(--obsidian-mid);
}

.contact-page-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) contrast(1.1);
}

/* CTA Section */
.cta-section {
    padding: 6rem 4vw;
    background: var(--obsidian);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.cta-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(11,15,20,0.75) 0%,
            rgba(11,15,20,0.6) 50%,
            rgba(11,15,20,0.8) 100%);
    z-index: 0;
}

.cta-section > * { position: relative; z-index: 1; }

.cta-section .section-title { color: var(--porcelain); margin-bottom: 1.5rem; }

.cta-section p {
    font-size: 1rem;
    color: rgba(247, 245, 242, 0.5);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--obsidian);
    background: var(--teal);
    padding: 1rem 2.5rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
}

.cta-button svg { width: 16px; height: 16px; }

/* ================================
   LIGHTBOX
================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 20, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 1.5rem;
    color: var(--porcelain);
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-caption {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(247, 245, 242, 0.6);
    margin-top: 0.75rem;
}

/* ================================
   LOADING SPINNER
================================ */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   LAZY LOADING
================================ */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-image.loaded { opacity: 1; }

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1200px) {
    .hero-slide-content { padding: 0 6vw 10rem; }
    .hero-deco-diamond { width: 140px; height: 140px; }
    .procedures-track { gap: 1.5rem; }
    .procedure-card { flex: 0 0 340px; height: 480px; }
}

@media (max-width: 1024px) {
    .hero-slide-content {
        padding: 0 5vw 10rem;
        max-width: 100%;
    }

    .hero-slide-title { font-size: clamp(2.5rem, 5.5vw, 4rem); }

    .hero-deco { display: none; }

    .hero-nav { right: 3vw; }
    .hero-nav-dot { height: 30px; }

    .hero-stats-inner { flex-wrap: wrap; }
    .hero-stat { flex: 1 1 50%; padding: 1.25rem; }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .philosophy-image-grid { height: 400px; }

    .evolution-header { grid-template-columns: 1fr; gap: 2rem; }
    .evolution-cases { grid-template-columns: repeat(2, 1fr); }

    .clinic-showcase { grid-template-columns: 1fr; height: auto; }
    .clinic-image-main { grid-row: span 1; aspect-ratio: 16/9; }
    .clinic-features { grid-template-columns: repeat(2, 1fr); }

    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-container { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

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

    .about-intro-grid { grid-template-columns: 1fr; gap: 3rem; }

    .about-values-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .team-featured-grid { grid-template-columns: 1fr; gap: 3rem; }

    .process-steps { grid-template-columns: repeat(2, 1fr); }

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

    .team-featured-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta { display: none; }

    .nav-toggle { display: flex; }

    .hero-slide-content { padding: 0 5vw 9rem; }
    .hero-slide-title { font-size: clamp(2rem, 7vw, 3.5rem); }
    .hero-slide-desc { font-size: 0.9rem; max-width: 100%; }
    .hero-slide-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-slide-tag-line { width: 24px; }

    .hero-nav {
        right: 3vw;
        top: auto;
        bottom: 12rem;
        transform: none;
        flex-direction: row;
    }

    .hero-nav-progress { flex-direction: row; gap: 0.5rem; }

    .hero-nav-dot {
        width: 30px;
        height: 3px;
    }

    .hero-nav-dot-fill {
        width: 0%;
        height: 100%;
    }

    .hero-nav-dot.active .hero-nav-dot-fill {
        animation: progressFillH 6s linear forwards;
    }

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

    .hero-nav-counter {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .hero-stats-bar { position: relative; }
    .hero-stat { flex: 1 1 50%; padding: 1rem; }
    .hero-stat-value { font-size: 1.75rem; }

    .procedure-card { flex: 0 0 300px; height: 440px; }

    .evolution-cases { grid-template-columns: 1fr; }

    .clinic-features { grid-template-columns: 1fr; }

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

    .form-row { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }

    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; }

    .floating-cta-text { display: none; }

    .scalpel-container { aspect-ratio: 4/3; }
    .scalpel-handle-grip { width: 44px; height: 44px; }
    .scalpel-progress { display: none; }

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

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

    .process-steps { grid-template-columns: 1fr; }

    .comparison-item { grid-template-columns: 1fr; }

    .team-featured-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .hero-slide-content { padding: 0 5vw 8rem; }
    .hero-slide-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    .hero-nav-dot { width: 22px; }
    .hero-slide-cta-ghost { display: none; }
    .hero-stat-label { font-size: 0.55rem; }

    .contact-form { padding: 1.5rem; }
    .contact-form-wrapper::before { display: none; }

    .procedure-card { flex: 0 0 280px; height: 400px; }

    .testimonial-card { flex: 0 0 300px; }
}
