/* ═══════════════════════════════════════════════════════════════
   OPHELIOS — Development Studio
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg: #050508;
    --bg-alt: #08080e;
    --bg-card: #0c0c14;
    --bg-elevated: #111119;
    --border: rgba(255,255,255,0.06);
    --border-active: rgba(255,255,255,0.12);
    --text: #ccc8d8;
    --text-bright: #f0eef5;
    --text-dim: #6b6780;
    --accent: #e84393;
    --accent-orange: #f07832;
    --accent-purple: #9b59b6;
    --gradient: linear-gradient(135deg, #f07832 0%, #e84393 50%, #9b59b6 100%);
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(.16,1,.3,1);
    --container: 1100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-card);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ─── SITE MAIN WRAPPER (footer reveal) ──────────────────────── */
.site-main {
    position: relative;
    z-index: 1;
    background: var(--bg);
    border-radius: 0 0 64px 64px;
    clip-path: inset(0 round 0 0 64px 64px);
    margin-bottom: -1px;
}

/* ─── LIGHT SECTION VARIANT ──────────────────────────────────── */
.section-light {
    background: #f5f3f0;
    color: #2a2a34;
}
.section-light .section-label span { color: var(--accent); }
.section-light .section-label { color: #888; }
.section-light .section-label::after {
    background: linear-gradient(to right, rgba(0,0,0,.08), transparent);
}
.section-light .section-heading { color: #1a1a24; }
.section-light .section-desc { color: #666; }
.section-light .manifesto-text { color: #1a1a24; }
.manifesto-section.section-light { background: #f5f3f0; }
.manifesto-section.section-light::before {
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(232,67,147,.03) 0%, transparent 70%);
}

/* ─── NAV ─────────────────────────────────────────────────────── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 0 2rem;
    transition: padding .5s var(--ease), top .5s var(--ease);
}
.site-nav .nav-inner {
    transition: max-width .5s var(--ease), height .4s var(--ease), background .4s,
                backdrop-filter .3s, border-radius .5s var(--ease), border-color .4s,
                box-shadow .4s, padding .5s var(--ease);
}
.site-nav.scrolled {
    padding: 0 2rem;
    top: 12px;
}
.site-nav.scrolled .nav-brand-text {
    width: 0; overflow: hidden; opacity: 0;
    transition: width .4s var(--ease), opacity .3s;
}
.site-nav.scrolled .nav-brand { gap: 0; }
.site-nav.scrolled .nav-inner {
    max-width: 720px;
    height: 52px;
    background: rgba(8,8,14,.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 100px;
    padding: 0 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 0;
}
.nav-brand {
    display: flex; align-items: center; gap: .6rem;
}
.nav-brand-icon { height: 24px; width: auto; }
.nav-brand-text {
    font-family: var(--font-heading);
    font-weight: 800; font-size: .85rem;
    letter-spacing: .14em; color: var(--text-bright);
    transition: width .4s var(--ease), opacity .3s;
    white-space: nowrap;
}
.nav-links {
    display: flex; gap: 2.5rem;
}
.nav-links a {
    font-family: var(--font-heading);
    font-size: .78rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-dim);
    transition: color .2s;
}
.nav-links a:hover { color: var(--text-bright); }
.nav-links a.active { color: var(--text-bright); }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.nav-lang {
    display: flex; align-items: center; gap: .3rem;
    font-family: var(--font-mono); font-size: .7rem;
}
.lang-current { color: var(--text-bright); font-weight: 500; }
.lang-switch { color: var(--text-dim); transition: color .2s; }
.lang-switch:hover { color: var(--accent); }
.lang-divider { color: rgba(255,255,255,.15); }

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--text); transition: all .3s var(--ease);
    transform-origin: center;
}
.nav-toggle.open span:first-child { transform: rotate(45deg) translate(3.5px, 3.5px); }
.nav-toggle.open span:last-child { transform: rotate(-45deg) translate(3.5px, -3.5px); }

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}

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

.hero-fog {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .2;
    filter: brightness(.7);
    pointer-events: none;
}

.hero-watermark {
    position: absolute;
    width: 85vw; max-width: 900px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: .02;
    filter: blur(1px);
    pointer-events: none;
    z-index: 4;
    animation: watermarkFloat 20s ease-in-out infinite;
}

@keyframes watermarkFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -52%) scale(1.02) rotate(.5deg); }
}

.hero-gradient {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(240,120,50,.1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 40%, rgba(155,89,182,.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(232,67,147,.07) 0%, transparent 60%);
}

.hero-orbs {
    position: absolute; inset: 0; z-index: 2;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: screen;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-orb-1 {
    width: 45vw; height: 45vw;
    top: -10%; left: -5%;
    background: radial-gradient(circle, rgba(240,120,50,.12) 0%, transparent 70%);
    filter: blur(80px);
    animation: orbFloat1 25s ease-in-out infinite;
}
.hero-orb-2 {
    width: 40vw; height: 40vw;
    bottom: -15%; right: -5%;
    background: radial-gradient(circle, rgba(232,67,147,.1) 0%, transparent 70%);
    filter: blur(100px);
    animation: orbFloat2 30s ease-in-out infinite;
}
.hero-orb-3 {
    width: 35vw; height: 35vw;
    top: 30%; left: 40%;
    background: radial-gradient(circle, rgba(155,89,182,.09) 0%, transparent 70%);
    filter: blur(90px);
    animation: orbFloat3 35s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8vw, 5vh) scale(1.1); }
    66% { transform: translate(-3vw, 8vh) scale(.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-6vw, -4vh) scale(.9); }
    66% { transform: translate(5vw, -7vh) scale(1.08); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5vw, -6vh) scale(1.05); }
    66% { transform: translate(-7vw, 3vh) scale(.92); }
}

.hero-grain {
    position: absolute; inset: 0; z-index: 3;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}
.hero-grid {
    position: absolute; inset: 0; z-index: 2;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
}
.hero-fade {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 200px;
    z-index: 5;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.hero-content {
    position: relative; z-index: 10;
    max-width: var(--container);
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-mono); font-size: .72rem;
    letter-spacing: .05em;
    color: var(--text-dim);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    padding: .4rem 1rem; border-radius: 100px;
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: .6; } 50% { opacity: 1; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 1.5rem;
}
.hero-title-line { display: block; color: var(--text-bright); }
.hero-title-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem; color: var(--text);
    max-width: 520px; line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-heading);
    font-size: .82rem; font-weight: 700;
    letter-spacing: .04em;
    padding: .85rem 2rem; border-radius: 8px;
    transition: all .3s var(--ease);
    cursor: pointer; border: none;
}
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 24px rgba(232,67,147,.2);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(232,67,147,.35);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-active);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text-bright);
}

.hero-pills {
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.pill {
    font-family: var(--font-mono); font-size: .65rem;
    color: var(--text-dim); letter-spacing: .03em;
    padding: .3rem .75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--accent); color: var(--text); }

.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.hero-scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2.5s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { opacity: 0; transform: scaleY(.3); transform-origin: top; }
    30% { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 8rem 0; position: relative; }
.section-dark { background: var(--bg-alt); }

.section-label {
    font-family: var(--font-mono); font-size: .7rem;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 2.5rem;
    display: flex; align-items: center; gap: .75rem;
}
.section-label span {
    color: var(--accent);
    font-weight: 500;
}
.section-label::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; color: var(--text-bright);
    letter-spacing: -.01em;
    margin-bottom: .75rem;
}
.section-desc {
    font-size: 1rem; color: var(--text-dim);
    max-width: 500px; margin-bottom: 3.5rem;
}

/* ─── ABOUT (circle reveal transition) ────────────────────────── */
.about-statement {
    background: var(--bg);
    padding: 0;
    position: relative;
    min-height: 200vh;
}
.about-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    will-change: background;
}
.about-inner {
    width: 100%;
    max-width: var(--container);
    padding: 0 2rem;
    text-align: center;
}
.about-tagline-wrap {
    position: relative;
    margin-bottom: 2rem;
}
.about-tagline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
}
.about-tagline--light {
    color: #fff;
}
.about-tagline--dark {
    color: #1a1a24;
    position: absolute;
    inset: 0;
    clip-path: circle(0px at 50vw 50vh);
    will-change: clip-path;
}
.about-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
    pointer-events: none;
}
.about-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.about-body {
    max-width: 600px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.about-desc {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
}
.about-founders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: left;
}
.about-founder {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.about-founder::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f07832, #e84393, #9b59b6);
}
.about-founder:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.about-monogram {
    flex-shrink: 0;
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--gradient);
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 800;
    color: #fff;
    letter-spacing: .03em;
}
.about-info { flex: 1; min-width: 0; }
.about-photo {
    flex-shrink: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,0,0,.06);
}
.about-name-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .15rem;
}
.about-name {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 800;
    color: #1a1a24;
}
.about-linkedin {
    color: #aaa;
    font-size: .85rem;
    transition: color .2s;
}
.about-linkedin:hover { color: var(--accent); }
.about-role {
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--accent);
    letter-spacing: .05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .6rem;
}
.about-bio {
    font-size: .82rem;
    color: #666;
    line-height: 1.6;
}

