/* =============================================
   SHARED CSS — jmillville.com
   Single source of truth for tokens, chrome, and components
   ============================================= */

/* ─── LIGHT MODE TOKENS ─── */
:root {
    --bg:                  #f6f3ee;
    --bg-warm:             #eee9e0;
    --bg-dark:             #1a1714;
    --bg-dark-2:           #242019;
    --text-dark:           #1a1714;
    --text-light:          #f6f3ee;
    --text-muted:          #5a534b;
    --accent:              #c45d3e;
    --accent-hover:        #b04f31;
    --accent-soft:         rgba(196, 93, 62, 0.10);
    --accent-2:            #2d6a5e;
    --border:              rgba(26, 23, 20, 0.08);
    --border-dark:         rgba(246, 243, 238, 0.10);
    --nav-scrolled-bg:     rgba(246, 243, 238, 0.92);
    --card-desc-color:     rgba(246, 243, 238, 0.55);
    --ghost-border:        rgba(246, 243, 238, 0.25);
    --ghost-hover-bg:      rgba(246, 243, 238, 0.05);
    --cursor-glow:         rgba(196, 93, 62, 0.07);

    /* Component overrides — light defaults */
    --btn-primary-bg:      var(--text-dark);
    --btn-primary-fg:      var(--text-light);
    --btn-primary-hover:   var(--accent);
    --btn-outline-color:   var(--text-dark);
    --work-card-bg:        var(--bg-dark-2);

    --ff-display:          'Instrument Serif', Georgia, serif;
    --ff-body:             'Darker Grotesque', system-ui, sans-serif;
}

/* ─── DARK MODE TOKENS (auto via OS preference) ─── */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --bg:                  #141210;
        --bg-warm:             #1c1915;
        --bg-dark:             #0a0908;
        --bg-dark-2:           #111010;
        --text-dark:           #e8e4dd;
        --text-light:          #141210;
        --text-muted:          #b5ada5;
        --accent:              #d4714f;
        --accent-hover:        #e07a5f;
        --accent-soft:         rgba(212, 113, 79, 0.12);
        --border:              rgba(232, 228, 221, 0.08);
        --border-dark:         rgba(232, 228, 221, 0.12);
        --nav-scrolled-bg:     rgba(20, 18, 16, 0.92);
        --card-desc-color:     rgba(232, 228, 221, 0.55);
        --ghost-border:        rgba(232, 228, 221, 0.25);
        --ghost-hover-bg:      rgba(232, 228, 221, 0.05);
        --cursor-glow:         rgba(212, 113, 79, 0.10);

        --btn-primary-bg:      var(--accent);
        --btn-primary-fg:      #fff;
        --btn-primary-hover:   var(--accent-hover);
        --btn-outline-color:   var(--text-dark);
        --work-card-bg:        var(--bg-dark-2);
    }
}

/* ─── DARK MODE TOKENS (manual override) ─── */
html[data-theme="dark"] {
    --bg:                  #141210;
    --bg-warm:             #1c1915;
    --bg-dark:             #0a0908;
    --bg-dark-2:           #111010;
    --text-dark:           #e8e4dd;
    --text-light:          #141210;
    --text-muted:          #b5ada5;
    --accent:              #d4714f;
    --accent-hover:        #e07a5f;
    --accent-soft:         rgba(212, 113, 79, 0.12);
    --border:              rgba(232, 228, 221, 0.08);
    --border-dark:         rgba(232, 228, 221, 0.12);
    --nav-scrolled-bg:     rgba(20, 18, 16, 0.92);
    --card-desc-color:     rgba(232, 228, 221, 0.55);
    --ghost-border:        rgba(232, 228, 221, 0.25);
    --ghost-hover-bg:      rgba(232, 228, 221, 0.05);
    --cursor-glow:         rgba(212, 113, 79, 0.10);

    --btn-primary-bg:      var(--accent);
    --btn-primary-fg:      #fff;
    --btn-primary-hover:   var(--accent-hover);
    --btn-outline-color:   var(--text-dark);
    --work-card-bg:        var(--bg-dark-2);
}

/* ─── RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── ACCESSIBILITY ─── */
.skip-link {
    position: absolute; left: 1rem; top: -48px;
    background: var(--text-dark); color: var(--text-light);
    padding: 0.55rem 0.9rem; border-radius: 8px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600;
    z-index: 300; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── UTILITIES ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    width: 0%;
    pointer-events: none;
}

