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

html {
    scroll-behavior: smooth;
}

/* View Transitions */
@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
    background: var(--black);
}

/* Default: vertical slide (for blog) */
::view-transition-old(root) {
    animation: 0.3s ease-out both slide-down;
}

::view-transition-new(root) {
    animation: 0.3s ease-out both slide-up;
}

/* Directional: horizontal slide (for signals) */
.nav-forward::view-transition-old(root) {
    animation: 0.3s ease-out both slide-out-left;
}

.nav-forward::view-transition-new(root) {
    animation: 0.3s ease-out both slide-in-right;
}

.nav-back::view-transition-old(root) {
    animation: 0.3s ease-out both slide-out-right;
}

.nav-back::view-transition-new(root) {
    animation: 0.3s ease-out both slide-in-left;
}

/* Directional: top-down slide (for returning to archive) */
.nav-up::view-transition-old(root) {
    animation: 0.3s ease-out both slide-to-bottom;
}

.nav-up::view-transition-new(root) {
    animation: 0.3s ease-out both slide-from-top;
}

/* Signal page: keep nav and pagination static */
::view-transition-old(signal-nav),
::view-transition-new(signal-nav),
::view-transition-old(signal-pagination),
::view-transition-new(signal-pagination) {
    animation: none;
}

/* Signal page: animate only the content */
.nav-forward::view-transition-old(signal-content) {
    animation: 0.3s ease-out both slide-out-left;
}

.nav-forward::view-transition-new(signal-content) {
    animation: 0.3s ease-out both slide-in-right;
}

.nav-back::view-transition-old(signal-content) {
    animation: 0.3s ease-out both slide-out-right;
}

.nav-back::view-transition-new(signal-content) {
    animation: 0.3s ease-out both slide-in-left;
}

@keyframes slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-down {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20%); opacity: 0; }
}

@keyframes slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slide-out-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes slide-in-left {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slide-out-right {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes slide-from-top {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-to-bottom {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20%); opacity: 0; }
}

:root {
    /* Colors */
    --black: #0f0f0f;
    --white: #f5f5f5;
    --yellow: #ffde59;
    --red: #ff3b3b;
    --blue: #3b5eff;
    --gray: #888;

    /* Type Scale (1.25 ratio) */
    --text-display: 4rem;
    --text-h1: 2.5rem;
    --text-h2: 2rem;
    --text-body-blog: 1.375rem;
    --text-body-lg: 1.25rem;
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-caption: 0.75rem;

    /* Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;

    /* Font Families */
    /* --font-sans: 'Space Grotesk', sans-serif; */
    --font-sans: 'Inter', sans-serif;
    /* --font-serif: 'Libre Baskerville', serif; */
    --font-serif: 'Source Serif 4', serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

/* Grain overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation - scattered */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: var(--text-body);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--text-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
}

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

.nav-links:has(a:hover) a {
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

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

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero - clean, bottom-aligned */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10rem 4rem 6rem;
    position: relative;
    /* background:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        var(--black);
    background-size: 100px 100px, 100px 100px, 100%;
    */
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-label {
    display: inline-block;
    font-size: var(--text-caption);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(var(--text-h2), 5vw, var(--text-display));
    font-weight: 400;
    line-height: var(--leading-snug);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--yellow);
}

/* Section - broken grid */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 3px solid var(--black);
    padding-bottom: 1rem;
}

.section-title {
    font-size: var(--text-h1);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: var(--text-body);
    font-style: italic;
    opacity: 0.6;
}

/* Now - cutout style */
.now-section {
    background: var(--yellow);
    padding: 4rem;
    margin: 2rem auto;
    max-width: 1400px;
    position: relative;
}

.now-section::before {
    content: 'NOW';
    position: absolute;
    top: -2rem;
    left: 2rem;
    font-size: var(--text-display);
    font-weight: 700;
    color: var(--black);
    opacity: 0.1;
}

.now-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.now-text {
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
}

