/* ===========================
   FALAAH LABS — style.css
   =========================== */

/* ---------- CSS Variables ---------- */
:root {
    --green-950: #020d06;
    --green-900: #041a0b;
    --green-800: #0a3d1f;
    --green-700: #0e5429;
    --green-600: #146b34;
    --green-500: #1a8c44;
    --green-400: #22b359;
    --green-300: #3dce74;
    --green-200: #72e39f;
    --green-100: #b8f5d0;
    --green-50: #eaffef;

    /* Light Mode (Default) */
    --bg: #ffffff;
    --bg-2: #f8fdf9;
    --surface: #f0f9f3;
    --surface-2: #e6f5eb;
    --border: rgba(14, 84, 41, 0.15);
    --border-2: rgba(14, 84, 41, 0.25);

    --text-primary: #0a3d1f;
    --text-secondary: #146b34;
    --text-muted: #4a7059;

    --accent: #1a8c44;
    --accent-glow: rgba(26, 140, 68, 0.25);

    --font-display: "Playfair Display", Georgia, serif;
    --font-sans: "Syne", sans-serif;
    --font-mono: "DM Mono", monospace;
    --font-brand: "Cinzel", Georgia, serif;

    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
body.dark-mode {
    --bg: #050e08;
    --bg-2: #07160b;
    --surface: #0c2215;
    --surface-2: #122c1c;
    --border: rgba(34, 179, 89, 0.12);
    --border-2: rgba(34, 179, 89, 0.22);

    --text-primary: #e8f7ed;
    --text-secondary: #8ab89a;
    --text-muted: #4a7059;

    --accent: #22b359;
    --accent-glow: rgba(34, 179, 89, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}
button {
    cursor: none;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Noise Texture ---------- */
.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- Custom Cursor ---------- */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition:
        transform 0.1s,
        width 0.25s,
        height 0.25s;
}
.cursor-trail {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--green-400);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.5;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
    width: 18px;
    height: 18px;
}
body:has(a:hover) .cursor-trail,
body:has(button:hover) .cursor-trail {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- Section ---------- */
.section {
    padding: 120px 0;
    position: relative;
}

/* ---------- Utility ---------- */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-label::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}
.section-title em {
    color: var(--accent);
    font-style: italic;
}
.section-sub {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 500px;
}
.section-header {
    margin-bottom: 64px;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--green-950);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::after {
    opacity: 1;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid var(--border-2);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- NAV ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 84, 41, 0.08);
}
body.dark-mode .nav {
    background: rgba(5, 14, 8, 0.8);
    border-bottom: 1px solid rgba(34, 179, 89, 0.08);
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 48px;
    border-bottom: 1px solid rgba(14, 84, 41, 0.12);
    box-shadow: 0 4px 24px rgba(14, 84, 41, 0.06);
}
body.dark-mode .nav.scrolled {
    background: rgba(5, 14, 8, 0.95);
    border-bottom: 1px solid rgba(34, 179, 89, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
}
.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font-display);
    box-shadow: 0 2px 8px rgba(26, 140, 68, 0.2);
}
body.dark-mode .logo-mark {
    box-shadow: 0 2px 8px rgba(34, 179, 89, 0.3);
}
.logo-text {
    color: var(--text-primary);
}
.logo-text em {
    color: var(--accent);
    font-style: normal;
}
/* ── Logo image ── */
.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s;
}
.nav-logo-img:hover {
    opacity: 0.85;
}
body.dark-mode .nav-logo-img {
    filter: brightness(1.15) drop-shadow(0 0 6px rgba(34, 179, 89, 0.2));
}
.footer-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 0.9;
}
body.dark-mode .footer-logo-img {
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(34, 179, 89, 0.15));
}
/* ── Brand text beside logo ── */
.logo-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 4px;
    overflow: hidden;
}
.logo-brand-name {
    font-family: var(--font-brand);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--accent) 40%,
        var(--green-300) 55%,
        var(--text-primary) 100%
    );
    background-size: 260% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        brandReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
        brandShimmer 6s linear 1.8s infinite;
}
.logo-brand-sub {
    font-family: var(--font-mono);
    font-size: 0.48rem;
    font-weight: 400;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    animation: brandSubReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
/* Footer variant — slightly larger */
.logo-brand--footer .logo-brand-name {
    font-size: 1.18rem;
    animation: brandShimmer 7s linear 0s infinite;
}
.logo-brand--footer .logo-brand-sub {
    animation: none;
    opacity: 0.6;
}
/* ── Keyframes ── */
@keyframes brandReveal {
    from {
        opacity: 0;
        letter-spacing: 0.28em;
        filter: blur(5px);
    }
    to {
        opacity: 1;
        letter-spacing: 0.08em;
        filter: blur(0);
    }
}
@keyframes brandSubReveal {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}
@keyframes brandShimmer {
    0% {
        background-position: 260% center;
    }
    100% {
        background-position: -20% center;
    }
}
.nav-links {
    display: flex;
    gap: 36px;
    margin-left: auto;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    transition: color 0.2s;
    position: relative;
    opacity: 0.85;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 2px;
}
.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}
.nav-cta {
    padding: 10px 24px;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(26, 140, 68, 0.2);
}
.nav-cta:hover {
    background: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 140, 68, 0.3);
}
body.dark-mode .nav-cta {
    box-shadow: 0 2px 8px rgba(34, 179, 89, 0.3);
}
body.dark-mode .nav-cta:hover {
    box-shadow: 0 4px 12px rgba(34, 179, 89, 0.4);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    display: block;
    transition: 0.3s;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-left: 16px;
    box-shadow: 0 2px 8px rgba(14, 84, 41, 0.08);
}
body.dark-mode .theme-toggle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 140, 68, 0.2);
}
body.dark-mode .theme-toggle:hover {
    box-shadow: 0 4px 12px rgba(34, 179, 89, 0.3);
}
.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
}
.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}
.mobile-menu a {
    font-size: 2rem;
    font-family: var(--font-display);
    color: var(--text-secondary);
    transition: color 0.3s;
}
.mobile-menu a:hover {
    color: var(--accent);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(26, 140, 68, 0.18) 0%,
        transparent 70%
    );
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(61, 206, 116, 0.1) 0%,
        transparent 70%
    );
    top: 40%;
    right: -100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(10, 61, 31, 0.3) 0%,
        transparent 70%
    );
    bottom: 0;
    left: -80px;
    animation: orbFloat 12s ease-in-out infinite 2s;
}
@keyframes orbFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.04);
    }
}
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 179, 89, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 179, 89, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
/* ── Hero Eyebrow ── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
}
.eyebrow-rotator {
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: sonar 2.6s ease-out infinite;
}
@keyframes sonar {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 140, 68, 0.65);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(26, 140, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 140, 68, 0);
    }
}
body.dark-mode .status-dot {
    animation: sonarDark 2.6s ease-out infinite;
}
@keyframes sonarDark {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 179, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(34, 179, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 179, 89, 0);
    }
}
.eyebrow-rule {
    width: 1px;
    height: 14px;
    background: var(--border-2);
    margin: 0 18px;
    flex-shrink: 0;
}
.eyebrow-rotate-text {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-block;
}
.eyebrow-rotate-text.enter {
    animation: eyebrowEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.eyebrow-rotate-text.exit {
    animation: eyebrowExit 0.45s cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes eyebrowEnter {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes eyebrowExit {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-title .line {
    display: block;
}
.hero-title .italic {
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
}
/* ── Hero title — 3-direction entry ── */
.line-1 {
    animation: heroFromLeft 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.line-2 {
    animation: heroFromRight 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.line-3 {
    animation: heroFromBottom 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}
@keyframes heroFromLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes heroFromRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes heroFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.accent-word {
    color: var(--accent);
    position: relative;
}
.accent-word::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--green-300));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    animation: underlineGrow 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.35s both;
}
@keyframes underlineGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 0.55;
    }
}
.hero-sub {
    max-width: 580px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 auto 40px;
}
.hero-sub em {
    color: var(--green-300);
    font-style: italic;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    margin-bottom: 120px;
}
.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--green-300);
    line-height: 1;
}
.stat > span:nth-child(2) {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-2);
}
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--bg-2);
    position: relative;
    padding-bottom: 56px;
}
/* Header row */
.about-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 64px;
}
.about-manifesto {
    max-width: 300px;
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: right;
    font-style: italic;
}
/* Statement block */
.about-statement {
    display: flex;
    align-items: stretch;
    gap: 36px;
    padding: 44px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 72px;
}
.about-statement-bar {
    width: 3px;
    min-height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--green-300));
    border-radius: 2px;
    flex-shrink: 0;
}
.about-quote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.65;
    margin: 0;
}
.about-quote em {
    color: var(--accent);
    font-style: italic;
}
/* Three pillars */
.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 64px;
}
.about-pillar {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    animation-delay: var(--sd, 0s);
}
.about-pillar:not(:last-child) {
    padding-right: 40px;
    border-right: 1px solid var(--border);
}
.about-pillar:not(:first-child) {
    padding-left: 40px;
}
.pillar-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.pillar-num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    flex-shrink: 0;
}
.pillar-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
    display: block;
    transition: background 0.35s;
}
.about-pillar:hover .pillar-rule {
    background: var(--accent);
}
.pillar-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.2;
    transition: color 0.3s;
}
.about-pillar:hover .pillar-title {
    color: var(--accent);
}
.pillar-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
}
/* Expertise strip */
.about-expertise {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.expertise-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.expertise-track {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.expertise-item {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 4px 16px;
    transition: color 0.2s;
    cursor: default;
}
.expertise-item:first-child {
    padding-left: 0;
}
.expertise-item:hover {
    color: var(--accent);
}
.expertise-sep {
    color: var(--border-2);
    font-size: 1.1rem;
    line-height: 1;
    user-select: none;
}

/* ---------- SERVICES ---------- */
.services {
    background: var(--bg);
    padding-bottom: 56px;
}
/* Header */
.svc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 52px;
}
.svc-header-sub {
    max-width: 280px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    text-align: right;
}
/* ── Featured Mobile App Card ── */
.svc-featured {
    position: relative;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 3px;
}
.svc-featured::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--green-300));
    border-radius: 0;
    z-index: 1;
}
.svc-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 85% -10%,
        rgba(34, 179, 89, 0.09) 0%,
        transparent 60%
    );
    pointer-events: none;
}
.svc-featured-inner {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    padding: 40px 40px 40px 44px;
    align-items: center;
}
.svc-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.svc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: sonar 2.6s ease-out infinite;
}
.svc-featured-num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.svc-featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 20px;
}
.svc-featured-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 28px;
}
/* Platform badges */
.svc-platforms {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.svc-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: var(--transition);
}
.svc-platform--android {
    background: rgba(61, 220, 132, 0.1);
    border: 1px solid rgba(61, 220, 132, 0.28);
    color: var(--green-300);
}
.svc-platform--ios {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--text-primary);
}
.svc-platform--tech {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.63rem;
}
/* Phone visual */
.svc-featured-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}
.phone-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(
        circle,
        rgba(34, 179, 89, 0.25) 0%,
        transparent 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(18px);
}
.phone-frame {
    width: 148px;
    border: 2px solid rgba(34, 179, 89, 0.22);
    border-radius: 32px;
    background: var(--bg);
    overflow: hidden;
    position: relative;
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(34, 179, 89, 0.08);
}
.phone-notch {
    width: 44px;
    height: 6px;
    background: var(--border-2);
    border-radius: 3px;
    margin: 10px auto 6px;
}
.phone-screen {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ps-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ps-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--green-300));
    flex-shrink: 0;
}
.ps-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ps-line {
    height: 4px;
    border-radius: 2px;
    background: var(--border-2);
}
.ps-line.wide {
    width: 75%;
}
.ps-line.short {
    width: 45%;
}
.ps-bell {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(34, 179, 89, 0.15);
    border: 1px solid rgba(34, 179, 89, 0.2);
    flex-shrink: 0;
}
.ps-banner {
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(26, 140, 68, 0.25),
        rgba(61, 206, 116, 0.12)
    );
    border: 1px solid rgba(34, 179, 89, 0.18);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ps-banner-label {
    height: 4px;
    width: 55%;
    border-radius: 2px;
    background: rgba(34, 179, 89, 0.35);
}
.ps-banner-val {
    height: 6px;
    width: 35%;
    border-radius: 2px;
    background: rgba(34, 179, 89, 0.6);
}
.ps-tiles {
    display: flex;
    gap: 6px;
}
.ps-tile {
    flex: 1;
    height: 38px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.ps-tile--accent {
    background: linear-gradient(
        135deg,
        rgba(26, 140, 68, 0.2),
        rgba(61, 206, 116, 0.1)
    );
    border-color: rgba(34, 179, 89, 0.2);
}
.ps-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ps-list-row {
    height: 14px;
    border-radius: 4px;
    background: var(--border);
}
.ps-list-row.short {
    width: 65%;
}
.ps-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 2px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
}
.ps-nav-item {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--border);
}
.ps-nav-item.active {
    background: rgba(34, 179, 89, 0.2);
    border: 1px solid rgba(34, 179, 89, 0.3);
}
/* Supporting services grid */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
}
.svc-item {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    animation-delay: var(--sd, 0s);
}
.svc-item:nth-child(3n + 1) {
    padding-right: 36px;
}
.svc-item:nth-child(3n + 2) {
    padding-left: 36px;
    padding-right: 36px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.svc-item:nth-child(3n) {
    padding-left: 36px;
}
.svc-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.svc-item-num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    flex-shrink: 0;
}
.svc-item-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
    display: block;
    transition: background 0.35s;
}
.svc-item:hover .svc-item-rule {
    background: var(--accent);
}
.svc-item-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
    transition: color 0.3s;
}
.svc-item:hover .svc-item-title {
    color: var(--accent);
}
.svc-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.72;
}

