/* ==========================================
   HOME PAGE — MODERN UI LAYER
   Loaded only on index.html, after style.min.css.
   Hero is lightly touched; sections below are reworked.
   ========================================== */

:root {
    --hairline: rgba(255, 255, 255, 0.07);
    --hairline-strong: rgba(255, 255, 255, 0.12);
    --surface: rgba(22, 22, 24, 0.72);
    --surface-raised: #18181b;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- HERO (light touch) ---------- */
.hero { overflow-x: clip; }
.hero__left {
    position: relative;
    isolation: isolate;
}

.hero__left::before {
    content: '';
    position: absolute;
    inset: -10% -20% -10% -40%;
    z-index: -1;
    background-image:
        linear-gradient(var(--hairline) 1px, transparent 1px),
        linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 60% 55% at 30% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 30% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero__stats-row {
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

/* ---------- MARQUEE: soft edges ---------- */
.marquee-track {
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* ---------- SECTION SHELL ---------- */
.section {
    padding: clamp(5rem, 9vw, 8rem) 0;
    border-top: 1px solid var(--hairline);
}

.section::before { display: none; }

.section--dark {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.06), transparent 70%),
        var(--color-bg-alt);
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    filter: none;
    margin-bottom: var(--space-lg);
}

.section__label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    flex-shrink: 0;
}

.section__title {
    font-size: clamp(2.25rem, 4.8vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    max-width: 22ch;
    text-wrap: balance;
}

.section__intro {
    text-wrap: pretty;
}

/* ---------- SPOTLIGHT CARD (shared) ---------- */
.venture-card,
.skill-card,
.service-card,
.testimonial-card,
.resource-card {
    --mx: 50%;
    --my: 0%;
    background: var(--surface-raised);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.venture-card::after,
.skill-card::after,
.service-card::after,
.testimonial-card::after,
.resource-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(59, 130, 246, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.venture-card:hover,
.skill-card:hover,
.service-card:hover,
.testimonial-card:hover,
.resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--hairline-strong);
    background: var(--surface-raised);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

.venture-card:hover::after,
.skill-card:hover::after,
.service-card:hover::after,
.testimonial-card:hover::after,
.resource-card:hover::after {
    opacity: 1;
}

.venture-card::before { display: none; }

/* ---------- ABOUT ---------- */
.about-snippet__grid {
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.about-snippet__text p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-snippet__text > p:last-child {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    line-height: 1.35;
    color: var(--color-text);
    margin-top: var(--space-xl);
    padding-left: var(--space-lg);
    border-left: 2px solid #3B82F6;
}

.about-snippet__visual {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.journey {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 24px;
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.journey::before {
    left: var(--space-xl);
    top: calc(var(--space-2xl) + 20px);
    bottom: calc(var(--space-xl) + 20px);
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.5) 20%, #60A5FA 85%, transparent);
}

.journey__step--active .journey__dot {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15), 0 0 24px rgba(59, 130, 246, 0.5);
}

/* ---------- VENTURES: 3 equal cards ---------- */
.ventures__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.venture-card {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
}

.venture-card__title {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    letter-spacing: -0.02em;
}

.venture-card__tagline { min-height: 3.2em; }

/* Same surface for every venture; the featured one only keeps a hairline accent */
.venture-card--featured {
    background: var(--surface-raised);
    border-color: var(--hairline);
}

.venture-card__impact {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}

.venture-card__meta {
    margin-top: auto;
    flex-wrap: wrap;
    row-gap: var(--space-md);
}

.venture-card__link {
    padding-top: var(--space-md);
}

.venture-card__link:hover { gap: 10px; }


/* ---------- SKILLS: 2x2 equal cards ---------- */
.skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    align-items: stretch;
}

.skill-card {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
}

.skill-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.skill-card__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #93C5FD;
    background: var(--accent-soft);
    border: 1px solid rgba(96, 165, 250, 0.2);
    flex-shrink: 0;
}

.skill-card__chip {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    border: 1px solid var(--hairline-strong);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

/* Number becomes a quiet watermark behind the card body */
.skill-card__number {
    position: absolute;
    top: auto;
    bottom: -1.25rem;
    right: 1rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    opacity: 1;
    background: none;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(96, 165, 250, 0.12);
    pointer-events: none;
    z-index: -1;
}

.skill-card:hover .skill-card__number {
    -webkit-text-stroke-color: rgba(96, 165, 250, 0.3);
}

.skill-card__title {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-md);
}

.skill-card__desc { max-width: 58ch; }

/* ---------- SERVICES: FEATURED PLAN ---------- */
.services__grid {
    margin-top: var(--space-2xl);
    gap: var(--space-lg);
    align-items: stretch;
}

.service-card {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
}

.service-card .link-arrow { margin-top: auto; padding-top: var(--space-lg); }

.service-card__details {
    border-top: 1px solid var(--hairline);
    padding-top: var(--space-lg);
}

.service-card--featured {
    border-color: transparent;
    background:
        linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
        linear-gradient(160deg, rgba(96, 165, 250, 0.7), rgba(59, 130, 246, 0.15) 40%, rgba(255, 255, 255, 0.06)) border-box;
    box-shadow: 0 30px 80px -40px rgba(59, 130, 246, 0.45);
}

.service-card--featured:hover {
    border-color: transparent;
    background:
        linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
        linear-gradient(160deg, rgba(96, 165, 250, 0.9), rgba(59, 130, 246, 0.25) 40%, rgba(255, 255, 255, 0.08)) border-box;
}

.service-card__badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #BFDBFE;
    background: var(--accent-soft);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 999px;
    padding: 4px 10px;
}

/* ---------- TESTIMONIALS: 3 equal cards ---------- */
.testimonials__grid {
    margin-top: var(--space-2xl);
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.testimonial-card {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
}

.testimonial-card__quote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.testimonial-card.is-expanded .testimonial-card__quote {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.testimonial-card__more {
    align-self: flex-start;
    margin-top: var(--space-sm);
    padding: 6px 0;
    min-height: 32px;
    background: none;
    border: 0;
    color: #60A5FA;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
}

.testimonial-card__more:hover { color: #93C5FD; }

.testimonial-card__author {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--hairline);
}

.testimonial-card__quote + .testimonial-card__author,
.testimonial-card__more + .testimonial-card__author {
    margin-top: auto;
}

.testimonial-card__stars { filter: none; margin-bottom: var(--space-md); }

/* ---------- MEDIA: PRESS LIST ---------- */
.media__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--hairline);
}

.media-card,
.media-card--link {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr auto;
    grid-template-areas:
        "source title cta"
        "source desc  cta";
    column-gap: var(--space-2xl);
    row-gap: 6px;
    align-items: center;
    padding: var(--space-xl) var(--space-md);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    box-shadow: none;
    transition: background 0.3s var(--ease-out);
}

.media-card:hover,
.media-card--link:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--hairline);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.07), transparent 70%);
}

