/* ============================================================
   Samet Keçici · Portfolio · main.css
   Apple keynote — siyah↔beyaz flip · cinematic scroll · premium
============================================================ */
:root {
    --black: #000;
    --bg: #0a0a0c;
    --white: #fafafa;
    --paper: #f5f5f7;
    --gray: #86868b;
    --gray-2: #1d1d1f;
    --gray-3: #424245;
    --line-d: rgba(255,255,255,.08);
    --line-l: rgba(0,0,0,.08);
    --accent: #ffd60a;
    --accent2: #ff9500;
    --blue: #0a84ff;
    --red: #ff453a;
    --green: #30d158;
    --grad-d: linear-gradient(135deg, #ffd60a, #ff9500);
    --grad-l: linear-gradient(135deg, #1d1d1f, #86868b);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-2: cubic-bezier(.7, 0, .3, 1);
    --ff: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --maxw: 1280px;
    --pad: 32px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
    background: var(--black); color: var(--white);
    font-family: var(--ff); line-height: 1.5; letter-spacing: -.011em;
    overflow-x: hidden; cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 900px) { body { cursor: auto; } }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: none; padding: 0; }
@media (max-width: 900px) { button { cursor: pointer; } }
input, textarea, select { font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }

::selection { background: var(--accent); color: var(--black); }
::-webkit-scrollbar { width: 0; height: 0; display: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ============================================================
   LOADER
============================================================ */
.loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--black); color: var(--white);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    transition: opacity .7s var(--ease) .25s, visibility .7s .25s;
}
.loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-num {
    font-size: clamp(140px, 24vw, 320px); font-weight: 200;
    letter-spacing: -.06em; line-height: .9;
    font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
.loader-lbl {
    position: absolute; bottom: 56px; left: 0; right: 0; text-align: center;
    font-size: 11px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase;
    color: var(--gray);
}
.loader-bar {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 280px; height: 1px; background: rgba(255,255,255,.12); overflow: hidden;
}
.loader-bar > i { display: block; height: 100%; width: 0; background: var(--white); transition: width .12s linear; }

/* ============================================================
   CURSOR
============================================================ */
.cursor {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    border-radius: 50%; background: var(--white);
    mix-blend-mode: difference; pointer-events: none;
    z-index: 9999; transform: translate(-50%, -50%);
    transition: width .3s var(--ease), height .3s var(--ease), background .25s;
    will-change: transform;
}
.cursor.lg { width: 80px; height: 80px; }
.cursor.text { width: 4px; height: 28px; border-radius: 2px; }
@media (max-width: 900px) { .cursor { display: none; } }

/* ============================================================
   NAV
============================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px var(--pad);
    mix-blend-mode: difference; color: var(--white);
    transition: padding .3s var(--ease);
}
.nav.scrolled { padding: 14px var(--pad); }
.brand {
    font-size: 15px; font-weight: 600; letter-spacing: -.012em;
    display: inline-flex; align-items: baseline; gap: 0;
}
.brand b { font-weight: 800; }
.nav-links {
    list-style: none; display: flex; gap: 36px;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
    font-size: 13px; font-weight: 500; opacity: .8;
    transition: opacity .2s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
    font-size: 13px; font-weight: 600; padding: 9px 18px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.5);
    transition: background .25s, color .25s, transform .25s var(--ease);
}
.nav-cta:hover { background: var(--white); color: var(--black); transform: scale(1.04); }
.nav-burger {
    display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .2s; }
.nav-burger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-links {
        position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
        background: rgba(0,0,0,.95); backdrop-filter: blur(24px);
        padding: 24px 32px 32px;
        transform: translateY(-110%); transition: transform .4s var(--ease);
        max-height: 100vh; left: 0; right: 0;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 16px 0; font-size: 22px; font-weight: 600; opacity: 1; border-bottom: 1px solid rgba(255,255,255,.08); display: block; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 var(--pad); overflow: hidden;
    background: radial-gradient(ellipse 1200px 800px at 50% 50%, #0e0e15 0%, #000 70%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 1100px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    font-size: 12px; font-weight: 500; color: var(--gray);
    margin-bottom: 32px; letter-spacing: .01em;
    opacity: 0; transform: translateY(10px);
    transition: opacity .8s var(--ease) .6s, transform .8s var(--ease) .6s;
}
.hero.in .hero-eyebrow { opacity: 1; transform: none; }
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 4px rgba(48,209,88,.18);
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse { 50% { box-shadow: 0 0 0 8px rgba(48,209,88,.05); } }

.hero-title {
    font-size: clamp(72px, 14vw, 220px); font-weight: 800;
    letter-spacing: -.055em; line-height: .95;
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-title .word i {
    display: inline-block; font-style: normal;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease);
}
.hero.in .hero-title .word i { transform: translateY(0); }
.hero.in .hero-title .word:nth-child(2) i { transition-delay: .1s; }
.hero-sub {
    margin-top: 36px;
    font-size: clamp(16px, 1.7vw, 22px);
    color: var(--gray); font-weight: 400; max-width: 600px;
    margin-left: auto; margin-right: auto; line-height: 1.5;
    opacity: 0; transform: translateY(20px);
    transition: opacity .9s var(--ease) .85s, transform .9s var(--ease) .85s;
}
.hero.in .hero-sub { opacity: 1; transform: none; }

.hero-meta {
    position: absolute; bottom: 36px; left: 0; right: 0;
    padding: 0 var(--pad); z-index: 3;
    display: flex; justify-content: space-between; align-items: flex-end;
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
    color: var(--gray); font-weight: 500;
}
@media (max-width: 600px) { .hero-meta { font-size: 10px; padding: 0 20px; bottom: 24px; } .hero-meta span:nth-child(1), .hero-meta span:nth-child(3) { max-width: 90px; } }

.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue .line {
    display: block; width: 1px; height: 32px;
    background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
    animation: scrollLine 2s infinite var(--ease);
}
.scroll-cue .lbl { font-size: 10px; }
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SCENE: Pinned scaling text
============================================================ */
.scene { position: relative; }
.scene-pin { height: 320vh; background: var(--black); }
.scene-pin .pin {
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.pin-text {
    font-size: clamp(80px, 17vw, 280px); font-weight: 800;
    letter-spacing: -.065em; line-height: .92; text-align: center;
    will-change: transform, opacity; padding: 0 var(--pad);
}
.pin-text em {
    font-style: normal;
    background: var(--grad-d);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   FLIP-LIGHT (white sections)
============================================================ */
.flip-light {
    background: var(--paper); color: var(--black);
    padding: 200px 0 200px;
    position: relative; overflow: hidden;
}
@media (max-width: 700px) { .flip-light { padding: 120px 0; } }

.kicker {
    display: inline-block; font-size: 12px; font-weight: 600;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--gray-3); margin-bottom: 28px;
}
.flip-light .kicker { color: var(--gray-3); }
.scene .kicker.dark, .work .kicker, .playground .kicker { color: var(--gray); }

.huge {
    font-size: clamp(44px, 8vw, 128px); font-weight: 800;
    letter-spacing: -.045em; line-height: .98;
}
.huge .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.huge .ln em {
    display: inline-block; font-style: normal;
    transform: translateY(110%);
    transition: transform 1.1s var(--ease);
}
.scene.in .huge .ln em { transform: translateY(0); }
.huge .ln:nth-child(2) em { transition-delay: .1s; }
.huge .ln:nth-child(3) em { transition-delay: .2s; }

.huge .grad {
    background: var(--grad-l);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.huge .grad-d {
    background: var(--grad-d);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.huge .muted { color: var(--gray); font-weight: 400; }

.lead {
    margin-top: 36px; max-width: 640px;
    font-size: clamp(16px, 1.7vw, 22px); line-height: 1.5; letter-spacing: -.013em;
    color: var(--gray-3);
    opacity: 0; transform: translateY(20px);
    transition: opacity 1s var(--ease) .4s, transform 1s var(--ease) .4s;
}
.scene.in .lead { opacity: 1; transform: none; }
.lead.aside { margin-top: 0; max-width: 360px; align-self: flex-end; }
.lead.dark { color: var(--gray); }

.head-row {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 56px; align-items: end; margin-bottom: 72px;
}
@media (max-width: 900px) { .head-row { grid-template-columns: 1fr; gap: 24px; } .lead.aside { align-self: flex-start; } }
.head-row.dark .kicker { color: var(--gray); }

/* ============================================================
   MARQUEE
============================================================ */
.marquee {
    background: var(--black); padding: 28px 0;
    border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
    overflow: hidden; position: relative; z-index: 2;
}
.marquee-track {
    display: flex; gap: 40px; align-items: center; white-space: nowrap;
    animation: mq 35s linear infinite; will-change: transform;
}
.marquee span {
    font-size: clamp(28px, 4.5vw, 64px); font-weight: 800;
    letter-spacing: -.04em; color: var(--white);
}
.marquee span:nth-child(2n) { color: var(--gray-3); }
.marquee i { font-style: normal; color: var(--accent); font-size: 24px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
============================================================ */
.stats { background: var(--black); padding: 200px 0; color: var(--white); }
@media (max-width: 700px) { .stats { padding: 120px 0; } }
.stats-title {
    font-size: clamp(36px, 6vw, 80px); font-weight: 800;
    letter-spacing: -.04em; line-height: 1.05; margin-bottom: 96px; max-width: 1000px;
}
.stats-title em {
    font-style: normal;
    background: var(--grad-d);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    border-top: 1px solid var(--line-d); padding-top: 64px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 24px; } }
.stat b {
    display: block; font-size: clamp(64px, 9vw, 132px);
    font-weight: 300; letter-spacing: -.05em; line-height: .95;
    font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
    margin-bottom: 16px; color: var(--white);
}
.stat b sup { font-size: .42em; color: var(--accent); margin-left: 4px; vertical-align: super; font-weight: 400; }
.stat span { display: block; font-size: 13px; color: var(--gray); font-weight: 500; line-height: 1.5; max-width: 220px; letter-spacing: -.005em; }

/* ============================================================
   SERVICES
============================================================ */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: var(--white);
    border-radius: 28px; padding: 40px 36px;
    min-height: 360px;
    display: flex; flex-direction: column; justify-content: space-between;
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -25px rgba(0,0,0,.18); }
.service-card .ic {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--black); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 22px;
}
.service-card h3 {
    font-size: clamp(22px, 2.4vw, 32px); font-weight: 700;
    letter-spacing: -.025em; line-height: 1.1; color: var(--black);
}
.service-card p {
    font-size: 15px; color: var(--gray-3); line-height: 1.55;
    margin-top: 14px;
}
.service-card .more {
    margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--gray-3);
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .25s, gap .3s var(--ease);
}
.service-card:hover .more { color: var(--black); gap: 10px; }

/* ============================================================
   WORK / PORTFOLIO
============================================================ */
.work { background: var(--black); padding: 200px 0; color: var(--white); }
@media (max-width: 700px) { .work { padding: 120px 0; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
    padding: 9px 16px; font-size: 13px; font-weight: 500;
    color: var(--gray); border: 1px solid var(--line-d); border-radius: 999px;
    background: transparent; transition: all .25s var(--ease);
}
.filters button:hover { color: var(--white); border-color: rgba(255,255,255,.25); }
.filters button.active { color: var(--black); background: var(--white); border-color: var(--white); }

.work-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #1a1a22, #0a0a0c);
    transition: transform .5s var(--ease);
}
.work-card.featured { grid-column: 1 / -1; aspect-ratio: 21/9; }
@media (max-width: 800px) { .work-card.featured { aspect-ratio: 4/3; } }
.work-card:hover { transform: translateY(-3px); }
.work-card .thumb {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: transform 1.2s var(--ease);
}
.work-card:hover .thumb { transform: scale(1.04); }
.work-card .thumb-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(72px, 12vw, 160px); font-weight: 800; letter-spacing: -.05em;
    color: rgba(255,255,255,.06);
}
.work-card .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%);
}
.work-card .body {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 36px;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.work-card .body .info { flex: 1; min-width: 0; }
.work-card .cat { font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.work-card .ttl {
    font-size: clamp(24px, 3.2vw, 44px); font-weight: 700;
    letter-spacing: -.03em; line-height: 1.05;
}
.work-card .desc {
    margin-top: 8px; color: var(--gray); font-size: 14px; line-height: 1.5;
    max-width: 540px;
}
.work-card .meta {
    display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
.work-card .status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
    font-size: 11px; font-weight: 600; color: var(--white); letter-spacing: .04em;
}
.work-card .status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.work-card .status.down .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.work-card .visit {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); color: var(--black);
    font-size: 18px; transition: transform .3s var(--ease), background .25s;
}
.work-card:hover .visit { transform: rotate(-45deg) scale(1.08); background: var(--accent); }

/* ============================================================
   ABOUT + SKILLS
============================================================ */
.about-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; }
@media (max-width: 900px) { .about-row { grid-template-columns: 1fr; gap: 56px; } }
.about-langs { display: flex; gap: 32px; margin-top: 36px; }
.about-langs span { font-size: 13px; color: var(--gray-3); }
.about-langs b {
    display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em;
    color: var(--black); margin-bottom: 4px;
}

