:root {
    --bg: #ffffff;
    --bg-soft: #f4f7fc;
    --surface: #ffffff;
    --glass: #ffffff;
    --glass-border: #dbe5ff;
    --glass-strong: #f4f7fc;
    --white: #ffffff;
    --ink: #0a1a3a;
    --text: #0a1a3a;
    --text-soft: #4b5b7a;
    --blue-1: #2563eb;
    --blue-2: #3b82f6;
    --blue-3: #2563eb;
    --blue-deep: #1d4ed8;
    --blue-soft: #eef3ff;
    --blue-line: #dbe5ff;
    --blue-glow: rgba(37,99,235,0.18);
    --cyan: #2563eb;
    --purple: #1d4ed8;
    --shadow: 0 24px 64px rgba(10,26,58,0.08);
    --font: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-hero: 'Syne', sans-serif;
    --font-editorial: 'Bricolage Grotesque', 'Syne', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button,input,textarea,select { font: inherit; }
img { display: block; max-width: 100%; }

/* ===== INTRO LOADER ===== */
.intro-loader {
    position: fixed; inset: 0; z-index: 200;
    background: #ffffff;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.intro-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-inner {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    font-family: var(--font-hero);
}
.intro-line {
    display: block; height: 2px; width: 220px;
    background: linear-gradient(90deg, transparent, #003087, transparent);
    transform-origin: left; animation: introLine 1.6s ease-out infinite;
}
@keyframes introLine {
    0% { transform: scaleX(0); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); transform-origin: right; opacity: 0.4; }
}
.intro-name {
    display: inline-flex; align-items: baseline;
    font-family: var(--font-editorial), var(--font-display), sans-serif;
    font-size: clamp(2rem, 6vw, 4.4rem);
    font-weight: 800; color: #003087; letter-spacing: 0.06em;
    line-height: 1; max-width: 92vw;
}
.intro-name > span {
    display: inline-block; opacity: 0; transform: translateY(8px);
    animation: introType 0.18s ease-out forwards;
}
.intro-name .sp { width: 0.4em; opacity: 1; animation: none; }
.intro-name > span:nth-child(1)  { animation-delay: 0.05s; }
.intro-name > span:nth-child(2)  { animation-delay: 0.18s; }
.intro-name > span:nth-child(3)  { animation-delay: 0.31s; }
.intro-name > span:nth-child(4)  { animation-delay: 0.44s; }
.intro-name > span:nth-child(5)  { animation-delay: 0.57s; }
.intro-name > span:nth-child(6)  { animation-delay: 0.70s; }
.intro-name > span:nth-child(7)  { animation-delay: 0.83s; } /* space */
.intro-name > span:nth-child(8)  { animation-delay: 0.96s; }
.intro-name > span:nth-child(9)  { animation-delay: 1.09s; }
.intro-name > span:nth-child(10) { animation-delay: 1.22s; }
.intro-name > span:nth-child(11) { animation-delay: 1.35s; }
.intro-name > span:nth-child(12) { animation-delay: 1.48s; }
.intro-name > span:nth-child(13) { animation-delay: 1.61s; }
@keyframes introType {
    0%   { opacity: 0; transform: translateY(8px); }
    60%  { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Blinking caret at the end (typewriter feel) */
.intro-name .caret {
    width: 0.08em; height: 0.95em;
    margin-left: 0.08em;
    background: #003087;
    opacity: 1 !important; transform: none !important;
    animation: caretBlink 0.7s steps(1) infinite !important;
}
@keyframes caretBlink {
    0%,49% { opacity: 1; }
    50%,100% { opacity: 0; }
}

.intro-percent {
    margin-top: 4px;
    font-family: var(--font-mono); font-size: 0.85rem; color: #64748b;
    letter-spacing: 0.1em;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 100;
    width: 0%;
    background: var(--blue-1);
    box-shadow: 0 0 12px rgba(37,99,235,0.5);
    transition: width 0.1s linear;
}

/* SHADER BG — white + blue plasma lines */
#threeBg {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* GRAIN OVERLAY — disabled in light theme */
.grain { display: none; }

/* FLOATING ORBS — disabled in light theme */
.orb { display: none; }

/* CURSOR GLOW + DOT */
.cursor-glow {
    position: fixed; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.10) 0%, transparent 70%);
    pointer-events: none; z-index: 1; transform: translate(-50%,-50%);
    transition: opacity 0.3s, width 0.3s, height 0.3s;
}
.cursor-dot {
    position: fixed; width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue-1);
    pointer-events: none; z-index: 101; transform: translate(-50%,-50%);
    transition: transform 0.15s ease, opacity 0.2s;
}
.cursor-dot.is-hovering { transform: translate(-50%,-50%) scale(3); opacity: 0.4; }

