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

/* ─── SwiftUI / iOS Design Tokens ───────────────────────────────── */
:root {
    /* System Backgrounds — iOS Dark */
    --sys-bg:         #000000;
    --sys-bg-2:       #1C1C1E;
    --sys-bg-3:       #2C2C2E;
    --sys-bg-4:       #3A3A3C;

    /* Labels */
    --label:          #FFFFFF;
    --label-2:        rgba(235, 235, 245, 0.82);
    --label-3:        rgba(235, 235, 245, 0.48);
    --label-4:        rgba(235, 235, 245, 0.22);

    /* Fills */
    --fill:           rgba(120, 120, 128, 0.36);
    --fill-2:         rgba(120, 120, 128, 0.32);
    --fill-3:         rgba(118, 118, 128, 0.24);
    --fill-4:         rgba(116, 116, 128, 0.18);

    /* Separator */
    --sep:            rgba(84, 84, 88, 0.65);
    --sep-o:          #38383A;

    /* Accent — metalik beyaz alaşım */
    --accent:         #C8CAD8;
    --accent-dim:     rgba(200, 202, 216, 0.16);
    --accent-glass:   rgba(200, 202, 216, 0.10);

    /* SwiftUI Materials — dark mode exact values */
    --mat-ultra-thin: rgba(40, 40, 42, 0.50);
    --mat-thin:       rgba(32, 32, 34, 0.65);
    --mat-reg:        rgba(28, 28, 30, 0.76);
    --mat-thick:      rgba(24, 24, 26, 0.90);

    /* Glass — frosted white surface */
    --glass:          rgba(255, 255, 255, 0.07);
    --glass-hi:       rgba(255, 255, 255, 0.11);
    --glass-border:   rgba(255, 255, 255, 0.14);
    --glass-shine:    rgba(255, 255, 255, 0.08); /* top-edge highlight */

    /* Blur */
    --blur-xs:  blur(10px);
    --blur-sm:  blur(20px) saturate(180%);
    --blur:     blur(40px) saturate(180%);
    --blur-lg:  blur(60px) saturate(200%);
    --blur-xl:  blur(80px) saturate(200%);

    /* Radius — iOS scale */
    --r-xs:     6px;
    --r-sm:     10px;
    --r-md:     13px;
    --r-lg:     16px;
    --r-xl:     20px;
    --r-2xl:    28px;
    --r-full:   999px;

    /* Transition */
    --ease:     0.26s cubic-bezier(0.4, 0, 0.2, 1);
    --spring:   0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* SF Pro font stack */
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
            'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--sys-bg);
    color: var(--label);
    font-family: var(--font);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fixed ambient gradient on its own composited layer — no scroll repaint */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%,
            rgba(0, 122, 255, 0.05) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 85% 90%,
            rgba(80, 80, 100, 0.04) 0%, transparent 55%);
    transform: translateZ(0);
    will-change: transform;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }

/* ─── Utility ────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--label);
    margin-bottom: 40px;
    line-height: 1.1;
}

/* ─── Glass mixin ────────────────────────────────────────────────── */
/* Reusable frosted glass surface */
.glass-surface {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 0.5px solid var(--glass-border);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 var(--glass-shine);
}

/* ─── Navbar — iOS Navigation Bar with glass ─────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 20px 0;
    /* Always glass — even before scroll */
    background: var(--mat-ultra-thin);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border-bottom: 0.5px solid transparent;
    transition: background var(--ease), padding var(--ease), border-color var(--ease);
}

.navbar.scrolled {
    background: var(--mat-reg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 14px 0;
    border-bottom-color: var(--sep);
}

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

.nav-logo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--label);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 6px;
}

.nav-links a {
    display: block;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--label-2);
    border-radius: var(--r-full);
    transition: color var(--ease), background var(--ease);
}

.nav-links a:hover {
    color: var(--label);
    background: var(--fill-3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--label-2);
    border-radius: var(--r-full);
    transition: transform var(--ease), opacity var(--ease), background var(--ease);
}