.skills { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.skill {
    border-bottom: 1px solid var(--line-l); padding-bottom: 18px;
}
.skill .row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 12px;
}
.skill .name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--black); }
.skill .cat { font-size: 11px; color: var(--gray); margin-left: 8px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.skill .pct {
    font-size: 14px; font-weight: 700;
    font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
    color: var(--black);
}
.skill .bar { height: 4px; background: rgba(0,0,0,.06); border-radius: 99px; overflow: hidden; }
.skill .bar > i {
    display: block; height: 100%; width: 0;
    background: var(--black);
    border-radius: 99px;
    transition: width 1.6s var(--ease);
}

/* ============================================================
   PLAYGROUND / GAMES
============================================================ */
.playground { background: var(--black); padding: 200px 0 240px; color: var(--white); }
@media (max-width: 700px) { .playground { padding: 120px 0; } }

.game-tabs {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 32px;
}
.game-tab {
    padding: 11px 22px; font-size: 14px; font-weight: 500;
    color: var(--gray); border: 1px solid var(--line-d); border-radius: 999px;
    background: transparent; transition: all .25s var(--ease);
}
.game-tab:hover { color: var(--white); border-color: rgba(255,255,255,.25); }
.game-tab.active { color: var(--black); background: var(--white); border-color: var(--white); }

.game-area {
    background: linear-gradient(180deg, #0e0e15 0%, #0a0a0c 100%);
    border: 1px solid var(--line-d); border-radius: 32px;
    padding: 36px;
    min-height: 480px; display: flex; flex-direction: column;
}
.game-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.game-header h3 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.game-header p { color: var(--gray); font-size: 13px; margin-top: 4px; }
.game-stats { display: flex; gap: 14px; }
.game-stat {
    text-align: center; padding: 10px 18px;
    background: rgba(255,255,255,.04); border-radius: 14px; min-width: 86px;
}
.game-stat b { display: block; font-size: 22px; font-weight: 700; color: var(--white); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.game-stat span { font-size: 10px; color: var(--gray); letter-spacing: .15em; text-transform: uppercase; }

.game-canvas { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 320px; position: relative; }

.reflex-board { width: 100%; height: 360px; background: rgba(255,255,255,.02); border-radius: 22px; position: relative; overflow: hidden; cursor: crosshair; }
.reflex-target {
    position: absolute; width: 64px; height: 64px; border-radius: 50%;
    background: var(--grad-d);
    transform: translate(-50%,-50%) scale(0);
    transition: transform .15s var(--ease); cursor: pointer;
    box-shadow: 0 0 40px rgba(255,214,10,.5), inset 0 0 20px rgba(255,255,255,.3);
}
.reflex-target.show { transform: translate(-50%,-50%) scale(1); animation: tgPulse 1.2s ease-in-out infinite; }
@keyframes tgPulse { 50% { box-shadow: 0 0 60px rgba(255,214,10,.8), inset 0 0 28px rgba(255,255,255,.4); } }

.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; aspect-ratio: 1; }
.mem-card {
    aspect-ratio: 1; border-radius: 14px; cursor: pointer;
    transition: transform .4s var(--ease); position: relative; transform-style: preserve-3d;
}
.mem-card .face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; border-radius: 14px; font-size: 28px; font-weight: 700; }
.mem-card .back { background: var(--grad-d); color: var(--black); }
.mem-card .front { background: rgba(255,255,255,.06); border: 1px solid var(--line-d); transform: rotateY(180deg); color: var(--white); }
.mem-card.flipped { transform: rotateY(180deg); }
.mem-card.match .front { background: rgba(48,209,88,.15); border-color: var(--green); }

.target-board { width: 100%; height: 360px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.03), transparent); border-radius: 22px; position: relative; overflow: hidden; cursor: crosshair; }
.target-bug { position: absolute; cursor: pointer; user-select: none; transition: transform .1s; }

