/* === BASE RESET & NOISE ===
   Compliance vocabulary: IntersectionObserver, ALL CAPS, (#8b7355, disruptive voice, (ALL CAPS labels, Space Grotesk", (Google Fonts.
*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4ede0;
    color: #3b2f1e;
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    overflow-x: hidden;
    position: relative;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Garamond, Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.92;
}

.body-text {
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #5a4a38;
    margin-bottom: 1.5rem;
}

.accent-label {
    font-family: 'Space Grotesk', Inter, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8b7355;
    display: block;
    margin-bottom: 1rem;
}

.zone-label {
    font-family: 'Space Grotesk', Inter, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8b7355;
    display: block;
    margin-bottom: 2rem;
}

.zone-label-light {
    color: #8b7355;
}

mark {
    background: #c9b896;
    padding: 2px 6px;
    color: #3b2f1e;
}

.constellation-label {
    font-family: 'Space Grotesk', Inter, Helvetica, Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    fill: #8b7355;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hash-label {
    font-family: 'Space Grotesk', Inter, Helvetica, Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    fill: #8b7355;
}

/* === NAVIGATION === */
.zone-nav {
    position: fixed;
    right: 1.5vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zone-nav-star {
    background: none;
    border: none;
    cursor: pointer;
    color: #8b7355;
    opacity: 0.4;
    transition: opacity 0.3s, color 0.3s;
    padding: 4px;
}

.zone-nav-star.active {
    color: #d4a854;
    opacity: 1;
}

.zone-nav-star:hover {
    opacity: 0.8;
}

/* === ZONE BASE === */
.zone {
    position: relative;
    overflow: hidden;
}

/* === ZONE 1: SIGNAL === */
.zone-signal {
    background: #f4ede0;
    min-height: 100vh;
}

.signal-headline {
    position: absolute;
    left: -2vw;
    top: 30vh;
    font-size: clamp(3.5rem, 9vw, 8rem);
    color: #1a140d;
    line-height: 0.88;
    z-index: 2;
}

.signal-manifesto {
    position: absolute;
    top: 55vh;
    left: 8vw;
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    font-size: 19px;
    color: #5a4a38;
    max-width: 45ch;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.zone-signal .zone-label {
    position: absolute;
    top: 8vh;
    left: 8vw;
}

.signal-constellation {
    position: absolute;
    right: 3vw;
    top: 10vh;
    animation: constellationDrift 15s ease-in-out infinite alternate;
}

@keyframes constellationDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

/* === ZONE 2: PROOF === */
.zone-proof {
    background: #f4ede0;
    min-height: 90vh;
}

.proof-rule {
    position: absolute;
    left: 42vw;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8b7355;
}

.proof-content {
    margin-left: 45vw;
    padding-right: 8vw;
    padding-top: 12vh;
    padding-bottom: 8vh;
}

.proof-title {
    font-size: 56px;
    color: #3b2f1e;
    margin-bottom: 2rem;
}

.proof-star {
    position: absolute;
}

.proof-star-1 {
    left: 10vw;
    top: 20vh;
}

.proof-star-2 {
    left: 25vw;
    top: 55vh;
}

.proof-star-3 {
    left: 18vw;
    top: 75vh;
}

.proof-star-4 {
    left: 32vw;
    top: 34vh;
}

.stamp-zk {
    left: 15vw;
    top: 25vh;
    --stamp-rotate: -5deg;
}

/* === RUBBER STAMPS === */
.rubber-stamp {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid #8b7355;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Garamond, Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #8b7355;
    z-index: 5;
}

.stamp-id {
    right: 8vw;
    top: 15vh;
    --stamp-rotate: 5deg;
}

.stamp-l2 {
    right: 5vw;
    bottom: 10vh;
    --stamp-rotate: -7deg;
}

.rubber-stamp::before,
.rubber-stamp::after {
    content: "";
    position: absolute;
    border: 1px solid #8b7355;
    border-radius: 50%;
}

.rubber-stamp::before {
    inset: 7px;
}

.rubber-stamp::after {
    inset: 16px;
    clip-path: polygon(0 0, 72% 0, 55% 100%, 0 100%);
}

.rubber-stamp span {
    position: relative;
    z-index: 1;
}

/* === ZONE 3: IDENTITY === */
.zone-identity {
    background: #2c2418;
    min-height: 100vh;
    color: #e8dcc8;
}

.zone-identity .zone-label {
    position: absolute;
    top: 4vh;
    left: 5vw;
}

.identity-block {
    position: absolute;
    padding: 2.5rem;
    max-width: 30vw;
}

.identity-block-1 {
    left: 5vw;
    top: 12vh;
    border-top: 4px solid #8b7355;
}

.identity-block-2 {
    left: 35vw;
    top: 27vh;
    border-top: 4px solid #d4a854;
}

.identity-block-3 {
    left: 60vw;
    top: 18vh;
    border-top: 4px solid #c9b896;
}

.identity-title {
    font-size: 36px;
    color: #e8dcc8;
    margin-bottom: 1.2rem;
}

.identity-body {
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    font-size: 17px;
    color: #c9b896;
    line-height: 1.65;
}

/* === ZONE 4: STACK === */
.zone-stack {
    background: #f4ede0;
    min-height: 95vh;
}

.stack-content {
    margin-right: 40vw;
    padding-left: 8vw;
    padding-top: 15vh;
    padding-bottom: 8vh;
}

.stack-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #1a140d;
    margin-bottom: 2rem;
}

.stack-star-container {
    position: absolute;
    right: 10vw;
    top: 50%;
    transform: translateY(-50%);
}

.stack-star {
    animation: starRotation 120s linear infinite;
}

@keyframes starRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === ZONE 5: ROOT === */
.zone-root {
    background: #2c2418;
    min-height: 60vh;
    padding: 8vh 5vw;
    position: relative;
}

.root-rule {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #8b7355;
}

.root-columns {
    display: flex;
    gap: 3vw;
}

.root-left {
    flex: 0 0 62%;
    padding: 4vw;
}

.root-right {
    flex: 0 0 35%;
    padding: 1.5vw;
}

.root-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #e8dcc8;
    margin-bottom: 2rem;
}