.now-lead {
    font-size: var(--text-h2);
    line-height: var(--leading-snug);
    margin-bottom: 1.5rem;
}

.now-text p + p {
    margin-top: 1rem;
}

.now-text a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.now-text a:hover {
    opacity: 0.6;
}

.now-text strong {
    background: var(--black);
    color: var(--yellow);
    padding: 0 0.3rem;
}

.now-list {
    list-style: none;
    font-family: var(--font-mono);
}

.now-list li {
    padding: 1rem 0;
    border-bottom: 2px dashed var(--black);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.now-list-label {
    font-size: var(--text-caption);
    text-transform: uppercase;
    flex-shrink: 0;
}

.now-list-value {
    font-weight: 600;
    text-align: right;
}

/* Synthesis - clean grid */
.synthesis-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.synthesis-card {
    display: block;
    background: var(--white);
    border: 2px solid var(--black);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.synthesis-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0 var(--black);
}

/* Fade siblings on hover */
.synthesis-collage:has(.synthesis-card:hover) .synthesis-card {
    opacity: 0.4;
    transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.synthesis-collage:has(.synthesis-card:hover) .synthesis-card:hover {
    opacity: 1;
}

/*
.synthesis-card:nth-child(2) {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.synthesis-card:nth-child(4) {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
*/

.card-number {
    font-size: var(--text-display);
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.card-category {
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: currentColor;
    background-color: var(--yellow);
    color: var(--black);
}

.card-title {
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.card-excerpt {
    font-family: var(--font-serif);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    opacity: 0.8;
}

.card-meta {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
}

/* Archive buttons */
.synthesis-footer,
.signals-footer {
    margin-top: 4rem;
    text-align: center;
}

.archive-btn {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
}

.archive-btn:hover {
    background: var(--white);
    color: var(--black);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--black);
}

.archive-btn--dark {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.archive-btn--dark:hover {
    background: var(--black);
    color: var(--white);
    box-shadow: 3px 3px 0 var(--white);
}

/* Signals - tape/notes style */
.signals-section {
    background: var(--black);
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--white);
    padding: 6rem 2rem;
    margin: 4rem 0;
}

.signals-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: flex;
    align-items: baseline;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
}

.signals-title {
    font-size: var(--text-h1);
    font-weight: 700;
    text-transform: uppercase;
}

.signals-subtitle {
    font-family: var(--font-serif);
    font-size: var(--text-body);
    font-style: italic;
    opacity: 0.6;
}

.signals-wall {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.signal-note {
    display: block;
    text-decoration: none;
    background: var(--white);
    color: var(--black);
    padding: 1.5rem;
    width: 280px;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.signal-note:nth-child(1) { transform: rotate(-3deg); }
.signal-note:nth-child(2) { transform: rotate(2deg); margin-top: 2rem; }
.signal-note:nth-child(3) { transform: rotate(-1deg); margin-top: -1rem; }
.signal-note:nth-child(4) { transform: rotate(3deg); margin-top: 3rem; }
.signal-note:nth-child(5) { transform: rotate(-2deg); margin-top: 1rem; }
.signal-note:nth-child(6) { transform: rotate(1deg); margin-top: -2rem; }

.signal-note.hovered {
    z-index: 10;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
}

.signal-note::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: var(--yellow);
    opacity: 0.8;
}

.signal-date {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.signal-text {
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

.signal-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--black);
    color: var(--white);
    padding: 0.25rem 0.5rem;
}

/* About section */
.about-section {
    background: var(--white);
}

.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.about-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2.5rem;
    background: #b8a99a;
}

.about-hero h2 {
    font-family: var(--font-serif);
    font-size: var(--text-h2);
    font-weight: 400;
    
    line-height: var(--leading-relaxed);
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}



.about-content hr {
    margin: 6rem auto;
    width: 15%
}

.about-block {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-light);
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
}

.about-block p + p {
    margin-top: 1.5rem;
}

.about-proof {
    background: var(--white);
    padding: 3rem 0;
    border: none;
    box-shadow: none;
}

.proof-title {
    font-family: var(--font-serif);
    font-size: var(--text-body-lg);
    font-style: italic;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 2rem;
}

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

.proof-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: opacity 0.25s ease;
}