/* CARD UTILITIES (light theme) */
.glass-panel {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--blue-line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 8px rgba(10,26,58,0.04);
}
.glass-card {
    background: #ffffff;
    border: 1px solid var(--blue-line);
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(.25,.46,.45,.94), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(10,26,58,0.04);
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(37,99,235,0.12);
    border-color: var(--blue-1);
}
.glass-btn {
    background: #ffffff;
    border: 1px solid var(--blue-line);
    border-radius: 10px;
    color: var(--ink);
    transition: all 0.3s ease;
}
.glass-btn:hover {
    background: var(--blue-soft);
    border-color: var(--blue-1);
    color: var(--blue-1);
    box-shadow: 0 4px 14px rgba(37,99,235,0.12);
}

/* HOVER CARD — solid blue border + soft shine */
.hover-card { position: relative; overflow: hidden; }
.hover-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(37,99,235,0.5), transparent 70%);
    -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; z-index: 2;
}
.hover-card:hover::before { opacity: 1; }
.card-shine {
    position: absolute; inset: -150% -50% auto auto;
    width: 60%; aspect-ratio: 1;
    background: linear-gradient(115deg, transparent 40%, rgba(37,99,235,0.06) 50%, transparent 60%);
    transform: rotate(25deg);
    pointer-events: none; opacity: 0;
    transition: inset 1s ease, opacity 0.4s ease;
    z-index: 1;
}
.hover-card:hover .card-shine { inset: -50% auto auto -50%; opacity: 1; }

/* GRADIENT TEXT — blue only */
.gradient-text {
    color: var(--blue-1);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* GLOW BUTTON */
.glow-btn { position: relative; overflow: hidden; }
.glow-btn::before {
    content: ''; position: absolute; inset: -2px;
    background: linear-gradient(135deg, var(--blue-1), var(--blue-deep));
    border-radius: inherit; z-index: -1; opacity: 0;
    transition: opacity 0.4s;
}
.glow-btn:hover::before { opacity: 1; }
.glow-btn::after { display: none; }

/* PAGE SHELL */
.page-shell {
    position: relative; z-index: 2;
    width: min(100% - 32px, 1400px);
    margin: 0 auto;
}

/* NAVBAR */
.navbar {
    position: sticky; top: 16px; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; margin-top: 16px; padding: 12px 18px;
    border-radius: 14px;
}
.navbar.is-scrolled { background: rgba(255,255,255,0.95); border-color: var(--blue-line); box-shadow: 0 8px 30px rgba(10,26,58,0.06); }
.brand, .desktop-nav { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 800; font-family: var(--font-display); }
.brand-mark {
    width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--glass-border);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.desktop-nav { gap: 4px; }
.nav-link {
    position: relative; padding: 10px 16px; border-radius: 8px;
    font-size: 0.88rem; font-weight: 600; color: var(--text-soft);
    transition: color 0.3s ease;
    overflow: hidden;
}
.nav-link::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px;
    height: 1px; background: var(--blue-2);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cv, .nav-action {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; font-weight: 700; font-size: 0.85rem;
    color: var(--white); border-radius: 10px;
}
.nav-action svg, .nav-cv svg, .btn svg, .project-link svg, .contact-links svg { width: 16px; height: 16px; }
.nav-cv, .nav-action { color: var(--ink); }
.nav-cv:hover, .nav-action:hover { color: var(--blue-1); }

.mobile-toggle {
    display: none; width: 44px; height: 44px;
    border: 1px solid var(--blue-line); border-radius: 10px;
    background: #ffffff; color: var(--ink); cursor: pointer;
}
.mobile-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
    position: fixed; inset: 88px 16px auto; z-index: 49;
    display: none; flex-direction: column; gap: 6px;
    padding: 14px; border-radius: 14px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 16px; border-radius: 10px;
    background: #ffffff; color: var(--ink); font-weight: 700;
    border: 1px solid var(--blue-line);
    transition: background 0.3s, color 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.mobile-menu a:hover { background: var(--blue-soft); color: var(--blue-1); }
.mobile-cv { background: var(--blue-1) !important; color: #ffffff !important; border-color: var(--blue-1) !important; }

/* ===== EDITORIAL HERO (magazine layout) ===== */
.editorial-hero {
    padding: 40px 0 80px;
    display: flex; flex-direction: column; gap: 28px;
}

.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.hello-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--blue-line);
    font-size: 0.85rem; color: var(--ink); font-weight: 600;
    box-shadow: 0 2px 8px rgba(10,26,58,0.04);
}
.hello-pill em { color: var(--text-soft); font-style: normal; }

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    color: var(--text-soft); font-style: italic;
}
.hero-tagline em { color: var(--ink); font-style: italic; }
.arrow-down { display: inline-block; color: var(--blue-1); transform: translateY(2px); margin-left: 4px; }

