/* ==========================================================================
   Mo Eldowy — Brand System v2
   Palette: ink base, electric blue primary, signal mint accent
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (labels)
   ========================================================================== */

:root {
    /* Surfaces */
    --ink-900: #05070b;
    --ink-800: #080b11;
    --ink-700: #0d121b;
    --ink-600: #131a25;
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-strong: rgba(255, 255, 255, 0.14);

    /* Brand */
    --brand: #5b8cff;
    --brand-deep: #3a63d8;
    --signal: #55e6c1;
    --brand-glow: rgba(91, 140, 255, 0.35);
    --signal-glow: rgba(85, 230, 193, 0.28);

    /* Text */
    --text-hi: #f4f7fb;
    --text-mid: #9fb0c8;
    --text-low: #6b7d96;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-bg-hi: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

    /* Type */
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t: 0.45s var(--ease);

    --radius: 18px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    background-color: var(--ink-900);
    color: var(--text-hi);
    font-family: var(--font-body);
    /* No overflow-x here: non-visible overflow on body or html propagates to
       the viewport and turns it into a scroll container, which is worth
       avoiding while Bootstrap's ScrollSpy drives the nav by scrolling the
       window. Horizontal overflow is contained per-section instead, via
       .overflow-hidden on the sections whose decoration bleeds out. */
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

/* Subtle engineering grid behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--hairline) 1px, transparent 1px),
        linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
    opacity: 0.55;
}

section, nav, footer { position: relative; z-index: 1; }

/* Nav links are plain anchors — CSS does the smooth scroll, and the browser
   updates the URL hash so a section stays linkable. This keeps the fixed
   navbar from covering whatever the anchor lands on. */
section[id] { scroll-margin-top: 86px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.12;
}

a { text-decoration: none; }

::selection { background: var(--brand); color: #fff; }

/* Accessible focus ring everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: none;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 10000;
    background: var(--brand);
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: 0 0 10px 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Type utilities ---------- */
.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.fw-black { font-weight: 700; }
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.78rem; }
.text-primary { color: var(--brand) !important; }
.text-signal { color: var(--signal) !important; }
.text-secondary { color: var(--text-mid) !important; }
.text-muted { color: var(--text-low) !important; }
.bg-primary { background-color: var(--brand) !important; }
.letter-spacing-1 { letter-spacing: 0.1em; }
.letter-spacing-2 { letter-spacing: 0.2em; }
.leading-relaxed { line-height: 1.8; }
.max-w-700 { max-width: 700px; }
.max-w-620 { max-width: 620px; }
.font-inter { font-family: var(--font-body); }

.gradient-text {
    background: linear-gradient(110deg, var(--brand) 0%, var(--signal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }

.bg-darker { background-color: var(--ink-800); }

.py-10 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
@media (min-width: 992px) { .py-10 { padding-top: 8.5rem; padding-bottom: 8.5rem; } }

.rule-top { border-top: 1px solid var(--hairline); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--signal);
    opacity: 0.7;
}

/* ---------- Loader ---------- */
.loader-container {
    position: fixed;
    inset: 0;
    background-color: var(--ink-900);
    z-index: 9999;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader-container.fade-out { opacity: 0; visibility: hidden; }

.loader-bar {
    width: 160px;
    height: 2px;
    background: var(--hairline-strong);
    border-radius: 2px;
    overflow: hidden;
    margin: 1.6rem auto 0;
}
.loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--brand), var(--signal));
    animation: loaderSlide 1.1s var(--ease) infinite;
}
@keyframes loaderSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ---------- Brand mark ---------- */
.brand-lockup { display: inline-flex; align-items: center; gap: 0.7rem; }

/* The mark is Mo's portrait, cropped square and ringed in brand colour */
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    flex-shrink: 0;
    background: var(--ink-700);
    box-shadow: 0 0 0 1px var(--hairline-strong), 0 8px 24px -12px var(--brand-glow);
    transition: box-shadow var(--t);
}
.navbar-brand:hover .brand-mark,
footer .brand-lockup:hover .brand-mark {
    box-shadow: 0 0 0 1px var(--brand), 0 10px 26px -12px var(--brand-glow);
}

.brand-mark-lg { width: 62px; height: 62px; border-radius: 18px; }

.brand-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text-hi);
}
.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.26em;
    color: var(--text-low);
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
}