/* Hamburger → X animasyonu */
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(6.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-6.5px); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* GPU-composited video — eliminates flicker */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--sys-bg);
    /* Force GPU layer — fixes titreme */
    transform: translateZ(0);
    will-change: contents;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}


.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--label);
    line-height: 0.95;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.35s forwards;
}

/* Tagline — Cormorant Garamond karakter animasyonu */
.hero-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--label);
    margin-bottom: 12px;
    min-height: 1.4em;
    line-height: 1.3;
}

.hero-tagline .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: charReveal 0.35s ease forwards;
}

.hero-tagline .char-space { display: inline-block; width: 0.28em; }

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

.hero-subtitle {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--label-3);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(218, 220, 228, 0.88) 60%,
        rgba(200, 202, 212, 0.84) 100%
    );
    color: #0a0a0e;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--r-full);
    border: 0.5px solid rgba(255, 255, 255, 0.70);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow var(--ease), transform var(--ease), background var(--ease);
    opacity: 0;
    animation: fadeUp 0.7s ease 0.65s forwards;
}

.hero-cta:hover {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(228, 230, 238, 0.94) 60%,
        rgba(210, 212, 222, 0.90) 100%
    );
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.scroll-line {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    width: 1.5px; height: 52px;
    overflow: hidden;
    z-index: 2;
}

.scroll-line::after {
    content: '';
    display: block;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--label-3));
    animation: drip 2s ease-in-out infinite;
}

@keyframes drip {
    0%   { transform: translateY(-100%); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Gallery ────────────────────────────────────────────────────── */
.gallery {
    padding: 100px 0;
    background: var(--sys-bg);
}

/* Gallery grid — listing layout */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Listing card */
.gallery-item {
    display: flex;
    flex-direction: row;
    height: 260px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 var(--glass-shine);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

/* Image side */
.listing-img-wrap {
    width: 42%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--sys-bg-2);
}

/* shimmer */
.listing-img-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        110deg,
        var(--sys-bg-2) 0%,
        var(--sys-bg-3) 45%,
        var(--sys-bg-2) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.listing-img-wrap.img-ready::before { opacity: 0; pointer-events: none; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Collage grid */
.collage {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 2px;
}

.collage.count-1 { grid-template-columns: 1fr; }
.collage.count-2 { grid-template-columns: 1fr 1fr; }
.collage.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.count-3 img:first-child { grid-row: span 2; }
.collage.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.listing-img-wrap img {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.55s ease;
}

.listing-img-wrap img.loaded { opacity: 1; }
.gallery-item:hover .listing-img-wrap img { transform: scale(1.04); }

/* Info side */
.listing-body {
    flex: 1;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.listing-num {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.listing-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--label);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--label-3);
    letter-spacing: -0.01em;
    margin: 0;
}

.listing-loc svg {
    width: 13px; height: 13px;
    flex-shrink: 0;
    color: var(--accent);
}

.listing-sep {
    height: 0.5px;
    background: var(--sep);
    flex-shrink: 0;
}

/* Feature grid */
.listing-feats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
}

.feat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feat-val {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--label);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feat-key {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--label-3);
}

/* Footer row */
.listing-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.listing-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 0.5px solid rgba(200, 202, 216, 0.28);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: var(--font);
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease);
}

.listing-cta:hover {
    background: rgba(200, 202, 216, 0.22);
    border-color: rgba(200, 202, 216, 0.40);
}

.listing-tools {
    display: flex;
    gap: 5px;
}

.tool-tag {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--label-3);
    background: var(--fill-3);
    padding: 3px 8px;
    border-radius: var(--r-sm);
    white-space: nowrap;
}

.gallery-item.hide {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* ─── About ──────────────────────────────────────────────────────── */
.about {
    padding: 100px 0;
    background: var(--sys-bg-2);
    border-top: 0.5px solid var(--sep-o);
    border-bottom: 0.5px solid var(--sep-o);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 1.0625rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--label-2);
    line-height: 1.72;
    margin-bottom: 18px;
}

