/* ==========================================================================
   KUBEYE PORTFOLIO - Jon Kabay
   Custom CSS with brand colors, Poppins + Inter fonts
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-bg: #0f0f0f;
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #161616;
    --color-bg-card-hover: #1c1c1c;
    --color-surface: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 182, 18, 0.3);

    --color-primary: #FFB612;
    --color-primary-light: #FFE08A;
    --color-primary-dark: #E09C00;
    --color-primary-glow: rgba(255, 182, 18, 0.15);

    --color-text: #e0e0e0;
    --color-text-muted: #888888;
    --color-text-dim: #555555;
    --color-white: #ffffff;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --sidebar-width: 260px;
    --sidebar-width-collapsed: 80px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Base --- */
*, *::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-secondary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}
body:hover .cursor-glow {
    opacity: 1;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease-out-expo);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 0;
}

/* Logo */
.sidebar-logo {
    padding: 0 28px;
    margin-bottom: 48px;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    text-decoration: none;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

.sidebar-logo a:hover .logo-mark {
    filter: drop-shadow(0 0 8px rgba(255, 182, 18, 0.5));
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.sidebar-nav {
    list-style: none;
    flex: 1;
    padding: 0 16px;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-indicator {
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
    transition: height 0.3s var(--ease-out-expo);
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link:hover .nav-indicator {
    height: 16px;
}

.nav-link.active {
    color: var(--color-primary-light);
    background: rgba(255, 182, 18, 0.08);
}

.nav-link.active .nav-indicator {
    height: 24px;
    box-shadow: 0 0 12px rgba(255, 182, 18, 0.4);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 24px 28px;
    border-top: 1px solid var(--color-border);
}

.sidebar-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.sidebar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.sidebar-socials a:hover {
    color: var(--color-primary-light);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.sidebar-socials a svg {
    width: 16px;
    height: 16px;
}

.sidebar-copyright {
    font-size: 11px;
    color: var(--color-text-dim);
    letter-spacing: 0.5px;
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: left 0.5s var(--ease-out-expo);
}

/* when the menu is open the button moves clear of it, to just past its right edge */
.sidebar-toggle.active {
    left: calc(var(--sidebar-width) + 12px);
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Collapsible sidebar (desktop): the wordmark folds into the logomark, which comes
   alive while the menu is collapsed. js/main.js runs it and remembers the choice. --- */
.sidebar-collapse,
.nav-icon {
    display: none;
}

.logo-text {
    position: relative;   /* the letters measure their gradient slice from here */
    white-space: nowrap;  /* keeps the word on one line while the menu is still narrow */
    flex-shrink: 0;
}

.logo-text.split {
    background: none;
}

.logo-letter {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)) no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* the small hexagons the letters break into (js/main.js) */
.logo-swarm {
    position: fixed;
    inset: 0;
    z-index: 1002;
    pointer-events: none;
}

.logo-swarm i {
    position: absolute;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(135deg, var(--color-primary-light), #E09C00);
    opacity: 0;
}

.logo-shock {
    position: absolute;
    left: 0;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 L91 26.5 V73.5 L50 97 L9 73.5 V26.5Z' fill='none' stroke='%23FFE08A' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 981px) {
    .sidebar {
        transition: transform 0.5s var(--ease-out-expo), width 0.55s var(--ease-out-expo);
    }

    .main-content {
        transition: margin-left 0.55s var(--ease-out-expo);
    }

    .sidebar-logo {
        transition: padding 0.55s var(--ease-out-expo);
    }

    .sidebar-logo a {
        position: relative;
    }

    .sidebar-collapse {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 39px;
        right: -14px;
        z-index: 2;
        width: 28px;
        height: 28px;
        padding: 0;
        color: var(--color-text-muted);
        background: rgba(14, 14, 14, 0.96);
        border: 1px solid var(--color-border-hover);
        border-radius: 50%;
        cursor: pointer;
        transition: color 0.25s, box-shadow 0.25s, transform 0.25s;
    }

    .sidebar-collapse:hover,
    .sidebar-collapse:focus-visible {
        color: var(--color-primary-light);
        box-shadow: 0 0 14px rgba(255, 182, 18, 0.4);
        transform: scale(1.1);
    }

    .sidebar-collapse svg {
        width: 14px;
        height: 14px;
        transition: transform 0.55s var(--ease-out-expo);
    }

    .sb-collapsed .sidebar-collapse svg {
        transform: rotate(180deg);
    }

    /* the labels fade out in place before the menu narrows */
    .sb-folding .nav-label,
    .sb-folding .sidebar-copyright {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .sb-collapsed .sidebar {
        width: var(--sidebar-width-collapsed);
    }

    .sb-collapsed .main-content {
        margin-left: var(--sidebar-width-collapsed);
    }

    .sb-collapsed .sidebar-logo {
        padding: 0 19px;
    }

    .sb-collapsed .logo-text {
        position: absolute;
        visibility: hidden;
        transition: visibility 0s 0.6s;   /* stays visible while the letters break up */
    }

    .sb-collapsed .sidebar-nav {
        padding: 0 12px;
    }

    .sb-collapsed .nav-link {
        justify-content: center;
        gap: 0;
        padding: 12px 0;
    }

    .sb-collapsed .nav-indicator {
        position: absolute;
        left: 4px;
        top: 50%;
        transform: translateY(-50%);
    }

    .sb-collapsed .nav-icon {
        display: block;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        animation: navIconIn 0.45s var(--ease-out-expo) backwards;
        animation-delay: calc(0.2s + var(--n, 0) * 0.05s);
    }

    /* collapsed: each label becomes a tooltip beside its icon */
    .sb-collapsed .nav-label {
        position: absolute;
        left: calc(100% + 18px);
        top: 50%;
        transform: translate(-6px, -50%);
        padding: 7px 12px;
        white-space: nowrap;
        color: var(--color-text);
        background: rgba(12, 12, 12, 0.96);
        border: 1px solid var(--color-border-hover);
        border-radius: 8px;
        opacity: 0;
        pointer-events: none;
    }

    .sb-collapsed .nav-link:hover .nav-label,
    .sb-collapsed .nav-link:focus-visible .nav-label {
        opacity: 1;
        transform: translate(0, -50%);
        transition: opacity 0.2s, transform 0.25s var(--ease-out-expo);
    }

    .sb-collapsed .sidebar-copyright {
        opacity: 0;
    }

    /* the live logomark: it breathes, a ripple runs through the hexagons at each breath,
       a ring pulses out, and the small outer hexagons twinkle */
    .motion-ok.sb-collapsed .logo-mark.alive {
        animation: logoBreathe 4.8s ease-in-out infinite;
    }

    .motion-ok.sb-collapsed .logo-mark.alive:not(.fx-cascade) > path {
        animation: logoRipple 4.8s ease-in-out infinite;
        animation-delay: calc(var(--i, 0) * 0.09s);
    }

    .motion-ok.sb-collapsed .logo-mark.alive:not(.fx-cascade) > path:nth-of-type(n+11) {
        animation-name: logoTwinkle;
        animation-duration: 7s;
        animation-delay: calc(var(--i, 0) * -1.4s);
    }

    .motion-ok.sb-collapsed .logo-mark.alive > g {
        animation: logoGlow 4.8s ease-in-out infinite;
    }

    .motion-ok.sb-collapsed .sidebar-logo a::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 42px;
        height: 42px;
        margin-top: -21px;
        pointer-events: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 L91 26.5 V73.5 L50 97 L9 73.5 V26.5Z' fill='none' stroke='%23FFE08A' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
        opacity: 0;
        animation: logoEmit 4.8s ease-out infinite;
    }
}

@keyframes navIconIn {
    from { opacity: 0; transform: scale(0.4) rotate(-30deg); }
}

@keyframes logoBreathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 224, 138, 0.2)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 9px rgba(255, 224, 138, 0.7)) drop-shadow(0 0 20px rgba(224, 156, 0, 0.35)); }
}

@keyframes logoRipple {
    0%, 40%, 64%, 100% { transform: none; }
    52% { transform: scale(1.14); }
}

@keyframes logoTwinkle {
    0%, 100% { opacity: var(--o, 0.3); transform: none; }
    50% { opacity: 1; transform: scale(1.35); }
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.6; }
}

@keyframes logoEmit {
    0%, 45% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.3); }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;   /* above the background dots (js/fx.js) */
    z-index: 1;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-number {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-border), transparent);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
}

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