.proof-item:first-child {
    padding-top: 0;
}

.proof-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.proof-item-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proof-role {
    font-family: var(--font-sans);
    font-size: var(--text-body-lg);
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.01em;
}

.proof-org {
    font-family: var(--font-sans);
    font-size: var(--text-small);
    color: var(--gray);
    
}

.proof-period {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--gray);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Hover effect - fade siblings */
.proof-list:has(.proof-item:hover) .proof-item {
    opacity: 0.4;
}

.proof-list:has(.proof-item:hover) .proof-item:hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .about-photo {
        width: 120px;
        height: 120px;
    }

    .about-quote {
        font-size: var(--text-body-lg);
    }

    .about-block {
        padding: 2rem 0;
    }

    .about-proof {
        padding: 2rem 0;
    }

    .proof-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .proof-period {
        text-align: left;
    }
}

/* Principles section */
.principles-section {
    background: var(--black);
    color: var(--white);
    padding: 8rem 0;
}

.principles-section .section-header {
    border-bottom-color: rgba(255,255,255,0.2);
    justify-content: center;
    text-align: center;
}

.principles-scroll {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.principle {
    margin-bottom: 4rem;
}

.principle:last-child {
    margin-bottom: 0;
}

.principle span {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-body-lg), 4vw, var(--text-h1));
    line-height: var(--leading-normal);
    background: linear-gradient(
        to right,
        var(--white) 50%,
        rgba(255, 255, 255, 0.2) 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.principle span em {
    font-style: italic;
}

@media (max-width: 768px) {
    .principles-section {
        padding: 4rem 0;
    }

    .principle {
        margin-bottom: 3rem;
    }

    .now-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .now-list-value {
        text-align: left;
    }
}

/* Blog */
.blog-body {
    background: var(--black);
}

.blog-page {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.blog-page::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.blog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.blog-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--text-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-nav .logo {
    font-size: var(--text-body);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.blog-nav a:not(.logo) {
    transition: color 0.2s ease;
}

.blog-nav a:not(.logo):hover {
    color: var(--yellow);
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 4rem;
}

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

.blog-category {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    padding: 0.5rem 1rem;
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.blog-title {
    font-size: clamp(var(--text-h1), 6vw, var(--text-display));
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.blog-title span {
    display: block;
}

.blog-meta {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    display: flex;
    gap: 2rem;
}

.blog-hero-img {
    margin: 4rem -4rem;
    
    position: relative;
    overflow: hidden;
}

.blog-hero-img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.blog-hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    white-space: nowrap;
}

.blog-content {
    font-size: var(--text-body-blog);
    line-height: var(--leading-relaxed);
}

.blog-content p {
    margin-bottom: 2rem;
    font-family: var(--font-serif);
}

.blog-content ul, ol {
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
}

.blog-content h2 {
    font-size: var(--text-h2);
    font-weight: 700;
    margin: 2rem 0;
    position: relative;
    display: inline-block;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--yellow);
}

.blog-content blockquote {
    background: var(--black);
    color: var(--white);
    padding: 2rem 3rem;
    margin: 3rem -2rem;
    font-family: var(--font-serif);
    font-size: var(--text-h2);
    font-style: italic;
    line-height: var(--leading-normal);
}

.blog-content .highlight {
    background: var(--yellow);
    padding: 0 0.25rem;
}

.blog-content .lead {
    font-size: var(--text-h2);
    font-family: var(--font-serif);
    line-height: var(--leading-relaxed);
}

.blog-content a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--gray);
    text-underline-offset: 3px;
    background: linear-gradient(to top, var(--yellow) 50%, transparent 50%);
    background-size: 100% 200%;
    background-position: top;
    transition: background-position 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-content a:hover {
    background-position: bottom;
    text-decoration-color: transparent;
}

.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.blog-content hr {
    margin: 4rem auto;
    width: 25%;
}

.video-embed {
    text-align: center;
    margin: 2rem 0;
}

.video-embed iframe {
    max-width: 100%;
}

/* Footnotes */
.footnote-ref a {
    font-size: 0.75em;
    vertical-align: super;
    text-decoration: none;
}

/* iMessage Component */
.imessage {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2rem 0;
    max-width: 400px;
    margin: 0 auto;
}

.imessage-bubble {
    max-width: 75%;
    padding: 10px 14px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    border-radius: 18px;
    opacity: 0;
}

.imessage.animate .imessage-bubble {
    animation: imessagePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.imessage-bubble.received {
    align-self: flex-start;
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px;
    transform-origin: left center;
}

.imessage-bubble.sent {
    align-self: flex-end;
    background: #007aff;
    color: #fff;
    border-bottom-right-radius: 4px;
    transform-origin: right center;
}

.imessage-bubble.sent + .imessage-bubble.received,
.imessage-bubble.received + .imessage-bubble.sent {
    margin-top: 8px;
}

@keyframes imessagePop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.imessage.animate .imessage-bubble:nth-child(1) { animation-delay: 0.3s; }
.imessage.animate .imessage-bubble:nth-child(2) { animation-delay: 1.2s; }
.imessage.animate .imessage-bubble:nth-child(3) { animation-delay: 2.0s; }
.imessage.animate .imessage-bubble:nth-child(4) { animation-delay: 3.6s; }
.imessage.animate .imessage-bubble:nth-child(5) { animation-delay: 5.0s; }
.imessage.animate .imessage-bubble:nth-child(6) { animation-delay: 6.2s; }
.imessage.animate .imessage-bubble:nth-child(7) { animation-delay: 8.0s; }

/* Newsletter Component */
.newsletter {
    background: var(--yellow);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--black);
}

.newsletter--blog { margin: 4rem -2rem 0; }
.newsletter--archive { margin-bottom: 3rem; }

.newsletter-title {
    font-size: var(--text-body-lg);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.newsletter-text {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: rgba(0,0,0,0.6);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    border: 2px solid var(--black);
    background: var(--white);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 3px 3px 0 var(--black);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 600;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: rgba(0,0,0,0.8);
}

.blog-img-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.blog-img-full img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-img-full figcaption {
    max-width: 900px;
    margin: 1rem auto 0;
    padding: 0 4rem;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: var(--gray);
}

figcaption {
    max-width: 900px;
    margin: 1rem auto 0;
    padding: 0 4rem;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: var(--gray);
}

/* Signal Detail */
.signal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    background: var(--black);
}

.signal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 100;
    view-transition-name: signal-nav;
}

.signal-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signal-nav .logo {
    font-weight: 700;
}

.signal-nav a:not(.logo) {
    transition: color 0.2s ease;
}

.signal-nav a:not(.logo):hover {
    color: var(--yellow);
}

.signal-container {
    max-width: 800px;
    text-align: center;
    view-transition-name: signal-content;
    overflow-wrap: break-word;
    word-break: break-word;
}

.signal-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 3rem auto;
}


