/* ============================================================
   blockchain.day — celestial cartography of distributed trust
   ============================================================ */

:root {
    --deep-cosmos: #0d0a1f;
    --nebula-indigo: #1a1040;
    --stellar-lavender: #e8e0f0;
    --constellation: #7b8fff;
    --wash-teal: #2a6b7c;
    --wash-rose: #9b4d6e;
    --wash-gold: #d4b86a;
    --node-glow: #f0ece4;
    --body-dark: #c4bdd4;
    --body-light: #3a3050;
    --deep-plum: #3a3050;
    --pale-lavender: #e8e0f0;
    --soft-violet: #c4bdd4;

    --font-display: 'Cormorant Garamond', 'Lora', Georgia, serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Nunito Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
}

/* Font source note: named faces are used when locally available; Google Fonts are not fetched. Fira Code hash values are accompanied by a tiny generative visualization — a unique 24x24px pattern of colored dots derived from the hash characters. Interactive Star Field (Section 4) uses IntersectionObserver: when a section crosses 30% visibility threshold. Space Grotesk" labels retain the intended voice without external (Google Fonts assets. */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-cosmos);
    color: var(--body-dark);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ============================================================
   Floating particle field
   ============================================================ */
.particle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--node-glow);
    box-shadow: 0 0 6px rgba(240, 236, 228, 0.6);
    opacity: 0.3;
    will-change: transform, opacity;
    transition: opacity 1.2s ease;
}

/* ============================================================
   Scroll container
   ============================================================ */
.scroll-container {
    position: relative;
    width: 100%;
    scroll-snap-type: y proximity;
    overflow-y: visible;
}

/* ============================================================
   Generic section
   ============================================================ */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 14vh 8vw;
    overflow: hidden;
    scroll-snap-align: start;
    isolation: isolate;
    background: var(--deep-cosmos);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--constellation);
    letter-spacing: 0.25em;
    text-transform: lowercase;
    margin-bottom: 1.2rem;
    opacity: 0.75;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--stellar-lavender);
    margin-bottom: 2.6rem;
    max-width: 780px;
}

.section-title--light {
    color: var(--stellar-lavender);
}

.narrow-column {
    max-width: 520px;
    margin-top: 2rem;
}

.body-paragraph {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--body-dark);
    margin-bottom: 1.4rem;
    font-weight: 400;
}

.body-paragraph em {
    font-style: italic;
    color: var(--stellar-lavender);
    font-weight: 400;
}

/* ============================================================
   Watercolor wash layering
   ============================================================ */
.wash-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.wash-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    mix-blend-mode: screen;
    opacity: 0.18;
    pointer-events: none;
}