/* ---------- Navigation ---------- */
.glass-nav {
    background: rgba(5, 7, 11, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: var(--t);
    padding: 1.1rem 0;
}
.glass-nav.scrolled {
    padding: 0.55rem 0;
    background: rgba(5, 7, 11, 0.88);
    border-bottom-color: var(--hairline);
}

.nav-link {
    color: var(--text-mid) !important;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--t);
    position: relative;
    padding: 0.4rem 0.2rem !important;
}
.nav-link:hover, .nav-link.active { color: var(--text-hi) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--brand), var(--signal));
    transition: width var(--t);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.custom-toggler {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    background: var(--glass-bg);
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: var(--t);
    border-radius: 999px;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-deep));
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--signal), var(--brand));
    opacity: 0;
    transition: opacity var(--t);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -16px var(--brand-glow);
    color: #05070b;
}
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-hi);
}
.btn-ghost:hover {
    color: var(--text-hi);
    border-color: var(--signal);
    background: var(--glass-bg-hi);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -18px var(--signal-glow);
}

.btn-outline-primary { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.shadow-primary { box-shadow: 0 14px 32px -18px var(--brand-glow); }

/* ---------- Glass surfaces ---------- */
/* No backdrop-filter here on purpose: these cards sit on a near-solid
   background, so a real backdrop blur costs a compositing layer each and
   stalls the GPU when a dozen of them reveal at once. */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--t);
    border-radius: var(--radius);
}

.glass-pill {
    background: var(--glass-bg-hi);
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.hover-lift:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-hi);
    border-color: rgba(91, 140, 255, 0.35);
}
.hover-border:hover { border-color: rgba(85, 230, 193, 0.35); }
.border-glow:hover { box-shadow: 0 0 60px -20px var(--brand-glow); }

/* Card top-edge highlight */
.edge-lit { position: relative; overflow: hidden; }
.edge-lit::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0.5;
    transition: opacity var(--t);
}
.edge-lit:hover::before { opacity: 1; }

/* ---------- Ambient light ---------- */
.bg-blob {
    position: absolute;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.5;
    border-radius: 50%;
    animation: drift 24s infinite ease-in-out;
    pointer-events: none;
}
.blob-1 { top: -18%; right: -8%; width: 640px; height: 640px; background: radial-gradient(circle, rgba(91,140,255,0.34) 0%, transparent 70%); }
.blob-2 { bottom: -20%; left: -12%; width: 540px; height: 540px; background: radial-gradient(circle, rgba(85,230,193,0.2) 0%, transparent 70%); animation-delay: -8s; }
.blob-3 { top: 45%; left: 30%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(58,99,216,0.22) 0%, transparent 70%); animation-delay: -14s; }
.blob-4 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 860px; height: 860px; background: radial-gradient(circle, rgba(91,140,255,0.16) 0%, transparent 70%); }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.12); }
    66% { transform: translate(-30px, 30px) scale(0.92); }
}

/* ---------- Hero ---------- */
.hero-section { padding-top: 7rem; }

.name-title { font-size: clamp(2.1rem, 4.4vw, 3.75rem); font-weight: 700; }

.role-rotator {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    color: var(--signal);
    letter-spacing: 0.04em;
    min-height: 1.6em;
    display: block;
}
.cursor {
    display: inline-block;
    width: 9px;
    margin-left: 2px;
    color: var(--brand);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(85, 230, 193, 0.08);
    border: 1px solid rgba(85, 230, 193, 0.28);
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--signal);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(85,230,193,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(85,230,193,0); }
    100% { box-shadow: 0 0 0 0 rgba(85,230,193,0); }
}

/* Stat strip */
.stat-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat-cell { padding: 1.6rem 0.5rem; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, var(--text-hi), var(--brand));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-low);
    margin-top: 0.5rem;
}

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); }
.mouse { width: 22px; height: 36px; border: 1px solid var(--hairline-strong); border-radius: 12px; position: relative; }
.wheel {
    width: 3px; height: 7px; background: var(--signal); border-radius: 2px;
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ==========================================================================
   Hero portrait
   Entrance wipe + slow aperture ring + restrained pointer parallax
   ========================================================================== */
.hero-portrait {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    perspective: 1200px;
}
@media (min-width: 992px) {
    .hero-portrait { margin-right: 0; margin-left: auto; max-width: 420px; }
}

/* Soft light behind the frame */
.hp-halo {
    position: absolute;
    inset: -18% -14%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, var(--brand-glow) 0%, transparent 62%);
    filter: blur(52px);
    opacity: 0;
    transition: opacity 1.6s var(--ease);
    z-index: 0;
}
.hero-portrait.is-revealed .hp-halo { opacity: 0.7; animation: haloBreathe 11s ease-in-out infinite 1.6s; }

/* Opacity only — animating scale would repaint a 52px blur every frame */
@keyframes haloBreathe {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.85; }
}

