/* =========================================================
   MODERN PORTFOLIO – Vamsi Krishna
   Professional, attractive, client-focused redesign
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Theme Tokens ---------- */
:root {
    --bg:           #07080d;
    --bg-soft:      #0d0f17;
    --surface:      rgba(255,255,255,0.04);
    --surface-2:    rgba(255,255,255,0.06);
    --border:       rgba(255,255,255,0.08);
    --border-strong:rgba(255,255,255,0.16);
    --text:         #e7eaf3;
    --text-muted:   #9aa3b8;
    --text-dim:     #6c7590;

    --accent:       #7c5cff;          /* violet */
    --accent-2:     #2dd4bf;          /* teal  */
    --accent-3:     #f472b6;          /* pink  */
    --accent-glow:  rgba(124,92,255,.45);

    --grad-primary: linear-gradient(135deg, #7c5cff 0%, #2dd4bf 100%);
    --grad-warm:    linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
    --grad-mesh:    radial-gradient(at 20% 20%, rgba(124,92,255,.25) 0, transparent 50%),
                    radial-gradient(at 80% 0%, rgba(45,212,191,.18) 0, transparent 50%),
                    radial-gradient(at 0% 80%, rgba(244,114,182,.15) 0, transparent 50%),
                    radial-gradient(at 80% 80%, rgba(56,189,248,.12) 0, transparent 50%);

    --shadow-sm:    0 2px 8px rgba(0,0,0,.25);
    --shadow-md:    0 12px 32px rgba(0,0,0,.35);
    --shadow-lg:    0 24px 60px rgba(0,0,0,.45);
    --shadow-glow:  0 10px 40px var(--accent-glow);

    --radius-sm:    10px;
    --radius:       18px;
    --radius-lg:    28px;
    --radius-pill:  999px;

    --container:    1200px;
    --section-py:   clamp(40px, 5vw, 80px);

    --ease:         cubic-bezier(.2,.9,.3,1);
}

/* ---------- Light theme (toggleable) ----------
   Designed as a calm, premium "studio" light palette:
   - Soft off-white background with subtle warm tint
   - Solid white surfaces with crisp 1px borders + soft shadows
   - Slightly deepened accents for AAA contrast on white
   ----------------------------------------------- */
:root[data-theme="light"] {
    --bg:           #f4f5f9;
    --bg-soft:      #ffffff;
    --surface:      #ffffff;
    --surface-2:    #f1f3f8;
    --border:       #e3e6ee;
    --border-strong:#cdd2dd;
    --text:         #0a0e1a;
    --text-muted:   #4a5168;
    --text-dim:     #6f778c;

    --accent:       #6d4afe;
    --accent-2:     #0d9488;
    --accent-3:     #db2777;
    --accent-glow:  rgba(109,74,254,.22);

    --grad-primary: linear-gradient(135deg, #6d4afe 0%, #0d9488 100%);
    --grad-warm:    linear-gradient(135deg, #db2777 0%, #ea580c 100%);
    --grad-mesh:    radial-gradient(at 20% 20%, rgba(109,74,254,.10) 0, transparent 50%),
                    radial-gradient(at 80% 0%, rgba(13,148,136,.08) 0, transparent 50%),
                    radial-gradient(at 0% 80%, rgba(219,39,119,.06) 0, transparent 50%),
                    radial-gradient(at 80% 80%, rgba(56,189,248,.06) 0, transparent 50%);

    --shadow-sm:    0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.03);
    --shadow-md:    0 8px 24px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
    --shadow-lg:    0 24px 50px rgba(15,23,42,.10), 0 8px 16px rgba(15,23,42,.05);
    --shadow-glow:  0 8px 32px rgba(109,74,254,.30);
}

/* ---------- Light-mode component overrides ---------- */
:root[data-theme="light"] body {
    background:
        radial-gradient(1000px 600px at 100% -10%, rgba(109,74,254,.05), transparent 60%),
        radial-gradient(800px 500px at -10% 30%, rgba(13,148,136,.04), transparent 60%),
        var(--bg);
}

/* Navbar — crisp white pill with soft shadow */
:root[data-theme="light"] .navbar {
    background: rgba(255,255,255,.85);
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 4px 24px rgba(15,23,42,.06);
}
:root[data-theme="light"] .navbar.scrolled {
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 32px rgba(15,23,42,.10);
}
:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-links a.active { background: var(--surface-2); }
:root[data-theme="light"] .icon-btn { background: var(--surface-2); }

/* Hero — softer mesh, lighter orbs, lighter grid lines */
:root[data-theme="light"] .hero::after {
    background:
        linear-gradient(180deg, transparent 60%, var(--bg) 100%),
        repeating-linear-gradient(0deg, transparent 0 40px, rgba(15,23,42,.025) 40px 41px),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(15,23,42,.025) 40px 41px);
}
:root[data-theme="light"] .hero-orb { opacity: .25; filter: blur(80px); }
:root[data-theme="light"] .hero-orb.o3 { opacity: .18; }
:root[data-theme="light"] .hero-pill { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); }