.wash-turbulence {
    position: absolute;
    inset: -10%;
    background-image:
        radial-gradient(ellipse farthest-side at 20% 30%, rgba(123, 143, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse farthest-side at 75% 70%, rgba(212, 184, 106, 0.05) 0%, transparent 55%);
    filter: url(#watercolor-turbulence);
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   Section 1: Celestial Hero
   ============================================================ */
.section--hero {
    background: var(--deep-cosmos);
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    display: block;
}

.section--hero .wash-blob--a {
    width: 55vw; height: 55vw;
    left: 15%; top: 10%;
    background: radial-gradient(ellipse farthest-side, var(--wash-teal), transparent 70%);
    opacity: 0.18;
}
.section--hero .wash-blob--b {
    width: 45vw; height: 45vw;
    left: 60%; top: 45%;
    background: radial-gradient(ellipse farthest-side, var(--wash-rose), transparent 70%);
    opacity: 0.15;
}
.section--hero .wash-blob--c {
    width: 40vw; height: 40vw;
    left: 35%; top: 70%;
    background: radial-gradient(ellipse farthest-side, var(--nebula-indigo), transparent 70%);
    opacity: 0.2;
}
.section--hero .wash-blob--d {
    width: 30vw; height: 30vw;
    left: 2%; top: 55%;
    background: radial-gradient(ellipse farthest-side, var(--wash-teal), transparent 70%);
    opacity: 0.14;
}
.section--hero .wash-blob--e {
    width: 35vw; height: 35vw;
    left: 75%; top: 15%;
    background: radial-gradient(ellipse farthest-side, var(--wash-rose), transparent 70%);
    opacity: 0.12;
}

.hero-content {
    position: absolute;
    left: 8vw;
    top: 40vh;
    max-width: 560px;
    z-index: 4;
}

.eyebrow {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: lowercase;
    color: var(--constellation);
    margin-bottom: 1.4rem;
    opacity: 0;
    transform: translateY(10px);
    animation: emerge 900ms ease-out 200ms forwards;
}

.display-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.6vw, 5.8rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--stellar-lavender);
    margin-bottom: 1.4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: emerge 1200ms cubic-bezier(0.2, 0.7, 0.25, 1) 400ms forwards;
}

.title-dot {
    color: var(--wash-gold);
    font-style: italic;
    display: inline-block;
    transform: translateY(-0.05em);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(16px, 1.25vw, 20px);
    letter-spacing: 0.02em;
    color: var(--constellation);
    margin-top: 24px;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(15px);
    animation: emerge 1100ms ease-out 800ms forwards;
}

.hero-paragraph {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--body-dark);
    max-width: 480px;
    opacity: 0;
    transform: translateY(15px);
    animation: emerge 1100ms ease-out 1100ms forwards;
}

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

.scroll-hint {
    position: absolute;
    left: 0;
    top: calc(100% + 3.2rem);
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: emerge 1400ms ease-out 1600ms forwards, pulse-opacity 3s ease-in-out 2.8s infinite;
}

.scroll-hint-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--constellation);
    text-transform: lowercase;
}

