/* ==============================================================
   TRIDEEP DEY — CLEAN MINIMALIST DARK THEME
   Inspired by Linear, Vercel, and Apple Dark Aesthetics
   Simple, grounded language & crystal-clear readability
   ============================================================== */

:root {
    /* ── Dark Palette Foundations ── */
    --bg-page: #09090b;
    --bg-surface: #121215;
    --bg-surface-glass: rgba(18, 18, 21, 0.75);
    --bg-subtle: #18181c;
    --bg-card-hover: #16161a;
    
    /* ── Borders & Elevation ── */
    --border-hairline: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.3);
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
    
    /* ── High-Contrast Typography ── */
    --text-primary: #f4f4f5;       /* Crisp off-white */
    --text-secondary: #a1a1aa;     /* Neutral readability */
    --text-muted: #71717a;         /* Captions & metadata */
    --text-faint: #52525b;         /* Subtle markers */
    
    /* ── Accents ── */
    --accent-live: #10b981;
    --accent-blue: #3b82f6;
    
    /* ── Fonts ── */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-page);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* Subtle background dust */
.dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* ==============================================================
   CLEAN LANDING GATE
   ============================================================== */

.falter-landing {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: radial-gradient(circle at center, #111116 0%, #08080a 90%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth), visibility 0.8s;
    overflow: hidden;
    padding: 30px;
}

.falter-landing.unlocked {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    pointer-events: none;
}

/* HUD Corners */
.landing-hud {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.landing-hud.top-left { top: 35px; left: 45px; }
.landing-hud.top-right { top: 35px; right: 45px; align-items: flex-end; }
.landing-hud.bottom-left { bottom: 35px; left: 45px; }
.landing-hud.bottom-right { bottom: 35px; right: 45px; align-items: flex-end; }

.hud-mono {
    color: var(--text-primary);
    margin-bottom: 2px;
    font-weight: 600;
}

.hud-sub {
    color: var(--text-faint);
    font-size: 9px;
}

/* Audio Toggle */
.sound-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.25s;
}

.sound-toggle:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.sound-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.sound-bars .bar {
    width: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: height 0.3s;
}

.bar-1 { height: 4px; }
.bar-2 { height: 8px; }
.bar-3 { height: 6px; }

.sound-toggle.playing .sound-bars .bar {
    background: #ffffff;
    animation: soundWave 0.8s infinite ease-in-out alternate;
}

@keyframes soundWave {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* Landing Center Content */
.landing-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    padding-top: 10px;
}

.landing-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.landing-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.landing-byline {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 26px;
    line-height: 1.6;
}

/* Interactive Drag / Pull Node */
.interactive-node-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 150px;
    width: 260px;
    margin-bottom: 24px;
}

.node-track {
    position: absolute;
    top: 25px;
    height: 85px;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.track-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #ffffff;
}

.node-anchor {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Draggable Origin Node */
.origin-node {
    top: 0;
    z-index: 5;
    touch-action: none;
    transition: transform 0.1s, box-shadow 0.25s;
}

.origin-node:hover .node-ring {
    border-color: #ffffff;
    transform: scale(1.08);
}

.node-ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(18, 18, 21, 0.85);
    border-radius: 50%;
    transition: all 0.25s;
}

.node-core {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

/* Target Node */
.target-node {
    bottom: 20px;
    z-index: 2;
}

.target-dashed-ring {
    position: absolute;
    inset: 0;
    border: 1.5px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.target-center-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.node-instruction {
    position: absolute;
    bottom: -8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.inst-line {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Quicklinks on landing page */
.landing-quicklinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 700px;
}

.quicklink-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    transition: all 0.25s;
}

.quicklink-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.ql-num {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.landing-enter-btn {
    background: #ffffff;
    border: none;
    color: #09090b;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s;
}

.landing-enter-btn:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* ==============================================================
   MAIN EXPERIENCE NAVIGATION & HUD
   ============================================================== */

.main-experience {
    position: relative;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* Top Fixed Navigation */
.editorial-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-hairline);
    transition: transform 0.3s;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.brand-glyph {
    color: #ffffff;
    font-size: 12px;
}

/* Hyperlinked Nav items */
.nav-hyperlinks {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    text-decoration: none;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: #ffffff;
    transition: width 0.25s var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-cta {
    background: #ffffff;
    color: #09090b;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s;
}

.nav-cta:hover {
    background: #e4e4e7;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.return-abyss-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
}

.return-abyss-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    transition: 0.3s;
}

/* ==============================================================
   RIGHT SIDE SECTION TRACKER
   ============================================================== */

.side-index {
    position: fixed;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.side-index-line {
    position: absolute;
    right: 4px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-hairline);
    z-index: -1;
}

.side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-muted);
    transition: all 0.25s;
}

.side-tag {
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s;
    pointer-events: none;
}

.side-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: var(--bg-page);
    transition: all 0.25s;
}