/* === HERO STAGE — massive editorial title with embedded photo === */
.hero-stage {
    position: relative;
    padding: 10px 0 0;
}
.editorial-title {
    font-family: var(--font-editorial);
    font-weight: 800;
    font-size: clamp(3.6rem, 12vw, 11rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-transform: none;
    display: flex; flex-direction: column; gap: 0.04em;
}
.editorial-title .line {
    display: flex; align-items: center; gap: 0.2em; flex-wrap: nowrap;
}
.editorial-title .line-1 { justify-content: flex-start; }
.editorial-title .line-2 { justify-content: center; gap: 0; }
.editorial-title .line-3 { justify-content: flex-end; }

.editorial-title .word {
    display: inline-block; overflow: hidden; padding-bottom: 0.05em;
    line-height: inherit;
}
.editorial-title .word > span {
    display: inline-block; transform: translateY(110%); will-change: transform;
}

.editorial-title .amp,
.editorial-title .serif-em,
.editorial-title .dot-plus,
.photo-slot,
.hello-pill,
.hero-tagline { opacity: 0; }

.editorial-title .amp {
    font-family: var(--font-serif); font-style: italic;
    font-weight: 400; color: var(--blue-1);
    transform: translateY(0.08em);
}
.editorial-title .serif-em {
    font-family: var(--font-serif); font-style: italic;
    font-weight: 400; color: var(--blue-1);
}
.editorial-title .dot-plus {
    font-family: var(--font-editorial); font-size: 0.65em;
    color: var(--blue-1); margin-left: 0.15em;
    transform: translateY(-0.35em); display: inline-block;
}

/* Photo embedded in the title (between "Devel" and "oper") */
.photo-slot {
    display: inline-flex; align-items: center; justify-content: center;
    width: clamp(80px, 14vw, 200px);
    height: clamp(90px, 16vw, 230px);
    margin: 0 0.08em;
    border-radius: 100px;
    overflow: hidden;
    background: var(--blue-1);
    box-shadow: 0 20px 50px rgba(37,99,235,0.25);
    position: relative;
    flex-shrink: 0;
    transform: rotate(-4deg);
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
    border: 3px solid #ffffff;
}
.photo-slot:hover { transform: rotate(0deg) scale(1.05); }
.photo-slot img {
    width: 100%; height: 100%; object-fit: cover;
}

/* === INFO CARDS GRID (Qlark-inspired) === */
.hero-bottom {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 14px; align-items: stretch;
}
.info-card {
    position: relative; padding: 22px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--blue-line);
    box-shadow: 0 2px 8px rgba(10,26,58,0.04);
    display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.info-card:hover { transform: translateY(-4px); border-color: var(--blue-1); box-shadow: 0 12px 28px rgba(37,99,235,0.12); }

/* Solid blue card variant — for visual rhythm */
.info-card.light-card {
    background: var(--blue-1);
    border-color: var(--blue-1);
    color: #ffffff;
}
.info-card.light-card .info-eyebrow { color: rgba(255,255,255,0.7); }
.info-card.light-card .info-eyebrow em { color: #ffffff; }
.info-card.light-card .info-sub { color: rgba(255,255,255,0.8); }
.info-card.light-card .num-badge { background: rgba(255,255,255,0.2); color: #ffffff; border-color: rgba(255,255,255,0.3); }
.info-card.light-card .info-h { color: #ffffff; }
.info-card.light-card .info-h em { color: #ffffff; font-style: italic; opacity: 0.85; font-family: var(--font-serif); }

.info-eyebrow {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--blue-1);
}
.info-eyebrow em {
    font-family: var(--font-serif); font-style: italic; font-weight: 400;
    text-transform: none; letter-spacing: 0; color: var(--ink);
    font-size: 1.1em; margin-left: 4px;
}
.info-eyebrow.dark { color: var(--blue-1); }
.info-eyebrow.dark em { color: var(--ink); }

.info-card.info-card-bio p {
    color: var(--text); font-size: 1rem; line-height: 1.55;
}
.info-card.info-card-bio strong { color: var(--ink); font-weight: 700; }
.info-card.info-card-bio .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; }

.info-h {
    font-family: var(--font-editorial);
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    line-height: 1; font-weight: 800; color: var(--ink);
    letter-spacing: -0.02em;
}
.info-h em {
    font-family: var(--font-serif); font-style: italic;
    font-weight: 400; color: var(--blue-1);
}
.info-h .info-sm {
    display: block; font-family: var(--font); font-size: 0.6em;
    font-weight: 500; color: rgba(255,255,255,0.8);
    margin-top: 4px; letter-spacing: 0;
}
.info-sub {
    font-size: 0.82rem; color: var(--text-soft); margin-top: 0;
    font-family: var(--font-mono); letter-spacing: 0.02em;
}

.num-badge {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue-soft); color: var(--blue-1);
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
    border: 1px solid var(--blue-line);
}
.num-badge.sm { width: 26px; height: 26px; font-size: 0.62rem; top: 10px; right: 10px; }

/* === TOP CREATIONS STRIP === */
.top-creations {
    margin-top: 8px;
    padding: 18px;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--blue-line);
}
.top-creations-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.see-all {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue-2); font-weight: 700; font-size: 0.85rem;
    transition: gap 0.3s;
}
.see-all:hover { gap: 12px; }
.see-all svg { width: 14px; height: 14px; }