/* Portrait card */
:root[data-theme="light"] .portrait-frame {
    background: linear-gradient(180deg, #f5f6fa 0%, #e6e9f1 100%);
}
:root[data-theme="light"] .portrait-frame::after {
    background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.7) 100%);
}
:root[data-theme="light"] .floating-badge {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

/* Tape, stats & marquee — white surfaces */
:root[data-theme="light"] .tape { background: #ffffff; }
:root[data-theme="light"] .tape-item { color: var(--text-muted); }
:root[data-theme="light"] .stats-strip {
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

/* Approach + Bento + Testi cards — white with subtle border + shadow */
:root[data-theme="light"] .approach-card,
:root[data-theme="light"] .bento-card,
:root[data-theme="light"] .testi-card,
:root[data-theme="light"] .contact-info,
:root[data-theme="light"] .contact-form,
:root[data-theme="light"] .journey-card,
:root[data-theme="light"] .stats-strip {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}
:root[data-theme="light"] .approach-card:hover,
:root[data-theme="light"] .bento-card:hover,
:root[data-theme="light"] .testi-card:hover,
:root[data-theme="light"] .journey-card:hover {
    box-shadow: var(--shadow-md);
}
:root[data-theme="light"] .approach-icon { background: #f1f3f8; border-color: var(--border); }

/* Featured bento with gradient wash */
:root[data-theme="light"] .bento-card.featured {
    background:
        radial-gradient(600px circle at 0% 0%, rgba(109,74,254,.10), transparent 60%),
        radial-gradient(400px circle at 100% 100%, rgba(13,148,136,.08), transparent 50%),
        #ffffff;
}

/* Quote band */
:root[data-theme="light"] .quote-band {
    background:
        radial-gradient(1200px 400px at 50% 50%, rgba(109,74,254,.10), transparent 60%),
        var(--bg);
}

/* Skill bar track */
:root[data-theme="light"] .bar { background: #e9ecf3; }
:root[data-theme="light"] .pill { background: #ffffff; box-shadow: var(--shadow-sm); }
:root[data-theme="light"] .pill:hover { background: #f7f8fc; }

/* Filters */
:root[data-theme="light"] .filter { background: #ffffff; box-shadow: var(--shadow-sm); }

/* Work cards */
:root[data-theme="light"] .work-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}
:root[data-theme="light"] .work-card:hover { box-shadow: var(--shadow-lg); }

/* CTA — pure white with subtle gradient wash */
:root[data-theme="light"] .cta {
    background:
        radial-gradient(800px 300px at 0% 0%, rgba(109,74,254,.18), transparent 60%),
        radial-gradient(500px 250px at 100% 100%, rgba(13,148,136,.14), transparent 60%),
        #ffffff;
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}
:root[data-theme="light"] .cta .grid-bg {
    background:
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(15,23,42,.04) 30px 31px),
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(15,23,42,.04) 30px 31px);
}

/* Contact rows */
:root[data-theme="light"] .contact-row { background: #f7f8fc; box-shadow: none; }
:root[data-theme="light"] .contact-row:hover { background: #eef0f6; }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .field select {
    background: #f7f8fc;
    border-color: var(--border);
}
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field textarea:focus,
:root[data-theme="light"] .field select:focus {
    background: #ffffff;
}

/* Social icons */
:root[data-theme="light"] .social-row a { background: #f1f3f8; }

/* Journey */
:root[data-theme="light"] .journey-bg .jb-orb { opacity: .12; filter: blur(110px); }
:root[data-theme="light"] .journey-line {
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(15,23,42,.10) 6%,
        rgba(15,23,42,.10) 94%,
        transparent 100%);
}
:root[data-theme="light"] .journey-node {
    background:
        radial-gradient(circle at 30% 30%, rgba(15,23,42,.04), transparent 60%),
        #ffffff;
    box-shadow: 0 8px 24px rgba(15,23,42,.10), inset 0 0 0 4px rgba(109,74,254,.06);
}
:root[data-theme="light"] .journey-stack span {
    background: #f7f8fc;
    color: var(--text-muted);
}
:root[data-theme="light"] .j-pill { background: #f1f3f8; color: var(--text-muted); }
:root[data-theme="light"] .journey-card-head { color: var(--text); }

/* Footer */
:root[data-theme="light"] .footer {
    background: #ffffff;
    border-top-color: var(--border);
}
:root[data-theme="light"] .scroll-top { background: #f1f3f8; }

/* Cursor follower — switch to deep purple on light */
:root[data-theme="light"] .cursor-dot {
    border-color: var(--accent);
    mix-blend-mode: normal;
}
:root[data-theme="light"] .cursor-dot.hover {
    background: rgba(109,74,254,.10);
    border-color: var(--accent);
}

/* Mobile nav menu in light mode is already handled in main rules via [data-theme="light"] override */

/* Theme toggle icons: show sun in light mode, moon in dark */
.theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: block; }
:root[data-theme="light"] .theme-icon-moon { display: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { color: var(--text-muted); }

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Layout ---------- */
.container {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
}
.section { padding: var(--section-py) 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(45,212,191,.18);
}
.section-title { margin-bottom: 14px; }
.section-sub  { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px var(--accent-glow); }
.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-link {
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    transition: color .2s ease, gap .25s var(--ease);
}
.btn-link:hover { color: var(--accent-2); gap: 14px; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(96%, 1100px);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: rgba(13, 15, 23, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 14px 10px 22px;
    transition: background .3s ease, top .3s ease, box-shadow .3s ease;
}
:root[data-theme="light"] .navbar { background: rgba(255,255,255,0.7); }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
    font-size: 1.05rem;
}
.brand-logo {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--surface);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background .2s ease, transform .2s ease;
}
.icon-btn:hover { background: var(--surface-2); transform: rotate(15deg); }
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    place-items: center;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    margin: 3px auto;
    transition: transform .3s ease, opacity .3s ease;
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(13, 15, 23, 0.96);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 14px;
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .25s ease, transform .25s ease;
    }
    :root[data-theme="light"] .nav-links { background: rgba(255,255,255,0.96); }
    .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .nav-toggle { display: grid; }
    .nav-links a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh);
    z-index: -2;
    animation: meshShift 18s ease-in-out infinite alternate;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, var(--bg) 100%),
        repeating-linear-gradient(0deg, transparent 0 40px, rgba(255,255,255,.018) 40px 41px),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.018) 40px 41px);
    z-index: -1;
    pointer-events: none;
}
@keyframes meshShift {
    0%   { filter: hue-rotate(0deg); transform: scale(1); }
    100% { filter: hue-rotate(28deg); transform: scale(1.05); }
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    z-index: -1;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}
.hero-orb.o1 { width: 380px; height: 380px; background: #7c5cff; top: -80px; left: -80px; }
.hero-orb.o2 { width: 280px; height: 280px; background: #2dd4bf; bottom: 20px; right: -60px; animation-delay: -4s; }
.hero-orb.o3 { width: 220px; height: 220px; background: #f472b6; top: 40%; left: 45%; animation-delay: -8s; opacity: .35; }
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(20px, -25px) scale(1.06); }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.hero-pill .dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: grid; place-items: center;
    font-size: 0.65rem;
    color: #fff;
}
.hero-pill .live {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74,222,128,.18);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
    50%      { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
.hero-title { margin-bottom: 22px; }
.hero-title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 36px;
}
@media (max-width: 900px) { .hero-lead { margin-inline: auto; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }
.hero-stats {
    display: flex;
    gap: clamp(18px, 4vw, 48px);
    flex-wrap: wrap;
}
@media (max-width: 900px) { .hero-stats { justify-content: center; } }
.hero-stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.hero-stat .label {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 6px;
}

/* Hero visual / portrait card */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}
.portrait-card {
    width: min(100%, 420px);
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(20px);
    padding: 18px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    transition: transform .4s var(--ease);
}
.portrait-card .glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--grad-primary);
    z-index: -1;
    opacity: .6;
    filter: blur(28px);
}
.portrait-frame {
    width: 100%; height: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
    background: linear-gradient(180deg, #1a1d2e 0%, #0d0f17 100%);
    position: relative;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7,8,13,.85) 100%);
}
.portrait-tags {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}
.portrait-tag {
    padding: 6px 12px;
    background: rgba(13, 15, 23, .75);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: #fff;
    backdrop-filter: blur(10px);
}
.floating-badge {
    position: absolute;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}
