/* ==========================================================================
   Stephan Heijl - V2 Design System
   A clean, professional design for AI/Data Science portfolio
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Background colors */
    --bg-primary: #fdfcfa;
    --bg-secondary: #f5f3ef;
    --bg-dark: #1a1816;

    /* Text colors */
    --text-primary: #1a1816;
    --text-secondary: #6b635a;
    --text-light: #9a928a;

    /* Accent colors */
    --accent-warm: #c9752c;
    --accent-gold: #d4a853;
    --accent-ember: #e85d04;
    --accent-blue: #2563eb;
    --accent-green: #4a7c59;

    /* Border colors */
    --border-subtle: rgba(26, 24, 22, 0.08);
    --border-medium: rgba(26, 24, 22, 0.12);

    /* Network animation colors (homepage) */
    --network-node: rgba(37, 99, 235, 0.6);
    --network-line: rgba(37, 99, 235, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
    font-family: 'Newsreader', serif;
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

h1 span,
h1 .emphasis {
    font-style: italic;
    color: var(--accent-warm);
}

h1 .emphasis {
    display: block;
}

h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

p strong {
    color: var(--text-primary);
    font-weight: 500;
}

a {
    color: var(--accent-warm);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-ember);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

nav.transparent {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    mix-blend-mode: multiply;
}

.logo {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-warm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 3rem 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-warm);
}

/* ==========================================================================
   Common Components
   ========================================================================== */

/* Section Label */
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-warm);
}

/* Role/Meta Tags */
.role-tag,
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}

.role-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-warm);
}

/* Meta Tag */
.meta-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    color: var(--accent-warm);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-dark);
    color: var(--bg-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-warm);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 117, 44, 0.25);
}

.btn-secondary {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.btn-secondary:hover {
    color: var(--accent-warm);
}

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-primary);
    color: var(--bg-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent-warm);
    gap: 1rem;
}

.back-link svg {
    transition: transform 0.3s ease;
}

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

.back-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

/* Page Header */
.page-header {
    padding: 10rem 8rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
}

.page-header p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Content Container */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8rem;
}

/* Content Section */
.content-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-subtle);
}

/* Content Grid (label + content) */
.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 6rem;
}

.section-content h2 {
    font-family: 'Newsreader', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
}

.hero-left {
    padding: 6rem 4rem 4rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-intro strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Value Props */
.value-props {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.value-prop {
    position: relative;
    padding-left: 1rem;
}

.value-prop::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 3px;
    height: calc(100% - 0.5rem);
    background: var(--accent-warm);
}

.value-prop-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.value-prop-text {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Profile Visual */
.profile-visual {
    position: relative;
    width: 420px;
    height: 520px;
}

.profile-frame {
    position: absolute;
    top: 40px;
    left: 40px;
    right: -40px;
    bottom: -40px;
    border: 1px solid var(--border-subtle);
}

.profile-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.profile-visual:hover .profile-image {
    filter: grayscale(0%) contrast(1);
}

.profile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 117, 44, 0.1) 0%, transparent 60%);
    mix-blend-mode: multiply;
}

/* Floating Card */
.floating-card {
    position: absolute;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.floating-card.bottom-left {
    bottom: 60px;
    left: -60px;
}

.floating-card-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.floating-card-value {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    color: var(--accent-warm);
}

/* ==========================================================================
   Subpage Hero (Professional/Education pages)
   ========================================================================== */
.hero.subpage-hero {
    min-height: auto;
    padding: 8rem 8rem 4rem;
    align-items: start;
}

.hero.subpage-hero .hero-content {
    max-width: 650px;
}

.hero.subpage-hero .company-card,
.hero.subpage-hero .info-card {
    align-self: start;
}

/* ==========================================================================
   Approach Section
   ========================================================================== */
.approach {
    padding: 10rem 8rem;
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
}

.approach-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.approach-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-top: 3rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border-subtle);
}

.approach-card {
    background: var(--bg-primary);
    padding: 3rem;
    position: relative;
    transition: all 0.4s ease;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-warm);
    transition: width 0.4s ease;
}