.creations-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.creation-card {
    position: relative; overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--blue-line);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    aspect-ratio: 16/10;
}
.creation-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--blue-1);
    box-shadow: 0 20px 40px rgba(37,99,235,0.18);
}
.creation-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.creation-card:hover img { transform: scale(1.08); }
.creation-card .num-badge.sm {
    background: var(--blue-1);
    color: #ffffff; z-index: 2; border-color: var(--blue-1);
}
.creation-label {
    position: absolute; left: 10px; bottom: 10px;
    padding: 5px 10px; border-radius: 999px;
    background: #ffffff;
    color: var(--blue-1); font-size: 0.7rem; font-weight: 700;
    border: 1px solid var(--blue-line);
    z-index: 2;
}

/* === LEGACY HERO STYLES (kept for fallback / unused now) === */
.hero-section {
    min-height: calc(100vh - 120px);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; align-items: center; padding: 60px 0 40px;
}

.eyebrow {
    display: flex; align-items: center; gap: 10px;
    color: var(--blue-1); font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue-1);
    box-shadow: 0 0 12px var(--blue-glow);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(1.3); } }

.hero-copy h1 {
    margin-top: 20px;
    font-family: var(--font-hero);
    font-size: clamp(2.6rem, 4.5vw, 4.2rem);
    font-weight: 800; line-height: 1.05;
    color: var(--ink);
}

/* WORD REVEAL — char/word containers */
.reveal-words .word {
    display: inline-block; overflow: hidden; padding-bottom: 0.05em;
}
.reveal-words .word > span {
    display: inline-block; transform: translateY(110%);
    will-change: transform;
}

.hero-lede {
    max-width: 540px; margin: 20px 0 0;
    color: var(--text-soft); font-size: 1.1rem;
}
.hero-lede strong { color: var(--ink); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; min-height: 50px; padding: 14px 22px;
    border: 1px solid var(--blue-line); border-radius: 12px;
    font-weight: 700; cursor: pointer; color: var(--ink);
    transition: all 0.35s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
    background: var(--blue-1); color: #ffffff;
    border: none; box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 12px 30px rgba(37,99,235,0.4); }
.btn-secondary { background: #ffffff; color: var(--ink); }
.btn-secondary:hover { background: var(--blue-soft); color: var(--blue-1); border-color: var(--blue-1); }
.btn-ghost {
    background: transparent; border-color: transparent;
    color: var(--text-soft);
}
.btn-ghost:hover { color: var(--blue-1); border-color: var(--blue-line); }

/* LIVE PILL */
.live-pill {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 28px; padding: 8px 14px 8px 12px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-line);
    border-radius: 999px;
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--ink); flex-wrap: wrap;
}
.live-pill .live-label { color: var(--text-soft); }
.live-pill .live-target { color: var(--ink); font-weight: 600; }
.pulse-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue-1); position: relative; flex-shrink: 0;
}
.pulse-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid var(--blue-1); opacity: 0.7;
    animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* HERO SHOWCASE */
.hero-showcase { position: relative; min-height: 480px; }

.profile-panel {
    position: absolute; right: 5%; top: 10%;
    width: min(48%, 260px); overflow: hidden;
    transform-style: preserve-3d; z-index: 3;
}
.profile-glow {
    position: absolute; inset: -20px; z-index: -1;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.5s;
}
.profile-panel:hover .profile-glow { opacity: 1; }
.profile-panel img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px 14px 0 0; }