.pipeline-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--label-3);
    margin-bottom: 10px;
    padding: 0 4px;
}

/* iOS grouped inset list */
.tool-list {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 var(--glass-shine);
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    position: relative;
    transition: background var(--ease);
}

.tool-item + .tool-item {
    border-top: 0.5px solid var(--sep);
}

.tool-item:hover { background: var(--fill-4); }

/* SF Symbol–style icon badge */
.tool-mark {
    width: 36px; height: 36px;
    background: var(--accent-glass);
    backdrop-filter: var(--blur-xs);
    -webkit-backdrop-filter: var(--blur-xs);
    border: 0.5px solid rgba(200, 202, 216, 0.28);
    border-radius: var(--r-md);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-mark::after {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(200, 202, 216, 0.35);
}

.tool-info strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--label);
    margin-bottom: 2px;
}

.tool-info p {
    font-size: 0.8125rem;
    color: var(--label-3);
    letter-spacing: -0.005em;
    line-height: 1.4;
}

/* ─── Services ───────────────────────────────────────────────────── */
.services {
    padding: 100px 0;
    background: var(--sys-bg);
}

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

/* Full glass card — SwiftUI .ultraThinMaterial */
.service-card {
    padding: 28px 24px 32px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--r-2xl);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 var(--glass-shine);
    transition: background var(--ease), transform var(--ease),
                box-shadow var(--ease), border-color var(--ease);
}

/* Top edge highlight — glass refraction */
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 0.5px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 100%);
    border-radius: var(--r-full);
}

.service-card:hover {
    background: var(--glass-hi);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translateY(-5px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Numbered badge */
.service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--accent-dim);
    border: 0.5px solid rgba(200, 202, 216, 0.28);
    border-radius: var(--r-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    backdrop-filter: var(--blur-xs);
    -webkit-backdrop-filter: var(--blur-xs);
}

.service-card h3 {
    font-size: 1.075rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--label);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--label-2);
    line-height: 1.65;
}

/* ─── Contact ────────────────────────────────────────────────────── */
.contact {
    padding: 120px 0;
    background: var(--sys-bg-2);
    border-top: 0.5px solid var(--sep-o);
    text-align: center;
}

.contact-sub {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--label-2);
    margin-top: -20px;
    margin-bottom: 44px;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: var(--font);
    cursor: pointer;
    border-radius: var(--r-full);
    border: none;
    transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn:hover { opacity: 0.84; transform: scale(0.98); }

.btn-fiverr {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(210, 212, 224, 0.85) 100%
    );
    color: #0a0a0e;
    border: 0.5px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.btn-fiverr:hover {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(220, 222, 234, 0.92) 100%
    );
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-instagram {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: #fff;
    box-shadow: 0 4px 20px rgba(193, 53, 132, 0.35);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
    padding: 24px;
    text-align: center;
    border-top: 0.5px solid var(--sep-o);
    background: var(--sys-bg-2);
    color: var(--label-3);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ─── Lightbox ───────────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lb-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: var(--blur-xl);
    -webkit-backdrop-filter: var(--blur-xl);
}

.lb-stage {
    position: relative; z-index: 1;
    max-width: 92vw; max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.93);
    transition: transform var(--spring);
}

.lightbox.open .lb-stage { transform: scale(1); }

.lb-img {
    display: block;
    max-width: 92vw; max-height: 88vh;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: var(--r-xl);
    border: 0.5px solid var(--glass-border);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 var(--glass-shine);
    transition: opacity 0.18s ease;
}

.lb-img.switching { opacity: 0; }

.lb-close {
    position: absolute;
    top: 20px; right: 20px; z-index: 2;
    background: var(--fill);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 0.5px solid var(--glass-border);
    color: var(--label);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), transform var(--ease);
    box-shadow: inset 0 1px 0 var(--glass-shine);
}