.game-controls { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

.btn-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; font-size: 14px; font-weight: 600; letter-spacing: -.01em;
    border-radius: 999px;
    background: var(--white); color: var(--black);
    transition: transform .3s var(--ease), background .25s, color .25s, padding .3s var(--ease);
    border: 0;
}
.btn-pill .arr { transition: transform .3s var(--ease); display: inline-block; }
.btn-pill:hover { transform: scale(1.03); padding: 14px 32px; }
.btn-pill:hover .arr { transform: translateX(4px); }
.btn-pill.dark { background: var(--black); color: var(--white); border: 1px solid var(--white); }
.btn-pill.lg { padding: 20px 36px; font-size: 17px; }
.btn-pill.lg:hover { padding: 20px 44px; }

.leaderboard {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin-top: 28px;
}
@media (max-width: 800px) { .leaderboard { grid-template-columns: 1fr; } }
.lb-card {
    background: rgba(255,255,255,.03); border: 1px solid var(--line-d);
    border-radius: 22px; padding: 22px;
}
.lb-card h4 {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px;
}
.lb-card h4 small { color: var(--gray); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.lb-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line-d); }
.lb-row:last-child { border-bottom: 0; }
.lb-row .rank { width: 22px; color: var(--gray); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.lb-row .pl { flex: 1; color: var(--white); font-weight: 500; }
.lb-row .sc {
    color: var(--accent); font-weight: 700;
    font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.t-head { margin-bottom: 80px; max-width: 1100px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; } }
.t-card {
    background: var(--white); border-radius: 28px; padding: 36px;
    border: 1px solid rgba(0,0,0,.04);
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 320px;
    transition: transform .4s var(--ease);
}
.t-card:hover { transform: translateY(-4px); }
.t-card .stars { color: var(--accent); letter-spacing: 3px; font-size: 14px; margin-bottom: 18px; }
.t-card .body { font-size: 17px; color: var(--black); line-height: 1.5; letter-spacing: -.012em; }
.t-card .author {
    display: flex; align-items: center; gap: 14px; margin-top: 28px;
    padding-top: 24px; border-top: 1px solid var(--line-l);
}
.t-card .av {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--black); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}
.t-card .author b { display: block; font-size: 14px; font-weight: 600; color: var(--black); }
.t-card .author span { font-size: 12px; color: var(--gray); }