/* ─── SECTION DIVIDERS (remove this block to disable) ────────── */
.section + .section::before,
.section + .stats-section::before,
.stats-section + .section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232,67,147,.15), rgba(240,120,50,.1), transparent);
    position: absolute;
    top: 0; left: 10%; right: 10%;
}

/* ─── AMBIENT SECTION GLOWS ──────────────────────────────────── */
#services::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 40% 50% at 90% 20%, rgba(240,120,50,.04) 0%, transparent 70%);
    pointer-events: none;
}
#projects::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 40% 50% at 10% 80%, rgba(155,89,182,.04) 0%, transparent 70%);
    pointer-events: none;
}
#contact::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 40% at 70% 50%, rgba(232,67,147,.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── SERVICES ───────────────────────────────────────────────── */
.services-header {
    margin-bottom: 4rem;
}
.services-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1rem;
}
.services-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 550px;
    line-height: 1.7;
}
.services-list {
    border-top: 1px solid var(--border);
}
.service-item {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .3s;
}
.service-item:hover { background: rgba(255,255,255,.02); }
.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}
.service-num {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--accent);
    letter-spacing: .06em;
    flex-shrink: 0;
    width: 2rem;
}
.service-name {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-dim);
    transition: color .3s;
}
.service-item:hover .service-name,
.service-item.active .service-name { color: var(--text-bright); }
.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease), padding .4s var(--ease);
    padding: 0 0 0 3.5rem;
}
.service-item.active .service-body {
    max-height: 300px;
    padding: 0 0 2rem 3.5rem;
}
.service-body p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.75;
    max-width: 650px;
}