/* ─── NAV ─── */
.nav {
    position: fixed; top: 3px; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
    font-family: var(--ff-display); font-size: 1.5rem;
    text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted); transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-dark); }
.nav-links a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 101; position: relative; }
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-dark); margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; inset: 0; background: var(--bg);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 2.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
    }
    .nav-links.open { opacity: 1; pointer-events: all; }
    .nav-links a { font-size: 1.1rem; }
}

/* ─── THEME TOGGLE ─── */
.theme-toggle {
    background: none; border: 1px solid var(--border);
    border-radius: 50%; width: 36px; height: 36px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: color 0.3s, border-color 0.3s;
    padding: 0; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-dark); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
    html:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
}
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

/* ─── SECTIONS ─── */
.section { padding: 6rem 0; }
.section--dark { background: var(--bg-dark); color: #e8e4dd; position: relative; }
.section--warm { background: var(--bg-warm); }

.section-header { margin-bottom: 3.5rem; }
.section-header--centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header--centered .section-subtitle { margin-left: auto; margin-right: auto; }

.section-eyebrow {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em; line-height: 1.1;
}
.section-subtitle {
    margin-top: 1rem; font-size: 1.05rem; color: var(--text-muted);
    max-width: 600px; line-height: 1.6; font-weight: 400;
}
.section--dark .section-subtitle { color: var(--card-desc-color); }

/* Cursor glow on dark sections */
.section--dark::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--cursor-glow), transparent 60%);
    pointer-events: none; z-index: 0;
    opacity: 0; transition: opacity 0.3s;
}
.section--dark:hover::before { opacity: 1; }
.section--dark > * { position: relative; z-index: 1; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.8rem; border-radius: 60px; text-decoration: none;
    font-family: var(--ff-body); font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; border: none;
}
.btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
}
.btn--primary:hover {
    background: var(--btn-primary-hover);
    color: #fff;
    box-shadow: 0 8px 25px rgba(196, 93, 62, 0.30);
}
.btn--outline {
    background: transparent;
    color: var(--btn-outline-color);
    border: 1.5px solid var(--btn-outline-color);
}
.btn--outline:hover {
    background: var(--btn-outline-color);
    color: var(--bg);
}
.btn--light { background: #f6f3ee; color: #1a1714; }
.btn--light:hover {
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 25px rgba(196, 93, 62, 0.3);
}
.btn--ghost {
    border: 1.5px solid var(--ghost-border);
    color: #e8e4dd; background: transparent;
}
.btn--ghost:hover { border-color: #e8e4dd; background: var(--ghost-hover-bg); }

/* ─── HERO ─── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 8rem 0 6rem;
}
#hero-canvas {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.hero-text { opacity: 0; }
.hero-eyebrow {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.hero-name {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.hero-name em { font-style: italic; color: var(--accent); }
.hero-name .char { display: inline-block; opacity: 0; }
.hero-desc {
    font-size: 1.15rem; line-height: 1.65; color: var(--text-muted);
    max-width: 460px; font-weight: 400;
}
.hero-proof {
    margin-top: 1.75rem; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); line-height: 1.6;
}
.hero-proof strong { color: var(--text-dark); font-weight: 700; }
.hero-cta { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; opacity: 0; }
.hero-image-frame {
    position: relative; border-radius: 20px; overflow: hidden;
    aspect-ratio: 4 / 5; background: var(--bg-warm);
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-desc, .hero-proof { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { max-width: 400px; margin: 0 auto; }
}

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.about-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-photo-caption { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 1rem; }
.about-text > .section-header { margin-bottom: 2rem; }
.about-text p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.25rem; color: var(--text-muted); }
.about-text p:first-of-type { font-size: 1.15rem; color: var(--text-dark); font-weight: 500; }
.about-aside { background: var(--bg-warm); border-radius: 16px; padding: 2rem; margin-top: 2rem; }
.about-aside h3 { font-family: var(--ff-display); font-size: 1.25rem; margin-bottom: 1rem; }
.about-tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.about-tag-list li {
    padding: 0.4rem 0.9rem; border-radius: 50px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
    cursor: default; transition: background 0.3s, color 0.3s, transform 0.3s;
}
.about-tag-list li:hover {
    background: var(--accent); color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── EXPERIENCE TIMELINE ─── */
.experience { padding: 4rem 0 2rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.experience-label {
    text-align: center; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--text-muted); margin-bottom: 2.5rem;
}
.timeline-track {
    position: relative; display: flex; justify-content: center;
    align-items: center; gap: 0; padding: 0 2rem;
    max-width: 900px; margin: 0 auto;
}
.timeline-line {
    position: absolute; top: 50%; left: 10%; right: 10%;
    height: 2px; background: var(--border);
    transform: translateY(-50%);
}
.timeline-line-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    width: 0%; background: var(--accent);
}
.timeline-node {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    flex: 1; cursor: pointer; background: none; border: none; padding: 0;
    font-family: inherit; color: inherit;
}
.timeline-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--bg); border: 2.5px solid var(--text-muted);
    transition: all 0.3s ease; margin-bottom: 1rem; position: relative;
}
.timeline-node:hover .timeline-dot,
.timeline-node.active .timeline-dot {
    border-color: var(--accent); background: var(--accent); transform: scale(1.2);
}
.timeline-name {
    font-family: var(--ff-display); font-size: 1.05rem;
    color: var(--text-muted); white-space: nowrap; transition: color 0.3s;
}
.timeline-node:hover .timeline-name,
.timeline-node.active .timeline-name { color: var(--text-dark); font-weight: 500; }
.timeline-years {
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--accent);
    opacity: 0; transform: translateY(-5px);
    transition: all 0.3s ease; margin-top: 0.3rem;
}
.timeline-node:hover .timeline-years,
.timeline-node.active .timeline-years { opacity: 1; transform: translateY(0); }
.timeline-detail {
    max-width: 600px; margin: 2rem auto 0; text-align: center;
    min-height: 100px;
}
.timeline-detail-inner { transition: opacity 0.25s ease; }
.timeline-detail-inner.fading { opacity: 0; }
.timeline-detail-role {
    font-family: var(--ff-display); font-size: 1.25rem;
    margin-bottom: 0.3rem;
}
.timeline-detail-meta {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.timeline-detail-desc {
    font-size: 0.95rem; line-height: 1.65; color: var(--text-muted);
}
@media (max-width: 768px) {
    .timeline-track { flex-wrap: wrap; gap: 1.5rem; }
    .timeline-line { display: none; }
    .timeline-years { opacity: 1; transform: none; }
}

/* ─── WORK CARDS ─── */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.work-card {
    background: var(--work-card-bg); border: 1px solid var(--border-dark);
    border-radius: 16px; padding: 2rem; text-decoration: none;
    color: #e8e4dd; transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.work-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.work-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-color: rgba(246,243,238,0.15);
    transform: translateY(-3px);
}
.work-card:hover::before { transform: scaleX(1); }
.work-card-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.work-card-title { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: 0.75rem; line-height: 1.2; }
.work-card-desc { font-size: 0.92rem; line-height: 1.65; color: var(--card-desc-color); flex: 1; }
.work-card-impact {
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-top: 1rem; padding: 0.3rem 0.7rem; border-radius: 50px;
    background: rgba(196, 93, 62, 0.12); color: var(--accent);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; width: fit-content;
}
.work-card-link {
    margin-top: 1.5rem; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
    display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.3s ease;
}
a.work-card:hover .work-card-link { gap: 0.7rem; }
.work-card.tag-highlight {
    border-color: var(--accent) !important;
    box-shadow: 0 0 30px rgba(196, 93, 62, 0.18);
}
.work-cta { margin-top: 3rem; text-align: center; }
.work-cta-text { font-size: 0.95rem; color: var(--card-desc-color); margin-bottom: 1.25rem; }

@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; } }