.signal-tag-large {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
    margin-bottom: 2rem;
}

.signal-text-large {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-h2), 5vw, var(--text-display));
    font-weight: 400;
    line-height: var(--leading-snug);
    color: var(--white);
    margin-bottom: 3rem;
}

.signal-container p {
    font-family: var(--font-serif);
    font-size: var(--text-body-blog);
    line-height: var(--leading-normal);
    color: var(--white);
    margin-bottom: 2rem;
    text-align: left;
}

.signal-container a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--gray);
    text-underline-offset: 3px;
    background: linear-gradient(to top, var(--yellow) 50%, transparent 50%);
    background-size: 100% 200%;
    background-position: top;
    transition: background-position 0.2s ease, text-decoration-color 0.2s ease, color 0.2s ease;
}

.signal-container a:hover {
    color: var(--black);
    background-position: bottom;
    text-decoration-color: transparent;
}

.signal-container ul {
    font-family: var(--font-serif);
    font-size: var(--text-body-blog);
    line-height: var(--leading-normal);
    color: var(--white);
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    text-align: left;
}

.signal-container li {
    margin-bottom: 0.75rem;
}

.signal-container li::marker {
    color: var(--yellow);
}

.signal-container blockquote {
    background: var(--yellow);
    color: var(--black);
    padding: 2rem 3rem 1rem 3rem;
    margin: 2rem 0;
    text-align: left;
    border-radius: 4px;
}