.hero-bg canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 182, 18, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(224, 156, 0, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 182, 18, 0.08);
    border: 1px solid rgba(255, 182, 18, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: 40px;
    animation: fadeUp 1s var(--ease-out-expo) 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: dotPulse 2s ease infinite;
}

.hero-name {
    font-family: var(--font-primary);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeUp 1s var(--ease-out-expo) 0.4s both;
}

.hero-first {
    color: var(--color-white);
    display: block;
}

.hero-last {
    display: block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    animation: fadeUp 1s var(--ease-out-expo) 0.6s both;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeUp 1s var(--ease-out-expo) 0.8s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    animation: fadeUp 1s var(--ease-out-expo) 1s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    animation: fadeUp 1s var(--ease-out-expo) 1.2s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-number::after {
    content: '+';
    color: var(--color-primary);
    font-size: 28px;
}

/* exact counts (8 ESPs operated, 1 built) get no plus sign */
.stat-number.exact::after {
    content: none;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-dim);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeUp 1s var(--ease-out-expo) 1.5s both;
}

.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 182, 18, 0.3);
    color: var(--color-bg);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 11px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-full svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-full:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-headline {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about-text strong {
    color: var(--color-primary-light);
    font-weight: 600;
}

.text-link {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(255, 182, 18, 0.3);
    transition: all 0.3s ease;
}

.text-link:hover {
    border-bottom-color: var(--color-primary-light);
}

.about-cta-text {
    color: var(--color-white) !important;
    font-weight: 500;
    font-style: italic;
}

/* Skills */
.skills-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-dim);
    margin-bottom: 24px;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
}

