:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --border-color: #334155;

    /* Shared horizontal gutter used by every full-width component */
    --page-gutter: 1rem;

    /* Blog primary color: blue */
    --blog-blue: #3b82f6;
    --blog-blue-light: #60a5fa;
    --blog-blue-dark: #1d4ed8;
}

@media (min-width: 640px) {
    :root {
        --page-gutter: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --page-gutter: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    padding: 1rem 1rem 0;
    pointer-events: none;
}

.nav-bar {
    pointer-events: auto;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0.6rem 1rem 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition:
        background-color 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

#site-header.scrolled .nav-bar {
    background: rgba(8, 8, 12, 0.92);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.7);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-brand-logo {
    width: 36px;
    height: 36px;
    display: block;
}

.nav-brand-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.25s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
    transform: scaleX(0);
    transform-origin: 0;
    transition: transform 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-lets-talk {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.btn-lets-talk:hover {
    background: #818cf8;
    color: #fff;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hidden {
    display: none !important;
}

.mobile-menu {
    pointer-events: auto;
    max-width: 1152px;
    margin: 0.5rem auto 0;
    padding: 0 1rem;
    transition:
        opacity 0.25s,
        transform 0.25s,
        visibility 0.25s;
}

.mobile-menu.menu-closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
}

.mobile-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-panel a {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.mobile-menu-panel a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.mobile-menu-panel a.active {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.18) 0%,
        rgba(124, 58, 237, 0.18) 100%
    );
    color: #fff;
}

.mobile-menu-panel .mobile-cta {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.mobile-menu-panel .mobile-cta:hover {
    background: linear-gradient(135deg, #818cf8 0%, #8b5cf6 100%);
    color: #fff;
}

@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 639px) {
    .btn-lets-talk {
        display: none;
    }
}

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 7.5rem var(--page-gutter) 3rem;
}

/* Hero sections are content-sized: they hug their content instead of
   stretching to fill the viewport, so short heroes (About, Contact, ...)
   don't leave big empty areas. Content sits at the same 8rem top offset
   on every page; the fixed header floats above via -7.5rem margin. */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    width: 100vw;
    margin: -7.5rem calc(50% - 50vw) -3rem;
    padding: 8rem 0 4rem;
}

/* Keeps inner-page hero content aligned to the site's content column
   (same max-width as .hero-grid) while the section spans the full width */
.hero-container {
    width: 100%;
    max-width: 1152px;
    margin-inline: auto;
}

/* Inner-page heroes (About, Blog, Contact, ...) are compact page headers:
   smaller title, tighter padding and element spacing, so short pages don't
   end up with a hero that fills the whole viewport. Home keeps its own
   bigger hero with the image visual. */
.hero-section.hero-inner {
    flex-direction: column;
    align-items: center;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
}

.hero-section.hero-inner .hero-title {
    margin-top: 1.25rem;
}

.hero-section.hero-inner .hero-desc {
    margin-top: 1.25rem;
}

.hero-section.hero-inner .hero-actions {
    margin-top: 1.75rem;
}

.hero-section.hero-inner .hero-stats {
    margin-top: 2.25rem;
}

@media (min-width: 1024px) {
    /* Keep the desktop hero title a bit more modest than home's */
    .hero-section.hero-inner .hero-title {
        font-size: 3rem;
    }
}

/* About hero (hero-container-split): framed portrait sits to the right of
   the text on wide screens and stacks below it on smaller ones. */
.hero-container-split .hero-visual {
    max-width: 18rem;
}

@media (min-width: 640px) {
    .hero-container-split .hero-visual {
        max-width: 22rem;
    }
}

.hero-container-split .hero-visual .hero-img {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: cover;
}

/* Offset outline behind the portrait for a framed look */
.hero-container-split .hero-visual::before {
    content: "";
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 1.5rem;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .hero-container-split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3.5rem;
        align-items: center;
    }

    .hero-container-split .hero-visual {
        order: 0;
        margin: 0;
    }
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(
        90% 65% at 50% 0,
        #000 35%,
        transparent 100%
    );
    mask-image: radial-gradient(90% 65% at 50% 0, #000 35%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
}

.hero-glow-1 {
    top: -10rem;
    left: 25%;
    width: 44rem;
    height: 38rem;
    background: rgba(99, 102, 241, 0.25);
    transform: translateX(-50%);
}

