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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ========== THEME VARIABLES ========== */
/* Dark (default) */
:root,
[data-theme="dark"] {
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --text: #ffffff;
    --text-muted: #cccccc;
    --accent: #CB975D;
    --accent-dim: rgba(203, 151, 93, 0.25);
    --border: rgba(255, 255, 255, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.95);
    --header-bar-bg: #000000;
    --overlay: rgba(255, 255, 255, 0.05);
    --overlay-hover: rgba(255, 255, 255, 0.08);
}

/* Light */
[data-theme="light"] {
    --bg: #e6ebf0;
    --bg-secondary: #dde4eb;
    --text: #433a31;
    --text-muted: #5a5046;
    --accent: #8d5d2f;
    --accent-dim: rgba(141, 93, 47, 0.2);
    --border: rgba(67, 58, 49, 0.22);
    --border-subtle: rgba(67, 58, 49, 0.13);
    --nav-bg: rgb(230, 235, 240);
    --header-bar-bg: #dde4eb;
    --overlay: rgba(67, 58, 49, 0.06);
    --overlay-hover: rgba(67, 58, 49, 0.1);
}

/* Remove underlines from all links */
a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition: color 0.25s ease, background-color 0.25s ease;
}

/* Blog page follows global theme (no separate override) */
.blog-page {
    background-color: var(--bg);
    color: var(--text);
}


/* Basic responsive container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Turncloak hero */
.turncloak-hero {
    min-height: 70vh;
    padding: 80px 20px 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
}

.turncloak-icon {
    width: clamp(96px, 18vw, 160px);
    height: auto;
    filter: drop-shadow(0 0 18px var(--accent-dim));
}

.turncloak-logo {
    width: clamp(260px, 70vw, 980px);
    height: auto;
}

.turncloak-cta a {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 4vw, 40px);
    font-style: italic;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.turncloak-cta a:hover {
    opacity: 0.8;
}