.approach-card:hover::before {
    width: 100%;
}

.approach-card:hover {
    background: var(--bg-secondary);
}

.approach-number {
    font-family: 'Newsreader', serif;
    font-size: 3rem;
    font-style: italic;
    color: var(--accent-gold);
    opacity: 0.4;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.approach-card h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.approach-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.expertise {
    padding: 10rem 8rem;
    position: relative;
    z-index: 1;
}

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

.expertise-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.expertise-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-warm);
}

.expertise-item h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.expertise-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 8rem;
    background: var(--bg-dark);
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-section .section-label {
    color: var(--accent-gold);
}

.cta-section h2 {
    color: var(--bg-primary);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(253, 252, 250, 0.6);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* ==========================================================================
   Section Navigation (Projects Page)
   ========================================================================== */
.section-nav {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    padding: 1.5rem 8rem;
    display: flex;
    gap: 3rem;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 50;
}

.section-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.section-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-warm);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section-nav a:hover,
.section-nav a.active {
    color: var(--text-primary);
}

.section-nav a.active::after {
    transform: scaleX(1);
}

/* ==========================================================================
   Projects List
   ========================================================================== */
#projects {
    background: var(--bg-secondary);
}

section {
    padding: 6rem 8rem;
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-medium);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    align-items: start;
}

.project-row:first-child {
    border-top: 1px solid var(--border-medium);
}

.project-row:hover {
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(201, 117, 44, 0.05), transparent);
}

.project-meta {
    padding-top: 0.25rem;
}

.project-type {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
}

.project-period {
    font-size: 0.85rem;
    color: var(--text-light);
}

.project-content h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.project-row:hover .project-content h3 {
    color: var(--accent-warm);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 0;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.project-arrow {
    padding-top: 0.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.project-row:hover .project-arrow {
    color: var(--accent-warm);
    transform: translateX(4px);
}

/* ==========================================================================
   Posts Grid
   ========================================================================== */
#posts {
    background: var(--bg-primary);
}

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

.post-card {
    display: block;
    padding: 2.5rem;
    background: var(--bg-secondary);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-warm);
    transition: height 0.3s ease;
}

.post-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

.post-card:hover::before {
    height: 100%;
}

.post-category {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

.post-card h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: var(--accent-warm);
}

.post-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.post-meta span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Featured Post */
.post-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    background: var(--bg-dark);
    color: var(--bg-primary);
}

.post-card.featured .post-category {
    color: var(--accent-gold);
}

.post-card.featured h3 {
    font-size: 1.75rem;
    color: var(--bg-primary);
}

.post-card.featured:hover h3 {
    color: var(--accent-gold);
}

.post-card.featured p {
    color: rgba(253, 252, 250, 0.7);
}

.post-card.featured .post-meta {
    border-color: rgba(253, 252, 250, 0.1);
}

.post-card.featured .post-meta span {
    color: rgba(253, 252, 250, 0.5);
}

.featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.3;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-gold);
}

/* ==========================================================================
   Education Timeline
   ========================================================================== */
#education {
    background: var(--bg-secondary);
}

.education-timeline {
    position: relative;
    padding-left: 3rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-medium);
}

.education-item {
    position: relative;
    padding: 2rem 0;
    padding-left: 3rem;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.education-item:hover {
    padding-left: 4rem;
}

.education-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 2.5rem;
    width: 9px;
    height: 9px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-warm);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.education-item:hover::before {
    background: var(--accent-warm);
    transform: translateX(-50%) scale(1.3);
}

/* Education Item Arrow */
.education-item::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 2.5rem;
    font-size: 1.25rem;
    color: var(--text-light);
    opacity: 0;
    transition: all 0.3s ease;
}

.education-item:hover::after {
    opacity: 1;
    right: -0.5rem;
    color: var(--accent-warm);
}

.education-type {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
}

.education-item h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.education-item:hover h3 {
    color: var(--accent-warm);
}

