/* --- TENSOR LAB DESIGN SYSTEM: HYBRID MODE --- */
:root {
    /* DARK THEME (Hero) */
    --bg-dark: #121212;
    --text-light: #e5e5e5;
    --text-dim: #a1a1aa;

    /* LIGHT THEME (Journal) */
    --paper: #f4f4f0;
    /* Warm Alabaster */
    --ink: #18181b;
    /* Zinc 900 */
    --ink-light: #52525b;
    /* Zinc 600 */
    --alert: #dc2626;
    /* Crimson Accent */
    --secondary: #8b5cf6;
    /* Legacy Violet for Gradient */
    --gradient: linear-gradient(135deg, var(--alert), var(--secondary));

    /* COMMON */
    --hairline: 1px solid rgba(0, 0, 0, 0.08);
    --border-strong: 1px solid rgba(0, 0, 0, 1);
    --border-dim: 1px solid rgba(255, 255, 255, 0.1);

    /* FONTS */
    --font-serif: 'EB Garamond', serif;
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    /* Site defaults to dark */
    color: var(--text-light);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* =========================================
   PART 1: THE SURGE HERO (Dark Mode)
   ========================================= */

/* Top Nav (Absolute Overlay) */
.surge-nav {
    position: absolute;
    /* Not fixed, scrolls away or stays? Let's keep absolute for Hero only */
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.nav-menu {
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.nav-link:hover {
    color: white;
}

/* removed stray margin-left */

.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.nav-brand-subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 2px;
}

/* The Hero Itself */
.surge-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    z-index: 5;
    /* Ensure it stays above watermark */
    position: relative;
    background-color: transparent;
    /* Remove flat black override */
    padding-bottom: 4rem;
}

/* Vine Removed */

@keyframes vineBreathe {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.08;
    }

    50% {
        transform: scale(1.02) translateY(-10px);
        opacity: 0.12;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 0.08;
    }
}

/* Hero Label: Already uppercase, switch to sans */
.hero-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    /* Deep dark background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    top: 120%;
    /* Slight offset */
    background-color: rgba(10, 10, 10, 0.9);
    /* Deep matte dark */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Crisper border */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* Top highlight */
    min-width: 240px;
    /* Wider */
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    border-radius: 4px;
    padding: 1rem 0;
    overflow: hidden;
    animation: fadeInSlide 0.2s ease-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 24px;
    text-decoration: none;
    display: block;
    font-family: var(--font-mono);
    /* Switched to Mono for Hero Menu */
    font-style: normal;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 28px;
    /* Subtle slide */
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

/* Menu Button Reset */
.dropdown:hover .dropbtn,
.dropdown.active .dropbtn {
    background-color: transparent !important;
    border-color: transparent !important;
    opacity: 0.7;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    color: white;
    max-width: 1100px;
    margin-bottom: 3rem;
    margin-top: 6rem;
    margin-top: 6rem;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
    /* Wider, more subtle glow */
    /* Lower H1 even more */
}

.hero-divider {
    display: flex;
    gap: 12px;
    margin-bottom: 3rem;
    opacity: 0.5;
}

/* --- HERO PROOF --- */
.hero-proof {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--alert);
    /* Or White? Prompt "legacy" had white/teal. We are doing Journal Theme. */
}

.proof-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* --- LIQUID GLASS CARDS (Project Only) --- */
.liquid-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.5),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.liquid-card:hover {
    transform: translateY(-5px);
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.6),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- FILTER BAR --- */
.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    /* Slight roundness */
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

/* --- ROLE DETAILS (Chapter Directors) --- */
.role-detail-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: var(--border-strong);
}

.role-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* [Removed Duplicate Testimonial Wall] */

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

.role-card-detailed {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.role-card-detailed:hover {
    transform: translateY(-2px);
    border-color: var(--alert);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Cleaned up stray legacy code */

/* Specific Font Overrides for Join Section */
.role-card-detailed h3 {
    font-family: var(--font-serif);
    /* Garamond */
    font-style: italic;
    /* Usually goes with Garamond headers here */
    font-size: 1.75rem;
}

.role-card-detailed p,
.role-card-detailed h4,
.role-card-detailed li,
.role-list {
    font-family: var(--font-sans);
    /* Inter */
}

/* Darker colors for role visibility */
.role-focus {
    display: block;
    font-size: 0.75rem;
    color: var(--alert);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Specifically for the colored ones in Roles */
.role-card-detailed .role-focus[style*="#10b981"] {
    color: #047857 !important;
}

/* Dark Green */
.role-card-detailed .role-focus[style*="#2dd4bf"] {
    color: #0f766e !important;
}

/* Dark Teal */
.role-card-detailed .role-focus[style*="#f59e0b"] {
    color: #b45309 !important;
}

/* Dark Amber */
.role-list {
    font-size: 0.9rem;
    color: var(--ink-light);
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.role-quals {
    font-size: 0.85rem;
    background: #f9f9f9;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid var(--alert);
    margin-top: auto;
}

/* --- BOOK FLIP COMPONENT REMOVAL --- */
/* Removing book-stage and book-page styles as they are replaced by liquid-card */


/* Page Content */
.page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-style: italic;
}

.page-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--alert);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-body {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-light);
}

.page-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--ink-light);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.page-number {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    opacity: 0.5;
}