.skill-info span:first-child {
    color: var(--color-text);
}

.skill-info span:last-child {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-weight: 600;
}

.skill-track {
    height: 4px;
    background: var(--color-surface);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
    transition: width 1.5s var(--ease-out-expo);
}

.esp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: rgba(255, 182, 18, 0.06);
    border: 1px solid rgba(255, 182, 18, 0.12);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    background: var(--color-bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--color-text-dim);
    position: relative;
    padding-left: 16px;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 1px;
    background: var(--color-primary);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio {
    background: var(--color-bg);
    padding-top: 120px;
    display: block;
    min-height: auto;
}

.portfolio-intro {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Filters */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    animation: fadeUp 0.6s var(--ease-out-expo) both;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    cursor: pointer;
    aspect-ratio: 16 / 10;
    transition: all 0.4s var(--ease-out-expo);
}

.portfolio-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    margin-bottom: 6px;
}

.portfolio-overlay h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 2px;
}

.portfolio-overlay p {
    font-size: 13px;
    color: var(--color-text-muted);
}

.portfolio-count {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: var(--color-text-dim);
    letter-spacing: 1px;
}

/* ==========================================================================
   PHOTOGRAPHY SECTION
   ========================================================================== */
.photography {
    background: var(--color-bg-dark);
    display: block;
    min-height: auto;
    padding: 120px 0;
}

.photography-intro {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 60px;
    line-height: 1.8;
}