/* Gradient outline offset from the frame. Static by design: an endlessly
   spinning ring is both expensive to paint and the cheapest-looking part
   of any portfolio hero. It brightens on hover instead. */
.hp-ring {
    position: absolute;
    inset: -14px;
    border-radius: 30px;
    background: linear-gradient(150deg, var(--brand) 0%, var(--signal) 42%, transparent 70%);
    padding: 1px;
    opacity: 0;
    transition: opacity 1.4s var(--ease) 0.5s;
    z-index: 1;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.hero-portrait.is-revealed .hp-ring { opacity: 0.55; }
.hero-portrait:hover .hp-ring { opacity: 0.9; transition-delay: 0s; }

/* Static hairline the ring travels along */
.hp-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--hairline);
}

/* The framed image itself */
.hp-frame {
    position: relative;
    display: block;
    z-index: 2;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--hairline-strong);
    background: var(--ink-700);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    /* Entrance: wipe up from the bottom edge */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.25s var(--ease), box-shadow var(--t);
}
.hero-portrait.is-revealed .hp-frame { clip-path: inset(0 0 0 0); }

/* Pulls the photo's warm backdrop toward the brand palette without
   touching skin tones enough to look filtered */
.hp-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(200deg, rgba(91, 140, 255, 0.22) 0%, transparent 55%),
        linear-gradient(to top, rgba(5, 7, 11, 0.55) 0%, transparent 42%);
}

.hp-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 12%;
    filter: saturate(0.92) contrast(1.05);
    transform: scale(1.08);
    opacity: 0;
    transition: transform 1.6s var(--ease), opacity 1.1s var(--ease);
}
.hero-portrait.is-revealed .hp-img { transform: scale(1); opacity: 1; }

/* One-pass light sweep across the glass */
.hp-sheen {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.14) 50%, transparent 62%);
    transform: translateX(-120%);
    pointer-events: none;
}
.hero-portrait.is-revealed .hp-sheen { animation: sheenSweep 1.5s var(--ease) 1.1s 1; }
.hero-portrait:hover .hp-sheen { animation: sheenSweep 1.4s var(--ease) 1; }

@keyframes sheenSweep {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

/* Nameplate */
.hp-plate {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -26px;
    z-index: 3;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    background: rgba(5, 7, 11, 0.82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.9s var(--ease) 1.05s, transform 0.9s var(--ease) 1.05s;
}
.hero-portrait.is-revealed .hp-plate { opacity: 1; transform: translateY(0); }

.hp-plate-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-hi);
    letter-spacing: -0.02em;
}
.hp-plate-role {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-low);
    margin-top: 4px;
}

/* Pointer parallax — JS supplies the angles, capped small on purpose */
.hero-portrait[data-tilt] .hp-frame {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: clip-path 1.25s var(--ease), transform 0.5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    .hp-frame { clip-path: inset(0 0 0 0) !important; }
    .hp-img { opacity: 1 !important; transform: none !important; }
    .hp-plate { opacity: 1 !important; transform: none !important; }
    .hp-halo { opacity: 0.6 !important; animation: none !important; }
    .hp-ring { opacity: 0.7 !important; animation: none !important; }
    .hp-sheen { display: none; }
}

/* ---------- Pull quote ---------- */
.pull-quote {
    margin: 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--brand);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text-hi);
}

/* ---------- Venture cards ---------- */
.venture-logo {
    width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    color: var(--ink-900);
    flex-shrink: 0;
}
.venture-logo.fn { background: linear-gradient(140deg, var(--brand), #8aa9ff); }
.venture-logo.sc { background: linear-gradient(140deg, var(--signal), #9df5de); }

.venture-domain {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-low);
    transition: color var(--t);
}
.venture-domain i { font-size: 0.6rem; opacity: 0.7; }
.venture-domain:hover { color: var(--signal); }

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.65rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--hairline);
    color: var(--text-mid);
}

/* ---------- Timeline ---------- */
.timeline { padding-left: 26px; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    top: 6px; bottom: 6px; left: 6px;
    width: 1px;
    background: linear-gradient(to bottom, var(--brand), rgba(85,230,193,0.25), transparent);
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-dot {
    position: absolute;
    left: -26px; top: 30px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--ink-900);
    border: 2px solid var(--brand);
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--t);
}
.timeline-item:hover .timeline-dot {
    border-color: var(--signal);
    box-shadow: 0 0 0 5px rgba(85, 230, 193, 0.12);
}
@media (min-width: 992px) {
    .timeline { padding-left: 34px; }
    .timeline::before { left: 8px; }
}

.role-org { color: var(--brand); font-weight: 500; font-size: 0.95rem; }

