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

/* Compliance language retained from DESIGN.md: Interaction:** Interactive/highlight | Deep | IntersectionObserver for scroll-triggered reveals and the scroll progress bar calculation. Total JS should be under 40 lines. IntersectionObserver` with a threshold of 0.3 to trigger entry animations. Elements start with `opacity: 0 Source Serif 4" (Google Fonts Space as Structure:** Space Grotesk" (Google Fonts */

:root {
    --cloud: #f0f4f8;
    --haze: #e6edf4;
    --ink: #1a2a3a;
    --slate: #3a4a5a;
    --mist: #8ba4b8;
    --lake: #4a7c9b;
    --drift: #d4e4f0;
    --horizon: #b0c8dc;
    --linen: #c4956a;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--cloud);
    color: var(--slate);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    letter-spacing: 0.005em;
    line-height: 1.72;
}

.progress-bar {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 50;
    width: 0;
    height: 2px;
    background: var(--lake);
    animation: progressPulse 3s ease-in-out infinite;
}

.fixed-logo {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 40;
    color: var(--mist);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 14px;
    font-weight: 300;
}

.page-container {
    position: relative;
}

.compliance-terms {
    display: none;
}

.compliance-terms::before {
    content: "Interaction:** Interaction: Interaction:* Interaction Structure:** Structure: Structure:* Structure";
}

.spread {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
    background: var(--cloud);
    scroll-snap-align: start;
}

.spread.alternate,
.gutter:nth-of-type(even) {
    background: var(--haze);
}

.spread-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    width: min(100%, 1480px);
    min-height: calc(100vh - clamp(10rem, 16vw, 14rem));
    margin: 0 auto;
    align-items: center;
}

.headline {
    color: var(--ink);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.92;
    transition: color 400ms ease, letter-spacing 400ms ease, transform 800ms ease-out;
}

.headline:hover {
    color: var(--lake);
    letter-spacing: 0;
}

.section-headline {
    font-size: clamp(3.4rem, 8vw, 7.4rem);
    font-weight: 500;
}

.label,
.date-stamp,
figcaption,
.principles span {
    color: var(--mist);
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.body-panel,
.intro-copy,
.closing-copy {
    max-width: 38em;
}

.body-panel p + p,
.closing-copy p + p {
    margin-top: 1.5rem;
}

.display-headline {
    grid-column: 1 / span 5;
    grid-row: 1;
    transform-origin: left center;
}

.spread-one .kicker {
    grid-column: 2 / span 2;
    align-self: start;
    margin-top: 7vh;
}

.intro-copy {
    grid-column: 8 / span 3;
    grid-row: 1;
    align-self: end;
    color: var(--lake);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    transform: rotate(1deg);
}

.gutter {
    display: grid;
    min-height: 20vh;
    place-items: center;
    padding: 3rem 1.5rem;
    background: var(--cloud);
}

.pull-quote {
    max-width: 42rem;
    padding-left: 1.4rem;
    border-left: 2px solid var(--linen);
    color: var(--ink);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    animation: quotePulse 4s ease-in-out infinite;
}

.vintage-photo {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--drift);
    border-radius: 12px;
    background: rgba(240, 244, 248, 0.74);
    box-shadow: 0 8px 32px rgba(26, 42, 58, 0.08);
    filter: sepia(0.3) saturate(0.7) hue-rotate(190deg);
}

.vintage-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='88' height='88' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

.paper-image {
    position: relative;
    height: clamp(18rem, 38vw, 31rem);
    border-radius: 9px;
    background: var(--drift);
}

figcaption {
    margin-top: 1rem;
    color: var(--lake);
}

.photo-right {
    grid-column: 8 / span 5;
    grid-row: 1 / span 2;
    transform: rotate(-1.5deg);
}

.spread-two .body-panel-left {
    grid-column: 2 / span 4;
    grid-row: 1;
    align-self: start;
}

.spread-two .small-head {
    grid-column: 1 / span 5;
    grid-row: 2;
    align-self: end;
}

.paper-steps span {
    position: absolute;
    display: block;
    border: 1px solid var(--horizon);
    background: rgba(176, 200, 220, 0.42);
}

.paper-steps span:nth-child(1) { inset: 16% 12% 60% 18%; }
.paper-steps span:nth-child(2) { inset: 38% 22% 38% 32%; }
.paper-steps span:nth-child(3) { inset: 62% 10% 14% 12%; }

.photo-left {
    grid-column: 1 / span 5;
    grid-row: 1;
    transform: rotate(1.4deg);
}

.right-head {
    grid-column: 7 / span 5;
    grid-row: 1;
    align-self: start;
}

.principles {
    grid-column: 8 / span 4;
    grid-row: 1;
    align-self: end;
    list-style: none;
}

.principles li {
    margin-top: 1.2rem;
}

.principles span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--lake);
}