.photo-categories {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.photo-cat-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.photo-cat-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.photo-grid .photo-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.photo-grid .photo-thumb:hover {
    border-color: var(--color-border-hover);
    transform: scale(1.03);
}

.photo-grid .photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   SENDERHIVE FEATURED PROJECT SHOWCASE
   ========================================================================== */
.senderhive-showcase {
    background: linear-gradient(135deg, #0a0907 0%, #110f0c 50%, #0a0907 100%);
    min-height: auto;
    padding: 100px 24px;
    display: block;
    color: #f0f0f5;
    position: relative;
    overflow: hidden;
}

.senderhive-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F47D20, #FAA62A, #1D87C9, transparent);
    opacity: 0.6;
}

.sh-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.sh-header {
    text-align: center;
    margin-bottom: 56px;
}

.sh-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(244, 125, 32, 0.12);
    border: 1px solid rgba(244, 125, 32, 0.3);
    font-size: 11px;
    font-weight: 700;
    color: #F47D20;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: var(--font-primary);
}

.sh-title {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 900;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #F47D20, #FFD700, #1D87C9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1;
}

.sh-tagline {
    font-size: 17px;
    color: #9ca3af;
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.sh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F47D20, #FAA62A);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(244, 125, 32, 0.3);
    transition: all 0.3s var(--ease-out-expo);
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
}

.sh-cta:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 40px rgba(244, 125, 32, 0.45);
}

.sh-cta svg {
    width: 18px;
    height: 18px;
}

.sh-cta svg:last-child {
    width: 15px;
    height: 15px;
}

/* Stats */
.sh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.sh-stat {
    padding: 28px 20px;
    border-radius: 16px;
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), #0d0c0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.sh-stat:hover {
    background: linear-gradient(rgba(244, 125, 32, 0.05), rgba(244, 125, 32, 0.05)), #0d0c0a;
    border-color: rgba(244, 125, 32, 0.2);
    transform: translateY(-2px);
}

.sh-stat-value {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 900;
    color: #F47D20;
    margin-bottom: 6px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.sh-stat-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Feature Grid */
.sh-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.sh-feature {
    padding: 28px 24px;
    border-radius: 16px;
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), #0d0c0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out-expo);
    cursor: default;
}

.sh-feature:hover {
    background: linear-gradient(color-mix(in srgb, var(--fc) 6%, transparent), color-mix(in srgb, var(--fc) 6%, transparent)), #0d0c0a;
    border-color: color-mix(in srgb, var(--fc) 30%, transparent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.sh-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--fc) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.sh-feature:hover .sh-feature-icon {
    background: color-mix(in srgb, var(--fc) 22%, transparent);
    transform: scale(1.05);
}

.sh-feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--fc);
}

