/* ==========================================================================
   MZLI – Light Mode (Optimus Layout)
   Table of Contents:
   1. CSS Variables
   2. Resets & Base
   3. Utilities & Typography
   4. Global Animations (Page/Scroll/Loader)
   5. Navigation & Header
   6. Buttons & Badges
   7. Page Sections (Hero, Services, About, etc.)
   8. Components (Terminal, Cards, Orbit)
   9. Footer
   10. Steckbrief (Portfolio/Profile)
   11. Global Media Queries
   ========================================================================== */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    --bg:          #f8f9fb;
    --bg-2:        #f2f4f7;
    --bg-card:     #ffffff;
    --bg-card-2:   #f8f9fb;

    --border:      rgba(0,0,0,0.07);
    --border-md:   rgba(0,0,0,0.12);
    --border-hi:   rgba(0,0,0,0.2);

    --text:        #111111;
    --text-2:      #555555;
    --text-3:      #999999;

    --blue:        #006fff;
    --blue-dim:    rgba(0,111,255,0.07);
    --blue-light:  #e6f1ff;
    --green:       #16a34a;
    --green-dim:   rgba(22,163,74,0.08);
    --orange:      #d97706;
    --red:         #dc2626;
    --purple:      #7c3aed;

    --radius:      10px;
    --radius-sm:   6px;
    --radius-lg:   14px;
    --radius-pill: 100px;

    --shadow-sm:   0 1px 2px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.04);
    --shadow:      0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

/* ============================================
   2. RESETS & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    background: var(--bg);
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--text);
    font-family: 'Instrument Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #0059d6;
}

nav, nav * {
    border: 0;
    outline: none;
}

.navbar {
    all: unset;
    display: block;
}

/* ============================================
   3. UTILITIES & TYPOGRAPHY
   ============================================ */
.section-spacing {
    padding: 6rem 0;
}

.section-eyebrow, 
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.045em;
    line-height: 1.12;
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 0.92rem;
    color: var(--text-2);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.text-gradient {
    padding-right: 0.07em;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   4. GLOBAL ANIMATIONS (Page / Scroll / Loader)
   ============================================ */
[data-loader] .page-content {
    opacity: 0;
    animation: none !important;
}

.page-content {
    padding-top: 78px;
    animation: pageEnter .45s cubic-bezier(.16,1,.3,1) both;
}

.page-leaving {
    animation: pageLeave .22s cubic-bezier(.4,0,1,1) forwards !important;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pageLeave {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.stagger.is-visible > *:nth-child(1)  { transition-delay: .00s; }
.stagger.is-visible > *:nth-child(2)  { transition-delay: .07s; }
.stagger.is-visible > *:nth-child(3)  { transition-delay: .14s; }
.stagger.is-visible > *:nth-child(4)  { transition-delay: .21s; }
.stagger.is-visible > *:nth-child(5)  { transition-delay: .28s; }
.stagger.is-visible > *:nth-child(6)  { transition-delay: .35s; }
.stagger.is-visible > *:nth-child(7)  { transition-delay: .42s; }
.stagger.is-visible > *:nth-child(8)  { transition-delay: .49s; }
.stagger.is-visible > *:nth-child(n+9){ transition-delay: .56s; }
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }



/* Loader */
[data-no-loader] #mzli-loader { display: none !important; }

#mzli-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    background: #06101c;
    will-change: transform;
    transform: translateY(0);
}

#loader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.loader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    will-change: transform;
}

.loader-words {
    position: relative;
    height: clamp(4rem, 12vw, 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    perspective: 800px;
}

.loader-word {
    position: absolute;
    font-size: clamp(2.8rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
    padding-right: 0.07em;
    background: linear-gradient(135deg, #ffffff 0%, #a8c8ff 50%, #00d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(40px) scale(0.92) rotateX(-15deg);
    pointer-events: none;
    white-space: nowrap;
    will-change: transform, opacity;
}

.loader-word.active  { animation: wordEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.loader-word.leaving { animation: wordLeave 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes wordEnter {
    0%   { opacity: 0; transform: translateY(40px) scale(0.92) rotateX(-15deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
}

@keyframes wordLeave {
    0%   { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
    100% { opacity: 0; transform: translateY(-35px) scale(1.04) rotateX(10deg); }
}

.loader-bar {
    position: relative;
    width: clamp(120px, 20vw, 200px);
    height: 2px;
    background: rgba(255,255,255,0.07);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%; width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #4f8eff 0%, #00d8ff 50%, #4f8eff 100%);
    background-size: 200% 100%;
    animation: barShimmer 1.5s linear infinite;
    will-change: width;
}

.loader-brand {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

/* ============================================
   5. NAVIGATION & HEADER
   ============================================ */
#mainHeader {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: top .55s cubic-bezier(.16,1,.3,1),
                left .55s cubic-bezier(.16,1,.3,1),
                right .55s cubic-bezier(.16,1,.3,1);
    will-change: top, left, right;
}

#mainHeader.scrolled {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
}

#mainNav {
    margin: 0 auto;
    max-width: 1400px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    outline: none;
    transition: background .55s cubic-bezier(.16,1,.3,1),
                border-color .55s cubic-bezier(.16,1,.3,1),
                border-radius .55s cubic-bezier(.16,1,.3,1),
                box-shadow .55s cubic-bezier(.16,1,.3,1),
                max-width .55s cubic-bezier(.16,1,.3,1),
                backdrop-filter .55s cubic-bezier(.16,1,.3,1);
}

#mainHeader.scrolled #mainNav {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-color: rgba(0,0,0,0.07);
    border-radius: 1.125rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    max-width: 1200px;
}

.nav-inner {
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    height: 78px;
    transition: height .55s cubic-bezier(.16,1,.3,1);
}

#mainHeader.scrolled .nav-inner { height: 54px; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;
    transition: opacity .2s;
}
.nav-brand:hover { opacity: 0.7; }

.brand-mark {
    width: 7px; height: 7px;
    background: var(--blue);
    border-radius: 2px;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.nav-brand:hover .brand-mark { transform: rotate(135deg); }

.nav-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
    transition: font-size .55s cubic-bezier(.16,1,.3,1);
}
#mainHeader.scrolled .nav-brand-name { font-size: 1.05rem; }

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-link-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(17,17,17,0.45);
    text-decoration: none !important;
    transition: color .25s ease;
}
.nav-link-item:hover, 
.nav-link-item.active { color: var(--text); }

.nav-cta-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-signin {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(17,17,17,0.45);
    text-decoration: none;
    transition: color .25s ease, font-size .55s cubic-bezier(.16,1,.3,1);
    white-space: nowrap;
}
.nav-signin:hover { color: var(--text); }
#mainHeader.scrolled .nav-signin { font-size: 0.8rem; }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    line-height: 0;
    transition: opacity .2s;
}
.mobile-toggle:hover { opacity: 0.6; }

/* Mobile Full-Screen Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-card);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s cubic-bezier(.16,1,.3,1);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-overlay-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 7rem 2.5rem 2.5rem;
}

.mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
}

.mobile-nav-link {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.04em;
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1), color .2s;
}
.mobile-overlay.open .mobile-nav-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.mobile-overlay.open .mobile-nav-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 75ms; }
.mobile-overlay.open .mobile-nav-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 150ms; }
.mobile-nav-link:hover { color: var(--text-2); }

.mobile-nav-cta {
    display: flex;
    gap: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s cubic-bezier(.16,1,.3,1) 300ms, transform .45s cubic-bezier(.16,1,.3,1) 300ms;
}
.mobile-overlay.open .mobile-nav-cta { opacity: 1; transform: translateY(0); }

/* ============================================
   6. BUTTONS & BADGES
   ============================================ */
.nav-pill-btn {
    display: inline-flex;
    align-items: center;
    background: var(--text);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.3rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    white-space: nowrap;
    transition: background .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1), padding .55s cubic-bezier(.16,1,.3,1), font-size .55s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.nav-pill-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
#mainHeader.scrolled .nav-pill-btn { padding: 0.36rem 1rem; font-size: 0.8rem; }

.btn-primary, .btn-unifi {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--text);
    background-image: radial-gradient(circle 80px at var(--btn-mx, -200px) var(--btn-my, 50%), rgba(255,255,255,0.18), transparent);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-sm);
    border: none;
    text-decoration: none;
    transition: background-color .2s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    white-space: nowrap;
}
.btn-primary:hover, .btn-unifi:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-secondary, .btn-unifi-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: transparent;
    background-image: radial-gradient(circle 80px at var(--btn-mx, -200px) var(--btn-my, 50%), rgba(0,111,255,0.13), transparent);
    color: var(--text-2) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem 1.35rem;
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s, transform .2s cubic-bezier(.34,1.56,.64,1);
    white-space: nowrap;
}
.btn-secondary:hover, .btn-unifi-outline:hover {
    border-color: var(--border-hi);
    color: var(--text) !important;
    background-color: rgba(0,0,0,0.02);
    transform: translateY(-2px);
}