.floating-badge .ico {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--grad-primary);
    color: #fff;
    font-size: 1.1rem;
}
.floating-badge .meta .v { font-weight: 700; font-size: 0.95rem; }
.floating-badge .meta .l { font-size: 0.74rem; color: var(--text-muted); }
.fb-1 { top: 24px; left: -28px; animation-delay: -2s; }
.fb-2 { bottom: 60px; right: -36px; animation-delay: -4s; }
@media (max-width: 600px) {
    .fb-1 { left: 0; }
    .fb-2 { right: 0; }
}

/* ---------- Marquee tape ---------- */
.tape {
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 18px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tape-track {
    display: flex;
    gap: 56px;
    animation: scroll-x 30s linear infinite;
    width: max-content;
}
.tape-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.tape-item .star {
    width: 18px; height: 18px;
    color: var(--accent);
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- About / Approach ---------- */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.approach-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .35s var(--ease), border-color .35s ease, background .35s ease;
    position: relative;
    overflow: hidden;
}
.approach-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(124,92,255,.12), transparent 40%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.approach-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.approach-card:hover::before { opacity: 1; }
.approach-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    color: var(--accent-2);
    transition: transform .35s var(--ease), background .35s ease;
}
.approach-card:hover .approach-icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--grad-primary);
    color: #fff;
}
.approach-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.approach-card p { font-size: 0.95rem; }