.hero-glow-2 {
    bottom: 0;
    right: 0;
    width: 25rem;
    height: 25rem;
    background: rgba(124, 58, 237, 0.15);
}

.hero-grid {
    position: relative;
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a5b4fc;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}

.hero-badge:hover {
    border-color: rgba(129, 140, 248, 0.4);
}

.hero-badge-dot {
    position: relative;
    display: inline-flex;
    width: 0.5rem;
    height: 0.5rem;
}

.hero-badge-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #818cf8;
    animation: hero-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge-dot::after {
    content: "";
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #818cf8;
}

.hero-title {
    margin-top: 1.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(120deg, #c7d2fe 0%, #818cf8 45%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-desc {
    margin-top: 1.75rem;
    max-width: 36rem;
    font-size: 1.125rem;
    line-height: 1.625;
    color: #a3a3a3;
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.6);
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        filter 0.25s;
}

.btn-primary svg {
    width: 1rem;
    height: 1rem;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(
        105deg,
        transparent 45%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 55%
    );
    transform: translate(-130%) skew(-15deg);
    transition: transform 0.7s;
    pointer-events: none;
}

.btn-primary:hover::after {
    transform: translate(130%) skew(-15deg);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 18px 44px -14px rgba(99, 102, 241, 0.7);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color 0.25s,
        background-color 0.25s,
        transform 0.25s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-stats {
    margin-top: 3rem;
    max-width: 36rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stat {
    background: rgba(8, 8, 12, 0.85);
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-label {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #737373;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 16rem;
    margin: 0 auto;
    order: -1;
}

.hero-glow-image {
    position: absolute;
    inset: -2rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.2);
    filter: blur(48px);
    pointer-events: none;
}

.hero-ring-spin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 108%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    opacity: 0.7;
    filter: blur(24px);
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(99, 102, 241, 0.32) 80deg,
        rgba(192, 132, 252, 0.22) 160deg,
        transparent 240deg,
        transparent 360deg
    );
    animation: hero-spin 16s linear infinite;
    pointer-events: none;
}

.hero-ring-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.3),
        transparent 60%,
        rgba(124, 58, 237, 0.25)
    );
    filter: blur(24px);
    pointer-events: none;
}

.hero-ring-border {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    border: 1px solid rgba(129, 140, 248, 0.15);
    pointer-events: none;
}

.hero-img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 17;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}
.hero-img-about {
    margin-top: 10rem;
}

.hero-particle {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    animation: hero-float 6s ease-in-out infinite;
}

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 12, 0.9);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: hero-float 6s ease-in-out infinite;
}

.hero-card-founder {
    left: -1rem;
    bottom: 6rem;
}

.hero-card-exp {
    right: -0.75rem;
    bottom: -1rem;
    animation-delay: 1.5s;
}

.hero-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    object-fit: contain;
}

.hero-card-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
}

.hero-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.hero-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-scroll {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 12, 0.6);
    padding: 0.625rem;
    color: #a3a3a3;
    transition:
        border-color 0.2s,
        color 0.2s;
}

.hero-scroll:hover {
    border-color: rgba(129, 140, 248, 0.4);
    color: #fff;
}

.hero-scroll svg {
    width: 1rem;
    height: 1rem;
    animation: hero-bounce 1.6s ease-in-out infinite;
}

