:root {
    --bg-dark: #000000;
    --bg-light: #e5e5e5;
    --text-dark: #ffffff;
    --text-light: #000000;
    --accent: #555555;
    --border-color: rgba(255, 255, 255, 0.15);
    --border-light: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

/* Lenis Recommended */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .nav-logo, .mega-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.section-heading {
    font-size: clamp(3rem, 6vw, 8rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.section-subheading {
    font-size: clamp(2rem, 4vw, 4rem);
    margin-bottom: 2rem;
}

.dark-text { color: var(--text-light); }
.light-bg { background-color: var(--bg-light); color: var(--text-light); }

/* Custom Cursor */
.custom-cursor {
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.custom-cursor.hover {
    width: 60px; height: 60px;
}

/* Nav */
.brand-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 4%;
    z-index: 100;
    mix-blend-mode: difference;
}
.nav-logo { font-size: 1.5rem; letter-spacing: 2px; }
.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    color: #fff; text-decoration: none; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 500;
}
.menu-toggle { display: none; }

/* Hero Fullscreen */
.hero-fullscreen {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4% 4% 10%;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
    filter: grayscale(100%) contrast(1.2);
}
.gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 50%, #000000 100%);
}
.hero-content {
    display: flex; justify-content: space-between; align-items: flex-end; width: 100%;
}
.hero-title .overflow-hidden { overflow: hidden; }
.hero-title h1 {
    font-size: clamp(4rem, 12vw, 15rem);
    letter-spacing: -0.04em;
    transform: translateY(100%);
}
.hero-title h1.indent { margin-left: 10vw; color: transparent; -webkit-text-stroke: 1px #fff; }

.hero-info {
    display: flex; gap: 4rem; text-align: right; margin-bottom: 2rem;
}
.info-block span {
    display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 0.5rem;
}
.info-block p {
    font-size: 1.1rem; line-height: 1.4; font-weight: 500;
}

/* Marquee */
.marquee-scroller {
    width: 100%; overflow: hidden; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0; background: #000;
}
.marquee-inner {
    display: flex; width: max-content;
    animation: scroll 20s linear infinite;
}
.marquee-inner span {
    font-size: 1.5rem; font-family: 'Outfit'; text-transform: uppercase;
    margin-right: 2rem; white-space: nowrap; color: var(--accent);
}
@keyframes scroll {
    0% { transform: translateX(0); } 100% { transform: translateX(-50%); }
}

/* General Layouts */
.section-padding { padding: 150px 4%; }
.container { max-width: 1600px; margin: 0 auto; }

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.large-body { font-size: clamp(2rem, 3.5vw, 4rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 3rem; }
.secondary-body { font-size: 1.5rem; line-height: 1.6; color: #888; margin-bottom: 4rem; max-width: 800px; }
.stats { display: flex; gap: 4rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.stat-num { display: block; font-size: 3rem; font-family: 'Outfit'; font-weight: 800; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }

/* Experience Table */
.header-row { border-bottom: 2px solid var(--border-light); padding-bottom: 2rem; margin-bottom: 0; }
.exp-row {
    display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 2rem;
    padding: 3rem 0; border-bottom: 1px solid var(--border-light);
    transition: background 0.3s;
}
.exp-row:hover { background: rgba(0,0,0,0.02); }
.exp-year { font-weight: 600; font-family: 'Outfit'; font-size: 1.2rem; }
.exp-role h3 { font-size: 1.8rem; margin-bottom: 0.5rem; text-transform: none; }
.company { color: #555; font-size: 1.1rem; }
.exp-desc { font-size: 1.1rem; line-height: 1.6; color: #333; }

/* Selected Work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.work-wrapper { text-decoration: none; color: inherit; display: block; }
.work-item {
    aspect-ratio: 4/3; background: #111; position: relative; overflow: hidden;
    padding: 3rem; display: flex; align-items: flex-end;
}
.work-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #1a1a1a; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom; z-index: 0;
}
.work-wrapper:hover .work-overlay { transform: scaleY(0); }
.work-content { position: relative; z-index: 1; }
.work-meta { font-family: 'Outfit'; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: #888; }
.work-meta span { color: #aaa; }
.work-title { font-size: 2.5rem; margin-bottom: 1rem; }
.work-desc { font-size: 1.1rem; color: #ccc; }

/* Research & Certs */
.research-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.clean-list { list-style: none; border-top: 1px solid var(--border-color); }
.clean-list li {
    padding: 2rem 0; border-bottom: 1px solid var(--border-color);
}
.clean-list h4 { font-size: 1.5rem; text-transform: none; margin-bottom: 0.5rem; }
.clean-list p { color: #888; font-size: 1.1rem; line-height: 1.5; }

/* Journal */
.journal-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.view-all { text-decoration: underline; color: var(--text-light); text-transform: uppercase; font-family: 'Outfit'; font-weight: 600; }
.journal-list { border-top: 2px solid var(--text-light); }
.journal-row {
    display: grid; grid-template-columns: 1fr 4fr 50px; align-items: center;
    padding: 2.5rem 0; border-bottom: 1px solid var(--border-light);
    cursor: pointer; transition: padding-left 0.3s ease;
}
.journal-row:hover { padding-left: 1rem; background: rgba(0,0,0,0.03); }
.j-date { font-family: 'Outfit'; font-weight: 600; color: #555; }
.j-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-family: 'Outfit'; font-weight: 800; }
.j-link { font-size: 2rem; text-align: right; }

/* Footer */
.agency-footer { text-align: center; padding-top: 100px; padding-bottom: 50px; background: #000; }
.mega-text {
    font-size: clamp(6rem, 18vw, 25rem);
    line-height: 0.8;
    color: transparent; -webkit-text-stroke: 1px #333;
    transition: color 0.3s; cursor: pointer;
}
.mega-text:hover { color: #fff; -webkit-text-stroke: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--border-color); text-align: left; }
.f-socials { display: flex; gap: 2rem; }
.f-socials a { color: #fff; text-decoration: none; text-transform: uppercase; font-family: 'Outfit'; letter-spacing: 1px; }
.f-copy { color: #555; }


/* --- Article Specific Styles --- */
.container--narrow {
    max-width: 900px;
    margin: 0 auto;
}
.article-header {
    padding: 150px 4% 50px;
}
.article-meta {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.article-meta .category {
    color: var(--text-dark);
    font-weight: 600;
}
.article-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    text-transform: none; /* Articles shouldn't always be strictly uppercase if it hurts readability */
}
.article-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #888;
    line-height: 1.5;
    margin-bottom: 3rem;
    max-width: 800px;
}
.article-hero-img {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    margin-bottom: 4rem;
    overflow: hidden;
}
.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
}
.author-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}
.author-info span {
    font-size: 0.9rem;
    color: #555;
}

.prose {
    color: #222;
    font-size: 1.25rem;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}
.prose h2 {
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-light);
    text-transform: none;
}
.prose h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-light);
    text-transform: none;
}
.prose p {
    margin-bottom: 1.5rem;
}
.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.prose li {
    margin-bottom: 0.5rem;
}
.prose blockquote {
    font-size: 1.8rem;
    font-style: italic;
    font-family: 'Outfit';
    line-height: 1.4;
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 4px solid var(--text-light);
}
.article-figure {
    margin: 4rem 0;
}
.article-figure img {
    width: 100%;
    height: auto;
}
.article-figure figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}
.article-footer .tags span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin-right: 0.5rem;
}
.share-links a {
    margin-left: 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.mobile-menu.open {
    transform: translateY(0);
}
.close-menu {
    position: absolute;
    top: 2rem; right: 4%;
    font-size: 1.5rem;
    font-family: 'Outfit';
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
}
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
.mobile-links a {
    font-size: 3rem;
    font-family: 'Outfit';
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
}


/* --- Refined Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; cursor: pointer; text-transform: uppercase; font-family: 'Outfit'; font-weight: 600; }
    .hero-info { flex-direction: column; gap: 1rem; position: relative; top: auto; right: auto; text-align: left; }
    .about-grid, .exp-row, .work-grid, .research-split, .journal-row { grid-template-columns: 1fr; gap: 2rem; }
    .journal-row { grid-template-columns: 1fr 1fr; }
    .j-link { display: none; }
    .hero-title h1.indent { margin-left: 0; }
    .custom-cursor { display: none; }
    * { cursor: auto; }
}

@media (max-width: 768px) {
    .section-heading { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-title h1 { font-size: clamp(3rem, 15vw, 6rem); }
    .exp-row { display: flex; flex-direction: column; gap: 0.5rem; padding: 2rem 0; }
    .journal-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
    .j-title { font-size: 1.8rem; line-height: 1.2; }
    .mega-text { font-size: 20vw; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
    .f-socials { justify-content: center; }
    .section-padding { padding: 80px 4%; }
    .article-title { font-size: 2.5rem; line-height: 1.2; }
    .prose { font-size: 1.1rem; }
    .article-footer { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .hero-info { margin-top: 1rem; }
}