/* ---------- Quote band ---------- */
.quote-band {
    padding: clamp(60px, 8vw, 110px) 0;
    position: relative;
    background:
        radial-gradient(1200px 400px at 50% 50%, rgba(124,92,255,.18), transparent 60%),
        var(--bg);
    border-block: 1px solid var(--border);
    text-align: center;
}
.quote-band p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 500;
    color: var(--text);
    max-width: 920px;
    margin: 0 auto;
    line-height: 1.35;
}
.quote-band .accent { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Services bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transition: transform .35s var(--ease), border-color .35s ease;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bento-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.bento-card .b-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: #fff;
    display: grid; place-items: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-glow);
}
.bento-card h3 { margin-bottom: 10px; }
.bento-card p { font-size: 0.95rem; }
.bento-card.large { grid-column: span 4; min-height: 320px; }
.bento-card.tall { grid-column: span 2; min-height: 320px; }
.bento-card.wide { grid-column: span 3; }
.bento-card.small { grid-column: span 3; }
.bento-card.featured {
    background:
        radial-gradient(600px circle at 0% 0%, rgba(124,92,255,.25), transparent 60%),
        radial-gradient(400px circle at 100% 100%, rgba(45,212,191,.18), transparent 50%),
        var(--surface);
}
.bento-card .b-art {
    position: absolute;
    bottom: -40px; right: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: var(--grad-primary);
    filter: blur(60px);
    opacity: .4;
    z-index: -1;
}
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card.large, .bento-card.tall, .bento-card.wide, .bento-card.small { grid-column: span 2; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .bento-card.large, .bento-card.tall, .bento-card.wide, .bento-card.small { grid-column: span 1; }
}