.profile-caption {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 14px; color: var(--text-soft); font-size: 0.82rem;
}
.profile-caption strong { color: var(--ink); }

.project-stack { position: absolute; inset: 0; }

.stack-card {
    position: absolute; width: min(62%, 340px);
    overflow: hidden; padding: 0;
    transition: transform 0.5s cubic-bezier(.25,.46,.45,.94), box-shadow 0.5s ease;
}
.stack-card:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.03) !important;
    box-shadow: 0 24px 60px rgba(37,99,235,0.2);
    z-index: 5;
}
.stack-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.stack-card span {
    display: block; padding: 12px 16px;
    font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--blue-1);
}

.stack-card-one { left: 0; bottom: 5%; transform: rotate(-5deg); }
.stack-card-two { right: 0; bottom: 24%; transform: rotate(4deg); }
.stack-card-three { left: 14%; top: 2%; transform: rotate(-2deg); }

/* MARQUEE */
.signal-strip {
    overflow: hidden; margin: 20px 0 80px;
    border: 1px solid var(--blue-line); border-radius: 14px;
    background: var(--blue-1);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.signal-track {
    display: flex; width: max-content; gap: 0; padding: 18px 0;
    animation: marquee 38s linear infinite;
}
.signal-track span {
    font-size: clamp(1.1rem, 2.5vw, 2rem);
    font-weight: 800; white-space: nowrap; padding: 0 12px;
    color: #ffffff;
    transition: color 0.3s, transform 0.3s;
}
.signal-track span:hover { transform: translateY(-2px); }
.signal-track .sep { color: rgba(255,255,255,0.5); font-size: 0.7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTIONS */
.intro-grid, .contact-section {
    display: grid; grid-template-columns: 0.28fr 1fr 0.7fr;
    gap: 36px; align-items: start; padding: 100px 0;
    border-top: 1px solid var(--blue-line);
}
.section-kicker {
    color: var(--blue-1); font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.14em; text-transform: uppercase;
}

.intro-copy h2, .section-heading h2, .contact-copy h2 {
    font-family: var(--font-editorial);
    font-size: clamp(2.2rem, 4.5vw, 4.4rem);
    font-weight: 800; line-height: 1.05; color: var(--ink);
    letter-spacing: -0.02em;
}
.intro-copy p, .contact-copy p, .case-copy p {
    margin-top: 18px; color: var(--text-soft); font-size: 1.05rem;
}

/* METRICS */
.metrics { display: grid; gap: 12px; }
.metric-card { padding: 22px; }
.metric-card strong {
    display: block; font-size: 2.6rem; line-height: 1;
    color: var(--blue-1);
    font-family: var(--font-editorial); font-weight: 800;
}
.metric-card span { color: var(--text-soft); font-weight: 600; }

/* SECTIONS SHARED */
.toolbox-section, .projects-section, .process-section, .testimonials-section, .now-section {
    padding: 100px 0; border-top: 1px solid var(--blue-line);
}
.section-heading {
    display: grid; grid-template-columns: 0.26fr 1fr;
    gap: 34px; align-items: start; margin-bottom: 48px;
}

/* TOOLBOX */
.toolbox-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tool-card, .process-step { padding: 28px; }
.tool-icon-wrap {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-line);
    transition: transform 0.4s ease, background 0.4s ease;
}
.hover-card:hover .tool-icon-wrap { transform: rotate(-8deg) scale(1.1); background: var(--blue-1); }
.hover-card:hover .tool-icon-wrap svg { color: #ffffff; }
.tool-icon-wrap svg, .tool-card svg { width: 24px; height: 24px; color: var(--blue-1); transition: color 0.4s ease; }
.tool-card h3, .process-step h3, .now-card h3 {
    margin-top: 18px; font-size: 1.15rem; font-family: var(--font-display); color: var(--ink);
}
.tool-card p, .process-step p, .project-info p, .now-card p { margin-top: 10px; color: var(--text-soft); font-size: 0.92rem; }

/* PROJECTS */
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
    min-height: 42px; padding: 10px 18px;
    border: 1px solid var(--blue-line); border-radius: 10px;
    background: #ffffff; color: var(--text-soft);
    font-weight: 700; cursor: pointer; transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--blue-1);
    color: #ffffff; border-color: var(--blue-1);
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}