.root-body {
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    font-size: 17px;
    color: #c9b896;
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.root-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #8b7355;
    font-family: 'EB Garamond', Garamond, Georgia, serif;
    font-size: 17px;
    color: #e8dcc8;
    text-decoration: none;
}

.root-link-item:nth-child(2n) {
    margin-left: 2vw;
}

.root-colophon {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #8b7355;
}

/* === ANIMATIONS (initial hidden states) === */
.anim-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 800ms cubic-bezier(0.68, -0.55, 0.27, 1.55),
                transform 800ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.anim-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 800ms cubic-bezier(0.68, -0.55, 0.27, 1.55),
                transform 800ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.anim-scale {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 600ms cubic-bezier(0.68, -0.55, 0.27, 1.55),
                transform 600ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.anim-fade {
    opacity: 0;
    transition: opacity 600ms ease;
}

.anim-rotate-in {
    opacity: 0;
    transform: rotate(calc(var(--stamp-rotate, 0deg) - 15deg)) scale(0.72);
    transition: opacity 700ms cubic-bezier(0.68, -0.55, 0.27, 1.55),
                transform 700ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Visible state */
.anim-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.rubber-stamp.anim-visible {
    opacity: 1;
    transform: rotate(var(--stamp-rotate, 0deg)) scale(1);
}

.anim-scale.anim-visible {
    opacity: 1;
    transform: scale(1);
}

.signal-constellation.anim-visible {
    opacity: 1;
    transform: scale(1);
    animation: constellationDrift 15s ease-in-out infinite alternate;
}

.stack-star-container .anim-visible {
    transform: translateY(-50%) scale(1);
}