.media-card__source {
    grid-area: source;
    margin: 0;
    align-self: start;
    padding-top: 4px;
}

.media-card__title {
    grid-area: title;
    margin: 0;
    font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
    letter-spacing: -0.01em;
}

.media-card__desc {
    grid-area: desc;
    margin: 0;
    max-width: 62ch;
}

.media-card__cta {
    grid-area: cta;
    margin: 0;
    white-space: nowrap;
    transition: transform 0.3s var(--ease-out), color 0.3s;
}

.media-card--link:hover .media-card__cta {
    transform: translateX(4px);
    color: #93C5FD;
}

/* ---------- RESOURCES ---------- */
.resources-grid { gap: var(--space-lg); }

.resource-card { padding: clamp(1.5rem, 2.5vw, 2rem); }

/* ---------- CONTACT ---------- */
.contact__grid { align-items: start; }

.contact__form-wrapper {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 40px 100px -50px rgba(59, 130, 246, 0.35);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* ---------- ACCESSIBILITY: focus rings ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .ventures__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
    .about-snippet__visual { position: static; }
    .contact__form-wrapper { position: static; }
}

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

    .venture-card__tagline { min-height: 0; }

    /* Reviews: swipeable row of equal cards */
    .testimonials__grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 85%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--space-xl);
        margin-inline: calc(var(--space-xl) * -1);
        padding: 0 var(--space-xl) var(--space-md);
        scrollbar-width: none;
    }
    .testimonials__grid::-webkit-scrollbar { display: none; }
    .testimonial-card { scroll-snap-align: start; }

    .skill-card__number { display: none; }

    .media-card,
    .media-card--link {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "source cta"
            "title  title"
            "desc   desc";
        column-gap: var(--space-md);
        padding: var(--space-lg) 0;
    }
}