.featured-case {
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    gap: 0; margin-bottom: 24px; overflow: hidden;
    position: relative;
}
.featured-case.reverse { grid-template-columns: 0.8fr 1.2fr; }
.featured-case.reverse .case-media { order: 2; }
.case-media { position: relative; overflow: hidden; }
.case-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.case-badge {
    position: absolute; top: 16px; left: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--blue-line);
    color: var(--blue-1); font-size: 0.74rem; font-weight: 700;
    font-family: var(--font-mono); letter-spacing: 0.05em;
    z-index: 3;
}
.case-copy { padding: clamp(24px, 4vw, 50px); align-self: center; }
.case-label {
    color: var(--blue-1); font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.case-copy h3 {
    margin-top: 12px; font-family: var(--font-editorial);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem); line-height: 1.05; color: var(--ink);
    letter-spacing: -0.02em;
}

/* ESCAVIO CASE — plain blue & white */
.escavio-art {
    min-height: 460px;
    background: #ffffff;
    display: flex; align-items: center; justify-content: center;
    position: relative; padding: 24px;
}
.escavio-art img {
    width: 100%; height: 100%;
    max-height: 460px;
    object-fit: contain;
    min-height: auto;
}
.escavio-art .case-badge {
    background: #ffffff; border-color: #dbe5ff;
    color: #2563eb;
}

.escavio-mock {
    position: relative; z-index: 2;
    display: flex; align-items: flex-end; justify-content: center;
    gap: 16px; width: 100%; max-width: 600px;
}

/* Desktop window card */
.esc-window {
    flex: 1; min-width: 0;
    background: #ffffff; border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.06);
    padding: 20px 18px; color: #0a0f24;
}
.esc-top {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 0; margin-bottom: 18px;
}
.esc-brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 0.95rem; color: #2563eb;
    font-family: var(--font-display);
}
.esc-logo {
    width: 26px; height: 26px; border-radius: 6px;
    background: #0a0f24; color: #ffffff;
    display: inline-flex; align-items: center; justify-content: center;
}
.esc-logo svg { width: 13px; height: 13px; }
.esc-signin { font-size: 0.72rem; color: #2563eb; font-weight: 600; }

.esc-body { padding: 6px 4px 4px; text-align: center; }
.esc-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    background: #ffffff; border: 1px solid #dbe5ff;
    color: #2563eb; font-size: 0.6rem; font-weight: 600;
}
.esc-pill svg { width: 11px; height: 11px; }
.esc-pill.mini { font-size: 0.48rem; padding: 3px 8px; }