/* ============================================================
   CONTACT
============================================================ */
.contact {
    background: var(--paper); color: var(--black);
    padding: 200px 0 160px; position: relative; overflow: hidden;
}
@media (max-width: 700px) { .contact { padding: 120px 0; } }
.contact-head { text-align: center; max-width: 1100px; margin: 0 auto 80px; }
.mega {
    font-size: clamp(60px, 12vw, 200px); font-weight: 800;
    letter-spacing: -.06em; line-height: .92;
}
.mega .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.mega .ln em {
    display: inline-block; font-style: normal;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease);
}
.scene.in .mega .ln em { transform: translateY(0); }
.mega .ln:nth-child(2) em { transition-delay: .12s; }
.mega .muted { color: var(--gray); font-weight: 300; }
.contact-head .lead { margin: 36px auto 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info { display: flex; flex-direction: column; gap: 6px; }
.ci {
    display: block; padding: 22px 28px;
    background: var(--white); border-radius: 22px;
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .3s var(--ease), background .3s;
}
.ci[href]:hover { transform: translateX(4px); }
.ci small { display: block; font-size: 11px; color: var(--gray); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.ci b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.012em; color: var(--black); }

.contact-form { background: var(--white); border-radius: 28px; padding: 36px; border: 1px solid rgba(0,0,0,.04); position: relative; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .contact-form .row2 { grid-template-columns: 1fr; } }
.contact-form span { display: block; font-size: 11px; color: var(--gray); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 16px;
    background: var(--paper); color: var(--black);
    border: 1px solid transparent; border-radius: 12px;
    font-size: 15px; outline: none;
    transition: border-color .2s, background .2s;
    resize: vertical; font-family: inherit; letter-spacing: -.011em;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--black); background: var(--white); }