/* ─── STATS ──────────────────────────────────────────────────── */
.stats-section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value { display: flex; align-items: baseline; }
.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-suffix {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    font-family: var(--font-heading);
    font-size: .65rem; font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-dim);
    margin-top: .5rem;
    text-transform: uppercase;
}

/* ─── TECH MARQUEE ───────────────────────────────────────────── */
.marquee-section {
    padding: 2.5rem 0;
    overflow: hidden;
}
.marquee-track {
    display: flex;
    overflow: hidden;
    margin-bottom: 1rem;
}
.marquee-track:last-child { margin-bottom: 0; }
.marquee-inner {
    display: flex;
    gap: 3.5rem;
    animation: marqueeLeft 30s linear infinite;
    flex-shrink: 0;
    padding-right: 3.5rem;
}
.marquee-track-right .marquee-inner {
    animation: marqueeRight 40s linear infinite;
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    letter-spacing: .02em;
}
.marquee-logo {
    width: 22px;
    height: 22px;
    opacity: .45;
    display: inline-block;
}
@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes marqueeRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* ─── PROJECTS (sticky left + stacking right) ────────────────── */
.projects-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}
.projects-sticky {
    position: sticky;
    top: 120px;
}
.projects-sticky-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.manifesto-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.projects-sticky-sub {
    font-size: .88rem;
    color: var(--text-dim);
    line-height: 1.7;
}
.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.proj-card {
    position: sticky;
    top: 100px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: box-shadow .4s;
}
.proj-card:nth-child(2) { top: 120px; }
.proj-card:nth-child(3) { top: 140px; }
.proj-card:nth-child(4) { top: 160px; }
.proj-card:nth-child(5) { top: 180px; }
.proj-card:nth-child(6) { top: 200px; }
.proj-card:nth-child(7) { top: 220px; }
.proj-card:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,.3);
}
.proj-card-bg {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}
.proj-card-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(5,5,8,.82);
}
.proj-hero-glow {
    position: absolute; inset: 0;
    pointer-events: none;
}
.proj-glow-codequill {
    background:
        radial-gradient(ellipse 50% 60% at 15% 50%, rgba(120,121,246,.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 85% 30%, rgba(251,203,245,.06) 0%, transparent 70%);
}
.proj-hero-screenshot {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 40%, rgba(120,121,246,.06) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(5,5,8,.4) 100%);
    pointer-events: none;
}
.proj-code-bg {
    position: absolute; inset: 0;
    font-family: var(--font-mono);
    font-size: .55rem;
    line-height: 2;
    color: rgba(155,89,182,.08);
    padding: 1rem;
    overflow: hidden;
    pointer-events: none;
    white-space: pre;
    margin: 0;
    background: none;
}
.proj-code-bg code { color: rgba(255,255,255,.05); }