.signal-container blockquote p {
    font-family: var(--font-serif);
    font-size: var(--text-h2);
    font-style: italic;
    line-height: var(--leading-relaxed);
    color: var(--black);
}

@media (max-width: 768px) {
    .signal-container blockquote {
        padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    }

    .signal-container blockquote p {
        font-size: var(--text-body-blog);
    }
}

.signal-date-large {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    font-family: var(--font-mono);
    font-size: var(--text-small);
    view-transition-name: signal-pagination;
}

.signal-pagination-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.signal-pagination-link:hover {
    color: var(--yellow);
}

.signal-pagination-disabled {
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
}

.signal-pagination-count {
    color: var(--gray);
}

/* Notes Archive */
.archive-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: var(--white);
}

.archive-container {
    max-width: 900px;
    margin: 0 auto;
}

.archive-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--black);
}

.archive-title {
    font-size: var(--text-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.archive-description {
    font-family: var(--font-serif);
    font-size: var(--text-body-lg);
    color: var(--gray);
    line-height: var(--leading-relaxed);
}

.archive-list {
    display: flex;
    flex-direction: column;
}

.archive-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    margin: 0 -2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.25s ease, background 0.2s ease, color 0.2s ease;
}

a.archive-item {
    cursor: pointer;
}

a.archive-item:hover {
    background: var(--black);
    color: var(--white);
}

a.archive-item:hover .archive-item-date,
a.archive-item:hover .archive-item-category,
a.archive-item:hover .archive-item-excerpt {
    color: var(--gray);
}

a.archive-item:hover .archive-item-title {
    color: var(--white);
}

.archive-list:has(.archive-item:hover) .archive-item {
    opacity: 0.3;
}

.archive-list:has(.archive-item:hover) .archive-item:hover {
    opacity: 1;
}

.archive-item-date {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.archive-item-category {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    opacity: 0.5;
}

.archive-item-title {
    font-size: var(--text-body-lg);
    font-weight: 600;
    line-height: var(--leading-snug);
}

.archive-item-excerpt {
    font-family: var(--font-serif);
    font-size: var(--text-body);
    color: var(--gray);
    line-height: var(--leading-normal);
}

.archive-item--upcoming {
    opacity: 0.5;
}

.archive-item--upcoming .archive-item-title::after {
    content: ' (Coming soon)';
    font-weight: 400;
    font-size: var(--text-small);
    color: var(--gray);
}

/* Thank You Page */
.thank-you-content {
    max-width: 650px;
    font-family: var(--font-serif);
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
}

.thank-you-content p {
    margin-bottom: 1.5rem;
}

.thank-you-content ul {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.thank-you-content li {
    margin-bottom: 0.75rem;
}

.thank-you-content a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--gray);
    text-underline-offset: 3px;
    background: linear-gradient(to top, var(--yellow) 50%, transparent 50%);
    background-size: 100% 200%;
    background-position: top;
    transition: background-position 0.2s ease, text-decoration-color 0.2s ease;
}

.thank-you-content a:hover {
    background-position: bottom;
    text-decoration-color: transparent;
}

/* Signals Archive */
.signals-archive-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.signal-archive-item {
    position: relative;
    background: var(--white);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.signal-archive-item[data-has-content="true"]::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent var(--yellow) transparent transparent;
}

.signal-archive-item:hover {
    transform: translate(-6px, -6px);
    box-shadow: 6px 6px 0 var(--black);
}

.signals-archive-wall:has(.signal-archive-item:hover) .signal-archive-item {
    opacity: 0.4;
}

.signals-archive-wall:has(.signal-archive-item:hover) .signal-archive-item:hover {
    opacity: 1;
}

.signal-archive-date {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signal-archive-text {
    font-family: var(--font-serif);
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
    flex: 1;
}

.signal-archive-tag {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    padding: 0.25rem 0.5rem;
    background: rgba(0,0,0,0.05);
    align-self: flex-start;
}

/* Contact / Newsletter */
#contact {
    background: var(--yellow);
    color: var(--black);
    padding: 4rem;
    margin: 6rem auto;
    max-width: 1400px;
    position: relative;
}

#contact::before {
    content: 'SIGN UP';
    position: absolute;
    top: -2rem;
    left: 2rem;
    font-size: var(--text-display);
    font-weight: 700;
    color: var(--black);
    opacity: 0.1;
}