.contact-form .btn-pill { background: var(--black); color: var(--white); margin-top: 8px; width: 100%; justify-content: center; }
.contact-form .btn-pill:hover { background: var(--gray-2); }
.form-status { margin-top: 14px; min-height: 18px; font-size: 13px; text-align: center; color: var(--gray-3); }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ============================================================
   FOOTER
============================================================ */
.foot {
    background: var(--black); color: var(--gray); padding: 80px 0 40px;
    border-top: 1px solid var(--line-d);
}
.foot-row {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
    align-items: start; margin-bottom: 60px;
}
@media (max-width: 800px) { .foot-row { grid-template-columns: 1fr; gap: 32px; text-align: left; } }
.foot-brand a { font-size: 18px; font-weight: 700; color: var(--white); display: block; margin-bottom: 10px; letter-spacing: -.012em; }
.foot-brand b { font-weight: 800; }
.foot-brand p { font-size: 14px; color: var(--gray); }

.foot-stats { display: flex; gap: 32px; }
.foot-stats span { display: block; }
.foot-stats b {
    display: block; font-size: 28px; font-weight: 700;
    color: var(--white); margin-bottom: 4px; letter-spacing: -.025em;
    font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
.foot-stats small { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--gray); font-weight: 500; }

.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--white); }

.foot-bottom {
    border-top: 1px solid var(--line-d); padding-top: 32px;
    display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    font-size: 12px; color: var(--gray-3);
    max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad);
}

/* ============================================================
   TOAST
============================================================ */
.toast {
    position: fixed; bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white); color: var(--black);
    padding: 14px 22px; border-radius: 14px;
    font-size: 14px; font-weight: 500; letter-spacing: -.011em;
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
    z-index: 9000; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
    max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); color: var(--white); }
.toast.ok { background: var(--green); color: var(--black); }