.lb-close:hover { background: var(--fill-2); transform: scale(1.1); }

.lb-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 2;
    background: var(--fill);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 0.5px solid var(--glass-border);
    color: var(--label);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), transform var(--ease);
    user-select: none;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 var(--glass-shine);
}

.lb-arrow:hover { background: var(--glass-hi); }
.lb-prev { left: 20px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next { right: 20px; }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }
.lb-arrow.hidden { opacity: 0; pointer-events: none; }

.lb-counter {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--label-2);
    background: var(--fill);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 0.5px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: var(--r-full);
    box-shadow: inset 0 1px 0 var(--glass-shine);
}

/* ─── Loader ─────────────────────────────────────────────────────── */
.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--sys-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--label);
    opacity: 0;
    animation: fadeUp 0.7s ease 0.15s forwards;
}

.loader-bar {
    width: 100px;
    height: 1.5px;
    background: var(--fill-3);
    border-radius: var(--r-full);
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.35s forwards;
}

.loader-fill {
    height: 100%;
    width: 45%;
    border-radius: var(--r-full);
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 50%,
        transparent 100%);
    animation: loaderSlide 1.1s cubic-bezier(0.4, 0, 0.6, 1) 0.5s infinite;
}

@keyframes loaderSlide {
    0%   { transform: translateX(-220%); }
    100% { transform: translateX(320%); }
}

/* ─── Scroll-Reveal ──────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Stats ──────────────────────────────────────────────────────── */
.stats {
    padding: 72px 0;
    background: var(--sys-bg);
    border-bottom: 0.5px solid var(--sep-o);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--sep-o);
    border: 0.5px solid var(--sep-o);
    border-radius: var(--r-2xl);
    overflow: hidden;
    gap: 0.5px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 var(--glass-shine);
}

.stat-item {
    padding: 36px 20px 28px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    text-align: center;
    transition: background var(--ease);
}

.stat-item:hover { background: var(--glass-hi); }

.stat-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.stat-num {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--label);
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--label-3);
    text-transform: uppercase;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .about-grid    { grid-template-columns: 1fr; gap: 48px; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    /* ── Layout ─────────────────────────────────────────── */
    .gallery-item       { flex-direction: column; min-height: unset; }
    .listing-img-wrap   { width: 100%; height: 210px; }
    .listing-body       { padding: 16px 18px; gap: 8px; }
    .listing-title      { font-size: 1rem; white-space: normal; }
    .listing-footer     { flex-wrap: wrap; gap: 8px; }
    .services-grid   { grid-template-columns: 1fr; }
    .service-card    { padding: 24px 20px 28px; }
    .stats-grid      { grid-template-columns: repeat(2, 1fr); }
    .stat-item       { padding: 28px 16px 22px; }
    .about-grid      { gap: 32px; }
    .hero-title      { letter-spacing: -0.03em; }
    .hero            { min-height: 100svh; }
    .contact         { padding: 80px 0; }
    .section-title   { margin-bottom: 28px; }

    /* ── Stats sayı boyutu — 375px'te okunabilir ────────── */
    .stat-num    { font-size: clamp(1.6rem, 7vw, 3.25rem); }
    .stat-suffix { font-size: clamp(1rem, 5vw, 2rem); }

    /* ── Touch target'lar (min 44px) ────────────────────── */
    .btn         { padding: 16px 36px; }
    .lb-close    { width: 44px; height: 44px; font-size: 1rem; }

    /* ── Navbar ─────────────────────────────────────────── */
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--mat-thick);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        border-top: 0.5px solid var(--sep);
        flex-direction: column;
        padding: 12px 16px 20px;
        gap: 2px;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 12px 16px;
        border-radius: var(--r-md);
    }
}

/* ── 400px ince ayar (iPhone SE / küçük ekranlar) ───────────── */
@media (max-width: 400px) {
    .stat-label  { font-size: 0.7rem; }
    .contact-sub { font-size: 0.875rem; }
}