/* Header Bar */
.header-bar {
    background: var(--header-bar-bg);
    color: var(--text);
    padding: 15px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.header-bar p {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 50px;
    text-align: center;
    /* Starting position */
    transform: translateX(100%);
    /* Apply animation to this element */
    animation: scroll-left 15s linear infinite;
}

/* Move it (define the animation) */
@keyframes scroll-left {
    0% {
        transform: translateX(70%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Lazy Navigation */
.lazy-nav {
    position: relative;
    top: auto;
    left: 0;
    right: 0;
    height: 92px;
    background: var(--nav-bg);
    border-bottom: none;
    z-index: 150;
    transition: none;
    opacity: 1;
}

.lazy-drawer-nav {
    --lazy-progress: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 92px;
    background: var(--nav-bg);
    border-bottom: none;
    z-index: 1000;
    transform: translateY(calc((var(--lazy-progress) - 1) * 100%));
    opacity: var(--lazy-progress);
    pointer-events: none;
    will-change: transform, opacity;
}

.lazy-drawer-nav.visible {
    pointer-events: auto;
}

.nav-logo {
    position: absolute;
    left: 34px;
    top: 0;
    height: 92px;
    display: flex;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    opacity: 1;
    transform: none;
    display: flex;
    align-items: center;
}

.nav-icon {
    height: 26px;
    width: auto;
    display: block;
    transition: filter 0.2s ease;
}

/* Dark is the default theme unless explicitly set to light */
html:not([data-theme="light"]) .nav-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

[data-theme="light"] .nav-icon {
    filter: none;
}

.nav-icon-short {
    display: none;
}

.lazy-drawer-nav .nav-icon-full {
    display: none;
}

.lazy-drawer-nav .nav-icon-short {
    display: block;
}

.nav-links {
    position: absolute;
    right: 34px;
    top: 0;
    height: 92px;
    display: flex;
    align-items: center;
    list-style: none;
    gap: 34px;
    margin: 0;
    padding: 0;
}

/* Little Link - Unified link style */
.little-link {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 23px;
    font-weight: 400;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid transparent;
    letter-spacing: 0.2px;
    transition: opacity 0.2s ease;
}

.little-link:visited {
    color: var(--text);
}

.little-link:hover {
    opacity: 0.72;
}

/* Nav links - inherit little-link + lazy nav animations */
.nav-links a {
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease;
}

/* Footer-like interaction: dim siblings, highlight hovered link */
.nav-links:hover a {
    opacity: 0.35;
}

.nav-links:hover a:hover {
    opacity: 1;
}

/* Remove underline hover from lazy nav links */
.nav-links a:hover {
    background-image: none !important;
    border-bottom: none !important;
}

/* Blog nav — centered Daily Spiral wordmark */
.nav-blog-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-blog-center a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-blog-wordmark {
    height: 32px;
    width: auto;
    display: block;
    transition: filter 0.2s ease;
}

html:not([data-theme="light"]) .nav-blog-wordmark {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .nav-blog-wordmark {
    filter: none;
}

/* Mobile nav — blog center wordmark */
.mobile-nav-container {
    position: relative;
}

.mobile-nav-blog-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-nav-blog-center a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero-content {

    margin: 0;
    padding: 0;
}

.hero-title {
    width: 50%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
}

.hero-description {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 8vw, 106px);
    font-weight: 400;
    color: var(--text);
    line-height: 1.1;
    margin: 0;
    text-align: left;
    width: 100vw;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;

}

/* Opal-specific blue styling */
/* Deprecated old opal-page overrides removed */

/* Project Hero (shared structure used across project pages) */
.project-hero-section,
.opal-hero-section {
    padding: 20px 0 40px 0;
}

.project-hero-content,
.opal-hero-content {
    width: 100vw;
    padding: 0 40px;
    box-sizing: border-box;
}

.project-hero-headline {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(36px, 6.8vw, 92px);
    font-weight: 300;
    line-height: 1.0;
    color: var(--text);
    margin: 16px 0 0 0;
    text-align: left;
}

/* Split headline utilities */
.project-hero-headline .headline-white { color: var(--text); }
.project-hero-headline .headline-color { color: var(--text); }

/* Opal-specific color application for split headline */
.opal-hero-section .project-hero-headline { color: var(--text); }
.opal-hero-section .project-hero-headline .headline-color { color: #0069FF; }

/* Turncloak-specific hero color: copper/accent */
.turncloak-hero-section .project-hero-headline {
    color: var(--accent);
}

/* ThirdHome-specific hero color */
.thirdhome-hero-section .project-hero-headline {
    color: var(--text);
}

/* Page-specific CTA link colors (inherit structure/behavior) */
.turncloak-hero-section .project-link a {
    color: var(--text);
}

.thirdhome-hero-section .project-link a {
    color: var(--text);
}

.project-hero-cta {
    margin-top: 30px;
}

/* CTA intro line above link */
.project-hero-cta .cta-intro {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 3vw, 36px);
    font-style: italic;
    color: var(--text);
    margin-bottom: 6px;
}

/* Generic project link style (typography/behavior only) */
.project-link a {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* Generic hero CTA hover: slight fade out */
.project-hero-section .project-link a:hover {
    color: var(--text);
    opacity: 0.4;
}

/* Generic hero CTA sizing; pages can override color */
.project-hero-section .project-link a,
.opal-hero-section .project-link a {
    font-size: 48pt;
}

.opal-hero-section .project-link a {
    color: #0069FF;
}

.opal-hero-section .project-link a:hover {
    color: var(--text);
    opacity: 0.4;
}

/* Opal brand guide bento system */
.opal-bento-section {
    --opal-brand-primary: #2a70ea;
    --opal-brand-deep: #1e56b8;
    --opal-brand-soft: #dce8ff;
    --opal-brand-ink: #0e1b35;
    --opal-display-font: "VC Garamond Condensed", "EB Garamond", "Times New Roman", serif;
    --opal-sans-font: "Apercu", "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    position: relative;
    padding: 24px 0 96px 0;
}

.opal-bento-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 520px;
    background:
        radial-gradient(circle at 18% 10%, rgba(42, 112, 234, 0.34), transparent 55%),
        radial-gradient(circle at 82% 18%, rgba(114, 174, 255, 0.2), transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.opal-bento-content {
    position: relative;
    z-index: 1;
    width: 100vw;
    padding: 0 40px;
    box-sizing: border-box;
}

.opal-bento-header {
    max-width: 1200px;
    margin-bottom: 24px;
}

.opal-bento-kicker {
    font-family: var(--opal-sans-font);
    font-size: 12px;
    font-weight: 600;
    color: #7eb3ff;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.opal-bento-title {
    font-family: var(--opal-display-font);
    font-size: clamp(42px, 5.8vw, 104px);
    font-weight: 400;
    line-height: 0.94;
    color: var(--text);
    max-width: 14ch;
    text-wrap: balance;
}

.opal-bento-intro {
    margin-top: 14px;
    font-family: var(--opal-sans-font);
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.45;
    color: var(--text-muted);
    max-width: 74ch;
}

.opal-bento-style-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.opal-bento-style-pill {
    font-family: var(--opal-sans-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #d7e8ff;
    border: 1px solid rgba(126, 179, 255, 0.4);
    background: rgba(23, 46, 86, 0.5);
    padding: 7px 14px;
    border-radius: 999px;
}

.opal-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.opal-bento-row {
    display: grid;
    gap: 18px;
}

.opal-bento-row--1col {
    grid-template-columns: minmax(0, 1fr);
}

.opal-bento-row--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opal-bento-row--3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opal-bento-row--66-33 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.opal-bento-row--75-25 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.opal-bento-card {
    position: relative;
    min-height: 220px;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid rgba(126, 179, 255, 0.3);
    background: linear-gradient(150deg, rgba(17, 30, 57, 0.82), rgba(10, 18, 35, 0.95));
    box-shadow: 0 28px 64px rgba(0, 10, 30, 0.42);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    isolation: isolate;
}

.opal-bento-card::before {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -36%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(42, 112, 234, 0.35) 0%, rgba(42, 112, 234, 0) 72%);
    z-index: 0;
    pointer-events: none;
}

.opal-bento-card > * {
    position: relative;
    z-index: 1;
}

.opal-bento-card--brand-hero {
    background: linear-gradient(145deg, rgba(42, 112, 234, 0.54), rgba(14, 27, 53, 0.96));
    border-color: rgba(150, 196, 255, 0.55);
    min-height: 320px;
}

.opal-bento-card--brand-note {
    background: linear-gradient(150deg, rgba(14, 27, 53, 0.98), rgba(10, 20, 39, 0.92));
}

.opal-bento-card--palette {
    min-height: 300px;
}

.opal-bento-card--usage {
    background: linear-gradient(150deg, rgba(18, 40, 80, 0.86), rgba(10, 20, 40, 0.96));
}

.opal-bento-card--type-display {
    background: linear-gradient(145deg, rgba(16, 37, 72, 0.92), rgba(10, 18, 35, 0.96));
}

.opal-bento-card--type-sans {
    background: linear-gradient(145deg, rgba(22, 28, 48, 0.9), rgba(11, 19, 35, 0.96));
}

.opal-bento-card--layout {
    min-height: 170px;
    background: linear-gradient(150deg, rgba(21, 44, 86, 0.78), rgba(10, 18, 35, 0.96));
}

.opal-bento-card-label {
    font-family: var(--opal-sans-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(226, 238, 255, 0.86);
}

.opal-bento-card-title {
    font-family: var(--opal-display-font);
    font-size: clamp(30px, 3.2vw, 62px);
    line-height: 0.95;
    font-weight: 400;
    color: #f4f8ff;
    text-wrap: balance;
}

.opal-display-sample {
    max-width: 17ch;
}

.opal-bento-card-copy {
    font-family: var(--opal-sans-font);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.45;
    color: rgba(217, 230, 249, 0.9);
    max-width: 66ch;
}

.opal-bento-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.opal-bento-meta span {
    font-family: var(--opal-sans-font);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(194, 216, 248, 0.85);
}

.opal-brand-chip {
    font-family: var(--opal-display-font);
    font-size: clamp(50px, 7.2vw, 98px);
    line-height: 0.88;
    color: #f2f7ff;
    margin: 4px 0 6px 0;
}

.opal-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.opal-swatch {
    min-height: 152px;
    border-radius: 18px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.opal-swatch-label,
.opal-swatch-hex {
    font-family: var(--opal-sans-font);
    font-size: 11px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.opal-swatch-hex {
    font-size: 12px;
    font-weight: 600;
}

.opal-swatch--primary {
    background: #2a70ea;
    color: #ffffff;
}

.opal-swatch--deep {
    background: #1e56b8;
    color: #ffffff;
}

.opal-swatch--soft {
    background: #dce8ff;
    color: #153870;
}

.opal-swatch--ink {
    background: #0e1b35;
    color: #dce8ff;
}

.opal-token-list {
    margin: 2px 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.opal-token-list li {
    position: relative;
    padding-left: 18px;
    font-family: var(--opal-sans-font);
    font-size: 14px;
    line-height: 1.4;
    color: rgba(217, 230, 249, 0.9);
}

.opal-token-list li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #7eb3ff;
}

.opal-type-font-name {
    font-family: var(--opal-sans-font);
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(194, 216, 248, 0.9);
}

.opal-type-sample-display {
    font-family: var(--opal-display-font);
    font-size: clamp(42px, 5vw, 84px);
    line-height: 0.9;
    color: #f3f8ff;
    margin-top: 2px;
    text-wrap: balance;
}

.opal-type-sample-sans {
    font-family: var(--opal-sans-font);
    font-size: clamp(20px, 1.9vw, 33px);
    line-height: 1.28;
    color: rgba(221, 235, 255, 0.95);
    max-width: 26ch;
}

.opal-type-scale {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opal-type-scale span {
    font-family: var(--opal-sans-font);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(211, 229, 255, 0.92);
    border: 1px solid rgba(126, 179, 255, 0.45);
    border-radius: 999px;
    padding: 5px 10px;
}

@media (max-width: 1100px) {
    .opal-swatch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .opal-bento-row--3col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .opal-bento-row--3col .opal-bento-card:last-child {
        grid-column: 1 / -1;
    }
}

[data-theme="light"] .opal-bento-kicker {
    color: #1f5cc3;
}

[data-theme="light"] .opal-bento-style-pill {
    color: #1b4d9f;
    border-color: rgba(42, 112, 234, 0.3);
    background: rgba(42, 112, 234, 0.08);
}

[data-theme="light"] .opal-bento-card {
    border-color: rgba(20, 53, 106, 0.16);
    background: linear-gradient(150deg, rgba(247, 250, 255, 0.94), rgba(231, 239, 252, 0.78));
    box-shadow: 0 18px 42px rgba(27, 39, 53, 0.12);
}

[data-theme="light"] .opal-bento-card--brand-hero {
    background: linear-gradient(145deg, rgba(42, 112, 234, 0.3), rgba(231, 239, 252, 0.9));
}

[data-theme="light"] .opal-bento-card--usage,
[data-theme="light"] .opal-bento-card--type-display,
[data-theme="light"] .opal-bento-card--type-sans,
[data-theme="light"] .opal-bento-card--layout,
[data-theme="light"] .opal-bento-card--brand-note {
    background: linear-gradient(150deg, rgba(241, 246, 255, 0.98), rgba(228, 238, 255, 0.82));
}

[data-theme="light"] .opal-bento-card-label {
    color: rgba(15, 34, 66, 0.8);
}

[data-theme="light"] .opal-bento-card-title,
[data-theme="light"] .opal-brand-chip,
[data-theme="light"] .opal-type-sample-display {
    color: #11274b;
}

[data-theme="light"] .opal-bento-card-copy,
[data-theme="light"] .opal-type-sample-sans,
[data-theme="light"] .opal-token-list li,
[data-theme="light"] .opal-type-font-name {
    color: rgba(16, 35, 68, 0.86);
}

[data-theme="light"] .opal-bento-meta span,
[data-theme="light"] .opal-type-scale span {
    color: rgba(24, 54, 105, 0.86);
    border-color: rgba(42, 112, 234, 0.34);
}

/* Next Project link */
.next-project {
    width: 100%;
    text-align: center;
    margin: 40px 0 0 0;
}

.next-project a {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(22px, 3vw, 40px);
    font-style: italic;
    color: var(--text);
    transition: opacity 0.25s ease;
}

.next-project a:hover {
    opacity: 0.6;
}

/* Bottom Hero Section */
.bottom-hero {
    padding: 80px 0 0 0;
    text-align: center;
}

.bottom-hero-content {
    margin: 0;
    padding: 0;
}

.bottom-hero-description {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 8vw, 106px);
    font-weight: 400;
    color: var(--text);
    line-height: 1.1;
    margin: 0;
    text-align: left;
    width: 100vw;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
}

/* Logo Section */
.logo-section {
    padding: 20px 0 20px 0;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}



.hero-logo {
    width: 150px;
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Work Section */
.work {
    padding: 80px 0 0 0;
}

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin: 0 0 60px 0;
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Project Items */
.project-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-item {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}



.project-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}





.project-content {
    padding: 30px 30px 30px 0;
}

.project-info {
    flex: 1;
}

.project-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.project-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    transition: font-weight 0.3s ease;
}

.project-name {
    font-weight: 600 !important;
    font-size: 28px !important;
    color: var(--text) !important;
}

.project-description {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.project-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pill {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--overlay);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill:nth-child(1) { background: #f4e4c1; color: #a3611b; }
.pill:nth-child(2) { background: #ffc6dc; color: #e91e63; }
.pill:nth-child(3) { background: #f8cbff; color: #9610ae; }
.pill:nth-child(4) { background: #e8eaf6; color: #3f51b5; }
.pill:nth-child(5) { background: #c6e6fe; color: #1684df; }

.project-cta {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.project-cta-mobile {
    display: none;
}

.project-item:hover .project-cta {
    opacity: 1;
    transform: translateX(0);
}

.cta-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-top: 10px;
    text-decoration: none;
    display: block;
}

.cta-text:hover {
    color: var(--text);
}

/* Reveal on scroll with cascade */
.reveal,
.reveal-pills { 
    opacity: 0; 
    transform: translateY(30px);
    transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1); 
}


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

/* Stagger project elements for cascade effect */
.project-image.reveal {
    transition-delay: 0ms;
}

.project-content.reveal {
    transition-delay: 100ms;
}

.project-pills.reveal-pills {
    transition-delay: 200ms;
}

/* Stagger individual pills within each project */
.reveal-pills .pill { 
    opacity: 0; 
    transform: translateY(15px); 
}

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

.reveal-pills.reveal-visible .pill:nth-child(1) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 250ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 250ms; }
.reveal-pills.reveal-visible .pill:nth-child(2) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 320ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 320ms; }
.reveal-pills.reveal-visible .pill:nth-child(3) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 390ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 390ms; }
.reveal-pills.reveal-visible .pill:nth-child(4) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 460ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 460ms; }
.reveal-pills.reveal-visible .pill:nth-child(5) { transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 530ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 530ms; }

/* Footer */
.footer {
    background: var(--bg);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Footer links inherit little-link styles */

.footer-copyright {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

/* Blog Header */
.blog-header {
    background: var(--bg-secondary);
    padding: 40px 0 20px;
}

.blog-home-header {
    background: var(--bg);
    padding: 0;
    color: var(--text);
}

.blog-home-nav-shell {
    width: 100%;
    margin: 0;
    background: var(--bg);
}

.blog-home-nav {
    position: relative;
    height: 92px;
}

.blog-home-brand {
    position: absolute;
    left: 34px;
    top: 0;
    height: 92px;
    display: flex;
    align-items: center;
}

.blog-home-brand a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.blog-home-mark {
    height: 26px;
    width: auto;
    display: block;
    transition: filter 0.2s ease;
}

html:not([data-theme="light"]) .blog-home-mark,
html:not([data-theme="light"]) .blog-home-header .header-wordmark {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .blog-home-mark,
[data-theme="light"] .blog-home-header .header-wordmark {
    filter: none;
}

.blog-home-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.blog-home-center a {
    text-decoration: none;
    display: block;
}

.blog-home-links {
    position: absolute;
    right: 34px;
    top: 0;
    height: 92px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.blog-home-header .little-link,
.blog-home-header .little-link:visited {
    color: var(--text);
}

.blog-home-links:hover .little-link {
    opacity: 0.35;
}

.blog-home-links:hover .little-link:hover {
    opacity: 1;
}

.blog-home-links .little-link:hover {
    background-image: none !important;
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .blog-home-nav {
        position: static;
        height: auto;
        grid-template-columns: auto 1fr;
        display: grid;
        padding: 16px;
        gap: 14px;
    }

    .blog-home-brand {
        position: static;
        height: auto;
        justify-self: start;
    }

    .blog-home-center {
        position: static;
        transform: none;
        grid-column: 1 / -1;
        justify-self: center;
    }

    .blog-home-mark {
        height: 24px;
    }

    .blog-home-links {
        position: static;
        height: auto;
        grid-column: 1 / -1;
        justify-self: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .blog-home-links .little-link {
        font-size: 18px;
    }

    /* Add padding to typography inside blog posts */
    .post-title,
    .post-subhead,
    .post-type,
    .post-excerpt {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Base header container styles for post.html */
.header-container {
    width: 100%;
    margin: 0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-wordmark {
    width: 300px;
    height: auto;
    display: block;
}

/* Responsive wordmark sizing */
@media (max-width: 768px) {
    .header-container {
        padding: 30px 20px;
        justify-content: center;
    }
    
    .header-wordmark {
        width: 250px;
    }

    .blog-single-post .header-container {
        padding: 12px 16px 10px;
    }
}

.blog-main {
    padding: 0;
    background: var(--bg);
    background-size: auto;
    animation: none;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.blog-container {
    max-width: none;
    margin: 0;
}

.blog-post {
    min-height: clamp(300px, 40vh, 500px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    border-top: 1px solid var(--border-subtle);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    padding: 40px 20px;
}

.blog-post:last-child {
    border-bottom: 1px solid var(--border-subtle);
}

.blog-post:hover {
    background-color: var(--overlay-hover);
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-type {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: inline-block;
    border: 1.5px solid currentColor;
    border-radius: 100px;
    padding: 4px 14px;
    margin: 0 0 16px 0;
}

.post-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 8vw, 7.5rem);
    font-weight: 400;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.post-excerpt {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 560px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.blog-post:hover .post-excerpt {
    max-height: 80px;
    opacity: 1;
    margin: 20px 0 0 0;
}

.post-subhead {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Latest Posts / Recent Posts Component */
.latest-posts {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 80px;
}

.latest-posts-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--bt-gutter, 40px);
}

.latest-posts-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 32px 0;
}

.latest-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.latest-post-link {
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.latest-post-link:hover {
    opacity: 0.6;
}

.latest-post-type {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    white-space: nowrap;
    border: 1.5px solid currentColor;
    border-radius: 100px;
    padding: 4px 14px;
}


.latest-post-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.3;
}

/* Single post type badge */
.blog-post-type-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--bt-ink-muted);
    display: inline-block;
    width: fit-content;
    border: 1.5px solid currentColor;
    border-radius: 100px;
    padding: 4px 14px;
    margin: 0;
}

/* Single Blog Post Styles */
.blog-post-main {
    background: var(--bg);
    min-height: 100vh;
    padding: 0 0 60px 0;
}

.post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Post Title */
.post-container .post-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.25rem, 8vw, 7.5rem);
    font-weight: 400;
    color: var(--text);
    text-align: center;
    margin: 40px 0;
    line-height: 1.1;
}

/* Post Captions */
.post-caption {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(16px, 2vw, 32px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    text-align: center;
    margin: 20px 0;
}

.top-caption {
    margin-bottom: 40px;
}

.bottom-caption {
    margin-top: 40px;
}

.image-caption {
    margin-top: 20px;
}

.callout-caption {
    margin-top: 20px;
}

/* Post Content */
.post-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-body {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    margin: 30px 0;
    text-align: left;
    max-width: 65ch; /* optimal line length ~50-75 characters */
}

/* Post Image Container */
.post-image-container {
    width: 100%;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Post Callout Container */
.post-callout-container {
    width: 100%;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.post-callout {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.25rem, 8vw, 6.8125rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    color: var(--text);
    text-align: center;
    margin: 0;
}

/* Blog Typography System */
.blog-type-system {
    --bt-bg: #f5f2ee;
    --bt-ink: #211a16;
    --bt-soft: #e6ddd2;
    --bt-ink-muted: rgba(33, 26, 22, 0.72);
    --bt-rule: rgba(33, 26, 22, 0.18);
    --bt-accent: rgba(33, 26, 22, 0.9);
    --bt-accent-soft: rgba(230, 221, 210, 0.62);
    --bt-gutter: clamp(16px, 3vw, 28px);
    --bt-bleed-width: calc(100vw - (100vw - 100%));
    --bt-content-max: min(92%, 1100px);
    --bt-callout-max: 19ch;
    --bt-space-1: clamp(8px, 0.7vw, 12px);
    --bt-space-2: clamp(12px, 1vw, 18px);
    --bt-space-3: clamp(16px, 1.6vw, 26px);
    --bt-space-4: clamp(22px, 2.2vw, 34px);
    --bt-space-5: clamp(30px, 3vw, 48px);
    --bt-space-6: clamp(42px, 4vw, 72px);
    --bt-space-7: clamp(56px, 5vw, 96px);
    color: var(--bt-ink);
    background: var(--bt-bg);
}

@supports (color: color-mix(in srgb, black 50%, white 50%)) {
    .blog-type-system {
        --bt-ink-muted: color-mix(in srgb, var(--bt-ink) 66%, var(--bt-bg) 34%);
        --bt-rule: color-mix(in srgb, var(--bt-ink) 20%, var(--bt-bg) 80%);
        --bt-accent: color-mix(in srgb, var(--bt-ink) 88%, var(--bt-bg) 12%);
        --bt-accent-soft: color-mix(in srgb, var(--bt-soft) 72%, var(--bt-bg) 28%);
    }
}

/* Per-post 3-swatch themes: background, text, soft */
.post-theme-paper {
    --bt-bg: #f5f2ee;
    --bt-ink: #211a16;
    --bt-soft: #e6ddd2;
}

.post-theme-smoke {
    --bt-bg: #eef1f0;
    --bt-ink: #1e2523;
    --bt-soft: #d8dfdc;
}

.post-theme-olive {
    --bt-bg: #f1f2eb;
    --bt-ink: #202318;
    --bt-soft: #dee2d0;
}

/* Light mode: align editorial surfaces to the slate site palette */
[data-theme="light"] .blog-type-system {
    --bt-bg: var(--bg);
    --bt-ink: #2d3b4b;
    --bt-soft: #d5dde7;
}

[data-theme="light"] .post-theme-paper {
    --bt-bg: #e4eaf1;
    --bt-ink: #314052;
    --bt-soft: #d4dde8;
}

[data-theme="light"] .post-theme-smoke {
    --bt-bg: #dde5ee;
    --bt-ink: #2b3949;
    --bt-soft: #cfd8e3;
}

[data-theme="light"] .post-theme-olive {
    --bt-bg: #dfe6ec;
    --bt-ink: #2f3b46;
    --bt-soft: #d2dbe3;
}

.blog-type-system .blog-post-main {
    background: var(--bt-bg);
    padding: clamp(20px, 3vw, 44px) 0 80px;
}

/* Blog list feed in type-system context */
.blog-type-system .blog-main {
    background: var(--bt-bg);
}

.blog-type-system .blog-container {
    background: var(--bt-bg);
}

.blog-type-system .blog-post {
    border-color: var(--bt-rule);
}

.blog-type-system .blog-post:hover {
    background-color: var(--overlay);
}

.blog-type-system .post-title {
    color: var(--bt-ink);
}

.blog-type-system .post-type {
    color: var(--bt-ink-muted);
}

.blog-type-system .post-excerpt {
    color: var(--bt-ink-muted);
}

/* Latest posts in type-system context */
.blog-type-system .latest-posts {
    border-color: var(--bt-rule);
    background: var(--bt-bg);
}

.blog-type-system .latest-posts-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--bt-gutter);
}

.blog-type-system .latest-posts-label {
    color: var(--bt-ink-muted);
}

.blog-type-system .latest-post-link {
    color: var(--bt-ink);
}

.blog-type-system .latest-post-type,
.blog-type-system .latest-post-separator {
    color: var(--bt-ink-muted);
}

.blog-single-post .header-container {
    padding: 14px 0 12px;
}

.blog-single-post .blog-post-main {
    padding-top: clamp(8px, 1.2vw, 16px);
}

.blog-type-system .blog-header {
    background: var(--bt-bg);
    border-bottom: 1px solid var(--bt-rule);
}

.blog-type-system .blog-home-header {
    background: var(--bg);
    border-bottom: none;
}

.blog-type-system .blog-home-header .blog-home-nav-shell {
    background: var(--bg);
}

.blog-type-system .new-footer {
    background: var(--bt-bg);
    border-top: 1px solid var(--bt-rule);
}

.blog-type-system .footer-column-title {
    color: var(--bt-ink);
}

.blog-type-system .footer-link {
    color: var(--bt-ink-muted);
}

.blog-type-system .footer-link:hover {
    color: var(--bt-ink);
}

.blog-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--bt-gutter);
    display: grid;
    gap: var(--bt-space-5);
}

.blog-article .post-content {
    max-width: var(--bt-content-max);
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--bt-space-3);
}

.blog-article .post-callout-container {
    max-width: var(--bt-content-max);
    margin: 0;
    padding: 0;
}

.blog-article .blog-kicker,
.blog-article .blog-dek,
.blog-article .blog-meta,
.blog-article .blog-caption,
.blog-article .blog-citation,
.blog-article .blog-sidebar {
    max-width: var(--bt-content-max);
}

.blog-article .blog-kicker + .blog-h1 { margin-top: calc(var(--bt-space-3) * -1); }
.blog-article .blog-h1 + .blog-dek { margin-top: calc(var(--bt-space-4) * -1); }
.blog-article .blog-dek + .blog-meta { margin-top: calc(var(--bt-space-4) * -1); }
.blog-article .blog-full-bleed + .blog-caption,
.blog-article .blog-image-duo + .blog-caption { margin-top: calc(var(--bt-space-4) * -1); }

.blog-components-main {
    background: var(--bt-bg);
    min-height: 100vh;
    padding: 40px 0 70px;
}

.blog-components-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--bt-gutter);
}

.component-section {
    border-top: 1px solid var(--bt-rule);
    padding: 36px 0 44px;
}

.component-section:first-child {
    border-top: none;
    padding-top: 12px;
}

.component-grid {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 44px);
}

.component-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bt-ink-muted);
    margin-top: 6px;
}

.component-demo {
    min-width: 0;
}

.component-stack > * + * {
    margin-top: 20px;
}

.blog-kicker {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--bt-ink-muted);
}

.blog-h1,
.blog-h2,
.blog-h3,
.blog-h4,
.blog-h5,
.blog-h6 {
    color: var(--bt-ink);
    margin: 0;
}

.blog-h1,
.blog-h2 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

.blog-h3,
.blog-h4,
.blog-h5,
.blog-h6 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
}

.blog-h1 { font-size: clamp(2.5rem, 7.5vw, 6.2rem); line-height: 0.98; }
.blog-h2 { font-size: clamp(2rem, 5.8vw, 4.4rem); line-height: 1.04; }
.blog-h3 { font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.08; }
.blog-h4 { font-size: clamp(1.25rem, 2.7vw, 2.15rem); line-height: 1.15; }
.blog-h5 { font-size: clamp(1.05rem, 2.2vw, 1.55rem); line-height: 1.22; }
.blog-h6 { font-size: clamp(0.95rem, 1.9vw, 1.2rem); line-height: 1.28; letter-spacing: 0.2px; }

.blog-dek,
.blog-lede,
.blog-body,
.blog-meta,
.blog-caption,
.blog-citation,
.blog-list {
    font-family: 'EB Garamond', serif;
}

.blog-dek {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    line-height: 1.3;
    color: var(--bt-ink-muted);
    max-width: 100%;
    margin: 0;
}

.blog-lede {
    font-size: clamp(1.35rem, 3.1vw, 2.2rem);
    line-height: 1.4;
    max-width: 100%;
    margin: 0;
}

.blog-body {
    font-size: clamp(1.15rem, 2.2vw, 1.95rem);
    line-height: 1.56;
    max-width: 100%;
    margin: 0;
}

.blog-meta {
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    line-height: 1.4;
    font-style: italic;
    color: var(--bt-ink-muted);
    margin: 0;
}

.blog-callout {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 7.1vw, 5.75rem);
    line-height: 1.02;
    font-style: italic;
    text-wrap: balance;
    max-width: var(--bt-callout-max);
    margin: 0;
}

.blog-callout-caption {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(11px, 1.35vw, 13px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bt-ink-muted);
    margin-top: 10px;
}

.blog-sidebar {
    border-left: 3px solid var(--bt-accent);
    background: var(--bt-accent-soft);
    padding: 16px 16px 18px;
    max-width: 42ch;
}

.blog-sidebar-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--bt-accent);
    margin: 0 0 8px 0;
}

.blog-sidebar-copy {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.4;
    margin: 0;
}

.blog-citation {
    border-top: 1px solid var(--bt-rule);
    padding-top: 12px;
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    line-height: 1.35;
    color: var(--bt-ink-muted);
    font-style: italic;
    max-width: 60ch;
    margin: 0;
}

.blog-quote {
    border-left: 2px solid var(--bt-ink);
    padding: 4px 0 8px 18px;
    max-width: 56ch;
}

.blog-quote-text {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.2;
    margin: 0;
}

.blog-quote-attribution {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bt-ink-muted);
    margin: 10px 0 0 0;
}

.blog-figure {
    width: 100%;
    margin: 0;
}

.blog-image {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.blog-full-bleed {
    width: var(--bt-bleed-width);
    margin-left: calc(50% - (var(--bt-bleed-width) / 2));
    margin-right: calc(50% - (var(--bt-bleed-width) / 2));
    overflow: hidden;
}

.blog-full-bleed .blog-image {
    border-radius: 0;
}

.blog-image-duo {
    width: var(--bt-bleed-width);
    margin-left: calc(50% - (var(--bt-bleed-width) / 2));
    margin-right: calc(50% - (var(--bt-bleed-width) / 2));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.blog-image-duo-item {
    margin: 0;
}

.blog-image-duo-item .blog-image {
    border-radius: 0;
}

.blog-image-placeholder {
    aspect-ratio: 1 / 1;
    min-height: clamp(240px, 38vw, 560px);
    width: 100%;
}

.blog-image-placeholder.warm {
    background: #d9a45d;
}

.blog-image-placeholder.cool {
    background: #3f66c8;
}

.blog-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bt-space-3);
}

.blog-theme-card {
    border: 1px solid var(--bt-rule);
    padding: var(--bt-space-2);
    display: grid;
    gap: var(--bt-space-2);
    background: var(--bt-bg);
}

.blog-theme-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--bt-ink-muted);
}