.proj-card-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 200px;
}
.proj-card-logo {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.proj-card-logo img {
    width: 100px; height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(120,121,246,.2));
}
.proj-card--zephyrus .proj-card-logo img {
    filter: drop-shadow(0 0 30px rgba(255,255,255,.1));
}
.proj-card--enshell .proj-card-logo img {
    width: 130px; height: 130px;
    filter: drop-shadow(0 0 40px rgba(67,217,184,.2));
}
.proj-card--enshell .proj-card-bg {
    background: radial-gradient(circle at 20% 50%, rgba(67,217,184,.05) 0%, transparent 60%);
}
.proj-card-content {
    padding: 2rem 2.5rem 2rem 0;
    display: flex; flex-direction: column;
    justify-content: center;
}
.proj-card-content--full {
    padding: 2rem 2.5rem;
    grid-column: 1 / -1;
}
.proj-card--outright {
    min-height: auto;
}
.proj-card--outright .proj-card-inner {
    grid-template-columns: 1fr;
}
.proj-badge-kintsugi {
    background: rgba(212,160,23,.1); color: #d4a017;
    border: 1px solid rgba(212,160,23,.2);
}
.proj-card--kintsugi .proj-card-bg {
    background: radial-gradient(circle at 20% 50%, rgba(212,160,23,.04) 0%, transparent 60%);
}
.proj-card--kintsugi .proj-card-logo img {
    width: 100px; height: 100px;
    filter: drop-shadow(0 0 30px rgba(212,160,23,.2));
}
.proj-card--immunity .proj-card-bg {
    background: radial-gradient(circle at 20% 50%, rgba(240,120,50,.04) 0%, transparent 60%);
}
.proj-card--immunity .proj-card-logo img {
    width: 120px; height: 120px;
    filter: drop-shadow(0 0 30px rgba(255,255,255,.1)) invert(1);
}

