/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a202c;
    color: #E2E8F0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-container {
    padding-top: 120px;
    padding-bottom: 4rem;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4FD1C5, #ED8936);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4FD1C5;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4FD1C5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4FD1C5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #E2E8F0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(237, 137, 54, 0.1));
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(79, 209, 197, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(237, 137, 54, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #4FD1C5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out both;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #A0AEC0;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.skill-tag-hero {
    background-color: rgba(79, 209, 197, 0.1);
    border: 1px solid rgba(79, 209, 197, 0.3);
    color: #E2E8F0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag-hero:hover {
    background-color: rgba(79, 209, 197, 0.2);
    transform: translateY(-2px);
}

.cta-button {
    background: linear-gradient(135deg, #4FD1C5, #ED8936);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: #1a202c;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 209, 197, 0.3);
}

.button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

.secondary-button {
    background: transparent;
    border: 2px solid #4FD1C5;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #4FD1C5;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.secondary-button:hover {
    background: #4FD1C5;
    color: #1a202c;
    transform: translateY(-2px);
}

.secondary-button:hover .button-arrow {
    transform: translateX(5px);
}

.projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.my-work-content {
    max-width: 1000px;
    margin: 0 auto;
}

.my-work-back {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(79, 209, 197, 0.15);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(79, 209, 197, 0.1);
    border: 3px dashed #4FD1C5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    color: #4FD1C5;
}

.image-placeholder p {
    font-size: 0.9rem;
    color: #A0AEC0;
    line-height: 1.4;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #4FD1C5;
    border-bottom: 2px solid #4FD1C5;
    transform: rotate(45deg);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.story-section {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.story-section .section-title {
    text-align: center;
}

.story-section .about-text {
    text-align: left;
}

.experience-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(79, 209, 197, 0.2);
}

.experience-content {
    text-align: left;
}

.experience-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.experience-text p {
    margin-bottom: 1.5rem;
    color: #CBD5E0;
}

.placeholder-box {
    background: rgba(79, 209, 197, 0.1);
    border: 2px dashed #4FD1C5;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 1rem;
}

.placeholder-box h3 {
    color: #4FD1C5;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.placeholder-box ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.placeholder-box li {
    margin-bottom: 1rem;
    color: #A0AEC0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #CBD5E0;
}

/* Story Section Styles */
.story-highlight-box {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(237, 137, 54, 0.05));
    border-left: 4px solid #4FD1C5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.story-opening {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #E2E8F0;
    margin: 0;
}

.transformation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #4FD1C5;
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4FD1C5, #ED8936);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #A0AEC0;
    margin-top: 0.5rem;
    font-weight: 500;
}

.insight-callout {
    background: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.insight-icon {
    width: 24px;
    height: 24px;
    color: #ED8936;
    flex-shrink: 0;
    margin-top: 2px;
}

.insight-callout p {
    margin: 0;
    color: #E2E8F0;
}

/* Vision Section */
.vision {
    padding: 6rem 0;
}

.vision-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.vision-description {
    font-size: 1.2rem;
    color: #CBD5E0;
    line-height: 1.8;
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vision-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 209, 197, 0.1);
    border-color: #4FD1C5;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #4FD1C5;
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #E2E8F0;
}

.vision-card p {
    color: #A0AEC0;
    line-height: 1.6;
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.video-container {
    max-width: 450px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(79, 209, 197, 0.2);
    border: 2px solid rgba(79, 209, 197, 0.3);
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    box-shadow: 0 25px 80px rgba(79, 209, 197, 0.3);
    border-color: rgba(79, 209, 197, 0.5);
    transform: translateY(-5px);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.video-wrapper:hover iframe {
    filter: none;
}

.video-section .section-title {
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.projects .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    background: transparent;
    border: 2px solid rgba(79, 209, 197, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: #A0AEC0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: #4FD1C5;
    color: #1a202c;
    border-color: #4FD1C5;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-panel.active {
    display: block;
}

.project-cards {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #4FD1C5;
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #E2E8F0;
}

.project-role {
    color: #4FD1C5;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-card li {
    margin-bottom: 0.5rem;
    color: #A0AEC0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(79, 209, 197, 0.2);
    color: #4FD1C5;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.skill-category h3 {
    color: #4FD1C5;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: rgba(237, 137, 54, 0.2);
    color: #ED8936;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.2rem;
    color: #CBD5E0;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #4FD1C5;
    transform: translateY(-2px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #4FD1C5;
}

.contact-item a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #4FD1C5;
}

.linkedin-placeholder {
    background: rgba(79, 209, 197, 0.1);
    border: 1px dashed #4FD1C5;
    border-radius: 10px;
    padding: 1rem;
    color: #A0AEC0;
    font-style: italic;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-container {
        padding: 6rem 1rem 2rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: #1a202c;
        width: 100%;
        height: calc(100vh - 70px);
        transition: all 0.3s ease-in-out;
        padding-top: 2rem;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
    }
    
    .nav-menu li:hover {
        background-color: rgba(79, 209, 197, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-portrait {
        max-width: 90%;
        height: auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .story-section {
        max-width: 100%;
    }
    
    .story-section,
    .experience-section {
        max-width: 100%;
    }
    
    .experience-section {
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .transformation-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .insight-callout {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vision-cards {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        align-items: stretch;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .video-container {
        max-width: 350px;
        margin: 0 auto 2rem;
    }

    .video-wrapper {
        height: 500px;
        border-radius: 15px;
    }
    
    .story-page .story-header {
        padding-top: 2rem;
    }
    
    .story-page .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .story-section h2 {
        font-size: 1.6rem;
        padding-left: 1rem;
    }
    
    .story-content-with-photo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-side-photo {
        order: -1;
        justify-self: center;
    }
    
    .dual-story-photos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-image-placeholder {
        height: 300px;
        padding: 1.5rem;
    }
    
    .story-image-placeholder.small {
        height: 200px;
    }
    
    .story-image-placeholder.medium {
        height: 250px;
    }
    
    .framework-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .professional-framework {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding-top: 150px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .cta-button,
    .secondary-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .project-card,
    .vision-card,
    .skill-category {
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .story-section {
        margin-bottom: 3rem;
    }
    
    .story-section h2 {
        font-size: 1.4rem;
    }
    
    .story-image-placeholder {
        height: 250px;
        padding: 1rem;
    }
    
    .story-image-placeholder.small {
        height: 180px;
    }
    
    .story-image-placeholder.medium {
        height: 220px;
    }
    
    .professional-framework {
        padding: 1.5rem;
    }
    
    .framework-item {
        padding: 1rem;
    }
    
    .story-page .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .video-container {
        max-width: 300px;
        margin: 0 auto 1.5rem;
    }

    .video-wrapper {
        height: 450px;
        border-radius: 12px;
    }
}

.hero-portrait {
    width: 360px;
    height: 360px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid #4FD1C5;
    box-shadow: 0 4px 24px rgba(79, 209, 197, 0.15);
    background: #1a202c;
}

/* Story Page Styles */
.story-page {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

.story-page .container {
    max-width: 900px;
}

.story-page .story-header {
    text-align: center;
    margin-bottom: 4rem;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-section {
    margin-bottom: 4rem;
}

.story-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #4FD1C5;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.story-section p {
    margin-bottom: 1.5rem;
    color: #CBD5E0;
}

/* Story Photo Sections */
.story-photo-section {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.main-story-photo {
    width: 100%;
    max-width: 500px;
}

.dual-story-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
}

.story-image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    background: rgba(79, 209, 197, 0.1);
    border: 3px dashed #4FD1C5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.story-image-placeholder:hover {
    background: rgba(79, 209, 197, 0.15);
    border-color: #4FD1C5;
    transform: translateY(-2px);
}

.story-image-placeholder.small {
    height: 200px;
    padding: 1rem;
}

.story-image-placeholder.medium {
    height: 300px;
    padding: 1.5rem;
}

.story-image-placeholder .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.story-image-placeholder .placeholder-icon {
    width: 40px;
    height: 40px;
    color: #4FD1C5;
}

.story-image-placeholder.small .placeholder-icon {
    width: 30px;
    height: 30px;
}

.story-image-placeholder p {
    font-size: 0.9rem;
    color: #A0AEC0;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* Story Content with Photo Layout */
.story-content-with-photo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.story-text {
    flex: 1;
}

.story-side-photo {
    flex: 1;
    max-width: 300px;
    margin: 0 auto;
}

.before-after-photos {
    display: flex;
    gap: 1rem;
}

.photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.photo-container img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.photo-caption {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* Professional Framework Section */
.professional-framework {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.professional-framework h3 {
    color: #4FD1C5;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.framework-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    transition: all 0.3s ease;
}

.framework-item:hover {
    border-color: #4FD1C5;
    transform: translateY(-2px);
}

.framework-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: #4FD1C5;
}

.framework-item h4 {
    color: #E2E8F0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.framework-item p {
    color: #A0AEC0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Resume Page Specific Styles */
.resume-download {
    margin: 2rem 0;
    text-align: center;
}

.resume-download .button-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-grid .contact-item {
    background: rgba(26, 32, 44, 0.5);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.resume-list {
    list-style: none;
    margin-left: 0;
}

.resume-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(79, 209, 197, 0.1);
    color: #CBD5E0;
    line-height: 1.6;
}

.resume-list li:last-child {
    border-bottom: none;
}

.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.employment-item {
    background: rgba(26, 32, 44, 0.5);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
    transition: all 0.3s ease;
}

.employment-item:hover {
    border-color: #4FD1C5;
    transform: translateY(-2px);
}

.employment-item h3 {
    color: #4FD1C5;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.employment-item h4 {
    color: #E2E8F0;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 500;
}

.employment-period {
    color: #A0AEC0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.tech-proficiency {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.tech-category {
    background: rgba(26, 32, 44, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.tech-category h3 {
    color: #4FD1C5;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-highlight {
    background: rgba(26, 32, 44, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.project-highlight h3 {
    color: #4FD1C5;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.project-item {
    background: rgba(26, 32, 44, 0.5);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 209, 197, 0.1);
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-item h4 {
    color: #E2E8F0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-period,
.project-role {
    background: rgba(79, 209, 197, 0.1);
    color: #4FD1C5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-tech {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(79, 209, 197, 0.2);
}

.project-tech h4 {
    color: #A0AEC0;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Story CTA Styling */
.story-cta {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(237, 137, 54, 0.1));
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.story-cta h3 {
    color: #4FD1C5;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.story-cta p {
    color: #CBD5E0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments for Resume */
@media (max-width: 768px) {
    .skills-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-proficiency {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-highlight {
        padding: 1.5rem;
    }
    
    .project-item {
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .story-content-with-photo {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .story-side-photo {
        max-width: 200px;
    }

}

/* Writings (inside Featured Projects tabs) */
.writings-intro {
    font-size: 1.15rem;
    color: #A0AEC0;
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    text-align: center;
}

.writings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.writing-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(79, 209, 197, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.writing-card:hover {
    border-color: #4FD1C5;
    transform: translateY(-5px);
}

.writing-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ED8936;
    margin-bottom: 1rem;
}

.writing-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #E2E8F0;
}

.writing-card p {
    flex: 1;
    color: #A0AEC0;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.writing-card-cta {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4FD1C5;
}

.writing-card:hover .writing-card-cta {
    color: #ED8936;
}

/* Article pages (technical) */
.article-page {
    padding-bottom: 4rem;
    min-height: 100vh;
}

.article-hero {
    background: linear-gradient(145deg, rgba(79, 209, 197, 0.12) 0%, rgba(26, 32, 44, 0.95) 45%, rgba(237, 137, 54, 0.08) 100%);
    border-bottom: 1px solid rgba(79, 209, 197, 0.2);
    padding: 2rem 0 3.5rem;
}

.article-hero-inner {
    max-width: 900px;
}

.article-kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #4FD1C5;
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #F7FAFC;
    margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.1rem;
    color: #CBD5E0;
    line-height: 1.75;
    max-width: 720px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.article-tags span {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 209, 197, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: #E2E8F0;
}

.article-body {
    max-width: 1100px;
    padding-top: 3rem;
}

.article-section {
    margin-bottom: 3.5rem;
}

.article-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4FD1C5;
    margin-bottom: 0.5rem;
}

.article-h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 1.25rem;
    background: none;
    -webkit-text-fill-color: #E2E8F0;
}

.article-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F7FAFC;
    margin-bottom: 1rem;
}

.article-prose {
    color: #A0AEC0;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.article-prose--tight {
    margin-bottom: 0;
}

.article-split {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .article-split {
        grid-template-columns: 1.25fr 0.85fr;
        align-items: start;
    }
}

.article-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
}

.article-panel-accent {
    background: linear-gradient(160deg, rgba(79, 209, 197, 0.08), rgba(237, 137, 54, 0.04));
}

.article-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .article-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .article-stat-grid.article-stat-grid--cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.article-stat-grid.article-stat-grid--cols-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 520px) {
    .article-stat-grid.article-stat-grid--cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.article-stat {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
}

.article-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #718096;
}

.article-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #F7FAFC;
    margin: 0.35rem 0;
}

.article-stat-caption {
    font-size: 0.85rem;
    color: #A0AEC0;
    line-height: 1.4;
}

.article-steps-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.article-step-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.7rem;
    line-height: 1.3;
}

.article-step-emoji {
    font-size: 1.25rem;
}

.article-step-num {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: #4FD1C5;
}

.article-step-mini strong {
    font-size: 0.72rem;
    font-weight: 600;
    color: #E2E8F0;
}

.article-dimension-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-dimension-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: #CBD5E0;
}

.article-dim-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(79, 209, 197, 0.2);
    color: #4FD1C5;
    font-size: 0.75rem;
    font-weight: 700;
}

.article-flow-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-bottom: 2rem;
}

.article-flow-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
}

.article-flow-step {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4FD1C5;
    margin-bottom: 0.75rem;
}

.article-flow-card h3 {
    font-size: 1.2rem;
    color: #F7FAFC;
    margin-bottom: 0.5rem;
}

.article-flow-card p {
    font-size: 0.9rem;
    color: #A0AEC0;
    line-height: 1.55;
}

.article-summary-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(237, 137, 54, 0.25);
    border-radius: 16px;
    padding: 1.75rem;
}

.article-summary-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.article-summary-list li {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.92rem;
    color: #CBD5E0;
    line-height: 1.5;
}

.article-summary-list a,
.article-summary-list a:link,
.article-summary-list a:visited {
    color: #E2E8F0;
    text-decoration: none;
    border-bottom: 1px dashed rgba(79, 209, 197, 0.4);
}

.article-summary-list a:hover {
    color: #4FD1C5;
    border-bottom-color: rgba(79, 209, 197, 0.75);
}

.article-summary-list a:focus-visible {
    outline: 2px solid rgba(79, 209, 197, 0.65);
    outline-offset: 2px;
}

/* Topics / TOC rows in accent column: avoid stacked “double dark” + default link blue */
.article-panel-accent .article-summary-list li {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(79, 209, 197, 0.12);
}

.article-panel-accent .article-summary-list a,
.article-panel-accent .article-summary-list a:link,
.article-panel-accent .article-summary-list a:visited {
    color: #F7FAFC;
}

.article-panel-accent .article-summary-list a:hover {
    color: #81E6D9;
    border-bottom-color: rgba(129, 230, 217, 0.75);
}

.article-detail-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.article-detail-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(79, 209, 197, 0.15);
    border-radius: 14px;
    padding: 1.5rem;
}

.article-detail-num {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4FD1C5;
    margin-bottom: 0.75rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-detail-card h3 {
    font-size: 1.2rem;
    color: #F7FAFC;
    margin-bottom: 0.5rem;
}

.article-detail-card p {
    font-size: 0.9rem;
    color: #A0AEC0;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.article-detail-card ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: #CBD5E0;
}

.article-detail-card li {
    margin-bottom: 0.35rem;
}

.article-at-a-glance {
    background: rgba(79, 209, 197, 0.06);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.article-glance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-glance-cell {
    text-align: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-glance-cell strong {
    display: block;
    font-size: 1.15rem;
    color: #F7FAFC;
    margin-bottom: 0.35rem;
}

.article-glance-cell span {
    font-size: 0.88rem;
    color: #A0AEC0;
}

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

.article-code-block h3 {
    font-size: 1.06rem;
    color: #4FD1C5;
    margin-bottom: 0.75rem;
}

.article-code-block pre {
    margin: 0;
    padding: 1rem 1.15rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow-x: auto;
}

.article-code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #E2E8F0;
}

.article-ownership-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
}

.article-ownership-card {
    border-radius: 14px;
    padding: 1.5rem;
}

.article-ownership-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #F7FAFC;
}

.article-ownership-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #CBD5E0;
}

.article-ownership-emerald {
    border: 1px solid rgba(72, 187, 120, 0.35);
    background: rgba(72, 187, 120, 0.1);
}

.article-ownership-emerald h3 {
    color: #9AE6B4;
}

.article-ownership-emerald .article-detail-num {
    color: #9AE6B4;
}

.article-ownership-indigo {
    border: 1px solid rgba(102, 126, 234, 0.35);
    background: rgba(102, 126, 234, 0.12);
}

.article-ownership-indigo h3 {
    color: #B794F4;
}

.article-ownership-indigo .article-detail-num {
    color: #B794F4;
}

.article-ownership-teal {
    border: 1px solid rgba(79, 209, 197, 0.35);
    background: rgba(79, 209, 197, 0.1);
}

.article-ownership-teal h3 {
    color: #4FD1C5;
}

.article-ownership-teal .article-detail-num {
    color: #4FD1C5;
}

/* Mobile: base grid rules above override earlier @media blocks; collapse to one column
   so article panels do not overflow narrow viewports. */
@media (max-width: 768px) {
    .article-detail-grid {
        grid-template-columns: 1fr;
    }

    .article-flow-grid {
        grid-template-columns: 1fr;
    }

    .article-code-grid {
        grid-template-columns: 1fr;
    }

    .article-ownership-grid {
        grid-template-columns: 1fr;
    }

    .article-glance-row {
        grid-template-columns: 1fr;
    }

    .article-steps-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.article-author-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.article-cta-btn--primary {
    background: linear-gradient(90deg, #4FD1C5, #ED8936);
    color: #1a202c;
    border: none;
}

.article-cta-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 209, 197, 0.25);
}

.article-cta-btn--secondary {
    background: transparent;
    color: #4FD1C5;
    border: 2px solid #4FD1C5;
}

.article-cta-btn--secondary:hover {
    background: rgba(79, 209, 197, 0.12);
    color: #4FD1C5;
    transform: translateY(-2px);
}

.article-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(79, 209, 197, 0.15);
}

.article-back .secondary-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Article extras (long-form essays, diagrams) */
ul.article-prose-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: #A0AEC0;
    line-height: 1.75;
}

ul.article-prose-list li {
    margin-bottom: 0.5rem;
}

.article-callout {
    border-left: 3px solid #4FD1C5;
    padding: 1rem 1.25rem;
    background: rgba(79, 209, 197, 0.08);
    border-radius: 0 12px 12px 0;
    color: #E2E8F0;
    margin: 1rem 0;
    line-height: 1.75;
}

.article-callout strong {
    color: #F7FAFC;
}

.article-pullquote {
    margin: 0;
    padding: 1.5rem 1.75rem;
    font-size: 1.12rem;
    line-height: 1.75;
    color: #E2E8F0;
    font-style: italic;
    border-left: 4px solid #ED8936;
    background: rgba(237, 137, 54, 0.08);
    border-radius: 0 12px 12px 0;
}

.article-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(79, 209, 197, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.article-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.article-table-wrap th,
.article-table-wrap td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
    color: #CBD5E0;
    line-height: 1.6;
}

.article-table-wrap th {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4FD1C5;
    background: rgba(0, 0, 0, 0.2);
}

.article-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-pill {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 209, 197, 0.25);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: #CBD5E0;
}

.article-framework-steps {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .article-framework-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.article-framework-step {
    border: 1px solid rgba(79, 209, 197, 0.2);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
}

.article-framework-step-num {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(79, 209, 197, 0.2);
    color: #4FD1C5;
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.article-soft-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.article-soft-box h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #F7FAFC;
}

.article-soft-box p {
    margin: 0;
    color: #CBD5E0;
    line-height: 1.65;
    font-size: 0.95rem;
}

.article-diagram {
    padding: 1.5rem;
}

.article-diagram svg {
    display: block;
    width: 100%;
    height: auto;
}

.article-diagram-caption {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: #A0AEC0;
    line-height: 1.6;
}

.article-highlight {
    background: linear-gradient(120deg, rgba(79, 209, 197, 0.22), rgba(237, 137, 54, 0.12));
    padding: 0.08rem 0.35rem;
    border-radius: 6px;
}

.article-stat-grid--2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .article-stat-grid--2x2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.article-insight-strip {
    background: rgba(79, 209, 197, 0.08);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}

.article-insight-strip .article-prose {
    margin-bottom: 0;
}

/*
 * Article in-page TOC (e.g. Behavioral data piece): browsers often paint default
 * link blue for #fragment URLs; force on-theme colors so dark panels stay readable.
 */
a.article-toc-link,
a.article-toc-link:link,
a.article-toc-link:visited,
a.article-toc-link:any-link {
    color: #F7FAFC !important;
    -webkit-text-fill-color: #F7FAFC !important;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(79, 209, 197, 0.45) !important;
}

a.article-toc-link:hover {
    color: #81E6D9 !important;
    -webkit-text-fill-color: #81E6D9 !important;
    border-bottom-color: rgba(129, 230, 217, 0.9) !important;
}

a.article-toc-link:focus-visible {
    outline: 2px solid rgba(79, 209, 197, 0.85);
    outline-offset: 2px;
}

/* Stacked article grids inside one panel (e.g. long-form / private overviews) */
.article-panel > .article-flow-grid + .article-detail-grid,
.article-panel > .article-flow-grid + .article-ownership-grid {
    margin-top: 1.5rem;
}

.article-panel > .article-stat-grid + .article-detail-grid {
    margin-top: 2rem;
}

.article-panel > .article-stat-grid + .article-prose {
    margin-top: 1.25rem;
}

.article-panel > .article-prose + .article-detail-grid {
    margin-top: 1.5rem;
}