/* ─── QUOTE / KICKER ─── */
.quote-kicker {
    max-width: 700px; margin: 0 auto 3rem; text-align: center;
}
.quote-kicker-text {
    font-family: var(--ff-display); font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-style: italic; line-height: 1.45; color: var(--card-desc-color);
}
.quote-kicker-text .word { display: inline-block; margin-right: 0.25em; }
.quote-kicker-attr {
    margin-top: 1rem;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent);
}

/* ─── TEACHING / SPEAKING ─── */
.teaching-block { margin-bottom: 4rem; }
.teaching-block:last-child { margin-bottom: 0; }
.teaching-block-title {
    font-family: var(--ff-display); font-size: 1.5rem;
    margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.teaching-block-frame {
    font-size: 0.95rem; color: var(--text-muted);
    margin-bottom: 1.75rem; line-height: 1.5; max-width: 580px;
}
.teaching-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.teaching-card {
    border: 1px solid var(--border); border-radius: 14px;
    padding: 1.75rem; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    text-decoration: none; color: inherit; display: block; background: transparent;
}
.teaching-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(196,93,62,0.08);
    transform: translateY(-2px);
}
.teaching-card-meta {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem;
}
.teaching-card-title { font-family: var(--ff-display); font-size: 1.2rem; margin-bottom: 0.5rem; line-height: 1.25; }
.teaching-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 768px) { .teaching-grid { grid-template-columns: 1fr; } }