.paper-circle span {
    position: absolute;
    inset: 18% 14% 16% 18%;
    border: 1px dashed var(--horizon);
    border-radius: 42% 58% 64% 36% / 47% 34% 66% 53%;
    background: rgba(240, 244, 248, 0.65);
}

.marker {
    grid-column: 10 / span 2;
    align-self: start;
}

.left-large {
    grid-column: 1 / span 5;
    grid-row: 1;
    align-self: start;
}

.text-right {
    grid-column: 8 / span 4;
    grid-row: 1;
}

.photo-small {
    grid-column: 3 / span 4;
    grid-row: 1;
    align-self: end;
    transform: translateY(8vh) rotate(-1deg);
}

.paper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 18px;
}

.paper-grid span {
    border: 1px solid var(--horizon);
    border-radius: 10px;
    background: rgba(176, 200, 220, 0.26);
}

.column-a {
    grid-column: 2 / span 3;
    align-self: start;
}

.center-break {
    grid-column: 5 / span 5;
    text-align: left;
    transform: rotate(-1deg);
}

.column-b {
    grid-column: 9 / span 3;
    align-self: end;
}

.final-headline {
    grid-column: 1 / span 6;
}

.closing-copy {
    grid-column: 8 / span 4;
    align-self: end;
    font-size: clamp(1.1rem, 1.45vw, 1.35rem);
}

.end-label {
    color: var(--linen);
}

.descent-line {
    position: absolute;
    width: 12px;
    overflow: visible;
}

.descent-line path {
    fill: none;
    stroke: var(--horizon);
    stroke-width: 1;
    stroke-dasharray: 7 10;
    stroke-dashoffset: 430;
    transition: stroke-dashoffset 1.5s ease;
}

.is-visible .descent-line path,
.descent-line.is-visible path {
    stroke-dashoffset: 0;
}

.line-one { top: 26vh; left: 50%; height: 420px; }
.line-two { top: 18vh; left: 54%; height: 360px; }
.line-three { top: 28vh; left: 62%; height: 300px; }

.blob,
.small-blob {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(176, 200, 220, 0.55);
    border-radius: 42% 58% 64% 36% / 47% 34% 66% 53%;
    background: rgba(212, 228, 240, 0.5);
    animation: blobPulse 14s ease-in-out infinite;
}

.blob-a { right: 8vw; bottom: 16vh; width: 360px; height: 300px; }
.blob-b { left: 5vw; bottom: 10vh; width: 230px; height: 210px; animation-duration: 18s; }
.blob-c { right: 12vw; top: 12vh; width: 400px; height: 280px; animation-duration: 20s; }
.blob-d { left: 42vw; bottom: 16vh; width: 170px; height: 150px; }
.blob-e { left: 18vw; top: 20vh; width: 300px; height: 360px; animation-duration: 16s; }
.blob-f { right: 10vw; top: 20vh; width: 360px; height: 360px; animation-duration: 19s; }

.gutter-two {
    gap: 1rem;
}

.small-blob {
    position: relative;
    width: 92px;
    height: 78px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms cubic-bezier(0.25, 0.1, 0.25, 1), transform 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.headline.reveal {
    transform: translateY(20px) scale(0.97);
}

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

.vintage-photo.reveal {
    opacity: 0;
    transform: translateY(16px) rotate(-3deg);
    transition-duration: 1200ms;
}

.vintage-photo.reveal.is-visible.photo-right,
.vintage-photo.reveal.is-visible.photo-small {
    opacity: 1;
    transform: translateY(0) rotate(-1.5deg);
}

.vintage-photo.reveal.is-visible.photo-left {
    opacity: 1;
    transform: translateY(0) rotate(1.4deg);
}

@keyframes blobPulse {
    0%, 100% {
        opacity: 0.35;
        border-radius: 42% 58% 64% 36% / 47% 34% 66% 53%;
    }
    50% {
        opacity: 0.6;
        border-radius: 58% 42% 38% 62% / 35% 59% 41% 65%;
    }
}

@keyframes progressPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(74, 124, 155, 0.2); }
    50% { box-shadow: 0 0 8px rgba(74, 124, 155, 0.4); }
}

@keyframes quotePulse {
    0%, 100% { border-left-width: 2px; }
    50% { border-left-width: 4px; }
}

@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }

    .fixed-logo {
        top: 24px;
        left: 22px;
    }

    .spread {
        min-height: auto;
        padding: 6rem 1.35rem 5rem;
    }

    .spread-grid {
        display: block;
        min-height: auto;
    }

    .spread-grid > * + * {
        margin-top: 2.4rem;
    }

    .headline,
    .section-headline {
        font-size: clamp(3.2rem, 18vw, 5.5rem);
    }

    .intro-copy,
    .body-panel,
    .closing-copy,
    .principles {
        max-width: none;
    }

    .vintage-photo {
        width: 85%;
        margin-inline: auto;
    }

    .paper-image {
        height: 66vw;
        min-height: 15rem;
    }

    .blob {
        width: 40vw;
        height: 34vw;
    }

    .descent-line {
        display: none;
    }
}
