/* Hadosh Academy Design System */
/* Version: v0.3.1 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-core: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --glass: blur(12px);
}

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

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

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #9ca3af);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    /* Increased from 80px to prevent header overlap */
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.5;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

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

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* About Page Specifics */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.profile-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Identity Progress Bars */
.identity-section {
    margin-bottom: 3rem;
}

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

.identity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-coming-soon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Orbit Wheel UI */
.orbit-container {
    position: absolute;
    /* Changed to absolute for precise off-screen positioning */
    top: 50%;
    left: -600px;
    /* Push far to the left */
    transform: translateY(-50%);
    width: 1800px;
    /* Massive size */
    height: 1800px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Enable events so we can detect hover/scroll */
}

.central-circle {
    width: 1200px;
    /* Massive circle */
    height: 1200px;
    border-radius: 50%;
    background: rgba(5, 5, 7, 0.9);
    /* High opacity to hide left side items */
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Align content to the right edge of the circle */
    padding-right: 150px;
    /* Spacing from the edge */
    z-index: 10;
    position: relative;
    pointer-events: auto;
    /* Re-enable clicks */
}

.central-circle-content {
    text-align: right;
    max-width: 500px;
}

.central-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(90deg, transparent 50%, var(--primary), var(--accent));
    /* Only show border on right side roughly */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0.6;
}

.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Animation removed for JS control */
    /* animation: rotate-ring 160s linear infinite; */
    transition: transform 0.1s linear;
    /* Slight smoothing if needed, but JS will handle it */
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* No counter-rotate. Text rotates with the ring. */
}