.teaching-cta { text-align: center; margin-top: 3rem; }
.teaching-cta-text { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.teaching-cta-proof {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 1.25rem;
}

/* ─── LATEST FEED ─── */
.feed-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.feed-card {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--border); border-radius: 14px;
    padding: 1.75rem; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative; overflow: hidden;
}
.feed-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.feed-card:hover { border-color: var(--accent); box-shadow: 0 8px 30px rgba(196,93,62,0.08); transform: translateY(-3px); }
.feed-card:hover::before { transform: scaleX(1); }
.feed-source {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
.feed-title {
    font-family: var(--ff-display); font-size: 1.2rem; line-height: 1.3;
    margin-bottom: 0.5rem;
}
.feed-excerpt {
    font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-date {
    font-size: 0.72rem; color: var(--text-muted); margin-top: 0.75rem;
    font-weight: 600; letter-spacing: 0.04em;
}
.feed-arrow {
    position: absolute; top: 1.75rem; right: 1.75rem;
    color: var(--text-muted); font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
}
.feed-card:hover .feed-arrow { color: var(--accent); transform: translateX(3px); }
@media (max-width: 768px) { .feed-grid { grid-template-columns: 1fr; } }

.newsletter-cta {
    background: var(--bg-warm); border-radius: 16px; padding: 2.5rem;
    text-align: center; margin-top: 2.5rem;
}
.newsletter-cta-title {
    font-family: var(--ff-display); font-size: 1.4rem; margin-bottom: 0.5rem;
}
.newsletter-cta-desc {
    font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem;
    max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* ─── CONTACT (mailto panel) ─── */
.contact-section {
    background: var(--bg-dark); color: #e8e4dd;
    padding: 6rem 0; text-align: center; position: relative;
}
.contact-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--cursor-glow), transparent 60%);
    pointer-events: none; z-index: 0;
    opacity: 0; transition: opacity 0.3s;
}
.contact-section:hover::before { opacity: 1; }
.contact-section > * { position: relative; z-index: 1; }
.contact-title { font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; line-height: 1.15; }
.contact-desc {
    font-size: 1.05rem; color: var(--card-desc-color); margin-bottom: 2rem;
    max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6;
}
.contact-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-topics {
    margin-top: 2.5rem; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(232,228,221,0.45); line-height: 1.8;
}
.contact-topics strong { color: var(--accent); font-weight: 700; }
.contact-paths {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem; margin: 0 0 2.5rem; text-align: left;
}
.contact-path {
    background: rgba(246, 243, 238, 0.05);
    border: 1px solid rgba(246, 243, 238, 0.12);
    border-radius: 12px; padding: 1.5rem;
    display: flex; flex-direction: column;
}
.contact-path-title { font-family: var(--ff-display); font-size: 1.3rem; margin-bottom: 0.5rem; }
.contact-path-desc { font-size: 0.98rem; line-height: 1.6; color: var(--card-desc-color); margin-bottom: 0.75rem; }
.contact-path-proof {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(232, 228, 221, 0.45); line-height: 1.7; margin-bottom: 0.75rem;
}
.contact-path-link {
    margin-top: auto; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--accent); text-decoration: none;
}
.contact-path-link:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
    text-decoration: none; font-size: 0.8rem; color: var(--text-muted);
    font-weight: 600; transition: color 0.3s;
}
.footer-links a:hover { color: var(--text-dark); }

/* Secret heart link → /caring/ */
.secret-care {
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.45;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
    margin-left: 0.15rem;
    display: inline-block;
    font-size: 0.85em;
}
.secret-care:hover,
.secret-care:focus-visible {
    color: #ff6fb5;
    opacity: 1;
    transform: scale(1.4) rotate(-8deg);
    outline: none;
}