.mobile-btn-outline,
.mobile-btn-filled {
    flex: 1;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.mobile-btn-outline { border: 1px solid var(--border-md); color: var(--text); }
.mobile-btn-outline:hover { border-color: var(--border-hi); }
.mobile-btn-filled  { background: var(--text); color: #fff !important; }
.mobile-btn-filled:hover { background: #2a2a2a; }

/* ============================================
   7. PAGE SECTIONS
   ============================================ */

/* Hero Section - New */
.hero-section--new {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background: var(--bg);
}

.hero-sphere-wrap {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-55%);
    width: clamp(480px, 52vw, 820px);
    height: clamp(480px, 52vw, 820px);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}
#heroSphere { width: 100%; height: 100%; }

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
}
.hero-grid__h { position: absolute; left: 0; right: 0; height: 1px; background: var(--text); opacity: 0.12; }
.hero-grid__v { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text); opacity: 0.12; }

.hero-new-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 9rem 1.5rem 10rem;
}

.hero-eyebrow-new {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-3);
    margin-bottom: 2.25rem;
    letter-spacing: 0.02em;
}

.hero-eyebrow-line {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: rgba(17,17,17,0.3);
    flex-shrink: 0;
}

.hero-headline-wrap { margin-bottom: 3rem; }
.hero-headline {
    font-size: clamp(3.5rem, 11vw, 9.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.055em;
    color: var(--text);
    margin: 0;
}
.hero-headline__line { display: block; }

.hero-word-rotate { position: relative; display: inline-block; }
.hero-word-inner { display: inline-flex; }
.hero-word-underline {
    position: absolute;
    bottom: -0.1em;
    left: 0; right: 0;
    height: 0.18em;
    background: rgba(17,17,17,0.08);
    border-radius: 2px;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    animation: charFallIn 0.45s cubic-bezier(.16,1,.3,1) forwards;
    transform-origin: top center;
}

@keyframes charFallIn {
    from { opacity: 0; transform: translateY(-0.4em) rotateX(-60deg); }
    to   { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.hero-bottom-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
.hero-desc { font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--text-2); line-height: 1.75; max-width: 520px; margin: 0; }

.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; flex-shrink: 0; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; align-items: center; } }

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--text);
    background-image: radial-gradient(circle 90px at var(--btn-mx, -200px) var(--btn-my, 50%), rgba(255,255,255,0.18), transparent);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    white-space: nowrap;
}
.btn-hero-primary:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}
.btn-hero-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-arrow { transition: transform .25s cubic-bezier(.34,1.56,.64,1); flex-shrink: 0; }

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    background-image: radial-gradient(circle 90px at var(--btn-mx, -200px) var(--btn-my, 50%), rgba(0,111,255,0.13), transparent);
    color: var(--text-2) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-md);
    text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
    white-space: nowrap;
}
.btn-hero-secondary:hover {
    border-color: var(--border-hi);
    color: var(--text) !important;
    background-color: rgba(0,0,0,0.02);
    transform: translateY(-2px);
}

.hero-marquee-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    overflow: hidden;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    background: var(--bg);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero-marquee { display: flex; gap: 4rem; width: max-content; animation: marqueeScroll 30s linear infinite; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-marquee__track { display: flex; gap: 4rem; align-items: baseline; }
.hero-stat { display: flex; align-items: baseline; gap: 0.85rem; flex-shrink: 0; }
.hero-stat__value { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.055em; color: var(--text); line-height: 1; font-family: 'JetBrains Mono', monospace; }
.hero-stat__meta { font-size: 0.78rem; color: var(--text-2); line-height: 1.4; }
.hero-stat__company { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-3); letter-spacing: 0.06em; margin-top: 0.15rem; }

.hero-animate { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1); }
.hero-animate.is-visible { opacity: 1; transform: translateY(0); }

/* Old Hero (For fallback/other pages) */
.hero-section:not(.hero-section--new) {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section:not(.hero-section--new)::before {
    content: '';
    position: absolute;
    top: -10%; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(0,111,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.75rem;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.hero-title { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 700; color: var(--text); letter-spacing: -0.055em; line-height: 1.06; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1rem; color: var(--text-2); max-width: 520px; line-height: 1.8; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-metrics { display: flex; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); overflow: hidden; max-width: 620px; }
.hero-metric { flex: 1; padding: 1.1rem 1.4rem; border-right: 1px solid var(--border); }
.hero-metric:last-child { border-right: none; }
.hero-metric-num { display: block; font-size: 1.55rem; font-weight: 700; color: var(--text); letter-spacing: -0.045em; line-height: 1.1; font-family: 'JetBrains Mono', monospace; }
.hero-metric-label { display: block; font-size: 0.7rem; color: var(--text-3); margin-top: 0.15rem; white-space: nowrap; }

/* Capabilities */
.capabilities-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; gap: 1px; margin-top: 2.5rem; box-shadow: var(--shadow-sm); }
.cap-card { background: var(--bg-card); padding: 2rem; transition: background .2s; }
.cap-card:hover { background: var(--bg-2); }
.cap-number { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500; color: var(--text-3); letter-spacing: 0.05em; margin-bottom: 1.4rem; }
.cap-icon { width: 38px; height: 38px; border: 1px solid rgba(0,111,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: var(--blue); background: var(--blue-dim); margin-bottom: 0.9rem; }
.cap-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.45rem; }
.cap-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.65; }

/* Services */
.services-section, .services-teaser { padding: 6rem 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.services-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }

/* About & CTA & Page Header */
.about-section { padding: 6rem 0; border-top: 1px solid var(--border); }
.cta-section { padding: 7rem 0; border-top: 1px solid var(--border); position: relative; overflow: hidden; background: var(--bg-2); }
.cta-section::before { content: ''; position: absolute; bottom: -10%; left: 50%; transform: translateX(-50%); width: 700px; height: 500px; background: radial-gradient(ellipse, rgba(0,111,255,0.04) 0%, transparent 70%); pointer-events: none; }
.cta-inner { text-align: center; max-width: 580px; margin: 0 auto; }
.cta-title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; color: var(--text); letter-spacing: -0.05em; line-height: 1.1; margin-bottom: 1rem; }
.cta-desc { font-size: 0.93rem; color: var(--text-2); line-height: 1.8; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cta-note { font-size: 0.74rem; color: var(--text-3); }

.page-header { padding: 5rem 0 4rem; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; background: var(--bg-card); }
.page-header::before { content: ''; position: absolute; top: -30%; left: 25%; width: 500px; height: 400px; background: radial-gradient(ellipse, rgba(0,111,255,0.04) 0%, transparent 70%); pointer-events: none; }
.page-header-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem; }
.page-header-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; color: var(--text); letter-spacing: -0.05em; line-height: 1.1; margin-bottom: 1rem; }
.page-header-desc { font-size: 0.95rem; color: var(--text-2); max-width: 580px; line-height: 1.8; }
.meta-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; font-weight: 500; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }

.cta-section--premium {
    position: relative;
    /* padding: 5rem 0; */
    border-top: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 20%, rgba(0,111,255,0.06), transparent 35%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    overflow: hidden;
}

.cta-inner--premium {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    padding: 3rem 1.75rem;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.08),
        0 10px 24px rgba(0,111,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(10px);
}

.cta-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.cta-bg-orb-1 {
    width: 260px;
    height: 260px;
    top: -60px;
    left: -40px;
    background: rgba(0,111,255,0.14);
}

.cta-bg-orb-2 {
    width: 220px;
    height: 220px;
    right: -40px;
    bottom: -40px;
    background: rgba(124,58,237,0.10);
}


.cta-inner--premium > * {
    position: relative;
    z-index: 1;
}

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cta-eyebrow-line {
    width: 28px;
    height: 1px;
    background: rgba(17,17,17,0.2);
    flex-shrink: 0;
}

.cta-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.02;
    color: var(--text);
    margin-bottom: 1rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.cta-desc {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 54px;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.25s cubic-bezier(.34,1.56,.64,1),
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.btn-cta-primary {
    background: linear-gradient(180deg, #111111 0%, #1f1f1f 100%);
    color: #fff !important;
    font-size: 0.96rem;
    font-weight: 700;
    box-shadow:
        0 12px 28px rgba(0,0,0,0.18),
        0 6px 16px rgba(0,111,255,0.10);
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.2),
        0 10px 20px rgba(0,111,255,0.12);
}

.btn-cta-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.72);
    color: var(--text) !important;
    font-size: 0.94rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.btn-cta-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.92);
    border-color: rgba(0,0,0,0.14);
}

.cta-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-3);
}

.cta-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.cta-trust-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(17,17,17,0.14);
    flex-shrink: 0;
}

/* ============================================
   STACK SECTION
   ============================================ */

.stack-section {
    position: relative;
    padding: 7rem 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(0,111,255,0.06), transparent 35%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    overflow: hidden;
}

.stack-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.018) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
    pointer-events: none;
    opacity: 0.45;
}

.stack-intro {
    max-width: 760px;
    margin: 1rem auto 0;
    text-align: center;
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.8;
}


/* Legal Section */
.legal-section { padding: 5rem 0; }
.legal-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem; max-width: 800px; margin: 35px auto; box-shadow: var(--shadow-sm); overflow-wrap: break-word; word-break: normal; }
.legal-inner h1 { font-size: 1.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; letter-spacing: -0.04em; }
.legal-inner .legal-subtitle { font-size: 0.78rem; color: var(--text-3); margin-bottom: 2rem; }
.legal-inner h2, .legal-inner h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 1.75rem 0 0.5rem; }
.legal-inner p, .legal-inner li { font-size: 0.875rem; color: var(--text-2); line-height: 1.8; margin-bottom: 0.75rem; overflow-wrap: break-word; }
.legal-inner ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal-inner a { color: var(--blue); word-break: break-all; }
.legal-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ============================================
   8. COMPONENTS (Cards, Terminal, Orbit)
   ============================================ */
.service-card, .service-card-full { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.9rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s; }
.service-card:hover, .service-card-full:hover { box-shadow: var(--shadow); border-color: var(--border-md); transform: translateY(-1px); }
.service-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.icon-blue { background: rgba(0,111,255,0.08); color: var(--blue); }
.icon-green { background: rgba(22,163,74,0.08); color: var(--green); }
.icon-orange { background: rgba(217,119,6,0.08); color: var(--orange); }
.icon-purple { background: rgba(124,58,237,0.08); color: var(--purple); }
.icon-red { background: rgba(220,38,38,0.08); color: var(--red); }
.service-info { flex: 1; min-width: 0; }
.service-name { font-size: 0.84rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-name-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.1rem; }
.service-type-badge { font-size: 0.63rem; font-weight: 600; color: var(--text-3); background: var(--bg-2); border: 1px solid var(--border); padding: 0.1rem 0.45rem; border-radius: var(--radius-pill); font-family: 'JetBrains Mono', monospace; }
.service-desc { font-size: 0.75rem; color: var(--text-2); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-online { display: flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 600; color: var(--green); white-space: nowrap; flex-shrink: 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse-dot 2.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.4); } 50% { opacity: 0.75; box-shadow: 0 0 0 4px rgba(22,163,74,0); } }

/* Hardware Cards */
.hw-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s; }
.hw-card:hover { box-shadow: var(--shadow); border-color: var(--border-md); transform: translateY(-2px); }
.hw-card-header { padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 0.85rem; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.hw-icon { width: 36px; height: 36px; background: var(--blue-dim); border: 1px solid rgba(0,111,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--blue); flex-shrink: 0; }
.hw-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.hw-role { font-size: 0.74rem; color: var(--text-2); margin-top: 0.1rem; }
.hw-status { margin-left: auto; }
.hw-specs { padding: 1.2rem 1.5rem; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.spec-row:last-child { border-bottom: none; }
.spec-key { font-size: 0.74rem; font-weight: 500; color: var(--text-3); flex-shrink: 0; min-width: 60px; font-family: 'JetBrains Mono', monospace; }
.spec-val { font-size: 0.79rem; color: var(--text-2); text-align: right; }
.spec-val.uptime-green { color: var(--green); }
.hw-card-footer { padding: 0.75rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-2); }
.vm-count-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vm-badge { font-size: 0.67rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: var(--radius-pill); font-family: 'JetBrains Mono', monospace; }
.vm-badge.running { background: rgba(22,163,74,0.08); color: var(--green); border: 1px solid rgba(22,163,74,0.18); }
.vm-badge.stopped { background: rgba(0,0,0,0.04); color: var(--text-3); border: 1px solid var(--border-md); }
.vm-badge.lxc { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(0,111,255,0.18); }

/* Gallery */
.gallery-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.gallery-placeholder { background: var(--bg-card); border: 1px dashed var(--border-md); border-radius: var(--radius); height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--text-3); transition: border-color .2s, background .2s; }
.gallery-placeholder:hover { border-color: var(--blue); background: var(--blue-dim); }
.gallery-placeholder i { font-size: 1.75rem; }
.gallery-placeholder span { font-size: 0.79rem; font-weight: 500; }

