/* About Page Variables */
:root {
    --about-hero-height: 60vh;
    --card-bg: var(--bg-surface-glass);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: var(--color-primary-light);
}

[data-theme="light"] {
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-hover-border: var(--color-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

/* --- 3D Breakout Hero Styles --- */
.breakout-hero {
    position: relative;
    padding: 20px 0 0;
    /* Reduced top padding from 140px, removed bottom padding */
    background-color: var(--bg-main);
    overflow: hidden;
    text-align: center;
}

.hero-breakout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-text-area {
    margin-bottom: 60px;
    z-index: 20;
}

.intro-pill {
    display: inline-block;
    padding: clamp(4px, 2vw, 10px) clamp(10px, 3vw, 24px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: clamp(0.45rem, 2vw, 0.95rem);
    color: var(--text-main);
    margin-bottom: clamp(10px, 4vw, 25px);
    backdrop-filter: blur(10px);
}

.pill-highlight {
    background: #6327a0;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    margin: 0 4px;
    font-weight: 600;
}

.hero-brand-title {
    font-size: clamp(1rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: clamp(-0.5px, -0.5vw, -2px);
    line-height: 1;
    color: #333;
    /* Darker shade like the image */
}

[data-theme="dark"] .hero-brand-title {
    color: #f0f0f0;
}

.brand-gradient {
    background: linear-gradient(135deg, #7b3ff2 0%, #4285f4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* The World Section */
.breakout-world {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin-top: 40px;
}

.breakout-card {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 80%;
    /* Card is shorter than content for breakout */
    background: transparent;
    /* Container transparency */
    border-radius: 40px;
    overflow: hidden;
    /* Mask the spinning glow */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    z-index: 1;
    isolation: isolate;
    /* Animation: Card Fades In First */
    animation: cardReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Light Mode: 1. The Spinning Gradient Layer */
.breakout-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    /* Massive size to cover rotation */
    height: 250%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            rgba(255, 255, 255, 0) 0%,
            #9333ea 10%,
            /* Purple */
            rgba(255, 255, 255, 0) 25%,
            rgba(255, 255, 255, 0) 50%,
            #c026d3 60%,
            /* Pink/Magenta */
            rgba(255, 255, 255, 0) 75%);
    animation: borderSpin 6s linear infinite;
    z-index: -2;
}

/* Light Mode: 2. The Solid Inner Card */
.breakout-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Border thickness */
    border-radius: 38px;
    /* 40px - 2px */
    background: #ffffff;
    /* Solid White Inner */
    z-index: -1;
}

[data-theme="dark"] .breakout-card {
    background: transparent !important;
    /* Container transparency */
    border: none !important;
    /* Border handled by inset */
    border-radius: 40px;
    overflow: hidden;
    /* Mask the spinning glow */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(124, 58, 237, 0.3) !important;
    isolation: isolate;
}

/* 1. The Spinning Gradient Layer */
[data-theme="dark"] .breakout-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    /* Massive size to cover rotation */
    height: 250%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            #7c3aed,
            #310b55 30%,
            #10081a 50%,
            #310b55 70%,
            #c084fc 90%,
            #7c3aed 100%);
    animation: borderSpin 4s linear infinite;
    z-index: -2;
}

/* 2. The Solid Inner Card Layer */
[data-theme="dark"] .breakout-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Reduced border thickness to 2px */
    border-radius: 38px;
    /* 40px - 2px */
    background: linear-gradient(180deg, #4c1d95 0%, #150a25 100%);
    z-index: -1;
}

@keyframes borderSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

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

.card-inner-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.2) 0%, transparent 80%);
    pointer-events: none;
}

.breakout-asset-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 120%;
    /* Taller than card to breakout */
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.breakout-asset-img {
    width: auto;
    height: 100%;
    object-fit: contain;

    transition: transform 0.3s ease;
    /* More Aggressive Blending Mask */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
    /* Animation: Character Slides Up (Delay 0.3s) */
    animation: charSlideUp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.3s both;
}

/* Atmospheric Fog/Smoke Overlay - Concentrated on Body */
/* Atmospheric Fog/Smoke Overlay - Concentrated on Body */
.atmospheric-fog-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* Widened to allow fade */
    height: 50%;
    z-index: 7;
    pointer-events: none;
    overflow: hidden;
    /* Soften the edges of the smoke container itself */
    -webkit-mask-image: radial-gradient(ellipse at bottom, black 40%, transparent 80%);
    mask-image: radial-gradient(ellipse at bottom, black 40%, transparent 80%);
}