/* ─── STATUS PILLS ─── */
.status-pill {
    display: inline-block; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.2rem 0.6rem; border-radius: 50px;
    margin-left: 0.5rem; vertical-align: middle;
}
.status-pill--active {
    background: rgba(45, 106, 94, 0.15); color: var(--accent-2);
}
.status-pill--historical {
    background: var(--accent-soft); color: var(--text-muted);
}
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .status-pill--active { color: #5db8a6; }
}
html[data-theme="dark"] .status-pill--active { color: #5db8a6; }

/* =============================================
   ARCHIVE PAGE (/work/) — chapters, filters, items
   ============================================= */
.archive-header { text-align: center; padding: 8rem 0 3rem; }
.archive-headline {
    font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.2; letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.filter-bar {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    margin-bottom: 4rem; justify-content: center;
    padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.filter-btn {
    padding: 0.55rem 1.2rem; border-radius: 50px;
    border: 1.5px solid var(--border); background: transparent;
    font-family: var(--ff-body); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted); cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.filter-btn:hover { border-color: var(--text-muted); color: var(--text-dark); }
.filter-btn.active {
    background: var(--accent); color: var(--text-light);
    border-color: var(--accent);
}

.chapter {
    margin-bottom: 5rem;
    scroll-margin-top: 6rem;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: both;
}
.chapter.hidden { display: none; }
.chapter-header { margin-bottom: 2.5rem; }
.chapter-title {
    font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.chapter-frame {
    font-size: 1rem; font-style: italic; color: var(--text-muted);
    line-height: 1.6; max-width: 580px;
}

.items-featured {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
    margin-bottom: 2rem;
}
.items-list { list-style: none; }

.item-featured {
    background: var(--work-card-bg); border: 1px solid var(--border-dark);
    border-radius: 16px; padding: 2rem; text-decoration: none;
    color: #e8e4dd; transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.item-featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.item-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-color: rgba(246, 243, 238, 0.15);
}
.item-featured:hover::before { transform: scaleX(1); }
.item-featured--static { cursor: default; }
.item-featured--static:hover {
    transform: none; box-shadow: none;
    border-color: var(--border-dark);
}
.item-featured--static:hover::before { transform: scaleX(0); }

.item-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.item-title { font-family: var(--ff-display); font-size: 1.4rem; margin-bottom: 0.6rem; line-height: 1.25; }
.item-desc { font-size: 0.9rem; line-height: 1.65; color: var(--card-desc-color); flex: 1; }
.item-link {
    margin-top: 1.5rem; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
    display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.3s ease;
}
.item-featured:hover .item-link { gap: 0.7rem; }

.item-compact {
    display: flex; align-items: baseline;
    padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease, background 0.3s ease;
    cursor: default; position: relative; gap: 1rem;
}
.item-compact:last-child { border-bottom: none; }
.item-compact:hover { background: var(--accent-soft); padding-left: 0.75rem; }

.item-compact-title {
    font-family: var(--ff-display); font-size: 1.05rem;
    flex: 1; line-height: 1.3;
}
.item-compact-type {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--accent);
    min-width: 90px; flex-shrink: 0;
}
.item-compact-year {
    font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
    min-width: 90px; text-align: right; flex-shrink: 0;
}
.item-compact-desc {
    width: 100%; font-size: 0.85rem; color: var(--text-muted);
    line-height: 1.55; max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease;
}
.item-compact.expanded .item-compact-desc {
    max-height: 200px; margin-top: 0.6rem;
}
.item-thumb {
    max-height: 56px; width: auto; max-width: 200px;
    background: #fff; padding: 6px; border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 0.9rem; object-fit: contain;
}
.item-compact-link {
    color: var(--accent); font-weight: 700; text-decoration: none;
    white-space: nowrap;
}
.item-compact-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .items-featured { grid-template-columns: 1fr; }
    .item-compact { flex-wrap: wrap; }
    .item-compact-type { order: 3; min-width: auto; margin-top: 0.3rem; }
    .item-compact-year { margin-left: auto; }
}

.no-results {
    text-align: center; padding: 3rem 0;
    color: var(--text-muted); font-size: 1rem;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-text, .hero-visual, .hero-name .char { opacity: 1 !important; }
    #hero-canvas, .section--dark::before, .contact-section::before { display: none; }
    .chapter, .reveal { opacity: 1; transform: none; animation: none; }
}

/* =============================================
   ART & DESIGN PAGE (/art/) + homepage art strip
   ============================================= */

/* ─── GALLERY ─── */
.art-intro {
    max-width: 780px; margin: 0 auto 3rem; text-align: center;
}
.art-intro p { font-size: 1.02rem; line-height: 1.75; color: var(--text-muted); }

.art-gallery {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.art-figure {
    margin: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden;
    background: var(--bg-warm); border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.art-figure:hover, .art-figure:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(26, 23, 20, 0.12);
}
.art-figure img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.art-figure figcaption {
    display: flex; align-items: baseline; gap: 0.6rem;
    padding: 0.7rem 0.9rem 0.8rem;
    font-size: 0.82rem; font-weight: 600; color: var(--text-muted); line-height: 1.4;
}
.art-figure figcaption .art-num {
    font-family: var(--ff-display); font-size: 0.95rem; color: var(--accent); flex-shrink: 0;
}
.art-figure--wide { grid-column: span 3; }
.art-figure--wide img { aspect-ratio: auto; }

@media (max-width: 900px) {
    .art-gallery { grid-template-columns: repeat(2, 1fr); }
    .art-figure--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
    .art-gallery { grid-template-columns: 1fr; }
    .art-figure--wide { grid-column: span 1; }
}

.art-series-logo {
    display: block; width: min(320px, 70%); margin: 0 auto 2.5rem; border-radius: 12px;
}
.art-source-note {
    text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 2rem;
}
.art-source-note a { color: var(--accent); }

/* ─── LIGHTBOX ─── */
.lightbox {
    border: none; padding: 0; background: transparent;
    max-width: min(1100px, 92vw); max-height: 92vh; margin: auto;
}
.lightbox::backdrop { background: rgba(10, 9, 8, 0.88); }
.lightbox img {
    width: 100%; height: auto; max-height: 80vh; object-fit: contain;
    border-radius: 8px; display: block;
}
.lightbox figcaption {
    text-align: center; color: #e8e4dd; font-family: var(--ff-body);
    font-size: 0.95rem; font-weight: 600; padding: 0.9rem 1rem 0;
}
.lightbox-close {
    position: absolute; top: -0.25rem; right: 0; transform: translateY(-100%);
    background: none; border: none; color: #e8e4dd; font-size: 2rem;
    cursor: pointer; line-height: 1; padding: 0.5rem; font-family: var(--ff-body);
}
.lightbox-close:hover { color: #fff; }

/* ─── INTERACTIVE (InstantOm) ─── */
.om-grid {
    display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center;
    max-width: 900px; margin: 0 auto;
}
.om-embed {
    width: 260px; height: 300px; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; background: #f6f3ec; justify-self: center;
}
.om-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.om-text p { font-size: 1.02rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1.1rem; }
.om-text p:first-of-type { font-size: 1.15rem; color: var(--text-dark); font-weight: 500; }
@media (max-width: 768px) {
    .om-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

/* ─── BRAND / IDENTITY CARDS ─── */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.brand-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(26, 23, 20, 0.10); }
.brand-mark {
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 2rem; min-height: 170px;
}
.brand-mark--ink   { background: #0f0f0f; }
.brand-mark--paper { background: #fafaf7; }
.brand-mark--om    { background: #f6f3ec; }
.brand-mark--cu    { background: #cfe3cb; }
.brand-mark img { max-width: 70%; max-height: 130px; object-fit: contain; }
.brand-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.brand-meta {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.6rem;
}
.brand-title { font-family: var(--ff-display); font-size: 1.4rem; margin-bottom: 0.6rem; line-height: 1.2; }
.brand-desc { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); flex: 1; }
.brand-tokens { margin-top: 1.25rem; }
.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.chip {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--border); flex-shrink: 0;
}
.brand-type-note { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }
.brand-link {
    margin-top: 1rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--accent); text-decoration: none;
}
.brand-link:hover { text-decoration: underline; }
@media (max-width: 768px) { .brand-grid { grid-template-columns: 1fr; } }

/* ─── HOMEPAGE ART STRIP ─── */
.art-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
    text-decoration: none;
}
.art-strip img {
    width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
    border-radius: 12px; border: 1px solid var(--border); display: block;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.art-strip:hover img { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(26, 23, 20, 0.12); }
@media (max-width: 600px) {
    .art-strip { grid-template-columns: 1fr; }
    .art-strip img:nth-child(n+3) { display: none; }
}