/* ---------- MOTION SAFETY ---------- */
@media (prefers-reduced-motion: reduce) {
    .venture-card,
    .skill-card,
    .service-card,
    .testimonial-card,
    .resource-card,
    .media-card,
    .reveal {
        transition: none !important;
        transform: none !important;
    }
    .marquee-inner { animation: none !important; }
}

/* ---------- JOURNEY: line locked to dot centers ----------
   Dot is 40px wide with margin-left:-19px, so its centre sits at
   padding-left + 1px. A 2px line at left = padding-left matches it. */
.about-snippet .journey { padding-left: 32px; }
.about-snippet .journey::before { left: 32px; width: 2px; }
.about-snippet .journey__dot { margin-left: -19px; }

/* =====================================================================
   PREMIUM LAYER (v3) — futuristic portfolio treatment below the hero
   ===================================================================== */

/* ---------- Film grain over the whole page ---------- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Border beam (rotating light on the card edge) ---------- */
@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes beam-spin { to { --beam-angle: 360deg; } }

.has-beam::before,
.venture-card:hover::before,
.service-card--featured::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--beam-angle), transparent 0deg, transparent 290deg, rgba(96, 165, 250, 0.15) 310deg, #93c5fd 340deg, #60a5fa 352deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: beam-spin 4s linear infinite;
    pointer-events: none;
    opacity: 1;
}

/* ---------- ABOUT: sticky heading + scroll-lit story ---------- */
@media (min-width: 1025px) {
    .about-snippet__content > .section__label,
    .about-snippet__content > .section__title {
        position: relative;
    }
}

.about-snippet__text.is-enhanced .mi-story p {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.65;
    color: var(--color-text);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
}

.about-snippet__text.is-enhanced .mi-story p:first-child {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    line-height: 1.4;
}