.education-institution {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.education-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Article Styles
   ========================================================================== */
.article-header {
    padding: 10rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-intro {
    font-family: 'Newsreader', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid var(--accent-warm);
    padding-left: 1.5rem;
}

/* Update Banner */
.update-banner {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.update-banner-inner {
    background: linear-gradient(135deg, rgba(201, 117, 44, 0.1), rgba(212, 168, 83, 0.1));
    border: 1px solid rgba(201, 117, 44, 0.2);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.update-icon {
    font-size: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-warm);
    font-weight: 600;
}

.update-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.update-text a {
    color: var(--accent-warm);
    font-weight: 500;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-content h2 {
    font-family: 'Newsreader', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin: 4rem 0 1.5rem;
    letter-spacing: -0.02em;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 3rem;
}

.article-content h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 2.5rem 0 1rem;
    color: var(--accent-warm);
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

.article-content a {
    color: var(--accent-warm);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--accent-warm);
}

/* Blockquote / Tweet */
.tweet-embed,
blockquote {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-warm);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.tweet-embed p,
blockquote p {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tweet-embed .attribution,
blockquote cite {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: normal;
}

.tweet-embed .attribution a {
    color: var(--accent-warm);
}

/* Article Figure */
.article-figure {
    margin: 3rem 0;
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Highlight Box */
.highlight-box {
    background: var(--bg-dark);
    color: var(--bg-primary);
    padding: 2.5rem;
    margin: 3rem 0;
}

.highlight-box p {
    color: rgba(253, 252, 250, 0.85);
    margin-bottom: 0;
}

.highlight-box strong {
    color: var(--accent-gold);
}

/* Info Aside */
.info-aside {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 3px solid var(--accent-gold);
}

.info-aside-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 0.75rem;
}

.info-aside p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

/* Related Posts */
.related-posts {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.related-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1.5rem;
}

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

.related-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.related-card h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.related-card:hover h3 {
    color: var(--accent-warm);
}

.related-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 81px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-warm);
    z-index: 99;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   Company/Info Card
   ========================================================================== */
.company-card,
.info-card {
    background: var(--bg-secondary);
    padding: 3rem;
    position: sticky;
    top: 120px;
}

.company-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.company-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.stat-value {
    font-family: 'Newsreader', serif;
    font-size: 2rem;
    color: var(--accent-warm);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.company-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.company-link:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
}

/* Info Card */
.info-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.info-item {
    margin-bottom: 1.5rem;
}

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

.info-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.info-value {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.info-value a {
    color: var(--accent-warm);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsibilities
   ========================================================================== */
.responsibilities {
    margin-top: 2rem;
}

.responsibility-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.responsibility-item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.responsibility-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-warm);
    border: 1px solid var(--border-subtle);
}

.responsibility-content h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.responsibility-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   Skills Grid
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
}

.skill-category-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}

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

.skill-tag,
.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.tech-list {
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

/* ==========================================================================
   Focus Cards
   ========================================================================== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.focus-card {
    background: var(--bg-secondary);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-warm);
    transition: height 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-4px);
}

.focus-card:hover::before {
    height: 100%;
}

.focus-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-warm);
}

.focus-card h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.focus-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Impact Box
   ========================================================================== */
.impact-box {
    background: var(--bg-dark);
    color: var(--bg-primary);
    padding: 3rem;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.impact-value {
    font-family: 'Newsreader', serif;
    font-size: 2.5rem;
    font-style: italic;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 0.85rem;
    color: rgba(253, 252, 250, 0.7);
}

/* ==========================================================================
   Publications
   ========================================================================== */
.publications-list {
    margin-top: 2rem;
}

.publication-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.publication-item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.publication-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
}

.publication-title {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publication-authors {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.publication-authors strong {
    color: var(--text-primary);
    font-weight: 500;
}

.publication-journal {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
}

.publication-citations {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
}

/* ==========================================================================
   Quote Block
   ========================================================================== */
.quote-block {
    border-left: 3px solid var(--accent-warm);
    padding-left: 2rem;
    margin: 2.5rem 0;
}

.quote-text {
    font-family: 'Newsreader', serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quote-attribution {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================================================
   Course List
   ========================================================================== */
.course-list {
    margin-top: 2rem;
}

.course-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.course-item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.course-number {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-gold);
    width: 40px;
}

.course-name {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
}

.course-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* ==========================================================================
   Skill Items
   ========================================================================== */
.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateX(8px);
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.skill-content h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.skill-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   Distinction Badge
   ========================================================================== */
.distinction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(201, 117, 44, 0.12), rgba(212, 168, 83, 0.12));
    border: 1px solid rgba(201, 117, 44, 0.25);
    padding: 0.6rem 1.25rem;
    margin-bottom: 2rem;
}

.badge-icon {
    color: var(--accent-gold);
    font-size: 1rem;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent-warm);
}

/* ==========================================================================
   Helix Highlight
   ========================================================================== */
.helix-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(201, 117, 44, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 2rem;
}

.helix-icon {
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-blue);
}

.helix-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.helix-text a {
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: none;
}

.helix-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Current Role Badge
   ========================================================================== */
.role-badge.current {
    color: var(--accent-green);
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.role-badge.current::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   Network Canvas (Homepage)
   ========================================================================== */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    touch-action: none;
    opacity: 0.5;
}

/* Allow clicks through canvas to content below */
.hero, .approach, .expertise, .cta-section, footer {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-hero {
    padding: 10rem 8rem 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-method:hover {
    border-color: var(--accent-warm);
    transform: translateX(8px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-warm);
}

.contact-details h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.contact-method:hover .contact-details h3 {
    color: var(--accent-warm);
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-family: 'Newsreader', serif;
    font-size: clamp(6rem, 15vw, 12rem);
    font-style: italic;
    color: var(--accent-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.error-page p {
    max-width: 400px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    /* Hero */
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-left {
        padding: 10rem 4rem 4rem;
    }

    .hero-right {
        display: none;
    }

    /* Page Header */
    .page-header {
        grid-template-columns: 1fr;
        padding: 8rem 4rem 3rem;
    }

    /* Sections */
    .approach, .expertise {
        padding: 6rem 4rem;
    }

    section {
        padding: 4rem;
    }

    .approach-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .approach-text {
        padding-top: 0;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    /* Content */
    .content {
        padding: 0 4rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Section Nav */
    .section-nav {
        padding: 1rem 4rem;
        gap: 2rem;
        overflow-x: auto;
    }

    /* Project Row */
    .project-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-arrow {
        display: none;
    }

    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .featured-visual {
        display: none;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Focus Grid */
    .focus-grid {
        grid-template-columns: 1fr;
    }

    /* Impact Box */
    .impact-box {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Company Card */
    .company-card,
    .info-card {
        position: static;
    }

    /* Navigation & Footer */
    nav {
        padding: 1.5rem 2rem;
    }

    footer {
        padding: 2rem 4rem;
        flex-direction: column;
        gap: 1rem;
    }

    /* Contact */
    .contact-hero {
        padding: 8rem 4rem 4rem;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero-left {
        padding: 7rem 2rem 3rem;
    }

    /* Value Props */
    .value-props {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    nav {
        padding: 1rem 2rem;
    }

    /* Page Header */
    .page-header {
        padding: 7rem 2rem 2rem;
    }

    /* Sections */
    section {
        padding: 3rem 2rem;
    }

    .section-nav {
        padding: 1rem 2rem;
    }

    /* Content */
    .content {
        padding: 0 2rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 4rem 2rem;
    }

    /* Footer */
    footer {
        padding: 2rem;
    }

    /* Education Timeline */
    .education-timeline {
        padding-left: 2rem;
    }

    .education-item {
        padding-left: 2rem;
    }

    /* Related Grid */
    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Article Header */
    .article-header {
        padding-top: 7rem;
    }

    /* Company Stats */
    .company-stats {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-hero {
        padding: 7rem 2rem 3rem;
    }
}

/* ==========================================================================
   Prism.js Code Highlighting Overrides
   ========================================================================== */
pre[class*="language-"] {
    background: var(--bg-dark);
    border-radius: 0;
    margin: 2rem 0;
    padding: 1.5rem;
}

code[class*="language-"] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

:not(pre) > code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    color: var(--accent-warm);
}