/* ---------- PROJECTS ---------- */
.projects {
    background: var(--bg);
    padding-bottom: 56px;
}
.proj-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    gap: 40px;
}
.proj-header-left {
    flex-shrink: 0;
}
.proj-header-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    text-align: right;
    max-width: 240px;
}
.proj-list {
    display: flex;
    flex-direction: column;
}
.proj-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 36px 24px;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: none;
}
.proj-item:last-child {
    border-bottom: 1px solid var(--border);
}
/* Left green accent bar on hover */
.proj-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--green-300));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.proj-item:hover::before {
    transform: scaleY(1);
}
/* Row background tint on hover */
.proj-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--surface);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
}
.proj-item:hover::after {
    opacity: 1;
}
/* Ghost number watermark */
.proj-ghost-num {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 900;
    color: var(--text-primary);
    opacity: 0.03;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.4s;
}
.proj-item:hover .proj-ghost-num {
    opacity: 0.07;
}
/* Index number */
.proj-index {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    transition: color 0.3s;
    align-self: start;
    padding-top: 6px;
}
.proj-item:hover .proj-index {
    color: var(--accent);
}
/* Body */
.proj-body {
    min-width: 0;
}
.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.ptag {
    padding: 3px 10px;
    background: rgba(34, 179, 89, 0.08);
    border: 1px solid rgba(34, 179, 89, 0.18);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--green-400);
    letter-spacing: 0.08em;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.proj-item:hover .ptag {
    background: rgba(34, 179, 89, 0.14);
    border-color: rgba(34, 179, 89, 0.3);
}
.proj-name {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    transition: color 0.3s;
}
.proj-item:hover .proj-name {
    color: var(--accent);
}
.proj-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        margin-top 0.35s ease;
}
.proj-item:hover .proj-desc {
    max-height: 80px;
    opacity: 1;
    margin-top: 12px;
}
/* Right section */
.proj-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}
.proj-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.proj-stat-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    transition: color 0.3s;
}
.proj-item:hover .proj-stat-num {
    color: var(--accent);
}
.proj-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.proj-cta-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}
.proj-item:hover .proj-cta-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(45deg);
}
.projects-cta {
    margin-top: 60px;
    text-align: center;
}