.blog-theme-swatches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.blog-theme-swatch {
    aspect-ratio: 1 / 1;
}

.blog-split {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.blog-split-text {
    max-width: 36ch;
}

.blog-split-text > * + * {
    margin-top: 14px;
}

.blog-split-media {
    margin: 0;
}

.blog-split-media .blog-image,
.blog-split-media .blog-image-placeholder {
    width: 100%;
    border-radius: 0;
}

.blog-split.image-left .blog-split-media {
    order: 1;
}

.blog-split.image-left .blog-split-text {
    order: 2;
}

.blog-caption {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.35;
    color: var(--bt-ink-muted);
    margin-top: 10px;
}

.blog-list {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.5;
    margin: 0;
    padding-left: 1.25em;
}

.blog-list li + li {
    margin-top: 6px;
}

@media (max-width: 960px) {
    .component-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .component-label {
        margin-top: 0;
    }

    .blog-image-duo {
        grid-template-columns: 1fr;
    }

    .blog-split {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-split.image-left .blog-split-text {
        order: 1;
    }

    .blog-split.image-left .blog-split-media {
        order: 2;
    }

    .blog-theme-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Hamburger Navigation */
.mobile-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: none;
    z-index: 1000;
    display: block;
    transition: border-color 0.2s ease;
    opacity: 1;
}

.mobile-nav.visible {
    top: 0;
    opacity: 1;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px 22px;
    height: 92px;
    box-sizing: border-box;
}

.mobile-nav-logo a {
    text-decoration: none;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 50px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0px, 0px);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -15px;
    margin-top: -1.5px;
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(100%);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0px, 0px);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -15px;
    margin-top: -1.5px;
}