.scroll-hint-line {
    display: inline-block;
    width: 44px;
    height: 1px;
    background: linear-gradient(to right, var(--constellation), transparent);
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.hero-constellation {
    position: absolute;
    right: 0;
    top: 0;
    width: 58vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0.92;
}

.c-line {
    stroke-opacity: 0.4;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: draw-line 1400ms ease-out forwards;
}

.c-line:nth-child(1) { animation-delay: 600ms; }
.c-line:nth-child(2) { animation-delay: 750ms; }
.c-line:nth-child(3) { animation-delay: 900ms; }
.c-line:nth-child(4) { animation-delay: 1050ms; }
.c-line:nth-child(5) { animation-delay: 1200ms; }
.c-line:nth-child(6) { animation-delay: 1350ms; }
.c-line:nth-child(7) { animation-delay: 1500ms; }
.c-line:nth-child(8) { animation-delay: 1650ms; }
.c-line:nth-child(9) { animation-delay: 1800ms; }
.c-line:nth-child(10) { animation-delay: 1950ms; }
.c-line:nth-child(11) { animation-delay: 2100ms; }
.c-line:nth-child(12) { animation-delay: 2250ms; }
.c-line:nth-child(13) { animation-delay: 2400ms; }
.c-line:nth-child(14) { animation-delay: 2550ms; }
.c-line:nth-child(15) { animation-delay: 2700ms; }
.c-line:nth-child(16) { animation-delay: 2850ms; }

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

.c-node {
    fill: var(--node-glow);
    filter: drop-shadow(0 0 4px var(--constellation)) drop-shadow(0 0 10px rgba(123, 143, 255, 0.5));
    opacity: 0;
    transform-origin: center;
    animation: node-appear 800ms ease-out forwards, node-pulse 3.6s ease-in-out infinite alternate;
}

.c-node:nth-child(1) { animation-delay: 400ms, 3000ms; }
.c-node:nth-child(2) { animation-delay: 500ms, 3100ms; }
.c-node:nth-child(3) { animation-delay: 600ms, 3200ms; }
.c-node:nth-child(4) { animation-delay: 700ms, 3300ms; }
.c-node:nth-child(5) { animation-delay: 800ms, 3400ms; }
.c-node:nth-child(6) { animation-delay: 900ms, 3500ms; }
.c-node:nth-child(7) { animation-delay: 1000ms, 3600ms; }
.c-node:nth-child(8) { animation-delay: 1100ms, 3700ms; }
.c-node:nth-child(9) { animation-delay: 1200ms, 3800ms; }
.c-node:nth-child(10) { animation-delay: 1300ms, 3900ms; }
.c-node:nth-child(11) { animation-delay: 1400ms, 4000ms; }
.c-node:nth-child(12) { animation-delay: 1500ms, 4100ms; }
.c-node:nth-child(13) { animation-delay: 1600ms, 4200ms; }
.c-node:nth-child(14) { animation-delay: 1700ms, 4300ms; }
.c-node:nth-child(15) { animation-delay: 1800ms, 4400ms; }
.c-node:nth-child(16) { animation-delay: 1900ms, 4500ms; }

@keyframes node-appear {
    0% { opacity: 0; transform: scale(0.4); }
    60% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes node-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ============================================================
   Section 2: The Chain as Sky
   ============================================================ */
.section--chain {
    background: linear-gradient(to bottom, var(--deep-cosmos) 0%, var(--nebula-indigo) 50%, var(--deep-cosmos) 100%);
}

.section--chain .wash-blob--rose-a {
    width: 70vw; height: 45vw;
    left: 10%; top: 20%;
    background: radial-gradient(ellipse farthest-side, var(--wash-rose), transparent 65%);
    opacity: 0.16;
    filter: blur(80px);
}
.section--chain .wash-blob--rose-b {
    width: 50vw; height: 40vw;
    left: 55%; top: 55%;
    background: radial-gradient(ellipse farthest-side, var(--wash-teal), transparent 65%);
    opacity: 0.14;
    filter: blur(70px);
}
.section--chain .wash-blob--rose-c {
    width: 35vw; height: 35vw;
    left: -5%; top: 60%;
    background: radial-gradient(ellipse farthest-side, var(--nebula-indigo), transparent 65%);
    opacity: 0.22;
}

.chain-constellation {
    display: block;
    width: 100%;
    height: 220px;
    margin: 2.2rem 0 2.4rem;
    opacity: 0.95;
}

.chain-nodes circle {
    fill: var(--node-glow);
    filter: drop-shadow(0 0 5px var(--constellation)) drop-shadow(0 0 12px rgba(123, 143, 255, 0.4));
    transform-origin: center;
    transform-box: fill-box;
    animation: node-pulse 3s ease-in-out infinite alternate;
}

.chain-lines line {
    stroke-opacity: 0.45;
}

/* ============================================================
   Section 3: Block by Block
   ============================================================ */
.section--blocks {
    background: linear-gradient(to bottom, var(--deep-cosmos) 0%, #120c2e 100%);
    padding-top: 14vh;
    padding-bottom: 14vh;
}

.section--blocks .wash-blob--gold-a {
    width: 60vw; height: 50vw;
    left: -10%; top: 10%;
    background: radial-gradient(ellipse farthest-side, var(--wash-gold), transparent 65%);
    opacity: 0.09;
    filter: blur(90px);
}
.section--blocks .wash-blob--gold-b {
    width: 50vw; height: 40vw;
    left: 60%; top: 50%;
    background: radial-gradient(ellipse farthest-side, var(--wash-rose), transparent 65%);
    opacity: 0.11;
    filter: blur(80px);
}

.strip-stack {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 2.5rem;
}

.strip {
    position: relative;
    width: 100%;
    padding: 4.5rem 0;
    overflow: hidden;
}

.strip-wash {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.85;
    filter: url(#watercolor-turbulence-b);
    pointer-events: none;
}

.strip--teal .strip-wash {
    background: linear-gradient(
        90deg,
        rgba(42, 107, 124, 0.22) 0%,
        rgba(42, 107, 124, 0.12) 30%,
        rgba(13, 10, 31, 0) 75%
    );
}
.strip--rose .strip-wash {
    background: linear-gradient(
        90deg,
        rgba(155, 77, 110, 0.22) 0%,
        rgba(155, 77, 110, 0.1) 35%,
        rgba(13, 10, 31, 0) 75%
    );
}
.strip--gold .strip-wash {
    background: linear-gradient(
        90deg,
        rgba(212, 184, 106, 0.18) 0%,
        rgba(212, 184, 106, 0.08) 35%,
        rgba(13, 10, 31, 0) 75%
    );
}

.strip-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding-left: 2rem;
    border-left: 1px solid rgba(123, 143, 255, 0.3);
}

.strip-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.35em;
    color: var(--wash-gold);
    margin-bottom: 1.1rem;
    text-transform: lowercase;
    opacity: 0.85;
}

.strip-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: 0.015em;
    color: var(--stellar-lavender);
    margin-bottom: 1.4rem;
}

.strip-text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--body-dark);
    margin-bottom: 1.4rem;
}