.orbit-text {
    display: block;
    padding: 0.5rem 1rem;
    /* Smaller padding */
    /* Removed background/border for cleaner 'text-only' look initially */
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Focus State (Right Side) */
.orbit-item.focused .orbit-text {
    color: #fff;
    text-shadow: 0 0 20px var(--primary);
    transform: scale(1.2);
    font-weight: 700;
}

.orbit-item:hover .orbit-text {
    color: var(--accent);
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Page Content Padding (for non-hero pages) */
.page-content {
    padding-top: 140px;
    min-height: 100vh;
}

/* ============ Blog ============ */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding-top: 4rem;
    min-height: 80vh;
}

/* blog-layout responsive rule moved to consolidated responsive section */

.article-content {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.article-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* Blog Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.article-card.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.article-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.article-card .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-meta-tags {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.article-authors {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.article-audio {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.article-audio audio {
    flex: 1;
    max-width: 400px;
    height: 36px;
}

.article-audio .audio-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Audio enhanced controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.audio-speed-group {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.25rem;
}

.audio-speed.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.article-audio:focus {
    outline: 1px solid rgba(99, 102, 241, 0.3);
    outline-offset: 2px;
    border-radius: 12px;
}

.article-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-comments h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-sm {
    font-size: 0.65rem;
    padding: 0.1rem 0.5rem;
}

.tag-audience {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent, #8b5cf6);
    border-color: var(--accent, #8b5cf6);
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Blog Article Page (individual posts) */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.blog-back-link:hover {
    color: var(--primary);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--primary);
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #e5e7eb;
}

.article-body blockquote p {
    margin-bottom: 0;
}

.article-body blockquote p + p {
    margin-top: 0.5rem;
}

.article-body code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--accent);
}

.article-body pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.7;
}

.article-body strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Punchline — standalone thesis statements */
.article-body .punchline {
    font-size: 1.15em;
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    line-height: 1.6;
}

/* Epigraph — opening hook blockquote, more prominent */
.article-body blockquote.epigraph {
    font-size: 1.2em;
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.08);
    border-left-width: 4px;
    font-style: normal;
    text-align: center;
}

.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body ol li {
    margin-bottom: 0.5rem;
}

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

.article-body a:hover {
    border-bottom-color: var(--primary);
}

/* Blog Images & Figures */
.blog-image {
    margin: 2.5rem 0;
    text-align: center;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.blog-image img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.blog-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* Image Lightbox */
body.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 5, 7, 0.92);
    backdrop-filter: var(--glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    max-width: 80vw;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    transition: text-shadow 0.3s ease;
}

.lightbox-close:hover {
    text-shadow: 0 0 12px var(--glow);
}

@media (max-width: 768px) {
    .lightbox-overlay img {
        max-width: 95vw;
        max-height: 85vh;
    }
}

.blog-image-placeholder {
    margin: 2.5rem 0;
    text-align: center;
}

.placeholder-box {
    background: rgba(99, 102, 241, 0.04);
    border: 2px dashed rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 3rem 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-prompt {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0;
    max-width: 500px;
    line-height: 1.6;
}

.blog-image-placeholder figcaption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* Blog Index Cards (article listing on blog.html) */
.blog-index-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-index-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.blog-index-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filter Bar */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.blog-filter-divider {
    width: 1px;
    height: 1.5rem;
    background: var(--border);
    margin: 0 0.5rem;
}

.blog-filter-bar .tag {
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.blog-filter-bar .tag:hover {
    transform: translateY(-1px);
}

.blog-filter-bar .tag.active {
    background: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

.blog-filter-bar .tag-audience.active {
    background: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.blog-index-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-index-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    max-height: 600px;
    transition: all 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(12px);
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-index-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.blog-index-card.filter-hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border-color: transparent;
    overflow: hidden;
    pointer-events: none;
}

.blog-index-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    line-height: 1.3;
}

.blog-index-card .blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-index-card .blog-card-excerpt {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.blog-index-card .blog-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-card-read-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
}

/* ============ Hero Variants ============ */

.hero-overflow {
    overflow: hidden;
}

.hero-compact {
    min-height: 60vh;
}

.hero-description {
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    position: relative;
    z-index: 1000;
}

/* ============ Card Links ============ */

.card-link {
    color: var(--primary);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* ============ About Page ============ */

.academy-hero {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 3rem;
    position: relative;
}

.academy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: url('../assets/images/academy-bg.png') center center / cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 70%);
}

.academy-hero > * {
    position: relative;
    z-index: 1;
}

.academy-hero h1 {
    font-size: 3.5rem;
    margin: 1rem 0;
}

.academy-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.academy-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.academy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.academy-section p {
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.8;
}

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

.academy-pillar {
    padding: 2rem;
}

.academy-pillar h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.academy-pillar p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.profession-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.profession-tags .tag {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.academy-vision {
    position: relative;
}

.academy-vision::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.academy-vision > * {
    position: relative;
    z-index: 1;
}

.academy-vision p strong {
    color: var(--primary);
}

/* ---- About page: visual (image + text) rows ---- */

.about-visual-section {
    display: flex !important;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.about-visual-section .about-visual-image {
    flex: 0 0 520px;
    width: 520px;
}

.about-visual-section .about-visual-content {
    flex: 1;
    min-width: 0;
}

.about-visual-section.reversed {
    flex-direction: row-reverse;
}

.about-section-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about-visual-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    line-height: 1.35;
    color: var(--text-main);
    font-weight: 600;
}

.about-visual-content p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.about-visual-content p:last-child,
.about-visual-content .profession-tags:last-child {
    margin-bottom: 0;
}

.about-visual-content .lead-text {
    margin-top: 0.5rem;
}

.about-visual-content .profession-tags {
    margin-top: 1.25rem;
}

/* ---- About page: essay cards ---- */

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

.about-essay-card {
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: block;
}

.about-essay-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.12);
}

.about-essay-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    display: block;
    margin-bottom: 0.6rem;
}

.about-essay-title {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 600;
}

.about-essay-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Founder section */
.founder-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.bio-heading {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bio-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.about-cta {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-fill-42 {
    width: 42%;
}

.progress-fill-13 {
    width: 13%;
}

.progress-fill-4 {
    width: 4%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* ============ Contact Page ============ */

.form-wrapper {
    width: 100%;
    max-width: 600px;
}

.contact-card {
    text-align: left;
    margin-top: 2rem;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* ============ Agents Page ============ */

.grid-narrow {
    max-width: 800px;
    margin: 4rem auto;
    text-align: left;
}

/* ============ 404 Page ============ */

.error-circle {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.error-content {
    text-align: center;
    z-index: 20;
}

.error-code {
    font-size: 6rem;
    margin-bottom: 0;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ============ Thanks Page ============ */

.message-wrapper {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.message-actions {
    margin-top: 2rem;
}

.agents-more-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 0;
}

.agents-more-section h2 {
    margin-bottom: 1rem;
}

.agents-more-section p {
    max-width: 640px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.card-link-disabled {
    color: var(--text-muted);
    text-decoration: none;
    pointer-events: none;
    opacity: 0.6;
}

/* ============ Mobile Navigation Toggle ============ */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ Responsive: Small Desktop (≤1024px) ============ */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .orbit-container .central-circle {
        padding-right: 100px;
    }

    .central-circle-content {
        max-width: 400px;
    }
}

/* ============ Responsive: Tablet (≤768px) ============ */

@media (max-width: 768px) {
    /* --- Navigation --- */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.is-open {
        display: flex;
    }

    /* --- Layout --- */
    .container {
        padding: 0 1.5rem;
    }

    /* --- Hero --- */
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero::before {
        width: 300px;
        height: 300px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* --- Cards --- */
    .grid {
        grid-template-columns: 1fr;
    }

    /* --- About Page --- */
    .academy-hero h1 {
        font-size: 2.5rem;
    }

    .academy-subtitle {
        font-size: 1.15rem;
    }

    .academy-section h2 {
        font-size: 1.5rem;
    }

    .lead-text {
        font-size: 1.05rem;
    }

    .academy-pillars {
        grid-template-columns: 1fr;
    }

    .about-visual-section,
    .about-visual-section.reversed {
        flex-direction: column !important;
        gap: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .about-visual-section .about-visual-image {
        flex: none;
        width: 220px;
        margin: 0 auto;
    }

    .about-visual-section .about-visual-content {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .about-visual-content .profession-tags {
        justify-content: center;
    }

    .about-essays-grid {
        grid-template-columns: 1fr;
    }

    .about-essays-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }

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

    .about-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-links {
        justify-content: center;
    }

    /* --- Blog Layout --- */
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-content h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .blog-index-header h1 {
        font-size: 2rem;
    }

    .blog-index-card {
        padding: 1.5rem;
    }

    .blog-filter-bar {
        padding: 1rem;
        gap: 0.4rem;
    }

    .blog-filter-divider {
        width: 100%;
        height: 1px;
        margin: 0.25rem 0;
    }

    /* --- 404 Page --- */
    .error-circle {
        width: 280px;
        height: 280px;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-message {
        font-size: 1.2rem;
    }

    /* --- Page Content --- */
    .page-content {
        padding-top: 100px;
    }

    /* --- Footer --- */
    footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }
}

/* ============ Responsive: Small Phone (≤480px) ============ */

@media (max-width: 480px) {
    .article-audio {
        flex-wrap: wrap;
    }

    .audio-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .card {
        padding: 1.5rem;
    }

    .article-content {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .article-content h1 {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.4rem;
    }

    .article-body h3 {
        font-size: 1.15rem;
    }

    .article-body .punchline {
        font-size: 1.05em;
        padding: 0.75rem 1rem;
    }

    .article-body blockquote.epigraph {
        font-size: 1.1em;
        padding: 1rem 1.25rem;
    }

    .article-body blockquote {
        padding: 1rem;
    }

    .blog-index-header h1 {
        font-size: 1.6rem;
    }

    .blog-index-card h2 {
        font-size: 1.2rem;
    }

    .error-circle {
        width: 220px;
        height: 220px;
    }

    .error-code {
        font-size: 3rem;
    }
}

/* ============ Landscape Phone: Compact orbit for short viewports ============ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .hero-actions .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .orbit-container {
        width: 1200px;
        height: 1200px;
        left: -500px;
    }

    .orbit-container .central-circle {
        width: 800px;
        height: 800px;
        padding-right: 60px;
    }

    .central-circle-content {
        max-width: 300px;
    }

    .central-circle::before {
        opacity: 0.4;
    }
}

/* ============ Portrait Phone: Vertical Carousel ============ */

@media (max-width: 768px) and (orientation: portrait) {
    .hero-overflow {
        overflow: visible;
    }

    .orbit-container {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        flex-direction: column;
    }

    .orbit-container .central-circle {
        width: 100%;
        height: auto;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 2rem 1.5rem;
        align-items: center;
        flex-direction: column;
    }

    .orbit-container .central-circle::before {
        display: none;
    }

    .central-circle-content {
        text-align: center;
        max-width: 100%;
    }

    .orbit-ring {
        position: relative;
        width: 100%;
        height: 260px;
        overflow: hidden;
        border-radius: 0;
        margin-top: 1.5rem;
        transition: none;
    }

    /* Fade masks — top and bottom */
    .orbit-ring::before,
    .orbit-ring::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 10;
        pointer-events: none;
    }

    .orbit-ring::before {
        top: 0;
        background: linear-gradient(to bottom, var(--bg-core), transparent);
    }

    .orbit-ring::after {
        bottom: 0;
        background: linear-gradient(to top, var(--bg-core), transparent);
    }

    /* Vertical carousel items — kill desktop transitions */
    .orbit-item {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transform-origin: center center;
        white-space: normal;
        text-align: center;
        width: 90%;
        pointer-events: auto;
        transition: none;
    }

    .orbit-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
        text-transform: none;
        padding: 0.4rem 0.8rem;
        transition: none;
    }
}

/* Portrait phone — smaller carousel on narrow screens */
@media (max-width: 480px) and (orientation: portrait) {
    .orbit-ring {
        height: 220px;
    }

    .orbit-ring::before,
    .orbit-ring::after {
        height: 50px;
    }

    .orbit-text {
        font-size: 0.9rem;
    }
}