.animate-enter {
    opacity: 0;
    animation: hero-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-enter {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-ping {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    75%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes hero-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes hero-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes hero-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-stat-value {
        font-size: 1.575rem;
    }
    .hero-visual {
        max-width: 32rem;
    }
    .hero-card-founder {
        left: -2rem;
    }
    .hero-card-exp {
        right: -2rem;
    }
    .hero-scroll {
        display: block;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 10fr 12fr;
        gap: 2.5rem;
    }
    .hero-title {
        font-size: 3.75rem;
    }
    .hero-visual {
        max-width: 36rem;
        margin-right: auto;
        margin-left: auto;
        order: 0;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-enter,
    .hero-ring-spin,
    .hero-particle,
    .hero-card,
    .hero-scroll svg,
    .hero-badge-dot::before {
        animation: none;
        opacity: 1;
    }
}

.meta-debug-wrap {
    margin-top: 4rem;
}

.meta-debug-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.meta-debug-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.meta-list {
    display: grid;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: monospace;
    background: #0f172a;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    word-break: break-all;
}

/* Recognitions Section */
.recognitions-section {
    margin-top: 3rem;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.recognitions-grid {
    display: grid;
    /* min() lets cards shrink below 300px instead of overflowing small phones */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.75rem;
}

.recognition-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.recognition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -8px rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
}

.recognition-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.recognition-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.recognition-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recognition-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.recognition-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.recognition-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.recognition-link:hover {
    color: #818cf8;
    transform: translateX(4px);
}

/* Publications & News Section */
.publications-section {
    margin-top: 3rem;
}

.publications-grid {
    display: grid;
    /* min() lets cards shrink below 300px instead of overflowing small phones */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.75rem;
}

.publication-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -8px rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
}

.publication-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.publication-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.publication-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.publication-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.45;
    flex: 1;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.publication-link:hover {
    color: #818cf8;
    transform: translateX(4px);
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.875rem;
    border-radius: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
}

.page-link.active {
    background: var(--accent);
    color: #0f172a;
    border-color: var(--accent);
    font-weight: 700;
}

.page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* Videos Section */
.videos-section {
    margin-top: 4rem;
}

.videos-grid {
    display: grid;
    /* min() lets cards shrink below 300px instead of overflowing small phones */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.75rem;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -8px rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
}

.video-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0f172a;
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.video-play-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 2px;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--accent);
    color: #0f172a;
}

.video-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.45;
    flex: 1;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.video-link:hover {
    color: #818cf8;
    transform: translateX(4px);
}