.side-item:hover .side-tag,
.side-item.active .side-tag {
    opacity: 1;
    transform: translateX(0);
}

.side-item:hover .side-dot,
.side-item.active .side-dot {
    border-color: #ffffff;
    background: #ffffff;
}

.side-item.active .side-tag {
    color: #ffffff;
    font-weight: 500;
}

/* ==============================================================
   CORE SECTION LAYOUTS & PANELS
   ============================================================== */

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.core-section {
    padding: 110px 0;
    position: relative;
    border-bottom: 1px solid var(--border-hairline);
}

/* Section Meta Headers */
.section-meta-header {
    margin-bottom: 50px;
}

.section-ordinal {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.section-monumental-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Clean Dark Glass Panels */
.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    position: relative;
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s var(--transition-smooth), border-color 0.3s;
}

.glass-panel:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.glass-panel-sm {
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.25s;
}

/* ==============================================================
   SECTION 00: HERO
   ============================================================== */

.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.editorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent-live);
    border-radius: 50%;
}

.hero-display-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-manifesto {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 45px;
}

/* Key Metrics Cards */
.stats-glass-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 45px;
}

.stat-card {
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
}

.stat-metric {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-jump-bar {
    display: flex;
    gap: 14px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s;
}

.pill-btn.primary {
    background: #ffffff;
    color: #09090b;
}

.pill-btn.primary:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
}

.pill-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: #ffffff;
}

.pill-btn.secondary:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==============================================================
   SECTION 01: WHERE I WORKED
   ============================================================== */

.case-studies-stream {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.case-card {
    padding: 38px;
}

.case-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.entity-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.company-brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-hairline);
    padding: 3px;
    object-fit: contain;
    flex-shrink: 0;
}

.entity-name {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-pill.active-glow {
    font-size: 11px;
    color: var(--accent-live);
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    padding: 3px 10px;
    border-radius: 12px;
}

.timeline-stamp {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.case-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 24px;
}

.case-dichotomy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-hairline);
}

.block-flag {
    display: block;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.block-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.block-body strong {
    color: #ffffff;
    font-weight: 600;
}

.editorial-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}

.stack-tag:hover {
    border-color: var(--border-medium);
    color: #ffffff;
}

.tag-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==============================================================
   SECTION 02: PIPELINE
   ============================================================== */

.pipeline-board {
    padding: 45px;
}

.pipeline-dag-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
    position: relative;
}

.dag-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 220px;
}

.column-title {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.dag-node {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.dag-node:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.node-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hairline);
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.node-meta {
    display: flex;
    flex-direction: column;
}

.node-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.node-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dag-conduit {
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 8px;
}

.conduit-line {
    width: 100%;
    height: 1px;
    background: var(--border-medium);
    position: relative;
    margin-bottom: 6px;
}

.conduit-pulse {
    position: absolute;
    top: -2px;
    left: 0;
    width: 10px;
    height: 5px;
    background: #ffffff;
    border-radius: 2px;
    animation: flowPulse 2s infinite linear;
}

@keyframes flowPulse {
    0% { left: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.conduit-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.3;
}

.pipeline-anomalies-solved {
    border-top: 1px solid var(--border-hairline);
    padding-top: 30px;
}

.anomalies-header {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 16px;
}

.anomalies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.anomaly-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 16px 20px;
}

.anom-code {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.anom-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==============================================================
   SECTION 03: HOW I WORK
   ============================================================== */

.principles-triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.principle-card {
    padding: 35px 28px;
}

.principle-index {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}

.principle-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.principle-body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==============================================================
   SECTION 04: PROJECTS
   ============================================================== */

.projects-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.proj-editorial-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    perspective: 1200px;
}

.proj-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 180px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow:
        0 24px 48px rgba(0,0,0,0.55),
        0 2px 6px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s;
    will-change: transform;
}

.proj-thumb-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 46%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.22), rgba(255,255,255,0));
    pointer-events: none;
    z-index: 2;
    border-radius: 14px 14px 0 0;
}

.proj-thumb-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: radial-gradient(120% 80% at 50% 120%, rgba(90,140,255,0.18), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.proj-thumb-img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #050812;
    padding: 6px;
    border-radius: 10px;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
    transform: translateZ(18px);
}

.proj-editorial-card:hover .proj-thumb-box {
    transform: rotateY(-6deg) rotateX(6deg) translateZ(0) translateY(-4px);
    box-shadow:
        0 34px 64px rgba(0,0,0,0.65),
        0 4px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.proj-editorial-card:hover .proj-thumb-img {
    transform: translateZ(40px) scale(1.04);
}

.proj-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.proj-dataset {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.proj-metric-highlight {
    font-size: 11px;
    color: #ffffff;
    border: 1px solid var(--border-medium);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.proj-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.proj-narrative {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.proj-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    margin-top: 16px;
    transition: all 0.2s;
}

.proj-link-btn:hover {
    color: var(--text-muted);
    transform: translateX(3px);
}

/* ==============================================================
   SECTION 05: ABOUT ME
   ============================================================== */

.about-editorial-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.about-editorial-prose {
    padding: 40px;
}

.prose-lead {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-editorial-prose p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.arsenal-block {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border-hairline);
}

.arsenal-heading {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 12px;
}

.arsenal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.arsenal-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.arsenal-pill:hover {
    border-color: var(--border-medium);
    color: #ffffff;
}

.pill-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.quick-facts-box {
    padding: 35px;
}

.facts-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 18px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-hairline);
    font-size: 12px;
}

.fact-key { color: var(--text-muted); }
.fact-val { color: #ffffff; font-weight: 500; }
.fact-val.status-green { color: var(--accent-live); }

/* ==============================================================
   SECTION 06: CERTIFICATIONS
   ============================================================== */

.certs-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cert-item-glass {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.cert-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 500;
}

.cert-provider-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hairline);
    padding: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.cert-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.cert-verify-link {
    font-size: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-medium);
    display: inline-block;
    padding-bottom: 2px;
    width: fit-content;
    transition: all 0.2s;
}

.cert-verify-link:hover {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

/* ==============================================================
   SECTION 07: CONTACT
   ============================================================== */

.contact-editorial-panel {
    padding: 50px;
}

.contact-content-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 45px;
    align-items: center;
}

.contact-monumental-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 14px;
}

.contact-narrative {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
}

.transmission-hyperlinks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trans-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-hairline);
    background: var(--bg-subtle);
    width: 100%;
    max-width: 360px;
    transition: all 0.25s;
}

.trans-item:hover {
    border-color: var(--border-medium);
    color: #ffffff;
    transform: translateX(4px);
}

.trans-item svg {
    color: #ffffff;
}

.simple-contact-box {
    padding: 30px;
}

/* Footer */
.editorial-footer {
    padding: 35px 0;
    border-top: 1px solid var(--border-hairline);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.back-to-top:hover {
    color: #ffffff;
}

/* ==============================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================== */

@media (max-width: 1100px) {
    .stats-glass-matrix { grid-template-columns: repeat(2, 1fr); }
    .principles-triptych { grid-template-columns: 1fr; }
    .certs-editorial-grid { grid-template-columns: repeat(2, 1fr); }
    .about-editorial-layout { grid-template-columns: 1fr; }
    .contact-content-split { grid-template-columns: 1fr; }
    .pipeline-dag-container { flex-direction: column; gap: 25px; }
    .dag-conduit { transform: rotate(90deg); margin: 12px 0; }
    .dag-column { max-width: 100%; width: 100%; }
}

@media (max-width: 850px) {
    .content-wrapper { padding: 0 20px; }
    .side-index { display: none; }
    .nav-hyperlinks { display: none; }
    .nav-hyperlinks.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: #09090b;
        padding: 25px;
        border-bottom: 1px solid var(--border-hairline);
        box-shadow: var(--shadow-card);
    }
    .mobile-toggle { display: flex; }
    .case-dichotomy { grid-template-columns: 1fr; }
    .projects-editorial-grid { grid-template-columns: 1fr; }
    .certs-editorial-grid { grid-template-columns: 1fr; }
    .anomalies-grid { grid-template-columns: 1fr; }
    .landing-hud.bottom-left, .landing-hud.bottom-right { display: none; }
    .landing-headline { font-size: 1.8rem; }
}