.contact-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text h3 {
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: var(--leading-snug);
    margin-bottom: 0.75rem;
}

.contact-text p {
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
    opacity: 0.8;
}

.contact-newsletter form {
    display: flex;
    gap: 0.5rem;
}

.contact-newsletter input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
}

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

.contact-newsletter input:focus {
    outline: none;
    box-shadow: 3px 3px 0 var(--black);
}

.contact-newsletter button {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 600;
    background: var(--black);
    color: var(--yellow);
    border: 2px solid var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-newsletter button:hover {
    transform: translateY(-2px);
}

/* Site Footer */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 4rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.site-footer-copyright {
    font-size: var(--text-small);
    color: var(--gray);
}

.site-footer-links {
    display: flex;
    gap: 2rem;
}

.site-footer-links a {
    font-size: var(--text-small);
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: var(--white);
}

.site-footer-logo {
    display: flex;
    justify-content: center;
}

.site-footer-logo img {
    height: 20px;
    width: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: var(--text-h2);
        font-weight: 700;
    }

    nav.menu-open {
        mix-blend-mode: normal;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

    .now-grid {
        grid-template-columns: 1fr;
    }

    .synthesis-collage {
        grid-template-columns: 1fr;
    }

    .signal-note {
        width: 100%;
        margin-top: 0 !important;
        transform: rotate(0) !important;
    }

    .blog-container {
        padding: 6rem 2rem;
    }

    .blog-hero-img {
        margin: 2rem -2rem;
    }

    .newsletter {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .newsletter--blog {
        margin: 3rem -2rem 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .blog-img-full figcaption {
        padding: 0 2rem;
    }

    .signal-nav {
        padding: 1.5rem 2rem;
    }

    .signal-pagination {
        gap: 1.5rem;
    }

    .archive-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .archive-item-date {
        order: 2;
    }

    .archive-item-content {
        order: 1;
    }

    #contact {
        padding: 4rem 4rem;
        margin: 2rem 1rem;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-newsletter form {
        flex-direction: column;
    }

    .site-footer {
        padding: 2rem;
    }

    .site-footer-top {
        flex-direction: column-reverse;
        gap: 1rem;
        text-align: center;
    }

    .site-footer-links {
        gap: 1.5rem;
    }
}

/* Small screens - ensure minimum padding */
@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .section-wrapper {
        padding: 0 1rem;
    }

    .now-section {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .now-section::before {
        left: 1rem;
    }

    .signals-section {
        padding: 4rem 1rem;
    }

    .signals-header {
        padding: 0 1rem;
    }

    .about-proof {
        padding: 1rem;
    }

    .proof-header {
        padding: 0.75rem 1rem;
    }

    .proof-row {
        padding: 1rem;
    }

    .site-footer {
        padding: 1.5rem 1rem;
    }

    #contact {
        padding: 0 1rem;
    }
}

.highlight {
    background: var(--yellow);
    padding: 0 0.25rem;
}