.proj-header {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: .75rem;
}
.proj-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem; font-weight: 800;
    color: var(--text-bright);
}
.proj-badge {
    font-family: var(--font-mono); font-size: .6rem;
    letter-spacing: .06em; text-transform: uppercase;
    padding: .25rem .6rem; border-radius: 4px;
    background: rgba(232,67,147,.1); color: var(--accent);
    border: 1px solid rgba(232,67,147,.15);
}
.proj-badge-codequill {
    background: rgba(120,121,246,.1); color: #7879F6;
    border: 1px solid rgba(120,121,246,.2);
}
.proj-badge-zephyrus {
    background: rgba(255,255,255,.06); color: var(--text);
    border: 1px solid rgba(255,255,255,.1);
}
.proj-badge-accent {
    background: rgba(240,120,50,.1); color: var(--accent-orange);
    border-color: rgba(240,120,50,.15);
}
.proj-badge-leaf {
    background: rgba(168,130,200,.1); color: #a882c8;
    border: 1px solid rgba(168,130,200,.2);
}
.proj-card--leaf .proj-card-logo img {
    filter: drop-shadow(0 0 30px rgba(168,130,200,.2));
}
.proj-card--leaf .proj-card-bg {
    background: radial-gradient(circle at 20% 50%, rgba(168,130,200,.05) 0%, transparent 60%);
}
.proj-card-content > p {
    font-size: .85rem; color: var(--text);
    line-height: 1.65; margin-bottom: 1rem;
}
.proj-stack {
    display: flex; flex-wrap: wrap; gap: .35rem;
    margin-bottom: 1rem;
}
.proj-stack span {
    font-family: var(--font-mono); font-size: .6rem;
    color: var(--text-dim); letter-spacing: .02em;
    padding: .2rem .5rem; border-radius: 3px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
}
.proj-link {
    font-family: var(--font-heading);
    font-size: .78rem; font-weight: 700;
    color: var(--text-dim);
    display: inline-flex; align-items: center; gap: .5rem;
    transition: color .2s;
    margin-top: auto;
}
.proj-link:hover { color: var(--accent); }
.proj-link i { font-size: .65rem; transition: transform .2s var(--ease); }
.proj-link:hover i { transform: translateX(4px); }

/* ─── EVENTS TIMELINE (LIGHT SECTION) ────────────────────────── */
.events-timeline {
    position: relative;
    padding-left: 2rem;
}
.events-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0; bottom: 0;
    width: 1px;
    background: rgba(0,0,0,.1);
}
.event-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
    position: relative;
}
.event-row:last-child { border-bottom: none; }
.event-row-dot {
    position: absolute;
    left: -2rem;
    top: 1.6rem;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid #f5f3f0;
    z-index: 1;
}
.event-row-date {
    flex-shrink: 0;
    width: 70px;
    font-family: var(--font-mono);
    font-size: .7rem;
    color: #999;
    padding-top: .15rem;
}
.event-row-content { flex: 1; }
.event-row-top {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .35rem;
}
.event-row-name {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 700;
    color: #1a1a24;
}
.event-badge {
    font-family: var(--font-mono); font-size: .55rem;
    letter-spacing: .06em; text-transform: uppercase;
    padding: .2rem .5rem; border-radius: 4px;
    font-weight: 500;
}
.event-badge--hackathon { background: rgba(232,67,147,.1); color: var(--accent); }
.event-badge--conference { background: rgba(120,121,246,.1); color: #7879F6; }
.event-badge--meetup { background: rgba(240,120,50,.1); color: var(--accent-orange); }
.event-row-location {
    font-size: .75rem; color: #888;
    margin-bottom: .4rem;
}
.event-row-location i { font-size: .6rem; margin-right: .2rem; }
.event-row-award {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-heading);
    font-size: .8rem; font-weight: 700;
    margin-top: .35rem;
}
.event-row-award i {
    color: var(--accent);
    font-size: .7rem;
}
.event-row-award span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.event-project {
    font-family: var(--font-mono); font-size: .65rem;
    color: var(--accent); margin-left: .75rem;
}
.event-project i { font-size: .5rem; margin-left: .15rem; }
.events-dots {
    display: flex; justify-content: center; gap: .5rem;
    margin-top: 2rem;
}
.events-dots:empty { display: none; }
.events-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none; padding: 0;
    background: rgba(0,0,0,.15);
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.events-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ─── BLOG PREVIEW ───────────────────────────────────────────── */
.blog-preview-section {
    padding: 6rem 0 8rem;
    background: var(--bg-alt);
    border-radius: 24px 24px 0 0;
    position: relative;
}
.blog-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
}
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color .3s, transform .3s var(--ease);
    min-height: 180px;
}
.blog-card:hover {
    border-color: var(--border-active);
    transform: translateY(-3px);
}
.blog-card-tag {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.4;
    margin-bottom: auto;
}
.blog-card-date {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--text-dim);
    margin-top: 1.25rem;
}
.blog-preview-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ─── BLOG LISTING PAGE ──────────────────────────────────────── */
.blog-page { background: var(--bg); }
.blog-hero {
    padding: 10rem 0 4rem;
}
.blog-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.blog-hero-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 480px;
    line-height: 1.7;
}
.blog-listing {
    padding: 0 0 8rem;
}
.blog-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}
/* Tile sizes: dynamic layout for first 5 articles */
.blog-tile--1 { grid-column: span 5; }
.blog-tile--2 { grid-column: span 7; }
.blog-tile--3 { grid-column: span 7; }
.blog-tile--4 { grid-column: span 5; }
.blog-tile--5 { grid-column: span 12; }
/* Beyond 5, alternate between 7 and 5 */
.blog-tile--1 .blog-tile-image { aspect-ratio: 4/3; }
.blog-tile--2 .blog-tile-image { aspect-ratio: 16/9; }
.blog-tile--3 .blog-tile-image { aspect-ratio: 16/9; }
.blog-tile--4 .blog-tile-image { aspect-ratio: 4/3; }
.blog-tile--5 .blog-tile-image { aspect-ratio: 21/9; }