.mi-story a { color: #93c5fd; text-decoration: underline; text-decoration-color: rgba(147, 197, 253, 0.35); text-underline-offset: 4px; }

/* Journey: line fills as you scroll, dots light up when reached */
.about-snippet .journey::after {
    content: '';
    position: absolute;
    left: 32px;
    top: calc(var(--space-2xl) + 20px);
    bottom: calc(var(--space-xl) + 20px);
    width: 2px;
    background: linear-gradient(180deg, #93c5fd, #3b82f6);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
    transform-origin: top;
    transform: scaleY(var(--journey-progress, 0));
    border-radius: 2px;
}

.about-snippet .journey::before { opacity: 0.25; }

.journey__step.is-reached .journey__dot {
    border-color: #60a5fa;
    color: #bfdbfe;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 0 18px rgba(59, 130, 246, 0.45);
}

/* ---------- VENTURES: mesh-gradient monogram header ---------- */
.venture-card__visual {
    position: relative;
    margin: calc(clamp(1.5rem, 2.5vw, 2rem) * -1) calc(clamp(1.5rem, 2.5vw, 2rem) * -1) var(--space-xl);
    height: 150px;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
    background:
        radial-gradient(60% 90% at 15% 10%, var(--v1, rgba(59, 130, 246, 0.55)), transparent 60%),
        radial-gradient(55% 80% at 90% 30%, var(--v2, rgba(14, 165, 233, 0.35)), transparent 65%),
        radial-gradient(70% 70% at 50% 120%, var(--v3, rgba(99, 102, 241, 0.4)), transparent 70%),
        #0d1220;
    isolation: isolate;
}

.venture-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    z-index: -1;
}

.ventures__grid > .venture-card:nth-child(3) .venture-card__visual { --v1: rgba(16, 185, 129, 0.4); --v2: rgba(59, 130, 246, 0.4); --v3: rgba(14, 165, 233, 0.35); }
.ventures__grid > .venture-card:nth-child(2) .venture-card__visual { --v1: rgba(99, 102, 241, 0.5); --v2: rgba(168, 85, 247, 0.25); --v3: rgba(59, 130, 246, 0.45); }

.venture-card__mono {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.6s var(--ease-out), -webkit-text-stroke-color 0.4s;
}

.venture-card:hover .venture-card__mono {
    transform: translate(-50%, -54%) scale(1.06);
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.7);
}

.venture-card__caption {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.venture-card__header .venture-card__icon { display: none; }

/* ---------- SKILLS: coss tabs feature panel ---------- */
.mi-skills-host { margin-top: var(--space-2xl); }

.mi-skills__list {
    gap: 0;
    align-self: stretch;
}

.mi-skills .mi-skills__tab {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 16px;
    width: 100%;
    min-height: 64px;
    padding: 18px 20px 20px 4px;
    white-space: normal;
    text-align: left;
    justify-content: start;
    font-size: 1rem;
    color: var(--muted-foreground);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}

.mi-skills .mi-skills__tab[data-active] { color: var(--foreground); }
.mi-skills .mi-skills__tab:hover { background: transparent; color: var(--foreground); }

.mi-skills__num {
    font-family: var(--font-stat, inherit);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    color: #60a5fa;
    opacity: 0.6;
}

.mi-skills__tab[data-active] .mi-skills__num { opacity: 1; }

.mi-skills__tab-title {
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.mi-skills__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    overflow: hidden;
}

.mi-skills__progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
    transform-origin: left;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
}

/* the underline indicator from coss is replaced by the progress bar */
.mi-skills [data-slot="tabs-indicator"] { display: none; }

.mi-skills__panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    height: 100%;
    min-height: 360px;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
        linear-gradient(180deg, #17171b, #111114);
}

.mi-skills__panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.mi-skills__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #bfdbfe;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(147, 197, 253, 0.3);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.6);
}

.mi-skills__icon svg { width: 26px; height: 26px; }

.mi-skills__chip {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #bfdbfe;
    border: 1px solid rgba(147, 197, 253, 0.3);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 999px;
    padding: 6px 14px;
}

.mi-skills__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-lg);
    max-width: 18ch;
}

.mi-skills__desc {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.75;
    color: #a6a6b0;
    max-width: 56ch;
}

.mi-skills__orb {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(147, 197, 253, 0.5), rgba(59, 130, 246, 0.15) 45%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    animation: orb-float 9s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -20px); }
}

/* ---------- SERVICES: featured card always beams ---------- */
.service-card--featured { overflow: hidden; }

/* ---------- MEDIA: "featured in" marquee ---------- */
.press-marquee {
    margin: var(--space-2xl) 0 var(--space-xl);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.press-marquee__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: press-scroll 38s linear infinite;
}

.press-marquee__item {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

.press-marquee__sep { color: rgba(96, 165, 250, 0.6); font-size: 0.875rem; }

@keyframes press-scroll { to { transform: translateX(-50%); } }

/* ---------- CONTACT: aurora backdrop ---------- */
#contact { overflow: hidden; isolation: isolate; }

#contact::before,
#contact::after {
    content: '';
    display: block;
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    animation: aurora 18s ease-in-out infinite alternate;
}