/* ---------- Social ---------- */
.social-icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-mid);
    font-size: 1.05rem;
    transition: var(--t);
}
.social-icon-lg { width: 56px; height: 56px; font-size: 1.25rem; border-radius: 16px; }
.social-icon:hover {
    color: var(--ink-900);
    background: linear-gradient(140deg, var(--brand), var(--signal));
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -16px var(--brand-glow);
}

/* ---------- Contact ---------- */
.contact-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-mid);
    letter-spacing: 0.02em;
}
.contact-line a { color: var(--text-hi); border-bottom: 1px solid var(--hairline-strong); transition: var(--t); }
.contact-line a:hover { color: var(--signal); border-color: var(--signal); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hairline); background: var(--ink-800); }

/* ---------- Scroll reveal ---------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.slide-up { transform: translateY(36px); }
.slide-left { transform: translateX(36px); }
.slide-right { transform: translateX(-36px); }
.fade-in { transform: scale(0.98); }
.scale-up { transform: scale(0.94); }
.animate-on-scroll.in-view { opacity: 1; transform: translate(0) scale(1); }

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(8, 11, 17, 0.97);
        border: 1px solid var(--hairline);
        border-radius: 16px;
        margin-top: 0.9rem;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    body::before { background-size: 48px 48px; }
    /* Sideways pre-reveal offsets push past the viewport on narrow screens */
    .slide-left, .slide-right { transform: translateY(28px); }
    .hero-section { padding-top: 6rem; text-align: left; }
    .hero-portrait { max-width: 300px; margin-bottom: 3rem; }
    .hp-plate { left: 10px; right: 10px; bottom: -22px; padding: 0.7rem 0.95rem; }
    .hp-plate-name { font-size: 0.88rem; }
    .hp-plate-role { font-size: 0.6rem; }
    .py-10 { padding-top: 4rem; padding-bottom: 4rem; }
    .glass-card { padding: 1.35rem !important; }
    .stat-cell { padding: 1.1rem 0.25rem; }
    .bg-blob { max-width: 92vw !important; max-height: 92vw !important; filter: blur(70px); animation: none; }
    .brand-sub { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
}

/* ==========================================================================
   Light theme
   ========================================================================== */
[data-bs-theme="light"] {
    --ink-900: #ffffff;
    --ink-800: #f6f8fc;
    --ink-700: #eef2f9;
    --hairline: rgba(15, 30, 60, 0.09);
    --hairline-strong: rgba(15, 30, 60, 0.16);

    --brand: #2f5fe0;
    --brand-deep: #1e45b5;
    --signal: #0f9e86;
    --brand-glow: rgba(47, 95, 224, 0.3);
    --signal-glow: rgba(15, 158, 134, 0.24);

    --text-hi: #0b1220;
    --text-mid: #465873;
    --text-low: #6b7c95;

    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-bg-hi: #ffffff;
    --glass-border: rgba(15, 30, 60, 0.1);
    --glass-shadow: 0 20px 48px -30px rgba(15, 30, 60, 0.35);
}

[data-bs-theme="light"] body::before { opacity: 0.8; }
[data-bs-theme="light"] .text-white { color: var(--text-hi) !important; }
[data-bs-theme="light"] .text-light { color: var(--text-mid) !important; }
[data-bs-theme="light"] .glass-nav { background: rgba(255, 255, 255, 0.72); }
[data-bs-theme="light"] .glass-nav.scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: 0 6px 30px -18px rgba(15, 30, 60, 0.3); }
[data-bs-theme="light"] .navbar-collapse { background: #ffffff; }
[data-bs-theme="light"] .venture-logo { color: #ffffff; }
[data-bs-theme="light"] .status-chip { background: rgba(15, 158, 134, 0.08); border-color: rgba(15, 158, 134, 0.3); }
[data-bs-theme="light"] .timeline-dot { background: #ffffff; }
[data-bs-theme="light"] .tag { background: rgba(47, 95, 224, 0.05); color: var(--text-mid); }
[data-bs-theme="light"] .social-icon:hover { color: #ffffff; }
[data-bs-theme="light"] .btn-primary:hover { color: #ffffff; }
[data-bs-theme="light"] .hp-plate { background: rgba(255, 255, 255, 0.9); }
[data-bs-theme="light"] .hp-frame { box-shadow: 0 34px 70px -40px rgba(15, 30, 60, 0.55); }
[data-bs-theme="light"] .hp-sheen { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%); }
[data-bs-theme="light"] .bg-blob { opacity: 0.35; }
[data-bs-theme="light"] .custom-toggler i { color: var(--text-hi) !important; }