/* ---------- PROCESS ---------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.process-step {
    text-align: center;
    padding: 0 24px;
    position: relative;
    animation-delay: var(--sd);
}
.step-circle {
    width: 64px;
    height: 64px;
    border: 1.5px solid var(--border-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--surface);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.process-step:hover .step-circle {
    background: var(--accent);
    color: var(--green-950);
    border-color: var(--accent);
}
.step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 32px);
    right: calc(-50% + 32px);
    height: 1px;
    background: var(--border);
    z-index: 0;
}
.step-connector.last {
    display: none;
}
.process-step h4 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.2;
    transition: color 0.3s;
}
.process-step:hover h4 {
    color: var(--accent);
}
.process-step p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.72;
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--bg);
}
.contact-box {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 60px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}
.contact-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(34, 179, 89, 0.12) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.contact-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
.contact-title em {
    color: var(--accent);
    font-style: italic;
}
.contact-sub {
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.contact-form {
    text-align: left;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea {
    resize: vertical;
}
.form-submit {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius);
}

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-links {
    display: flex;
    gap: 32px;
}
.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.footer-tagline {
    color: var(--green-700);
    letter-spacing: 0.1em;
}

/* ---------- ANIMATIONS ---------- */
.reveal,
.reveal-up,
.reveal-line {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--d, 0s);
}
.reveal-line {
    transform: translateY(60px);
}
.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .svc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 36px;
    }
    .svc-header-sub {
        text-align: left;
        max-width: 100%;
    }
    .svc-featured-inner {
        grid-template-columns: 1fr;
    }
    .svc-featured-visual {
        display: none;
    }
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-item:nth-child(3n + 1),
    .svc-item:nth-child(3n + 2),
    .svc-item:nth-child(3n) {
        padding-left: 0;
        padding-right: 0;
        border-left: none;
        border-right: none;
    }
    .svc-item:nth-child(odd) {
        padding-right: 28px;
        border-right: 1px solid var(--border);
    }
    .svc-item:nth-child(even) {
        padding-left: 28px;
    }
    .about-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 48px;
    }
    .about-manifesto {
        text-align: left;
        max-width: 100%;
    }
    .about-pillars {
        grid-template-columns: 1fr 1fr;
    }
    .about-pillar:nth-child(2) {
        border-right: none;
    }
    .about-pillar:nth-child(3) {
        grid-column: span 2;
        border-right: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-right: 0;
    }
    .proj-item {
        grid-template-columns: 40px 1fr auto;
        gap: 24px;
        padding: 28px 16px;
    }
    .proj-right {
        gap: 16px;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .step-connector {
        display: none;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .nav {
        padding: 16px 24px;
    }
    .nav.scrolled {
        padding: 12px 24px;
    }
    .nav-links,
    .nav-cta {
        display: none;
    }
    .theme-toggle {
        margin-left: auto;
        margin-right: 12px;
    }
    .hamburger {
        display: flex;
        margin-left: 0;
    }
    .hero {
        padding: 100px 24px 60px;
    }
    .hero-stats {
        gap: 28px;
        margin-bottom: 100px;
    }
    .stat-num {
        font-size: 1.8rem;
    }
    .about-pillars {
        grid-template-columns: 1fr;
    }
    .about-pillar:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }
    .about-pillar:not(:first-child) {
        padding-left: 0;
    }
    .about-pillar:nth-child(3) {
        grid-column: span 1;
    }
    .about-expertise {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .expertise-track {
        gap: 4px 0;
    }
    .proj-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 40px;
    }
    .proj-header-sub {
        text-align: left;
    }
    .proj-item {
        grid-template-columns: 36px 1fr;
        gap: 14px;
        padding: 24px 10px;
    }
    .proj-right {
        display: none;
    }
    .proj-ghost-num {
        font-size: 4rem;
    }
    .svc-grid {
        grid-template-columns: 1fr;
    }
    .svc-item:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }
    .svc-item:nth-child(even) {
        padding-left: 0;
    }
    .svc-featured-inner {
        padding: 28px 24px 28px 28px;
    }
    .process-steps {
        grid-template-columns: 1fr;
    }
    .contact-box {
        padding: 48px 28px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .section {
        padding: 80px 0;
    }
    .cursor,
    .cursor-trail {
        display: none;
    }
    body {
        cursor: auto;
    }
    a,
    button {
        cursor: pointer;
    }
}