/* ---------- Skills + Stack ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 900px) { .skills-grid { grid-template-columns: 1fr; gap: 36px; } }
.skill-row { margin-bottom: 22px; }
.skill-row:last-child { margin-bottom: 0; }
.skill-row .row-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.skill-row .row-head .name { font-weight: 600; }
.skill-row .row-head .pct { color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar {
    height: 8px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
}
.bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad-primary);
    border-radius: inherit;
    transition: width 1.6s cubic-bezier(.2,.85,.2,1);
    position: relative;
}
.bar > span::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 24px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7));
    filter: blur(2px);
}
.stack-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.pill {
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}
.pill:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--border-strong); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Stats ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}
.stat {
    padding: 36px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background .25s ease;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface-2); }
.stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.stat .label {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@media (max-width: 700px) {
    .stat { border-right: none; border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: none; }
}

/* ---------- Journey (redesigned timeline) ---------- */
.section-journey { position: relative; overflow: hidden; isolation: isolate; }
.journey-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.journey-bg .jb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
}
.journey-bg .jb-1 { width: 500px; height: 500px; top: 5%; left: -10%; background: #7c5cff; }
.journey-bg .jb-2 { width: 420px; height: 420px; bottom: 5%; right: -8%; background: #2dd4bf; opacity: .25; }

.journey {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 0;
}

/* Center spine */
.journey-line,
.journey-progress {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    border-radius: 2px;
    pointer-events: none;
}
.journey-line {
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255,255,255,.06) 6%,
        rgba(255,255,255,.06) 94%,
        transparent 100%);
}
.journey-progress {
    background: linear-gradient(to bottom, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    box-shadow: 0 0 12px var(--accent-glow);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 var(--journey-progress, 0%), transparent var(--journey-progress, 0%));
            mask-image: linear-gradient(to bottom, #000 0%, #000 var(--journey-progress, 0%), transparent var(--journey-progress, 0%));
    transition: -webkit-mask-image .35s ease, mask-image .35s ease;
}

/* Item */
.journey-item {
    position: relative;
    width: 50%;
    padding: 30px 56px 30px 0;
    display: flex;
    justify-content: flex-end;
}
.journey-item.right {
    margin-left: 50%;
    padding: 30px 0 30px 56px;
    justify-content: flex-start;
}

/* Year node on the spine */
.journey-node {
    position: absolute;
    top: 44px;
    left: 100%;
    transform: translateX(-50%);
    z-index: 3;
    width: 84px; height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 60%),
        var(--bg-soft);
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 0 0 4px rgba(124,92,255,.08);
    backdrop-filter: blur(8px);
    transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.journey-item.right .journey-node {
    left: 0;
    transform: translateX(-50%);
}
.journey-node span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1;
}
.journey-node::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--grad-primary);
    z-index: -1;
    opacity: 0;
    filter: blur(14px);
    transition: opacity .35s ease;
}
.journey-item:hover .journey-node {
    transform: translateX(-50%) scale(1.06);
    border-color: var(--accent);
}
.journey-item:hover .journey-node::before { opacity: .8; }