.esc-headline {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.7vw, 1.4rem);
    line-height: 1.2; font-weight: 700; color: #0a0f24;
}
.esc-headline em { font-style: normal; color: #2563eb; }
.esc-sub {
    margin-top: 10px !important; color: #475569 !important;
    font-size: 0.6rem !important; line-height: 1.5;
}

.esc-ctas { margin-top: 14px; display: grid; gap: 6px; }
.esc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 12px; border-radius: 999px;
    font-size: 0.62rem; font-weight: 700;
}
.esc-btn svg { width: 11px; height: 11px; }
.esc-btn-primary { background: #2563eb; color: #ffffff; }
.esc-btn-outline { border: 1.5px solid #2563eb; color: #2563eb; background: transparent; }

.esc-trust {
    margin-top: 14px;
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 12px; border-radius: 10px;
    background: #ffffff; border: 1px solid #e5edff;
    text-align: left;
}
.esc-trust-icon {
    width: 22px; height: 22px; border-radius: 6px;
    background: #e5edff; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.esc-trust-icon svg { width: 11px; height: 11px; }
.esc-trust strong { font-size: 0.62rem; color: #0a0f24; display: block; }
.esc-trust p { margin: 2px 0 0 !important; color: #64748b !important; font-size: 0.55rem !important; line-height: 1.35; }

/* iPhone mock (notch style) */
.esc-phone {
    width: 120px; flex-shrink: 0;
    background: #0a0f24; border-radius: 22px;
    padding: 5px; box-shadow: 0 10px 30px rgba(15,23,42,0.18);
    position: relative;
}
.esc-phone-notch {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 14px; border-radius: 999px; background: #000;
    z-index: 2;
}
.esc-phone-screen {
    background: #ffffff; border-radius: 17px;
    padding: 30px 10px 14px; text-align: center;
    min-height: 230px;
}
.esc-phone-screen h6 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 0.72rem; line-height: 1.25; color: #0a0f24; font-weight: 700;
}
.esc-phone-screen h6 em { font-style: normal; color: #2563eb; }
.esc-mini-btns { margin-top: 10px; display: grid; gap: 5px; }
.esc-mini-btn {
    padding: 6px; border-radius: 999px;
    font-size: 0.55rem; font-weight: 700;
}
.esc-mini-btn.primary { background: #2563eb; color: #fff; }
.esc-mini-btn.outline { border: 1px solid #2563eb; color: #2563eb; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-tags span {
    padding: 6px 12px; border: 1px solid var(--blue-line);
    border-radius: 999px; background: var(--blue-soft);
    color: var(--blue-1); font-size: 0.76rem; font-weight: 700;
    font-family: var(--font-mono);
}

.project-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 20px; color: var(--blue-1); font-weight: 700;
    transition: gap 0.3s;
}
.project-link:hover { gap: 14px; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { overflow: hidden; }
.project-card.is-hidden { display: none; }

.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.hover-card:hover .card-img-wrap img { transform: scale(1.08); }
.card-img-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(180deg, transparent 40%, rgba(37,99,235,0.9));
    color: #ffffff; font-weight: 700;
    opacity: 0; transition: opacity 0.4s ease;
}
.card-img-overlay svg { width: 18px; height: 18px; }
.hover-card:hover .card-img-overlay { opacity: 1; }

.project-info { padding: 22px; }
.project-info > span {
    color: var(--blue-1); font-size: 0.74rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.project-info h3 { margin-top: 8px; font-size: 1.3rem; font-family: var(--font-display); color: var(--ink); }

/* PROCESS */
.step-number {
    font-family: var(--font-editorial); font-size: 2rem; font-weight: 800;
    color: var(--blue-1);
}

/* NOW (Education + current builds) */
.now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.now-card { padding: 28px; }
.now-card svg {
    width: 32px; height: 32px; color: var(--blue-1);
    transition: transform 0.4s ease;
}
.hover-card.now-card:hover svg { transform: rotate(-8deg) scale(1.15); }
.now-meta {
    margin-top: 6px !important; color: var(--blue-1) !important;
    font-family: var(--font-mono); font-size: 0.78rem !important;
    letter-spacing: 0.04em;
}

/* TESTIMONIALS */
.testimonial-shell {
    display: grid; grid-template-columns: 54px 1fr 54px;
    gap: 16px; align-items: center;
}
.slider-btn {
    width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
    color: var(--blue-1); cursor: pointer;
}
.testimonial-track { position: relative; min-height: 260px; }
.testimonial-card {
    position: absolute; inset: 0;
    display: flex; align-items: center; padding: 48px clamp(28px, 5vw, 64px);
    opacity: 0; pointer-events: none;
    transform: translateY(20px) scale(0.97);
    transition: all 0.5s cubic-bezier(.25,.46,.45,.94);
}
.testimonial-card.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.testimonial-card > div { width: 100%; }
.testimonial-card p {
    position: relative; padding-left: 0;
    font-family: var(--font-editorial); font-size: clamp(1.4rem, 2.8vw, 2.4rem);
    line-height: 1.25; color: var(--ink); font-weight: 700;
    letter-spacing: -0.01em;
}
.testimonial-card p::before {
    content: '"'; display: block;
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(3rem, 6vw, 5rem); line-height: 0.6;
    color: var(--blue-1); margin-bottom: 8px;
}
.testimonial-card strong {
    display: block; margin-top: 24px; color: var(--blue-1);
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
}
.testimonial-card > div > span {
    display: block; margin-top: 4px; color: var(--text-soft);
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
}

/* Dots indicator */
.testimonial-dots {
    grid-column: 1 / -1;
    display: flex; justify-content: center; gap: 8px;
    margin-top: 18px;
}
.t-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue-line); border: none; padding: 0;
    cursor: pointer; transition: width 0.3s ease, background 0.3s ease;
}
.t-dot.active { width: 24px; background: var(--blue-1); border-radius: 4px; }
.t-dot:hover { background: var(--blue-1); }

/* Swipe hint on mobile */
.testimonial-shell { touch-action: pan-y; }

/* CONTACT */
.contact-section { grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-links a {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 16px; font-weight: 700; color: var(--ink);
}

.contact-form { display: grid; gap: 18px; padding: 28px; }
.contact-form label { display: grid; gap: 8px; color: var(--ink); font-weight: 700; font-size: 0.9rem; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; border: 1px solid var(--blue-line); border-radius: 10px;
    background: #ffffff; color: var(--ink); padding: 14px 16px; outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: var(--blue-1);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    background: var(--blue-soft);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-soft); }
.contact-form select option { background: #ffffff; color: var(--ink); }

.form-status {
    display: none; padding: 12px; border-radius: 10px;
    background: var(--blue-soft); color: var(--blue-1); font-weight: 700;
}
.form-status.visible { display: block; }

/* FOOTER */
.footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 28px 0 40px;
    border-top: 1px solid var(--blue-line); color: var(--text-soft);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; color: var(--ink);
}
.footer-socials a:hover { color: var(--blue-1); }
.footer-socials a svg { width: 18px; height: 18px; }

/* ANIMATIONS */
.anim-slide { opacity: 0; transform: translateY(40px); }

/* RESPONSIVE */
@media (max-width: 1120px) {
    .hero-section, .intro-grid, .section-heading, .featured-case, .contact-section { grid-template-columns: 1fr; }
    .featured-case.reverse { grid-template-columns: 1fr; }
    .featured-case.reverse .case-media { order: 0; }
    .hero-showcase { min-height: 520px; }
    .toolbox-grid, .process-grid, .projects-grid, .now-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-cv span, .nav-action span { display: none; }
    .nav-cv, .nav-action { padding: 10px 12px; }

    /* Editorial hero — tablet */
    .hero-bottom { grid-template-columns: 1fr 1fr; }
    .info-card.info-card-bio { grid-column: span 2; }
    .creations-row { grid-template-columns: repeat(2, 1fr); }
    .editorial-title { font-size: clamp(3rem, 11vw, 7rem); }
}

@media (max-width: 760px) {
    .page-shell { width: min(100% - 20px, 1400px); }
    .desktop-nav, .nav-actions { display: none; }
    .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .hero-section { padding-top: 40px; }
    .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
    .hero-showcase { min-height: 480px; }
    .profile-panel { width: 60%; right: 0; }
    .stack-card { width: 75%; }
    .intro-grid, .toolbox-section, .projects-section, .process-section, .testimonials-section, .contact-section, .now-section { padding: 64px 0; }
    .toolbox-grid, .process-grid, .projects-grid, .now-grid { grid-template-columns: 1fr; }
    .case-media img { min-height: 220px; }
    .escavio-art { min-height: 320px; padding: 20px; }
    .esc-phone { display: none; }
    .esc-window { transform: none; }
    .testimonial-shell { grid-template-columns: 1fr; }
    .slider-btn { display: none; }
    .testimonial-track { min-height: 340px; }
    .testimonial-card { padding: 28px 22px; }
    .cursor-glow, .cursor-dot { display: none; }
    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { display: none; }
    .footer { flex-direction: column; text-align: center; }
    .live-pill { font-size: 0.72rem; }

    /* Editorial hero — mobile */
    .editorial-hero { padding: 12px 0 32px; gap: 18px; }
    .editorial-title {
        font-size: clamp(2.4rem, 13vw, 4.2rem);
        line-height: 0.95;
        letter-spacing: -0.03em;
        gap: 0.02em;
    }
    .editorial-title .line-1, .editorial-title .line-2, .editorial-title .line-3 {
        justify-content: flex-start; flex-wrap: wrap;
    }
    .editorial-title .line-2 { gap: 0.08em; align-items: center; }
    .photo-slot {
        width: 64px; height: 72px;
        transform: rotate(-3deg);
        border-radius: 50px;
        margin: 0 0.06em;
        box-shadow: 0 8px 20px rgba(37,99,235,0.18);
    }
    .hero-bottom { grid-template-columns: 1fr; gap: 10px; }
    .info-card.info-card-bio { grid-column: span 1; padding: 20px; }
    .info-card.info-card-bio p { font-size: 0.95rem; }
    .info-card { padding: 18px; }
    .info-card .info-h { font-size: 1.8rem; }
    .num-badge { width: 28px; height: 28px; font-size: 0.66rem; top: 10px; right: 10px; }
    .creations-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .top-creations { padding: 14px; }
    .hero-tagline { font-size: 0.9rem; width: 100%; }
    .hello-pill { font-size: 0.78rem; padding: 8px 14px; }
    .hello-pill span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero-actions { gap: 8px; }
    .btn { min-height: 44px; padding: 10px 16px; font-size: 0.88rem; }
    /* Compress section padding on mobile */
    .signal-strip { margin: 12px 0 48px; }
    .signal-track span { font-size: 1.1rem; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    #threeBg, .cursor-glow, .cursor-dot, .orb, .grain, .intro-loader { display: none; }
    .reveal-words .word > span,
    .editorial-title .word > span { transform: none; }
    .editorial-title .amp,
    .editorial-title .serif-em,
    .editorial-title .dot-plus,
    .photo-slot,
    .hello-pill,
    .hero-tagline { opacity: 1; }
}