#contact::before {
    left: -15%;
    top: 10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent 65%);
    transform: none;
}

#contact::after {
    right: -10%;
    bottom: -20%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.45), transparent 65%);
    animation-delay: -9s;
}

@keyframes aurora {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, -8%) scale(1.15); }
}

/* ---------- FOOTER: giant wordmark ---------- */
.footer { overflow: hidden; }

.footer__wordmark {
    font-family: var(--font-stat, var(--font-display));
    font-weight: 700;
    font-size: clamp(5rem, 22vw, 20rem);
    line-height: 0.8;
    letter-spacing: -0.02em;
    text-align: center;
    margin: var(--space-2xl) 0 var(--space-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
    .mi-skills__panel { min-height: 0; }
}

@media (max-width: 768px) {
    .venture-card__visual { height: 120px; }
    .venture-card__mono { font-size: 4.25rem; }
    .mi-skills .mi-skills__tab { min-height: 56px; padding: 14px 8px 16px 0; }
    #contact::before, #contact::after { filter: blur(60px); opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .has-beam::before,
    .venture-card:hover::before,
    .service-card--featured::before,
    .press-marquee__track,
    .mi-skills__orb,
    #contact::before,
    #contact::after { animation: none !important; }
}

/* ---------- CARD POLISH ---------- */
.venture-card,
.skill-card,
.service-card,
.testimonial-card,
.resource-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 38%),
        var(--surface-raised);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 1px 2px rgba(0, 0, 0, 0.35),
        0 14px 34px -22px rgba(0, 0, 0, 0.8);
}

/* soft top-edge light line */
.venture-card::after,
.skill-card::after,
.service-card::after,
.testimonial-card::after,
.resource-card::after {
    background:
        radial-gradient(520px circle at var(--mx) var(--my), rgba(96, 165, 250, 0.16), transparent 62%),
        linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.35), transparent) top / 100% 1px no-repeat;
}

.venture-card:hover,
.skill-card:hover,
.service-card:hover,
.testimonial-card:hover,
.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.08),
        0 30px 70px -28px rgba(37, 99, 235, 0.35),
        0 24px 60px -24px rgba(0, 0, 0, 0.75);
}

.venture-card:focus-within,
.service-card:focus-within,
.resource-card:focus-within {
    border-color: rgba(96, 165, 250, 0.5);
}

/* Testimonials: quote mark, tidier author row */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    right: 18px;
    font: 700 5.5rem/1 Georgia, 'Times New Roman', serif;
    color: rgba(96, 165, 250, 0.12);
    pointer-events: none;
    transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.testimonial-card:hover::before {
    color: rgba(96, 165, 250, 0.28);
    transform: translateY(-2px);
}

.testimonial-card__quote { color: rgba(226, 232, 240, 0.82); }

.testimonial-card__author {
    border-top-color: rgba(255, 255, 255, 0.07);
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.35), transparent) top left / 56px 1px no-repeat;
}

.testimonial-card__stars { color: #FBBF24; letter-spacing: 2px; }

/* Venture + service: smoother content rhythm */
.venture-card__title,
.service-card h3 { letter-spacing: -0.015em; }

.venture-card__link,
.service-card .link-arrow { transition: gap 0.3s var(--ease-out), color 0.3s var(--ease-out); }

.service-card--featured {
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
        var(--surface-raised);
}

@media (hover: none) {
    .venture-card:hover,
    .skill-card:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .resource-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card::before { transition: none; }
}

/* Mobile: no sideways scroll */
html, body { overflow-x: clip; }
.testimonials { overflow-x: clip; }

/* Hero: grow instead of sliding under the nav on short screens */
@media (min-width: 1025px) {
    .hero { height: auto; min-height: max(680px, 100vh); }
    .hero__left { padding-top: calc(var(--nav-height) + 3.5rem); }
}