/* ============================================================
   Hash lines
   ============================================================ */
.hash-line {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 0.6rem;
    padding: 10px 14px;
    background: rgba(26, 16, 64, 0.45);
    border: 1px solid rgba(123, 143, 255, 0.18);
    border-radius: 3px;
    max-width: 100%;
    flex-wrap: wrap;
}

.hash-fingerprint {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 4px;
    background-size: cover;
    box-shadow: 0 0 10px rgba(123, 143, 255, 0.28);
    border: 1px solid rgba(123, 143, 255, 0.18);
}

.hash-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--constellation);
    opacity: 0.7;
}

.hash-code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--constellation);
    letter-spacing: 0.04em;
}

/* ============================================================
   Underline-draw animation
   ============================================================ */
.draw-underline {
    position: relative;
    display: inline;
    color: var(--stellar-lavender);
    font-weight: 600;
    padding-bottom: 2px;
    background-image: linear-gradient(to right, var(--wash-gold), var(--wash-gold));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size 900ms cubic-bezier(0.3, 0.7, 0.2, 1);
}

.draw-underline.is-drawn {
    background-size: 100% 2px;
}

.draw-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212, 184, 106, 0.35), transparent 80%);
    opacity: 0;
    transition: opacity 900ms ease 200ms;
    pointer-events: none;
}

.draw-underline.is-drawn::after {
    opacity: 1;
}

/* ============================================================
   Section 4: The Ledger of Stars (interactive star field)
   ============================================================ */
.section--ledger {
    background: var(--deep-cosmos);
    min-height: 100vh;
    padding-top: 12vh;
    padding-bottom: 12vh;
}

.section--ledger .wash-blob--deep-a {
    width: 80vw; height: 60vw;
    left: 10%; top: 20%;
    background: radial-gradient(ellipse farthest-side, var(--nebula-indigo), transparent 65%);
    opacity: 0.45;
    filter: blur(70px);
}
.section--ledger .wash-blob--deep-b {
    width: 40vw; height: 40vw;
    left: 60%; top: 60%;
    background: radial-gradient(ellipse farthest-side, var(--wash-teal), transparent 65%);
    opacity: 0.12;
    filter: blur(70px);
}

.section-inner--ledger {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ledger-hint {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--constellation);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    opacity: 0.75;
}

.star-field {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 520px;
    margin-top: 1.2rem;
    border: 1px solid rgba(123, 143, 255, 0.08);
    border-radius: 2px;
    background:
        radial-gradient(ellipse farthest-side at 40% 30%, rgba(42, 107, 124, 0.1), transparent 60%),
        radial-gradient(ellipse farthest-side at 75% 70%, rgba(155, 77, 110, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(26, 16, 64, 0.4), rgba(13, 10, 31, 0.2));
    overflow: hidden;
    cursor: crosshair;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: var(--node-glow);
    box-shadow: 0 0 4px var(--constellation), 0 0 8px rgba(123, 143, 255, 0.4);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    will-change: opacity, transform;
}

.star:hover {
    transform: scale(1.8);
    box-shadow: 0 0 8px var(--wash-gold), 0 0 18px rgba(212, 184, 106, 0.7);
    z-index: 2;
}

.star-tooltip {
    position: fixed;
    z-index: 50;
    background: rgba(26, 16, 64, 0.92);
    border: 1px solid rgba(123, 143, 255, 0.35);
    backdrop-filter: blur(6px);
    padding: 10px 14px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--body-dark);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
    max-width: 260px;
    line-height: 1.55;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

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

.star-tooltip .tt-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 2px;
}