/* Book Controls */
.book-controls {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-light);
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.book-btn {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.book-btn:hover {
    color: var(--alert);
    border-bottom: 1px solid var(--alert);
}

.dot-tri {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.dot-top {
    transform: translateY(-6px);
}

.hero-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 auto;
}

.logo-ribbon {
    margin-top: 6rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

/* =========================================
   PART 2: THE COMPUTATIONAL JOURNAL (Light Mode)
   ========================================= */

.layout-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 100vh;
    background-color: var(--paper);
    /* Switches to Light background */
    color: var(--ink);
    /* Switches to Dark text */
    position: relative;
    z-index: 10;
}

/* --- SIDEBAR --- */
.sidebar {
    position: sticky;
    /* Sticky relative to the layout-grid container! */
    top: 0;
    height: 100vh;
    border-right: var(--hairline);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    background-color: var(--paper);
    overflow-y: auto;
}

.journal-header {
    margin-bottom: 4rem;
}

.journal-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.monogram {
    height: 48px;
    width: auto;
    filter: grayscale(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    color: var(--ink-light);
}

.brand-subtitle-small {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    /* Smaller as requested */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    color: var(--ink-light);
    white-space: nowrap;
    /* Attempt to keep one line */
}

.manifesto {
    margin-bottom: 4rem;
}

.manifesto-text {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.1;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.manifesto-detail {
    font-size: 0.85rem;
    color: var(--ink-light);
    line-height: 1.6;
}

.journal-nav ul {
    list-style: none;
}

.journal-nav li {
    margin-bottom: 1rem;
}

.nav-item {
    font-family: var(--font-sans);
    /* Reverted to Sans for Sidebar */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink-light);
    transition: all 0.2s;
}

.nav-item:hover {
    color: var(--ink);
    transform: translateX(4px);
    /* Pizazz */
}

.nav-item:hover,
.nav-item.active {
    color: var(--ink);
}

.nav-num {
    font-size: 0.7rem;
    color: var(--alert);
    width: 20px;
}

.active-cta {
    margin-top: 2rem;
    color: var(--alert);
}

.journal-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: var(--border-strong);
}

.institutional-mark {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.7rem;
    color: var(--ink-light);
    text-transform: uppercase;
}

/* --- FEED column --- */
.feed {
    padding: 0;
}

/* Watermark Background */
/* Watermark Removed */

.journal-section {
    padding: 3rem 2rem;
    /* Reduced from 6rem 4rem */
    border-bottom: var(--hairline);
    /* min-height: 80vh; Removed to reduce spacing */
    position: relative;
    z-index: 1;
    /* Ensure content floats above watermark */
}

.section-label {
    font-family: var(--font-sans);
    /* From Mono to Sans */
    color: var(--alert);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.headline {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0.95;
    font-style: italic;
    margin-bottom: 1rem;
    max-width: 800px;
}

.subtitle {
    font-family: var(--font-sans);
    /* From Mono to Sans */
    font-size: 1rem;
    color: var(--ink);
    /* Slightly darker */
    margin-bottom: 4rem;
    max-width: 600px;
}

/* COMPONENTS (Light Mode) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.entry {
    border-top: var(--border-strong);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.entry-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-light);
    margin-bottom: 0.5rem;
}

.entry-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Align Juan Rule Removed */

/* FAQ Styles */
summary {
    cursor: pointer;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink);
    padding: 0.5rem 0;
    transition: color 0.2s;
}

summary:hover {
    color: var(--alert);
    text-decoration: underline;
}

summary::marker {
    color: var(--alert);
}

.entry-body {
    font-size: 0.9rem;
    color: var(--ink-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.entry-footer {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.65rem;
    border: 1px solid var(--ink);
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
}

.abstract-box {
    background: white;
    padding: 2rem;
    border: var(--hairline);
}

.abstract-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: var(--hairline);
    padding-bottom: 0.5rem;
}

.docket-list {
    list-style: none;
}

.docket-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: var(--hairline);
    font-size: 0.9rem;
}

.docket-time {
    color: var(--alert);
    font-weight: 700;
}

.case-file-list {
    display: flex;
    flex-direction: column;
}

.case-file {
    border-top: var(--border-strong);
    padding: 2rem 0;
}

.case-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.case-id {
    color: var(--alert);
}

.case-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.case-content h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    font-style: italic;
    margin-bottom: 1rem;
}

.case-content p {
    color: var(--ink-light);
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.case-credits {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.5rem;
    background: white;
    display: inline-block;
    border: var(--hairline);
}

.case-visual img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
    border: var(--hairline);
}

.case-file:hover .case-visual img {
    filter: grayscale(0%);
}