/* Terminal Card */
.terminal-card { background: #0c0c0c; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal-header { background: rgba(255,255,255,0.03); padding: 0.8rem 1.1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.t-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.terminal-title { font-size: 0.72rem; color: #3a3a3a; margin-left: 0.5rem; font-family: 'JetBrains Mono', monospace; }
.terminal-body { padding: 1.4rem 1.6rem 1.6rem; font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: 0.78rem; line-height: 1.5; }
.nf-output { display: flex; gap: 1.75rem; align-items: flex-start; margin: 0.6rem 0 1rem; overflow-x: auto; }
.nf-ascii { color: #f59e0b; font-size: 0.58rem; line-height: 1.22; white-space: pre; flex-shrink: 0; margin: 0; }
.nf-info { flex: 1; min-width: 0; padding-top: 0.1rem; }
.nf-title { color: #4f8eff; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.15rem; }
.nf-divider { color: #2a2a2a; font-size: 0.7rem; margin-bottom: 0.4rem; }
.nf-row { display: flex; gap: 0; margin-bottom: 0.17rem; font-size: 0.74rem; }
.nf-key { color: #4f8eff; font-weight: 600; min-width: 72px; flex-shrink: 0; }
.nf-key::after { content: ': '; color: #333; font-weight: 400; }
.nf-val { color: #c9d1d9; }
.nf-val.nf-green { color: #22c55e; }
.nf-cmdline { display: flex; align-items: center; font-size: 0.79rem; margin-bottom: 0.3rem; }
.nf-cmdline--bottom { margin-top: 0.4rem; margin-bottom: 0; }
.nf-user { color: #22c55e; font-weight: 600; }
.nf-colon { color: #333; }
.nf-path { color: #4f8eff; }
.nf-hash { color: #333; margin-left: 0.1rem; }
.nf-cmd { color: #c9d1d9; }
.nf-colors { display: flex; gap: 4px; margin-top: 0.6rem; }
.nf-colors span { width: 13px; height: 13px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.nf-cursor { color: #c9d1d9; animation: blink-cursor 1.1s step-end infinite; }
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================
   STACK ORBIT
   ============================================ */

.stack-orbit-wrap {
    position: relative;
    margin-top: 3.2rem;
}

.stack-orbit-container {
    position: relative;
    width: 560px;
    height: 560px;
    margin: 0 auto;
    isolation: isolate;
}

.stack-orbit-glow {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(0,111,255,0.18) 0%, rgba(0,111,255,0.08) 38%, rgba(0,111,255,0) 72%);
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.stack-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108px;
    height: 108px;
    transform: translate(-50%, -50%);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    z-index: 12;
    color: #fff;
    background:
        linear-gradient(180deg, #0c7cff 0%, #006fff 100%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 30px 80px rgba(0,111,255,0.24),
        0 10px 30px rgba(0,0,0,0.10),
        inset 0 1px 0 rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
}

.stack-center::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 36px;
    border: 1px solid rgba(0,111,255,0.14);
    pointer-events: none;
}

.stack-center-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.stack-center-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.96;
}

.stack-center-sub {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.stack-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.stack-orbit-ring.ring-1 {
    width: 220px;
    height: 220px;
    border: 1px dashed rgba(0,111,255,0.14);
}

.stack-orbit-ring.ring-2 {
    width: 390px;
    height: 390px;
    border: 1px dashed rgba(0,111,255,0.11);
}

.stack-orbit-ring.ring-3 {
    width: 560px;
    height: 560px;
    border: 1px dashed rgba(0,111,255,0.09);
}

.stack-orbit-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 50px rgba(0,111,255,0.04);
}

.stack-orbit-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    z-index: 5;
    will-change: transform;
    text-align: center;
}

.stack-orbit-item i {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.15rem;
    color: var(--blue);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,249,251,0.92));
    border: 1px solid rgba(0,111,255,0.10);
    box-shadow:
        0 16px 34px rgba(0,0,0,0.07),
        0 4px 14px rgba(0,111,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition:
        transform 0.28s cubic-bezier(.16,1,.3,1),
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
    backdrop-filter: blur(10px);
}

.stack-orbit-item span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-2);
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.stack-orbit-item::after {
    content: "";
    position: absolute;
    top: 27px;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0,111,255,0.18);
    filter: blur(10px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.stack-orbit-item:hover i {
    transform: translateY(-4px) scale(1.08);
    border-color: rgba(0,111,255,0.24);
    box-shadow:
        0 22px 40px rgba(0,0,0,0.10),
        0 0 0 8px rgba(0,111,255,0.08),
        0 8px 24px rgba(0,111,255,0.12);
}

.stack-orbit-item:hover span {
    color: var(--text);
    opacity: 1;
    transform: translateY(-1px);
}

.stack-orbit-item:hover::after {
    opacity: 1;
}

.stack-grid-fallback { display: none; }


/* ============================================
   ENTERPRISE META BAR
   ============================================ */

.stack-meta {
    max-width: 860px;
    margin: 2.8rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stack-meta-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}

.stack-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.stack-meta-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* ============================================
   9. FOOTER
   ============================================ */
footer { border-top: 1px solid var(--border); padding: 1.5rem 0; background: var(--bg-card); }
.footer-brand { font-size: 0.9rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.footer-copy { font-size: 0.8rem; color: var(--text-3); margin: 0; }
.footer-link { font-size: 0.8rem; color: var(--text-2); transition: color .2s; }
.footer-link:hover { color: var(--text); }
.footer-divider { color: var(--text-3); }

/* ============================================
   10. STECKBRIEF SECTION (Portfolio / Scroll Stages)
   ============================================ */
.steckbrief-section {
    position: relative;
    min-height: 100vh;
    background-color: #06101c;
    border-top: 1px solid var(--border);
    overflow: hidden;
    transition: background-color 1s cubic-bezier(.16,1,.3,1);
}

.steckbrief-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 36px 36px;
    animation: sbGridDrift 28s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes sbGridDrift { from { background-position: 0 0; } to { background-position: 36px 36px; } }

.sb-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; contain: strict; }
.sb-orb { position: absolute; border-radius: 50%; filter: blur(60px); animation: sbOrbFloat var(--dur, 12s) ease-in-out infinite alternate; will-change: transform; transform: translateZ(0); }
.sb-orb-1 { width: 560px; height: 560px; top: 10vh; left: -120px; background: rgba(0,111,255,0.2); --dur: 15s; }
.sb-orb-2 { width: 420px; height: 420px; top: 40vh; right: -80px; background: rgba(124,58,237,0.15); --dur: 11s; animation-delay: -4s; }
.sb-orb-3 { width: 350px; height: 350px; bottom: 15vh; left: 25%; background: rgba(6,182,212,0.12); --dur: 9s; animation-delay: -7s; }
.sb-orb-4 { width: 480px; height: 480px; top: 60vh; right: -60px; background: rgba(22,163,74,0.08); --dur: 14s; animation-delay: -11s; }
@keyframes sbOrbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 35px) scale(1.12); } }

.sb-flash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(79,142,255,0.22) 0%, transparent 65%); opacity: 0; pointer-events: none; z-index: 20; }
.sb-flash.fire { animation: sbFlashBurst 0.5s ease-out forwards; }
@keyframes sbFlashBurst { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

.steckbrief-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; contain: layout style paint; }
.steckbrief-container { position: relative; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 2; perspective: 1400px; }

/* Progress Dots & UI */
.sb-progress-wrap { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; z-index: 10; }
.sb-progress-wrap::before { content: ''; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1px; background: rgba(255,255,255,0.08); transform: translateX(-50%); z-index: -1; }
.sb-progress-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.1); transition: background 0.4s, box-shadow 0.4s, transform 0.4s, height 0.4s; flex-shrink: 0; cursor: default; }
.sb-progress-dot.active { background: #4f8eff; width: 7px; height: 22px; border-radius: 4px; box-shadow: 0 0 0 3px rgba(79,142,255,0.18), 0 0 18px rgba(79,142,255,0.7); }

.sb-stage-counter { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.22em; color: rgba(255,255,255,0.2); z-index: 10; white-space: nowrap; transition: color 0.5s; pointer-events: none; }
.sb-scroll-line { position: absolute; bottom: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, #4f8dff00, #a78bfa00, #00d9ff00); background-size: 200% 100%; animation: sbLineShimmer 2s linear infinite; z-index: 20; pointer-events: none; transition: width 0.12s linear; }
@keyframes sbLineShimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.steckbrief-sticky > .sb-scroll-hint { position: absolute; bottom: 3.5rem; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; z-index: 10; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.28); text-transform: uppercase; animation: sbScrollBounce 2.2s ease-in-out infinite; }
.steckbrief-sticky > .sb-scroll-hint.visible { opacity: 1; }

/* Global Stages Logic */
.sb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(100px) rotateX(20deg) scale(0.86); filter: blur(10px); transform-origin: center 60%; transition: opacity 0.85s cubic-bezier(.16,1,.3,1), transform 0.85s cubic-bezier(.16,1,.3,1), filter 0.6s cubic-bezier(.16,1,.3,1); pointer-events: none; z-index: 1; will-change: transform, opacity, filter; }
.sb-stage.enter-back { transform: translateY(-100px) rotateX(-20deg) scale(0.86); filter: blur(10px); }
.sb-stage.active { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); filter: blur(0px); pointer-events: auto; z-index: 2; }
.sb-stage.leaving { opacity: 0; transform: translateY(-70px) rotateX(-14deg) scale(0.9); filter: blur(6px); transition: opacity 0.46s cubic-bezier(.4,0,.6,1), transform 0.46s cubic-bezier(.4,0,.6,1), filter 0.38s cubic-bezier(.4,0,.6,1); }
.sb-stage.leaving-back { opacity: 0; transform: translateY(70px) rotateX(14deg) scale(0.9); filter: blur(6px); transition: opacity 0.46s cubic-bezier(.4,0,.6,1), transform 0.46s cubic-bezier(.4,0,.6,1), filter 0.38s cubic-bezier(.4,0,.6,1); }

/* Stage 0: Intro */
.sb-intro { text-align: center; padding: 0 1rem; }
.sb-intro-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #4f8eff; margin-bottom: 1.75rem; opacity: 0; }
.sb-intro-name { display: block; font-size: clamp(5.5rem, 15vw, 10.5rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.88; padding-right: 0.08em; background: linear-gradient(135deg, #ffffff 0%, #a8c8ff 50%, #00d8ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1.5rem; }
.sb-intro-name .sb-letter { display: inline-block; opacity: 0; transform: translateY(-55px) rotate(-5deg); will-change: transform, opacity; }
.sb-stage[data-stage="0"].active .sb-letter { animation: sbLetterDrop 0.65s cubic-bezier(.16,1,.3,1) both; }
.sb-stage[data-stage="0"].active .sb-letter:nth-child(1) { animation-delay: 0.08s; }
.sb-stage[data-stage="0"].active .sb-letter:nth-child(2) { animation-delay: 0.17s; }
.sb-stage[data-stage="0"].active .sb-letter:nth-child(3) { animation-delay: 0.26s; }
.sb-stage[data-stage="0"].active .sb-letter:nth-child(4) { animation-delay: 0.35s; }
.sb-stage[data-stage="0"].active .sb-letter:nth-child(5) { animation-delay: 0.44s; }
.sb-stage[data-stage="0"].active .sb-letter:nth-child(6) { animation-delay: 0.53s; }
@keyframes sbLetterDrop { from { opacity: 0; transform: translateY(-55px) rotate(-5deg) scale(0.85); } to { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); } }

.sb-stage[data-stage="0"].active .sb-intro-label { animation: sbFadeUp 0.5s cubic-bezier(.16,1,.3,1) 0s both; }
.sb-stage[data-stage="0"].active .sb-intro-sub { animation: sbFadeUp 0.55s cubic-bezier(.16,1,.3,1) 0.55s both; }
.sb-stage[data-stage="0"].active .sb-scroll-hint { animation: sbFadeUp 0.5s cubic-bezier(.16,1,.3,1) 0.75s both; }
@keyframes sbFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.sb-intro-sub { font-size: clamp(0.9rem, 2vw, 1.1rem); color: rgba(255,255,255,0.42); margin-bottom: 3.5rem; font-weight: 400; opacity: 0; }
.sb-scroll-hint { display: inline-flex; align-items: center; gap: 0.8rem; opacity: 0; font-size: 0.73rem; color: rgba(255,255,255,0.32); animation: sbScrollBounce 2.2s ease-in-out infinite; }
.sb-scroll-mouse { width: 20px; height: 33px; border: 2px solid rgba(255,255,255,0.22); border-radius: 20px; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; }
.sb-scroll-wheel { width: 3px; height: 7px; background: rgba(255,255,255,0.45); border-radius: 2px; animation: sbWheelScroll 1.6s ease-in-out infinite; }
@keyframes sbWheelScroll { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(9px); opacity: 0; } }
@keyframes sbScrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* Stage 1: Photo */
/* ============================================
   STAGE 1: PREMIUM PHOTO DESIGN
   ============================================ */

/* Grundlayout: Viel Platz, saubere Aufteilung */
.sb-photo-stage--premium { 
    display: grid; 
    grid-template-columns: minmax(320px, 400px) minmax(320px, 1fr); 
    align-items: center; 
    gap: 6rem; 
    width: 100%; 
}

/* --- LINKE SEITE: BILD-CONTAINER --- */
.sb-photo-left { 
    position: relative; 
    flex-shrink: 0; 
    perspective: 1000px;
}

/* Der neue, unsichtbare Rahmen (Sleek Look) */
.sb-photo-premium-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    background: #0a111a;
    overflow: hidden;
    /* Subtiler 1px Rahmen innen + tiefer, weicher Schatten außen */
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
}

/* Das Bild selbst + sanfter Hover-Zoom */
.sb-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-photo-premium-wrap:hover .sb-photo-img {
    transform: scale(1.04);
}

/* Status Pill (Modern Glassmorphism) */
.sb-photo-status { 
    position: absolute; 
    top: 1.25rem; 
    left: 1.25rem; 
    z-index: 10; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.4rem 0.85rem; 
    border-radius: 100px; 
    background: rgba(0, 0, 0, 0.35); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: rgba(255, 255, 255, 0.9); 
    font-size: 0.65rem; 
    font-weight: 600; 
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}

/* Pulsierender grüner Punkt */
.sb-photo-status-dot { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: #5ee09b; 
    box-shadow: 0 0 0 4px rgba(94, 224, 155, 0.2); 
    animation: pulseDotPremium 2s infinite;
}

@keyframes pulseDotPremium {
    0% { box-shadow: 0 0 0 0 rgba(94, 224, 155, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(94, 224, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 224, 155, 0); }
}

/* Info Card unten rechts über dem Bild (Dark Glass Look) */
.sb-photo-card { 
    position: absolute; 
    bottom: 1.25rem; 
    right: 1.25rem; 
    z-index: 10; 
    border-radius: 16px; 
    padding: 1.1rem 1.25rem; 
    background: rgba(10, 15, 25, 0.65); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    max-width: calc(100% - 2.5rem);
}

.sb-photo-card-label { 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    letter-spacing: 0.14em; 
    color: rgba(255, 255, 255, 0.4); 
    margin-bottom: 0.25rem; 
}

.sb-photo-card-value { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: #ffffff; 
    line-height: 1.2; 
    margin-bottom: 0.15rem; 
}

.sb-photo-card-sub { 
    font-size: 0.7rem; 
    color: rgba(255, 255, 255, 0.5); 
    line-height: 1.4; 
}

/* --- RECHTE SEITE: TYPOGRAFIE --- */
.sb-photo-right { 
    flex: 1; 
    position: relative; 
    z-index: 2; 
}

.sb-name-eyebrow { 
    font-size: 0.75rem; 
    font-family: 'JetBrains Mono', monospace; 
    color: #4f8eff; 
    margin-bottom: 1rem; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sb-name-big { 
    font-size: clamp(3rem, 6vw, 5rem); 
    font-weight: 800; 
    letter-spacing: -0.04em; 
    line-height: 1.05; 
    color: #ffffff; 
    margin-bottom: 1.2rem; 
}

.sb-title-sub { 
    font-size: 0.95rem; 
    color: rgba(255, 255, 255, 0.5); 
    line-height: 1.6;
    margin-bottom: 2rem; 
    max-width: 500px; 
}

/* Moderne Tags */
.sb-name-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
}

.sb-name-tag { 
    font-size: 0.7rem; 
    font-weight: 500; 
    padding: 0.4rem 1rem; 
    border-radius: 100px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: rgba(255, 255, 255, 0.8); 
    letter-spacing: 0.02em; 
    transition: background 0.2s, border-color 0.2s;
}

.sb-name-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- ANIMATIONEN (Wichtig für das Scroll-Erlebnis) --- */
.sb-name-eyebrow, .sb-name-big, .sb-title-sub, .sb-name-tags { 
    opacity: 0; 
    transform: translateX(30px); 
}

.sb-stage[data-stage="1"].active .sb-photo-premium-wrap { 
    animation: sbPhotoRevealPremium 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; 
}

.sb-stage[data-stage="1"].active .sb-name-eyebrow, 
.sb-stage[data-stage="1"].active .sb-name-big, 
.sb-stage[data-stage="1"].active .sb-title-sub, 
.sb-stage[data-stage="1"].active .sb-name-tags { 
    animation: sbTextSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; 
}

.sb-stage[data-stage="1"].active .sb-name-eyebrow { animation-delay: 0.1s; }
.sb-stage[data-stage="1"].active .sb-name-big { animation-delay: 0.2s; }
.sb-stage[data-stage="1"].active .sb-title-sub { animation-delay: 0.3s; }
.sb-stage[data-stage="1"].active .sb-name-tags { animation-delay: 0.4s; }

@keyframes sbPhotoRevealPremium { 
    from { opacity: 0; transform: translateY(40px) scale(0.95); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

@keyframes sbTextSlideIn { 
    from { opacity: 0; transform: translateX(30px); } 
    to { opacity: 1; transform: translateX(0); } 
}


/* Stage 2: Data Cards */
.sb-data-stage { width: 100%; max-width: 800px; }
.sb-data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; perspective: 900px; }
.sb-data-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: translateY(40px) rotateX(20deg) scale(0.88); transform-origin: center top; animation: none; transition: border-color 0.28s, background 0.28s, box-shadow 0.28s, transform 0.28s; will-change: transform, opacity; }
.sb-data-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(79,142,255,0.28); box-shadow: 0 0 28px rgba(79,142,255,0.12), 0 8px 32px rgba(0,0,0,0.35); transform: translateY(-3px) scale(1.02) !important; }
.sb-stage[data-stage="2"].active .sb-data-card { animation: sbCardIn 0.65s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--card-i, 0) * 0.08s + 0.1s); }
@keyframes sbCardIn { from { opacity: 0; transform: translateY(40px) rotateX(22deg) scale(0.85); } to { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); } }
.sb-data-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; margin-bottom: 0.25rem; }
.sb-data-card-icon.blue   { background: rgba(0,111,255,0.18);    color: #7eb8ff; }
.sb-data-card-icon.green  { background: rgba(56,204,101,0.15);   color: #5ee09b; }
.sb-data-card-icon.purple { background: rgba(167,139,250,0.15);  color: #c4b5fd; }
.sb-data-card-icon.orange { background: rgba(245,165,36,0.15);   color: #fbbf24; }
.sb-data-card-icon.cyan   { background: rgba(6,182,212,0.15);    color: #67e8f9; }
.sb-data-label { font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(255,255,255,0.33); }
.sb-data-value { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.88); }
.sb-data-value.highlight { color: #5ee09b; }

/* Stage 3: Experience */
.sb-xp-stage { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 0.85rem; }
.sb-xp-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 1.4rem 1.5rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: translateX(-40px); transition: border-color 0.28s, background 0.28s; }
.sb-xp-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(79,142,255,0.28); }
.sb-stage[data-stage="3"].active .sb-xp-card { animation: sbXpSlide 0.65s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--xp-i, 0) * 0.12s + 0.1s); }
@keyframes sbXpSlide { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
.sb-xp-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.7rem; }
.sb-xp-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.sb-xp-icon.blue   { background: rgba(0,111,255,0.18);   color: #7eb8ff; }
.sb-xp-icon.purple { background: rgba(167,139,250,0.15); color: #c4b5fd; }
.sb-xp-icon.cyan   { background: rgba(6,182,212,0.15);   color: #67e8f9; }
.sb-xp-title { font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 0.15rem; }
.sb-xp-sub { font-size: 0.7rem; color: rgba(255,255,255,0.35); font-family: 'JetBrains Mono', monospace; }
.sb-xp-desc { font-size: 0.8rem; color: rgba(255,255,255,0.42); line-height: 1.7; margin-bottom: 0.85rem; }
.sb-xp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sb-xp-tag { font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 99px; background: rgba(79,142,255,0.1); border: 1px solid rgba(79,142,255,0.2); color: #7eb8ff; letter-spacing: 0.02em; }

/* Stage 4: Summary */
.sb-summary-stage { width: 100%; max-width: 600px; }
.sb-summary-glow-wrap { padding: 2px; border-radius: 24px; background: linear-gradient(135deg, rgba(0,111,255,0.7), rgba(124,58,237,0.6), rgba(6,182,212,0.5)); background-size: 200% 200%; animation: sbBorderFlow 4s ease infinite; position: relative; }
.sb-summary-glow-wrap::before { content: ''; position: absolute; inset: -40px; border-radius: 40px; background: radial-gradient(ellipse, rgba(0,111,255,0.35) 0%, rgba(124,58,237,0.2) 40%, transparent 70%); filter: blur(30px); z-index: -1; animation: sbGlowPulse 3s ease-in-out infinite; }
@keyframes sbGlowPulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.12); opacity: 1; } }
.sb-stage[data-stage="4"].active .sb-summary-glow-wrap { animation: sbBorderFlow 4s ease infinite, sbSummaryBurst 0.8s cubic-bezier(.16,1,.3,1) both; }
@keyframes sbSummaryBurst { from { opacity: 0; transform: scale(0.78) translateY(24px); } 60% { transform: scale(1.03) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.sb-stage[data-stage="4"].active .sb-summary-stat { animation: sbFadeUp 0.5s cubic-bezier(.16,1,.3,1) both; }
.sb-stage[data-stage="4"].active .sb-summary-stat:nth-child(1) { animation-delay: 0.55s; }
.sb-stage[data-stage="4"].active .sb-summary-stat:nth-child(2) { animation-delay: 0.68s; }
.sb-stage[data-stage="4"].active .sb-summary-stat:nth-child(3) { animation-delay: 0.81s; }
@keyframes sbBorderFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.sb-summary-card { background: #0c1929; border-radius: 22px; padding: 2.75rem 2.5rem; text-align: center; }
.sb-summary-badge { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.68rem; font-weight: 600; color: #5ee09b; background: rgba(56,204,101,0.1); border: 1px solid rgba(56,204,101,0.22); padding: 0.3rem 0.9rem; border-radius: 99px; margin-bottom: 1.5rem; }
.sb-summary-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.045em; color: #ffffff; margin-bottom: 0.9rem; line-height: 1.15; }
.sb-summary-text { font-size: 0.88rem; color: rgba(255,255,255,0.43); line-height: 1.8; margin-bottom: 2rem; }
.sb-summary-stats { display: flex; justify-content: center; gap: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.07); }
.sb-summary-stat-value { font-size: 2.1rem; font-weight: 900; letter-spacing: -0.06em; padding-right: 0.08em; background: linear-gradient(135deg, #7eb8ff, #00d8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 0.35rem; }
.sb-summary-stat-label { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(255,255,255,0.28); }

/* ============================================
   11. GLOBAL MEDIA QUERIES (Layout)
   ============================================ */
@media (max-width: 767px) {
    .nav-links-desktop, 
    .nav-cta-desktop, 
    .stack-orbit-container { display: none; }
    .mobile-toggle { display: flex; }
    .page-content { padding-top: 78px; }
    .hero-bottom-row { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
    .hero-ctas { display: flex; flex-direction: row; width: 100%; gap: 0.5rem; }
    
    .section-spacing,
    .services-section,
    .services-teaser,
    .about-section { padding: 4rem 0; }
    
    .cta-section { padding: 4.5rem 0; }
    .stack-section, .gallery-section { padding: 3.5rem 0; }
    .capabilities-section { padding: 3rem 0; }
    .page-header { padding: 3.5rem 0 3rem; }

    .terminal-body { font-size: 0.72rem; padding: 1rem 1.1rem 1.2rem; }
    .nf-output { gap: 1rem; }
    .hero-marquee-wrap { padding: 1rem 0; }
    .stack-grid-fallback { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }

        .stack-orbit-wrap {
        display: none;
    }

    .stack-grid-fallback {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        margin-top: 2rem;
    }

    .stack-badge {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        min-height: 56px;
        padding: 0.95rem 1rem;
        border-radius: 16px;
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 10px 26px rgba(0,0,0,0.05);
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--text);
    }

    .stack-badge i {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,111,255,0.08);
        color: var(--blue);
        flex-shrink: 0;
    }

    .stack-meta {
        margin-top: 1.3rem;
    }
}

@media (max-width: 575px) {
    .hero-section:not(.hero-section--new) .hero-title { font-size: 2.25rem; }
    .hero-metrics { flex-wrap: wrap; }
    .hero-metric { min-width: 50%; }
    .cap-grid { grid-template-columns: 1fr; }
    .cta-title { font-size: 1.8rem; }
    .section-title { font-size: 1.75rem; }
    .legal-inner { padding: 1.75rem; }
    
    footer .text-right, 
    footer .col-md-4 { text-align: center !important; margin-top: 0.5rem; }

    .hero-headline { font-size: clamp(2.25rem, 9.5vw, 3.5rem); }
    .hero-new-inner { padding: 6rem 1rem 8rem; }
    .hero-sphere-wrap { display: none; }
    .hero-stat__value { font-size: 1.25rem; }

    .section-spacing,
    .services-section,
    .services-teaser,
    .about-section,
    .stack-section,
    .page-header { padding: 3rem 0; }
    
    .cta-section { padding: 3.5rem 0; }
    .capabilities-section, .gallery-section { padding: 2.5rem 0; }

    .spec-row { flex-wrap: wrap; gap: .15rem .75rem; }
    .spec-val { text-align: left; }
    .hw-name { font-size: 0.82rem; }
    .hw-role { font-size: 0.68rem; }
    .service-desc { white-space: normal; }

    .terminal-body { padding: 0.85rem 0.9rem 1rem; font-size: 0.7rem; }
    .nf-ascii { display: none; }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-secondary { width: 100%; justify-content: center; }
    
    .page-header .meta-badge { font-size: 0.68rem; }
}

/* ============================================
   12. STECKBRIEF MEDIA QUERIES (Mobile Redesign)
   ============================================ */
@media (max-width: 767px) {
    /* Base Steckbrief Overrides */
    .steckbrief-section { min-height: auto !important; background-color: #06101c !important; padding: 0 !important; overflow: hidden; }
    .steckbrief-section::before { display: block !important; opacity: 0.4; animation: none !important; }
    .steckbrief-sticky { position: relative !important; height: auto !important; display: block !important; overflow: visible !important; }
    .steckbrief-container { height: auto !important; display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important; perspective: none !important; max-width: 100% !important; }
    
    /* Hide Desktop UI */
    .sb-flash, .sb-progress-wrap, .sb-scan-line, .sb-scroll-hint, .sb-stage-counter, .sb-scroll-line, .steckbrief-sticky > .sb-scroll-hint { display: none !important; }
    
    /* Orbs Resize */
    .sb-orbs { display: block !important; }
    .sb-orb-1 { width: 340px; height: 340px; top: 5vh; left: -100px; }
    .sb-orb-2 { width: 260px; height: 260px; top: 35vh; right: -60px; }
    .sb-orb-3 { width: 220px; height: 220px; bottom: 25vh; left: 15%; }
    .sb-orb-4 { width: 300px; height: 300px; top: 65vh; right: -40px; }

    /* Stages Setup */
    .sb-stage {
        position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; filter: none !important;
        pointer-events: auto !important; display: block !important; z-index: auto !important; transition: opacity 0.4s !important; animation: none !important;
    }
    .sb-stage.leaving, .sb-stage.leaving-back, .sb-stage.enter-back { opacity: 1 !important; transform: none !important; }

    /* Stop Desktop Animations */
    .sb-name-eyebrow, .sb-name-big, .sb-title-sub, .sb-name-tags, .sb-intro-label, .sb-intro-sub, .sb-intro-name, .sb-letter, .sb-data-card, .sb-xp-card, .sb-summary-glow-wrap {
        opacity: 1 !important; visibility: visible !important; transform: none !important; animation: none !important;
    }

    /* Stage 0: Intro */
    .sb-stage[data-stage="0"] { padding: 6rem 1.5rem 3.5rem; text-align: center; }
    .sb-intro { padding: 0; }
    .sb-intro-label { font-size: 0.68rem; margin-bottom: 1.25rem; }
    .sb-intro-name { font-size: clamp(4.5rem, 20vw, 7rem); margin-bottom: 1rem; line-height: 0.9; }
    .sb-intro-sub { font-size: 0.95rem; color: rgba(255,255,255,0.38); margin-bottom: 0; }

/* Stage 1: Photo */
.sb-stage[data-stage="1"] {
    padding: 0;
}

.sb-photo-stage--premium {
    display: block !important;
    position: relative;
    width: 100%;
}

.sb-photo-left {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}

.sb-photo-premium-wrap {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.sb-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sb-photo-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        #06101c 0%,
        rgba(6,16,28,0.82) 22%,
        rgba(6,16,28,0.38) 58%,
        rgba(6,16,28,0) 100%
    );
}

.sb-photo-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to top,
        #06101c 0%,
        rgba(6,16,28,0.85) 40%,
        transparent 100%
    );
}

.sb-photo-status {
    display: none;
}

.sb-photo-card {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    border-radius: 16px;
    z-index: 2;
}

.sb-photo-right {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 1.5rem 2rem;
    text-align: left;
}

.sb-name-eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.5rem;
    color: #4f8eff;
}

.sb-name-big {
    font-size: clamp(2.4rem, 9vw, 3.5rem) !important;
    line-height: 1;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.sb-title-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.42);
    margin-bottom: 1rem;
}

.sb-name-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
}

.sb-name-tag {
    font-size: 0.68rem;
}

    /* Stage 2: Data Cards */
    .sb-stage[data-stage="2"] { padding: 2.5rem 1.25rem; }
    .sb-data-stage { width: 100%; max-width: 100%; }
    .sb-data-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; perspective: none !important; }
    .sb-data-grid > *:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
    .sb-data-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.2rem 1rem; will-change: auto; }
    
    .sb-scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s cubic-bezier(.16,1,.3,1), transform 0.6s cubic-bezier(.16,1,.3,1); }
    .sb-scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }

    /* Stage 3: Experience */
    .sb-stage[data-stage="3"] { padding: 0 1.25rem 2.5rem; }
    .sb-xp-stage { display: flex !important; flex-direction: column !important; gap: 0.75rem !important; width: 100%; }
    .sb-xp-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 1.25rem; }

    /* Stage 4: Summary */
    .sb-stage[data-stage="4"] { padding: 0 1.25rem 4rem; }
    .sb-summary-stage { max-width: 100%; margin: 0 auto; }
    .sb-summary-glow-wrap { animation: sbBorderFlow 4s ease infinite !important; margin-top: 0 !important; }
    .sb-summary-card { padding: 2rem 1.5rem; border-radius: 20px; }
    .sb-summary-stats { gap: 1.25rem; flex-wrap: wrap; justify-content: space-around; }
    .sb-summary-stat-value { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .steckbrief-container { gap: 4rem; }
    .sb-intro-name { font-size: clamp(2.5rem, 14vw, 4rem); margin-bottom: 1rem; }
    .sb-xp-card { padding: 1.25rem; }
    .sb-summary-stat-value { font-size: 1.8rem; }
}