.journey-node--featured {
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: 0 16px 40px var(--accent-glow), inset 0 0 0 4px rgba(255,255,255,.12);
}
.journey-node--featured span { color: #fff; }

.journey-node--live::after {
    content: '';
    position: absolute;
    top: 6px; right: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74,222,128,.25);
    animation: pulse 1.6s infinite;
}

/* Connector line from spine to card */
.journey-item::before {
    content: '';
    position: absolute;
    top: 80px;
    height: 2px;
    width: 56px;
    background: linear-gradient(to right, transparent, var(--border-strong) 60%, var(--border-strong));
}
.journey-item.left::before {
    right: 0;
    background: linear-gradient(to left, transparent, var(--border-strong) 60%, var(--border-strong));
}
.journey-item.right::before {
    left: 0;
}

/* Card */
.journey-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.03), transparent 50%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
    overflow: hidden;
    isolation: isolate;
}
.journey-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 130deg at 50% 50%, transparent 0deg, var(--accent) 90deg, transparent 180deg, var(--accent-2) 270deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 1;
    animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.journey-item:hover .journey-card {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 24px 60px rgba(124,92,255,.25);
}
.journey-item:hover .journey-card-glow { opacity: 1; }

.journey-card--featured {
    background:
        radial-gradient(500px circle at 0% 0%, rgba(124,92,255,.18), transparent 50%),
        radial-gradient(400px circle at 100% 100%, rgba(45,212,191,.14), transparent 50%),
        var(--surface);
    border-color: rgba(124,92,255,.25);
}
.journey-badge {
    position: absolute;
    top: 16px; right: 16px;
    padding: 6px 12px;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.journey-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.journey-logo {
    width: 56px; height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}
.journey-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.journey-logo--white {
    background: #fff;
}
.journey-logo--white img {
    object-fit: contain;
    padding: 6px;
}

.journey-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.j-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    line-height: 1;
}
.j-pill svg { stroke: currentColor; }
.j-pill--accent {
    color: #fff;
    background: var(--grad-primary);
    border-color: transparent;
}
.j-pill--teal {
    color: #0c1020;
    background: var(--accent-2);
    border-color: transparent;
}
.j-pill--warm {
    color: #fff;
    background: var(--grad-warm);
    border-color: transparent;
}
.journey-date {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0;
}

.journey-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    letter-spacing: -0.015em;
}
.journey-org {
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0 12px;
}
.journey-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.65;
}
.journey-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.journey-stack span {
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.journey-stack span:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border-strong);
}

/* Mobile: single column with spine on the left */
@media (max-width: 820px) {
    .journey { padding-left: 4px; }
    .journey-line, .journey-progress {
        left: 32px;
        transform: none;
    }
    .journey-item,
    .journey-item.right {
        width: 100%;
        margin-left: 0;
        padding: 24px 0 24px 88px;
        justify-content: flex-start;
    }
    .journey-item .journey-node,
    .journey-item.right .journey-node {
        left: 32px;
        transform: translateX(-50%);
        top: 36px;
        width: 64px; height: 64px;
    }
    .journey-node span { font-size: 0.74rem; }
    .journey-item::before,
    .journey-item.left::before,
    .journey-item.right::before {
        left: 64px;
        right: auto;
        top: 64px;
        width: 24px;
        background: linear-gradient(to right, var(--border-strong), transparent);
    }
    .journey-card { max-width: none; }
    .journey-badge { top: 12px; right: 12px; font-size: 0.66rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .journey-item, .journey-item.right { padding-left: 76px; }
    .journey-item .journey-node,
    .journey-item.right .journey-node {
        width: 56px; height: 56px;
    }
    .journey-card { padding: 18px; }
    .journey-card h3 { font-size: 1.08rem; }
}

/* ---------- Portfolio ---------- */
.filters {
    display: flex; flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.filter {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.filter:hover { color: var(--text); }
.filter.active {
    color: #fff;
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.work-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .35s var(--ease);
    display: block;
}
.work-card.hide { display: none; }
.work-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease), filter .35s ease;
}
.work-card:hover { transform: translateY(-6px); }
.work-card:hover img { transform: scale(1.06); }
.work-overlay {
    position: absolute;
    inset: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent 35%, rgba(7,8,13,.92) 100%);
    color: #fff;
    transform: translateY(20%);
    opacity: 0.85;
    transition: transform .4s var(--ease), opacity .35s ease;
}
.work-card:hover .work-overlay { transform: translateY(0); opacity: 1; }
.work-overlay .cat {
    display: inline-block;
    width: max-content;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(124,92,255,.5);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
    backdrop-filter: blur(6px);
}
.work-overlay h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.work-overlay p { color: rgba(255,255,255,.75); font-size: 0.86rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.testi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: transform .35s var(--ease), border-color .35s ease;
}
.testi-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.testi-card .quote-mark {
    color: var(--accent);
    font-family: 'Space Grotesk', serif;
    font-size: 3.6rem;
    line-height: 1;
    margin-bottom: 8px;
    opacity: .55;
}
.testi-card p { font-size: 1rem; color: var(--text); line-height: 1.65; }
.testi-author {
    display: flex; align-items: center; gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.testi-author img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}
