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

/* CANVAS FOUNDATION */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Mobile touch improvements */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

/* Typography helpers */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Outfit for short, punchy text - 2px bigger */
.hero-subtitle,
.manifesto-intro,
.manifesto-closing,
.rotating-phrase,
.item-label,
.location-city,
.space-item h4 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: calc(1em + 2px);
}

/* SCROLL CONTAINER: The Journey */
.scroll-container {
    width: 100%;
    position: relative;
}

/* ARCHITECTURAL BLOCKS: Each a distinct space */
.block {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vh 4vw;
    opacity: 0;
    transform: translateY(30px);
    animation: blockReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered entrance for each block */
.block:nth-child(1) { animation-delay: 0.1s; }
.block:nth-child(2) { animation-delay: 0.3s; }
.block:nth-child(3) { animation-delay: 0.5s; }
.block:nth-child(4) { animation-delay: 0.7s; }
.block:nth-child(5) { animation-delay: 0.9s; }
.block:nth-child(6) { animation-delay: 1.1s; }
.block:nth-child(7) { animation-delay: 1.3s; }
.block:nth-child(8) { animation-delay: 1.5s; }

@keyframes blockReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO BLOCK: Monumental Architecture */
.block-hero {
    background: #000;
    flex-direction: column;
    text-align: center;
    padding-top: 12vh;
}

.hero-content {
    max-width: 95vw;
    margin: 0 auto;
}

.architectural-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    /* Gradient + clipping moved to .title-line to avoid Chrome filter+transform artifacts */
    color: #fff;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    /* Apply gradient per-line to prevent parent filter/transform compositing bugs */
    background: linear-gradient(135deg, #fff 0%, #ccc 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Use text-shadow to mimic the subtle drop shadow without filters */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* CSS animation fallback — only when JS is not available */
html.no-js .title-line {
    animation: titleSlide 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 1.3s; }
.title-line:nth-child(3) { animation-delay: 2.4s; }
.title-line:nth-child(4) { animation-delay: 3.5s; }

@keyframes titleSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.subtitle-static {
    opacity: 0.7;
    animation: subtitleFade 1s cubic-bezier(0.16, 1, 0.3, 1) 3.6s forwards;
    opacity: 0;
}

.cycling-concept {
    font-weight: 300;
    color: #fff;
    min-height: 1.5em;
    animation: conceptFade 1s cubic-bezier(0.16, 1, 0.3, 1) 3.6s forwards;
    opacity: 0;
    text-transform: uppercase;
}

@keyframes subtitleFade {
    to { opacity: 0.7; }
}

@keyframes conceptFade {
    to { opacity: 1; }
}

/* MANIFESTO BLOCK: Poetry in Motion */
.block-manifesto {
    background: #000;
}

.manifesto-content {
    max-width: 800px;
    text-align: center;
}

.manifesto-line {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: manifestoLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.manifesto-line:nth-child(1) { animation-delay: 0.2s; }
.manifesto-line:nth-child(2) { animation-delay: 0.6s; }
.manifesto-line:nth-child(3) { animation-delay: 1.0s; }
.manifesto-line:nth-child(4) { animation-delay: 1.4s; }

@keyframes manifestoLine {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Manifesto parts - grouped styling */
.manifesto-parts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.manifesto-parts::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-25% - 145px), -50%);
    width: 50%;
    max-width: 515px;
    height: auto;
    aspect-ratio: 912 / 412;
    background-image: url('images/ornamental-divider.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

.manifesto-part-label {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    opacity: 0;
    animation: manifestoLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.manifesto-part-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 25px;
}

.manifesto-part {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-align: left;
    opacity: 0;
    transform: translateX(-30px);
    animation: manifestoLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.manifesto-part:nth-child(1) { animation-delay: 0.7s; }
.manifesto-part:nth-child(2) { animation-delay: 0.9s; }
.manifesto-part:nth-child(3) { animation-delay: 1.1s; }

.manifesto-intro {
    margin-bottom: 1.5rem;
}

.manifesto-closing {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    animation-delay: 1.4s;
    font-weight: 200;
}

.manifesto-closing-animation {
    margin-top: 0;
    margin-bottom: 0;
    animation-delay: 1.6s;
    font-weight: 200;
}

/* Manifesto Conveyor - Infinite horizontal scroll */
.manifesto-conveyor-container {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    position: relative;
    height: 3.5rem;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: manifestoLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.6s;
}

.manifesto-conveyor {
    width: 100%;
    position: relative;
    height: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.conveyor-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    will-change: transform;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 400;
    align-items: center;
}

.conveyor-track.animate {
    animation: conveyorScroll 175.5s linear infinite !important;
}

@keyframes conveyorScroll {
    0% {
        transform: translateY(-50%) translateX(0%);
    }
    100% {
        transform: translateY(-50%) translateX(-50%);
    }
}

.conveyor-track span {
    display: inline-block;
    margin-right: 4rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* PURPOSE BLOCK: Infinite Players */
.block-purpose {
    background: #000;
    flex-direction: column;
}

.purpose-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    line-height: 0.7;
}

.purpose-ampersand {
    display: inline-block;
    font-size: 1em;
    opacity: 1;
    font-family: 'Baskerville', 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    margin: 30px 0;
}

/* Inline ampersand for body text - matches surrounding text */
.inline-ampersand {
    font-family: 'Baskerville', 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    opacity: 1;
}

/* Regular (non-italic) ampersand */
.inline-ampersand-regular {
    font-family: 'Baskerville', 'Playfair Display', serif;
    font-weight: 400;
    font-style: normal;
    opacity: 1;
}

.purpose-text {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    text-align: center;
    margin: 3rem 0;
    opacity: 0.8;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.purpose-subtext {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    text-align: center;
    margin: 3rem 0;
    opacity: 0.7;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.purpose-mission {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    text-align: center;
    margin-top: 4rem;
    opacity: 0.85;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.purpose-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    clip-path: none;
    -webkit-clip-path: none;
    box-shadow: none;
    border-radius: 0;
}

.purpose-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.purpose-item:hover::before {
    left: 100%;
}

.purpose-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.item-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* WHY NOW BLOCK */
.block-why-now {
    background: #000;
    flex-direction: column;
    text-align: center;
}

.why-now-content {
    max-width: 68ch;
    margin: 0 auto;
}

.why-now-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-align: center !important;
    max-width: 100vw;
    width: 100%;
}

.why-now-text {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.why-now-highlight {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 500;
    margin: 2rem 0;
    opacity: 1;
    color: #fff;
}

.why-now-answer {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 500;
    margin-top: 2rem;
    opacity: 0.95;
}

/* LOCATION BLOCK: Sacred Ground */
.block-location {
    background: #000;
    flex-direction: column;
    text-align: center;
}

.location-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.location-city {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.location-details {
    margin-top: 3rem;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.location-text {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.location-note {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    line-height: 1.4;
    opacity: 0.6;
    margin-top: 2rem;
    font-style: italic;
}

/* Flight axis visualization */
.location-axis {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto;
    max-width: 900px;
    gap: 1rem;
}

.axis-city {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.axis-center {
    opacity: 1;
    font-weight: 600;
    color: #fff;
}

.axis-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 150px;
    position: relative;
    top: 0.3em;
}

.flight-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #666 20%, #666 80%, transparent 100%);
    position: relative;
}

.flight-line::before,
.flight-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
}

.flight-line::before {
    left: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 6px solid #666;
}

.flight-line::after {
    right: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #666;
}

.flight-time {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    opacity: 0.6;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .location-axis {
        flex-direction: column;
        gap: 2rem;
    }

    .axis-connection {
        flex-direction: row;
        max-width: 100%;
        width: 200px;
    }

    .flight-line {
        height: 100%;
        width: 2px;
        background: linear-gradient(180deg, transparent 0%, #666 20%, #666 80%, transparent 100%);
    }

    .flight-line::before {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: 6px solid #666;
        border-top: none;
    }

    .flight-line::after {
        left: 50%;
        bottom: 0;
        top: auto;
        transform: translateX(-50%);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid #666;
        border-bottom: none;
    }
}

/* TRIADS BLOCK: Foundation Stones */
.block-triads {
    background: #000;
    padding: 12vh 8vw;
}

.triads-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.triad-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.triad-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.triad-divider {
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, #333, #fff, #333);
    margin: 0 2rem;
}

/* VALUES BLOCK: Living Code */
.block-values {
    background: #000;
    flex-direction: column;
    overflow: hidden;
}

.values-intro {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
    opacity: 1;
}

.values-content {
    position: relative;
}

.values-content-inline {
    position: relative;
    margin: 2rem auto 5rem auto;
    max-width: 1200px;
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.values-grid::before {
    content: 'values';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: clamp(16rem, 35vw, 28rem);
    font-weight: 300;
    color: #fff;
    opacity: 0.12;
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}

.value-item {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    opacity: 0.95;
    transition: all 0.3s ease;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
}

.value-item:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* SPACES BLOCK: Architecture of Experience */
.block-spaces {
    background: #000;
    padding-top: 4vh;
}

.spaces-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.space-item {
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.space-item:hover {
    border-color: #fff;
    transform: translateY(-3px);
}

.space-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.space-item p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    opacity: 0.7;
    line-height: 1.4;
}

/* INCUBATION BLOCK */
.block-incubation {
    background: #000;
    flex-direction: column;
    text-align: center;
}

.incubation-content {
    max-width: 70ch;
    margin: 0 auto;
}

.incubation-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.incubation-text {
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.incubation-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.incubation-philosophy {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;
    opacity: 0.8;
    margin-top: 2rem;
}

.incubation-philosophy-sub {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    opacity: 0.6;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Triangle diagram */
.triangle-diagram {
    position: relative;
    width: 600px;
    height: 520px;
    margin: 3rem auto 1rem auto;
}

.triangle-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Mask the small decorative star in the source image (bottom-right) */
.triangle-diagram::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    background: #000; /* page background */
    z-index: 3;
    pointer-events: none;
    border-radius: 4px;
}

.triangle-node {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: #fff;
    z-index: 2;
}

.triangle-top {
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.triangle-left {
    bottom: 80px;
    left: 100px;
}

.triangle-right {
    bottom: 80px;
    right: 100px;
}

.triangle-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Impressions grid at the end */
.block-impressions-final {
    background: #000;
    flex-direction: column;
    padding: 0vh 4vw 3vh 4vw;
}

.impressions-final-content {
    max-width: 1200px;
    margin: 0 auto;
}

.impressions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.impressions-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.impressions-image:hover {
    border-color: #666;
    transform: scale(1.02);
}

.impressions-image-wide {
    grid-column: 1 / -1;
}

.thank-you {
    text-align: center;
    margin: 3rem auto 0 auto;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: #fff;
}

.footer-actions {
    max-width: 600px;
    margin: 3rem auto 6rem auto;
    text-align: center;
}

.email-signup-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 2rem 0;
    letter-spacing: -0.02em;
}

.footer-actions iframe {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.email-signup-form {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
}

.email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.email-message {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-message.loading,
.email-message.success,
.email-message.error {
    opacity: 1;
}

.email-message.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.email-message.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.email-message.loading {
    color: rgba(255, 255, 255, 0.7);
}

.email-input {
    width: 100%;
    padding: 1.25rem 5rem 1.25rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.email-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.email-submit-arrow {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-submit-arrow:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Responsive adjustments for footer actions */
@media (max-width: 768px) {
    .footer-actions {
        flex-direction: column;
        gap: 2rem;
    }

    .email-signup-form {
        max-width: 100%;
        min-width: 100%;
    }
}

.patron-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.patron-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.patron-button:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.patron-button:hover::before {
    left: 100%;
}

.patron-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.patron-button:hover .patron-arrow {
    transform: translateX(5px);
}

/* Hide duplicate manifesto banner below the investment section (keep the top one) */
.block-investment .manifesto-parts {
    display: none !important;
}

/* INVESTMENT BLOCK: The Invitation */
.block-investment {
    background: #000;
    flex-direction: column;
    text-align: center;
    padding-bottom: 0vh;
}

.investment-content {
    max-width: 90ch;
    margin: 0 auto;
}

.investment-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.investment-intro {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.investment-amount-inline {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #fff;
}

.investment-items {
    max-width: 70ch;
    margin: 0 auto 2rem auto;
}

.investment-item {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.investment-timeline {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 4rem;
}

.investment-roi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 4rem 0;
    text-align: left;
}

.roi-item {
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.roi-item:hover {
    border-color: #666;
    transform: translateY(-3px);
}

.roi-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.roi-item p {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.roi-note {
    font-style: italic;
    opacity: 0.7;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.investment-participation {
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
}

.participation-text {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.participation-invite {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-style: normal;
    opacity: 0.75;
    line-height: 1.6;
    max-width: 70ch;
    margin: 0 auto;
}

/* RESPONSIVE ARCHITECTURE */
@media (max-width: 768px) {
    .block {
        padding: 6vh 4vw !important;
        min-height: 90vh;
    }

    /* Hero section mobile fixes */
    .block-hero {
        min-height: 100vh !important;
        justify-content: center !important;
        padding: 10vh 5vw !important;
        text-align: center !important;
    }

    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .architectural-title {
        font-size: clamp(2.5rem, 15vw, 5rem) !important;
        line-height: 0.9 !important;
        margin: 0 auto 2.5rem auto !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Mobile-specific title adjustments */
    .architectural-title.js-controlled .title-line {
        transform: translateY(30px) !important;
        text-align: center !important;
        display: block !important;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        margin-top: 2rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .cycling-concept {
        display: inline-block !important;
        text-align: center !important;
    }

    /* Manifesto mobile */
    .manifesto-line {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        line-height: 1.4;
    }

    .manifesto-conveyor-container {
        height: 3rem;
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    /* Purpose section */
    .purpose-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.2;
    }

    .purpose-text,
    .purpose-subtext,
    .purpose-mission {
        font-size: clamp(1rem, 4vw, 1.3rem);
        line-height: 1.5;
    }

    .purpose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Why Now section */
    .why-now-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
        white-space: normal;
        text-align: center !important;
    }

    .why-now-text,
    .why-now-answer {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.6;
    }

    /* Location section */
    .location-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .location-city {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    /* Investment section */
    .investment-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .investment-intro,
    .investment-item,
    .participation-text {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    /* Values section */
    .values-intro {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .values-grid {
        gap: 0.75rem;
    }

    .value-item {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        min-height: 60px;
        padding: 0.5rem;
    }

    /* Spaces section */
    .spaces-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

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

    .space-item h4 {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    }

    .space-item p {
        font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    }

    /* Triads */
    .triads-content {
        flex-direction: column;
        gap: 2rem;
    }

    .triad-divider {
        width: 100px;
        height: 2px;
        margin: 1rem 0;
    }

    .triad-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .triad-items {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    /* Footer actions */
    .patron-button {
        padding: 1rem 2rem;
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        width: 100%;
        justify-content: center;
    }

    .email-input {
        font-size: clamp(0.9rem, 4vw, 1rem);
        padding: 1rem 4rem 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .block {
        padding: 4vh 5vw;
    }

    .architectural-title {
        font-size: clamp(2rem, 13vw, 4rem);
    }

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

    .hero-content,
    .manifesto-content,
    .purpose-content,
    .location-content,
    .triads-content,
    .values-content,
    .spaces-content,
    .investment-content {
        padding: 0 1rem;
    }

    .manifesto-line {
        font-size: clamp(1.1rem, 5.5vw, 1.5rem);
    }

    .purpose-title {
        font-size: clamp(1.8rem, 9vw, 3rem);
    }

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

    .value-item {
        min-height: 50px;
    }
}

/* ACCESSIBILITY & MOTION */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .values-list {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* FOCUS STATES */
.block:focus,
.purpose-item:focus,
.space-item:focus {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* ROTATING & FLASHING TEXT EFFECTS */
.rotating-phrase,
.flashing-phrase {
    display: inline-block;
    position: relative;
    min-width: 2ch;
    font-family: inherit;
    font-weight: inherit;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
}

.rotating-phrase.inline,
.flashing-phrase.inline {
    display: inline-block;
    min-width: 155px;
    text-align: center;
    font-size: 1em;
    line-height: inherit;
}

/* Vertical roll effect - mechanical display */
.vertical-roll {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 250px;
    height: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 0.5rem;
    text-align: center;
}

.vertical-roll.rolling-up {
    animation: rollUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.vertical-roll.rolling-in {
    animation: rollIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rollIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.flashing-phrase {
    animation: flash 2s ease-in-out infinite;
}

.flashing-sequence {
    display: inline-block;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Glitch effect for rotating text */
.rotating-phrase.glitch {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    20% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    40% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
    60% {
        transform: translate(-2px, -2px);
        opacity: 0.8;
    }
    80% {
        transform: translate(2px, 2px);
        opacity: 0.8;
    }
}

/* LOCATION IMAGE STYLES */
.location-street {
    margin-top: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.location-image {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-image:hover {
    border-color: #666;
    transform: scale(1.02);
}

.location-street .location-caption {
    grid-column: 1 / -1;
}

.location-caption {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    opacity: 0.6;
    margin-top: 1rem;
    font-style: italic;
    text-align: center;
}

.location-proximity {
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.location-proximity-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.ornamental-divider {
    width: 100%;
    max-width: 300px;
    height: auto;
    opacity: 0.8;
}

.location-map {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-map:hover {
    border-color: #666;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

/* ARCHITECTURE BLOCK: Carousel */
.block-architecture {
    background: #000;
    flex-direction: column;
    padding: 10vh 4vw;
}

.architecture-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.architecture-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
}

.architecture-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-image {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border: 1px solid #333;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #666;
    color: #fff;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

/* THE SPACE BLOCK: Journey Through */
.block-the-space {
    background: #000;
    flex-direction: column;
    padding: 10vh 4vw;
}

.space-journey-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.space-journey-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
}

.space-journey-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    text-align: center;
    opacity: 0.7;
    margin-bottom: 4rem;
    font-style: italic;
}

.space-journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.space-video-container {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
}

.journey-video-wide {
    width: 100%;
    min-height: 600px;
    height: auto;
    object-fit: cover;
}

.journey-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-item:hover {
    border-color: #666;
    transform: translateY(-5px);
}

.journey-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Pixelated staircase effect (explicit classes, wide support) */
.staircase-item {
    position: relative;
    overflow: visible;
    border: none;
}

.staircase-image {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* cut 4px corner notches */
    clip-path: polygon(
        0 4px, 4px 4px, 4px 0,
        calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
        100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
        4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
    );
    /* white 2px edge and grey 8px offset shadow */
    box-shadow:
        0 0 0 2px rgb(255, 255, 255) inset,
        8px 8px 0 0 rgba(128, 128, 128, 0.85);
}

.staircase-item:hover .staircase-image {
    box-shadow:
        0 0 0 2px rgb(255, 255, 255) inset,
        8px 8px 0 0 rgba(128, 128, 128, 1);
}

.journey-video {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-video-item {
    position: relative;
}

.journey-item.journey-video-item::after {
    content: 'click me';
    font-family: 'Playfair Display', serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.journey-item.journey-video-item:hover::after {
    opacity: 0.5;
}

.journey-item:hover .journey-video {
    transform: scale(1.05);
}

.journey-caption {
    padding: 1rem;
    text-align: center;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
}

.space-special-areas {
    margin-top: 3rem;
}

.combined-area {
    max-width: 900px;
    margin: 0 auto;
}

.combined-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.combined-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.combined-image:hover {
    border-color: #555;
    transform: scale(1.02);
}

/* Videos */
.space-videos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 4rem auto;
    max-width: 900px;
}

.videos-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.space-video-vertical {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-video-vertical:hover {
    border-color: #555;
}

.space-video-horizontal {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-video-horizontal:hover {
    border-color: #555;
}

.video-item {
    position: relative;
}

.space-video {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-video:hover {
    border-color: #555;
}

.space-video-large {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-video-large:hover {
    border-color: #555;
}

.garden-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.garden-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 1px solid #222;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.garden-image:hover {
    border-color: #555;
    transform: scale(1.02);
}

.chapel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 1px solid #222;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapel-image:hover {
    border-color: #555;
    transform: scale(1.02);
}

.special-caption {
    text-align: center;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    opacity: 0.7;
    line-height: 1.6;
    font-style: italic;
}

/* Community section */
.space-community {
    margin-top: 2rem;
}

.community-image-full {
    width: 100%;
    max-width: 900px;
    height: auto;
    border: 1px solid #333;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-image-full:hover {
    border-color: #555;
    transform: scale(1.02);
}

.community-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.community-image {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-image:hover {
    border-color: #555;
    transform: scale(1.02);
}

/* Lightbox for viewing images */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #666;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Make all images clickable */
img {
    cursor: pointer;
}

/* Lightbox navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #666;
    color: #fff;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .space-journey-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .space-special-areas {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .garden-images {
        grid-template-columns: 1fr;
    }

    .journey-image {
        height: 300px;
    }

    .garden-image,
    .chapel-image {
        height: 250px;
    }
}

/* JavaScript-controlled animation (if JS loads) */
.architectural-title.js-controlled .title-line {
    animation: none !important;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
    /* Stabilize Chrome/Android rendering during transform of gradient text */
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateY(50px) translateZ(0) !important;
}

.architectural-title.js-controlled .title-line.reveal {
    opacity: 1 !important;
    transform: translateY(0) translateZ(0) !important;
}

/* INVESTMENT EXPANDABLE SECTION */
.block-investment-expandable {
    min-height: auto;
    padding: 2rem 0 6rem 0;
    background: #000;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center;
    width: 100%;
}

.investment-trigger {
    cursor: pointer;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.investment-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.investment-trigger .trigger-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
}

.investment-trigger .trigger-arrow {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

#investmentContent,
.investment-expandable-content {
    width: 100%;
    margin: 3rem auto 0;
    padding: 0 2rem;
    box-sizing: border-box;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

#investmentContent.visible,
.investment-expandable-content.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

.investment-expandable-content .investment-content {
    animation: fadeIn 0.5s ease;
    max-width: 90ch;
    margin: 0 auto;
}

.investment-expandable-content .investment-roi {
    margin-top: 3rem;
}

.investment-cta {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.investment-cta .patron-button {
    display: inline-flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