.sh-feature h3 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: #f0f0f5;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.sh-feature p {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* Tech Stack */
.sh-tech {
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), #0d0c0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.sh-tech-label {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    color: #8888a8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.sh-tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.sh-pill {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(244, 125, 32, 0.08);
    border: 1px solid rgba(244, 125, 32, 0.2);
    font-size: 11px;
    color: #F47D20;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.sh-pill:hover {
    background: rgba(244, 125, 32, 0.15);
    border-color: rgba(244, 125, 32, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    background: var(--color-bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-lead {
    font-size: 20px;
    color: var(--color-white);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.contact-detail svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-detail a {
    color: var(--color-text-muted);
}

.contact-detail a:hover {
    color: var(--color-primary-light);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 182, 18, 0.1);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    font-size: 14px;
    color: var(--color-text-dim);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 16px;
    font-size: 11px;
    color: var(--color-primary);
    background: var(--color-bg-dark);
    padding: 0 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-dim);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sh-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .sidebar {
        transform: translateX(-100%);
        background: rgba(10, 10, 10, 0.98);   /* the hero text must not show through the open menu */
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section-container {
        padding: 0 32px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sh-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sh-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-name {
        font-size: clamp(36px, 10vw, 64px);
    }

    .hero-title {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-line {
        display: none;
    }

    .senderhive-card {
        padding: 40px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 11px;
    }

    .sh-features {
        grid-template-columns: 1fr;
    }

    .sh-title {
        font-size: 36px;
    }

    .sh-tagline {
        font-size: 15px;
    }

    .senderhive-showcase {
        padding: 70px 20px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section-container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }
}


/* ============================================
   ARCHITECTURE WITHOUT HAND-OFFS
   Replaces the old percentage skill bars.
   ============================================ */
.deps-standfirst {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 22px;
}
.dep-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}
.dep-row {
    padding: 13px 16px;
    background: linear-gradient(rgba(255, 182, 18, 0.04), rgba(255, 182, 18, 0.04)), var(--color-bg);
    border: 1px solid rgba(255, 182, 18, 0.12);
    border-left: 2px solid var(--color-primary);
    border-radius: 8px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.dep-row:hover {
    background: linear-gradient(rgba(255, 182, 18, 0.07), rgba(255, 182, 18, 0.07)), var(--color-bg);
    border-color: rgba(255, 182, 18, 0.28);
    border-left-color: var(--color-primary-light);
    transform: translateX(3px);
}
.dep-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}
.dep-cap {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.2px;
}
.dep-tag {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.dep-built    { color: #FFE08A; background: rgba(255, 224, 138, 0.10); border: 1px solid rgba(255, 224, 138, 0.28); }
.dep-operated { color: #FFB612; background: rgba(255, 182, 18, 0.10); border: 1px solid rgba(255, 182, 18, 0.26); }
.dep-owned    { color: #4ade80; background: rgba(74, 222, 128, 0.09);  border: 1px solid rgba(74, 222, 128, 0.24); }
.dep-delivered{ color: #FAA62A; background: rgba(250, 166, 42, 0.09);  border: 1px solid rgba(250, 166, 42, 0.24); }
.dep-proof {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0;
}
@media (max-width: 640px) {
    .dep-head { flex-direction: column; align-items: flex-start; gap: 5px; }
}

.about-brands-lead {
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 30px 0 12px;
}
.about-brands .tag { font-size: 11px; }


/* ============================================
   SENDERHIVE BRAND — real logo + queen-bee mascot
   Mascot ported from the Senderhive app (BeeMascots.jsx).
   Idle motion is SMIL inside the SVG; only the fly-in is CSS.
   ============================================ */
.sh-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 auto 26px;
}
.sh-logo {
    width: 260px;
    max-width: 68vw;
    height: auto;
    display: block;
}
.sh-bee {
    width: 92px;
    height: 92px;
    margin-bottom: -4px;
    opacity: 0;
    will-change: transform, opacity;
}
.sh-bee-svg { width: 92px; height: 92px; display: block; }
/* fly in from upper right, overshoot, settle — mirrors mascotFlyRight in the app */
.sh-bee.bee-in {
    animation:
        shBeeFlyIn 1.05s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        shBeeFloat 3s ease-in-out 1.05s infinite;
}
@keyframes shBeeFlyIn {
    0%   { transform: translate(140px, -70px) rotate(14deg) scale(0.35); opacity: 0; }
    45%  { transform: translate(-8px, 5px) rotate(-5deg) scale(1.1);     opacity: 1; }
    70%  { transform: translate(4px, -3px) rotate(2deg) scale(0.97); }
    100% { transform: translate(0, 0) rotate(0) scale(1);                opacity: 1; }
}
@keyframes shBeeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
/* respect reduced-motion: show the bee, skip the flight */
@media (prefers-reduced-motion: reduce) {
    .sh-bee { opacity: 1; }
    .sh-bee.bee-in { animation: none; }
    .sh-bee-svg animate,
    .sh-bee-svg animateTransform { display: none; }
}
@media (max-width: 640px) {
    .sh-logo { width: 200px; }
    .sh-bee, .sh-bee-svg { width: 74px; height: 74px; }
}
/* respect reduced-motion: show the bee, skip the flight */
@media (prefers-reduced-motion: reduce) {
    .sh-bee { opacity: 1; }
    .sh-bee.bee-in { animation: none; }
    .sh-bee-svg animate,
    .sh-bee-svg animateTransform { display: none; }
}
@media (max-width: 640px) {
    .sh-bee { width: 110px; height: 110px; }
    .sh-bee-svg { width: 110px; height: 110px; }
}

/* Phones: the hero stats run into the scroll cue, so hide it */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* Contact form: the honeypot field stays out of sight for people; status line under the button */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    min-height: 1.4em;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-dim);
}

.form-status.is-success {
    color: #4ade80;
}

.form-status.is-error {
    color: #f87171;
}

/* ==========================================================================
   First-visit intro: Swarm Assembly (js/intro.js)
   ========================================================================== */
.no-intro .intro {
    display: none;
}

.intro-on body {
    overflow: hidden;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
}

/* the backdrop is its own layer so it can fade while the mark glides to the sidebar */
.intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, #221a0b 0%, var(--color-bg-dark) 70%);
    transition: opacity 0.8s ease;
}

.intro canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.intro-lockup {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.intro-lockup svg {
    width: 150px;
    height: 143px;
    overflow: visible;
}

.intro-word {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(-8px);
}

.intro .hx {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.35);
}

.intro .glow {
    opacity: 0;
}

.intro.play .hx {
    animation: introHex 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.25) forwards;
    animation-delay: calc(1.45s + var(--i) * 0.07s);
}

.intro.play .glow {
    animation: introGlow 0.8s ease 1.7s forwards;
}

.intro.play .intro-word {
    animation: introWord 0.6s ease 2.35s forwards;
}

/* introStyle 'draft-shatter': js/intro.js animates the hexagons, outlines, and shards itself */
.intro.style-draft .hx {
    transform: none;
}

.intro.style-draft.play .hx {
    animation: none;
}

.intro .hx-line {
    fill: none;
    stroke: var(--color-primary-light);
    stroke-width: 1.4;
    stroke-linejoin: round;
    opacity: 0;
}

.intro .hx-shard {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
}

.intro.style-draft.play .glow {
    animation-delay: 2.6s;
}

.intro.style-draft.play .intro-word {
    animation-delay: 2.75s;
}

.intro.leaving::before {
    opacity: 0;
}

.intro.leaving .intro-word {
    animation: introWordOut 0.3s ease forwards;
}

/* phones: the canvas takes over the backdrop and clears it in a wave of hexagons (js/intro.js) */
.intro.honeycomb::before {
    transition: none;
}

.intro .mark-fly {
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.intro.fading {
    opacity: 0;
}

@keyframes introHex {
    to { opacity: var(--o); transform: scale(1); }
}

@keyframes introGlow {
    to { opacity: 0.18; }
}

@keyframes introWord {
    to { opacity: 1; transform: none; }
}

@keyframes introWordOut {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: none; }
}

@media (max-width: 640px) {
    .intro-lockup {
        gap: 12px;
    }

    .intro-lockup svg {
        width: 104px;
        height: 99px;
    }

    .intro-word {
        font-size: 30px;
    }
}

/* ==========================================================================
   Mouse swarm and easter eggs (js/fx.js, settings in js/fx-settings.js)
   ========================================================================== */
.fx-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;   /* inside .main-content: above section backgrounds, below .section-container content */
}

.fx-rain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.fx-rain svg {
    position: absolute;
    top: -60px;
    animation: fxFall var(--t) cubic-bezier(0.3, 0.1, 0.6, 1) forwards;
}

@keyframes fxFall {
    to { transform: translateY(calc(100vh + 120px)) rotate(var(--rot)); opacity: 0.2; }
}

.fx-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: #1d170c;
    border: 1px solid #4a3a17;
    color: var(--color-primary-light);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 1100;
    pointer-events: none;
}

.fx-toast.on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.logo-mark > path {
    transform-box: fill-box;
    transform-origin: center;
}

.logo-mark.fx-cascade > path {
    animation: fxHexDrop 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
    animation-delay: calc(var(--i) * 0.07s);
}

@keyframes fxHexDrop {
    from { opacity: 0; transform: scale(0.2) translateY(10px); }
    to { opacity: var(--o); transform: none; }
}