.faculty-list {
    list-style: none;
    border-top: var(--border-strong);
    margin-bottom: 3rem;
}

.faculty-member {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: var(--hairline);
    font-size: 0.95rem;
}

.f-name {
    font-weight: 700;
}

.f-role {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink-light);
}

/* removed stray text-transform */

/* Liquid Leadership Card (Light Mode Adaptation) */
/* Liquid Leadership Card (Light Mode Adaptation) */
.leadership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    /* VERY Tight gap as requested */
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

/* Clean Professional Leadership */
.leader-card-glass {
    /* Remove "glass" container styling */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    transition: transform 0.3s ease;
    /* Max width to keep text nice */
    max-width: 250px;
    margin: 0 auto;
}

.leader-card-glass:hover {
    transform: translateY(-5px);
}

.leader-img {
    height: 120px;
    /* Slightly larger */
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid white;
    /* Bold white matte border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft shadow for depth */
    background: white;
    /* Ensure transparency looks clean */
}

.leader-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink);
}

.leader-role {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--alert);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

/* Remove "leader-role-focus" if it conflicted, keeping standard role */

.leader-affil {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-light);
    line-height: 1.4;
    font-family: var(--font-sans);
}

.photo-strip {
    display: none;
    /* Hide old strip */
}

.photo-strip {
    display: flex;
    gap: 1px;
    overflow: hidden;
}

.photo-strip img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

.inquiry-box {
    background: var(--ink);
    color: var(--paper);
    padding: 3rem;
}

.inquiry-box p {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.journal-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--alert);
    color: white;
    font-family: var(--font-sans);
    /* Switch back to Sans */
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s ease;
}

/* Map .btn to .journal-btn for compatibility if needed, or user used .btn class */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--alert);
    color: white;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.journal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Secondary button contrast fix */
.journal-btn.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    box-shadow: none;
}

.journal-btn.secondary:hover {
    background: var(--ink);
    color: white;
    transform: none;
}

/* --- GLASS COMPONENTS (Restored/Refined) --- */
.glass-panel {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.glass-panel:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.glass-panel h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.glass-role.nav-item {
    font-family: var(--font-mono);
    /* User requested number font (Mono) */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.glass-role-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--alert);
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.glass-panel .journal-btn-container,
.role-card-detailed .journal-btn-container {
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.glass-panel p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-light);
    margin-bottom: 1.5rem;
}

/* On mobile, remove fixed heights */
@media (max-width: 900px) {
    .glass-panel p {
        min-height: auto;
    }
}



.glass-list-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.glass-list {
    list-style: none;
    margin-bottom: 2rem;
}

.glass-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-light);
}

.glass-list li::before {
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- TIMELINE (Adapted for Journal) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    border-left: 2px solid var(--border-strong);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--paper);
    border: 2px solid var(--alert);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--alert);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--ink-light);
    font-size: 0.95rem;
}

/* --- TESTIMONIALS --- */
.testimonial-wall {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    /* Condensed */
    margin-bottom: 2rem;
    /* Reduced from 4rem */
}

@media (max-width: 900px) {
    .testimonial-wall {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    border: 1px solid var(--border-strong);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 4rem;
    line-height: 0.5;
    font-family: var(--font-serif);
    color: var(--alert);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--ink);
}

.testimonial-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-light);
}

/* --- PROJECT GRID (Selected Works) --- */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    border-top: var(--border-strong);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    /* Clean Styling, no heavy glass */
    background: transparent;
    box-shadow: none;
    border: none;
    border-top: var(--border-strong);
    border-radius: 0;
    padding: 1rem 0 0 0;
    transition: all 0.2s ease;

    /* Centering Logic */
    width: 100%;
    max-width: 350px;
}

.project-card:hover {
    transform: translateY(-5px);
    /* Subtle lift */
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-light);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.project-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--ink);
}

.team-meta {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--ink-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-result {
    font-size: 0.8rem;
    border-top: 1px dashed var(--ink-light);
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-tags {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--ink-light);
    text-transform: uppercase;
}

/* Updated Responsive Grid for Glass Panels */
.role-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    /* Reduced implicit spacing */
}

@media (max-width: 900px) {
    .role-grid-container {
        grid-template-columns: 1fr;
    }
}


/* --- RESPONISVE --- */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        padding: 2rem;
        border-right: none;
        border-bottom: var(--border-strong);
    }

    .journal-nav,
    .journal-footer {
        display: none;
    }

    .feed .journal-section {
        padding: 4rem 1.5rem;
    }

    .headline {
        font-size: 3rem;
    }

    .case-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .photo-strip {
        flex-wrap: wrap;
    }

    .surge-hero {
        padding: 6rem 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .logo-ribbon {
        gap: 1.5rem;
    }

    /* Responsive tweaks for new content */
    .article-grid .entry-lists {
        grid-template-columns: 1fr !important;
        /* Force stack on mobile */
        gap: 1rem !important;
    }

    .entry-lists {
        grid-template-columns: 1fr;
    }
}