/* luminary.dev — Avant-garde fashion lookbook for developer thought leaders */

:root {
    --dark: #1a1a1a;
    --light: #f5f0e8;
    --accent: #c45c3c;
    --muted: #8a8078;
    --text-dark: #1a1a1a;
    --text-light: #f5f0e8;
    --serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    background: var(--light);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Top Nav ---------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    mix-blend-mode: difference;
    color: var(--light);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.4rem 2rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: auto;
}

.nav-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.nav-mark .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2.4rem;
    justify-self: center;
}

.nav-links a {
    position: relative;
    transition: color 0.4s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

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

.nav-issue {
    justify-self: end;
    color: inherit;
    opacity: 0.85;
}

/* ---------- The Spotlight (Hero) ---------- */
.spotlight {
    position: relative;
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 100vh;
    overflow: hidden;
}

.split-left {
    background: var(--dark);
    color: var(--text-light);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 4rem 3rem;
}

.split-right {
    background: var(--light);
    color: var(--text-dark);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 9rem 3rem 4rem;
}

.meta-tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    max-width: 18ch;
    line-height: 1.6;
    font-weight: 500;
}

.meta-tag.light { color: var(--light); opacity: 0.78; }
.meta-tag.dark { color: var(--text-dark); opacity: 0.78; text-align: right; }

.vertical-meta {
    position: absolute;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 500;
}

.vertical-meta.light {
    left: 1.4rem;
    top: 50%;
    transform: rotate(180deg) translateY(50%);
    color: var(--accent);
}

.vertical-meta.dark {
    right: 1.4rem;
    bottom: 4rem;
    color: var(--muted);
}

/* Display title spans the split */
.display-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(4rem, 14vw, 13rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.title-half {
    display: inline-block;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.title-half-left {
    color: var(--light);
}

.title-half-right {
    color: var(--text-dark);
}

.spotlight.is-loaded .title-half-left {
    transform: translateX(0);
}

.spotlight.is-loaded .title-half-right {
    transform: translateX(0);
}

.title-half-left {
    transform: translateX(-1.5rem);
}

.title-half-right {
    transform: translateX(1.5rem);
}

.hero-footer {
    position: absolute;
    bottom: 1.4rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
}

.hero-footer-left {
    color: var(--light);
    opacity: 0.75;
    margin-left: 1rem;
}

.hero-footer-right {
    color: var(--text-dark);
    opacity: 0.75;
    margin-right: 1rem;
}

/* ---------- Marquee ---------- */
.marquee-bar {
    background: var(--light);
    color: var(--accent);
    border-top: 1px solid rgba(26, 26, 26, 0.12);
    border-bottom: 1px solid rgba(26, 26, 26, 0.12);
    overflow: hidden;
    white-space: nowrap;
    padding: 1.6rem 0;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 38s linear infinite;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    will-change: transform;
}

.marquee-bar:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    padding: 0 2.4rem;
    color: var(--accent);
}

.marquee-attr {
    font-style: normal;
    font-family: var(--sans);
    font-size: 0.75em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding-left: 1rem;
}

.marquee-bullet {
    display: inline-block;
    color: var(--text-dark);
    font-size: 0.5em;
    transform: translateY(-0.4em);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- The Gallery ---------- */
.gallery {
    position: relative;
}

.profile {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.profile-dark {
    background: var(--dark);
    color: var(--text-light);
    border-bottom-color: rgba(245, 240, 232, 0.08);
}

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

/* Vertical split rule running down each profile */
.profile::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 60%;
    width: 1px;
    background: currentColor;
    opacity: 0.12;
}

.profile-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    column-gap: 4rem;
    row-gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    align-items: start;
}

.profile-meta {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-dark .profile-meta { color: rgba(245, 240, 232, 0.55); }

.folio {
    color: var(--accent);
    font-weight: 700;
}

.luminary-name {
    grid-column: 1 / 2;
    grid-row: 2;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.6rem;
}

.luminary-name .dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    transform: translateY(-0.05em);
}

.profile-quote {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 1.6vw, 1.7rem);
    line-height: 1.4;
    color: var(--accent);
    align-self: end;
    padding-left: 1.5rem;
    border-left: 1px solid currentColor;
    border-left-color: rgba(196, 92, 60, 0.45);
}