.testi-author .who h4 { margin: 0; font-size: 1rem; }
.testi-author .who span { font-size: 0.84rem; color: var(--text-muted); }
.stars { color: #f5b942; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }

/* ---------- Clients marquee ---------- */
.clients-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients-track {
    display: flex;
    gap: 56px;
    align-items: center;
    animation: scroll-x 25s linear infinite;
    width: max-content;
}
.clients-track img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.1);
    opacity: .65;
    transition: filter .25s ease, opacity .25s ease;
}
.clients-track img:hover { filter: none; opacity: 1; }

/* ---------- CTA section ---------- */
.cta {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(48px, 7vw, 80px);
    background:
        radial-gradient(800px 300px at 0% 0%, rgba(124,92,255,.35), transparent 60%),
        radial-gradient(500px 250px at 100% 100%, rgba(45,212,191,.25), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-strong);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta .grid-bg {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,.04) 30px 31px),
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,.04) 30px 31px);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    z-index: -1;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 42px;
    align-items: stretch;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-info h3 { margin-bottom: 8px; }
.contact-info p { color: var(--text-muted); }
.contact-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}
.contact-row:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--border-strong); }
.contact-row .ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--grad-primary);
    color: #fff;
    flex-shrink: 0;
}
.contact-row .meta .l { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-row .meta .v { font-weight: 600; color: var(--text); margin-top: 2px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.social-row a {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.social-row a:hover { color: #fff; background: var(--grad-primary); border-color: transparent; transform: translateY(-3px); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124,92,255,.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.form-foot .note { font-size: 0.85rem; color: var(--text-muted); }
#responseMessage { margin-top: 16px; font-size: 0.92rem; }
#responseMessage.success { color: #4ade80; }
#responseMessage.error   { color: #f87171; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 28px;
    margin-top: var(--section-py);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 18px;
    font-weight: 700;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-muted); transition: color .2s ease; }
.footer ul a:hover { color: var(--text); }
.footer-brand p { margin: 14px 0 18px; font-size: 0.95rem; max-width: 320px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.86rem; color: var(--text-dim);
    flex-wrap: wrap; gap: 12px;
}
.scroll-top {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    transition: transform .25s var(--ease), background .25s ease;
}
.scroll-top:hover { transform: translateY(-3px); background: var(--grad-primary); border-color: transparent; color: #fff; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }

/* ---------- Cursor follower (desktop only) ---------- */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--accent-2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), background .25s ease, border-color .25s ease;
    z-index: 9999;
    mix-blend-mode: difference;
    display: none;
}
@media (hover: hover) and (pointer: fine) { .cursor-dot { display: block; } }
.cursor-dot.hover { width: 56px; height: 56px; background: rgba(45,212,191,.15); }

/* ---------- Misc utilities ---------- */
.grow { flex-grow: 1; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 60px 0;
}
::selection { background: var(--accent-glow); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }
