/* Base & Reset */
:root {
    --bg-color: #111111;
    --text-color: #e8e8e8;
    --accent-color: #81A6C6;
    --secondary-accent: #AACDDC;
    --dot-color: #F3E3D0;
    --line-color: #D2C4B4;
    --accent-rgb: 129, 166, 198;
    --secondary-rgb: 170, 205, 220;
    --dot-rgb: 243, 227, 208;
    --line-rgb: 210, 196, 180;
    --border-color: rgba(255, 255, 255, 0.08);

    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 3D WebGL Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    contain: strict;
}

a {
    color: var(--secondary-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dashed transparent;
}

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

/* Typography */
h1,
h2,
h3,
.nav-link,
.article-meta {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Header */
.site-header {
    padding: var(--spacing-md);
    padding-left: max(var(--spacing-md), env(safe-area-inset-left));
    padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.site-header.header-compact {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-header.header-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.lang-switch {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
    border: 1px solid var(--border-color);
    background: rgba(22, 22, 22, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-option {
    position: relative;
    border: none;
    background: transparent;
    font-size: 1rem;
    line-height: 1;
    padding: 0.35rem 0.42rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, filter 0.2s ease;
    filter: grayscale(0.2) saturate(0.9);
}

.lang-option:hover {
    transform: translateY(-1px);
    filter: none;
}

.lang-option.active {
    background: rgba(var(--accent-rgb), 0.14);
    filter: none;
}

.lang-option.suggested::after {
    content: '';
    position: absolute;
    top: 0.38rem;
    right: 0.32rem;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.82);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.05);
}

nav {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    grid-column: 2;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.05em;
    border-bottom: none;
    position: relative;
}

.nav-link::before,
.nav-link::after {
    font-family: var(--font-mono);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    color: var(--accent-color);
}

.nav-link::before {
    content: '[';
    margin-right: 4px;
    transform: translateX(-4px);
    display: inline-block;
}

.nav-link::after {
    content: ']';
    margin-left: 4px;
    transform: translateX(4px);
    display: inline-block;
}

.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 0.6;
    transform: translateX(0);
}

.nav-link:hover {
    color: var(--accent-color);
    border-bottom: none;
}

/* Main Layout */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    padding-left: max(var(--spacing-md), env(safe-area-inset-left));
    padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    position: relative;
}

.section {
    margin-bottom: var(--spacing-xl);
    scroll-margin-top: 90px;
    position: relative;
}

.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-lg);
    color: #777;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    margin-top: 6px;
    transition: width 0.6s ease 0.2s;
}

.section-title.is-visible::after {
    width: 100%;
}

.comment-slash {
    color: #444;
}

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* Floating tech symbols — full viewport */
.hero-symbols {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-sym {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: var(--size, 2rem);
    opacity: 0;
    transform: scale(0) rotate(var(--rot, 0deg));
    animation:
        sym-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.8s + var(--delay, 0s)) forwards,
        sym-float var(--dur, 20s) ease-in-out calc(1.4s + var(--delay, 0s)) infinite alternate;
    user-select: none;
    line-height: 1;
    filter: saturate(1.15) brightness(1.04);
    will-change: transform;
}

@keyframes sym-entrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(calc(var(--rot, 0deg) + 180deg));
    }
    60% {
        opacity: 0.55;
        transform: scale(1.15) rotate(calc(var(--rot, 0deg) - 10deg));
    }
    100% {
        opacity: 0.3;
        transform: scale(1) rotate(var(--rot, 0deg));
    }
}

.hero-symbols.symbols-hidden {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Section Symbols (e.g., for Work section) */
.section-symbols {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.section-sym {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: var(--size, 2rem);
    opacity: 1; /* Full opacity per request */
    transform: rotate(var(--rot, 0deg));
    animation: sym-float var(--dur, 20s) ease-in-out calc(var(--delay, 0s)) infinite alternate;
    user-select: none;
    line-height: 1;
    filter: saturate(1.4) brightness(1.1);
}

@keyframes sym-float {
    0% { transform: rotate(var(--rot, 0deg)) translate(0, 0); }
    33% { transform: rotate(var(--rot, 0deg)) translate(8px, -12px); }
    66% { transform: rotate(var(--rot, 0deg)) translate(-6px, 8px); }
    100% { transform: rotate(var(--rot, 0deg)) translate(4px, -6px); }
}



.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 80px rgba(var(--accent-rgb), 0.14);
}

.hero-technical-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.hero-title::before {
    color: #ff4444;
    animation: glitch-1 8s infinite;
}

.hero-title::after {
    color: #4444ff;
    animation: glitch-2 8s infinite;
}

@keyframes glitch-1 {
    0%, 85%, 90%, 100% { opacity: 0; transform: none; clip-path: none; }
    86% { opacity: 0.8; transform: translateX(-4px); clip-path: inset(20% 0 40% 0); }
    88% { opacity: 0.8; transform: translateX(4px); clip-path: inset(60% 0 10% 0); }
}

@keyframes glitch-2 {
    0%, 85%, 90%, 100% { opacity: 0; transform: none; clip-path: none; }
    86.5% { opacity: 0.8; transform: translateX(4px); clip-path: inset(40% 0 20% 0); }
    87.5% { opacity: 0.8; transform: translateX(-4px); clip-path: inset(10% 0 60% 0); }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    vertical-align: text-bottom;
    background-color: var(--accent-color);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: #a7a7a7;
    max-width: 760px;
    font-family: var(--font-sans);
    font-weight: 300;
    opacity: 0;
    z-index: 1;
    position: relative;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-subtitle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.hero-proof span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a8a8a;
    border: 1px solid var(--border-color);
    background:
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent 60%),
        rgba(255, 255, 255, 0.045);
    padding: 0.4rem 0.6rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    --glow-x: 50%;
    --glow-y: 50%;
}

.hero-proof span::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 120px at var(--glow-x) var(--glow-y),
            rgba(var(--dot-rgb), 0.06),
            rgba(var(--secondary-rgb), 0.05) 32%,
            transparent 68%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: -1;
}

.hero-proof span::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.hero-proof span.is-lit {
    color: #d7d2ca;
    border-color: rgba(var(--accent-rgb), 0.14);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.025);
    transform: translateY(-1px);
}

.hero-proof span.is-lit::before,
.hero-proof span.is-lit::after {
    opacity: 1;
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    counter-reset: articles;
}

.article-card {
    padding: var(--spacing-md);
    padding-left: calc(var(--spacing-md) + 2.5rem);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.3s ease;
    position: relative;
    counter-increment: articles;
    background: radial-gradient(circle 200px at var(--mouse-x, -200px) var(--mouse-y, -200px), rgba(var(--accent-rgb), 0.022), transparent);
}

.article-card::before {
    content: counter(articles, decimal-leading-zero);
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.05em;
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.article-card:hover {
    transform: translateX(8px);
    border-bottom-color: transparent;
}

.article-card:hover::after {
    width: 100%;
}

.article-meta {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.8rem);
    margin-bottom: 0.5rem;
}

.article-excerpt {
    font-size: 1rem;
    color: #ccc;
}

.view-all-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #777;
    border-bottom: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--accent-color);
    border-bottom: none;
}

/* Creative Ventures Grid */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.venture-card {
    border: 1px solid var(--border-color);
    background: rgba(24, 24, 24, 0.62);
    border-radius: 4px;
    padding: var(--spacing-md);
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --venture-glow-x: 50%;
    --venture-glow-y: 50%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.venture-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 220px at var(--venture-glow-x) var(--venture-glow-y),
            rgba(var(--dot-rgb), 0.045),
            rgba(var(--secondary-rgb), 0.035) 34%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: -1;
}

.venture-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.venture-card.is-lit {
    border-color: rgba(var(--accent-rgb), 0.13);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.025);
}

.venture-card.is-lit::after {
    opacity: 1;
}

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

.venture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.venture-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.venture-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

.status-active {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.status-wip {
    color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.status-shipped {
    color: var(--secondary-accent);
    background: rgba(var(--secondary-rgb), 0.12);
    border: 1px solid rgba(var(--secondary-rgb), 0.28);
}

.venture-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.venture-title a {
    color: var(--text-color);
    border-bottom: none;
    transition: color 0.2s ease;
}

.venture-title a:hover {
    color: var(--accent-color);
    border-bottom: none;
}

.venture-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.venture-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.venture-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: #555;
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.venture-card:hover .venture-tag {
    color: #777;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Venture Embed (Behance, etc.) */
.venture-card--embed {
    padding-bottom: 0;
    overflow: hidden;
}

.venture-card--embed .venture-header {
    padding: 0 0 0.75rem 0;
}

.venture-embed {
    aspect-ratio: 404 / 316;
    width: calc(100% + var(--spacing-md) * 2);
    margin: 0 calc(var(--spacing-md) * -1) 0;
}

.venture-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Highlight venture card */
.venture-card--highlight {
    grid-column: 1 / -1;
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.2);
}

/* Accent bar starts at 2.5rem, expands to full on hover — signals it's special */
.venture-card--highlight::before {
    width: 2.5rem;
    opacity: 0.5;
    transition: width 0.5s ease, opacity 0.3s ease;
}

.venture-card--highlight:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    transform: translateY(-3px);
}

.venture-card--highlight:hover::before {
    width: 100%;
    opacity: 1;
}

.venture-card--highlight .venture-title {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

.venture-card--highlight .venture-desc {
    color: #aaa;
    font-size: 0.95rem;
    max-width: 560px;
}

.venture-card--highlight .venture-tag {
    color: rgba(var(--accent-rgb), 0.7);
    border-color: rgba(var(--accent-rgb), 0.22);
}

.venture-card--highlight:hover .venture-tag {
    color: rgba(var(--secondary-rgb), 0.95);
    border-color: rgba(var(--secondary-rgb), 0.3);
}

.venture-cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    opacity: 0.7;
    border-bottom: 1px dashed rgba(var(--accent-rgb), 0.35);
    padding-bottom: 1px;
    margin-top: 0.75rem;
    transition: opacity 0.2s ease, border-bottom-color 0.2s ease;
}

.venture-cta:hover {
    opacity: 1;
    border-bottom-color: var(--accent-color);
    border-bottom-style: solid;
}


/* About Section */
.bio-section {
    max-width: 700px;
    scroll-margin-top: 90px;
}

.bio-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: #ccc;
}

/* Value Section */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    border: 1px solid var(--border-color);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent 45%),
        rgba(22, 22, 22, 0.68);
    padding: var(--spacing-md);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2.5rem;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.8;
}

.value-card-featured {
    transform: translateY(-0.6rem);
    background:
        linear-gradient(180deg, rgba(var(--secondary-rgb), 0.12), transparent 50%),
        rgba(22, 22, 22, 0.72);
    border-color: rgba(var(--secondary-rgb), 0.24);
}

.value-card-featured::before {
    background: var(--secondary-accent);
}

.value-card-editors {
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), transparent 48%),
        rgba(22, 22, 22, 0.68);
    border-color: rgba(var(--accent-rgb), 0.24);
}

.value-card-editors::before {
    background: var(--accent-color);
}

.value-card-editors .value-label {
    color: rgba(var(--accent-rgb), 0.92);
}

.value-card-brands {
    background:
        linear-gradient(180deg, rgba(var(--secondary-rgb), 0.14), transparent 48%),
        rgba(22, 22, 22, 0.72);
    border-color: rgba(var(--secondary-rgb), 0.24);
}

.value-card-brands::before {
    background: var(--secondary-accent);
}

.value-card-brands .value-label {
    color: rgba(var(--secondary-rgb), 0.92);
}

.value-card-readers {
    background:
        linear-gradient(180deg, rgba(46, 204, 113, 0.1), transparent 48%),
        rgba(22, 22, 22, 0.68);
    border-color: rgba(46, 204, 113, 0.18);
}

.value-card-readers::before {
    background: #2ecc71;
}

.value-card-readers .value-label {
    color: rgba(102, 227, 148, 0.82);
}

.value-label {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #777;
}

.value-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.value-text {
    color: #9b9b9b;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    text-align: left;
    padding: var(--spacing-lg);
    border-top: none;
    position: relative;
}


.contact-text {
    margin-bottom: var(--spacing-md);
    color: #999;
}

.email-link {
    font-size: 2rem;
    font-family: var(--font-mono);
    display: block;
    margin-bottom: var(--spacing-lg);
    word-break: break-all;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.email-link:hover {
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.24);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    position: relative;
    border-bottom: none;
    transition: color 0.2s ease, transform 0.3s ease;
}

.social-links a::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent-color);
    width: 0;
    transition: width 0.3s ease;
}

.social-links a:hover {
    border-bottom: none;
}

.social-links a:hover::after {
    width: 100%;
}

.site-footer {
    text-align: center;
    padding: var(--spacing-md);
    font-size: 0.8rem;
    color: #555;
    margin-top: var(--spacing-xl);
    font-family: var(--font-mono);
}

/* Section Dividers — circuit trace style */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: var(--spacing-sm) 0;
    padding: 0.5rem 0;
}

.divider-line {
    height: 1px;
    width: 0;
    max-width: 80px;
    background: repeating-linear-gradient(
        90deg,
        rgba(var(--line-rgb), 0.26) 0px,
        rgba(var(--line-rgb), 0.26) 4px,
        transparent 4px,
        transparent 8px
    );
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

/* Scan pulse traveling along dashed line */
.divider-line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -40px;
    width: 40px;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(var(--line-rgb), 0.72), transparent);
    opacity: 0;
    transition: opacity 0.4s ease 1s;
}

.section-divider.is-visible .divider-line:first-child::after {
    opacity: 1;
    animation: scan-right 4s ease-in-out 1.2s infinite;
}

.section-divider.is-visible .divider-line:last-child::after {
    opacity: 1;
    animation: scan-left 4s ease-in-out 1.2s infinite;
}

@keyframes scan-right {
    0%, 100% { left: -40px; }
    50% { left: calc(100% + 10px); }
}

@keyframes scan-left {
    0%, 100% { left: calc(100% + 10px); }
    50% { left: -40px; }
}

/* Center node — diamond junction */
.divider-dot {
    width: 7px;
    height: 7px;
    border: 1px solid var(--dot-color);
    transform: rotate(45deg) scale(0);
    margin: 0 16px;
    opacity: 0;
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
    flex-shrink: 0;
    position: relative;
}

.divider-dot::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--dot-color);
    animation: node-pulse 3s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.7; }
}

.section-divider.is-visible .divider-line {
    width: 80px;
}

.section-divider.is-visible .divider-dot {
    opacity: 0.7;
    transform: rotate(45deg) scale(1);
}

/* Scroll hint pinned to hero bottom */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: hint-appear 0.6s ease forwards 3s;
}

@keyframes hint-appear {
    to { opacity: 1; }
}

.hero-scroll-hint .divider-lines {
    display: flex;
    align-items: center;
}

.hero-scroll-hint .divider-line {
    width: 60px;
    transition: none;
}

.hero-scroll-hint .divider-dot {
    opacity: 0.7;
    transform: rotate(45deg) scale(1);
    transition: none;
}

.scroll-arrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-color);
    opacity: 0.35;
    animation: arrow-float 2.5s ease-in-out infinite;
}

.scroll-arrow::before {
    content: '▼';
}

@keyframes arrow-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: calc(var(--stagger-index, 0) * 120ms);
}

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

/* Touch devices — disable transforms that cause scroll jank */
@media (hover: none) {
    .article-card:hover {
        transform: none;
    }

    .venture-card:hover {
        transform: none;
    }

    .article-card {
        background: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .hero-subtitle {
        opacity: 1;
        transform: none;
    }

    .hero::before,
    .hero-symbols {
        display: none;
    }

    .ticker-content {
        animation: none;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    nav {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    .lang-option {
        font-size: 0.92rem;
        padding: 0.32rem 0.38rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

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

    .value-card-featured {
        transform: none;
    }

    .email-link {
        font-size: 1.4rem;
    }

    .contact-section {
        padding: var(--spacing-md);
    }

    .social-links {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1.25rem;
    }

    main {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .article-title {
        font-size: 1.2rem;
    }

    .article-card {
        padding-left: calc(1.25rem + 2rem);
    }

    .article-card::before {
        left: 1.25rem;
    }

    .email-link {
        font-size: 1.1rem;
    }

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

    .hero-proof span {
        width: 100%;
    }
}

/* Headline Ticker */
.ticker-wrap {
    display: flex;
    overflow: hidden;
    background: rgba(22, 22, 22, 0.76);
    border: 1px solid var(--border-color);
    height: 32px;
    align-items: center;
    margin-top: 100px;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ticker-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #111;
    background: #e74c3c;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-track {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.ticker-item {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #999;
    padding: 0 1rem;
    letter-spacing: 0.02em;
}

.ticker-sep {
    color: #333;
    font-size: 0.5rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-wrap:hover .ticker-content {
    animation-play-state: paused;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: var(--spacing-md);
    padding: 0;
    border: 1px solid var(--border-color);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        rgba(16, 16, 16, 0.68);
    overflow: hidden;
    position: relative;
    --stats-glow-x: 50%;
    --stats-glow-y: 50%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 220px at var(--stats-glow-x) var(--stats-glow-y),
            rgba(var(--dot-rgb), 0.045),
            rgba(var(--secondary-rgb), 0.035) 34%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.stats-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.14;
    pointer-events: none;
}

.stats-bar.is-lit {
    border-color: rgba(var(--accent-rgb), 0.13);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.025);
}

.stats-bar.is-lit::before {
    opacity: 1;
}

/* Homepage specific stats styling */
.home-stats-section {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: flex-start;
}

.home-stats-bar {
    margin-top: 0;
    padding: 0;
    background: transparent;
    width: 100%;
}

.stat {
    position: relative;
    display: grid;
    gap: 0.45rem;
    padding: 1.25rem 1.1rem;
    min-height: 132px;
    place-items: center;
    text-align: center;
    z-index: 1;
}

.stat + .stat {
    border-left: 1px solid var(--border-color);
}

.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(1.9rem, 2.7vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat:nth-child(2) .stat-num {
    color: var(--secondary-accent);
}

.stat:nth-child(3) .stat-num {
    color: #7ce7a6;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #7a7a7a;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    max-width: 14ch;
}

.stat-divider {
    display: none;
}

/* Featured Story */
.featured-story {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    background: rgba(22, 22, 22, 0.66);
    position: relative;
    transition: transform 0.2s ease, border-left-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.featured-story:hover {
    transform: translateX(4px);
    border-left-color: rgba(var(--accent-rgb), 0.78);
    background: rgba(24, 24, 24, 0.72);
}

.featured-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.featured-pub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.featured-title a {
    color: var(--text-color);
    border-bottom: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: var(--accent-color);
    border-bottom: none;
}

.featured-excerpt {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 0.75rem;
}

.featured-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

/* Filter Count */
.filter-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.03em;
    margin-left: auto;
    transition: color 0.2s ease;
}

/* Work Item Badges */
.work-item.has-badge .work-name::after {
    content: attr(data-badge-label);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.4rem;
    margin-left: 0.6rem;
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-1px);
}

/* Badge uses data-badge from parent .work-item, so we target via the item */
.work-item.has-badge[data-badge="EXCLUSIVE"] .work-name::after {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.work-item.has-badge[data-badge="MOST READ"] .work-name::after {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-color);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.work-item.has-badge[data-badge="VIRAL"] .work-name::after {
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary-accent);
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
}

.work-item.has-badge[data-badge="LATEST"] .work-name::after {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.work-item.has-badge[data-badge="EDITOR'S PICK"] .work-name::after {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-color);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.work-item.has-badge[data-badge="DEEP DIVE"] .work-name::after {
    background: rgba(155, 89, 182, 0.12);
    color: #b07cd8;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.work-item.has-badge[data-badge="BREAKING"] .work-name::after {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Work Page */
.work-page-header {
    padding-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.back-button {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #777;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    border-bottom: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-button:hover {
    color: var(--accent-color);
    border-bottom: none;
    transform: translateX(-4px);
}

.work-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.work-page-desc {
    color: #888;
    font-size: 1rem;
    max-width: 500px;
}

.work-language-note {
    margin-top: 0.65rem;
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.filter-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: #777;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border-radius: 2px;
}

.filter-tag:hover {
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-tag.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.1);
}

.work-year-group {
    margin-bottom: var(--spacing-lg);
}

.work-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 0.1em;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

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

.work-item {
    display: grid;
    grid-template-columns: 3.5rem 8rem 1fr auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s ease;
    position: relative;
}

.work-item:hover {
    background: rgba(var(--accent-rgb), 0.06);
    border-bottom-color: var(--border-color);
}

.work-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.work-item:hover::after {
    width: 100%;
}

.work-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.03em;
}

.work-pub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.work-item:hover .work-name {
    color: var(--accent-color);
}

.work-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.work-item.hidden {
    display: none;
}

@media (max-width: 768px) {
    .work-item {
        grid-template-columns: 3rem 1fr;
        gap: 0.5rem 0.75rem;
    }

    .work-pub {
        display: none;
    }

    .work-tag {
        grid-column: 1 / -1;
        margin-top: -0.25rem;
    }

    .work-name {
        grid-column: 2;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .home-stats-bar {
        gap: 0.75rem;
    }

    .home-stats-bar .stat {
        min-height: 132px;
    }

    .stats-bar::before,
    .stats-bar::after {
        display: none;
    }

    .stat {
        border: 1px solid var(--border-color);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
            rgba(16, 16, 16, 0.68);
    }

    .stat + .stat {
        border-left: 1px solid var(--border-color);
    }

    .home-stats-bar .stat-divider {
        display: none;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .featured-story {
        padding: var(--spacing-sm);
    }

    .work-item.has-badge .work-name::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        gap: 0.65rem;
    }
}

/* Footer safe area for home indicator on iPhone */
.site-footer {
    padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
}