.blog-tile {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
    text-decoration: none;
    color: inherit;
}
.blog-tile:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.blog-tile-image {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}
.blog-tile-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-tile-category {
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}
.blog-tile-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: .6rem;
}
.blog-tile-excerpt {
    font-size: .82rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-tile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--text-dim);
}

/* ─── BLOG ARTICLE PAGE ─────────────────────────────────────── */
.article-page { background: var(--bg); }
.article-header {
    padding: 8rem 0 3rem;
}
.article-header-inner {
    max-width: 800px;
}
.article-breadcrumb {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    display: flex;
    gap: .5rem;
}
.article-breadcrumb a {
    color: var(--text-dim);
    transition: color .2s;
}
.article-breadcrumb a:hover { color: var(--accent); }
.article-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.article-category {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    padding: .2rem .6rem;
    border-radius: 4px;
    background: rgba(232,67,147,.1);
}
.article-date {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
}
.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.article-excerpt {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.article-author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 800;
    color: #fff;
}
.article-author-name {
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-bright);
    display: block;
}
.article-author-role {
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--text-dim);
}
.article-banner {
    padding: 0 0 3rem;
}
.article-banner-image {
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}
.article-body {
    padding: 0 0 4rem;
}
.article-content {
    max-width: 720px;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.85;
}
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 3rem 0 1rem;
}
.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 2rem 0 .75rem;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content strong {
    color: var(--text-bright);
    font-weight: 600;
}
.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover { opacity: .8; }
.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li {
    margin-bottom: .5rem;
}
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-dim);
}
.article-content code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: rgba(255,255,255,.06);
    padding: .15rem .4rem;
    border-radius: 4px;
}
.article-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}
.article-content pre code {
    background: none;
    padding: 0;
    font-size: .85rem;
    line-height: 1.7;
}
.article-content .heading-permalink {
    color: var(--accent);
    text-decoration: none;
    margin-right: .5rem;
    opacity: .3;
    transition: opacity .2s;
}
.article-content .heading-permalink:hover { opacity: 1; }
.article-footer {
    padding: 2rem 0 6rem;
    border-top: 1px solid var(--border);
}
.article-back {
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: color .2s;
}
.article-back:hover { color: var(--accent); }