/* Single Blog Article Styling */
.single-article {
    max-width: 840px;
    margin: 2rem auto 5rem;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .single-article {
        max-width: 1100px; /* widen to fit content + TOC sidebar */
    }
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.reading-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    background: linear-gradient(
        135deg,
        var(--blog-blue-light) 0%,
        var(--blog-blue) 60%,
        var(--blog-blue-dark) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-author-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-featured-image {
    width: 100%;
    max-height: 440px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content + TOC sidebar layout */
.article-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.article-main {
    flex: 1;
    min-width: 0;
}

.article-toc {
    display: none; /* mobile: hidden */
}

@media (min-width: 1024px) {
    .article-main {
        max-width: 760px;
    }

    .article-toc {
        display: block; /* desktop only */
        width: 260px;
        flex-shrink: 0;
        position: sticky;
        top: 6rem;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
}

.toc-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 1.5rem;
}

.toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toc-list a {
    display: block;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition:
        color 0.2s,
        border-color 0.2s;
}

.toc-list a:hover {
    color: var(--blog-blue-light);
    border-color: var(--blog-blue-light);
}

.toc-list a.active {
    color: var(--blog-blue);
    border-color: var(--blog-blue);
    font-weight: 600;
}

.toc-list .toc-level-3 {
    padding-left: 1.5rem;
    font-size: 0.8125rem;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.75rem;
    color: var(--blog-blue);
    margin: 2.5rem 0 1.25rem;
    font-weight: 600;
    scroll-margin-top: 6rem;
}

.article-body h3 {
    font-size: 1.35rem;
    color: var(--blog-blue-light);
    margin: 2rem 0 1rem;
    font-weight: 600;
    scroll-margin-top: 6rem;
}

.article-body a {
    color: var(--blog-blue);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.4);
    text-underline-offset: 3px;
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.article-body a:hover {
    color: var(--blog-blue-light);
    text-decoration-color: var(--blog-blue-light);
}

.article-body ul,
.article-body ol {
    margin: 1.25rem 0 1.75rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-quote {
    border-left: 4px solid var(--blog-blue);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.article-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-btn:hover {
    border-color: var(--blog-blue);
    color: var(--blog-blue);
    transform: translateX(-4px);
}

/* Public Website Footer Styling */
.site-footer {
    position: relative;
    overflow: hidden;
    background: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-watermark {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    text-align: center;
    font-size: 15vw;
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.footer-container {
    position: relative;
    max-width: 1152px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }
}

.footer-brand-col {
    max-width: 28rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    display: block;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.footer-about {
    margin-top: 1rem;
    max-width: 24rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #737373;
}

.footer-links-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #737373;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 0.875rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #737373;
    transition: color 0.2s;
}

.footer-social-icon svg {
    width: 1rem;
    height: 1rem;
}

.footer-links a:hover .footer-social-icon {
    color: #818cf8;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #525252;
}

.footer-credit {
    font-style: italic;
    color: #525252;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 12, 0.8);
    color: #d4d4d8;
    cursor: pointer;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        border-color 0.2s,
        color 0.2s;
}

.back-to-top:hover {
    border-color: rgba(129, 140, 248, 0.5);
    color: #fff;
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Contact Form Styling */
.contact-section {
    max-width: 900px;
    margin: 6rem auto 4rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.contact-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.contact-form-full {
    grid-column: span 2;
}

.form-group-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label-contact {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input-contact,
.form-select-contact,
.form-textarea-contact {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-select-contact option {
    background: var(--card-bg);
    color: var(--text-primary);
}

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

.form-input-contact:focus,
.form-select-contact:focus,
.form-textarea-contact:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.submit-contact-btn {
    width: 100%;
    padding: 0.95rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: 0.6rem;
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
    margin-top: 0.5rem;
}

.submit-contact-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.alert-success-contact {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    padding: 1rem 1.25rem;
    border-radius: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error-contact {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 1rem 1.25rem;
    border-radius: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-full {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   Home page sections (original-design look, plain CSS)
   ============================================================ */

/* ---- Cards & spotlight (shared) ---- */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        border-color 0.3s,
        background-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(129, 140, 248, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px -24px rgba(99, 102, 241, 0.4);
}

.card-featured {
    background: linear-gradient(
        rgba(99, 102, 241, 0.1),
        rgba(255, 255, 255, 0.03)
    );
    border-color: rgba(129, 140, 248, 0.35);
}

.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(
        340px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(99, 102, 241, 0.14),
        transparent 65%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.spotlight:hover::before {
    opacity: 1;
}

/* ---- Brand marquee ---- */
.marquee {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding-block: 1.25rem;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 10% 90%,
        transparent
    );
    mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent);
}

.animate-marquee {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marquee 32s linear infinite;
}

.marquee:hover .animate-marquee {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    padding-inline: 1.25rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.marquee-item::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(129, 140, 248, 0.6);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ---- Section scaffolding ---- */
.home-section {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
    .home-section {
        padding-block: 4rem;
    }
}

.section-inner {
    position: relative;
    max-width: 72rem;
    margin-inline: auto;
}

.section-inner-narrow {
    max-width: 64rem;
}

.section-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(130px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #818cf8;
}

.eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.9));
}

.section-title {
    margin-top: 1.25rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-desc {
    margin-top: 1rem;
    max-width: 40rem;
    line-height: 1.625;
    color: var(--text-secondary);
}

.section-head-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .section-head-flex {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-desc-end {
    max-width: 24rem;
}

.home-grid {
    margin-top: 3.5rem;
}

/* ---- About ---- */
.about-glow {
    left: 0;
    top: 50%;
    width: 26rem;
    height: 26rem;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-50%);
}

.about-grid {
    display: grid;
    gap: 3.5rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: 5rem;
    }
}

.about-lead {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.625;
    color: #d4d4d8;
}

.about-text {
    margin-top: 1rem;
    line-height: 1.625;
    color: var(--text-secondary);
}

.about-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-quote-wrap {
    position: relative;
}

.about-quote-glow {
    position: absolute;
    inset: -0.75rem;
    border-radius: 2rem;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.2),
        transparent 60%,
        rgba(124, 58, 237, 0.1)
    );
    filter: blur(24px);
}

.about-quote {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
}

.about-quote-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(129, 140, 248, 0.7);
}

.about-quote blockquote {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.625;
    color: #e4e4e7;
}

@media (min-width: 640px) {
    .about-quote blockquote {
        font-size: 1.5rem;
    }
}

.about-quote figcaption {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.about-quote-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
}

.about-quote-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
}

.about-quote-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ---- Book ---- */
.book-glow {
    left: 50%;
    top: 50%;
    width: 45rem;
    height: 32rem;
    background: rgba(99, 102, 241, 0.1);
    transform: translate(-50%, -50%);
}

.book-grid {
    display: grid;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.book-cover-wrap {
    position: relative;
    margin-inline: auto;
    width: 100%;
    max-width: 24rem;
}

.book-cover-glow {
    position: absolute;
    inset: -2rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.2);
    filter: blur(48px);
}

.book-cover {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(30, 27, 75, 0.5);
    transform: rotate(-3deg);
    transition: transform 0.5s;
}

.book-cover:hover {
    transform: rotate(0deg);
}

.book-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.book-badge {
    position: absolute;
    top: 2rem;
    right: -1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 12, 0.9);
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .book-badge {
        right: -2rem;
    }
}

.book-badge > div:first-child {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.book-badge-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
}

.book-text {
    margin-top: 1.5rem;
    line-height: 1.625;
    color: var(--text-secondary);
}

.book-text + .book-text {
    margin-top: 1rem;
}

.book-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.book-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ---- Impact ---- */
.impact-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

@media (min-width: 640px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.impact-card {
    border-radius: 1rem;
    padding: 1.75rem;
}

.impact-number {
    position: absolute;
    z-index: 0;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    transition: color 0.3s;
}

.impact-card:hover .impact-number {
    color: rgba(99, 102, 241, 0.15);
}

.impact-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    transition:
        background-color 0.3s,
        color 0.3s;
}

.impact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.impact-card:hover .impact-icon {
    background: #6366f1;
    color: #fff;
}

.impact-title {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.impact-desc {
    position: relative;
    z-index: 1;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--text-secondary);
}

/* ---- Innovations ---- */
.innovation-list {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 640px) {
    .innovation-list {
        gap: 6rem;
    }
}

.innovation-row {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .innovation-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

.innovation-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.innovation-image::before {
    content: "";
    position: absolute;
    inset: -0.75rem;
    z-index: -1;
    border-radius: 1.5rem;
    background: rgba(99, 102, 241, 0.15);
    opacity: 0;
    filter: blur(32px);
    transition: opacity 0.5s;
}

.innovation-row:hover .innovation-image::before {
    opacity: 1;
}

.innovation-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s;
}

.innovation-row:hover .innovation-image img {
    transform: scale(1.05);
}

.innovation-text {
    position: relative;
}

.innovation-number-bg {
    position: absolute;
    top: -2rem;
    right: 0;
    z-index: -1;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    user-select: none;
    pointer-events: none;
}

@media (min-width: 640px) {
    .innovation-number-bg {
        top: -2.5rem;
        font-size: 7.5rem;
    }
}

.innovation-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.innovation-meta-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: #818cf8;
}

.innovation-meta-line {
    width: 3rem;
    height: 1px;
    background: rgba(129, 140, 248, 0.5);
}

.innovation-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.innovation-title {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

@media (min-width: 640px) {
    .innovation-title {
        font-size: 1.5rem;
    }
}

.innovation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s;
}

.innovation-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.innovation-link:hover {
    color: #a5b4fc;
}

.innovation-link:hover svg {
    transform: translateX(4px);
}

/* ---- Career timeline ---- */
.timeline-glow {
    left: 50%;
    top: 2.5rem;
    width: 40rem;
    height: 26rem;
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(-50%);
}

.timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 1rem;
    width: 1px;
    background: linear-gradient(
        transparent,
        rgba(129, 140, 248, 0.6) 12%,
        rgba(129, 140, 248, 0.35) 88%,
        transparent
    );
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 3.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .timeline-item {
        padding-left: 0;
    }
}

.timeline-marker {
    position: absolute;
    left: 1rem;
    top: 0;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .timeline-marker {
        left: 50%;
    }
}

/* On small screens the marker (3.5rem wide) is centered 1rem in from the
   item edge, so 12px of it overflows left and gets clipped by the section's
   overflow: hidden. Shift the line + marker right and widen the item padding
   so the logo stays fully visible with a gap before the card. */
@media (max-width: 767px) {
    .timeline::before,
    .timeline-marker {
        left: 2rem;
    }

    .timeline-item {
        padding-left: 4rem;
    }
}

.timeline-marker img {
    position: relative;
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.625rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0f;
    object-fit: contain;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.3s,
        border-color 0.3s;
}

@media (min-width: 768px) {
    .timeline-marker img {
        width: 4rem;
        height: 4rem;
    }
}

.timeline-item:hover .timeline-marker img {
    transform: scale(1.05);
    border-color: rgba(129, 140, 248, 0.4);
}

.timeline-ping {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: rgba(99, 102, 241, 0.25);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.timeline-card {
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
}

.timeline-period {
    display: inline-flex;
    border-radius: 9999px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a5b4fc;
}

.timeline-title {
    margin-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

@media (min-width: 640px) {
    .timeline-title {
        font-size: 1.5rem;
    }
}

.timeline-company {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(165, 180, 252, 0.9);
}

.timeline-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .timeline-card-wrap {
        width: 50%;
    }

    .timeline-item:nth-child(odd) .timeline-card-wrap {
        padding-right: 3.5rem;
    }

    .timeline-item:nth-child(even) .timeline-card-wrap {
        margin-left: auto;
        padding-left: 3.5rem;
    }
}

/* ---- Contact (home) ---- */
.contact-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
}

.contact-social {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
}

.contact-social-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    transition:
        background-color 0.3s,
        color 0.3s;
}

.contact-social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-social-link:hover .contact-social-icon {
    background: #6366f1;
    color: #fff;
}

.contact-social-name {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e4e4e7;
}

.contact-social-handle {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.contact-arrow {
    position: relative;
    z-index: 1;
    margin-left: auto;
    width: 1rem;
    height: 1rem;
    color: #71717a;
    transition:
        color 0.3s,
        transform 0.3s;
}

.contact-social-link:hover .contact-arrow {
    color: #a5b4fc;
    transform: translateX(4px);
}

.contact-form-card {
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
}

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.contact-form-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-home-form {
    margin-top: 2rem;
}

.home-submit {
    margin-top: 1.5rem;
}

/* ---- Scroll reveal (JS applies the hidden state; safe fallback) ---- */
[data-animate] {
    will-change: opacity, transform;
}

/* ---- Float ---- */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .animate-marquee,
    .animate-float,
    .animate-ping {
        animation: none;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* ================= ABOUT PAGE ================= */
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a5b4fc;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #d4d4d8;
}

.about-point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.125rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.about-point-icon svg {
    width: 0.875rem;
    height: 0.875rem;
}

.about-mission {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border-left: 2px solid rgba(129, 140, 248, 0.6);
    background: rgba(99, 102, 241, 0.08);
    color: #d4d4d8;
    line-height: 1.625;
}

.about-investor-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    border-radius: 1.5rem;
}

.about-block-title {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #818cf8;
}

.about-connect-cta {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-social {
    margin-top: 3rem;
    max-width: 30rem;
}

/* Visually hidden honeypot field for spam bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   Mobile responsiveness refinements
   ============================================================ */

/* The hero is a full-bleed section (100vw + negative margins), so its
   content uses the shared page gutter below the desktop column width */
@media (max-width: 1279px) {
    .hero-grid,
    .hero-container {
        padding-inline: var(--page-gutter);
    }
}

/* Nested sections rely on main's gutter so every component lines up
   with the same edge space (avoids stacking paddings) */
@media (max-width: 1023px) {
    .home-section,
    .single-article {
        padding-inline: 0;
    }

    /* The stacked hero (image above text) is shorter than the viewport;
       centering it leaves a big empty band above the image. Top-align so
       content starts right below the nav. */
    .hero-section {
        align-items: flex-start;
    }

    /* About hero stacks below 1024px, so give the framed portrait a clear
       gap from the text above it (the desktop grid gap doesn't apply here). */
    .hero-container-split .hero-visual {
        margin-top: 3rem;
    }
}

@media (max-width: 639px) {
    /* Compact hero on phones: content defines the height (no full-viewport
       stretch), top padding clears the fixed nav, and a tighter visual gap */
    .hero-section {
        padding: 5rem 0 2.5rem;
        min-height: 0;
        padding-top: 8rem; /* was 8rem — lower = tighter to header */
    }

    .hero-grid {
        gap: 2rem;
    }

    /* Slightly tighter gap between text and portrait on phones */
    .hero-container-split .hero-visual {
        margin-top: 2.5rem;
    }

    /* Standalone (non-nested) components match the page gutter */
    .footer-container {
        padding-inline: 1rem;
    }

    /* Trim generous card padding on small screens */
    .contact-card,
    .contact-form-card,
    .about-investor-card,
    .about-quote {
        padding: 1.5rem;
    }

    .timeline-card {
        padding: 1.25rem;
    }

    .about-mission {
        padding: 1.25rem;
    }

    /* Long brand names truncate instead of pushing the menu off-screen */
    .nav-brand-text {
        max-width: 45vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Footer stacks on mobile */
    .footer-main {
        gap: 2rem;
    }

    .footer-links-col {
        gap: 2rem;
    }
}

.about-quote-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
    /* Portrait source: keep the crop anchored to the top so the head stays
       visible inside the small circular avatar */
    object-position: center top;
    display: block;
}