.mobile-menu {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 24px 20px 36px;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-link {
    font-size: clamp(31px, 7.2vw, 47px) !important;
    font-weight: 500 !important;
    display: block;
    text-align: left;
    line-height: 1.04 !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    background-image: none !important;
    background: none !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    transform: none !important;
}

/* Opacity interaction for mobile menu */
.mobile-nav-links:hover .mobile-link {
    opacity: 0.5;
}

.mobile-nav-links:hover .mobile-link:hover {
    opacity: 1;
}

/* Touch interaction handled by JavaScript */

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Clean Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Hide lazy nav on mobile */
    .lazy-nav {
        display: none !important;
    }

    .lazy-drawer-nav {
        display: none !important;
    }
    
    /* Show mobile nav on mobile */
    .mobile-nav {
        display: block !important;
    }
    
    /* Show hero logo on mobile */
    .logo-section {
        display: block;
        padding: 20px 0 10px 0;
    }
    
    
    .nav-links {
        gap: 20px;
    }
    
    .hero-description {
        padding: 10px 20px 0 20px;
    }
    .project-hero-content,
    .opal-hero-content {
        padding: 0 20px;
    }

    .opal-bento-content {
        padding: 0 20px;
    }

    .opal-bento-section {
        padding: 12px 0 72px 0;
    }

    .opal-bento-section::before {
        height: 360px;
    }

    .opal-bento-header {
        margin-bottom: 20px;
    }

    .opal-bento-kicker {
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    .opal-bento-title {
        font-size: clamp(34px, 13vw, 58px);
        max-width: 100%;
    }

    .opal-bento-intro {
        font-size: 17px;
        max-width: 100%;
    }

    .opal-bento-style-options {
        margin-bottom: 18px;
    }

    .opal-bento-style-pill {
        font-size: 10px;
        letter-spacing: 0.6px;
        padding: 6px 10px;
    }

    .opal-bento-grid {
        gap: 14px;
    }

    .opal-bento-row {
        gap: 14px;
    }

    .opal-bento-row--2col,
    .opal-bento-row--3col,
    .opal-bento-row--66-33,
    .opal-bento-row--75-25 {
        grid-template-columns: minmax(0, 1fr);
    }

    .opal-bento-card {
        min-height: 0;
        border-radius: 22px;
        padding: 22px;
    }

    .opal-brand-chip {
        font-size: clamp(52px, 16vw, 80px);
    }

    .opal-bento-card-title {
        font-size: clamp(30px, 11vw, 52px);
        max-width: 100%;
    }

    .opal-bento-card-copy {
        font-size: 16px;
        max-width: 100%;
    }

    .opal-swatch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .opal-swatch {
        min-height: 124px;
    }

    .opal-token-list li {
        font-size: 13px;
    }

    .opal-type-sample-display {
        font-size: clamp(42px, 13vw, 66px);
    }

    .opal-type-sample-sans {
        font-size: clamp(18px, 7vw, 30px);
    }

    .opal-type-scale span {
        font-size: 10px;
    }

    .opal-hero-section .project-link a,
    .project-hero-section .project-link a {
        font-size: clamp(28px, 10vw, 60px);
    }
    
    .work {
        padding: 30px 0 0 0;
    }
    
    .section-title {
        margin: 0 0 20px 0;
    }
    
    .work-grid {
        gap: 24px;
        padding: 0 20px;
    }
    
    /* Project Details Mobile */
    .project-details-section {
        padding: 40px 0;
    }
    
    .project-details-2col {
        grid-template-columns: 1fr !important;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .detail-icon {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .detail-block p {
        font-size: 16px;
    }
    
    /* Project Link Mobile */
    .project-link a {
        font-size: 24px;
    }
    
    /* Project Grid Mobile */
    .project-grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .project-grid-3col {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .project-grid-single {
        margin-bottom: 30px;
    }
    
    .project-content {
        padding: 12px 0;
    }
    
    .project-title-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
    }
    
    .project-title {
        font-size: 72px;
        line-height: 1.0;
        margin: 0 0 12px 0;
    }
    
    .project-name {
        font-size: 72px !important;
        line-height: 1.0;
        margin-bottom: 12px;
    }
    
    .project-description {
        font-size: 24px !important;
        margin: 0 0 12px 0;
        display: block;
    }
    
    /* Force description to break onto new line on mobile */
    .project-title .project-description {
        display: block !important;
        margin-top: 12px;
        width: 100%;
    }
    
    /* Ensure project title content flows properly on mobile */
    .project-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Remove top spacing on project pills for mobile */
    .project-pills {
        margin-top: 0;
    }
    
    .project-cta-desktop {
        display: none;
    }
    
    .project-cta-mobile {
        display: flex;
        align-self: flex-start;
        opacity: 1;
        transform: translateX(0);
        margin-top: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .post-container,
    .post-content {
        padding: 0 10px;
    }

    .post-image-container,
    .post-callout-container {
        padding: 0 20px;
    }
}

/* Mobile device detection styles */
body.mobile .project-cta-desktop {
    display: none;
}

body.mobile .project-cta-mobile {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

/* Very small browser widths */
@media (max-width: 480px) {
    .project-title {
        font-size: 72px !important;
        line-height: 1.0;
        margin: 0 0 12px 0;
    }
    
    .project-name {
        font-size: 72px !important;
        line-height: 1.0;
        margin-bottom: 12px;
    }
    
    .project-description {
        font-size: 24px !important;
        margin: 0 0 12px 0;
        display: block;
    }
    
    /* Force description to break onto new line on very small screens */
    .project-title .project-description {
        display: block !important;
        margin-top: 12px;
        width: 100%;
    }
    
    /* Ensure project title content flows properly on very small screens */
    .project-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Remove top spacing on project pills for very small screens */
    .project-pills {
        margin-top: 0;
    }
}

/* Project Detail Pages */
.project-detail {
    padding: 60px 0;
}

.project-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Project Details Section - 2 Column Layout */
.project-details-section {
    padding: 60px 0;
    background: #ffffff;
}

.project-details-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.detail-column {
    display: flex;
    flex-direction: column;
}

.detail-block {
    height: 100%;
}

.detail-icon {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.detail-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000000;
}

.detail-headline {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin: 20px 0 20px 0;
    line-height: 1.2;
}

.detail-block p {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
}

/* Detail-section project link (scoped to avoid hero conflicts) */
.project-details-section .project-link {
    margin-top: 20px !important;
}

.project-details-section .project-link a {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 36px;
    font-weight: 400;
    color: #2a70ea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-details-section .project-link a:hover {
    color: #1a5fd9;
}

/* Project Grid Section */
.project-grid-section {
    padding: 0;
    background: #ffffff;
}

.project-grid-single {
    margin-bottom: 40px;
}

.project-grid-single img {
    width: 100%;
    height: auto;
    border-radius: 0; /* remove rounding for this project */
    display: block;
}

/* Centered, non-bleed image blocks (e.g., ThirdHome keys and badge) */
.keys-centered {
    width: 100%;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.keys-centered img {
    width: min(900px, 100%);
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Keys pattern spacing */
.keys-pattern {
    margin-top: 120px;
    margin-bottom: 120px;
}

/* Badge scaled down */
.badge-centered img {
    width: min(450px, 50%);
}

.project-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.project-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.grid-item {
    overflow: hidden;
    border-radius: 12px;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.project-hero-image {
    margin: 0 0 40px 0;
    border-radius: 0;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Full-bleed behavior for ThirdHome page */
.thirdhome-fullbleed {
    padding: 0;
    background: #ffffff;
}

.thirdhome-fullbleed .project-detail-content {
    max-width: none;
    padding: 0;
}

.thirdhome-fullbleed .project-grid-single {
    margin: 0; /* remove space between images for true bleed */
}

.thirdhome-fullbleed .project-grid-single img {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
}

.project-meta {
    margin: 0 0 60px 0;
    text-align: center;
}

.project-description-detail {
    font-family: 'EB Garamond', serif;
    line-height: 1.6;
    color: #ffffff;
}

.project-description-detail h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.project-description-detail h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    margin: 40px 0 15px 0;
}

.project-description-detail p {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #cccccc;
}

/* Project Header with Back Link */
.project-header {
    position: relative;
    width: 100%;
}

/* Cascade reveal delays for project pages */
.project-header .back-link.reveal {
    transition-delay: 0ms;
}

.project-header .hero-description.reveal {
    transition-delay: 200ms !important;
}

.project-details-2col .detail-column:nth-child(1) .detail-block.reveal {
    transition-delay: 400ms;
}

.project-details-2col .detail-column:nth-child(2) .detail-block.reveal {
    transition-delay: 600ms;
}

.back-link {
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 0;
    left: 40px;
    opacity: 1;
    z-index: 10;
}

.back-link:hover {
    opacity: 0.5 !important;
    transition: opacity 0.3s ease;
}

/* Adjust hero description when back link is present */
.project-header .hero-description {
    padding-top: 40px;
    transition: font-weight 0.3s ease;
}

/* Bold project title on hover */
.project-header:hover .hero-description {
    font-weight: 500;
}

/* Logo Grid Styles */
.logo-grid-section {
    margin-top: 80px;
    width: 100vw;
    padding: 0;
    box-sizing: border-box;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.logo-item {
    aspect-ratio: 1;
    background: rgb(255, 255, 255);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    filter: grayscale(100%);
    cursor: pointer;
    transform: translateY(0);
}

.logo-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered loading animation for first row */
.logo-item:nth-child(1).loaded {
    transition-delay: 0.1s;
}

.logo-item:nth-child(2).loaded {
    transition-delay: 0.2s;
}

.logo-item:nth-child(3).loaded {
    transition-delay: 0.3s;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(0);
    background: rgb(255, 255, 255);
}

.logo-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.logo-item:hover .logo-image {
    filter: grayscale(0%);
}

.logo-placeholder {
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-placeholder {
    background: rgba(255, 255, 255, 0.3);
}

/* Tablet - 2 column grid */
@media (max-width: 1024px) and (min-width: 769px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    /* First row is first 2 items on tablet */
    .logo-item:nth-child(3).loaded {
        transition-delay: 0.1s;
    }
}

/* Mobile - 1 column grid */
@media (max-width: 768px) {
    .logo-grid-section {
        margin-top: 40px;
        width: 100%;
        padding: 0;
        position: relative;
        left: 0;
    }
    
    .logo-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .logo-item {
        max-width: none;
        margin: 0;
    }
    
    /* First row is just first item on mobile */
    .logo-item:nth-child(2).loaded,
    .logo-item:nth-child(3).loaded {
        transition-delay: 0.1s;
    }
}

/* New Footer Styles */
.new-footer {
    background: var(--bg);
    padding: 20px 0 40px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-container {
    width: 100%;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    box-sizing: border-box;
}

/* Footer column styles */
.footer-column {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Footer column titles */
.footer-column-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Unified footer link styles */
.footer-link {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.footer-link:hover {
    color: var(--text);
}

/* Footer hover interactions - fade other items when hovering over navigation */
.footer-nav-links:hover .footer-link {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-nav-links:hover .footer-link:hover {
    opacity: 1;
}

/* Footer hover interactions - fade other items when hovering over social links */
.footer-social-links:hover .footer-link {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-social-links:hover .footer-link:hover {
    opacity: 1;
}

/* Column 1: Navigation Links */
.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Footer vertical rules - simple approach */
.footer-container {
    position: relative;
}

.footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(25% + 20px);
    width: 1px;
    background: var(--border);
    z-index: 1;
}

.footer-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% + 20px);
    width: 1px;
    background: var(--border);
    z-index: 1;
}

/* Third vertical rule using a pseudo-element on footer-social */
.footer-social::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -20px;
    width: 1px;
    background: var(--border);
    z-index: 1;
}

/* Column 2: Navigation */
.footer-nav {
    padding-left: 20px;
    padding-right: 20px;
}

/* Column 3: Social Links */
.footer-social {
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Column 4: Newsletter */
.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 20px;
    text-align: center;
}

/* Daily Spiral Wordmark */
.newsletter-wordmark {
    text-align: center;
    position: relative;
    top: 30px;
}

.newsletter-wordmark a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.newsletter-wordmark a:hover {
    opacity: 0.8;
}

.daily-spiral-wordmark {
    height: 30px;
    width: auto;
    transition: filter 0.2s ease;
}

html:not([data-theme="light"]) .daily-spiral-wordmark {
    filter: invert(1);
}

[data-theme="light"] .daily-spiral-wordmark {
    filter: none;
}

.newsletter-description {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    text-align: center;
    position: relative;
    top: 20px;
}

.newsletter-form {
    margin-top: 20px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .newsletter-input {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
}

[data-theme="light"] .newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .newsletter-input:focus {
    border-color: rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-submit {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 30px;
    background: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-submit:hover {
    background: #357abd;
}

/* Large Tablet Responsive - 2x2 grid */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
        width: 100%;
    }
    
    .footer-link {
        font-size: 15px;
    }
    
    .newsletter-description {
        font-size: 13px;
    }
    
    /* Remove vertical rules for tablet */
    .footer-container::before,
    .footer-container::after,
    .footer-social::after {
        display: none;
    }
    
    .footer-nav,
    .footer-social,
    .newsletter-content {
        padding: 0;
    }
    
    .daily-spiral-wordmark {
        height: 25px;
    }
}

/* Mobile Responsive - Single column */
@media (max-width: 768px) {
    .new-footer {
        padding: 20px 0 40px 0;
        margin-top: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        width: 100%;
    }
    
    .footer-link {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .newsletter-description {
        font-size: 12px;
    }
    
    .newsletter-input,
    .newsletter-submit {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* Remove vertical rules for mobile */
    .footer-container::before,
    .footer-container::after,
    .footer-social::after {
        display: none;
    }
    
    .footer-nav,
    .footer-social,
    .newsletter-content {
        padding: 0;
    }
    
    .daily-spiral-wordmark {
        height: 22px;
    }
}

/* About Page Styles */
.about-page {
    padding: 0 0 120px 0;
    min-height: 100vh;
    margin: 0 20px;
    box-sizing: border-box;
    overflow: visible;
}

.about-container {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* About Title */
.about-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(84px, 29vw, 360px);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 60px 0;
    line-height: 0.9;
    text-align: left;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: visible;
    display: block;
}

/* Quote Section */
.about-quote {
    margin-bottom: 80px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.quote-text { 
    font-family: 'Instrument Serif', serif;
    font-size: clamp(16px, 4.8vw, 92px);
    font-style: italic;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 20px 0;
    line-height: 1;
    text-align: left;
    width: 100%;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
    white-space: nowrap;
    overflow-wrap: normal;
    word-wrap: normal;
    letter-spacing: 0.02em;
}

.quote-attribution {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    box-sizing: border-box;
}

.quote-line {
    width: 40px;
    height: 1px;
    background-color: var(--text);
}

.quote-avatar {
    width: auto;
    height: clamp(32px, 5vw, 82px);
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1;
}

.quote-name {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 4.8vw, 82px);
    font-style: italic;
    font-weight: 400;
    color: var(--text);
    line-height: 1.1;
}

/* About Content Grid */
.about-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
    width: 100%;
    margin-bottom: 60px;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 60px;
    min-width: 0;
}

.about-column:first-child {
    grid-column: 1;
}

.about-column:last-child {
    grid-column: 2;
    display: flex;
    visibility: visible;
    width: 100%;
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
}

/* Special handling for Areas of Work section */
.about-section:has(.areas-grid) {
    width: 100%;
}

.section-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    display: block;
    padding: 0;
    text-align: left;
}

.section-label::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--text);
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
}

.section-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Areas of Work Grid */
.areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.areas-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.area-item {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(20px, 4vw, 64px);
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    text-align: left;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-page {
        padding: 40px 0 80px 0;
    }
    
    .about-page {
        margin: 0 20px;
    }
    
    .about-container {
        padding: 0;
    }
    
    .about-title {
        margin-bottom: 40px;
        padding: 0;
    }
    
    .about-quote {
        margin-bottom: 60px;
        padding: 0;
    }
    
    .quote-text {
        padding: 0;
    }
    
    .quote-attribution {
        padding: 0;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-column {
        gap: 40px;
    }

    .about-column:first-child,
    .about-column:last-child {
        grid-column: 1 / -1;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .quote-attribution {
        gap: 12px;
    }
    
    .quote-avatar {
        width: 40px;
        height: 40px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Monthly Favorites — Post Component
   ───────────────────────────────────────────────────────────────────────────── */

.favorites-section {
    max-width: var(--bt-content-max);
    display: grid;
    gap: var(--bt-space-4);
}

.favorites-category {
    font-family: var(--bt-font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bt-ink-muted);
    padding-bottom: var(--bt-space-2);
    border-bottom: 1px solid var(--bt-rule);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--bt-space-3);
}

.favorites-card {
    background: var(--bt-soft);
    border-radius: 4px;
    padding: var(--bt-space-3) var(--bt-space-4);
    display: grid;
    gap: var(--bt-space-1);
}

.favorites-card-title {
    font-family: var(--bt-font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--bt-ink);
    margin: 0;
}

.favorites-card-creator {
    font-family: var(--bt-font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bt-ink-muted);
    margin: 0;
}

.favorites-card-note {
    font-family: var(--bt-font-body);
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--bt-ink);
    margin: 0;
    padding-top: var(--bt-space-1);
}

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