/* ─── BLOG RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-mosaic { grid-template-columns: 1fr; }
    .blog-tile--1, .blog-tile--2, .blog-tile--3,
    .blog-tile--4, .blog-tile--5 { grid-column: span 1; }
    .blog-tile-image { aspect-ratio: 16/9 !important; }
    .blog-hero { padding: 7rem 0 3rem; }
    .article-header { padding: 6rem 0 2rem; }
}

/* ─── FOOTER REVEAL ──────────────────────────────────────────── */
.footer-reveal {
    position: sticky;
    bottom: 0;
    z-index: 0;
    background: var(--bg-card);
    overflow: hidden;
}
.footer-reveal-glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 30% 30%, rgba(240,120,50,.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 70% 70%, rgba(155,89,182,.04) 0%, transparent 70%);
    pointer-events: none;
}
.footer-reveal-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 2rem 3rem;
    position: relative;
}
.footer-contact { position: relative; z-index: 1; }
.footer-heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 2rem;
}
.footer-subtitle {
    color: var(--text-dim); font-size: .95rem;
    margin-bottom: 2.5rem;
}
.footer-details { margin-bottom: 2rem; }
.footer-row {
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
}
.footer-row-label {
    font-family: var(--font-mono); font-size: .65rem;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-dim); min-width: 80px;
}
.footer-row a {
    color: var(--text-bright); transition: color .2s;
}
.footer-row a:hover { color: var(--accent); }
.footer-socials {
    display: flex; gap: .75rem;
}
.footer-socials a {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.15rem; color: var(--text-dim);
    transition: all .3s var(--ease);
}
.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--text-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232,67,147,.15);
}
.footer-brand-area {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}
.footer-logo {
    width: 250px; opacity: .06;
    filter: blur(.5px);
    animation: watermarkFloat 20s ease-in-out infinite;
}
.footer-bottom {
    display: flex; flex-direction: column; align-items: center;
    gap: .75rem;
    padding-top: 2rem; padding-bottom: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    text-align: center;
}
.footer-brand {
    display: flex; align-items: center; gap: .5rem;
}
.footer-brand img { height: 18px; width: auto; }
.footer-brand span {
    font-family: var(--font-heading);
    font-size: .72rem; font-weight: 800;
    letter-spacing: .1em; color: var(--text-dim);
}
.footer-copy {
    font-size: .72rem; color: var(--text-dim);
}
.footer-leaf-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s;
}
.footer-leaf-link:hover {
    color: var(--accent);
}

/* ─── ANIMATIONS ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0; transform: translateY(28px);
        transition: opacity .7s var(--ease), transform .7s var(--ease);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal[data-delay="0"] { transition-delay: 0s; }
    .reveal[data-delay="1"] { transition-delay: .12s; }
    .reveal[data-delay="2"] { transition-delay: .24s; }
    .reveal[data-delay="3"] { transition-delay: .36s; }
    .reveal[data-delay="4"] { transition-delay: .48s; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .hero-scroll-line, .hero-watermark, .hero-badge-dot, .hero-orb { animation: none; }
    .hero-fog { display: none; }
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-body { margin-left: 0; }
    .about-founders { grid-template-columns: 1fr; gap: 1rem; }
    .projects-layout { grid-template-columns: 1fr; gap: 2rem; }
    .projects-sticky { position: static; }
    .proj-card-inner { grid-template-columns: 140px 1fr; }
    .footer-reveal-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand-area { display: none; }
}

@media (max-width: 768px) {
    .site-nav { padding: 0 1rem; }
    .site-nav.scrolled { padding: 0 1rem; top: 8px; }
    .site-nav.scrolled .nav-inner {
        max-width: calc(100% - .5rem);
        border-radius: 16px;
        padding: 0 1rem;
    }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: calc(100% + 8px); left: 0; right: 0;
        background: rgba(8,8,14,.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px;
        padding: 1rem 1.5rem 1.5rem; gap: .75rem;
        box-shadow: 0 8px 32px rgba(0,0,0,.4);
    }
    .nav-links.open a { padding: .5rem 0; }

    .stats-grid { gap: 1rem; }
    .manifesto-section { padding: 5rem 0; }
    .hero-fog { opacity: .1; }
    .hero-orb { filter: blur(60px); }
    .hero-orb-3 { display: none; }
    .hero-content { padding: 7rem 1.5rem 3rem; }
    .section { padding: 5rem 0; }
    .about-tagline { font-size: clamp(2rem, 5vw, 3rem); }
    .about-tagline-wrap { margin-bottom: 1rem; }
    .about-founders { gap: .6rem; }
    .about-founder { flex-direction: row; padding: .85rem 1rem; gap: .75rem; border-radius: 14px; }
    .about-photo { width: 48px; height: 48px; }
    .about-name { font-size: .9rem; }
    .about-role { font-size: .52rem; }
    .about-bio { font-size: .72rem; line-height: 1.45; }
    .about-body { margin-bottom: 1.5rem; }
    .about-desc { font-size: .9rem; line-height: 1.6; }
    .proj-card { position: relative; top: auto !important; }
    .proj-card-inner { grid-template-columns: 1fr; }
    .proj-card-logo { padding: 1.5rem 1.5rem 0; }
    .proj-card-content { padding: 1.5rem; }
    .cta-section { padding: 5rem 0; }
    .blog-preview-grid { grid-template-columns: 1fr; }
    .footer-reveal-inner { padding: 4rem 1.5rem 2rem; }
    .footer-bottom { flex-direction: column; gap: .75rem; }
    .hero-watermark { width: 120vw; }
}

/* ─── RTL SUPPORT (Arabic, Hebrew, etc.) ─────────────────────── */
[dir="rtl"] {
    --font-heading: 'Noto Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Noto Sans Arabic', 'DM Sans', system-ui, sans-serif;
    direction: rtl;
}
[dir="rtl"] .hero-title,
[dir="rtl"] .about-tagline,
[dir="rtl"] .footer-heading,
[dir="rtl"] .services-title,
[dir="rtl"] .projects-sticky-heading,
[dir="rtl"] .section-heading,
[dir="rtl"] .blog-hero-title {
    line-height: 1.4;
}