@media (max-width: 360px) {
    .sb-intro-name { font-size: clamp(3rem, 16vw, 4.5rem) !important; }
    .sb-photo-left { aspect-ratio: 1 / 1; }
    .sb-data-grid > *:last-child:nth-child(odd),
    .sb-xp-stage > .sb-xp-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; width: 100%; }
}
@media (max-width: 767px) {
    .cta-inner--premium {
        padding: 2.75rem 1.2rem;
        border-radius: 24px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    .cta-trust-sep {
        display: none;
    }
}

        .error-wrap {
            width: 100%;
            max-width: 760px;
            margin: 0 auto;
        }

        .error-card {
            position: relative;
            overflow: hidden;
            text-align: center;
            background: rgba(255,255,255,0.88);
            border: 1px solid rgba(0,0,0,0.06);
            border-radius: 28px;
            padding: 3.25rem 2rem;
            box-shadow:
                0 24px 60px rgba(0,0,0,0.08),
                0 8px 24px rgba(0,111,255,0.05);
            backdrop-filter: blur(10px);
        }

        .error-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
            background-size: 28px 28px;
            mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
            pointer-events: none;
        }

        .error-badge {
            position: relative;
            z-index: 1;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            padding: 0.45rem 0.9rem;
            border-radius: 999px;
            background: rgba(0,111,255,0.08);
            border: 1px solid rgba(0,111,255,0.12);
            color: #006fff;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .error-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #006fff;
            box-shadow: 0 0 0 6px rgba(0,111,255,0.12);
        }

        .error-code {
            position: relative;
            z-index: 1;
            font-size: clamp(4rem, 10vw, 7rem);
            line-height: 0.9;
            font-weight: 900;
            letter-spacing: -0.06em;
            margin: 0 0 0.75rem;
            color: #111111;
        }

        .error-title {
            position: relative;
            z-index: 1;
            font-size: clamp(1.6rem, 4vw, 2.5rem);
            line-height: 1.05;
            font-weight: 800;
            letter-spacing: -0.04em;
            margin: 0 0 1rem;
            color: #111111;
        }

        .error-text {
            position: relative;
            z-index: 1;
            max-width: 560px;
            margin: 0 auto 2rem;
            font-size: 1rem;
            line-height: 1.8;
            color: #555555;
        }

        .error-actions {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .error-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 50px;
            padding: 0.85rem 1.35rem;
            border-radius: 999px;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 700;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
            cursor: pointer;
        }

        .error-btn-primary {
            background: #111111;
            color: #ffffff;
            border: 1px solid #111111;
            box-shadow: 0 10px 24px rgba(0,0,0,0.14);
        }

        .error-btn-primary:hover {
            transform: translateY(-2px);
            background: #222222;
            color: #ffffff;
        }

        .error-btn-secondary {
            background: rgba(255,255,255,0.9);
            color: #111111;
            border: 1px solid rgba(0,0,0,0.10);
        }

        .error-btn-secondary:hover {
            transform: translateY(-2px);
            border-color: rgba(0,0,0,0.18);
            background: #ffffff;
        }

        @media (max-width: 575px) {
            .error-card {
                padding: 2.3rem 1.2rem;
                border-radius: 22px;
            }

            .error-actions {
                flex-direction: column;
            }

            .error-btn {
                width: 100%;
            }
        }