.profile-body {
    grid-column: 1 / 2;
    grid-row: 3;
    max-width: 56ch;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.profile-dark .profile-body { color: rgba(245, 240, 232, 0.82); }

.profile-footer {
    grid-column: 2 / 3;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: end;
    padding-left: 1.5rem;
}

.folio-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-dark .folio-label { color: rgba(245, 240, 232, 0.5); }

.profile-link {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform 0.5s ease, letter-spacing 0.5s ease;
    display: inline-block;
}

.profile-link:hover {
    letter-spacing: 0.02em;
    transform: translateX(4px);
}

/* ---------- Dispatch ---------- */
.dispatch {
    background: var(--light);
    color: var(--text-dark);
    padding: 8rem 3rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

.dispatch-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: end;
    gap: 3rem;
}

.dispatch-eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.dispatch-title {
    grid-column: 1 / 2;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 18ch;
}

.dispatch-list {
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(26, 26, 26, 0.18);
}

.dispatch-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 80px;
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.18);
    cursor: default;
    position: relative;
    transition: padding 0.5s ease, color 0.4s ease;
}

.dispatch-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--dark);
    z-index: 0;
    transition: width 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.dispatch-item > * {
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
}

.dispatch-item:hover {
    padding-left: 2rem;
    color: var(--light);
}

.dispatch-item:hover::before {
    width: 100%;
}

.dispatch-item:hover .dispatch-num,
.dispatch-item:hover .dispatch-author,
.dispatch-item:hover .dispatch-len {
    color: rgba(245, 240, 232, 0.7);
}

.dispatch-num {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.dispatch-headline {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.dispatch-author {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.dispatch-len {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: right;
}

/* ---------- Manifesto Footer ---------- */
.manifesto {
    background: var(--dark);
    color: var(--text-light);
    padding: 6rem 2rem 3rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.manifesto-eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4rem;
}

.manifesto-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
}

.manifesto-word {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(4rem, 12vw, 9rem);
    color: var(--text-light);
    line-height: 0.85;
    display: block;
    letter-spacing: -0.03em;
    transition: color 0.5s ease, letter-spacing 0.6s ease, transform 0.6s ease;
    cursor: default;
}

.manifesto-word:nth-child(odd) {
    transform: translateX(-1rem);
}

.manifesto-word:nth-child(even) {
    transform: translateX(1rem);
}

.manifesto-word.is-active {
    color: var(--accent);
    letter-spacing: 0;
    transform: translateX(0);
}

.manifesto-base {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    text-align: left;
    padding: 0 1rem;
}

.base-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.base-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.base-value {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.4;
}

.manifesto-rule {
    height: 1px;
    background: rgba(245, 240, 232, 0.15);
    max-width: 1100px;
    margin: 0 auto 1.4rem;
}

.manifesto-credit {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .spotlight {
        grid-template-columns: 1fr;
        grid-template-rows: 55vh 45vh;
        min-height: 100vh;
    }

    .split-left, .split-right {
        padding: 3rem 1.6rem;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .split-right {
        padding-top: 4rem;
    }

    .vertical-meta {
        display: none;
    }

    .display-title {
        font-size: clamp(3.5rem, 16vw, 8rem);
    }

    .nav-links {
        display: none;
    }

    .nav-inner {
        grid-template-columns: 1fr 1fr;
    }

    .nav-issue {
        display: none;
    }

    .profile {
        padding: 5rem 0;
    }

    .profile::before {
        display: none;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        padding: 0 1.6rem;
        gap: 2rem;
    }

    .profile-meta,
    .luminary-name,
    .profile-quote,
    .profile-body,
    .profile-footer {
        grid-column: 1;
    }

    .profile-meta { grid-row: 1; }
    .luminary-name { grid-row: 2; font-size: clamp(2.6rem, 12vw, 4.5rem); }
    .profile-quote {
        grid-row: 3;
        padding-left: 1rem;
        font-size: 1.2rem;
    }
    .profile-body { grid-row: 4; }
    .profile-footer { grid-row: 5; padding-left: 0; }

    .dispatch {
        padding: 5rem 1.6rem;
    }

    .dispatch-header {
        grid-template-columns: 1fr;
    }

    .dispatch-item {
        grid-template-columns: 60px 1fr;
        gap: 0.8rem 1.2rem;
        padding: 1.4rem 0;
    }

    .dispatch-author, .dispatch-len {
        grid-column: 2;
        text-align: left;
    }

    .dispatch-headline {
        grid-column: 2;
    }

    .dispatch-num {
        grid-row: span 3;
    }

    .manifesto {
        padding: 4rem 1.4rem 2rem;
    }

    .manifesto-base {
        grid-template-columns: 1fr 1fr;
    }

    .manifesto-credit {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 540px) {
    .manifesto-base {
        grid-template-columns: 1fr;
    }
}