/* Nav */
[dir="rtl"] .nav-brand { flex-direction: row-reverse; }

/* Hero */
[dir="rtl"] .hero-content { text-align: right; }

/* About */
[dir="rtl"] .about-tagline-wrap { text-align: right; }
[dir="rtl"] .about-body { margin-left: 0; margin-right: auto; text-align: right; }
[dir="rtl"] .about-founder { flex-direction: row-reverse; text-align: right; }

/* Section labels */
[dir="rtl"] .section-label { flex-direction: row-reverse; }
[dir="rtl"] .section-label::after {
    background: linear-gradient(to left, var(--border), transparent);
}

/* Stats */
[dir="rtl"] .stat-value { flex-direction: row-reverse; }

/* Marquee: keep LTR direction so animation works */
[dir="rtl"] .marquee-section { direction: ltr; }

/* Projects */
[dir="rtl"] .projects-layout { direction: rtl; }
[dir="rtl"] .projects-sticky { text-align: right; }
[dir="rtl"] .proj-card-inner { direction: rtl; }
[dir="rtl"] .proj-card-content { text-align: right; padding: 2rem 0 2rem 2.5rem; }
[dir="rtl"] .proj-card-logo { padding: 2rem; }
[dir="rtl"] .proj-header { flex-direction: row-reverse; }
[dir="rtl"] .proj-link { flex-direction: row-reverse; }
[dir="rtl"] .proj-link i { transform: scaleX(-1); }

/* Accordion */
[dir="rtl"] .service-body { padding-left: 0; padding-right: 3.5rem; }
[dir="rtl"] .service-body p { text-align: right; }

/* Events timeline */
[dir="rtl"] .events-timeline { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .events-timeline::before { left: auto; right: 6px; }
[dir="rtl"] .event-row-dot { left: auto; right: -2rem; }
[dir="rtl"] .event-row-content { text-align: right; }
[dir="rtl"] .event-row-location { direction: rtl; }

/* Footer */
[dir="rtl"] .footer-contact { text-align: right; }
[dir="rtl"] .footer-brand { flex-direction: row-reverse; }

/* Blog */
[dir="rtl"] .blog-tile-body { text-align: right; }
[dir="rtl"] .article-breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .article-header-inner { text-align: right; }
[dir="rtl"] .article-meta-top { flex-direction: row-reverse; }
[dir="rtl"] .article-author { flex-direction: row-reverse; }
[dir="rtl"] .article-content { text-align: right; }
[dir="rtl"] .article-content blockquote {
    border-left: none; border-right: 3px solid var(--accent);
    padding-left: 0; padding-right: 1.5rem;
}