.atmospheric-fog {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* Relative to the narrow wrap */
    height: 30%;
    /* Lowered to keep smoke at waist level */
    background: radial-gradient(ellipse at center, rgba(225, 245, 254, 0.9) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    /* Animation: Smoke Swirls In (Delay 0.8s) + Drift Loop */
    animation: smokeSwirlIn 1.5s ease-out 0.8s both, drift 8s ease-in-out 2.3s infinite alternate;
}

[data-theme="dark"] .atmospheric-fog {
    /* Vibrant Royal Purple Fog to match new card */
    background: radial-gradient(circle at center,
            rgba(76, 29, 149, 0.95) 0%,
            /* Deep Violet Core */
            rgba(124, 58, 237, 0.6) 40%,
            /* Vibrant Violet Glow */
            rgba(139, 92, 246, 0.1) 75%,
            transparent 90%);
    filter: blur(60px);
}

.fog-2 {
    bottom: -8%;
    width: 150%;
    height: 35%;
    /* Reduced from 55% */
    background: radial-gradient(ellipse at center, rgba(123, 63, 242, 0.2) 0%, transparent 60%);
    animation-duration: 12s;
    animation-delay: -3s;
}

[data-theme="dark"] .fog-2 {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
}

.fog-3 {
    bottom: -10%;
    width: 160%;
    height: 40%;
    /* Reduced from 65% */
    background: radial-gradient(ellipse at center, rgba(99, 39, 160, 0.15) 0%, transparent 70%);
    animation: drift 15s ease-in-out infinite alternate-reverse;
    filter: blur(90px);
}

[data-theme="dark"] .fog-3 {
    background: radial-gradient(ellipse at center, rgba(49, 11, 85, 1) 20%, rgba(124, 58, 237, 0.3) 60%, transparent 90%);
    filter: blur(100px);
}

@keyframes drift {
    0% {
        transform: translateX(-55%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateX(-45%) scale(1.1);
        opacity: 0.9;
    }
}

/* --- Entrance Animations --- */
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes charSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes smokeSwirlIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* Floating Tags */
.floating-tags-container {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.floating-tag {
    position: absolute;
    animation: floatingPill 6s ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

.tag-pill {
    padding: clamp(3px, 2vw, 12px) clamp(6px, 3vw, 24px);
    background: #fff;
    color: #444;
    font-weight: 600;
    font-size: clamp(0.35rem, 1.5vw, 0.9rem);
    border-radius: clamp(4px, 2vw, 12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

[data-theme="dark"] .tag-pill {
    background: rgba(255, 255, 255, 0.9);
}

/* Exact Positions from Reference */
.tag-top-left {
    top: 35%;
    left: 0%;
}

.tag-mid-left {
    bottom: 20%;
    left: 10%;
}

.tag-bottom-right {
    bottom: 15%;
    right: 15%;
}

.tag-mid-right {
    top: 45%;
    right: 0%;
}

@keyframes floatingPill {
    0% {
        transform: translateY(0) rotate(-1deg);
    }

    100% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* --- Our Story Intro Section --- */
.our-story-intro {
    padding: 20px 0 0 0;
    background: var(--bg-main);
}

.our-story-intro .section-header {
    margin-bottom: 0;
}

.our-story-intro .section-header h2 {
    margin-bottom: 0;
}

.our-story-intro .section-header p {
    margin-bottom: 0;
}

.our-story-intro .eyebrow {
    margin-bottom: 0;
}

.our-story-intro .section-description {
    margin-bottom: 0;
}

/* --- Common Section Styles --- */
.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
    padding: 6px 16px;
    background: rgba(99, 39, 160, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(99, 39, 160, 0.2);
}

.title-gradient {
    background: linear-gradient(135deg, #7b3ff2 0%, #4285f4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Process Section Styles --- */
.process-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.3rem, 1.2vw, 2rem);
    margin: clamp(2rem, 5vw, 4rem) auto 0;
    max-width: 1100px;
    padding-bottom: 2rem;
}

.process-step {
    position: relative;
    aspect-ratio: 3 / 4.2;
    height: auto;
    background: var(--bg-surface-glass);
    border-radius: clamp(8px, 1.5vw, 20px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: clamp(0.3rem, 1.4vw, 1.5rem);
}

/* Subtle gradient overlay - matches theme */
.process-step::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    border-radius: 24px;
}

.process-step:nth-child(1)::before {
    background: radial-gradient(circle at top right, rgba(123, 63, 242, 0.15), transparent 70%);
}

.process-step:nth-child(2)::before {
    background: radial-gradient(circle at top right, rgba(66, 133, 244, 0.15), transparent 70%);
}

.process-step:nth-child(3)::before {
    background: radial-gradient(circle at top right, rgba(233, 86, 94, 0.15), transparent 70%);
}

.process-step:nth-child(4)::before {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 70%);
}

/* Step Number */
.step-number {
    position: relative;
    font-size: clamp(1.1rem, 3.8vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    line-height: 1;
    margin-bottom: clamp(0.3rem, 1.2vw, 1.5rem);
    font-family: var(--font-heading);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* Content */
.step-content {
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: clamp(0.46rem, 1.5vw, 1.15rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: clamp(0.08rem, 0.6vw, 0.7rem);
    transition: all 0.4s ease;
    line-height: 1.2;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.35;
    font-size: clamp(0.32rem, 0.9vw, 0.73rem);
    transition: all 0.4s ease;
}

/* Hover Effects */
.process-step:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--color-primary-light);
    box-shadow: 0 25px 50px rgba(99, 39, 160, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.process-step:hover::before {
    opacity: 1;
}

.process-step:hover .step-number {
    opacity: 0.7;
    transform: scale(1.1) rotate(-5deg);
}

.process-step:hover .step-content h3 {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

.process-step:hover .step-content p {
    color: var(--text-main);
    transform: translateX(5px);
}

/* Accent border on hover */
.process-step::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 0 0 24px 24px;
}

.process-step:hover::after {
    width: 100%;
}

/* Different accent colors for each step */
.process-step:nth-child(1):hover {
    border-color: rgba(123, 63, 242, 0.4);
}

.process-step:nth-child(2):hover {
    border-color: rgba(66, 133, 244, 0.4);
}

.process-step:nth-child(3):hover {
    border-color: rgba(233, 86, 94, 0.4);
}

.process-step:nth-child(4):hover {
    border-color: rgba(6, 182, 212, 0.4);
}

/* Removed media query - keeping 4 columns on all devices */

/* --- Philosophy Section Styles --- */
.philosophy-section {
    padding: 120px 0 100px 0;
    background: var(--bg-main);
}

.philosophy-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(60px, 1fr));
    gap: clamp(0.4rem, 1.8vw, 1.5rem);
    margin: 3rem auto 0;
    max-width: 1000px;
    padding-bottom: 1rem;
}

.bento-card {
    position: relative;
    padding: clamp(1rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1.5rem);
    border-radius: clamp(12px, 3vw, 24px);
    overflow: hidden;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    isolation: isolate;
    cursor: pointer;
}

.card-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: -1;
    transition: all 0.5s ease;
}

.bento-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(99, 39, 160, 0.3), 0 0 40px rgba(99, 39, 160, 0.2);
}

.bento-card:hover .card-glass {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 60px rgba(99, 39, 160, 0.15);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    margin-bottom: clamp(0.3rem, 3vw, 2rem);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 5px 15px rgba(99, 39, 160, 0.3));
}

.card-icon img {
    width: clamp(35px, 12vw, 100px);
    height: clamp(35px, 12vw, 100px);
}

.bento-card:hover .card-icon {
    transform: scale(1.15) rotate(8deg) translateY(-10px);
    filter: drop-shadow(0 15px 30px rgba(99, 39, 160, 0.6));
}

.card-content h3 {
    font-size: clamp(0.5rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: clamp(0.3rem, 2vw, 1.5rem);
    color: var(--text-main);
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.4;
    font-size: clamp(0.45rem, 2vw, 1rem);
}

/* Specific Card Themes */
.card-humanity .card-glass {
    border-bottom: 4px solid var(--color-accent);
}

.card-intelligence .card-glass {
    border-bottom: 4px solid var(--color-primary-light);
}

.card-precision .card-glass {
    border-bottom: 4px solid #4285f4;
}

/* Removed media query - keeping 3 columns on all devices */


/* --- Team DNA Styles --- */
.member-dna {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.dna-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member:hover .member-dna {
    opacity: 1;
}

/* Scroll Reveal Helper (if not already defined) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Team Section */
.bio-section {
    padding: 2rem 0 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.3rem, 1.2vw, 1.5rem);
    max-width: 1100px;
    margin: 0 auto;
}

/* Flip Card Container */
.team-member {
    position: relative;
    background: transparent;
    border-radius: clamp(12px, 2.5vw, 32px);
    aspect-ratio: 1 / 1.92;
    perspective: 1000px;
    cursor: pointer;
}

.team-member:hover {
    transform: none;
}

/* Inner wrapper for flip */
.team-member>* {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Front side - Image wrapper and basic info */
.team-member .member-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--card-border);
    border-radius: clamp(12px, 2.5vw, 32px);
    padding: clamp(1rem, 3vw, 4rem) clamp(0.5rem, 1.5vw, 2rem);
    text-align: center;
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backface-visibility: hidden;
}

/* Back side - Member info with details */
.team-member .member-info {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--card-border);
    border-radius: clamp(12px, 2.5vw, 32px);
    padding: clamp(0.4rem, 1.2vw, 3rem) clamp(0.3rem, 1vw, 2rem);
    text-align: center;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.3rem, 1vw, 2rem);
    overflow: hidden;
}

/* Flip on hover */
.team-member:hover .member-image-wrapper {
    transform: rotateY(-180deg);
}

.team-member:hover .member-info {
    transform: rotateY(0deg);
    border-color: var(--card-hover-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 39, 160, 0.3);
}

/* Image container styling */
.member-image-container {
    width: clamp(60px, 15vw, 200px);
    height: clamp(60px, 15vw, 200px);
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-surface);
    border: clamp(1px, 0.3vw, 4px) solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s ease;
    margin-bottom: clamp(0.5rem, 1.5vw, 2rem);
    flex-shrink: 0;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Front side text */
.member-image-wrapper h3,
.member-image-wrapper .member-role {
    position: relative;
    z-index: 3;
}

.member-image-wrapper h3 {
    font-size: clamp(0.4rem, 1.3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-main);
    line-height: 1.2;
}

.member-image-wrapper .member-role {
    display: block;
    font-size: clamp(0.3rem, 0.8vw, 0.85rem);
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.15vw, 2px);
    line-height: 1.3;
}

/* Back side content */
.member-info h3 {
    font-size: clamp(0.3rem, 1.3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-main);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.member-role {
    display: block;
    font-size: clamp(0.22rem, 0.8vw, 0.95rem);
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: clamp(0.2px, 0.15vw, 2.5px);
    margin-bottom: 0;
    line-height: 1.2;
}

.member-bio {
    font-size: clamp(0.26rem, 0.9vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: clamp(0.2rem, 1vw, 2.5rem);
}

.member-expertise {
    display: flex;
    justify-content: center;
    gap: clamp(0.15rem, 0.4vw, 0.6rem);
    flex-wrap: wrap;
    margin-bottom: clamp(0.3rem, 0.8vw, 2.2rem);
}

.expertise-tag {
    font-size: clamp(0.22rem, 0.7vw, 0.8rem);
    font-weight: 600;
    padding: clamp(1px, 0.35vw, 6px) clamp(2px, 0.7vw, 14px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.team-member:hover .expertise-tag {
    background: rgba(99, 39, 160, 0.1);
    color: var(--text-main);
    border-color: var(--color-primary-light);
}

/* Member DNA */
.member-dna {
    display: flex;
    justify-content: center;
    gap: clamp(0.15rem, 0.35vw, 0.5rem);
}

.dna-tag {
    font-size: clamp(0.2rem, 0.7vw, 0.75rem);
    padding: clamp(0.5px, 0.3vw, 5px) clamp(2px, 0.6vw, 12px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: clamp(0.2px, 0.2vw, 1px);
    color: var(--color-primary-light);
}

/* Bio Text */
.bio-text {
    margin-top: 8rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    text-align: center;
}

.bio-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 3rem;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 5vw, 5rem);
    margin-top: clamp(3rem, 8vw, 5rem);
    padding: clamp(1.5rem, 5vw, 4rem);
    background: var(--bg-surface-glass);
    border-radius: clamp(20px, 4vw, 40px);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: clamp(0.4rem, 1vw, 0.75rem);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: clamp(0.5rem, 1.5vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.4vw, 4px);
    color: var(--color-primary-light);
    font-weight: 700;
}

/* Skills Section */
.skills-section {
    padding: 8rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.5rem, 2vw, 2rem);
    max-width: 1000px;
    margin: 0 auto;
}

/* Specific override for About Page Technical Arsenal */
.skills-section .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: clamp(0.8rem, 2vw, 2rem);
    max-width: 1000px;
    margin: 0 auto;
}

.skills-section .bento-item {
    padding: clamp(1rem, 3vw, 2.5rem);
    min-height: unset;
    height: auto;
    aspect-ratio: 1 / 1.1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(0.4rem, 1vw, 1rem);
}

.skills-section .icon-box {
    margin-bottom: clamp(0.4rem, 1vw, 1.25rem);
}

.skills-section .icon-box svg {
    width: clamp(24px, 5vw, 48px);
    height: clamp(24px, 5vw, 48px);
}

.skills-section .bento-item h3 {
    font-size: clamp(0.85rem, 2.2vw, 1.5rem);
    margin-bottom: 0;
    line-height: 1.2;
}

.skills-section .bento-item p {
    font-size: clamp(0.6rem, 1.4vw, 0.95rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .skills-section .bento-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .skills-section .bento-item {
        padding: 1.25rem 1rem;
        border-radius: 20px;
    }
}

/* Skill cards moved to bento-grid (features.css) */


/* CTA Section removed - replaced by final-cta-section from homepage */


/* Responsive */
@media (max-width: 1024px) {
    .stats-row {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .team-grid {
        gap: 2rem;
    }

    .stats-row {
        gap: clamp(1rem, 3vw, 3rem);
        padding: 2rem 1rem;
    }
}

/* Homepage Project Spotlight - Now using portfolio.css directly */