.star-tooltip .tt-key {
    color: var(--constellation);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.75;
}

.star-tooltip .tt-val {
    color: var(--stellar-lavender);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ============================================================
   Section 5: Closing Constellation
   ============================================================ */
.section--closing {
    background: var(--deep-cosmos);
    min-height: 90vh;
    padding-top: 14vh;
    padding-bottom: 10vh;
}

.section--closing .wash-blob--close-a {
    width: 70vw; height: 50vw;
    left: 15%; top: 30%;
    background: radial-gradient(ellipse farthest-side, var(--wash-teal), transparent 65%);
    opacity: 0.12;
    filter: blur(80px);
}
.section--closing .wash-blob--close-b {
    width: 40vw; height: 35vw;
    left: 55%; top: 60%;
    background: radial-gradient(ellipse farthest-side, var(--wash-gold), transparent 65%);
    opacity: 0.08;
    filter: blur(70px);
}

.section-inner--closing {
    text-align: left;
}

.closing-headline {
    margin-bottom: 2.4rem;
    max-width: 720px;
}

.closing-constellation {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: 320px;
    margin: 0 0 3rem 0;
    opacity: 0.95;
}

.closing-nodes circle {
    fill: var(--node-glow);
    filter: drop-shadow(0 0 4px var(--constellation)) drop-shadow(0 0 10px rgba(123, 143, 255, 0.45));
    transform-origin: center;
    transform-box: fill-box;
    animation: node-pulse 4s ease-in-out infinite alternate;
}

.closing-nodes circle.accent {
    fill: var(--wash-gold);
    filter: drop-shadow(0 0 5px var(--wash-gold)) drop-shadow(0 0 14px rgba(212, 184, 106, 0.5));
}

.closing-labels text {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    fill: var(--constellation);
    opacity: 0.45;
    letter-spacing: 0.2em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(123, 143, 255, 0.15);
    max-width: 720px;
}

.footer-domain {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-style: italic;
    font-weight: 400;
    color: var(--stellar-lavender);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}

.footer-byline {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--body-dark);
    margin-bottom: 1.4rem;
    font-style: italic;
    opacity: 0.8;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--constellation);
    opacity: 0.6;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-dot {
    opacity: 0.4;
}

/* ============================================================
   Intersection-driven reveal (used by JS)
   ============================================================ */
.reveal-target {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.25, 1), transform 900ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

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

.reveal-stagger-1 { transition-delay: 120ms; }
.reveal-stagger-2 { transition-delay: 240ms; }
.reveal-stagger-3 { transition-delay: 360ms; }
.reveal-stagger-4 { transition-delay: 480ms; }
.reveal-stagger-5 { transition-delay: 600ms; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
    .section {
        padding: 12vh 6vw;
    }

    .hero-content {
        left: 6vw;
        right: 6vw;
        top: 30vh;
        max-width: none;
    }

    .hero-constellation {
        width: 100vw;
        top: 50%;
        opacity: 0.55;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .strip {
        padding: 3rem 0;
    }

    .strip-content {
        padding-left: 1.2rem;
    }

    .chain-constellation {
        height: 160px;
    }

    .closing-constellation {
        height: 220px;
    }

    .scroll-hint {
        top: calc(100% + 2rem);
    }
}

@media (max-width: 560px) {
    .display-title {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .hero-tagline {
        font-size: 15px;
    }

    .hero-paragraph {
        font-size: 15px;
    }

    .star-field {
        min-height: 380px;
    }
}
